1.12.3 • Published 5 months ago

@knime/jsonforms v1.12.3

Weekly downloads
-
License
GPL 3 and Additio...
Repository
-
Last release
5 months 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

5 months ago

1.12.2

5 months ago

1.12.1

5 months ago

1.12.0

6 months ago

1.11.4

6 months ago

1.11.3

6 months ago

1.11.2

6 months ago

1.11.1

6 months ago

1.11.0

6 months ago

1.10.4

6 months ago

1.10.3

6 months ago

1.10.2

7 months ago

1.10.1

7 months ago

1.10.0

7 months ago

1.9.4

7 months ago

1.9.3

7 months ago

1.9.2

7 months ago

1.9.1

7 months ago

1.9.0

7 months ago

1.8.6

7 months ago

1.8.5

7 months ago

1.8.4

7 months ago

1.8.3

7 months ago

1.8.2

7 months ago

1.8.1

7 months ago

1.8.0

7 months ago

1.7.1

7 months ago

1.7.0

7 months ago

1.6.10

8 months ago

1.6.9

8 months ago

1.6.8

8 months ago

1.6.7

8 months ago

1.6.6

8 months ago

1.6.5

8 months ago

1.6.4

8 months ago

1.6.3

8 months ago

1.6.2

8 months ago

1.6.1

8 months ago

1.6.0

8 months ago

1.5.14

8 months ago

1.5.13

8 months ago

1.5.12

8 months ago

1.5.11

8 months ago

1.5.10

9 months ago

1.5.9

9 months ago

1.5.8

9 months ago

1.5.7

9 months ago

1.5.6

9 months ago

1.5.5

9 months ago

1.5.4

9 months ago

1.5.3

9 months ago

1.5.2

9 months ago

1.5.1

9 months ago

1.5.0

9 months ago

1.4.2

9 months ago

1.4.1

9 months ago

1.3.4

9 months ago

1.4.0

9 months ago

1.3.3

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.5

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago