@knime/jsonforms 1.21.16 → 1.21.19

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 (105) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AnyOfTwinlist-Chx0nmt3.js +23 -0
  3. package/dist/CheckboxControl-B8b1Di4k.js +40 -0
  4. package/dist/CheckboxesControl-DWUnPGdN.js +39 -0
  5. package/dist/{ColorControl-wEr-pQ4g.js → ColorControl-ByE5ku7u.js} +10 -8
  6. package/dist/{ColorPreviewControl-B7aXaak-.js → ColorPreviewControl-XiKZ4jfn.js} +28 -28
  7. package/dist/ComboBoxControl-zSceYlyZ.js +39 -0
  8. package/dist/DateControl-BBGpEVpr.js +44 -0
  9. package/dist/DateTimeControl-CymOURq5.js +80 -0
  10. package/dist/DateTimeFormatPickerControl-Bx19jwpr.js +34 -0
  11. package/dist/{DateTimeFormatPickerWithTypeControl-BVG_BSaN.js → DateTimeFormatPickerWithTypeControl-Byo_0cTq.js} +30 -29
  12. package/dist/DropdownControl-C6ffVYyf.js +32 -0
  13. package/dist/{ExecutorCoresControl-Cphh4q2c.js → ExecutorCoresControl-D9FZ-g9O.js} +10 -9
  14. package/dist/{ExecutorMemoryControl-BQDSkKjf.js → ExecutorMemoryControl-__P80Lkb.js} +9 -8
  15. package/dist/{FileUploadControl-CnPXEafs.js → FileUploadControl-DWs4PhOj.js} +53 -52
  16. package/dist/{GridSelectionControl-093qWj_x.js → GridSelectionControl-WcJ4y6Fs.js} +27 -26
  17. package/dist/{HorizontalLayout-D07DfljM.js → HorizontalLayout-ByB5A7X3.js} +6 -6
  18. package/dist/{IntegerControl-D0qSSA_X.js → IntegerControl-aveswmbr.js} +5 -4
  19. package/dist/IntervalControl-B4Eqs1Jf.js +51 -0
  20. package/dist/LinkControl-DD56lOiw.js +35 -0
  21. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg.js} +5 -5
  22. package/dist/ManualTwinlistControl-DBZ5RZgW.js +74 -0
  23. package/dist/{MultiSelectListBoxControl-qdxrfyqT.js → MultiSelectListBoxControl-BMsPvxGQ.js} +53 -52
  24. package/dist/{MultimodeTwinlistControl-DKNf9s6C.js → MultimodeTwinlistControl-thO1be1r.js} +1 -1
  25. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CKcpm_I1.js +159 -0
  26. package/dist/{NameFilter-DxsfvMYP.js → NameFilter-DBMVmZmk.js} +7 -6
  27. package/dist/{NumberControl-gRIAl0Xw.js → NumberControl-BPVO5l6t.js} +7 -6
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6.js +52 -0
  29. package/dist/{OneOfDropdown-6EW73QQp.js → OneOfDropdown-DBG8ZcpV.js} +13 -11
  30. package/dist/{RadioButtonsWithDescriptionControl-DDdnwXUW.js → RadioButtonsWithDescriptionControl-BsqMTEB5.js} +15 -15
  31. package/dist/{RadioControl-BOGJkSzd.js → RadioControl-ClJmr0EQ.js} +5 -4
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw.js +57 -0
  33. package/dist/{ResourceControlBase-D-oG-tP4.js → ResourceControlBase-CeXYJeR1.js} +21 -18
  34. package/dist/{RichTextControl-FgGsWYtG.js → RichTextControl-DvYkBpzH.js} +2796 -2626
  35. package/dist/SectionHeading-7KVIxCGG.js +61 -0
  36. package/dist/{SectionLayout-Bo11XVly.js → SectionLayout-CwRO3UXc.js} +3 -3
  37. package/dist/SettingsSubPanel-i2sjXJXx.js +5 -0
  38. package/dist/SettingsSubPanelLayout-CV6y2bcX.js +67 -0
  39. package/dist/{SimpleButtonControl-QdWssOCJ.js → SimpleButtonControl-D58aXnm7.js} +14 -14
  40. package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js} +9583 -9612
  41. package/dist/{SimpleTwinlistControl-CAaKpaUA.js → SimpleTwinlistControl-BSON5VYy.js} +6 -5
  42. package/dist/{SingleSelectControl-D7D5AanU.js → SingleSelectControl-BSqORMYm.js} +21 -19
  43. package/dist/{SingleSelectListBoxControl-XeWCleLY.js → SingleSelectListBoxControl-CFdKzbOK.js} +18 -17
  44. package/dist/SortListControl-DZIHeQmn.js +105 -0
  45. package/dist/{StyledListItem-CjOv-VlL.js → StyledListItem--sgmJ3W_.js} +1 -1
  46. package/dist/{TeamAndSpacesControl-DFrotXG1.js → TeamAndSpacesControl-DiMyDT-5.js} +16 -15
  47. package/dist/{TeamResourceControl-BnBXHcn9.js → TeamResourceControl-Bag_dwA1.js} +12 -11
  48. package/dist/{TextAreaControl-9YsuIVg_.js → TextAreaControl-B52P0DAa.js} +10 -8
  49. package/dist/{TextControl-BrUMvx4G.js → TextControl-52n-sttB.js} +1 -1
  50. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4BT0xCnX.js → TextControl.vue_vue_type_script_setup_true_lang-DrD-RvHO.js} +16 -14
  51. package/dist/{TimeControl-DvzIDb-2.js → TimeControl-Cu12_qpz.js} +26 -24
  52. package/dist/{TimeframesControl-2GAc0ndD.js → TimeframesControl-DhdC8OS1.js} +7 -6
  53. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-Chqnf11f.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz.js} +14 -11
  54. package/dist/{TypedStringFilter-mklK-qwG.js → TypedStringFilter-zJOICQei.js} +5 -4
  55. package/dist/{ValueSwitchControl-BOUlFthR.js → ValueSwitchControl-CEVWJH7z.js} +6 -5
  56. package/dist/{VerticalLayout-u04mODMq.js → VerticalLayout-D_13xb_m.js} +2 -2
  57. package/dist/{VerticalLayoutBase-rWbtLYJT.js → VerticalLayoutBase-CYfG9KqS.js} +2 -2
  58. package/dist/ZonedDateTimeControl-C-vO6fC1.js +79 -0
  59. package/dist/{_Uint8Array-S1XaShiS.js → _Uint8Array-DdGQvEX6.js} +27 -27
  60. package/dist/collection-BBXRVj4b-DzRZ2FYd.js +22 -0
  61. package/dist/knime-jsonforms.css +1 -1
  62. package/dist/knime-jsonforms.js +107 -99
  63. package/dist/src/JsonFormsDialog.vue.d.ts +6 -6
  64. package/dist/src/higherOrderComponents/control/index.d.ts +1 -2
  65. package/dist/src/higherOrderComponents/control/util.d.ts +4 -5
  66. package/dist/src/higherOrderComponents/control/validation/types.d.ts +2 -2
  67. package/dist/src/higherOrderComponents/control/withLabel.d.ts +1 -1
  68. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -3
  69. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +0 -1
  70. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +1 -1
  71. package/dist/src/renderers/checkboxRenderer.d.ts +120 -1
  72. package/dist/src/renderers/defaultRenderers.d.ts +120 -1
  73. package/dist/src/renderers/fallbackRenderers.d.ts +120 -1
  74. package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +1 -1
  75. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -3
  76. package/dist/testing.js +3 -3
  77. package/dist/{toString-DXjInt1t.js → toString-f8odPeFb.js} +1 -1
  78. package/dist/{useBuiltinValidations-CFNcCpco.js → useBuiltinValidations-KbChI8vv.js} +1 -1
  79. package/dist/{usePossibleValues-yDswh8Qc.js → usePossibleValues-DiYOmnZW.js} +1 -1
  80. package/dist/{useUnknownValuesInTwinlist-BSnLQI_Q.js → useUnknownValuesInTwinlist-BhhirtmX.js} +1 -1
  81. package/package.json +2 -2
  82. package/dist/AnyOfTwinlist-BCIsT83q.js +0 -22
  83. package/dist/CheckboxControl-CjiUwvWU.js +0 -38
  84. package/dist/CheckboxesControl-CAHj0UnX.js +0 -37
  85. package/dist/ComboBoxControl-hveFsDLi.js +0 -37
  86. package/dist/DateControl-BtCCimuA.js +0 -42
  87. package/dist/DateTimeControl-Bll2rZlX.js +0 -78
  88. package/dist/DateTimeFormatPickerControl-CsKD9vWJ.js +0 -32
  89. package/dist/DropdownControl-DA8lNfVk.js +0 -30
  90. package/dist/IntervalControl-vOi33CZB.js +0 -48
  91. package/dist/LinkControl-D5t3awqb.js +0 -35
  92. package/dist/ManualTwinlistControl-BQ4H-fRR.js +0 -72
  93. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DHx6nrqi.js +0 -157
  94. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DEG90Gdx.js +0 -50
  95. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BOuoChe1.js +0 -52
  96. package/dist/SectionHeading-xMNeMcnS.js +0 -19
  97. package/dist/SettingsSubPanel-D_FDP5Zc.js +0 -5
  98. package/dist/SettingsSubPanelLayout-Dp_jLbsR.js +0 -73
  99. package/dist/SortListControl-kjhkdRwC.js +0 -103
  100. package/dist/ZonedDateTimeControl-BzV5ZuYf.js +0 -77
  101. package/dist/arrow-next-BQULX8HT.js +0 -17
  102. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +0 -5
  103. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +0 -23
  104. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +0 -11
  105. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +0 -10
