@knime/jsonforms 1.6.9 → 1.7.0

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 (122) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AnyOfTwinlist-D7gkxtYi.js +22 -0
  3. package/dist/{BaseButton-B6Z2uYGV.js → BaseButton-nH3iSIOK.js} +1 -1
  4. package/dist/{Button-B27OsWa6.js → Button-DnQZFkaO.js} +2 -2
  5. package/dist/{Checkbox-Bl3rvtXe.js → Checkbox-DB9YeQa-.js} +1 -1
  6. package/dist/{CheckboxControl-BAIwtCZF.js → CheckboxControl-hkHWMBsv.js} +2 -2
  7. package/dist/{Checkboxes-Cb1lJdBP.js → Checkboxes-C_qM6Iao.js} +2 -2
  8. package/dist/{CheckboxesControl-CQSzjloD.js → CheckboxesControl-DRNda60A.js} +3 -3
  9. package/dist/{ComboBoxControl-CmY_qMv_.js → ComboBoxControl-Dd0UZdMx.js} +77 -89
  10. package/dist/{DateControl-BL2H5BjS.js → DateControl-BmqofCSf.js} +1 -1
  11. package/dist/{DateTimeControl-BYuJUqBc.js → DateTimeControl-B7uvqC1s.js} +2 -2
  12. package/dist/{DateTimeFormatInput-BagQnUJb.js → DateTimeFormatInput-CsEAVqAA.js} +3 -3
  13. package/dist/{DateTimeFormatPickerControl-DmbGr3EH.js → DateTimeFormatPickerControl-BK80kZf0.js} +2 -2
  14. package/dist/{DateTimeFormatPickerWithTypeControl-CGCdH2_0.js → DateTimeFormatPickerWithTypeControl-CS8APLBp.js} +3 -3
  15. package/dist/{DateTimeInput-Cbw4cu1f.js → DateTimeInput-DP2yHD9r.js} +14 -13
  16. package/dist/{Dropdown-xSUsqbQu.js → Dropdown-D8qp_4wZ.js} +30 -29
  17. package/dist/DropdownControl-B2fs1yBj.js +84 -0
  18. package/dist/{FunctionButton-BjutjqfY.js → FunctionButton-Bo0NcfGh.js} +2 -2
  19. package/dist/{HorizontalLayout-HzwqDGLQ.js → HorizontalLayout-Bg5vYcO1.js} +1 -1
  20. package/dist/{InputField-CWbS01h9.js → InputField-DRLCzzDf.js} +1 -1
  21. package/dist/{IntegerControl-BNz67bUk.js → IntegerControl-HLRox7w7.js} +1 -1
  22. package/dist/{IntervalControl-jM22Q0CQ.js → IntervalControl-D-xUIRW3.js} +4 -4
  23. package/dist/LoadingDropdown-DkxltiwQ.js +40 -0
  24. package/dist/MultimodeTwinlistControl-CV2v4Y5n.js +526 -0
  25. package/dist/{MultiselectListBox-D5smzcVZ.js → MultiselectListBox-BFQxtoyR.js} +1 -1
  26. package/dist/{NameFilter-B9TOgIBA.js → NameFilter-BxfjNVu-.js} +1 -1
  27. package/dist/{NumberControl-YCMcJfZB.js → NumberControl-Df91UAXl.js} +1 -1
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DLqtcp04.js +53 -0
  29. package/dist/{NumberInput-DO8rNjya.js → NumberInput-BLlTeOig.js} +1 -1
  30. package/dist/OneOfDropdown-CLPbmMt7.js +34 -0
  31. package/dist/{RadioControl-DK_i_SC9.js → RadioControl-CDi8WbsE.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-B_Dxf3fU.js → RadioControlBase.vue_vue_type_script_setup_true_lang-B6clHvd5.js} +3 -3
  33. package/dist/{RichTextControl-Bp6N-XYM.js → RichTextControl-YMNSyY3O.js} +6 -6
  34. package/dist/{SectionHeading-wDPgvJNi.js → SectionHeading-D8h1zy67.js} +1 -1
  35. package/dist/{SectionLayout-DYLzJvJs.js → SectionLayout-DBiG5Ubc.js} +3 -3
  36. package/dist/{SettingsSubPanel-DTubXv1M.js → SettingsSubPanel--LD_hsgG.js} +2 -2
  37. package/dist/{SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js → SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js} +1024 -1022
  38. package/dist/{SettingsSubPanelLayout-CAtNgx_A.js → SettingsSubPanelLayout-By5U2J68.js} +5 -5
  39. package/dist/{SimpleButtonControl-D2slFPzs.js → SimpleButtonControl-B47jBtrM.js} +6 -6
  40. package/dist/SimpleTwinlistControl-DoRJkKPs.js +22 -0
  41. package/dist/SingleSelectControl-zE9ck9JX.js +58 -0
  42. package/dist/SortListControl-C5DXqqPG.js +372 -0
  43. package/dist/{TextAreaControl-CxNkzjdq.js → TextAreaControl-D2-nyO1m.js} +1 -1
  44. package/dist/{TextControl-j8Bk4RzX.js → TextControl-Ss9_5V2f.js} +1 -1
  45. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DaEoFVBw.js +93 -0
  46. package/dist/{TimeControl-vGEtfCEt.js → TimeControl-CblSq-0a.js} +2 -2
  47. package/dist/TwinlistControlBase-Xe8xQAyG.js +40 -0
  48. package/dist/{TwinlistLoadingInfo-DnhM2U43.js → TwinlistLoadingInfo-BHhpo_7N.js} +12 -11
  49. package/dist/TypedNameFilter-N2eeG2VM.js +25 -0
  50. package/dist/{ValueSwitch-CGXtJV-B.js → ValueSwitch-BI5z5U3F.js} +1 -1
  51. package/dist/{ValueSwitchControl-dHPRa3vB.js → ValueSwitchControl-CixwDXQs.js} +1 -1
  52. package/dist/{VerticalLayout-BUWGeKPt.js → VerticalLayout-B8RzC8Vj.js} +2 -2
  53. package/dist/{VerticalLayoutBase-Tp2IGikj.js → VerticalLayoutBase-Bj_upYbt.js} +1 -1
  54. package/dist/{ZonedDateTimeControl-Ddjugjzp.js → ZonedDateTimeControl-CZdpjJEK.js} +4 -4
  55. package/dist/_baseEach-FP8ISlsz.js +31 -0
  56. package/dist/_baseIteratee-DhaGkQLM.js +518 -0
  57. package/dist/_getTag-DiktJuv_.js +132 -0
  58. package/dist/index-Blg1O3Fz.js +15 -0
  59. package/dist/isArray-WzO_os3q.js +4 -0
  60. package/dist/isObjectLike-BatpeCIi.js +29 -0
  61. package/dist/isSymbol-C3_SC0Qp.js +8 -0
  62. package/dist/knime-jsonforms.css +1 -1
  63. package/dist/knime-jsonforms.js +8 -8
  64. package/dist/{localTimeUtils-DIFjv2_A.js → localTimeUtils-Dp9bEJDh.js} +1 -1
  65. package/dist/{magic-string.es-BbItKD7x.js → magic-string.es-CeNBRh1A.js} +1 -1
  66. package/dist/src/constants/inputFormats.d.ts +2 -2
  67. package/dist/src/higherOrderComponents/control/validation/types.d.ts +7 -1
  68. package/dist/src/renderers/defaultRenderers.d.ts +24 -589
  69. package/dist/src/renderers/dropdownRenderer.d.ts +55 -115
  70. package/dist/src/renderers/fallbackRenderers.d.ts +1 -241
  71. package/dist/src/renderers/nameFilterRenderer.d.ts +1 -1
  72. package/dist/src/renderers/singleSelectRenderer.d.ts +8 -0
  73. package/dist/src/renderers/sortListRenderer.d.ts +0 -8
  74. package/dist/src/renderers/twinlistRenderer.d.ts +1 -1
  75. package/dist/src/renderers/typedNameFilterRenderer.d.ts +1 -0
  76. package/dist/src/types/ChoicesUiSchema.d.ts +7 -12
  77. package/dist/src/types/provided.d.ts +0 -2
  78. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -86
  79. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -13
  80. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +20 -0
  81. package/dist/src/uiComponents/SortListControl.vue.d.ts +4 -4
  82. package/dist/src/uiComponents/composables/useBuiltinValidations.d.ts +43 -0
  83. package/dist/src/uiComponents/composables/usePossibleValues.d.ts +24 -0
  84. package/dist/src/uiComponents/composables/useProvidedState.d.ts +2 -2
  85. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  86. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -99
  87. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +36 -0
  88. package/dist/src/uiComponents/twinlist/{ColumnFilter.vue.d.ts → TypedNameFilter.vue.d.ts} +1 -1
  89. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +1 -1
  90. package/dist/src/utils/index.d.ts +0 -2
  91. package/dist/{svgWithTitle-Cgc-TGWi.js → svgWithTitle-B5FsAPop.js} +1 -1
  92. package/dist/testUtils/component.d.ts +4 -0
  93. package/dist/testing.js +80 -63
  94. package/dist/toString-B9O7P854.js +26 -0
  95. package/dist/useBuiltinValidations-8VwUv3RT.js +52 -0
  96. package/dist/usePossibleValues-CrNcBbpN.js +26 -0
  97. package/package.json +3 -3
  98. package/dist/AnyOfTwinlist-C3gbWpq1.js +0 -22
  99. package/dist/ColumnFilter-DOIYetcH.js +0 -24
  100. package/dist/ColumnSelect-B8IH25EN.js +0 -68
  101. package/dist/DropdownControl-DGfi9k8S.js +0 -4
  102. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BvodaKZi.js +0 -237
  103. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CPj9t6fL.js +0 -60
  104. package/dist/OneOfDropdown-BoOe32dm.js +0 -35
  105. package/dist/SimpleTwinlistControl-CrLWO2B2.js +0 -50
  106. package/dist/SortListControl-v_nVoQsh.js +0 -366
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-qt4UxKcl.js +0 -87
  108. package/dist/TwinlistControl-Dw5uSnOi.js +0 -554
  109. package/dist/_baseAssignValue-BPMLYzDH.js +0 -19
  110. package/dist/_baseEach-B8N_Gx8P.js +0 -31
  111. package/dist/_baseIsEqual-DmkT9Nkc.js +0 -248
  112. package/dist/_baseIteratee-DvBmrhnf.js +0 -104
  113. package/dist/_getTag-DS8v0_uf.js +0 -312
  114. package/dist/getPossibleValuesFromUiSchema-hQj1TCOR.js +0 -39
  115. package/dist/index-hm05O8UX.js +0 -16
  116. package/dist/isSymbol-OFe5xy2f.js +0 -34
  117. package/dist/src/renderers/columnFilterRenderer.d.ts +0 -1
  118. package/dist/src/renderers/columnSelectRenderer.d.ts +0 -265
  119. package/dist/src/uiComponents/ColumnSelect.vue.d.ts +0 -26
  120. package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +0 -10
  121. package/dist/toString-DkbNkGT4.js +0 -25
  122. /package/dist/src/uiComponents/twinlist/{TwinlistControl.vue.d.ts → MultimodeTwinlistControl.vue.d.ts} +0 -0
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as c, openBlock as n, createBlock as r, withCtx as t, createVNode as o, unref as l, pushScopeId as p, popScopeId as i, createElementVNode as m } from "vue";
2
- import { n as d, _ as h } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
2
+ import { k as d, _ as h } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
3
3
  import { N as f } from "./arrow-next-Qa8PNb04.js";
4
- import { V as b } from "./VerticalLayoutBase-Tp2IGikj.js";
5
- import { S as y } from "./SectionHeading-wDPgvJNi.js";
6
- import { S } from "./SettingsSubPanel-DTubXv1M.js";
7
- import { F as _ } from "./FunctionButton-BjutjqfY.js";
4
+ import { V as b } from "./VerticalLayoutBase-Bj_upYbt.js";
5
+ import { S as y } from "./SectionHeading-D8h1zy67.js";
6
+ import { S } from "./SettingsSubPanel--LD_hsgG.js";
7
+ import { F as _ } from "./FunctionButton-Bo0NcfGh.js";
8
8
  const k = (a) => (p("data-v-6ea6b26c"), a = a(), i(), a), g = /* @__PURE__ */ k(() => /* @__PURE__ */ m("span", null, "Set", -1)), I = /* @__PURE__ */ c({
9
9
  __name: "SettingsSubPanelLayout",
10
10
  props: {
@@ -1,7 +1,7 @@
1
- import { defineComponent as u, openBlock as s, createBlock as p, resolveDynamicComponent as f, computed as r, ref as g, createElementBlock as _, createVNode as b, unref as y, withCtx as B, createCommentVNode as C, createTextVNode as h, toDisplayString as k, renderSlot as I } from "vue";
2
- import { k as V, _ as F } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
1
+ import { defineComponent as u, openBlock as s, createBlock as p, resolveDynamicComponent as f, computed as r, ref as g, createElementBlock as _, createVNode as b, unref as y, withCtx as B, createCommentVNode as C, createTextVNode as h, toDisplayString as I, renderSlot as V } from "vue";
2
+ import { o as k, _ as F } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
3
3
  import { R as S } from "./reload-BhzcZRFp.js";
4
- import { B as $ } from "./Button-B27OsWa6.js";
4
+ import { B as $ } from "./Button-DnQZFkaO.js";
5
5
  const x = /* @__PURE__ */ u({
6
6
  __name: "DynamicIcon",
7
7
  props: {
@@ -28,7 +28,7 @@ const x = /* @__PURE__ */ u({
28
28
  setup(a) {
29
29
  const e = a, t = r(() => !e.control.enabled), l = r(() => e.control.uischema.options.triggerId), i = r(
30
30
  () => e.control.uischema.options.icon
31
- ), d = V("trigger"), m = () => {
31
+ ), d = k("trigger"), m = () => {
32
32
  d({ id: l.value });
33
33
  }, n = g(!1);
34
34
  return (c, o) => (s(), _("div", {
@@ -48,11 +48,11 @@ const x = /* @__PURE__ */ u({
48
48
  key: 0,
49
49
  icon: i.value
50
50
  }, null, 8, ["icon"])) : C("", !0),
51
- h(k(c.control.label), 1)
51
+ h(I(c.control.label), 1)
52
52
  ]),
53
53
  _: 1
54
54
  }, 8, ["disabled"]),
55
- I(c.$slots, "buttons", { hover: n.value }, void 0, !0)
55
+ V(c.$slots, "buttons", { hover: n.value }, void 0, !0)
56
56
  ], 32));
57
57
  }
58
58
  }), j = /* @__PURE__ */ F(D, [["__scopeId", "data-v-71d12dcd"]]);
@@ -0,0 +1,22 @@
1
+ import { defineComponent as s, toRef as l, openBlock as a, createBlock as r, mergeProps as i, unref as p } from "vue";
2
+ import { u as c } from "./usePossibleValues-CrNcBbpN.js";
3
+ import { T as u } from "./TwinlistControlBase-Xe8xQAyG.js";
4
+ const y = /* @__PURE__ */ s({
5
+ __name: "SimpleTwinlistControl",
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, n = l(o, "control"), { possibleValues: t } = c(n);
17
+ return (m, d) => (a(), r(u, i(o, { "possible-values": p(t) }), null, 16, ["possible-values"]));
18
+ }
19
+ });
20
+ export {
21
+ y as default
22
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as v, computed as r, openBlock as I, createBlock as y } from "vue";
2
+ import { u as F } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
3
+ import { L as P } from "./LoadingDropdown-DkxltiwQ.js";
4
+ const i = "__special__", a = "__regular__", B = /* @__PURE__ */ v({
5
+ __name: "SingleSelectControl",
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(u) {
16
+ const t = u, d = r(
17
+ () => t.control.uischema.options.choicesProvider
18
+ ), p = r(
19
+ () => t.control.uischema.options.specialChoices
20
+ ), n = F(
21
+ d,
22
+ null
23
+ ), l = (e) => `${i}${e}`, c = (e) => `${a}${e}`, h = ({
24
+ id: e,
25
+ text: o
26
+ }) => ({
27
+ id: l(e),
28
+ text: o,
29
+ isSpecial: !0
30
+ }), m = ({
31
+ id: e,
32
+ text: o
33
+ }) => ({
34
+ id: c(e),
35
+ text: o
36
+ }), f = r(() => n.value === null ? null : p.value.map(h).concat(n.value.map(m))), C = (e) => {
37
+ if (!e.startsWith(a) && !e.startsWith(i))
38
+ throw new Error(`Expected id to start with ${a}`);
39
+ }, g = (e) => e ? (C(e), e.startsWith(i) ? { specialChoice: e.slice(i.length) } : { regularChoice: e.slice(a.length) }) : null, b = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? c(e.regularChoice) : "specialChoice" in e && e.specialChoice ? l(e.specialChoice) : "", s = r({
40
+ get: () => b(t.control.data),
41
+ set: (e) => {
42
+ t.changeValue(g(e));
43
+ }
44
+ });
45
+ return (e, o) => (I(), y(P, {
46
+ id: e.labelForId,
47
+ modelValue: s.value,
48
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => s.value = _),
49
+ "possible-values": f.value,
50
+ ariaLabel: e.control.label,
51
+ disabled: e.disabled,
52
+ compact: ""
53
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled"]));
54
+ }
55
+ });
56
+ export {
57
+ B as default
58
+ };
@@ -0,0 +1,372 @@
1
+ import { openBlock as C, createElementBlock as S, createElementVNode as V, defineComponent as W, computed as g, ref as F, watch as z, Fragment as Y, createVNode as u, withKeys as B, withModifiers as M, unref as m, withCtx as f, nextTick as re, onMounted as ie, createTextVNode as T, renderSlot as H, normalizeClass as ce } from "vue";
2
+ import { _ as q, u as ue, L as de, E as me } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
3
+ import { i as pe } from "./navigator-DWmzYl-A.js";
4
+ import { F as $ } from "./FunctionButton-Bo0NcfGh.js";
5
+ import { M as fe } from "./MultiselectListBox-BFQxtoyR.js";
6
+ import { g as he } from "./_getTag-DiktJuv_.js";
7
+ import { b as ve } from "./_baseEach-FP8ISlsz.js";
8
+ import { b as we } from "./_baseIteratee-DhaGkQLM.js";
9
+ import { i as be } from "./isArray-WzO_os3q.js";
10
+ import { c as _e } from "./createMissingItem-B00Kg95q.js";
11
+ import { B as N } from "./Button-DnQZFkaO.js";
12
+ const R = {
13
+ ArrowUp: "↑",
14
+ ArrowDown: "↓",
15
+ ArrowLeft: "←",
16
+ ArrowRight: "→",
17
+ Enter: "↵",
18
+ " ": "Space",
19
+ // we use event.key and there space is an actual space not the code "Space"
20
+ CtrlOrCmd: "Ctrl"
21
+ }, ge = {
22
+ Shift: "⇧",
23
+ Delete: "⌫",
24
+ CtrlOrCmd: "⌘",
25
+ Ctrl: "⌃",
26
+ Alt: "⌥",
27
+ Enter: "↩"
28
+ }, G = (t) => {
29
+ const e = (i) => (r) => i[r] ?? r, a = ((...i) => i.reduce((r, v) => (k) => v(r(k))))(
30
+ e(ge),
31
+ e(R)
32
+ ), s = e(R);
33
+ return pe() ? a(t) : s(t);
34
+ }, J = () => " ", Ve = (t, e = J) => t.map(G).join(e()), ke = { formatHotkeys: Ve, formatHotkey: G, getDefaultSeparator: J };
35
+ var Z = function() {
36
+ try {
37
+ var t = he(Object, "defineProperty");
38
+ return t({}, "", {}), t;
39
+ } catch {
40
+ }
41
+ }();
42
+ function xe(t, e, o, a) {
43
+ for (var s = t.length, i = o + -1; ++i < s; )
44
+ if (e(t[i], i, t))
45
+ return i;
46
+ return -1;
47
+ }
48
+ function Ae(t) {
49
+ return t !== t;
50
+ }
51
+ function Ce(t, e, o) {
52
+ for (var a = o - 1, s = t.length; ++a < s; )
53
+ if (t[a] === e)
54
+ return a;
55
+ return -1;
56
+ }
57
+ function Se(t, e, o) {
58
+ return e === e ? Ce(t, e, o) : xe(t, Ae, o);
59
+ }
60
+ function Ie(t, e, o) {
61
+ e == "__proto__" && Z ? Z(t, e, {
62
+ configurable: !0,
63
+ enumerable: !0,
64
+ value: o,
65
+ writable: !0
66
+ }) : t[e] = o;
67
+ }
68
+ function ye(t, e, o, a) {
69
+ for (var s = -1, i = t == null ? 0 : t.length; ++s < i; ) {
70
+ var r = t[s];
71
+ e(a, r, o(r), t);
72
+ }
73
+ return a;
74
+ }
75
+ function Le(t, e, o, a) {
76
+ return ve(t, function(s, i, r) {
77
+ e(a, s, o(s), r);
78
+ }), a;
79
+ }
80
+ function Q(t, e) {
81
+ return function(o, a) {
82
+ var s = be(o) ? ye : Le, i = e ? e() : {};
83
+ return s(o, t, we(a), i);
84
+ };
85
+ }
86
+ function X(t, e, o) {
87
+ var a = t == null ? 0 : t.length;
88
+ if (!a)
89
+ return -1;
90
+ var s = 0;
91
+ return Se(t, e, s);
92
+ }
93
+ var Ue = Q(function(t, e, o) {
94
+ Ie(t, o, e);
95
+ }), Be = Q(function(t, e, o) {
96
+ t[o ? 0 : 1].push(e);
97
+ }, function() {
98
+ return [[], []];
99
+ });
100
+ const Me = {
101
+ xmlns: "http://www.w3.org/2000/svg",
102
+ fill: "none",
103
+ stroke: "#000",
104
+ "stroke-linejoin": "round",
105
+ viewBox: "0 0 32 32"
106
+ }, $e = /* @__PURE__ */ V("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1), Ee = [
107
+ $e
108
+ ];
109
+ function Te(t, e) {
110
+ return C(), S("svg", Me, [...Ee]);
111
+ }
112
+ const Ne = { render: Te }, Fe = {
113
+ xmlns: "http://www.w3.org/2000/svg",
114
+ fill: "none",
115
+ stroke: "#000",
116
+ viewBox: "0 0 32 32"
117
+ }, Ke = /* @__PURE__ */ V("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1), De = [
118
+ Ke
119
+ ];
120
+ function Pe(t, e) {
121
+ return C(), S("svg", Fe, [...De]);
122
+ }
123
+ const j = { render: Pe }, Oe = {
124
+ xmlns: "http://www.w3.org/2000/svg",
125
+ fill: "none",
126
+ stroke: "#000",
127
+ "stroke-linejoin": "round",
128
+ viewBox: "0 0 32 32"
129
+ }, He = /* @__PURE__ */ V("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1), Re = [
130
+ He
131
+ ];
132
+ function Ze(t, e) {
133
+ return C(), S("svg", Oe, [...Re]);
134
+ }
135
+ const je = { render: Ze }, We = { class: "buttons" }, ze = /* @__PURE__ */ W({
136
+ __name: "SortList",
137
+ props: {
138
+ modelValue: {},
139
+ id: {},
140
+ ariaLabel: {},
141
+ disabled: { type: Boolean },
142
+ possibleValues: {}
143
+ },
144
+ emits: ["update:modelValue"],
145
+ setup(t, { emit: e }) {
146
+ const o = t, a = e, s = g(() => Ue(o.possibleValues, "id")), i = g(
147
+ () => o.modelValue.map(
148
+ (l) => s.value[l] ?? _e(l)
149
+ )
150
+ ), r = F([]);
151
+ z(
152
+ () => o.modelValue,
153
+ (l) => {
154
+ const c = new Set(l);
155
+ r.value = r.value.filter((d) => c.has(d));
156
+ }
157
+ );
158
+ const v = g(() => r.value.length === 0), k = (l, c, d) => [
159
+ l.slice(0, c),
160
+ l.slice(c, d),
161
+ l.slice(d)
162
+ ], I = (l) => {
163
+ let c = 0;
164
+ return (d) => l(d, c++);
165
+ }, y = (l, c) => Be(
166
+ l,
167
+ I((d, _) => c(_))
168
+ ), n = F(null), p = (l) => ({ to: c } = {}) => {
169
+ const d = r.value.map((b) => X(o.modelValue, b)).sort((b, U) => b - U), _ = (l === "up" ? c : null) ?? Math.max(d[0] - 1, 0), E = (l === "down" ? c : null) ?? d[d.length - 1] + 1, [ee, te, oe] = k(
170
+ o.modelValue,
171
+ _,
172
+ E + 1
173
+ ), ne = new Set(d), [K, D] = y(
174
+ te,
175
+ (b) => ne.has(b + _)
176
+ ), [le, se] = l === "up" ? [K, D] : [D, K], ae = ee.concat(le, se, oe);
177
+ a("update:modelValue", ae), re(() => {
178
+ var b, U, P, O;
179
+ l === "up" ? ((b = n.value) == null || b.scrollUpIntoView(_ - 1), (U = n.value) == null || U.setCurrentKeyNavIndex(_)) : ((P = n.value) == null || P.scrollDownIntoView(E + 1), (O = n.value) == null || O.setCurrentKeyNavIndex(E));
180
+ });
181
+ }, h = p("up"), x = p("down"), L = () => h({ to: 0 }), A = () => x({ to: o.modelValue.length }), w = (l, c) => `${l} (${ke.formatHotkeys(c)})`;
182
+ return (l, c) => (C(), S(Y, null, [
183
+ u(fe, {
184
+ id: l.id,
185
+ ref_key: "listBox",
186
+ ref: n,
187
+ modelValue: r.value,
188
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => r.value = d),
189
+ "possible-values": i.value,
190
+ ariaLabel: `sortListBox_${l.ariaLabel}`,
191
+ "with-is-empty-state": !0,
192
+ "empty-state-label": "Empty",
193
+ size: 10,
194
+ onKeydown: [
195
+ B(M(m(x), ["alt"]), ["down"]),
196
+ B(M(m(h), ["alt"]), ["up"]),
197
+ B(M(L, ["alt"]), ["home"]),
198
+ B(M(A, ["alt"]), ["end"])
199
+ ]
200
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
201
+ V("div", We, [
202
+ u($, {
203
+ disabled: v.value,
204
+ title: w("Move to top", ["Alt", "Home"]),
205
+ compact: "",
206
+ onClick: L
207
+ }, {
208
+ default: f(() => [
209
+ u(m(j), { class: "rotated" })
210
+ ]),
211
+ _: 1
212
+ }, 8, ["disabled", "title"]),
213
+ u($, {
214
+ disabled: v.value,
215
+ title: w("Move to bottom", ["Alt", "End"]),
216
+ compact: "",
217
+ onClick: A
218
+ }, {
219
+ default: f(() => [
220
+ u(m(j))
221
+ ]),
222
+ _: 1
223
+ }, 8, ["disabled", "title"]),
224
+ u($, {
225
+ disabled: v.value,
226
+ title: w("Move up", ["Alt", "ArrowUp"]),
227
+ compact: "",
228
+ onClick: m(h)
229
+ }, {
230
+ default: f(() => [
231
+ u(m(je))
232
+ ]),
233
+ _: 1
234
+ }, 8, ["disabled", "title", "onClick"]),
235
+ u($, {
236
+ disabled: v.value,
237
+ title: w("Move down", ["Alt", "ArrowDown"]),
238
+ compact: "",
239
+ onClick: m(x)
240
+ }, {
241
+ default: f(() => [
242
+ u(m(Ne))
243
+ ]),
244
+ _: 1
245
+ }, 8, ["disabled", "title", "onClick"])
246
+ ])
247
+ ], 64));
248
+ }
249
+ }), Ye = /* @__PURE__ */ q(ze, [["__scopeId", "data-v-116782be"]]), qe = {
250
+ class: /* @__PURE__ */ ce(["flex", "space-between"])
251
+ }, Ge = { class: "flex" }, Je = "<any unknown new column>", Qe = /* @__PURE__ */ W({
252
+ __name: "SortListControl",
253
+ props: {
254
+ control: {},
255
+ handleChange: {},
256
+ changeValue: {},
257
+ disabled: { type: Boolean },
258
+ labelForId: {},
259
+ isValid: { type: Boolean },
260
+ messages: {},
261
+ onRegisterValidation: {},
262
+ anyUnknownValuesId: { default: Je },
263
+ anyUnknownValuesText: { default: "Any unknown column" }
264
+ },
265
+ setup(t) {
266
+ const e = t, o = g(() => e.control.data), a = g(
267
+ () => e.control.uischema.options.choicesProvider
268
+ ), s = ue(a, e.control.uischema.options.possibleValues ?? []), i = g(
269
+ () => s.value.concat({
270
+ id: e.anyUnknownValuesId,
271
+ text: e.anyUnknownValuesText,
272
+ special: !0
273
+ })
274
+ ), r = (n) => {
275
+ if (o.value.length === 0) {
276
+ I();
277
+ return;
278
+ }
279
+ const p = X(o.value, e.anyUnknownValuesId);
280
+ if (p === -1)
281
+ throw new Error(
282
+ `SortList data have to contain the value "${e.anyUnknownValuesId}"`
283
+ );
284
+ const h = o.value.slice(0, p + 1), x = o.value.slice(p + 1), L = new Set(o.value), A = n.map(({ id: w }) => w).filter((w) => !L.has(w));
285
+ A.length > 0 && e.changeValue(h.concat(A, x));
286
+ };
287
+ ie(() => {
288
+ r(s.value);
289
+ }), z(() => s.value, r);
290
+ const v = () => {
291
+ e.changeValue(o.value.toSorted((n, p) => n.localeCompare(p)));
292
+ }, k = () => {
293
+ e.changeValue(o.value.toSorted((n, p) => p.localeCompare(n)));
294
+ }, I = () => {
295
+ e.changeValue(i.value.map(({ id: n }) => n));
296
+ }, y = F(null);
297
+ return (n, p) => (C(), S(Y, null, [
298
+ V("div", qe, [
299
+ V("div", Ge, [
300
+ u(m(N), {
301
+ "with-border": "",
302
+ compact: "",
303
+ onClick: v
304
+ }, {
305
+ default: f(() => [
306
+ T("A - Z")
307
+ ]),
308
+ _: 1
309
+ }),
310
+ u(m(N), {
311
+ "with-border": "",
312
+ compact: "",
313
+ onClick: k
314
+ }, {
315
+ default: f(() => [
316
+ T("Z - A")
317
+ ]),
318
+ _: 1
319
+ })
320
+ ]),
321
+ u(m(N), {
322
+ "with-border": "",
323
+ compact: "",
324
+ onClick: I
325
+ }, {
326
+ default: f(() => [
327
+ T("Reset all")
328
+ ]),
329
+ _: 1
330
+ })
331
+ ]),
332
+ u(de, {
333
+ label: n.control.label,
334
+ onControllingFlowVariableSet: n.changeValue
335
+ }, {
336
+ default: f(({ labelForId: h }) => [
337
+ u(me, {
338
+ errors: n.messages.errors
339
+ }, {
340
+ default: f(() => [
341
+ u(m(Ye), {
342
+ id: h ?? void 0,
343
+ ref_key: "controlElement",
344
+ ref: y,
345
+ "possible-values": i.value,
346
+ "model-value": o.value,
347
+ ariaLabel: n.control.label,
348
+ disabled: n.disabled,
349
+ "onUpdate:modelValue": n.changeValue
350
+ }, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
351
+ ]),
352
+ _: 2
353
+ }, 1032, ["errors"])
354
+ ]),
355
+ icon: f(() => [
356
+ H(n.$slots, "icon", {}, void 0, !0)
357
+ ]),
358
+ buttons: f(({ hover: h }) => [
359
+ H(n.$slots, "buttons", {
360
+ hover: h,
361
+ controlHTMLElement: y.value
362
+ }, void 0, !0)
363
+ ]),
364
+ _: 3
365
+ }, 8, ["label", "onControllingFlowVariableSet"])
366
+ ], 64));
367
+ }
368
+ }), ut = /* @__PURE__ */ q(Qe, [["__scopeId", "data-v-a6dc87f4"]]);
369
+ export {
370
+ Je as DEFAULT_ANY_UNKNOWN_VALUES_ID,
371
+ ut as default
372
+ };
@@ -1,5 +1,5 @@
1
1
  import { openBlock as a, createElementBlock as o, normalizeClass as r, createElementVNode as u, mergeProps as c, createCommentVNode as m, defineComponent as p, createBlock as f, unref as V } from "vue";
2
- import { _ as i } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
2
+ import { _ as i } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
3
3
  const y = {
4
4
  name: "TextArea",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./TextControl.vue_vue_type_script_setup_true_lang-qt4UxKcl.js";
1
+ import { _ as f } from "./TextControl.vue_vue_type_script_setup_true_lang-DaEoFVBw.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,93 @@
1
+ import { defineComponent as k, ref as y, computed as m, openBlock as d, createBlock as i, withCtx as t, unref as r, normalizeProps as E, mergeProps as B, createCommentVNode as u, createVNode as F, renderSlot as h } from "vue";
2
+ import { u as L, L as P, E as w } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
3
+ import { u as N } from "./useBuiltinValidations-8VwUv3RT.js";
4
+ import { u as $ } from "./useHideOnNull-CCfNP3O7.js";
5
+ import { C as H } from "./Checkbox-DB9YeQa-.js";
6
+ import { I } from "./InputField-DRLCzzDf.js";
7
+ const z = /* @__PURE__ */ k({
8
+ __name: "TextControl",
9
+ props: {
10
+ control: {},
11
+ handleChange: { type: Function },
12
+ changeValue: { type: Function },
13
+ disabled: { type: Boolean },
14
+ labelForId: {},
15
+ isValid: { type: Boolean },
16
+ messages: {},
17
+ onRegisterValidation: { type: Function }
18
+ },
19
+ setup(b) {
20
+ var c, p;
21
+ const l = b;
22
+ N(
23
+ {
24
+ pattern: ({ pattern: e }) => {
25
+ const o = new RegExp(`^(${e})$`);
26
+ return (n) => o.test(n ?? "");
27
+ },
28
+ minLength: ({ minLength: e }) => (o) => ((o == null ? void 0 : o.length) ?? 0) >= e,
29
+ maxLength: ({ maxLength: e }) => (o) => ((o == null ? void 0 : o.length) ?? 0) <= e
30
+ },
31
+ l
32
+ );
33
+ const f = L(
34
+ (c = l.control.uischema.options) == null ? void 0 : c.placeholderProvider,
35
+ ((p = l.control.uischema.options) == null ? void 0 : p.placeholder) ?? ""
36
+ ), a = y(null), { showCheckbox: g, showControl: V, checkboxProps: C } = $(
37
+ {
38
+ control: m(() => l.control),
39
+ disabled: m(() => l.disabled),
40
+ controlElement: a
41
+ },
42
+ {
43
+ setDefault: () => l.changeValue(""),
44
+ setNull: () => l.changeValue(null)
45
+ }
46
+ );
47
+ return (e, o) => {
48
+ var n;
49
+ return d(), i(P, {
50
+ label: e.control.label,
51
+ "hide-control-header": (n = e.control.uischema.options) == null ? void 0 : n.hideControlHeader
52
+ }, {
53
+ "before-label": t(() => [
54
+ r(g) ? (d(), i(r(H), E(B({ key: 0 }, r(C))), null, 16)) : u("", !0)
55
+ ]),
56
+ default: t(({ labelForId: s }) => [
57
+ r(V) ? (d(), i(w, {
58
+ key: 0,
59
+ errors: e.messages.errors
60
+ }, {
61
+ default: t(() => [
62
+ F(r(I), {
63
+ id: s,
64
+ ref_key: "controlElement",
65
+ ref: a,
66
+ placeholder: r(f),
67
+ "model-value": e.control.data,
68
+ disabled: e.disabled,
69
+ "is-valid": e.isValid,
70
+ compact: "",
71
+ "onUpdate:modelValue": e.changeValue
72
+ }, null, 8, ["id", "placeholder", "model-value", "disabled", "is-valid", "onUpdate:modelValue"])
73
+ ]),
74
+ _: 2
75
+ }, 1032, ["errors"])) : u("", !0)
76
+ ]),
77
+ icon: t(() => [
78
+ h(e.$slots, "icon")
79
+ ]),
80
+ buttons: t(({ hover: s }) => [
81
+ h(e.$slots, "buttons", {
82
+ hover: s,
83
+ controlHTMLElement: a.value
84
+ })
85
+ ]),
86
+ _: 3
87
+ }, 8, ["label", "hide-control-header"]);
88
+ };
89
+ }
90
+ });
91
+ export {
92
+ z as _
93
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, computed as s, openBlock as m, createBlock as u, unref as l } from "vue";
2
- import { D as p } from "./DateTimeInput-Cbw4cu1f.js";
3
- import { l as a } from "./localTimeUtils-DIFjv2_A.js";
2
+ import { D as p } from "./DateTimeInput-DP2yHD9r.js";
3
+ import { l as a } from "./localTimeUtils-Dp9bEJDh.js";
4
4
  const g = /* @__PURE__ */ r({
5
5
  __name: "TimeControl",
6
6
  props: {
@@ -0,0 +1,40 @@
1
+ import { defineComponent as t, markRaw as d, toRef as p, openBlock as r, createBlock as u, unref as l } from "vue";
2
+ import { a as m } from "./usePossibleValues-CrNcBbpN.js";
3
+ import { T as b, a as c } from "./TwinlistLoadingInfo-BHhpo_7N.js";
4
+ import { _ as f } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
5
+ const h = /* @__PURE__ */ t({
6
+ __name: "TwinlistControlBase",
7
+ props: {
8
+ control: {},
9
+ handleChange: {},
10
+ changeValue: {},
11
+ disabled: { type: Boolean },
12
+ isValid: { type: Boolean },
13
+ onRegisterValidation: {},
14
+ labelForId: {},
15
+ twinlistSize: { default: 10 },
16
+ possibleValues: {}
17
+ },
18
+ setup(o) {
19
+ const a = o, s = d(b), { includedLabel: n, excludedLabel: i } = m(
20
+ p(a, "control")
21
+ );
22
+ return (e, w) => (r(), u(l(c), {
23
+ id: e.labelForId,
24
+ disabled: e.disabled,
25
+ "model-value": e.control.data,
26
+ "possible-values": e.possibleValues ?? [],
27
+ "empty-state-component": e.possibleValues === null ? l(s) : null,
28
+ "hide-options": e.possibleValues === null,
29
+ size: e.twinlistSize,
30
+ "left-label": l(i),
31
+ "right-label": l(n),
32
+ compact: "",
33
+ "show-resize-handle": "",
34
+ "onUpdate:modelValue": e.changeValue
35
+ }, null, 8, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "onUpdate:modelValue"]));
36
+ }
37
+ }), I = /* @__PURE__ */ f(h, [["__scopeId", "data-v-73af0159"]]);
38
+ export {
39
+ I as T
40
+ };