@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,366 +0,0 @@
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, E as me } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
3
- import { w as pe } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
4
- import { i as fe } from "./navigator-DWmzYl-A.js";
5
- import { F as M } from "./FunctionButton-BjutjqfY.js";
6
- import { M as he } from "./MultiselectListBox-D5smzcVZ.js";
7
- import { b as ve } from "./_baseAssignValue-BPMLYzDH.js";
8
- import { b as we } 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-B27OsWa6.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, v) => (x) => v(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 we(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
- ve(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 v = _(() => 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
- ), w = 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 = w.value) == null || b.scrollUpIntoView(V - 1), (U = w.value) == null || U.setCurrentKeyNavIndex(V)) : ((D = w.value) == null || D.scrollDownIntoView(E + 1), (H = w.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: w,
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: v.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: v.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: v.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: v.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"])
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
- }, v = ue("getPossibleValuesFromUiSchema");
279
- re(async () => {
280
- const s = e.control.uischema.options.possibleValues;
281
- s ? l.value = s : a.value || (l.value = await v(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
- }, w = 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: w,
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: w.value
356
- }, void 0, !0)
357
- ]),
358
- _: 3
359
- }, 8, ["label", "onControllingFlowVariableSet"])
360
- ], 64));
361
- }
362
- }), dt = /* @__PURE__ */ Y(Qe, [["__scopeId", "data-v-a10fd7f0"]]);
363
- export {
364
- Je as DEFAULT_ANY_UNKNOWN_VALUES_ID,
365
- dt as default
366
- };
@@ -1,87 +0,0 @@
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, E as B } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
3
- import { u as N } from "./useHideOnNull-CCfNP3O7.js";
4
- import { C as H } from "./Checkbox-Bl3rvtXe.js";
5
- import { I } from "./InputField-CWbS01h9.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
- };