@knime/jsonforms 1.21.16 → 1.21.17

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 (93) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/AnyOfTwinlist-SXwBBRp2.js +23 -0
  3. package/dist/CheckboxControl-CbWn843V.js +40 -0
  4. package/dist/CheckboxesControl-BiQOMrsp.js +39 -0
  5. package/dist/{ColorControl-wEr-pQ4g.js → ColorControl-B_mQdOCs.js} +10 -8
  6. package/dist/{ColorPreviewControl-B7aXaak-.js → ColorPreviewControl-BREwhSO9.js} +28 -28
  7. package/dist/ComboBoxControl-BIZlnizm.js +39 -0
  8. package/dist/DateControl-vkwY-8Qy.js +44 -0
  9. package/dist/DateTimeControl-CtXV6_D2.js +80 -0
  10. package/dist/DateTimeFormatPickerControl-a7MPaNFN.js +34 -0
  11. package/dist/{DateTimeFormatPickerWithTypeControl-BVG_BSaN.js → DateTimeFormatPickerWithTypeControl-B9Nu0dh1.js} +18 -17
  12. package/dist/DropdownControl-BUwovb4K.js +32 -0
  13. package/dist/{ExecutorCoresControl-Cphh4q2c.js → ExecutorCoresControl-DN-1o1XJ.js} +10 -9
  14. package/dist/{ExecutorMemoryControl-BQDSkKjf.js → ExecutorMemoryControl-UzqzP4hI.js} +9 -8
  15. package/dist/{FileUploadControl-CnPXEafs.js → FileUploadControl-WC8TFQHe.js} +46 -45
  16. package/dist/{GridSelectionControl-093qWj_x.js → GridSelectionControl-BgqT1t9d.js} +24 -23
  17. package/dist/{HorizontalLayout-D07DfljM.js → HorizontalLayout-CESRA3YR.js} +6 -6
  18. package/dist/{IntegerControl-D0qSSA_X.js → IntegerControl-DKXN0mcE.js} +5 -4
  19. package/dist/IntervalControl-BswGPjcV.js +51 -0
  20. package/dist/LinkControl-DTqOfnTg.js +35 -0
  21. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM.js} +1 -1
  22. package/dist/ManualTwinlistControl-CoZdPu6n.js +74 -0
  23. package/dist/{MultiSelectListBoxControl-qdxrfyqT.js → MultiSelectListBoxControl-CjM94miu.js} +53 -52
  24. package/dist/{MultimodeTwinlistControl-DKNf9s6C.js → MultimodeTwinlistControl-NMnPBn6a.js} +1 -1
  25. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-mQFRHgGM.js +159 -0
  26. package/dist/{NameFilter-DxsfvMYP.js → NameFilter-DuVJG0SF.js} +7 -6
  27. package/dist/{NumberControl-gRIAl0Xw.js → NumberControl-NMJmxuze.js} +7 -6
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8.js +52 -0
  29. package/dist/{OneOfDropdown-6EW73QQp.js → OneOfDropdown-CwJemyYo.js} +13 -11
  30. package/dist/{RadioButtonsWithDescriptionControl-DDdnwXUW.js → RadioButtonsWithDescriptionControl-BK3UCreL.js} +15 -15
  31. package/dist/{RadioControl-BOGJkSzd.js → RadioControl-ts1-JozG.js} +5 -4
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt.js +57 -0
  33. package/dist/{ResourceControlBase-D-oG-tP4.js → ResourceControlBase-FDiyHyQi.js} +18 -15
  34. package/dist/{RichTextControl-FgGsWYtG.js → RichTextControl-DH6GqUeF.js} +4 -3
  35. package/dist/{SectionHeading-xMNeMcnS.js → SectionHeading-DIAFnjCM.js} +1 -1
  36. package/dist/{SectionLayout-Bo11XVly.js → SectionLayout-Cb3_L9Te.js} +3 -3
  37. package/dist/{SettingsSubPanel-D_FDP5Zc.js → SettingsSubPanel-BuxORlJO.js} +1 -1
  38. package/dist/{SettingsSubPanelLayout-Dp_jLbsR.js → SettingsSubPanelLayout-DruWJjQA.js} +4 -4
  39. package/dist/{SimpleButtonControl-QdWssOCJ.js → SimpleButtonControl-BeRnF6lP.js} +13 -13
  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-DML-OwvR.js} +5294 -5346
  41. package/dist/{SimpleTwinlistControl-CAaKpaUA.js → SimpleTwinlistControl-CnBe4qsI.js} +6 -5
  42. package/dist/{SingleSelectControl-D7D5AanU.js → SingleSelectControl-C4Qzk2Ki.js} +21 -19
  43. package/dist/{SingleSelectListBoxControl-XeWCleLY.js → SingleSelectListBoxControl-sLe2Y67h.js} +16 -15
  44. package/dist/SortListControl-ChpYm3CZ.js +105 -0
  45. package/dist/{StyledListItem-CjOv-VlL.js → StyledListItem-BJEJoIzr.js} +1 -1
  46. package/dist/{TeamAndSpacesControl-DFrotXG1.js → TeamAndSpacesControl-7ZXPUwBb.js} +12 -11
  47. package/dist/{TeamResourceControl-BnBXHcn9.js → TeamResourceControl-BZDXMRLZ.js} +12 -11
  48. package/dist/{TextAreaControl-9YsuIVg_.js → TextAreaControl-BDGtgWys.js} +10 -8
  49. package/dist/{TextControl-BrUMvx4G.js → TextControl-8jfyOJKb.js} +1 -1
  50. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4BT0xCnX.js → TextControl.vue_vue_type_script_setup_true_lang--8lz3nbO.js} +16 -14
  51. package/dist/{TimeControl-DvzIDb-2.js → TimeControl-Dvt5U7xN.js} +28 -26
  52. package/dist/{TimeframesControl-2GAc0ndD.js → TimeframesControl-DcUxC3kX.js} +7 -6
  53. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-Chqnf11f.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N.js} +14 -11
  54. package/dist/{TypedStringFilter-mklK-qwG.js → TypedStringFilter-Cx8OCQcE.js} +5 -4
  55. package/dist/{ValueSwitchControl-BOUlFthR.js → ValueSwitchControl-1ax1yKbk.js} +6 -5
  56. package/dist/{VerticalLayout-u04mODMq.js → VerticalLayout-DnyoqTeh.js} +2 -2
  57. package/dist/{VerticalLayoutBase-rWbtLYJT.js → VerticalLayoutBase-BS5IpgON.js} +2 -2
  58. package/dist/ZonedDateTimeControl-mIIRwaHz.js +79 -0
  59. package/dist/{_Uint8Array-S1XaShiS.js → _Uint8Array-CsgDtogS.js} +12 -12
  60. package/dist/knime-jsonforms.css +1 -1
  61. package/dist/knime-jsonforms.js +41 -42
  62. package/dist/src/higherOrderComponents/control/index.d.ts +1 -2
  63. package/dist/src/higherOrderComponents/control/util.d.ts +4 -5
  64. package/dist/src/higherOrderComponents/control/validation/types.d.ts +2 -2
  65. package/dist/src/higherOrderComponents/control/withLabel.d.ts +1 -1
  66. package/dist/src/renderers/checkboxRenderer.d.ts +120 -1
  67. package/dist/src/renderers/defaultRenderers.d.ts +120 -1
  68. package/dist/src/renderers/fallbackRenderers.d.ts +120 -1
  69. package/dist/testing.js +3 -3
  70. package/dist/{toString-DXjInt1t.js → toString-hCFROtg1.js} +1 -1
  71. package/dist/{useBuiltinValidations-CFNcCpco.js → useBuiltinValidations-Cfw3JlJf.js} +1 -1
  72. package/dist/{usePossibleValues-yDswh8Qc.js → usePossibleValues-CtPV4Cjp.js} +1 -1
  73. package/dist/{useUnknownValuesInTwinlist-BSnLQI_Q.js → useUnknownValuesInTwinlist-BCbqJg7j.js} +1 -1
  74. package/package.json +1 -1
  75. package/dist/AnyOfTwinlist-BCIsT83q.js +0 -22
  76. package/dist/CheckboxControl-CjiUwvWU.js +0 -38
  77. package/dist/CheckboxesControl-CAHj0UnX.js +0 -37
  78. package/dist/ComboBoxControl-hveFsDLi.js +0 -37
  79. package/dist/DateControl-BtCCimuA.js +0 -42
  80. package/dist/DateTimeControl-Bll2rZlX.js +0 -78
  81. package/dist/DateTimeFormatPickerControl-CsKD9vWJ.js +0 -32
  82. package/dist/DropdownControl-DA8lNfVk.js +0 -30
  83. package/dist/IntervalControl-vOi33CZB.js +0 -48
  84. package/dist/LinkControl-D5t3awqb.js +0 -35
  85. package/dist/ManualTwinlistControl-BQ4H-fRR.js +0 -72
  86. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DHx6nrqi.js +0 -157
  87. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DEG90Gdx.js +0 -50
  88. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BOuoChe1.js +0 -52
  89. package/dist/SortListControl-kjhkdRwC.js +0 -103
  90. package/dist/ZonedDateTimeControl-BzV5ZuYf.js +0 -77
  91. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +0 -5
  92. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +0 -23
  93. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +0 -11
