1.29.0 • Published 5 months ago

@knime/components v1.29.0

Weekly downloads
-
License
GPL 3 and Additio...
Repository
-
Last release
5 months ago

Image @knime/components

This project contains Vue components & composables, that can be used for the frontend of all KNIME web projects.

Demo

A demo of all contained UI components, icons, CSS colors etc. can be found here: https://knime.github.io/webapps-common/

Installation

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

npm install @knime/components

Setup

SVG loading

Components use SVG files as Vue components. Therefore, you need to use the vite plugin vite-svg-loader in your vite.config.ts:

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

import svgLoader from "vite-svg-loader";
import { svgoConfig } from "@knime/styles/config/svgo.config";

export default defineConfig({
  plugins: [vue(), svgLoader({ svgoConfig })],
  // [...]
});

Usage

To use it in your project, you can import it as follows:

Components

import { DonutChart } from "@knime/components";

or import types as follow:

import type { MenuItem } from "@knime/components";

Composables

import { useClickOutside } from "@knime/components";

Vue

The Vue components expect that the app provides the following:

  • Vue and Consola compatible to the versions defined in package.json
  • global window.consola instance for logging

Nuxt

Additional requirements when used with Nuxt:

Stacking order and z-index

Try to avoid setting z-indices since they can lead to stacking conflicts, especially when shared components are used in many different apps. Many times a z-index is not needed, e.g. elements which use position: absolute; are stacked on top anyway. Additionally, the local stacking order can be controlled by changing the order in the DOM or using ::after instead of ::before pseudo elements.

When the above doesn’t work and you need a z-index, think about

  • if you just want to stack things locally. If yes, set isolation: isolate; on the parent element so you don’t pollute the global stacking context.
  • if it needs to be in the global context and the code you’re editing is in webapps-common, use a CSS variable with default like z-index: var(--z-index-common-modal, 100); so our apps can overwrite it if needed. To see which are available in the shared components, search for --z-index-common- in this repository.

Join the Community!

1.14.0

11 months ago

1.18.1

9 months ago

1.18.5

9 months ago

1.18.4

9 months ago

1.18.3

9 months ago

1.18.2

9 months ago

1.6.1

12 months ago

1.6.0

1 year ago

1.18.8

8 months ago

1.18.7

9 months ago

1.18.6

9 months ago

1.21.0

8 months ago

1.21.1

8 months ago

1.25.0

7 months ago

1.25.1

7 months ago

1.29.0

5 months ago

1.25.4

7 months ago

1.25.2

7 months ago

1.25.3

7 months ago

1.7.4

12 months ago

1.15.0

10 months ago

1.11.1

11 months ago

1.19.0

8 months ago

1.15.4

10 months ago

1.15.3

10 months ago

1.15.2

10 months ago

1.15.1

10 months ago

1.19.4

8 months ago

1.9.1

12 months ago

1.19.3

8 months ago

1.9.0

12 months ago

1.19.2

8 months ago

1.15.6

10 months ago

1.19.1

8 months ago

1.15.5

10 months ago

1.5.2

1 year ago

1.22.0

8 months ago

1.26.0

7 months ago

1.22.1

8 months ago

1.22.2

8 months ago

1.10.0

11 months ago

1.12.3

11 months ago

1.12.2

11 months ago

1.12.1

11 months ago

1.12.0

11 months ago

1.16.1

9 months ago

1.16.0

9 months ago

1.8.2

12 months ago

1.8.1

12 months ago

1.8.0

12 months ago

1.23.0

8 months ago

1.27.0

7 months ago

1.9.3

12 months ago

1.9.2

12 months ago

1.11.0

11 months ago

1.13.1

11 months ago

1.13.0

11 months ago

1.17.1

9 months ago

1.17.0

9 months ago

1.7.3

12 months ago

1.7.2

12 months ago

1.7.1

12 months ago

1.7.0

12 months ago

1.20.0

8 months ago

1.24.1

7 months ago

1.24.2

7 months ago

1.24.0

8 months ago

1.28.1

6 months ago

1.28.2

6 months ago

1.28.0

6 months ago

1.28.5

6 months ago

1.28.6

5 months ago

1.28.3

6 months ago

1.28.4

6 months ago

1.28.7

5 months ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.3.4

1 year ago

1.2.5

1 year ago

1.4.2

1 year ago

1.3.3

1 year ago

1.2.4

1 year ago

1.4.1

1 year ago

1.3.2

1 year ago

1.2.3

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago