@knime/jsonforms 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/LICENSE +710 -0
  3. package/README.md +125 -0
  4. package/dist/AnyOfTwinlist-GJ6LGkM1.js +17 -0
  5. package/dist/ArrayLayout-CbpSgf0X.js +487 -0
  6. package/dist/ButtonControl-CVu36jz8.js +127 -0
  7. package/dist/CheckboxControl-DYFLb-qW.js +50 -0
  8. package/dist/Checkboxes-DlhdiWWA.js +103 -0
  9. package/dist/CheckboxesControl-DYV72Aua.js +39 -0
  10. package/dist/ColumnFilter-BbweAsmq.js +17 -0
  11. package/dist/ColumnSelect-aw7cYcWC.js +60 -0
  12. package/dist/ComboBoxControl-BqVUWz4q.js +600 -0
  13. package/dist/CredentialsControl-Ci6ZEuKM.js +20 -0
  14. package/dist/CredentialsControlBase-CxYOD3ne.js +110 -0
  15. package/dist/DateControl-ZyQ_vmOW.js +30 -0
  16. package/dist/DateTimeControl-anye7xvC.js +4 -0
  17. package/dist/DropdownControl-JX1LF5Tk.js +4 -0
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-B5dPfH3x.js +171 -0
  19. package/dist/DynamicValuesControl-CFubOaRb.js +127 -0
  20. package/dist/FileChooserControl-Cf_UaWqV.js +605 -0
  21. package/dist/FileExplorerTab-Ba76jD3y.js +3951 -0
  22. package/dist/HorizontalLayout-5irQmhXp.js +39 -0
  23. package/dist/IntegerControl-CqHJWRgn.js +13 -0
  24. package/dist/IntervalControl-BUhs5_lc.js +549 -0
  25. package/dist/LayoutComponentWrapper-CDw9BDq5.js +36 -0
  26. package/dist/LegacyCredentialsControl-DxRZcRVo.js +62 -0
  27. package/dist/LocalFileChooserControl-DxSeiKxg.js +57 -0
  28. package/dist/MenuItems.vue_vue_type_style_index_0_lang-qMVpH9oC.js +464 -0
  29. package/dist/MultiselectListBox-C4ZnJvJJ.js +579 -0
  30. package/dist/NameFilter-D6EI_V08.js +17 -0
  31. package/dist/NodeDialog.vue.d.ts +8 -0
  32. package/dist/NumberControl-DLo0LCsi.js +13 -0
  33. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B69hrnY1.js +43 -0
  34. package/dist/NumberInput-BdL-jZ-i.js +219 -0
  35. package/dist/OneOfDropdown-BmbbuaZk.js +15 -0
  36. package/dist/RadioControl-GbwpOdAy.js +13 -0
  37. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BlImm9is.js +128 -0
  38. package/dist/RichTextControl-CGY3rdM7.js +16895 -0
  39. package/dist/SectionLayout-CqSFyj1K.js +54 -0
  40. package/dist/SimpleButtonControl-BgOrTGEP.js +59 -0
  41. package/dist/SimpleTwinlistControl-ByOlLGIN.js +68 -0
  42. package/dist/SortListControl-Dege54Dj.js +316 -0
  43. package/dist/TextAreaControl-CKviHabr.js +111 -0
  44. package/dist/TextControl-CPL48j4B.js +49 -0
  45. package/dist/TimeControl-CGsLRgR3.js +842 -0
  46. package/dist/TwinlistControl-C4XaH_Xc.js +587 -0
  47. package/dist/TwinlistLoadingInfo-CFlSBQXn.js +1057 -0
  48. package/dist/ValueSwitch-B9oWSkM_.js +138 -0
  49. package/dist/ValueSwitchControl-4ODpL58f.js +13 -0
  50. package/dist/VennDiagramLayout-CabCs-fX.js +104 -0
  51. package/dist/VerticalLayout-D5HeZyKY.js +39 -0
  52. package/dist/VerticalLayoutBase-C0PZ-y5d.js +20 -0
  53. package/dist/arrow-next-CvdR0-WC.js +17 -0
  54. package/dist/arrow-up-Dsq3EgtE.js +30 -0
  55. package/dist/createMissingItem-B00Kg95q.js +4 -0
  56. package/dist/floating-ui.vue.esm-CIFBDytk.js +94 -0
  57. package/dist/getFlattenedSettings-D64OwqpI.js +7 -0
  58. package/dist/index-ZDm2GXeD.js +32714 -0
  59. package/dist/index.d.ts +3 -0
  60. package/dist/knime-jsonforms.js +5 -0
  61. package/dist/layoutComponents/Form.vue.d.ts +2 -0
  62. package/dist/link-BA69Hfx6.js +17 -0
  63. package/dist/loading/LoadingDialog.vue.d.ts +2 -0
  64. package/dist/navigator-BYUFe-z3.js +8 -0
  65. package/dist/style.css +1 -0
  66. package/dist/useHideOnNull-CCfNP3O7.js +42 -0
  67. package/package.json +74 -0