@@ -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,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
- };
@@ -1,77 +0,0 @@
1
- import { defineComponent as f, computed as n, openBlock as h, createElementBlock as T, createElementVNode as U, createVNode as r, unref as a } from "vue";
2
- import { T as x, V as C, W as D, _ as B } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { u as F } from "./usePlainDateTimeBatch-Bd2G-GY9.js";
4
- import { p as u } from "./plainDateTimeUtils-CR0UhpkD.js";
5
- const L = { class: "layout-container" }, _ = { class: "date-time-row" }, $ = /* @__PURE__ */ f({
6
- __name: "ZonedDateTimeControl",
7
- props: {
8
- control: {},
9
- handleChange: { type: Function },
10
- changeValue: { type: Function },
11
- disabled: { type: Boolean },
12
- isValid: { type: Boolean },
13
- onRegisterValidation: { type: Function },
14
- labelForId: {}
15
- },
16
- setup(l) {
17
- const e = l, d = n(() => e.control.uischema.options), m = n(
18
- () => u.getMaxGranularity(d.value)
19
- ), {
20
- datePart: c,
21
- timePart: b,
22
- granularity: p,
23
- onDateChange: g,
24
- onTimeChange: V,
25
- onGranularityChange: y
26
- } = F({
27
- getDateTime: () => e.control.data.dateTime,
28
- commit: (t, o, i) => {
29
- e.changeValue({
30
- ...e.control.data,
31
- dateTime: u.toString(t, o, i)
32
- });
33
- }
34
- }), s = n({
35
- get: () => e.control.data.timeZone,
36
- set: (t) => {
37
- e.changeValue({
38
- ...e.control.data,
39
- timeZone: t
40
- });
41
- }
42
- }), v = n(() => d.value?.possibleValues ?? []);
43
- return (t, o) => (h(), T("div", L, [
44
- U("div", _, [
45
- r(a(x), {
46
- id: l.labelForId,
47
- ariaLabel: `${e.control.label} date`,
48
- "model-value": a(c),
49
- disabled: l.disabled,
50
- error: !l.isValid,
51
- "onUpdate:modelValue": a(g)
52
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "onUpdate:modelValue"]),
53
- r(a(C), {
54
- ariaLabel: `${e.control.label} time`,
55
- "model-value": a(b),
56
- granularity: a(p),
57
- "max-granularity": m.value,
58
- disabled: l.disabled,
59
- error: !l.isValid,
60
- "onUpdate:modelValue": a(V),
61
- "onUpdate:granularity": a(y)
62
- }, null, 8, ["ariaLabel", "model-value", "granularity", "max-granularity", "disabled", "error", "onUpdate:modelValue", "onUpdate:granularity"])
63
- ]),
64
- r(a(D), {
65
- modelValue: s.value,
66
- "onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
67
- error: !l.isValid,
68
- "possible-values": v.value,
69
- disabled: l.disabled,
70
- ariaLabel: "Timezone"
71
- }, null, 8, ["modelValue", "error", "possible-values", "disabled"])
72
- ]));
73
- }
74
- }), k = /* @__PURE__ */ B($, [["__scopeId", "data-v-f56e38b3"]]);
75
- export {
76
- k as default
77
- };
@@ -1,5 +0,0 @@
1
- type __VLS_Props = {
2
- error: string;
3
- };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
- export default _default;
@@ -1,23 +0,0 @@
1
- type __VLS_Props = {
2
- errors: Array<string>;
3
- fill?: boolean;
4
- };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {}): any;
9
- };
10
- refs: {};
11
- rootEl: HTMLDivElement;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
- fill: boolean;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
- export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
@@ -1,11 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { VueControl, VueControlProps } from '../types';
3
- export declare const addErrorMessageToVNode: ({ fill }: {
4
- fill: boolean;
5
- }) => (vNode: VNode, props: Pick<VueControlProps<unknown>, "messages">) => VNode | VNode[];
6
- export declare const withErrorMessage: (config?: {
7
- /**
8
- * Set to true if the renderer should grow within its parent
9
- */
10
- fill: boolean;
11
- }) => <D>({ control, tester, name, __asyncSetup, }: import('..').SpecialControlRenderer<VueControl<D>>) => import('..').SpecialControlRenderer<VueControl<D>>;