@knime/jsonforms 1.2.0 → 1.2.2

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 (69) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{AnyOfTwinlist-C9PjOPWq.js → AnyOfTwinlist-L1E19aiP.js} +2 -2
  3. package/dist/{BaseButton-DsgRdHJ1.js → BaseButton-BtzrgZlq.js} +1 -1
  4. package/dist/{Button-Dl7sS94Y.js → Button-BqyDub_Q.js} +2 -2
  5. package/dist/{Checkbox-DIhOb7S8.js → Checkbox-bFTiH_XR.js} +1 -1
  6. package/dist/{CheckboxControl-cJBJv01E.js → CheckboxControl-DwoX0RxN.js} +3 -3
  7. package/dist/{Checkboxes-7iI-5ngD.js → Checkboxes-BW8Z6mnZ.js} +2 -2
  8. package/dist/{CheckboxesControl-Bu0Jmr1-.js → CheckboxesControl-Dj3fzcFU.js} +3 -3
  9. package/dist/{ColumnFilter-D3FVDu7O.js → ColumnFilter-D2NqJ_I4.js} +1 -1
  10. package/dist/{ColumnSelect-CQsyASYZ.js → ColumnSelect-DZmELpR4.js} +4 -4
  11. package/dist/{ComboBoxControl-8kpO_iC2.js → ComboBoxControl-D-CYwy8B.js} +4 -4
  12. package/dist/{DateControl-D-8E4A0f.js → DateControl-vJ5VjIZF.js} +1 -1
  13. package/dist/{DateTimeControl-BvJz1e8_.js → DateTimeControl-DoxnC-q6.js} +1 -1
  14. package/dist/{DateTimeFormatPickerControl-C44lLlEw.js → DateTimeFormatPickerControl-BgUjU9xX.js} +5 -5
  15. package/dist/{DateTimeInput-B_2U3C4E.js → DateTimeInput-qXGFGHQ_.js} +7 -7
  16. package/dist/{Dropdown-CtsETtJA.js → Dropdown-CJ_7Dh0y.js} +4 -4
  17. package/dist/{DropdownControl-DrPJ62Bv.js → DropdownControl-s__fNtSG.js} +1 -1
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-R4aVv_Gn.js +226 -0
  19. package/dist/{ErrorMessage-Czbh-f6c.js → ErrorMessage-u5bfdqhs.js} +1 -1
  20. package/dist/{FunctionButton-23mIlhHT.js → FunctionButton-CzHA0eG7.js} +2 -2
  21. package/dist/{HorizontalLayout-B_RDW-Km.js → HorizontalLayout-fgeHptHU.js} +1 -1
  22. package/dist/{InputField-XoL66ppv.js → InputField-DI8GWQdg.js} +1 -1
  23. package/dist/{IntegerControl-C9ehPl4V.js → IntegerControl-f0x_jc0P.js} +1 -1
  24. package/dist/{IntervalControl-Cs5JFPtt.js → IntervalControl-7dMsOUO3.js} +5 -5
  25. package/dist/{MultiselectListBox-DydoHVsu.js → MultiselectListBox-D-RwMEU_.js} +1 -1
  26. package/dist/{NameFilter-BrDeWwMP.js → NameFilter-BfZzADTB.js} +1 -1
  27. package/dist/{NumberControl-DqQHfomK.js → NumberControl-CgdKXrWx.js} +1 -1
  28. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-By2fKgXj.js → NumberControlBase.vue_vue_type_script_setup_true_lang-BqUn7ZO-.js} +2 -2
  29. package/dist/{NumberInput-DopSN3-F.js → NumberInput-CF3zayl4.js} +1 -1
  30. package/dist/{OneOfDropdown-DBjx8Uut.js → OneOfDropdown-CWsU4uA6.js} +2 -2
  31. package/dist/{RadioControl-giJps4zH.js → RadioControl-BECJu6kM.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-9hAA-1uc.js → RadioControlBase.vue_vue_type_script_setup_true_lang-uDP8uQOr.js} +3 -3
  33. package/dist/{RichTextControl-BGBsvyFa.js → RichTextControl-DDFBrXya.js} +6 -6
  34. package/dist/{SectionLayout-WUJ_MPUD.js → SectionLayout-DQOAeDz_.js} +2 -2
  35. package/dist/{SimpleButtonControl-Bof-wRq0.js → SimpleButtonControl-DQIA3leH.js} +2 -2
  36. package/dist/{SimpleTwinlistControl-B7_5VZBp.js → SimpleTwinlistControl-EmdqdIkK.js} +2 -2
  37. package/dist/{SortListControl-CiXRkyC_.js → SortListControl-BJS7BJKi.js} +9 -9
  38. package/dist/{TextAreaControl-Cc3KHMGW.js → TextAreaControl-O9SyM0QR.js} +1 -1
  39. package/dist/{TextControl-CICn5_ts.js → TextControl-BRUmY2i3.js} +1 -1
  40. package/dist/TextControl.vue_vue_type_script_setup_true_lang-B3XX131o.js +69 -0
  41. package/dist/{TimeControl-nrDjeXuk.js → TimeControl-COBMwPR3.js} +1 -1
  42. package/dist/{Tooltip-HI4PpGqr.js → Tooltip-C6rjLSqF.js} +1 -1
  43. package/dist/{TwinlistControl-Cq8jLHoR.js → TwinlistControl-CTxWTms_.js} +8 -9
  44. package/dist/{TwinlistLoadingInfo-eoTNPvcF.js → TwinlistLoadingInfo-BzCAOCCz.js} +6 -6
  45. package/dist/{ValueSwitch-DuhDiUEA.js → ValueSwitch-hYtmHqzJ.js} +1 -1
  46. package/dist/{ValueSwitchControl-BF8-DGwt.js → ValueSwitchControl-l_Tu5qnA.js} +1 -1
  47. package/dist/{VerticalLayout-ValJNnLe.js → VerticalLayout-CQZyNO7O.js} +2 -2
  48. package/dist/{VerticalLayoutBase-C3qB7UI2.js → VerticalLayoutBase-Sbw9IQIg.js} +1 -1
  49. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-B0_TxNwa.js} +2320 -2303
  50. package/dist/{_baseAssignValue-DOVkVeo5.js → _baseAssignValue-B7R5Deyv.js} +1 -1
  51. package/dist/{_baseEach-Bv6ruBhc.js → _baseEach-DtzYuOKF.js} +2 -2
  52. package/dist/{_baseIsEqual-9U8Drd5p.js → _baseIsEqual--73KyUY2.js} +3 -3
  53. package/dist/{_baseIteratee-CFj6YFWe.js → _baseIteratee-w7lTVlz0.js} +3 -3
  54. package/dist/{_getTag-DMEK5a4t.js → _getTag-CPaOq6vf.js} +3 -3
  55. package/dist/{getPossibleValuesFromUiSchema-BFJtj-id.js → getPossibleValuesFromUiSchema-hQj1TCOR.js} +2 -3
  56. package/dist/{index-C1PjXAJX.js → index-hm05O8UX.js} +6 -7
  57. package/dist/{isSymbol-yR531Pf2.js → isSymbol-DOT4eUFM.js} +1 -1
  58. package/dist/knime-jsonforms.css +1 -1
  59. package/dist/knime-jsonforms.js +6 -6
  60. package/dist/{magic-string.es-BrNu5jkk.js → magic-string.es-B0FAImsf.js} +1 -1
  61. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +8 -3
  62. package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +1 -1
  63. package/dist/{svgWithTitle-vY-nYdFJ.js → svgWithTitle-wWq-Ng2R.js} +1 -1
  64. package/dist/testing.js +4 -4
  65. package/dist/{toString-BzOQsbuj.js → toString-BqEMlZcy.js} +2 -2
  66. package/package.json +3 -4
  67. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BoyqWufG.js +0 -223
  68. package/dist/TextControl.vue_vue_type_script_setup_true_lang-zZnarw91.js +0 -65
  69. package/dist/index-BrIvBSNK-BRWnkVln.js +0 -685
