@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,38 +0,0 @@
1
- import { defineComponent as s, ref as d, openBlock as r, createElementBlock as i, createElementVNode as u, createVNode as c, unref as v, renderSlot as a } from "vue";
2
- import { a0 as b, _ as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const f = { class: "checkbox-container" }, p = /* @__PURE__ */ s({
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(o) {
16
- const l = d(!1);
17
- return (n, e) => (r(), i("div", {
18
- class: "checkbox-input",
19
- onMouseover: e[1] || (e[1] = (t) => l.value = !0),
20
- onMouseleave: e[2] || (e[2] = (t) => l.value = !1)
21
- }, [
22
- u("div", f, [
23
- c(v(b), {
24
- class: "checkbox",
25
- disabled: o.disabled,
26
- "model-value": o.control.data,
27
- label: o.control.label,
28
- "onUpdate:modelValue": e[0] || (e[0] = (t) => o.changeValue(t === !0))
29
- }, null, 8, ["disabled", "model-value", "label"]),
30
- a(n.$slots, "icon", {}, void 0, !0)
31
- ]),
32
- a(n.$slots, "buttons", { hover: l.value }, void 0, !0)
33
- ], 32));
34
- }
35
- }), V = /* @__PURE__ */ m(p, [["__scopeId", "data-v-cd984837"]]);
36
- export {
37
- V as default
38
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as c, computed as n, ref as i, toRef as r, onMounted as u, openBlock as d, createBlock as m, unref as p, createCommentVNode as b } from "vue";
2
- import { J as f, _ as h } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { o as v } from "./index-Blg1O3Fz.js";
4
- import { u as V } from "./usePossibleValues-yDswh8Qc.js";
5
- const y = /* @__PURE__ */ c({
6
- __name: "CheckboxesControl",
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(e) {
17
- const o = e, t = n(
18
- () => o.control.uischema.options?.checkboxLayout
19
- ), a = i(null), { possibleValues: s } = V(r(o, "control")), l = n(() => a.value ?? s.value);
20
- return u(() => {
21
- a.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(v) : null;
22
- }), (k, x) => l.value ? (d(), m(p(f), {
23
- key: 0,
24
- id: e.labelForId,
25
- class: "checkboxes",
26
- "possible-values": l.value,
27
- alignment: t.value,
28
- disabled: e.disabled,
29
- "model-value": e.control.data,
30
- error: !e.isValid,
31
- "onUpdate:modelValue": e.changeValue
32
- }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "error", "onUpdate:modelValue"])) : b("", !0);
33
- }
34
- }), I = /* @__PURE__ */ h(y, [["__scopeId", "data-v-67afa686"]]);
35
- export {
36
- I as default
37
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as d, toRef as c, computed as a, openBlock as r, createBlock as b, unref as i } from "vue";
2
- import { O as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { u as p } from "./usePossibleValues-yDswh8Qc.js";
4
- const w = /* @__PURE__ */ d({
5
- __name: "ComboBoxControl",
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 l = e, { possibleValues: o } = p(c(l, "control")), n = a(
17
- () => o.value === null || o.value.length === 0
18
- ), s = a(
19
- () => l.control.uischema.providedOptions?.includes("possibleValues") || l.control.uischema.options?.possibleValues !== void 0
20
- ), u = a(
21
- () => l.disabled || n.value && s.value
22
- );
23
- return (v, V) => (r(), b(i(m), {
24
- id: e.labelForId,
25
- "model-value": e.control.data,
26
- "allow-new-values": !s.value,
27
- ariaLabel: e.control.label,
28
- disabled: u.value,
29
- "possible-values": n.value ? e.control.data.map((t) => ({ id: t, text: t })) : i(o),
30
- error: !e.isValid,
31
- "onUpdate:modelValue": e.changeValue
32
- }, null, 8, ["id", "model-value", "allow-new-values", "ariaLabel", "disabled", "possible-values", "error", "onUpdate:modelValue"]));
33
- }
34
- });
35
- export {
36
- w as default
37
- };
@@ -1,42 +0,0 @@
1
- import { defineComponent as r, computed as i, openBlock as d, createBlock as c, unref as m } from "vue";
2
- import { T as s } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { p as u } from "./plainDateTimeUtils-CR0UhpkD.js";
4
- import { U as p } from "./classApi-CHpAZrj3.js";
5
- const y = /* @__PURE__ */ r({
6
- __name: "DateControl",
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(a) {
17
- const o = a, t = (e) => {
18
- if (!e)
19
- return null;
20
- try {
21
- return p.PlainDate.from(e);
22
- } catch {
23
- return u.fromString(e).date;
24
- }
25
- }, n = i(
26
- () => t(o.control.data)
27
- ), l = (e) => {
28
- o.changeValue(e?.toString() ?? "");
29
- };
30
- return (e, f) => (d(), c(m(s), {
31
- id: a.labelForId,
32
- ariaLabel: o.control.label,
33
- "model-value": n.value,
34
- disabled: a.disabled,
35
- error: !a.isValid,
36
- "onUpdate:modelValue": l
37
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error"]));
38
- }
39
- });
40
- export {
41
- y as default
42
- };
@@ -1,78 +0,0 @@
1
- import { defineComponent as x, computed as o, openBlock as u, createElementBlock as D, normalizeClass as C, createVNode as T, unref as e, createBlock as U, createCommentVNode as B } from "vue";
2
- import { T as F, V as _, _ as k } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { u as w } from "./usePlainDateTimeBatch-Bd2G-GY9.js";
4
- import { p as i } from "./plainDateTimeUtils-CR0UhpkD.js";
5
- import { U as L } from "./classApi-CHpAZrj3.js";
6
- const P = /* @__PURE__ */ x({
7
- __name: "DateTimeControl",
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(t) {
18
- const n = t, l = o(() => n.control.uischema.options), r = o(() => l.value?.showTime ?? !0), c = o(
19
- () => i.getMaxGranularity(l.value)
20
- ), m = (a) => {
21
- if (typeof a != "string" || a === "")
22
- return null;
23
- try {
24
- return L.PlainDate.from(a);
25
- } catch {
26
- return i.fromString(a).date;
27
- }
28
- }, s = o(
29
- () => m(l.value?.minimum)
30
- ), p = o(
31
- () => m(l.value?.maximum)
32
- ), {
33
- datePart: g,
34
- timePart: y,
35
- granularity: f,
36
- onDateChange: b,
37
- onTimeChange: h,
38
- onGranularityChange: V
39
- } = w({
40
- getDateTime: () => n.control.data,
41
- commit: (a, d, v) => {
42
- if (!r.value) {
43
- n.changeValue(a === null ? "" : a.toString());
44
- return;
45
- }
46
- n.changeValue(i.toString(a, d, v));
47
- }
48
- });
49
- return (a, d) => (u(), D("div", {
50
- class: C(["date-time-row", { "date-only": !r.value }])
51
- }, [
52
- T(e(F), {
53
- id: t.labelForId,
54
- ariaLabel: `${n.control.label} date`,
55
- "model-value": e(g),
56
- disabled: t.disabled,
57
- error: !t.isValid,
58
- "min-date": s.value,
59
- "max-date": p.value,
60
- "onUpdate:modelValue": e(b)
61
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "min-date", "max-date", "onUpdate:modelValue"]),
62
- r.value ? (u(), U(e(_), {
63
- key: 0,
64
- ariaLabel: `${n.control.label} time`,
65
- "model-value": e(y),
66
- granularity: e(f),
67
- "max-granularity": c.value,
68
- disabled: t.disabled,
69
- error: !t.isValid,
70
- "onUpdate:modelValue": e(h),
71
- "onUpdate:granularity": e(V)
72
- }, null, 8, ["ariaLabel", "model-value", "granularity", "max-granularity", "disabled", "error", "onUpdate:modelValue", "onUpdate:granularity"])) : B("", !0)
73
- ], 2));
74
- }
75
- }), z = /* @__PURE__ */ k(P, [["__scopeId", "data-v-73451c7b"]]);
76
- export {
77
- z as default
78
- };
@@ -1,32 +0,0 @@
1
- import { defineComponent as i, computed as a, openBlock as s, createBlock as c, unref as t } from "vue";
2
- import { u as m, P as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const h = /* @__PURE__ */ i({
4
- __name: "DateTimeFormatPickerControl",
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(e) {
15
- const o = e, l = a(
16
- () => o.control.uischema
17
- ), n = a(() => l.value.options), d = a(() => n.value?.allowedFormats), r = m(l, "dateTimeFormats", []);
18
- return (f, p) => (s(), c(t(u), {
19
- id: e.labelForId,
20
- ariaLabel: e.control.label,
21
- "model-value": o.control.data,
22
- disabled: e.disabled,
23
- "allowed-formats": d.value,
24
- "all-default-formats": t(r) ?? [],
25
- error: !e.isValid,
26
- "onUpdate:modelValue": e.changeValue
27
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "onUpdate:modelValue"]));
28
- }
29
- });
30
- export {
31
- h as default
32
- };
@@ -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
- };