@@ -0,0 +1,138 @@
1
+ import { defineComponent as i, openBlock as l, createElementBlock as d, Fragment as n, renderList as v, normalizeClass as p, createElementVNode as s, toDisplayString as u, renderSlot as m, createCommentVNode as V, pushScopeId as B, popScopeId as $, resolveComponent as S, createBlock as g, withCtx as _, normalizeProps as w, guardReactiveProps as I } from "vue";
2
+ import { _ as c } from "./index-ZDm2GXeD.js";
3
+ let r = 0;
4
+ const k = i({
5
+ name: "BaseRadioButtons",
6
+ props: {
7
+ id: {
8
+ type: String,
9
+ default: null
10
+ },
11
+ modelValue: {
12
+ type: String,
13
+ default: null
14
+ },
15
+ name: {
16
+ type: String,
17
+ default: null
18
+ },
19
+ disabled: {
20
+ default: !1,
21
+ type: Boolean
22
+ },
23
+ possibleValues: {
24
+ type: Array,
25
+ default: () => [],
26
+ validator(e) {
27
+ return Array.isArray(e) ? e.every(
28
+ (t) => t.hasOwnProperty("id") && t.hasOwnProperty("text")
29
+ ) : !1;
30
+ }
31
+ }
32
+ },
33
+ emits: ["update:modelValue"],
34
+ computed: {
35
+ inputName() {
36
+ return this.name || `wc-radio-${this.count}`;
37
+ }
38
+ },
39
+ beforeCreate() {
40
+ r += 1, this.count = r;
41
+ },
42
+ methods: {
43
+ onInput(e) {
44
+ const t = e.target.value;
45
+ this.$emit("update:modelValue", t);
46
+ }
47
+ }
48
+ }), C = (e) => (B("data-v-3daeaa7d"), e = e(), $(), e), R = ["id"], A = ["checked", "value", "name", "disabled"], N = ["title"], P = /* @__PURE__ */ C(() => /* @__PURE__ */ s("br", null, null, -1));
49
+ function z(e, t, f, b, y, h) {
50
+ return l(), d("div", {
51
+ id: e.id,
52
+ role: "radiogroup"
53
+ }, [
54
+ (l(!0), d(n, null, v(e.possibleValues, (a) => (l(), d("label", {
55
+ key: `radio-${a.id}`,
56
+ class: p({ disabled: e.disabled || a.disabled })
57
+ }, [
58
+ s("input", {
59
+ ref_for: !0,
60
+ ref: "input",
61
+ checked: e.modelValue === a.id,
62
+ value: a.id,
63
+ name: e.inputName,
64
+ disabled: e.disabled || a.disabled,
65
+ type: "radio",
66
+ onChange: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o))
67
+ }, null, 40, A),
68
+ s("span", {
69
+ title: a.text
70
+ }, u(a.text), 9, N),
71
+ m(e.$slots, "default", { item: a }, void 0, !0),
72
+ a.subtext ? (l(), d(n, { key: 0 }, [
73
+ P,
74
+ s("span", null, u(a.subtext), 1)
75
+ ], 64)) : V("", !0)
76
+ ], 2))), 128))
77
+ ], 8, R);
78
+ }
79
+ const E = /* @__PURE__ */ c(k, [["render", z], ["__scopeId", "data-v-3daeaa7d"]]), O = i({
80
+ name: "ValueSwitch",
81
+ components: {
82
+ BaseRadioButtons: E
83
+ },
84
+ props: {
85
+ id: {
86
+ type: String,
87
+ default: null
88
+ },
89
+ modelValue: {
90
+ type: String,
91
+ default: null
92
+ },
93
+ name: {
94
+ type: String,
95
+ default: null
96
+ },
97
+ disabled: {
98
+ default: !1,
99
+ type: Boolean
100
+ },
101
+ possibleValues: {
102
+ type: Array,
103
+ default: () => []
104
+ },
105
+ compact: {
106
+ type: Boolean,
107
+ default: !1
108
+ }
109
+ },
110
+ emits: ["update:modelValue"]
111
+ });
112
+ function D(e, t, f, b, y, h) {
113
+ const a = S("BaseRadioButtons");
114
+ return l(), g(a, {
115
+ id: e.id,
116
+ ref: "radioButton",
117
+ "possible-values": e.possibleValues,
118
+ "model-value": e.modelValue,
119
+ name: e.name,
120
+ disabled: e.disabled,
121
+ class: p(["value-switch", {
122
+ disabled: e.disabled,
123
+ compact: e.compact,
124
+ normal: !e.compact
125
+ }]),
126
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.$emit("update:modelValue", o))
127
+ }, {
128
+ default: _((o) => [
129
+ m(e.$slots, "default", w(I(o)), void 0, !0)
130
+ ]),
131
+ _: 3
132
+ }, 8, ["id", "possible-values", "model-value", "name", "disabled", "class"]);
133
+ }
134
+ const U = /* @__PURE__ */ c(O, [["render", D], ["__scopeId", "data-v-6882373b"]]);
135
+ export {
136
+ E as B,
137
+ U as V
138
+ };
@@ -0,0 +1,13 @@
1
+ import { defineComponent as e, openBlock as o, createBlock as p, mergeProps as t } from "vue";
2
+ import { r as n } from "./index-ZDm2GXeD.js";
3
+ import { _ as s } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BlImm9is.js";
4
+ const l = /* @__PURE__ */ e({
5
+ __name: "ValueSwitchControl",
6
+ props: n(),
7
+ setup(a) {
8
+ return (r, m) => (o(), p(s, t(r.$props, { type: "valueSwitch" }), null, 16));
9
+ }
10
+ });
11
+ export {
12
+ l as default
13
+ };
@@ -0,0 +1,104 @@
1
+ import { computed as x, defineComponent as l, useAttrs as y, openBlock as i, createBlock as h, resolveDynamicComponent as D, mergeProps as a, unref as n, createElementBlock as g, createVNode as c, normalizeProps as d, guardReactiveProps as f, withCtx as w } from "vue";
2
+ import { a as L, r as u, _ as v, s as E } from "./index-ZDm2GXeD.js";
3
+ import { V } from "./VerticalLayoutBase-C0PZ-y5d.js";
4
+ const $ = (t) => {
5
+ const { control: e, onChange: o, disabled: s } = L({ props: t }), r = () => s.value || o(!e.value.data), p = "#FFD800", _ = "#D9D9D9", m = "#FFEC80", k = "#ECECEC";
6
+ return {
7
+ fillColor: x(() => e.value.data ? s.value ? m : p : s.value ? k : _),
8
+ onClick: r,
9
+ disabled: s
10
+ };
11
+ }, b = /* @__PURE__ */ l({
12
+ __name: "Part",
13
+ props: {
14
+ ...u(),
15
+ shape: {
16
+ type: String,
17
+ required: !0
18
+ }
19
+ },
20
+ setup(t) {
21
+ const e = t, o = y(), { fillColor: s, onClick: r, disabled: p } = $(e);
22
+ return (_, m) => (i(), h(D(t.shape), a(n(o), {
23
+ fill: n(s),
24
+ class: ["clickable", { disabled: n(p) }],
25
+ onClick: n(r)
26
+ }), null, 16, ["fill", "class", "onClick"]));
27
+ }
28
+ }), C = /* @__PURE__ */ v(b, [["__scopeId", "data-v-52c1596a"]]), B = /* @__PURE__ */ l({
29
+ __name: "Inner",
30
+ props: u(),
31
+ setup(t) {
32
+ const e = t;
33
+ return (o, s) => (i(), h(C, a(e, {
34
+ shape: "path",
35
+ d: "M47.2186 51.6276L47.5469 51.9134L47.8752 51.6276C53.7717 46.495 57.5 38.9326 57.5 30.5C57.5 22.0674 53.7717 14.505 47.8752 9.37237L47.5469 9.08662L47.2186 9.37237C41.3221 14.505 37.5938 22.0674 37.5938 30.5C37.5938 38.9326 41.3221 46.495 47.2186 51.6276Z",
36
+ stroke: "#201E1E"
37
+ }), null, 16));
38
+ }
39
+ }), P = /* @__PURE__ */ l({
40
+ __name: "Left",
41
+ props: u(),
42
+ setup(t) {
43
+ const e = t;
44
+ return (o, s) => (i(), h(C, a(e, {
45
+ shape: "circle",
46
+ cx: "29.5",
47
+ cy: "30.5",
48
+ r: "28",
49
+ stroke: "black"
50
+ }), null, 16));
51
+ }
52
+ }), F = /* @__PURE__ */ l({
53
+ __name: "Right",
54
+ props: u(),
55
+ setup(t) {
56
+ const e = t;
57
+ return (o, s) => (i(), h(C, a(e, {
58
+ shape: "circle",
59
+ cx: "65.5938",
60
+ cy: "30.5",
61
+ r: "28",
62
+ stroke: "black"
63
+ }), null, 16));
64
+ }
65
+ }), I = {
66
+ width: "95",
67
+ height: "60",
68
+ viewBox: "0 0 95 60",
69
+ fill: "none",
70
+ xmlns: "http://www.w3.org/2000/svg"
71
+ }, z = /* @__PURE__ */ l({
72
+ __name: "VennDiagram",
73
+ props: u(),
74
+ setup(t) {
75
+ const e = t, [o, s, r] = e.uischema.elements;
76
+ return (p, _) => (i(), g("svg", I, [
77
+ c(P, d(f({ ...e, uischema: n(s) })), null, 16),
78
+ c(F, d(f({ ...e, uischema: n(r) })), null, 16),
79
+ c(B, d(f({ ...e, uischema: n(o) })), null, 16)
80
+ ]));
81
+ }
82
+ }), R = { class: "horizontal" }, q = /* @__PURE__ */ l({
83
+ __name: "VennDiagramLayout",
84
+ props: u(),
85
+ setup(t) {
86
+ const e = t, [o, s, r] = e.uischema.elements;
87
+ return (p, _) => (i(), g("div", R, [
88
+ c(V, {
89
+ elements: [n(o), n(s), n(r)]
90
+ }, {
91
+ default: w(({ element: m }) => [
92
+ c(n(E), a(e, {
93
+ uischema: m
94
+ }), null, 16, ["uischema"])
95
+ ]),
96
+ _: 1
97
+ }, 8, ["elements"]),
98
+ c(z, a(e, { class: "venn-diagram" }), null, 16)
99
+ ]));
100
+ }
101
+ }), S = /* @__PURE__ */ v(q, [["__scopeId", "data-v-56846c14"]]);
102
+ export {
103
+ S as default
104
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as c, resolveComponent as a, openBlock as t, createBlock as o, withCtx as p } from "vue";
2
+ import { _ as u, s as m, r as i, u as d } from "./index-ZDm2GXeD.js";
3
+ import { V as h } from "./VerticalLayoutBase-C0PZ-y5d.js";
4
+ const y = c({
5
+ name: "VerticalLayout",
6
+ components: {
7
+ DispatchRenderer: m,
8
+ VerticalLayoutBase: h
9
+ },
10
+ props: {
11
+ ...i()
12
+ },
13
+ setup(e) {
14
+ return d(e);
15
+ }
16
+ }), f = y;
17
+ function $(e, L, V, _, B, b) {
18
+ const r = a("DispatchRenderer"), s = a("VerticalLayoutBase");
19
+ return t(), o(s, {
20
+ elements: e.layout.uischema.elements
21
+ }, {
22
+ default: p(({ element: n, index: l }) => [
23
+ (t(), o(r, {
24
+ key: `${e.layout.path}-${l}`,
25
+ schema: e.layout.schema,
26
+ uischema: n,
27
+ path: e.layout.path,
28
+ enabled: e.layout.enabled,
29
+ renderers: e.layout.renderers,
30
+ cells: e.layout.cells
31
+ }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
32
+ ]),
33
+ _: 1
34
+ }, 8, ["elements"]);
35
+ }
36
+ const R = /* @__PURE__ */ u(f, [["render", $]]);
37
+ export {
38
+ R as default
39
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as a, openBlock as r, createElementBlock as o, Fragment as n, renderList as c, renderSlot as l } from "vue";
2
+ import { _ } from "./index-ZDm2GXeD.js";
3
+ const p = { class: "vertical-layout" }, m = /* @__PURE__ */ a({
4
+ __name: "VerticalLayoutBase",
5
+ props: {
6
+ elements: {}
7
+ },
8
+ setup(u) {
9
+ return (e, i) => (r(), o("div", p, [
10
+ (r(!0), o(n, null, c(e.elements, (s, t) => l(e.$slots, "default", {
11
+ key: t,
12
+ element: s,
13
+ index: t
14
+ }, void 0, !0)), 128))
15
+ ]));
16
+ }
17
+ }), v = /* @__PURE__ */ _(m, [["__scopeId", "data-v-8b310c46"]]);
18
+ export {
19
+ v as V
20
+ };
@@ -0,0 +1,17 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ const n = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "#000",
6
+ "stroke-linejoin": "round",
7
+ viewBox: "0 0 32 32"
8
+ }, r = /* @__PURE__ */ t("path", { d: "m10.5 5 11 11-11 11" }, null, -1), c = [
9
+ r
10
+ ];
11
+ function s(l, i) {
12
+ return e(), o("svg", n, [...c]);
13
+ }
14
+ const _ = { render: s };
15
+ export {
16
+ _ as A
17
+ };
@@ -0,0 +1,30 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as n } from "vue";
2
+ const s = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ fill: "none",
5
+ stroke: "#000",
6
+ "stroke-linejoin": "round",
7
+ viewBox: "0 0 32 32"
8
+ }, c = /* @__PURE__ */ n("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1), i = [
9
+ c
10
+ ];
11
+ function l(t, r) {
12
+ return o(), e("svg", s, [...i]);
13
+ }
14
+ const a = { render: l }, _ = {
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ fill: "none",
17
+ stroke: "#000",
18
+ "stroke-linejoin": "round",
19
+ viewBox: "0 0 32 32"
20
+ }, d = /* @__PURE__ */ n("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1), w = [
21
+ d
22
+ ];
23
+ function h(t, r) {
24
+ return o(), e("svg", _, [...w]);
25
+ }
26
+ const p = { render: h };
27
+ export {
28
+ p as A,
29
+ a
30
+ };
@@ -0,0 +1,4 @@
1
+ const e = (t) => ({ id: t, text: `(MISSING) ${String(t)}`, invalid: !0 });
2
+ export {
3
+ e as c
4
+ };
@@ -0,0 +1,94 @@
1
+ import { ag as F } from "./index-ZDm2GXeD.js";
2
+ import { computed as u, unref as i, ref as s, shallowRef as j, watch as g, getCurrentScope as k, onScopeDispose as q, shallowReadonly as r } from "vue";
3
+ function M(t) {
4
+ var a;
5
+ return (a = t == null ? void 0 : t.$el) != null ? a : t;
6
+ }
7
+ function C(t) {
8
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
9
+ }
10
+ function S(t, a) {
11
+ const n = C(t);
12
+ return Math.round(a * n) / n;
13
+ }
14
+ function G(t, a, n) {
15
+ n === void 0 && (n = {});
16
+ const h = n.whileElementsMounted, x = u(() => {
17
+ var e;
18
+ return (e = i(n.open)) != null ? e : !0;
19
+ }), D = u(() => i(n.middleware)), d = u(() => {
20
+ var e;
21
+ return (e = i(n.placement)) != null ? e : "bottom";
22
+ }), m = u(() => {
23
+ var e;
24
+ return (e = i(n.strategy)) != null ? e : "absolute";
25
+ }), V = u(() => {
26
+ var e;
27
+ return (e = i(n.transform)) != null ? e : !0;
28
+ }), o = u(() => M(t.value)), l = u(() => M(a.value)), p = s(0), w = s(0), c = s(m.value), E = s(d.value), O = j({}), y = s(!1), b = u(() => {
29
+ const e = {
30
+ position: c.value,
31
+ left: "0",
32
+ top: "0"
33
+ };
34
+ if (!l.value)
35
+ return e;
36
+ const R = S(l.value, p.value), _ = S(l.value, w.value);
37
+ return V.value ? {
38
+ ...e,
39
+ transform: "translate(" + R + "px, " + _ + "px)",
40
+ ...C(l.value) >= 1.5 && {
41
+ willChange: "transform"
42
+ }
43
+ } : {
44
+ position: c.value,
45
+ left: R + "px",
46
+ top: _ + "px"
47
+ };
48
+ });
49
+ let f;
50
+ function v() {
51
+ o.value == null || l.value == null || F(o.value, l.value, {
52
+ middleware: D.value,
53
+ placement: d.value,
54
+ strategy: m.value
55
+ }).then((e) => {
56
+ p.value = e.x, w.value = e.y, c.value = e.strategy, E.value = e.placement, O.value = e.middlewareData, y.value = !0;
57
+ });
58
+ }
59
+ function P() {
60
+ typeof f == "function" && (f(), f = void 0);
61
+ }
62
+ function $() {
63
+ if (P(), h === void 0) {
64
+ v();
65
+ return;
66
+ }
67
+ if (o.value != null && l.value != null) {
68
+ f = h(o.value, l.value, v);
69
+ return;
70
+ }
71
+ }
72
+ function B() {
73
+ x.value || (y.value = !1);
74
+ }
75
+ return g([D, d, m], v, {
76
+ flush: "sync"
77
+ }), g([o, l], $, {
78
+ flush: "sync"
79
+ }), g(x, B, {
80
+ flush: "sync"
81
+ }), k() && q(P), {
82
+ x: r(p),
83
+ y: r(w),
84
+ strategy: r(c),
85
+ placement: r(E),
86
+ middlewareData: r(O),
87
+ isPositioned: r(y),
88
+ floatingStyles: b,
89
+ update: v
90
+ };
91
+ }
92
+ export {
93
+ G as u
94
+ };
@@ -0,0 +1,7 @@
1
+ const g = ({ view: t, model: e }) => ({
2
+ ...t,
3
+ ...e
4
+ });
5
+ export {
6
+ g
7
+ };