@knime/jsonforms 1.15.0 → 1.15.1

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 (117) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-Cqwayw73.js → Button-B9RSLVI2.js} +8 -7
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-R0DlbAdT.js → ComboBoxControl-2r1FWcy-.js} +234 -165
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/{DateTimeInput-Cs0KqlOS.js → DateTimeInput-DcwhvMD2.js} +421 -377
  14. package/dist/{Dropdown-BEx-cvXH.js → Dropdown-D49sEHBa.js} +140 -85
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-OkFB9VHZ.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CMTJnAWr.js → MultiselectListBox-CfdPbcn1.js} +96 -72
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-BepS3tAK.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CE6whfV5.js → RichTextControl-B1mJMs1e.js} +4126 -3777
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js → SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js} +5456 -5284
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-DdH9cM67.js → _baseEach-CWap1NWh.js} +2 -2
  58. package/dist/{_baseIteratee-BGt-t7Os.js → _baseIteratee-D0MXvnuf.js} +3 -3
  59. package/dist/{_getTag-DAFySze4.js → _getTag-BvpAzjaz.js} +1 -1
  60. package/dist/{arrow-dropdown-BAFsD8Su.js → arrow-dropdown-eS-nVNCv.js} +7 -1
  61. package/dist/{arrow-next-BQVCxGb8.js → arrow-next-BmOStWql.js} +7 -1
  62. package/dist/{close-DGt8x-x_.js → close-0dYG2oDA.js} +7 -1
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.js +134 -108
  65. package/dist/{localTimeUtils-NIKgHnIr.js → localTimeUtils-CfchSrLG.js} +1 -1
  66. package/dist/{reload-DCdbNLa2.js → reload-57Xc2t-6.js} +7 -1
  67. package/dist/testing.js +2 -2
  68. package/dist/{toString-BhubvA3m.js → toString-C-X8cE7K.js} +1 -1
  69. package/dist/{useBuiltinValidations-Boxrm71q.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  70. package/dist/{usePossibleValues-DXuWWBh_.js → usePossibleValues-DTVXBGRC.js} +1 -1
  71. package/package.json +4 -4
  72. package/dist/AnyOfTwinlist-Co_sJAsc.js +0 -22
  73. package/dist/CheckboxControl-C10_DX1N.js +0 -40
  74. package/dist/Checkboxes-DWOxHiUX.js +0 -103
  75. package/dist/CheckboxesControl-BMRFgmO_.js +0 -38
  76. package/dist/DateControl-DAGAM92B.js +0 -29
  77. package/dist/DateTimeControl-DJhIb_U4.js +0 -45
  78. package/dist/DateTimeFormatInput-BhLQzC-P.js +0 -373
  79. package/dist/DateTimeFormatPickerControl-V7pxRYaW.js +0 -40
  80. package/dist/DateTimeFormatPickerWithTypeControl-3fa75rGw.js +0 -76
  81. package/dist/DropdownControl-DEIA5VD4.js +0 -31
  82. package/dist/HorizontalLayout-DCfhMNq4.js +0 -25
  83. package/dist/IntegerControl-Om8J7hch.js +0 -20
  84. package/dist/IntervalControl-B7UbyyD-.js +0 -545
  85. package/dist/LoadingDropdown-CINkq_Sw.js +0 -40
  86. package/dist/ManualTwinlistControl-BLTfr2gT.js +0 -79
  87. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +0 -31
  88. package/dist/MultimodeTwinlistControl-BsFqHRFM.js +0 -459
  89. package/dist/NameFilter-d5k6rDVY.js +0 -24
  90. package/dist/NumberControl-Kc3hvVef.js +0 -20
  91. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +0 -50
  92. package/dist/OneOfDropdown-CLwVXrbC.js +0 -33
  93. package/dist/RadioControl-DpziR8nA.js +0 -24
  94. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +0 -104
  95. package/dist/SectionHeading-D7znCZXu.js +0 -19
  96. package/dist/SectionLayout-BhXDOzqB.js +0 -46
  97. package/dist/SettingsSubPanel-x9uWGoiu.js +0 -5
  98. package/dist/SettingsSubPanelLayout-BPHBM5n5.js +0 -62
  99. package/dist/SimpleButtonControl-DfCSlgZS.js +0 -61
  100. package/dist/SimpleTwinlistControl-CBalniCf.js +0 -25
  101. package/dist/SingleSelectControl-DC4w0ata.js +0 -58
  102. package/dist/SingleSelectListBoxControl-CKj-p8jZ.js +0 -232
  103. package/dist/SortListControl-BIUyPjCi.js +0 -377
  104. package/dist/StyledListItem-D-HJWfo5.js +0 -72
  105. package/dist/TextAreaControl-D28TQZEY.js +0 -108
  106. package/dist/TextControl-DUDBWcHy.js +0 -4
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js +0 -47
  108. package/dist/TimeControl-HRooO_z3.js +0 -36
  109. package/dist/TwinlistControlBase-Brfh5pqZ.js +0 -40
  110. package/dist/TwinlistLoadingInfo-C4Tta00d.js +0 -946
  111. package/dist/TypedStringFilter-CdvgPKhD.js +0 -26
  112. package/dist/ValueSwitch-W4y1YvNM.js +0 -131
  113. package/dist/ValueSwitchControl-BaXH8Cjx.js +0 -20
  114. package/dist/VerticalLayout-ChAmRKNj.js +0 -30
  115. package/dist/VerticalLayoutBase-DAk4vfH5.js +0 -20
  116. package/dist/ZonedDateTimeControl-Qb57KmMT.js +0 -69
  117. package/dist/svgWithTitle-CnTmPYAB.js +0 -18
@@ -1,129 +1,155 @@
1
- import { defineComponent as c, ref as i, onMounted as k, createElementBlock as v, createCommentVNode as P, openBlock as u, createElementVNode as D, provide as T, computed as x, watch as C, createBlock as E, Suspense as A, withCtx as d, createVNode as l, renderSlot as g, unref as w, nextTick as B } from "vue";
2
- import { _ as y, p as j, F, s as M, U as O, i as I } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
- import { E as W, L as Z, a as ee, c as te, f as oe, e as se, d as ae, g as re, h as ne, k as de, l as le, j as ie, m as ue, b as ce, n as pe, t as me, u as fe, w as _e } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
4
- import { default as he } from "./SimpleButtonControl-DfCSlgZS.js";
5
- import { _ as De } from "./TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js";
6
- import { V as Se } from "./VerticalLayoutBase-DAk4vfH5.js";
7
- import { S as be } from "./SectionHeading-D7znCZXu.js";
8
- import { S as Pe } from "./SettingsSubPanel-x9uWGoiu.js";
9
- const R = {
10
- key: 0,
11
- class: "loading-dialog skeleton-wrapper"
12
- }, V = 200, $ = /* @__PURE__ */ c({
1
+ import { defineComponent as h, ref as f, onMounted as k, createElementBlock as L, createCommentVNode as P, openBlock as g, createElementVNode as E, provide as w, computed as C, watch as T, nextTick as A, createBlock as F, Suspense as O, withCtx as p, createVNode as m, renderSlot as S } from "vue";
2
+ import { _ as j, p as M, F as B, U as I, i as J, s as N } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
+ import { E as te, L as oe, a as re, c as se, f as ae, e as ne, d as de, g as le, h as ie, k as ce, l as ue, j as pe, m as me, b as _e, n as fe, t as ge, u as he, w as De } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
4
+ import { default as be } from "./SimpleButtonControl-DOSd92Kq.js";
5
+ import { default as Se } from "./TextControl-w9vrCC1T.js";
6
+ import { V as Le } from "./VerticalLayoutBase-CpN-KONq.js";
7
+ import { S as Ee } from "./SectionHeading-B6JkPyMh.js";
8
+ import { S as ke } from "./SettingsSubPanel-DToMRoLu.js";
9
+ const x = 200, U = /* @__PURE__ */ h({
13
10
  __name: "LoadingDialog",
14
- setup(r) {
15
- const s = i(!1);
16
- return k(() => {
11
+ setup(s, { expose: a }) {
12
+ a();
13
+ const r = f(!1);
14
+ k(() => {
17
15
  setTimeout(() => {
18
- s.value = !0;
19
- }, V);
20
- }), (p, o) => s.value ? (u(), v("div", R, o[0] || (o[0] = [
21
- D("div", { class: "loading-dialog-content skeleton" }, null, -1)
22
- ]))) : P("", !0);
16
+ r.value = !0;
17
+ }, x);
18
+ });
19
+ const t = { LOADING_DIALOG_DELAY: x, afterDelay: r };
20
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
23
21
  }
24
- }), N = /* @__PURE__ */ y($, [["__scopeId", "data-v-7dabb11d"]]), U = { class: "dialog" }, h = "EXPOSED_METHOD", J = /* @__PURE__ */ c({
22
+ }), q = {
23
+ key: 0,
24
+ class: "loading-dialog skeleton-wrapper"
25
+ };
26
+ function R(s, a, r, t, d, l) {
27
+ return t.afterDelay ? (g(), L("div", q, a[0] || (a[0] = [
28
+ E(
29
+ "div",
30
+ { class: "loading-dialog-content skeleton" },
31
+ null,
32
+ -1
33
+ /* CACHED */
34
+ )
35
+ ]))) : P("v-if", !0);
36
+ }
37
+ const V = /* @__PURE__ */ j(U, [["render", R], ["__scopeId", "data-v-4e86d71a"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/loading/LoadingDialog.vue"]]), _ = "EXPOSED_METHOD", $ = /* @__PURE__ */ h({
25
38
  __name: "JsonFormsDialog",
26
39
  props: {
27
- schema: {},
28
- uischema: {},
29
- data: {},
30
- renderers: {}
40
+ schema: { type: Object, required: !0 },
41
+ uischema: { type: Object, required: !0 },
42
+ data: { type: null, required: !0 },
43
+ renderers: { type: Array, required: !0 }
31
44
  },
32
45
  emits: ["updateData", "trigger", "change", "alert", "stateProviderListener"],
33
- setup(r, { expose: s, emit: p }) {
34
- const o = p, S = (e, t, n) => (t.type === O && // @ts-expect-error source doesn't exist on type object
35
- t.context?.source !== h && setTimeout(() => B(() => o("updateData", t.path))), n(e, t)), L = (e) => {
36
- o("change", e);
46
+ setup(s, { expose: a, emit: r }) {
47
+ const t = r, d = (e, o, u) => (o.type === I && // @ts-expect-error source doesn't exist on type object
48
+ o.context?.source !== _ && setTimeout(() => A(() => t("updateData", o.path))), u(e, o)), l = (e) => {
49
+ t("change", e);
50
+ }, D = {
51
+ trigger: (e) => t("trigger", e),
52
+ addStateProviderListener: (e, o) => t("stateProviderListener", e, o),
53
+ sendAlert: (e) => t("alert", e)
37
54
  };
38
- Object.entries({
39
- trigger: (e) => o("trigger", e),
40
- addStateProviderListener: (e, t) => o("stateProviderListener", e, t),
41
- sendAlert: (e) => o("alert", e)
42
- }).forEach(([e, t]) => T(e, t));
43
- const a = i(null), m = [], f = (e, t) => {
44
- a.value.dispatch(
45
- I.update(e, () => t, {
46
- source: h
55
+ Object.entries(D).forEach(([e, o]) => w(e, o));
56
+ const n = f(null), i = [], c = (e, o) => {
57
+ n.value.dispatch(
58
+ J.update(e, () => o, {
59
+ source: _
47
60
  })
48
61
  );
49
- }, b = x(() => a.value !== null);
50
- C(
51
- () => b.value,
52
- (e) => e && m.forEach(
53
- ({ path: t, value: n }) => f(t, n)
62
+ }, v = C(() => n.value !== null);
63
+ T(
64
+ () => v.value,
65
+ (e) => e && i.forEach(
66
+ ({ path: o, value: u }) => c(o, u)
54
67
  )
55
- ), s({
56
- updateData: (e, t) => {
57
- a.value ? f(e, t) : m.push({ path: e, value: t });
68
+ ), a({
69
+ updateData: (e, o) => {
70
+ n.value ? c(e, o) : i.push({ path: e, value: o });
58
71
  }
59
72
  });
60
- const _ = i(null);
61
- return j(_), (e, t) => (u(), v("div", U, [
62
- D("div", {
63
- ref_key: "subPanelTeleportDest",
64
- ref: _
65
- }, null, 512),
66
- (u(), E(A, null, {
67
- fallback: d(() => [
68
- l(N)
69
- ]),
70
- default: d(() => [
71
- l(F, null, {
72
- default: d(() => [
73
- g(e.$slots, "top", {}, void 0, !0),
74
- l(w(M), {
75
- ref_key: "jsonforms",
76
- ref: a,
77
- data: e.data,
78
- schema: e.schema,
79
- uischema: e.uischema,
80
- renderers: e.renderers,
81
- middleware: S,
82
- onChange: L
83
- }, null, 8, ["data", "schema", "uischema", "renderers"]),
84
- g(e.$slots, "bottom", {}, void 0, !0)
85
- ]),
86
- _: 3
87
- })
88
- ]),
89
- _: 3
90
- }))
91
- ]));
73
+ const b = f(null);
74
+ M(b);
75
+ const y = { emit: t, exposedMethodSource: _, updateDataMiddleware: d, onSettingsChanged: l, provided: D, jsonforms: n, toBeUpdatedBeforeJsonforms: i, dispatchUpdate: c, jsonFormsIsPresent: v, subPanelTeleportDest: b, get JsonForms() {
76
+ return N;
77
+ }, Form: B, LoadingDialog: V };
78
+ return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
92
79
  }
93
- }), Y = /* @__PURE__ */ y(J, [["__scopeId", "data-v-fe2b9614"]]), G = {
80
+ }), H = { class: "dialog" }, G = { ref: "subPanelTeleportDest" };
81
+ function K(s, a, r, t, d, l) {
82
+ return g(), L("div", H, [
83
+ P(" Here so that the SettingsSubPanel can teleport somewhere sensible "),
84
+ E(
85
+ "div",
86
+ G,
87
+ null,
88
+ 512
89
+ /* NEED_PATCH */
90
+ ),
91
+ (g(), F(O, null, {
92
+ fallback: p(() => [
93
+ m(t.LoadingDialog)
94
+ ]),
95
+ default: p(() => [
96
+ m(t.Form, null, {
97
+ default: p(() => [
98
+ S(s.$slots, "top", {}, void 0, !0),
99
+ m(t.JsonForms, {
100
+ ref: "jsonforms",
101
+ data: r.data,
102
+ schema: r.schema,
103
+ uischema: r.uischema,
104
+ renderers: r.renderers,
105
+ middleware: t.updateDataMiddleware,
106
+ onChange: t.onSettingsChanged
107
+ }, null, 8, ["data", "schema", "uischema", "renderers"]),
108
+ S(s.$slots, "bottom", {}, void 0, !0)
109
+ ]),
110
+ _: 3
111
+ /* FORWARDED */
112
+ })
113
+ ]),
114
+ _: 3
115
+ /* FORWARDED */
116
+ }))
117
+ ]);
118
+ }
119
+ const Q = /* @__PURE__ */ j($, [["render", K], ["__scopeId", "data-v-0353dd54"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/JsonFormsDialog.vue"]]), X = {
94
120
  layout: {
95
121
  type: Object,
96
122
  required: !0
97
123
  }
98
- }, z = (r) => c(r, {
99
- props: G
124
+ }, W = (s) => h(s, {
125
+ props: X
100
126
  });
101
127
  export {
102
- W as ErrorMessages,
103
- F as Form,
104
- Y as JsonFormsDialog,
105
- Z as LabeledControl,
106
- be as SectionHeading,
107
- Pe as SettingsSubPanel,
108
- he as SimpleButtonControl,
109
- De as TextControl,
110
- Se as VerticalLayoutBase,
111
- ee as controlProps,
112
- te as controlToRenderer,
113
- oe as controls,
114
- se as defaultRenderers,
115
- ae as defineControl,
116
- z as defineLayout,
117
- re as getAsyncSetupMethod,
118
- ne as handleAsyncComponents,
119
- de as inputFormats,
120
- G as layoutProps,
121
- le as layoutToRenderer,
122
- ie as layouts,
123
- ue as mapControls,
124
- ce as mapLayouts,
125
- pe as priorityRanks,
126
- me as toRenderers,
127
- fe as useProvidedState,
128
- _e as withLabel
128
+ te as ErrorMessages,
129
+ B as Form,
130
+ Q as JsonFormsDialog,
131
+ oe as LabeledControl,
132
+ Ee as SectionHeading,
133
+ ke as SettingsSubPanel,
134
+ be as SimpleButtonControl,
135
+ Se as TextControl,
136
+ Le as VerticalLayoutBase,
137
+ re as controlProps,
138
+ se as controlToRenderer,
139
+ ae as controls,
140
+ ne as defaultRenderers,
141
+ de as defineControl,
142
+ W as defineLayout,
143
+ le as getAsyncSetupMethod,
144
+ ie as handleAsyncComponents,
145
+ ce as inputFormats,
146
+ X as layoutProps,
147
+ ue as layoutToRenderer,
148
+ pe as layouts,
149
+ me as mapControls,
150
+ _e as mapLayouts,
151
+ fe as priorityRanks,
152
+ ge as toRenderers,
153
+ he as useProvidedState,
154
+ De as withLabel
129
155
  };
@@ -1,4 +1,4 @@
1
- import { r as q, t as k, g as F, a as Z, b as j, c as z, d as _, e as V, l as K, i as A, f as J, s as ee, h as te, j as re, k as L, m as ae, n as I, o as P, p as ne } from "./DateTimeInput-Cs0KqlOS.js";
1
+ import { r as q, t as k, g as F, a as Z, b as j, c as z, d as _, e as V, l as K, i as A, f as J, s as ee, h as te, j as re, k as L, m as ae, n as I, o as P, p as ne } from "./DateTimeInput-DcwhvMD2.js";
2
2
  var ie = 864e5;
3
3
  function oe(n) {
4
4
  q(1, arguments);
@@ -8,7 +8,13 @@ const r = {
8
8
  };
9
9
  function l(c, e) {
10
10
  return n(), o("svg", r, e[0] || (e[0] = [
11
- t("path", { d: "m11.9 22.3 2.7 4.4-4.5 2.8m4.5-2.8C9 26 4.7 21.7 4.7 16c0-5.1 3.4-9.4 8.1-10.8M20 9.7l-2.6-4.4 4.5-2.8m-4.5 2.8c5.6.7 9.9 5 9.9 10.7 0 5.1-3.4 9.4-8.1 10.8" }, null, -1)
11
+ t(
12
+ "path",
13
+ { d: "m11.9 22.3 2.7 4.4-4.5 2.8m4.5-2.8C9 26 4.7 21.7 4.7 16c0-5.1 3.4-9.4 8.1-10.8M20 9.7l-2.6-4.4 4.5-2.8m-4.5 2.8c5.6.7 9.9 5 9.9 10.7 0 5.1-3.4 9.4-8.1 10.8" },
14
+ null,
15
+ -1
16
+ /* CACHED */
17
+ )
12
18
  ]));
13
19
  }
14
20
  const m = { render: l };
package/dist/testing.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as yh from "vue";
2
2
  import { ssrUtils as zi, initDirectivesForSSR as Z_, nextTick as wo, defineComponent as wi, computed as Lr, h as An, shallowReactive as em, reactive as tm, ref as vh, createApp as nm, transformVNodeArgs as rm, setDevtoolsHook as im, isRef as sm, TransitionGroup as om, Transition as am, BaseTransition as lm } from "vue";
3
- import { o as cm, q as um, r as fm, e as hm } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
4
- import { b as pm } from "./_baseIteratee-BGt-t7Os.js";
3
+ import { o as cm, q as um, r as fm, e as hm } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
4
+ import { b as pm } from "./_baseIteratee-D0MXvnuf.js";
5
5
  function dm(e, t) {
6
6
  return e > t;
7
7
  }
@@ -1,4 +1,4 @@
1
- import { o as g, S as s } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
1
+ import { o as g, S as s } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
2
2
  import { i as l } from "./isArray-WzO_os3q.js";
3
3
  function p(r, t) {
4
4
  for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
@@ -1,5 +1,5 @@
1
1
  import { onUnmounted as u, toRef as p, computed as d } from "vue";
2
- import { u as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
2
+ import { u as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
3
  const h = (t = {}) => t.validation || null, m = (t) => t.replace(/^validation\./, ""), v = (t) => {
4
4
  const a = (t.providedOptions ?? []).filter(
5
5
  (e) => e.startsWith("validation.")
@@ -1,5 +1,5 @@
1
1
  import { computed as u } from "vue";
2
- import { u as o } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
2
+ import { u as o } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
3
  const t = (s) => {
4
4
  const e = u(() => s.value.uischema), l = o(e, "possibleValues");
5
5
  return { possibleValues: u(() => e.value.providedOptions?.includes("possibleValues") ? l.value : e.value.options?.possibleValues ?? []) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "Internal JSON Forms integration for frontend KNIME projects",
5
5
  "homepage": "https://knime.github.io/webapps-common/",
6
6
  "license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
@@ -15,10 +15,10 @@
15
15
  "focus-trap-vue": "4.0.3",
16
16
  "tabbable": "6.2.0",
17
17
  "uuid": "10.0.0",
18
- "@knime/components": "1.34.0",
19
- "@knime/rich-text-editor": "1.7.0",
18
+ "@knime/components": "1.34.1",
19
+ "@knime/utils": "1.5.4",
20
20
  "@knime/styles": "1.11.0",
21
- "@knime/utils": "1.5.4"
21
+ "@knime/rich-text-editor": "1.7.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "consola": "3.x",
@@ -1,22 +0,0 @@
1
- import { defineComponent as s, createBlock as t, openBlock as p, mergeProps as a, unref as l } from "vue";
2
- import { o as r } from "./index-Blg1O3Fz.js";
3
- import { T as i } from "./TwinlistControlBase-Brfh5pqZ.js";
4
- const y = /* @__PURE__ */ s({
5
- __name: "AnyOfTwinlist",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(o) {
16
- const e = o.control.schema.anyOf.map(r);
17
- return (n, u) => (p(), t(i, a(n.$props, { "possible-values": l(e) }), null, 16, ["possible-values"]));
18
- }
19
- });
20
- export {
21
- y as default
22
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as n, ref as s, createElementBlock as r, openBlock as d, createVNode as u, renderSlot as l, unref as i, withCtx as p, createTextVNode as c, toDisplayString as v } from "vue";
2
- import { C as m, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
- const f = /* @__PURE__ */ n({
4
- __name: "CheckboxControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- labelForId: {},
11
- isValid: { type: Boolean },
12
- messages: {},
13
- onRegisterValidation: { type: Function }
14
- },
15
- setup(h) {
16
- const t = s(!1);
17
- return (e, o) => (d(), r("div", {
18
- class: "checkbox-input",
19
- onMouseover: o[0] || (o[0] = (a) => t.value = !0),
20
- onMouseleave: o[1] || (o[1] = (a) => t.value = !1)
21
- }, [
22
- u(i(m), {
23
- class: "checkbox",
24
- disabled: e.disabled,
25
- "model-value": e.control.data,
26
- "onUpdate:modelValue": e.changeValue
27
- }, {
28
- default: p(() => [
29
- c(v(e.control.label) + " ", 1),
30
- l(e.$slots, "icon", {}, void 0, !0)
31
- ]),
32
- _: 3
33
- }, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
34
- l(e.$slots, "buttons", { hover: t.value }, void 0, !0)
35
- ], 32));
36
- }
37
- }), k = /* @__PURE__ */ b(f, [["__scopeId", "data-v-c26e0308"]]);
38
- export {
39
- k as default
40
- };
@@ -1,103 +0,0 @@
1
- import { _ as c, C as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
2
- import { resolveComponent as f, createElementBlock as s, openBlock as o, normalizeClass as h, Fragment as m, renderList as p, createBlock as x, withCtx as b, createTextVNode as V, toDisplayString as y } from "vue";
3
- const _ = {
4
- name: "Checkboxes",
5
- components: {
6
- Checkbox: u
7
- },
8
- props: {
9
- /**
10
- * List of possible values. Each item must have an `id` and a `text` property.
11
- * @example
12
- * [{
13
- * id: 'pdf',
14
- * text: 'PDF'
15
- * }, {
16
- * id: 'XLS',
17
- * text: 'Excel',
18
- * }]
19
- */
20
- possibleValues: {
21
- type: Array,
22
- default: () => [],
23
- validator(e) {
24
- return Array.isArray(e) ? e.every(
25
- (a) => a.hasOwnProperty("id") && a.hasOwnProperty("text")
26
- ) : !1;
27
- }
28
- },
29
- /**
30
- * Controls the alignment
31
- */
32
- alignment: {
33
- type: String,
34
- default: "horizontal",
35
- validator(e) {
36
- return ["horizontal", "vertical"].includes(e);
37
- }
38
- },
39
- disabled: {
40
- type: Boolean,
41
- default: !1
42
- },
43
- isValid: {
44
- default: !0,
45
- type: Boolean
46
- },
47
- /**
48
- * selected value (which is a list of ids of entries)
49
- */
50
- modelValue: {
51
- type: Array,
52
- default: () => []
53
- }
54
- },
55
- emits: ["update:modelValue"],
56
- methods: {
57
- validate() {
58
- const e = !this.possibleValues.some((a) => a.invalid);
59
- return {
60
- isValid: e,
61
- errorMessage: e ? null : "One or more of the selected items is invalid."
62
- };
63
- },
64
- onUpdateModelValue(e, a) {
65
- let t = Array.from(this.modelValue);
66
- a ? t.indexOf(e) === -1 && t.push(e) : t = t.filter((r) => r !== e), consola.trace("Checkboxes value changed to", t), this.$emit("update:modelValue", t);
67
- },
68
- /**
69
- * Is at least one checkbox checked?
70
- * @returns {boolean}
71
- */
72
- hasSelection() {
73
- return this.$refs.boxes.some((e) => e.isChecked());
74
- }
75
- }
76
- };
77
- function k(e, a, t, r, v, d) {
78
- const i = f("Checkbox");
79
- return o(), s("div", {
80
- class: h(["checkboxes", t.alignment])
81
- }, [
82
- (o(!0), s(m, null, p(t.possibleValues, (l) => (o(), x(i, {
83
- ref_for: !0,
84
- ref: "boxes",
85
- key: `checkboxes-${l.id}`,
86
- "model-value": t.modelValue.indexOf(l.id) > -1,
87
- title: l.text,
88
- invalid: l.invalid,
89
- disabled: t.disabled,
90
- class: "box",
91
- "onUpdate:modelValue": (n) => d.onUpdateModelValue(l.id, n)
92
- }, {
93
- default: b(() => [
94
- V(y(l.text), 1)
95
- ]),
96
- _: 2
97
- }, 1032, ["model-value", "title", "invalid", "disabled", "onUpdate:modelValue"]))), 128))
98
- ], 2);
99
- }
100
- const A = /* @__PURE__ */ c(_, [["render", k], ["__scopeId", "data-v-4567f860"]]);
101
- export {
102
- A as C
103
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as c, computed as n, ref as r, toRef as u, onMounted as p, createBlock as d, createCommentVNode as m, openBlock as b, unref as f } from "vue";
2
- import { o as h } from "./index-Blg1O3Fz.js";
3
- import { u as v } from "./usePossibleValues-DXuWWBh_.js";
4
- import { C as V } from "./Checkboxes-DWOxHiUX.js";
5
- import { _ as y } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
6
- const C = /* @__PURE__ */ c({
7
- __name: "CheckboxesControl",
8
- props: {
9
- control: {},
10
- handleChange: { type: Function },
11
- changeValue: { type: Function },
12
- disabled: { type: Boolean },
13
- isValid: { type: Boolean },
14
- onRegisterValidation: { type: Function },
15
- labelForId: {}
16
- },
17
- setup(s) {
18
- const o = s, t = n(
19
- () => o.control.uischema.options?.checkboxLayout
20
- ), a = r(null), { possibleValues: i } = v(u(o, "control")), l = n(() => a.value ?? i.value);
21
- return p(() => {
22
- a.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(h) : null;
23
- }), (e, k) => l.value ? (b(), d(f(V), {
24
- key: 0,
25
- id: e.labelForId,
26
- class: "checkboxes",
27
- "possible-values": l.value,
28
- alignment: t.value,
29
- disabled: e.disabled,
30
- "model-value": e.control.data,
31
- "is-valid": e.isValid,
32
- "onUpdate:modelValue": e.changeValue
33
- }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "is-valid", "onUpdate:modelValue"])) : m("", !0);
34
- }
35
- }), I = /* @__PURE__ */ y(C, [["__scopeId", "data-v-2891ceef"]]);
36
- export {
37
- I as default
38
- };
@@ -1,29 +0,0 @@
1
- import { defineComponent as o, createBlock as a, openBlock as l, unref as n } from "vue";
2
- import { D as t } from "./DateTimeInput-Cs0KqlOS.js";
3
- const u = /* @__PURE__ */ o({
4
- __name: "DateControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- isValid: { type: Boolean },
11
- onRegisterValidation: { type: Function },
12
- labelForId: {}
13
- },
14
- setup(d) {
15
- return (e, i) => (l(), a(n(t), {
16
- id: e.labelForId,
17
- "two-lines": "",
18
- "model-value": new Date(e.control.data),
19
- required: !0,
20
- "show-time": !1,
21
- compact: "",
22
- disabled: e.disabled,
23
- "onUpdate:modelValue": e.changeValue
24
- }, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"]));
25
- }
26
- });
27
- export {
28
- u as default
29
- };
@@ -1,45 +0,0 @@
1
- import { defineComponent as r, computed as a, createBlock as c, openBlock as p, unref as v } from "vue";
2
- import { D as h } from "./DateTimeInput-Cs0KqlOS.js";
3
- import { t as i, f } from "./localTimeUtils-NIKgHnIr.js";
4
- const b = /* @__PURE__ */ r({
5
- __name: "DateTimeControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(t) {
16
- const l = t, e = a(() => l.control.uischema.options), s = a(
17
- () => e.value?.minimum ? i(e.value.minimum) : null
18
- ), u = a(
19
- () => e.value?.maximum ? i(e.value.maximum) : null
20
- ), n = a({
21
- get: () => i(l.control.data),
22
- set: (o) => l.changeValue(f(o))
23
- });
24
- return (o, m) => (p(), c(v(h), {
25
- id: o.labelForId,
26
- modelValue: n.value,
27
- "onUpdate:modelValue": m[0] || (m[0] = (d) => n.value = d),
28
- "two-lines": "",
29
- required: !0,
30
- "show-time": e.value?.showTime,
31
- "show-seconds": e.value?.showSeconds,
32
- "show-milliseconds": e.value?.showMilliseconds,
33
- timezone: "UTC",
34
- "date-format": e.value?.dateFormat,
35
- min: s.value,
36
- max: u.value,
37
- "is-valid": o.isValid,
38
- compact: "",
39
- disabled: o.disabled
40
- }, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]));
41
- }
42
- });
43
- export {
44
- b as default
45
- };