@@ -1,5 +1,5 @@
1
- import { S as s } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
2
- import { i as y } from "./isSymbol-yR531Pf2.js";
1
+ import { S as s } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-B0_TxNwa.js";
2
+ import { i as y } from "./isSymbol-DOT4eUFM.js";
3
3
  function g(r, t) {
4
4
  for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
5
5
  o[n] = t(r[n], n, r);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
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,9 @@
15
15
  "tabbable": "6.2.0",
16
16
  "uuid": "10.0.0",
17
17
  "date-fns": "2.30.0",
18
- "@knime/components": "1.15.2",
19
- "@knime/rich-text-editor": "1.3.9",
18
+ "@knime/components": "1.15.3",
19
+ "@knime/rich-text-editor": "1.3.10",
20
20
  "@knime/styles": "1.2.0",
21
- "@knime/ui-extension-service": "1.2.1",
22
21
  "@knime/utils": "1.2.4"
23
22
  },
24
23
  "peerDependencies": {
@@ -1,223 +0,0 @@
1
- import { defineComponent as E, computed as p, openBlock as V, createBlock as y, unref as m, mergeProps as A, withCtx as f, createCommentVNode as I, ref as S, onMounted as G, onBeforeUnmount as J, normalizeProps as Q, renderSlot as x } from "vue";
2
- import "./index-BrIvBSNK-BRWnkVln.js";
3
- import { _ as X, k as w, u as Y, L as Z } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
4
- import { w as j } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
5
- import { u as ee } from "./useHideOnNull-CCfNP3O7.js";
6
- import { D as oe } from "./Dropdown-CtsETtJA.js";
7
- import { L as ne } from "./svgWithTitle-vY-nYdFJ.js";
8
- import { b as te } from "./_baseAssignValue-DOVkVeo5.js";
9
- import { e as ae, c as le, t as se, i as re } from "./_getTag-DMEK5a4t.js";
10
- import { i as N } from "./isObject-B53jY8Qg.js";
11
- import { C as ie } from "./Checkbox-DIhOb7S8.js";
12
- var ue = Object.prototype, ce = ue.hasOwnProperty;
13
- function de(o, e, l) {
14
- var s = o[e];
15
- (!(ce.call(o, e) && ae(s, l)) || l === void 0 && !(e in o)) && te(o, e, l);
16
- }
17
- function pe(o, e, l, s) {
18
- if (!N(o))
19
- return o;
20
- e = le(e, o);
21
- for (var u = -1, r = e.length, h = r - 1, c = o; c != null && ++u < r; ) {
22
- var a = se(e[u]), i = l;
23
- if (a === "__proto__" || a === "constructor" || a === "prototype")
24
- return o;
25
- if (u != h) {
26
- var v = c[a];
27
- i = void 0, i === void 0 && (i = N(v) ? v : re(e[u + 1]) ? [] : {});
28
- }
29
- de(c, a, i), c = c[a];
30
- }
31
- return o;
32
- }
33
- function me(o, e, l) {
34
- return o == null ? o : pe(o, e, l);
35
- }
36
- var B = /* @__PURE__ */ ((o) => (o.ERROR = "error", o.WARN = "warn", o))(B || {}), t = [];
37
- for (var C = 0; C < 256; ++C)
38
- t.push((C + 256).toString(16).slice(1));
39
- function he(o, e = 0) {
40
- return (t[o[e + 0]] + t[o[e + 1]] + t[o[e + 2]] + t[o[e + 3]] + "-" + t[o[e + 4]] + t[o[e + 5]] + "-" + t[o[e + 6]] + t[o[e + 7]] + "-" + t[o[e + 8]] + t[o[e + 9]] + "-" + t[o[e + 10]] + t[o[e + 11]] + t[o[e + 12]] + t[o[e + 13]] + t[o[e + 14]] + t[o[e + 15]]).toLowerCase();
41
- }
42
- var D, ve = new Uint8Array(16);
43
- function ge() {
44
- if (!D && (D = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !D))
45
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
46
- return D(ve);
47
- }
48
- var be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
49
- const T = {
50
- randomUUID: be
51
- };
52
- function fe(o, e, l) {
53
- if (T.randomUUID && !e && !o)
54
- return T.randomUUID();
55
- o = o || {};
56
- var s = o.random || (o.rng || ge)();
57
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, he(s);
58
- }
59
- const Ve = ({ view: o, model: e }) => ({
60
- ...o,
61
- ...e
62
- }), ye = /* @__PURE__ */ E({
63
- __name: "LoadingDropdown",
64
- props: {
65
- possibleValues: {},
66
- modelValue: {},
67
- id: {},
68
- ariaLabel: {},
69
- disabled: { type: Boolean }
70
- },
71
- setup(o) {
72
- const e = o, l = p(() => {
73
- const { possibleValues: r } = e;
74
- return r === null ? "Loading" : r.length > 0 ? "No value selected" : "No values present";
75
- }), s = p(() => e.possibleValues === null ? "" : e.modelValue), u = p(
76
- () => e.disabled || e.possibleValues === null || e.possibleValues.length === 0
77
- );
78
- return (r, h) => (V(), y(m(oe), A({ ...r.$props, ...r.$attrs }, {
79
- "model-value": s.value,
80
- disabled: u.value,
81
- "possible-values": r.possibleValues ?? [],
82
- placeholder: l.value,
83
- compact: ""
84
- }), {
85
- "icon-right": f(() => [
86
- r.possibleValues === null ? (V(), y(m(ne), {
87
- key: 0,
88
- class: "loading-icon"
89
- })) : I("", !0)
90
- ]),
91
- _: 1
92
- }, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
93
- }
94
- }), we = /* @__PURE__ */ X(ye, [["__scopeId", "data-v-cf6ba18c"]]), xe = /* @__PURE__ */ E({
95
- __name: "DropdownControl",
96
- props: {
97
- control: {},
98
- handleChange: {},
99
- changeValue: {},
100
- disabled: { type: Boolean },
101
- labelForId: {},
102
- asyncInitialOptions: { default: null },
103
- controlDataToDropdownValue: { type: Function, default: (o) => o },
104
- dropdownValueToControlData: { type: Function, default: (o) => o }
105
- },
106
- setup(o) {
107
- const e = o, l = w("getPossibleValuesFromUiSchema"), s = w("registerWatcher"), u = w("getData"), r = w("sendAlert"), h = S(null), c = p(
108
- () => {
109
- var n;
110
- return (n = e.control.uischema.options) == null ? void 0 : n.choicesProvider;
111
- }
112
- ), a = j(
113
- Y(c.value, null),
114
- e.control
115
- ), i = S(e.control.data), v = (n) => e.dropdownValueToControlData(
116
- n.length > 0 ? n[0].id : null
117
- ), { showCheckbox: H, showControl: $, checkboxProps: W } = ee(
118
- {
119
- control: p(() => e.control),
120
- disabled: p(() => e.disabled),
121
- controlElement: h
122
- },
123
- {
124
- setDefault: () => {
125
- !i.value && a.value ? e.changeValue(v(a.value)) : e.changeValue(i.value);
126
- },
127
- setNull: () => {
128
- e.changeValue(null);
129
- }
130
- }
131
- ), _ = p(
132
- () => e.controlDataToDropdownValue(e.control.data)
133
- ), L = p(
134
- () => {
135
- var n;
136
- return (n = e.control.uischema.options) == null ? void 0 : n.choicesUpdateHandler;
137
- }
138
- ), M = fe(), P = async (n, g) => {
139
- const { result: d, state: U, message: O } = await u({
140
- method: "settings.update",
141
- options: [
142
- M,
143
- L.value,
144
- Ve(n)
145
- ]
146
- });
147
- return (K) => {
148
- const F = (b) => {
149
- a.value = b, (g || !_.value) && (me(
150
- K,
151
- e.control.path,
152
- v(b)
153
- ), e.changeValue(v(b)));
154
- };
155
- d && F(d), U === "FAIL" && (O.forEach((b) => {
156
- r({
157
- message: b,
158
- type: B.ERROR
159
- });
160
- }), F([]));
161
- };
162
- }, k = async (n) => {
163
- (await P(n, !1))(n);
164
- }, z = async () => {
165
- e.asyncInitialOptions !== null ? a.value = await e.asyncInitialOptions : c.value || l(e.control).then((n) => {
166
- a.value = n;
167
- });
168
- };
169
- let R = () => {
170
- };
171
- G(async () => {
172
- var n, g;
173
- if (L.value) {
174
- const d = ((n = e.control.uischema.options) == null ? void 0 : n.dependencies) || [], U = !!((g = e.control.uischema.options) != null && g.setFirstValueOnUpdate);
175
- R = await s({
176
- transformSettings: (O) => P(O, U),
177
- init: k,
178
- dependencies: d
179
- });
180
- } else
181
- z();
182
- }), J(() => {
183
- R();
184
- });
185
- const q = (n) => {
186
- i.value = e.dropdownValueToControlData(n), e.changeValue(i.value);
187
- };
188
- return (n, g) => (V(), y(Z, {
189
- label: n.control.label
190
- }, {
191
- "before-label": f(() => [
192
- m(H) ? (V(), y(m(ie), Q(A({ key: 0 }, m(W))), null, 16)) : I("", !0)
193
- ]),
194
- default: f(({ labelForId: d }) => [
195
- m($) ? (V(), y(we, {
196
- key: 0,
197
- id: d ?? "",
198
- ref_key: "controlElement",
199
- ref: h,
200
- ariaLabel: n.control.label,
201
- disabled: n.disabled,
202
- "model-value": _.value,
203
- "possible-values": m(a),
204
- compact: "",
205
- "onUpdate:modelValue": q
206
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values"])) : I("", !0)
207
- ]),
208
- icon: f(() => [
209
- x(n.$slots, "icon")
210
- ]),
211
- buttons: f(({ hover: d }) => [
212
- x(n.$slots, "buttons", {
213
- hover: d,
214
- controlHTMLElement: h.value
215
- })
216
- ]),
217
- _: 3
218
- }, 8, ["label"]));
219
- }
220
- });
221
- export {
222
- xe as _
223
- };
@@ -1,65 +0,0 @@
1
- import { defineComponent as k, ref as V, computed as u, openBlock as r, createBlock as s, withCtx as t, unref as l, normalizeProps as g, mergeProps as y, createCommentVNode as p, renderSlot as i } from "vue";
2
- import { u as v, L as P } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DBuk0vJL.js";
3
- import { u as F } from "./useHideOnNull-CCfNP3O7.js";
4
- import { C as w } from "./Checkbox-DIhOb7S8.js";
5
- import { I as B } from "./InputField-XoL66ppv.js";
6
- const S = /* @__PURE__ */ k({
7
- __name: "TextControl",
8
- props: {
9
- control: {},
10
- handleChange: { type: Function },
11
- changeValue: { type: Function },
12
- disabled: { type: Boolean },
13
- labelForId: {}
14
- },
15
- setup(m) {
16
- var c, d;
17
- const e = m, h = v(
18
- (c = e.control.uischema.options) == null ? void 0 : c.placeholderProvider,
19
- ((d = e.control.uischema.options) == null ? void 0 : d.placeholder) ?? ""
20
- ), n = V(null), { showCheckbox: b, showControl: f, checkboxProps: C } = F(
21
- {
22
- control: u(() => e.control),
23
- disabled: u(() => e.disabled),
24
- controlElement: n
25
- },
26
- {
27
- setDefault: () => e.changeValue(""),
28
- setNull: () => e.changeValue(null)
29
- }
30
- );
31
- return (o, E) => (r(), s(P, {
32
- label: o.control.label
33
- }, {
34
- "before-label": t(() => [
35
- l(b) ? (r(), s(l(w), g(y({ key: 0 }, l(C))), null, 16)) : p("", !0)
36
- ]),
37
- default: t(({ labelForId: a }) => [
38
- l(f) ? (r(), s(l(B), {
39
- key: 0,
40
- id: a,
41
- ref_key: "controlElement",
42
- ref: n,
43
- placeholder: l(h),
44
- "model-value": o.control.data,
45
- disabled: o.disabled,
46
- compact: "",
47
- "onUpdate:modelValue": o.changeValue
48
- }, null, 8, ["id", "placeholder", "model-value", "disabled", "onUpdate:modelValue"])) : p("", !0)
49
- ]),
50
- icon: t(() => [
51
- i(o.$slots, "icon")
52
- ]),
53
- buttons: t(({ hover: a }) => [
54
- i(o.$slots, "buttons", {
55
- hover: a,
56
- controlHTMLElement: n.value
57
- })
58
- ]),
59
- _: 3
60
- }, 8, ["label"]));
61
- }
62
- });
63
- export {
64
- S as _
65
- };