@@ -1,30 +0,0 @@
1
- import { defineComponent as l, toRef as n, openBlock as t, createBlock as i, unref as d } from "vue";
2
- import { u as r } from "./usePossibleValues-yDswh8Qc.js";
3
- import { _ as s } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js";
4
- const f = /* @__PURE__ */ l({
5
- __name: "DropdownControl",
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(e) {
16
- const o = e, { possibleValues: a } = r(n(o, "control"));
17
- return (u, c) => (t(), i(s, {
18
- id: e.labelForId ?? "",
19
- ariaLabel: e.control.label,
20
- disabled: e.disabled,
21
- "model-value": e.control.data ?? "",
22
- "possible-values": d(a),
23
- error: !e.isValid,
24
- "onUpdate:modelValue": e.changeValue
25
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "error", "onUpdate:modelValue"]));
26
- }
27
- });
28
- export {
29
- f as default
30
- };
@@ -1,48 +0,0 @@
1
- import { defineComponent as p, computed as n, openBlock as f, createBlock as b, unref as l } from "vue";
2
- import { u as r, a1 as g } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { U as h } from "./classApi-CHpAZrj3.js";
4
- const w = /* @__PURE__ */ p({
5
- __name: "IntervalControl",
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 a = o, t = n(
17
- () => a.control.uischema
18
- ), c = r(
19
- t,
20
- "intervalType",
21
- "DATE_OR_TIME"
22
- ), i = n(() => c.value.toLowerCase()), d = r(t, "allowDescending", !0), u = (e) => {
23
- if (!e)
24
- return null;
25
- try {
26
- return h.Duration.from(e);
27
- } catch {
28
- return null;
29
- }
30
- }, s = n(
31
- () => u(a.control.data)
32
- ), m = (e) => {
33
- a.changeValue(e?.toString() ?? "");
34
- };
35
- return (e, v) => (f(), b(l(g), {
36
- id: o.labelForId,
37
- ariaLabel: a.control.label,
38
- "model-value": s.value,
39
- "allow-descending": l(d),
40
- disabled: o.disabled,
41
- format: i.value,
42
- "onUpdate:modelValue": m
43
- }, null, 8, ["id", "ariaLabel", "model-value", "allow-descending", "disabled", "format"]));
44
- }
45
- });
46
- export {
47
- w as default
48
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as s, useCssVars as r, unref as n, openBlock as p, createElementBlock as d, createVNode as m } from "vue";
2
- import { a2 as u, _ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const g = { class: "link-wrapper" }, f = /* @__PURE__ */ s({
4
- __name: "LinkControl",
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(e) {
16
- r((c) => ({
17
- bc3ff08c: n(t)
18
- }));
19
- const o = e, t = o.control.uischema.options?.alignment === "right" ? "flex-end" : "flex-start", { to: a, leadingIcon: l, trailingIcon: i } = o.control.uischema.options || {};
20
- return (c, h) => (p(), d("div", g, [
21
- m(n(u), {
22
- class: "link-button",
23
- label: e.control.label,
24
- to: n(a),
25
- "leading-icon": n(l),
26
- "trailing-icon": n(i),
27
- size: "small",
28
- variant: "transparent"
29
- }, null, 8, ["label", "to", "leading-icon", "trailing-icon"])
30
- ]));
31
- }
32
- }), x = /* @__PURE__ */ _(f, [["__scopeId", "data-v-d1973605"]]);
33
- export {
34
- x as default
35
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent as k, toRef as i, computed as t, openBlock as C, createBlock as U, unref as a, mergeProps as x } from "vue";
2
- import { Z as I } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { m as r } from "./index-Blg1O3Fz.js";
4
- import { a as M, u as v } from "./usePossibleValues-yDswh8Qc.js";
5
- import { t as F } from "./toKdsPossibleValues-BklBg3gG.js";
6
- import { u as L } from "./useUnknownValuesInTwinlist-BSnLQI_Q.js";
7
- const K = /* @__PURE__ */ k({
8
- __name: "ManualTwinlistControl",
9
- props: {
10
- control: {},
11
- handleChange: { type: Function },
12
- changeValue: { type: Function },
13
- disabled: { type: Boolean },
14
- isValid: { type: Boolean },
15
- onRegisterValidation: { type: Function },
16
- labelForId: {}
17
- },
18
- setup(o) {
19
- const n = o, { excludedLabel: m, includedLabel: p } = M(
20
- i(n, "control")
21
- ), { possibleValues: c } = v(
22
- i(n, "control")
23
- ), b = t(
24
- () => F(c.value ?? [])
25
- ), { selectedAndDeselected: u, setCurrentManualFilter: f } = L({
26
- data: t(() => ({ manualFilter: n.control.data })),
27
- possibleValueIds: t(
28
- () => c.value?.map(({ id: e }) => e) ?? null
29
- )
30
- }), y = (e) => {
31
- const d = r(n.control.data, e);
32
- n.changeValue(d), f(d);
33
- };
34
- let l = null;
35
- const g = () => {
36
- if (l !== null) {
37
- const e = l;
38
- l = null, y(e);
39
- }
40
- }, s = (e) => {
41
- l === null ? (l = e, queueMicrotask(g)) : l = r(
42
- l,
43
- e
44
- );
45
- }, V = (e) => {
46
- s({ manuallySelected: e });
47
- }, w = (e) => {
48
- s({ manuallyDeselected: e });
49
- }, h = (e) => {
50
- e !== null && s({ includeUnknownColumns: e });
51
- };
52
- return (e, d) => (C(), U(a(I), x(e.$attrs, {
53
- id: o.labelForId,
54
- ariaLabel: o.control.label,
55
- disabled: o.disabled,
56
- "manually-included": a(u).selected ?? [],
57
- "manually-excluded": a(u).deselected ?? [],
58
- "include-unknown-values": o.control.data.includeUnknownColumns,
59
- "possible-values": b.value,
60
- loading: a(u).selected === null,
61
- "exclude-label": a(m),
62
- "include-label": a(p),
63
- error: !n.isValid,
64
- "onUpdate:manuallyIncluded": V,
65
- "onUpdate:manuallyExcluded": w,
66
- "onUpdate:includeUnknownValues": h
67
- }), null, 16, ["id", "ariaLabel", "disabled", "manually-included", "manually-excluded", "include-unknown-values", "possible-values", "loading", "exclude-label", "include-label", "error"]));
68
- }
69
- });
70
- export {
71
- K as default
72
- };
@@ -1,157 +0,0 @@
1
- import { defineComponent as A, toRef as b, computed as c, openBlock as B, createBlock as S, unref as u, mergeProps as N } from "vue";
2
- import { a4 as r, Z as G } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { m as g } from "./index-Blg1O3Fz.js";
4
- import { u as X, a as Y } from "./usePossibleValues-yDswh8Qc.js";
5
- import { t as W } from "./toKdsPossibleValues-BklBg3gG.js";
6
- import { u as q } from "./useUnknownValuesInTwinlist-BSnLQI_Q.js";
7
- const J = /* @__PURE__ */ A({
8
- __name: "MultimodeTwinlistControl",
9
- props: {
10
- control: {},
11
- handleChange: {},
12
- changeValue: {},
13
- disabled: { type: Boolean },
14
- isValid: { type: Boolean },
15
- onRegisterValidation: {},
16
- labelForId: {},
17
- showUnknownValues: { type: Boolean, default: !1 },
18
- showTypeFilter: { type: Boolean, default: !1 }
19
- },
20
- setup(n) {
21
- const t = n, { possibleValues: i } = X(
22
- b(t, "control")
23
- ), { excludedLabel: T, includedLabel: C } = Y(
24
- b(t, "control")
25
- ), { selectedAndDeselected: p, setCurrentManualFilter: U } = q({
26
- data: c(() => t.control.data),
27
- possibleValueIds: c(
28
- () => i.value?.map(({ id: e }) => e) ?? null
29
- )
30
- }), s = (e) => {
31
- const a = g(t.control.data, e);
32
- t.changeValue(a), U(a.manualFilter);
33
- }, w = c(
34
- () => W(i.value ?? [])
35
- );
36
- let o = null;
37
- const M = () => {
38
- if (o !== null) {
39
- const e = o;
40
- o = null, s(e);
41
- }
42
- }, m = (e) => {
43
- o === null ? (o = e, queueMicrotask(M)) : o = g(
44
- o,
45
- e
46
- );
47
- }, k = (e) => {
48
- m({
49
- manualFilter: { manuallySelected: e },
50
- selected: e
51
- });
52
- }, E = (e) => {
53
- m({
54
- manualFilter: { manuallyDeselected: e }
55
- });
56
- }, v = (e) => {
57
- e !== null && m({
58
- manualFilter: { includeUnknownColumns: e }
59
- });
60
- }, y = c(() => {
61
- switch (t.control.data.mode.toUpperCase()) {
62
- case "WILDCARD":
63
- case "REGEX":
64
- return r.PATTERN;
65
- case "TYPE":
66
- return r.TYPE;
67
- default:
68
- return r.MANUAL;
69
- }
70
- }), f = c(
71
- () => t.control.data.mode.toUpperCase() === "REGEX"
72
- ), x = (e) => {
73
- let a;
74
- switch (e) {
75
- case r.PATTERN:
76
- a = f.value ? "REGEX" : "WILDCARD";
77
- break;
78
- case r.TYPE:
79
- a = "TYPE";
80
- break;
81
- default:
82
- a = "MANUAL";
83
- }
84
- s({ mode: a });
85
- }, F = (e) => {
86
- y.value === r.PATTERN && s({ mode: e ? "REGEX" : "WILDCARD" });
87
- }, R = (e) => {
88
- s({ patternFilter: { pattern: e } });
89
- }, V = (e) => {
90
- s({ patternFilter: { isInverted: e } });
91
- }, D = (e) => {
92
- s({ patternFilter: { isCaseSensitive: e } });
93
- }, I = () => {
94
- const e = t.control.data.typeFilter;
95
- if (!e)
96
- return [];
97
- const a = e.selectedTypes, l = new Map(
98
- (e.typeDisplays ?? []).map(({ id: d, text: L }) => [d, L])
99
- );
100
- return a.map((d) => ({
101
- id: d,
102
- text: l.get(d) || d
103
- }));
104
- }, h = c(() => {
105
- if (!t.showTypeFilter)
106
- return;
107
- const e = /* @__PURE__ */ new Map();
108
- return i.value?.forEach((a) => {
109
- a.type && e.set(a.type.id, a.type.text);
110
- }), I().forEach(({ id: a, text: l }) => {
111
- e.has(a) || e.set(a, l);
112
- }), [...e.entries()].map(([a, l]) => ({
113
- id: a,
114
- text: l,
115
- accessory: { type: "dataType", name: a }
116
- }));
117
- }), P = (e) => {
118
- const a = (h.value ?? []).filter((l) => e.includes(l.id)).map(({ id: l, text: d }) => ({ id: l, text: d }));
119
- s({
120
- typeFilter: { selectedTypes: e, typeDisplays: a }
121
- });
122
- };
123
- return (e, a) => (B(), S(u(G), N(e.$attrs, {
124
- id: n.labelForId,
125
- ariaLabel: n.control.label,
126
- disabled: n.disabled,
127
- mode: y.value,
128
- "manually-included": u(p).selected ?? [],
129
- "manually-excluded": u(p).deselected ?? [],
130
- "include-unknown-values": t.showUnknownValues ? t.control.data.manualFilter.includeUnknownColumns : null,
131
- pattern: n.control.data.patternFilter.pattern,
132
- "case-sensitive": n.control.data.patternFilter.isCaseSensitive,
133
- "exclude-matches": n.control.data.patternFilter.isInverted,
134
- "use-regex": f.value,
135
- "selected-types": n.control.data.typeFilter?.selectedTypes ?? [],
136
- "possible-values": w.value,
137
- "filter-types": h.value,
138
- "enable-pattern-filter": !0,
139
- loading: u(p).selected === null,
140
- "exclude-label": u(T),
141
- "include-label": u(C),
142
- error: !t.isValid,
143
- "onUpdate:mode": x,
144
- "onUpdate:manuallyIncluded": k,
145
- "onUpdate:manuallyExcluded": E,
146
- "onUpdate:includeUnknownValues": v,
147
- "onUpdate:pattern": R,
148
- "onUpdate:caseSensitive": D,
149
- "onUpdate:excludeMatches": V,
150
- "onUpdate:useRegex": F,
151
- "onUpdate:selectedTypes": P
152
- }), null, 16, ["id", "ariaLabel", "disabled", "mode", "manually-included", "manually-excluded", "include-unknown-values", "pattern", "case-sensitive", "exclude-matches", "use-regex", "selected-types", "possible-values", "filter-types", "loading", "exclude-label", "include-label", "error"]));
153
- }
154
- });
155
- export {
156
- J as _
157
- };
@@ -1,50 +0,0 @@
1
- import { defineComponent as m, computed as l, openBlock as u, createBlock as d, unref as p } from "vue";
2
- import { X as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { u as b } from "./useBuiltinValidations-CFNcCpco.js";
4
- const E = 1, v = 0.1, h = /* @__PURE__ */ m({
5
- __name: "NumberControlBase",
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
- type: {}
15
- },
16
- setup(a) {
17
- const o = a, i = l(
18
- () => o.control.uischema.options?.stepSize ?? (o.type === "integer" ? E : v)
19
- ), s = b(
20
- {
21
- min: ({ min: e, isExclusive: t }) => (n) => isNaN(n) || (t ? n > e : n >= e),
22
- max: ({ max: e, isExclusive: t }) => (n) => isNaN(n) || (t ? n < e : n <= e)
23
- },
24
- o
25
- ), r = l(() => {
26
- const e = s.value.min;
27
- if (!(!e || e.min === null))
28
- return e.min + (e.isExclusive ? i.value : 0);
29
- }), c = l(() => {
30
- const e = s.value.max;
31
- if (!(!e || e.max === null))
32
- return e.max - (e.isExclusive ? i.value : 0);
33
- });
34
- return (e, t) => (u(), d(p(x), {
35
- id: a.labelForId,
36
- ariaLabel: a.control.label,
37
- class: "number-input",
38
- disabled: a.disabled,
39
- "model-value": a.control.data,
40
- min: r.value,
41
- max: c.value,
42
- step: i.value,
43
- error: !a.isValid,
44
- "onUpdate:modelValue": a.changeValue
45
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "min", "max", "step", "error", "onUpdate:modelValue"]));
46
- }
47
- });
48
- export {
49
- h as _
50
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as b, useAttrs as v, computed as i, ref as f, toRef as V, onMounted as h, openBlock as n, createElementBlock as y, Fragment as g, createBlock as u, unref as o, mergeProps as c, createCommentVNode as B } from "vue";
2
- import { a5 as F, a6 as k } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { o as O } from "./index-Blg1O3Fz.js";
4
- import { u as x } from "./usePossibleValues-yDswh8Qc.js";
5
- const w = /* @__PURE__ */ b({
6
- inheritAttrs: !1,
7
- __name: "RadioControlBase",
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
- type: {}
17
- },
18
- setup(e) {
19
- const s = v(), a = e, r = i(() => a.control.uischema.options?.radioLayout), m = (l) => ({
20
- id: l.id,
21
- text: l.text,
22
- ...l.disabled ? { disabled: !0 } : {}
23
- }), d = f(null), { possibleValues: p } = x(V(a, "control"), {
24
- defaultOnNonProvided: null
25
- }), t = i(
26
- () => (p.value ?? d.value)?.map(m)
27
- );
28
- return h(() => {
29
- d.value = a.control?.schema?.oneOf ? a.control.schema.oneOf.map(O) : null;
30
- }), (l, C) => t.value ? (n(), y(g, { key: 0 }, [
31
- a.type === "valueSwitch" ? (n(), u(o(F), c({ key: 0 }, o(s), {
32
- id: e.labelForId,
33
- "possible-values": t.value,
34
- disabled: e.disabled,
35
- "model-value": e.control.data,
36
- size: "small",
37
- variant: "muted",
38
- "onUpdate:modelValue": e.changeValue
39
- }), null, 16, ["id", "possible-values", "disabled", "model-value", "onUpdate:modelValue"])) : (n(), u(o(k), c({ key: 1 }, o(s), {
40
- id: e.labelForId,
41
- "possible-values": t.value,
42
- alignment: r.value,
43
- disabled: e.disabled,
44
- "model-value": e.control.data,
45
- "onUpdate:modelValue": e.changeValue
46
- }), null, 16, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"]))
47
- ], 64)) : B("", !0);
48
- }
49
- });
50
- export {
51
- w as _
52
- };
@@ -1,19 +0,0 @@
1
- import { defineComponent as n, openBlock as s, createElementBlock as i, createElementVNode as e, toDisplayString as r, renderSlot as c } from "vue";
2
- import { _ as a } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const d = { class: "section-header" }, l = { class: "section-header-layout-container" }, _ = /* @__PURE__ */ n({
4
- __name: "SectionHeading",
5
- props: {
6
- titleText: {}
7
- },
8
- setup(t) {
9
- return (o, p) => (s(), i("div", d, [
10
- e("div", l, [
11
- e("h3", null, r(t.titleText), 1),
12
- c(o.$slots, "right-buttons", {}, void 0, !0)
13
- ])
14
- ]));
15
- }
16
- }), u = /* @__PURE__ */ a(_, [["__scopeId", "data-v-2310b6b8"]]);
17
- export {
18
- u as S
19
- };
@@ -1,5 +0,0 @@
1
- import { _ as a, D as s } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
2
- const _ = /* @__PURE__ */ a(s, [["__scopeId", "data-v-25eac96f"]]);
3
- export {
4
- _ as S
5
- };
@@ -1,73 +0,0 @@
1
- import { defineComponent as h, computed as s, ref as y, openBlock as c, createElementBlock as k, createVNode as a, withCtx as o, createBlock as p, unref as u, createElementVNode as i, renderSlot as S, toDisplayString as g } from "vue";
2
- import { a as x, a9 as B, _ as $ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { N as L } from "./arrow-next-BQULX8HT.js";
4
- import { V as w } from "./VerticalLayoutBase-rWbtLYJT.js";
5
- import { S as C } from "./SectionHeading-xMNeMcnS.js";
6
- import { S as N } from "./SettingsSubPanel-D_FDP5Zc.js";
7
- const V = { class: "flex-row" }, P = /* @__PURE__ */ h({
8
- __name: "SettingsSubPanelLayout",
9
- props: {
10
- layout: {}
11
- },
12
- setup(e) {
13
- const m = e, r = s(() => m.layout.uischema.options ?? {}), d = s(() => r.value.setText ?? "Set"), b = s(
14
- () => r.value.backButtonLabel ?? "Back to node configuration"
15
- ), n = y(!1);
16
- return (f, l) => (c(), k("div", {
17
- onMouseover: l[0] || (l[0] = (t) => n.value = !0),
18
- onMouseleave: l[1] || (l[1] = (t) => n.value = !1)
19
- }, [
20
- a(N, {
21
- "show-back-arrow": "",
22
- "back-button-label": b.value,
23
- "background-color-override": "var(--knime-gray-ultra-light)"
24
- }, {
25
- "expand-button": o(({ expand: t }) => [
26
- a(C, {
27
- "title-text": e.layout.uischema.label
28
- }, {
29
- "right-buttons": o(() => [
30
- i("div", V, [
31
- S(f.$slots, "buttons", { hover: n.value }, void 0, !0),
32
- a(u(B), {
33
- compact: "",
34
- class: "set-button",
35
- onClick: t
36
- }, {
37
- default: o(() => [
38
- i("span", null, g(d.value), 1),
39
- a(u(L))
40
- ]),
41
- _: 1
42
- }, 8, ["onClick"])
43
- ])
44
- ]),
45
- _: 2
46
- }, 1032, ["title-text"])
47
- ]),
48
- default: o(() => [
49
- a(w, {
50
- elements: e.layout.uischema.elements
51
- }, {
52
- default: o(({ element: t, index: v }) => [
53
- (c(), p(u(x), {
54
- key: `${e.layout.path}-${v}`,
55
- schema: e.layout.schema,
56
- uischema: t,
57
- path: e.layout.path,
58
- enabled: e.layout.enabled,
59
- renderers: e.layout.renderers,
60
- cells: e.layout.cells
61
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
62
- ]),
63
- _: 1
64
- }, 8, ["elements"])
65
- ]),
66
- _: 3
67
- }, 8, ["back-button-label"])
68
- ], 32));
69
- }
70
- }), H = /* @__PURE__ */ $(P, [["__scopeId", "data-v-7ec268f9"]]);
71
- export {
72
- H as default
73
- };
@@ -1,103 +0,0 @@
1
- import { defineComponent as g, computed as i, onMounted as x, watch as k, openBlock as I, createBlock as U, unref as y } from "vue";
2
- import { u as L, an as F } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- function S(e, n, t, l) {
4
- for (var o = e.length, u = t + -1; ++u < o; )
5
- if (n(e[u], u, e))
6
- return u;
7
- return -1;
8
- }
9
- function N(e) {
10
- return e !== e;
11
- }
12
- function O(e, n, t) {
13
- for (var l = t - 1, o = e.length; ++l < o; )
14
- if (e[l] === n)
15
- return l;
16
- return -1;
17
- }
18
- function A(e, n, t) {
19
- return n === n ? O(e, n, t) : S(e, N, t);
20
- }
21
- function B(e, n, t) {
22
- var l = e == null ? 0 : e.length;
23
- if (!l)
24
- return -1;
25
- var o = 0;
26
- return A(e, n, o);
27
- }
28
- const E = "<any unknown new column>", D = /* @__PURE__ */ g({
29
- __name: "SortListControl",
30
- props: {
31
- control: {},
32
- handleChange: { type: Function },
33
- changeValue: { type: Function },
34
- disabled: { type: Boolean },
35
- isValid: { type: Boolean },
36
- onRegisterValidation: { type: Function },
37
- labelForId: {}
38
- },
39
- setup(e) {
40
- const n = e, t = i(() => n.control.data), l = i(
41
- () => n.control.uischema
42
- ), o = i(
43
- () => l.value.options?.unknownElementId ?? E
44
- ), u = i(
45
- () => l.value.options?.unknownElementLabel ?? "Any unknown column"
46
- ), c = L(
47
- l,
48
- "possibleValues",
49
- []
50
- ), r = (a) => {
51
- const s = {
52
- id: a.id,
53
- text: a.text,
54
- ...a.special ? { special: !0 } : {}
55
- };
56
- return a.type?.id && (s.accessory = {
57
- type: "dataType",
58
- name: a.type.id
59
- }), s;
60
- }, h = i(
61
- () => c.value.map(r).concat(
62
- r({
63
- id: o.value,
64
- text: u.value,
65
- special: !0
66
- })
67
- )
68
- ), f = (a) => {
69
- if (t.value.length === 0) {
70
- v();
71
- return;
72
- }
73
- const s = B(t.value, o.value);
74
- if (s === -1)
75
- throw new Error(
76
- `SortList data have to contain the value "${o.value}"`
77
- );
78
- const b = t.value.slice(0, s + 1), V = t.value.slice(s + 1), w = new Set(t.value), p = a.map(({ id: d }) => d).filter((d) => !w.has(d));
79
- p.length > 0 && n.changeValue(b.concat(p, V));
80
- };
81
- x(() => {
82
- f(c.value);
83
- }), k(() => c.value, f);
84
- const v = () => {
85
- n.changeValue(h.value.map(({ id: a }) => a));
86
- }, m = (a) => {
87
- n.changeValue(a);
88
- };
89
- return (a, s) => (I(), U(y(F), {
90
- id: e.labelForId,
91
- ariaLabel: e.control.label,
92
- "possible-values": h.value,
93
- "model-value": t.value,
94
- disabled: e.disabled,
95
- error: !e.isValid,
96
- "onUpdate:modelValue": m
97
- }, null, 8, ["id", "ariaLabel", "possible-values", "model-value", "disabled", "error"]));
98
- }
99
- });
100
- export {
101
- E as DEFAULT_ANY_UNKNOWN_VALUES_ID,
102
- D as default
103
- };