1.12.3 • Published 1 year ago

@knime/jsonforms v1.12.3

Weekly downloads
-
License
GPL 3 and Additio...
Repository
-
Last release
1 year ago

Image KNIME JSONForms integration

This repository contains the frontend components of the KNIME JSONForms integration that is based on Vue. It is built as a Vue library and used in KNIME Analytics Platform and/or KNIME Hub.

Installation

To install the @knime/jsonforms package, you can use npm:

npm install @knime/jsonforms

Usage

The vue component controlling the JSONForms instance can be imported as follows:

import { JsonFormsDialog } from "@knime/jsonforms";

It requires renderers as property, which can be constructed using a variety of defaults.

Those default components are divided into layouts and controls:

import { controls, layouts } from "@jsonforms/testing";

Use the toRenderers method to construct the final list of renderers once the chosen controls/layouts are modified in the desired way. A modification might entail replacing the tester by which this renderer is used by jsonforms or wrapping a control using higher order vue components.

Combined example:

<script setup lang="ts">
import {
  controls,
  layouts,
  JsonFormsDialog
  toRenderers
} from "@knime/jsonforms"


const renderers = toRenderers([/**
  Add newly constructed renderers here
*/], [
  controls.dropdownRenderer,
  controls.textRenderer
], [
  layouts.sectionRenderer
])
</script>
<template>
  <JsonFormsDialog :data="..." ... :renderers="renderers" />
</template>

Testing

Types and utility methods for testing are made available in the following way:

import * from "@knime/jsonforms/testing"

Development

Prerequisites

Newer versions may also work, but have not been tested.

Install dependencies

pnpm install

and then use the following commands. For detailed explanations see Vue CLI docs:

Testing

Run unit- and integration-tests individually by

pnpm test:unit
pnpm test:integration

You can generate a coverage report with

pnpm coverage:unit
pnpm coverage:integration

The output can be found in the coverage folder. It contains a browseable html report as well as raw coverage data in LCOV and Clover format, which can be used in analysis software (SonarQube, Jenkins, …).

Running security audit

npm provides a check against known security issues of used dependencies. Run it by calling

pnpm audit

Building

To build the package, use the following command:

pnpm build

Join the Community!

1.12.3

1 year ago

1.12.2

1 year ago

1.12.1

1 year ago

1.12.0

1 year ago

1.11.4

1 year ago

1.11.3

1 year ago

1.11.2

1 year ago

1.11.1

1 year ago

1.11.0

1 year ago

1.10.4

1 year ago

1.10.3

1 year ago

1.10.2

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.9.4

1 year ago

1.9.3

1 year ago

1.9.2

1 year ago

1.9.1

1 year ago

1.9.0

1 year ago

1.8.6

1 year ago

1.8.5

1 year ago

1.8.4

1 year ago

1.8.3

1 year ago

1.8.2

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.6.10

1 year ago

1.6.9

1 year ago

1.6.8

1 year ago

1.6.7

1 year ago

1.6.6

1 year ago

1.6.5

1 year ago

1.6.4

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.14

1 year ago

1.5.13

1 year ago

1.5.12

1 year ago

1.5.11

1 year ago

1.5.10

1 year ago

1.5.9

1 year ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.3.4

1 year ago

1.4.0

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago