@knime/jsonforms 1.4.1 → 1.5.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 (143) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AnyOfTwinlist-0hW9G7sf.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
  3. package/dist/{BaseButton-DYMQRyQo.js → BaseButton-8vDrj52e.js} +1 -1
  4. package/dist/{Button-BR-eqILd.js → Button-Bngb_I70.js} +2 -2
  5. package/dist/{Checkbox-9hNjHDpy.js → Checkbox-DSfVQlDb.js} +1 -1
  6. package/dist/CheckboxControl-D85aBRJ6.js +41 -0
  7. package/dist/{Checkboxes-MxUKgTL4.js → Checkboxes-DUJ3v5jU.js} +2 -2
  8. package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
  9. package/dist/{ColumnFilter-B05Q5-4y.js → ColumnFilter-BzCVLydy.js} +7 -5
  10. package/dist/{ColumnSelect-DZDQRiA5.js → ColumnSelect-DK7NqI5Q.js} +21 -18
  11. package/dist/{ComboBoxControl-CaHVCAiu.js → ComboBoxControl-CEXpJltI.js} +17 -14
  12. package/dist/{DateControl-fKUFzQr8.js → DateControl-CjRiy7d1.js} +6 -4
  13. package/dist/{DateTimeControl-BrwQ4jAx.js → DateTimeControl-CaDuNC_u.js} +18 -15
  14. package/dist/{DateTimeFormatPickerControl-CZY7EboY.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
  15. package/dist/{DateTimeInput-hVg3JWxI.js → DateTimeInput-96g3nCth.js} +7 -7
  16. package/dist/{Dropdown-C_6yKbqc.js → Dropdown-CQKvBlYB.js} +4 -4
  17. package/dist/{DropdownControl-DNcQIzCP.js → DropdownControl-B0x5hFXM.js} +1 -1
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js +237 -0
  19. package/dist/{FunctionButton-ByT1Atrb.js → FunctionButton-CapvFBi0.js} +2 -2
  20. package/dist/HorizontalLayout-k7vmjzLP.js +25 -0
  21. package/dist/{InputField-zQvLeNOh.js → InputField-DhyBnTBT.js} +1 -1
  22. package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
  23. package/dist/{IntervalControl-CWBmbjUk.js → IntervalControl-DhujNXBe.js} +37 -35
  24. package/dist/{MultiselectListBox-D18KQA8Z.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
  25. package/dist/{NameFilter-D6GRh9kP.js → NameFilter-DJhwpboP.js} +7 -5
  26. package/dist/NumberControl-CU94dpBh.js +20 -0
  27. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-6vn1oT7O.js +60 -0
  28. package/dist/{NumberInput-DzpQc_Qg.js → NumberInput-Io3ZSWBF.js} +1 -1
  29. package/dist/OneOfDropdown-C04RF5gK.js +35 -0
  30. package/dist/RadioControl-Ni6f_qCw.js +24 -0
  31. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-D7yWH5sv.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
  32. package/dist/{RichTextControl-TMco-1sx.js → RichTextControl-hHIvuaDd.js} +9 -7
  33. package/dist/{SectionLayout-M0zSsGYd.js → SectionLayout-DEKmJPJl.js} +2 -2
  34. package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
  35. package/dist/{SimpleTwinlistControl-BWH9IcaM.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
  36. package/dist/SortListControl-CsrP-QT8.js +366 -0
  37. package/dist/{TextAreaControl-C2gBXg91.js → TextAreaControl-CNH7s35f.js} +25 -22
  38. package/dist/{TextControl-DJ1eQ6Yr.js → TextControl-C1ZKoreI.js} +1 -1
  39. package/dist/TextControl.vue_vue_type_script_setup_true_lang-BhX-hMgT.js +87 -0
  40. package/dist/TimeControl-Bwt1kRki.js +33 -0
  41. package/dist/{TwinlistControl-DMjXrTBS.js → TwinlistControl-DJ88Q4I-.js} +21 -18
  42. package/dist/{TwinlistLoadingInfo-C_JMBMqE.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
  43. package/dist/{ValueSwitch--IDkMn2T.js → ValueSwitch-B08Mz10g.js} +1 -1
  44. package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
  45. package/dist/{VerticalLayout-CWTnAzTT.js → VerticalLayout-ptrtpOrD.js} +2 -2
  46. package/dist/{VerticalLayoutBase-DHFsRdUV.js → VerticalLayoutBase-B8FGVlzl.js} +1 -1
  47. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js} +5705 -5674
  48. package/dist/ZonedDateTimeControl-70XjGsqQ.js +70 -0
  49. package/dist/{_baseAssignValue-CV6Gjcdp.js → _baseAssignValue-BPMLYzDH.js} +1 -1
  50. package/dist/{_baseEach-BC_75zAM.js → _baseEach-B8N_Gx8P.js} +2 -2
  51. package/dist/{_baseIsEqual-Dy0dFQAX.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
  52. package/dist/{_baseIteratee-BHjwOYqh.js → _baseIteratee-DvBmrhnf.js} +3 -3
  53. package/dist/{_getTag-Ce_JffFU.js → _getTag-DS8v0_uf.js} +33 -34
  54. package/dist/isSymbol-OFe5xy2f.js +34 -0
  55. package/dist/knime-jsonforms.css +1 -1
  56. package/dist/knime-jsonforms.js +26 -26
  57. package/dist/{localTimeUtils-B-ENHrsI.js → localTimeUtils-CzJjTpP3.js} +1 -1
  58. package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
  59. package/dist/src/higherOrderComponents/control/ErrorMessage.vue.d.ts +15 -0
  60. package/dist/src/higherOrderComponents/control/ErrorMessageWrapper.vue.d.ts +22 -0
  61. package/dist/src/higherOrderComponents/control/index.d.ts +1 -1
  62. package/dist/src/higherOrderComponents/control/types.d.ts +2 -1
  63. package/dist/src/higherOrderComponents/control/util.d.ts +18 -2
  64. package/dist/src/higherOrderComponents/control/validation/types.d.ts +10 -0
  65. package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +9 -0
  66. package/dist/src/higherOrderComponents/control/withErrorMessage.d.ts +4 -0
  67. package/dist/src/higherOrderComponents/control/withLabel.d.ts +9 -0
  68. package/dist/src/renderers/checkboxRenderer.d.ts +1 -192
  69. package/dist/src/renderers/checkboxesRenderer.d.ts +1 -3
  70. package/dist/src/renderers/columnFilterRenderer.d.ts +1 -3
  71. package/dist/src/renderers/columnSelectRenderer.d.ts +56 -0
  72. package/dist/src/renderers/comboBoxRenderer.d.ts +1 -3
  73. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -3
  74. package/dist/src/renderers/dateTimeRenderer.d.ts +1 -3
  75. package/dist/src/renderers/defaultRenderers.d.ts +299 -247
  76. package/dist/src/renderers/dropdownRenderer.d.ts +48 -0
  77. package/dist/src/renderers/fallbackRenderers.d.ts +91 -189
  78. package/dist/src/renderers/integerRenderer.d.ts +1 -3
  79. package/dist/src/renderers/intervalRenderer.d.ts +1 -3
  80. package/dist/src/renderers/localDateRenderer.d.ts +1 -3
  81. package/dist/src/renderers/localTimeRenderer.d.ts +1 -3
  82. package/dist/src/renderers/nameFilterRenderer.d.ts +1 -3
  83. package/dist/src/renderers/numberRenderer.d.ts +1 -3
  84. package/dist/src/renderers/radioRenderer.d.ts +1 -3
  85. package/dist/src/renderers/richTextRenderer.d.ts +1 -3
  86. package/dist/src/renderers/simpleButtonRenderer.d.ts +9 -0
  87. package/dist/src/renderers/sortListRenderer.d.ts +48 -0
  88. package/dist/src/renderers/textAreaRenderer.d.ts +1 -3
  89. package/dist/src/renderers/textMessageRenderer.d.ts +24 -0
  90. package/dist/src/renderers/textRenderer.d.ts +48 -0
  91. package/dist/src/renderers/twinlistRenderer.d.ts +2 -6
  92. package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -3
  93. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +4 -6
  94. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
  95. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -1
  96. package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
  97. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
  98. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
  99. package/dist/src/uiComponents/DropdownControl.vue.d.ts +58 -3
  100. package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -1
  101. package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -1
  102. package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -1
  103. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -2
  104. package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
  105. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -2
  106. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -0
  107. package/dist/src/uiComponents/SortListControl.vue.d.ts +58 -3
  108. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
  109. package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
  110. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
  111. package/dist/src/uiComponents/index.d.ts +1 -1
  112. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -1
  113. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
  114. package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +1 -1
  115. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  116. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -2
  117. package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +2 -2
  118. package/dist/{svgWithTitle-VPyre7by.js → svgWithTitle-YSv0CfBl.js} +1 -1
  119. package/dist/testUtils/component.d.ts +70 -7
  120. package/dist/testUtils/renderer.d.ts +1 -1
  121. package/dist/testing.js +203 -199
  122. package/dist/toString-DkbNkGT4.js +25 -0
  123. package/package.json +1 -1
  124. package/dist/CheckboxControl-DtkgVAey.js +0 -42
  125. package/dist/CheckboxesControl-liJGUpRw.js +0 -38
  126. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-m-g4D1dr.js +0 -226
  127. package/dist/ErrorMessage-DQT5FZlf.js +0 -23
  128. package/dist/HorizontalLayout-D1PnPnoE.js +0 -30
  129. package/dist/IntegerControl-D6kUQaXd.js +0 -18
  130. package/dist/NumberControl-CqwAwLo_.js +0 -18
  131. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-Jn4BDGH-.js +0 -42
  132. package/dist/OneOfDropdown-CIeXHQcC.js +0 -32
  133. package/dist/RadioControl-D64PZUts.js +0 -22
  134. package/dist/SimpleButtonControl-DevNyR5x.js +0 -58
  135. package/dist/SortListControl-BLeXo6HS.js +0 -356
  136. package/dist/TextControl.vue_vue_type_script_setup_true_lang-BHuggcaD.js +0 -69
  137. package/dist/TimeControl-DOpylHS3.js +0 -30
  138. package/dist/ValueSwitchControl-BVgE9bjw.js +0 -18
  139. package/dist/ZonedDateTimeControl-B8ORteJg.js +0 -66
  140. package/dist/isSymbol-DwnNqH7F.js +0 -8
  141. package/dist/src/higherOrderComponents/control/addLabel.d.ts +0 -12
  142. package/dist/src/uiComponents/ErrorMessage.vue.d.ts +0 -23
  143. package/dist/toString-B2Sp1LQh.js +0 -26
@@ -0,0 +1,366 @@
1
+ import { openBlock as S, createElementBlock as A, createElementVNode as k, defineComponent as Z, computed as _, ref as N, watch as W, Fragment as z, createVNode as u, withKeys as L, withModifiers as B, unref as p, withCtx as f, nextTick as ae, onMounted as re, createTextVNode as F, renderSlot as O, normalizeClass as ie } from "vue";
2
+ import { _ as Y, u as ce, k as ue, L as de, o as me } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
3
+ import { w as pe } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
4
+ import { i as fe } from "./navigator-BYUFe-z3.js";
5
+ import { F as M } from "./FunctionButton-CapvFBi0.js";
6
+ import { M as he } from "./MultiselectListBox-6f4JE0Ny.js";
7
+ import { b as we } from "./_baseAssignValue-BPMLYzDH.js";
8
+ import { b as ve } from "./_baseEach-B8N_Gx8P.js";
9
+ import { b as be } from "./_baseIteratee-DvBmrhnf.js";
10
+ import { i as ge } from "./toString-DkbNkGT4.js";
11
+ import { c as Ve } from "./createMissingItem-B00Kg95q.js";
12
+ import { B as T } from "./Button-Bngb_I70.js";
13
+ const R = {
14
+ ArrowUp: "↑",
15
+ ArrowDown: "↓",
16
+ ArrowLeft: "←",
17
+ ArrowRight: "→",
18
+ Enter: "↵",
19
+ " ": "Space",
20
+ // we use event.key and there space is an actual space not the code "Space"
21
+ CtrlOrCmd: "Ctrl"
22
+ }, _e = {
23
+ Shift: "⇧",
24
+ Delete: "⌫",
25
+ CtrlOrCmd: "⌘",
26
+ Ctrl: "⌃",
27
+ Alt: "⌥",
28
+ Enter: "↩"
29
+ }, q = (t) => {
30
+ const e = (r) => (i) => r[i] ?? i, a = ((...r) => r.reduce((i, w) => (x) => w(i(x))))(
31
+ e(_e),
32
+ e(R)
33
+ ), l = e(R);
34
+ return fe() ? a(t) : l(t);
35
+ }, G = () => " ", ke = (t, e = G) => t.map(q).join(e()), xe = { formatHotkeys: ke, formatHotkey: q, getDefaultSeparator: G };
36
+ function Se(t, e, o, a) {
37
+ for (var l = t.length, r = o + -1; ++r < l; )
38
+ if (e(t[r], r, t))
39
+ return r;
40
+ return -1;
41
+ }
42
+ function Ae(t) {
43
+ return t !== t;
44
+ }
45
+ function Ce(t, e, o) {
46
+ for (var a = o - 1, l = t.length; ++a < l; )
47
+ if (t[a] === e)
48
+ return a;
49
+ return -1;
50
+ }
51
+ function Ie(t, e, o) {
52
+ return e === e ? Ce(t, e, o) : Se(t, Ae, o);
53
+ }
54
+ function ye(t, e, o, a) {
55
+ for (var l = -1, r = t == null ? 0 : t.length; ++l < r; ) {
56
+ var i = t[l];
57
+ e(a, i, o(i), t);
58
+ }
59
+ return a;
60
+ }
61
+ function Ue(t, e, o, a) {
62
+ return ve(t, function(l, r, i) {
63
+ e(a, l, o(l), i);
64
+ }), a;
65
+ }
66
+ function J(t, e) {
67
+ return function(o, a) {
68
+ var l = ge(o) ? ye : Ue, r = e ? e() : {};
69
+ return l(o, t, be(a), r);
70
+ };
71
+ }
72
+ function Q(t, e, o) {
73
+ var a = t == null ? 0 : t.length;
74
+ if (!a)
75
+ return -1;
76
+ var l = 0;
77
+ return Ie(t, e, l);
78
+ }
79
+ var Le = J(function(t, e, o) {
80
+ we(t, o, e);
81
+ }), Be = J(function(t, e, o) {
82
+ t[o ? 0 : 1].push(e);
83
+ }, function() {
84
+ return [[], []];
85
+ });
86
+ const Me = {
87
+ xmlns: "http://www.w3.org/2000/svg",
88
+ fill: "none",
89
+ stroke: "#000",
90
+ "stroke-linejoin": "round",
91
+ viewBox: "0 0 32 32"
92
+ }, $e = /* @__PURE__ */ k("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1), Ee = [
93
+ $e
94
+ ];
95
+ function Fe(t, e) {
96
+ return S(), A("svg", Me, [...Ee]);
97
+ }
98
+ const Te = { render: Fe }, Ne = {
99
+ xmlns: "http://www.w3.org/2000/svg",
100
+ fill: "none",
101
+ stroke: "#000",
102
+ viewBox: "0 0 32 32"
103
+ }, Ke = /* @__PURE__ */ k("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1), Pe = [
104
+ Ke
105
+ ];
106
+ function De(t, e) {
107
+ return S(), A("svg", Ne, [...Pe]);
108
+ }
109
+ const j = { render: De }, He = {
110
+ xmlns: "http://www.w3.org/2000/svg",
111
+ fill: "none",
112
+ stroke: "#000",
113
+ "stroke-linejoin": "round",
114
+ viewBox: "0 0 32 32"
115
+ }, Oe = /* @__PURE__ */ k("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1), Re = [
116
+ Oe
117
+ ];
118
+ function je(t, e) {
119
+ return S(), A("svg", He, [...Re]);
120
+ }
121
+ const Ze = { render: je }, We = { class: "buttons" }, ze = /* @__PURE__ */ Z({
122
+ __name: "SortList",
123
+ props: {
124
+ modelValue: {},
125
+ id: {},
126
+ ariaLabel: {},
127
+ disabled: { type: Boolean },
128
+ possibleValues: {}
129
+ },
130
+ emits: ["update:modelValue"],
131
+ setup(t, { emit: e }) {
132
+ const o = t, a = e, l = _(() => Le(o.possibleValues, "id")), r = _(
133
+ () => o.modelValue.map(
134
+ (n) => l.value[n] ?? Ve(n)
135
+ )
136
+ ), i = N([]);
137
+ W(
138
+ () => o.modelValue,
139
+ (n) => {
140
+ const c = new Set(n);
141
+ i.value = i.value.filter((d) => c.has(d));
142
+ }
143
+ );
144
+ const w = _(() => i.value.length === 0), x = (n, c, d) => [
145
+ n.slice(0, c),
146
+ n.slice(c, d),
147
+ n.slice(d)
148
+ ], $ = (n) => {
149
+ let c = 0;
150
+ return (d) => n(d, c++);
151
+ }, C = (n, c) => Be(
152
+ n,
153
+ $((d, V) => c(V))
154
+ ), v = N(null), s = (n) => ({ to: c } = {}) => {
155
+ const d = i.value.map((b) => Q(o.modelValue, b)).sort((b, U) => b - U), V = (n === "up" ? c : null) ?? Math.max(d[0] - 1, 0), E = (n === "down" ? c : null) ?? d[d.length - 1] + 1, [X, ee, te] = x(
156
+ o.modelValue,
157
+ V,
158
+ E + 1
159
+ ), oe = new Set(d), [K, P] = C(
160
+ ee,
161
+ (b) => oe.has(b + V)
162
+ ), [ne, le] = n === "up" ? [K, P] : [P, K], se = X.concat(ne, le, te);
163
+ a("update:modelValue", se), ae(() => {
164
+ var b, U, D, H;
165
+ n === "up" ? ((b = v.value) == null || b.scrollUpIntoView(V - 1), (U = v.value) == null || U.setCurrentKeyNavIndex(V)) : ((D = v.value) == null || D.scrollDownIntoView(E + 1), (H = v.value) == null || H.setCurrentKeyNavIndex(E));
166
+ });
167
+ }, m = s("up"), h = s("down"), I = () => m({ to: 0 }), y = () => h({ to: o.modelValue.length }), g = (n, c) => `${n} (${xe.formatHotkeys(c)})`;
168
+ return (n, c) => (S(), A(z, null, [
169
+ u(he, {
170
+ id: n.id,
171
+ ref_key: "listBox",
172
+ ref: v,
173
+ modelValue: i.value,
174
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => i.value = d),
175
+ "possible-values": r.value,
176
+ ariaLabel: `sortListBox_${n.ariaLabel}`,
177
+ "with-is-empty-state": !0,
178
+ "empty-state-label": "Empty",
179
+ size: 10,
180
+ onKeydown: [
181
+ L(B(p(h), ["alt"]), ["down"]),
182
+ L(B(p(m), ["alt"]), ["up"]),
183
+ L(B(I, ["alt"]), ["home"]),
184
+ L(B(y, ["alt"]), ["end"])
185
+ ]
186
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
187
+ k("div", We, [
188
+ u(M, {
189
+ disabled: w.value,
190
+ title: g("Move to top", ["Alt", "Home"]),
191
+ compact: "",
192
+ onClick: I
193
+ }, {
194
+ default: f(() => [
195
+ u(p(j), { class: "rotated" })
196
+ ]),
197
+ _: 1
198
+ }, 8, ["disabled", "title"]),
199
+ u(M, {
200
+ disabled: w.value,
201
+ title: g("Move to bottom", ["Alt", "End"]),
202
+ compact: "",
203
+ onClick: y
204
+ }, {
205
+ default: f(() => [
206
+ u(p(j))
207
+ ]),
208
+ _: 1
209
+ }, 8, ["disabled", "title"]),
210
+ u(M, {
211
+ disabled: w.value,
212
+ title: g("Move up", ["Alt", "ArrowUp"]),
213
+ compact: "",
214
+ onClick: p(m)
215
+ }, {
216
+ default: f(() => [
217
+ u(p(Ze))
218
+ ]),
219
+ _: 1
220
+ }, 8, ["disabled", "title", "onClick"]),
221
+ u(M, {
222
+ disabled: w.value,
223
+ title: g("Move down", ["Alt", "ArrowDown"]),
224
+ compact: "",
225
+ onClick: p(h)
226
+ }, {
227
+ default: f(() => [
228
+ u(p(Te))
229
+ ]),
230
+ _: 1
231
+ }, 8, ["disabled", "title", "onClick"])
232
+ ])
233
+ ], 64));
234
+ }
235
+ }), Ye = /* @__PURE__ */ Y(ze, [["__scopeId", "data-v-116782be"]]), qe = {
236
+ class: /* @__PURE__ */ ie(["flex", "space-between", "with-padding"])
237
+ }, Ge = { class: "flex" }, Je = "<any unknown new column>", Qe = /* @__PURE__ */ Z({
238
+ __name: "SortListControl",
239
+ props: {
240
+ control: {},
241
+ handleChange: {},
242
+ changeValue: {},
243
+ disabled: { type: Boolean },
244
+ labelForId: {},
245
+ isValid: { type: Boolean },
246
+ messages: {},
247
+ onRegisterValidation: {},
248
+ anyUnknownValuesId: { default: Je },
249
+ anyUnknownValuesText: { default: "Any unknown column" }
250
+ },
251
+ setup(t) {
252
+ const e = t, o = _(() => e.control.data), a = _(
253
+ () => e.control.uischema.options.choicesProvider
254
+ ), l = pe(
255
+ ce(
256
+ a,
257
+ []
258
+ ),
259
+ e.control
260
+ ), r = _(
261
+ () => l.value.concat({
262
+ id: e.anyUnknownValuesId,
263
+ text: e.anyUnknownValuesText,
264
+ special: !0
265
+ })
266
+ ), i = (s) => {
267
+ if (o.value.length === 0) {
268
+ C();
269
+ return;
270
+ }
271
+ const m = Q(o.value, e.anyUnknownValuesId);
272
+ if (m === -1)
273
+ throw new Error(
274
+ `SortList data have to contain the value "${e.anyUnknownValuesId}"`
275
+ );
276
+ const h = o.value.slice(0, m + 1), I = o.value.slice(m + 1), y = new Set(o.value), g = s.map(({ id: n }) => n).filter((n) => !y.has(n));
277
+ g.length > 0 && e.changeValue(h.concat(g, I));
278
+ }, w = ue("getPossibleValuesFromUiSchema");
279
+ re(async () => {
280
+ const s = e.control.uischema.options.possibleValues;
281
+ s ? l.value = s : a.value || (l.value = await w(e.control));
282
+ }), W(() => l.value, i);
283
+ const x = () => {
284
+ e.changeValue(o.value.toSorted((s, m) => s.localeCompare(m)));
285
+ }, $ = () => {
286
+ e.changeValue(o.value.toSorted((s, m) => m.localeCompare(s)));
287
+ }, C = () => {
288
+ e.changeValue(r.value.map(({ id: s }) => s));
289
+ }, v = N(null);
290
+ return (s, m) => (S(), A(z, null, [
291
+ k("div", qe, [
292
+ k("div", Ge, [
293
+ u(p(T), {
294
+ "with-border": "",
295
+ compact: "",
296
+ onClick: x
297
+ }, {
298
+ default: f(() => [
299
+ F("A - Z")
300
+ ]),
301
+ _: 1
302
+ }),
303
+ u(p(T), {
304
+ "with-border": "",
305
+ compact: "",
306
+ onClick: $
307
+ }, {
308
+ default: f(() => [
309
+ F("Z - A")
310
+ ]),
311
+ _: 1
312
+ })
313
+ ]),
314
+ u(p(T), {
315
+ "with-border": "",
316
+ compact: "",
317
+ onClick: C
318
+ }, {
319
+ default: f(() => [
320
+ F("Reset all")
321
+ ]),
322
+ _: 1
323
+ })
324
+ ]),
325
+ u(de, {
326
+ label: s.control.label,
327
+ onControllingFlowVariableSet: s.changeValue
328
+ }, {
329
+ default: f(({ labelForId: h }) => [
330
+ u(me, {
331
+ errors: s.messages.errors
332
+ }, {
333
+ default: f(() => [
334
+ u(p(Ye), {
335
+ id: h ?? void 0,
336
+ ref_key: "controlElement",
337
+ ref: v,
338
+ "possible-values": r.value,
339
+ "model-value": o.value,
340
+ ariaLabel: s.control.label,
341
+ disabled: s.disabled,
342
+ compact: "",
343
+ "onUpdate:modelValue": s.changeValue
344
+ }, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
345
+ ]),
346
+ _: 2
347
+ }, 1032, ["errors"])
348
+ ]),
349
+ icon: f(() => [
350
+ O(s.$slots, "icon", {}, void 0, !0)
351
+ ]),
352
+ buttons: f(({ hover: h }) => [
353
+ O(s.$slots, "buttons", {
354
+ hover: h,
355
+ controlHTMLElement: v.value
356
+ }, void 0, !0)
357
+ ]),
358
+ _: 3
359
+ }, 8, ["label", "onControllingFlowVariableSet"])
360
+ ], 64));
361
+ }
362
+ }), dt = /* @__PURE__ */ Y(Qe, [["__scopeId", "data-v-680f85e3"]]);
363
+ export {
364
+ Je as DEFAULT_ANY_UNKNOWN_VALUES_ID,
365
+ dt as default
366
+ };
@@ -1,6 +1,6 @@
1
- import { openBlock as a, createElementBlock as d, normalizeClass as o, createElementVNode as i, createCommentVNode as c, defineComponent as m, createBlock as p, unref as f } from "vue";
2
- import { _ as s } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.js";
3
- const _ = {
1
+ import { openBlock as a, createElementBlock as n, normalizeClass as o, createElementVNode as r, createCommentVNode as c, defineComponent as m, createBlock as p, unref as f } from "vue";
2
+ import { _ as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
3
+ const V = {
4
4
  name: "TextArea",
5
5
  props: {
6
6
  modelValue: {
@@ -56,15 +56,15 @@ const _ = {
56
56
  this.$emit("update:modelValue", this.getValue());
57
57
  }
58
58
  }
59
- }, b = ["id", "name", "title", "value", "cols", "disabled", "rows", "placeholder"], h = {
59
+ }, _ = ["id", "name", "title", "value", "cols", "disabled", "rows", "placeholder"], y = {
60
60
  key: 0,
61
61
  class: "invalid-marker"
62
62
  };
63
- function y(u, t, e, l, v, n) {
64
- return a(), d("div", {
63
+ function b(s, l, e, t, v, d) {
64
+ return a(), n("div", {
65
65
  class: o({ disabled: e.disabled })
66
66
  }, [
67
- i("textarea", {
67
+ r("textarea", {
68
68
  id: e.id,
69
69
  ref: "input",
70
70
  name: e.name,
@@ -75,34 +75,37 @@ function y(u, t, e, l, v, n) {
75
75
  disabled: e.disabled,
76
76
  rows: e.rows,
77
77
  placeholder: e.placeholder,
78
- onInput: t[0] || (t[0] = (...r) => n.onInput && n.onInput(...r))
79
- }, null, 42, b),
80
- e.isValid ? c("", !0) : (a(), d("span", h))
78
+ onInput: l[0] || (l[0] = (...u) => d.onInput && d.onInput(...u))
79
+ }, null, 42, _),
80
+ e.isValid ? c("", !0) : (a(), n("span", y))
81
81
  ], 2);
82
82
  }
83
- const V = /* @__PURE__ */ s(_, [["render", y], ["__scopeId", "data-v-12f15ade"]]), g = /* @__PURE__ */ m({
83
+ const h = /* @__PURE__ */ i(V, [["render", b], ["__scopeId", "data-v-12f15ade"]]), g = /* @__PURE__ */ m({
84
84
  __name: "TextAreaControl",
85
85
  props: {
86
86
  control: {},
87
87
  handleChange: { type: Function },
88
88
  changeValue: { type: Function },
89
89
  disabled: { type: Boolean },
90
+ isValid: { type: Boolean },
91
+ onRegisterValidation: { type: Function },
90
92
  labelForId: {}
91
93
  },
92
- setup(u) {
93
- return (t, e) => {
94
- var l;
95
- return a(), p(f(V), {
96
- id: t.labelForId,
94
+ setup(s) {
95
+ return (l, e) => {
96
+ var t;
97
+ return a(), p(f(h), {
98
+ id: l.labelForId,
97
99
  class: "text-area-input",
98
- "model-value": t.control.data,
99
- disabled: t.disabled,
100
- rows: (l = t.control.uischema.options) == null ? void 0 : l.rows,
101
- "onUpdate:modelValue": t.changeValue
102
- }, null, 8, ["id", "model-value", "disabled", "rows", "onUpdate:modelValue"]);
100
+ "model-value": l.control.data,
101
+ disabled: l.disabled,
102
+ rows: (t = l.control.uischema.options) == null ? void 0 : t.rows,
103
+ "is-valid": l.isValid,
104
+ "onUpdate:modelValue": l.changeValue
105
+ }, null, 8, ["id", "model-value", "disabled", "rows", "is-valid", "onUpdate:modelValue"]);
103
106
  };
104
107
  }
105
- }), w = /* @__PURE__ */ s(g, [["__scopeId", "data-v-ccafa78c"]]);
108
+ }), w = /* @__PURE__ */ i(g, [["__scopeId", "data-v-36a8d374"]]);
106
109
  export {
107
110
  w as default
108
111
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./TextControl.vue_vue_type_script_setup_true_lang-BHuggcaD.js";
1
+ import { _ as f } from "./TextControl.vue_vue_type_script_setup_true_lang-BhX-hMgT.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,87 @@
1
+ import { defineComponent as k, ref as v, computed as m, openBlock as d, createBlock as i, withCtx as r, unref as l, normalizeProps as P, mergeProps as E, createCommentVNode as h, createVNode as F, renderSlot as f } from "vue";
2
+ import { u as $, L as w, o as B } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
3
+ import { u as N } from "./useHideOnNull-CCfNP3O7.js";
4
+ import { C as H } from "./Checkbox-DSfVQlDb.js";
5
+ import { I } from "./InputField-DhyBnTBT.js";
6
+ const U = /* @__PURE__ */ k({
7
+ __name: "TextControl",
8
+ props: {
9
+ control: {},
10
+ handleChange: { type: Function },
11
+ changeValue: { type: Function },
12
+ disabled: { type: Boolean },
13
+ labelForId: {},
14
+ isValid: { type: Boolean },
15
+ messages: {},
16
+ onRegisterValidation: { type: Function }
17
+ },
18
+ setup(b) {
19
+ var c, p;
20
+ const o = b, a = o.control.schema.pattern;
21
+ if (typeof a == "string") {
22
+ const e = new RegExp(`^(${a})$`), u = (t) => ({
23
+ errors: t === null || typeof t > "u" || !e.test(t) ? [`The value has to match the pattern "${a}"`] : []
24
+ });
25
+ o.onRegisterValidation(u);
26
+ }
27
+ const g = $(
28
+ (c = o.control.uischema.options) == null ? void 0 : c.placeholderProvider,
29
+ ((p = o.control.uischema.options) == null ? void 0 : p.placeholder) ?? ""
30
+ ), n = v(null), { showCheckbox: V, showControl: C, checkboxProps: y } = N(
31
+ {
32
+ control: m(() => o.control),
33
+ disabled: m(() => o.disabled),
34
+ controlElement: n
35
+ },
36
+ {
37
+ setDefault: () => o.changeValue(""),
38
+ setNull: () => o.changeValue(null)
39
+ }
40
+ );
41
+ return (e, u) => {
42
+ var t;
43
+ return d(), i(w, {
44
+ label: e.control.label,
45
+ "hide-control-header": (t = e.control.uischema.options) == null ? void 0 : t.hideControlHeader
46
+ }, {
47
+ "before-label": r(() => [
48
+ l(V) ? (d(), i(l(H), P(E({ key: 0 }, l(y))), null, 16)) : h("", !0)
49
+ ]),
50
+ default: r(({ labelForId: s }) => [
51
+ l(C) ? (d(), i(B, {
52
+ key: 0,
53
+ errors: e.messages.errors
54
+ }, {
55
+ default: r(() => [
56
+ F(l(I), {
57
+ id: s,
58
+ ref_key: "controlElement",
59
+ ref: n,
60
+ placeholder: l(g),
61
+ "model-value": e.control.data,
62
+ disabled: e.disabled,
63
+ "is-valid": e.isValid,
64
+ compact: "",
65
+ "onUpdate:modelValue": e.changeValue
66
+ }, null, 8, ["id", "placeholder", "model-value", "disabled", "is-valid", "onUpdate:modelValue"])
67
+ ]),
68
+ _: 2
69
+ }, 1032, ["errors"])) : h("", !0)
70
+ ]),
71
+ icon: r(() => [
72
+ f(e.$slots, "icon")
73
+ ]),
74
+ buttons: r(({ hover: s }) => [
75
+ f(e.$slots, "buttons", {
76
+ hover: s,
77
+ controlHTMLElement: n.value
78
+ })
79
+ ]),
80
+ _: 3
81
+ }, 8, ["label", "hide-control-header"]);
82
+ };
83
+ }
84
+ });
85
+ export {
86
+ U as _
87
+ };
@@ -0,0 +1,33 @@
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-96g3nCth.js";
3
+ import { l as a } from "./localTimeUtils-CzJjTpP3.js";
4
+ const g = /* @__PURE__ */ r({
5
+ __name: "TimeControl",
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(t) {
16
+ const i = t, n = s(() => a.fromString(i.control.data));
17
+ return (e, o) => (m(), u(l(p), {
18
+ id: e.labelForId,
19
+ "model-value": n.value,
20
+ required: !0,
21
+ compact: "",
22
+ disabled: e.disabled,
23
+ "show-date": !1,
24
+ "show-time": !0,
25
+ "show-milliseconds": !0,
26
+ "is-valid": e.isValid,
27
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => e.changeValue(l(a).toString(d)))
28
+ }, null, 8, ["id", "model-value", "disabled", "is-valid"]));
29
+ }
30
+ });
31
+ export {
32
+ g as default
33
+ };