@knime/jsonforms 1.4.2 → 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 (142) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AnyOfTwinlist-ZSMUfL9L.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
  3. package/dist/{BaseButton-DaHwEJS7.js → BaseButton-8vDrj52e.js} +1 -1
  4. package/dist/{Button-Bw_2CUrZ.js → Button-Bngb_I70.js} +2 -2
  5. package/dist/{Checkbox-CClH5v1O.js → Checkbox-DSfVQlDb.js} +1 -1
  6. package/dist/CheckboxControl-D85aBRJ6.js +41 -0
  7. package/dist/{Checkboxes-D4qPaeYl.js → Checkboxes-DUJ3v5jU.js} +2 -2
  8. package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
  9. package/dist/{ColumnFilter-C7RkEFw3.js → ColumnFilter-BzCVLydy.js} +7 -5
  10. package/dist/{ColumnSelect-CofZcttu.js → ColumnSelect-DK7NqI5Q.js} +21 -18
  11. package/dist/{ComboBoxControl-C9KmCrJL.js → ComboBoxControl-CEXpJltI.js} +17 -14
  12. package/dist/{DateControl-CzO-FHO5.js → DateControl-CjRiy7d1.js} +6 -4
  13. package/dist/{DateTimeControl-1FXkgKJC.js → DateTimeControl-CaDuNC_u.js} +18 -15
  14. package/dist/{DateTimeFormatPickerControl-CoY0tjuj.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
  15. package/dist/{DateTimeInput-BS4u5oiH.js → DateTimeInput-96g3nCth.js} +7 -7
  16. package/dist/{Dropdown-DY6B_Cwm.js → Dropdown-CQKvBlYB.js} +4 -4
  17. package/dist/{DropdownControl-BOx53GRG.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-fTG-kCKu.js → FunctionButton-CapvFBi0.js} +2 -2
  20. package/dist/{HorizontalLayout-B6G89LUS.js → HorizontalLayout-k7vmjzLP.js} +1 -1
  21. package/dist/{InputField-Ciw2sHfy.js → InputField-DhyBnTBT.js} +1 -1
  22. package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
  23. package/dist/{IntervalControl-Cv3oVrKV.js → IntervalControl-DhujNXBe.js} +37 -35
  24. package/dist/{MultiselectListBox-Ds0W-GHB.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
  25. package/dist/{NameFilter-BpyjqqIg.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-Cq6cNPOt.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-CJRt1KAq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
  32. package/dist/{RichTextControl-DfLozxjM.js → RichTextControl-hHIvuaDd.js} +9 -7
  33. package/dist/{SectionLayout-B8lhvDwV.js → SectionLayout-DEKmJPJl.js} +2 -2
  34. package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
  35. package/dist/{SimpleTwinlistControl--SlX5r8j.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
  36. package/dist/SortListControl-CsrP-QT8.js +366 -0
  37. package/dist/{TextAreaControl-Cxe1N51h.js → TextAreaControl-CNH7s35f.js} +25 -22
  38. package/dist/{TextControl-C97DTUxi.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-Cw71wnqH.js → TwinlistControl-DJ88Q4I-.js} +21 -18
  42. package/dist/{TwinlistLoadingInfo-5dgWG85L.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
  43. package/dist/{ValueSwitch-Ds5TMrQM.js → ValueSwitch-B08Mz10g.js} +1 -1
  44. package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
  45. package/dist/{VerticalLayout-FdSZVMXg.js → VerticalLayout-ptrtpOrD.js} +2 -2
  46. package/dist/{VerticalLayoutBase-BM2Lzz4_.js → VerticalLayoutBase-B8FGVlzl.js} +1 -1
  47. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.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-BHZMmalr.js → _baseAssignValue-BPMLYzDH.js} +1 -1
  50. package/dist/{_baseEach-CFl6drhJ.js → _baseEach-B8N_Gx8P.js} +2 -2
  51. package/dist/{_baseIsEqual-CBeH4t67.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
  52. package/dist/{_baseIteratee-BLHhVAua.js → _baseIteratee-DvBmrhnf.js} +3 -3
  53. package/dist/{_getTag-ryBefWgF.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-DzcBbZvn.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-CkdEuLiz.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-DNlnK4C9.js +0 -42
  125. package/dist/CheckboxesControl-CcQ3PLSm.js +0 -38
  126. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js +0 -226
  127. package/dist/ErrorMessage-BDO-x3Uz.js +0 -23
  128. package/dist/IntegerControl-C0jzMmDK.js +0 -18
  129. package/dist/NumberControl-DFJ7GW28.js +0 -18
  130. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BVjv3GjM.js +0 -42
  131. package/dist/OneOfDropdown-fpE_aGK6.js +0 -32
  132. package/dist/RadioControl-BMvmjgc4.js +0 -22
  133. package/dist/SimpleButtonControl-Cc2jhvsQ.js +0 -58
  134. package/dist/SortListControl-BFZehvrs.js +0 -356
  135. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CHTtVr4t.js +0 -69
  136. package/dist/TimeControl-CFFsz8tR.js +0 -30
  137. package/dist/ValueSwitchControl-CljMpNHI.js +0 -18
  138. package/dist/ZonedDateTimeControl-CCtdviwP.js +0 -66
  139. package/dist/isSymbol-CSje8ekq.js +0 -8
  140. package/dist/src/higherOrderComponents/control/addLabel.d.ts +0 -12
  141. package/dist/src/uiComponents/ErrorMessage.vue.d.ts +0 -23
  142. package/dist/toString-ld_LFpvz.js +0 -26
@@ -1,356 +0,0 @@
1
- import { openBlock as S, createElementBlock as A, createElementVNode as k, defineComponent as Z, computed as V, ref as N, watch as W, Fragment as z, createVNode as d, withKeys as L, withModifiers as $, 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 } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
3
- import { w as me } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
4
- import { i as pe } from "./navigator-BYUFe-z3.js";
5
- import { F as B } from "./FunctionButton-fTG-kCKu.js";
6
- import { M as fe } from "./MultiselectListBox-Ds0W-GHB.js";
7
- import { b as he } from "./_baseAssignValue-BHZMmalr.js";
8
- import { b as we } from "./_baseEach-CFl6drhJ.js";
9
- import { b as ve } from "./_baseIteratee-BLHhVAua.js";
10
- import { i as be } from "./toString-ld_LFpvz.js";
11
- import { c as _e } from "./createMissingItem-B00Kg95q.js";
12
- import { B as T } from "./Button-Bw_2CUrZ.js";
13
- const j = {
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
- }, ge = {
23
- Shift: "⇧",
24
- Delete: "⌫",
25
- CtrlOrCmd: "⌘",
26
- Ctrl: "⌃",
27
- Alt: "⌥",
28
- Enter: "↩"
29
- }, q = (t) => {
30
- const e = (r) => (i) => r[i] ?? i, s = ((...r) => r.reduce((i, w) => (x) => w(i(x))))(
31
- e(ge),
32
- e(j)
33
- ), l = e(j);
34
- return pe() ? s(t) : l(t);
35
- }, G = () => " ", Ve = (t, e = G) => t.map(q).join(e()), ke = { formatHotkeys: Ve, formatHotkey: q, getDefaultSeparator: G };
36
- function xe(t, e, o, s) {
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 Se(t) {
43
- return t !== t;
44
- }
45
- function Ae(t, e, o) {
46
- for (var s = o - 1, l = t.length; ++s < l; )
47
- if (t[s] === e)
48
- return s;
49
- return -1;
50
- }
51
- function Ce(t, e, o) {
52
- return e === e ? Ae(t, e, o) : xe(t, Se, o);
53
- }
54
- function Ie(t, e, o, s) {
55
- for (var l = -1, r = t == null ? 0 : t.length; ++l < r; ) {
56
- var i = t[l];
57
- e(s, i, o(i), t);
58
- }
59
- return s;
60
- }
61
- function ye(t, e, o, s) {
62
- return we(t, function(l, r, i) {
63
- e(s, l, o(l), i);
64
- }), s;
65
- }
66
- function J(t, e) {
67
- return function(o, s) {
68
- var l = be(o) ? Ie : ye, r = e ? e() : {};
69
- return l(o, t, ve(s), r);
70
- };
71
- }
72
- function Q(t, e, o) {
73
- var s = t == null ? 0 : t.length;
74
- if (!s)
75
- return -1;
76
- var l = 0;
77
- return Ce(t, e, l);
78
- }
79
- var Ue = J(function(t, e, o) {
80
- he(t, o, e);
81
- }), Le = J(function(t, e, o) {
82
- t[o ? 0 : 1].push(e);
83
- }, function() {
84
- return [[], []];
85
- });
86
- const $e = {
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
- }, Be = /* @__PURE__ */ k("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1), Me = [
93
- Be
94
- ];
95
- function Ee(t, e) {
96
- return S(), A("svg", $e, [...Me]);
97
- }
98
- const Fe = { render: Ee }, Te = {
99
- xmlns: "http://www.w3.org/2000/svg",
100
- fill: "none",
101
- stroke: "#000",
102
- viewBox: "0 0 32 32"
103
- }, Ne = /* @__PURE__ */ k("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1), Ke = [
104
- Ne
105
- ];
106
- function Pe(t, e) {
107
- return S(), A("svg", Te, [...Ke]);
108
- }
109
- const R = { render: Pe }, De = {
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
- }, He = /* @__PURE__ */ k("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1), Oe = [
116
- He
117
- ];
118
- function je(t, e) {
119
- return S(), A("svg", De, [...Oe]);
120
- }
121
- const Re = { render: je }, Ze = { class: "buttons" }, We = /* @__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, s = e, l = V(() => Ue(o.possibleValues, "id")), r = V(
133
- () => o.modelValue.map(
134
- (n) => l.value[n] ?? _e(n)
135
- )
136
- ), i = N([]);
137
- W(
138
- () => o.modelValue,
139
- (n) => {
140
- const c = new Set(n);
141
- i.value = i.value.filter((u) => c.has(u));
142
- }
143
- );
144
- const w = V(() => i.value.length === 0), x = (n, c, u) => [
145
- n.slice(0, c),
146
- n.slice(c, u),
147
- n.slice(u)
148
- ], M = (n) => {
149
- let c = 0;
150
- return (u) => n(u, c++);
151
- }, C = (n, c) => Le(
152
- n,
153
- M((u, g) => c(g))
154
- ), v = N(null), a = (n) => ({ to: c } = {}) => {
155
- const u = i.value.map((b) => Q(o.modelValue, b)).sort((b, U) => b - U), g = (n === "up" ? c : null) ?? Math.max(u[0] - 1, 0), E = (n === "down" ? c : null) ?? u[u.length - 1] + 1, [X, ee, te] = x(
156
- o.modelValue,
157
- g,
158
- E + 1
159
- ), oe = new Set(u), [K, P] = C(
160
- ee,
161
- (b) => oe.has(b + g)
162
- ), [ne, le] = n === "up" ? [K, P] : [P, K], se = X.concat(ne, le, te);
163
- s("update:modelValue", se), ae(() => {
164
- var b, U, D, H;
165
- n === "up" ? ((b = v.value) == null || b.scrollUpIntoView(g - 1), (U = v.value) == null || U.setCurrentKeyNavIndex(g)) : ((D = v.value) == null || D.scrollDownIntoView(E + 1), (H = v.value) == null || H.setCurrentKeyNavIndex(E));
166
- });
167
- }, m = a("up"), h = a("down"), I = () => m({ to: 0 }), y = () => h({ to: o.modelValue.length }), _ = (n, c) => `${n} (${ke.formatHotkeys(c)})`;
168
- return (n, c) => (S(), A(z, null, [
169
- d(fe, {
170
- id: n.id,
171
- ref_key: "listBox",
172
- ref: v,
173
- modelValue: i.value,
174
- "onUpdate:modelValue": c[0] || (c[0] = (u) => i.value = u),
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($(p(h), ["alt"]), ["down"]),
182
- L($(p(m), ["alt"]), ["up"]),
183
- L($(I, ["alt"]), ["home"]),
184
- L($(y, ["alt"]), ["end"])
185
- ]
186
- }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
187
- k("div", Ze, [
188
- d(B, {
189
- disabled: w.value,
190
- title: _("Move to top", ["Alt", "Home"]),
191
- compact: "",
192
- onClick: I
193
- }, {
194
- default: f(() => [
195
- d(p(R), { class: "rotated" })
196
- ]),
197
- _: 1
198
- }, 8, ["disabled", "title"]),
199
- d(B, {
200
- disabled: w.value,
201
- title: _("Move to bottom", ["Alt", "End"]),
202
- compact: "",
203
- onClick: y
204
- }, {
205
- default: f(() => [
206
- d(p(R))
207
- ]),
208
- _: 1
209
- }, 8, ["disabled", "title"]),
210
- d(B, {
211
- disabled: w.value,
212
- title: _("Move up", ["Alt", "ArrowUp"]),
213
- compact: "",
214
- onClick: p(m)
215
- }, {
216
- default: f(() => [
217
- d(p(Re))
218
- ]),
219
- _: 1
220
- }, 8, ["disabled", "title", "onClick"]),
221
- d(B, {
222
- disabled: w.value,
223
- title: _("Move down", ["Alt", "ArrowDown"]),
224
- compact: "",
225
- onClick: p(h)
226
- }, {
227
- default: f(() => [
228
- d(p(Fe))
229
- ]),
230
- _: 1
231
- }, 8, ["disabled", "title", "onClick"])
232
- ])
233
- ], 64));
234
- }
235
- }), ze = /* @__PURE__ */ Y(We, [["__scopeId", "data-v-116782be"]]), Ye = {
236
- class: /* @__PURE__ */ ie(["flex", "space-between", "with-padding"])
237
- }, qe = { class: "flex" }, Ge = "<any unknown new column>", Je = /* @__PURE__ */ Z({
238
- __name: "SortListControl",
239
- props: {
240
- control: {},
241
- handleChange: {},
242
- changeValue: {},
243
- disabled: { type: Boolean },
244
- labelForId: {},
245
- anyUnknownValuesId: { default: Ge },
246
- anyUnknownValuesText: { default: "Any unknown column" }
247
- },
248
- setup(t) {
249
- const e = t, o = V(() => e.control.data), s = V(
250
- () => e.control.uischema.options.choicesProvider
251
- ), l = me(
252
- ce(
253
- s,
254
- []
255
- ),
256
- e.control
257
- ), r = V(
258
- () => l.value.concat({
259
- id: e.anyUnknownValuesId,
260
- text: e.anyUnknownValuesText,
261
- special: !0
262
- })
263
- ), i = (a) => {
264
- if (o.value.length === 0) {
265
- C();
266
- return;
267
- }
268
- const m = Q(o.value, e.anyUnknownValuesId);
269
- if (m === -1)
270
- throw new Error(
271
- `SortList data have to contain the value "${e.anyUnknownValuesId}"`
272
- );
273
- const h = o.value.slice(0, m + 1), I = o.value.slice(m + 1), y = new Set(o.value), _ = a.map(({ id: n }) => n).filter((n) => !y.has(n));
274
- _.length > 0 && e.changeValue(h.concat(_, I));
275
- }, w = ue("getPossibleValuesFromUiSchema");
276
- re(async () => {
277
- const a = e.control.uischema.options.possibleValues;
278
- a ? l.value = a : s.value || (l.value = await w(e.control));
279
- }), W(() => l.value, i);
280
- const x = () => {
281
- e.changeValue(o.value.toSorted((a, m) => a.localeCompare(m)));
282
- }, M = () => {
283
- e.changeValue(o.value.toSorted((a, m) => m.localeCompare(a)));
284
- }, C = () => {
285
- e.changeValue(r.value.map(({ id: a }) => a));
286
- }, v = N(null);
287
- return (a, m) => (S(), A(z, null, [
288
- k("div", Ye, [
289
- k("div", qe, [
290
- d(p(T), {
291
- "with-border": "",
292
- compact: "",
293
- onClick: x
294
- }, {
295
- default: f(() => [
296
- F("A - Z")
297
- ]),
298
- _: 1
299
- }),
300
- d(p(T), {
301
- "with-border": "",
302
- compact: "",
303
- onClick: M
304
- }, {
305
- default: f(() => [
306
- F("Z - A")
307
- ]),
308
- _: 1
309
- })
310
- ]),
311
- d(p(T), {
312
- "with-border": "",
313
- compact: "",
314
- onClick: C
315
- }, {
316
- default: f(() => [
317
- F("Reset all")
318
- ]),
319
- _: 1
320
- })
321
- ]),
322
- d(de, {
323
- label: a.control.label,
324
- onControllingFlowVariableSet: a.changeValue
325
- }, {
326
- default: f(({ labelForId: h }) => [
327
- d(p(ze), {
328
- id: h ?? void 0,
329
- ref_key: "controlElement",
330
- ref: v,
331
- "possible-values": r.value,
332
- "model-value": o.value,
333
- ariaLabel: a.control.label,
334
- disabled: a.disabled,
335
- compact: "",
336
- "onUpdate:modelValue": a.changeValue
337
- }, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
338
- ]),
339
- icon: f(() => [
340
- O(a.$slots, "icon", {}, void 0, !0)
341
- ]),
342
- buttons: f(({ hover: h }) => [
343
- O(a.$slots, "buttons", {
344
- hover: h,
345
- controlHTMLElement: v.value
346
- }, void 0, !0)
347
- ]),
348
- _: 3
349
- }, 8, ["label", "onControllingFlowVariableSet"])
350
- ], 64));
351
- }
352
- }), ut = /* @__PURE__ */ Y(Je, [["__scopeId", "data-v-69ee9491"]]);
353
- export {
354
- Ge as DEFAULT_ANY_UNKNOWN_VALUES_ID,
355
- ut as default
356
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as V, ref as g, computed as i, openBlock as a, createBlock as d, withCtx as t, unref as l, normalizeProps as y, mergeProps as v, createCommentVNode as p, renderSlot as m } from "vue";
2
- import { u as P, L as F } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
3
- import { u as w } from "./useHideOnNull-CCfNP3O7.js";
4
- import { C as B } from "./Checkbox-CClH5v1O.js";
5
- import { I as E } from "./InputField-Ciw2sHfy.js";
6
- const U = /* @__PURE__ */ V({
7
- __name: "TextControl",
8
- props: {
9
- control: {},
10
- handleChange: { type: Function },
11
- changeValue: { type: Function },
12
- disabled: { type: Boolean },
13
- labelForId: {}
14
- },
15
- setup(h) {
16
- var c, s;
17
- const o = h, b = P(
18
- (c = o.control.uischema.options) == null ? void 0 : c.placeholderProvider,
19
- ((s = o.control.uischema.options) == null ? void 0 : s.placeholder) ?? ""
20
- ), n = g(null), { showCheckbox: f, showControl: C, checkboxProps: k } = w(
21
- {
22
- control: i(() => o.control),
23
- disabled: i(() => o.disabled),
24
- controlElement: n
25
- },
26
- {
27
- setDefault: () => o.changeValue(""),
28
- setNull: () => o.changeValue(null)
29
- }
30
- );
31
- return (e, H) => {
32
- var u;
33
- return a(), d(F, {
34
- label: e.control.label,
35
- "hide-control-header": (u = e.control.uischema.options) == null ? void 0 : u.hideControlHeader
36
- }, {
37
- "before-label": t(() => [
38
- l(f) ? (a(), d(l(B), y(v({ key: 0 }, l(k))), null, 16)) : p("", !0)
39
- ]),
40
- default: t(({ labelForId: r }) => [
41
- l(C) ? (a(), d(l(E), {
42
- key: 0,
43
- id: r,
44
- ref_key: "controlElement",
45
- ref: n,
46
- placeholder: l(b),
47
- "model-value": e.control.data,
48
- disabled: e.disabled,
49
- compact: "",
50
- "onUpdate:modelValue": e.changeValue
51
- }, null, 8, ["id", "placeholder", "model-value", "disabled", "onUpdate:modelValue"])) : p("", !0)
52
- ]),
53
- icon: t(() => [
54
- m(e.$slots, "icon")
55
- ]),
56
- buttons: t(({ hover: r }) => [
57
- m(e.$slots, "buttons", {
58
- hover: r,
59
- controlHTMLElement: n.value
60
- })
61
- ]),
62
- _: 3
63
- }, 8, ["label", "hide-control-header"]);
64
- };
65
- }
66
- });
67
- export {
68
- U as _
69
- };
@@ -1,30 +0,0 @@
1
- import { defineComponent as i, computed as m, openBlock as s, createBlock as u, unref as l } from "vue";
2
- import { D as p } from "./DateTimeInput-BS4u5oiH.js";
3
- import { l as t } from "./localTimeUtils-DzcBbZvn.js";
4
- const h = /* @__PURE__ */ i({
5
- __name: "TimeControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- labelForId: {}
12
- },
13
- setup(a) {
14
- const n = a, r = m(() => t.fromString(n.control.data));
15
- return (e, o) => (s(), u(l(p), {
16
- id: e.labelForId,
17
- "model-value": r.value,
18
- required: !0,
19
- compact: "",
20
- disabled: e.disabled,
21
- "show-date": !1,
22
- "show-time": !0,
23
- "show-milliseconds": !0,
24
- "onUpdate:modelValue": o[0] || (o[0] = (d) => e.changeValue(l(t).toString(d)))
25
- }, null, 8, ["id", "model-value", "disabled"]));
26
- }
27
- });
28
- export {
29
- h as default
30
- };
@@ -1,18 +0,0 @@
1
- import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
- import { _ as a } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-CJRt1KAq.js";
3
- const i = /* @__PURE__ */ o({
4
- __name: "ValueSwitchControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- labelForId: {}
11
- },
12
- setup(p) {
13
- return (e, l) => (n(), t(a, r(e.$props, { type: "valueSwitch" }), null, 16));
14
- }
15
- });
16
- export {
17
- i as default
18
- };
@@ -1,66 +0,0 @@
1
- import { defineComponent as c, computed as a, openBlock as v, createElementBlock as f, createVNode as i, unref as u } from "vue";
2
- import { D as b } from "./DateTimeInput-BS4u5oiH.js";
3
- import { _ as T } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
4
- import { t as V, f as C } from "./localTimeUtils-DzcBbZvn.js";
5
- import { D as g } from "./Dropdown-DY6B_Cwm.js";
6
- const D = ["id"], _ = /* @__PURE__ */ c({
7
- __name: "ZonedDateTimeControl",
8
- props: {
9
- control: {},
10
- handleChange: { type: Function },
11
- changeValue: { type: Function },
12
- disabled: { type: Boolean },
13
- labelForId: {}
14
- },
15
- setup(m) {
16
- const l = m, r = a(() => l.control.uischema.options), o = a({
17
- get: () => l.control.data,
18
- set: l.changeValue
19
- }), s = a({
20
- get: () => V(o.value.dateTime),
21
- set: (e) => {
22
- o.value = {
23
- ...o.value,
24
- // get wall time of UTC time
25
- dateTime: C(e)
26
- };
27
- }
28
- }), d = a({
29
- get: () => o.value.timeZone,
30
- set: (e) => {
31
- o.value = {
32
- ...o.value,
33
- timeZone: e
34
- };
35
- }
36
- }), p = a(() => {
37
- var e;
38
- return ((e = r.value) == null ? void 0 : e.possibleValues) ?? [];
39
- });
40
- return (e, t) => (v(), f("div", {
41
- id: e.labelForId,
42
- class: "layout-container"
43
- }, [
44
- i(u(b), {
45
- modelValue: s.value,
46
- "onUpdate:modelValue": t[0] || (t[0] = (n) => s.value = n),
47
- required: !0,
48
- "show-timezone": !1,
49
- timezone: "UTC",
50
- compact: "",
51
- disabled: e.disabled
52
- }, null, 8, ["modelValue", "disabled"]),
53
- i(u(g), {
54
- modelValue: d.value,
55
- "onUpdate:modelValue": t[1] || (t[1] = (n) => d.value = n),
56
- compact: "",
57
- "possible-values": p.value,
58
- disabled: e.disabled,
59
- ariaLabel: "Timezone"
60
- }, null, 8, ["modelValue", "possible-values", "disabled"])
61
- ], 8, D));
62
- }
63
- }), I = /* @__PURE__ */ T(_, [["__scopeId", "data-v-fd0327ac"]]);
64
- export {
65
- I as default
66
- };
@@ -1,8 +0,0 @@
1
- import { v as s, w as t } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
2
- var b = "[object Symbol]";
3
- function i(o) {
4
- return typeof o == "symbol" || s(o) && t(o) == b;
5
- }
6
- export {
7
- i
8
- };
@@ -1,12 +0,0 @@
1
- import { PropsToComponent, VueControl, VueControlProps, VueControlRenderer } from './types';
2
- export type VueControlPropsForLabelContent<D> = Omit<VueControlProps<D>, "labelForId"> & {
3
- labelForId: string;
4
- };
5
- export type VueControlThatRequiresLabelWrapper<D> = PropsToComponent<VueControlPropsForLabelContent<D>>;
6
- export declare const addLabel: <D>({ control, tester, name, __asyncSetup, }: Omit<VueControlRenderer, "control"> & {
7
- control: VueControlThatRequiresLabelWrapper<D>;
8
- }, { fill }?: {
9
- fill: boolean;
10
- }) => Omit<VueControlRenderer, "control"> & {
11
- control: VueControl<D>;
12
- };
@@ -1,23 +0,0 @@
1
- import { PropType } from 'vue';
2
- declare const _default: import('vue').DefineComponent<{
3
- errors: {
4
- default: () => never[];
5
- type: PropType<{
6
- message: string;
7
- }[]>;
8
- };
9
- }, unknown, unknown, {
10
- displayableErrors(): string;
11
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
- errors: {
13
- default: () => never[];
14
- type: PropType<{
15
- message: string;
16
- }[]>;
17
- };
18
- }>>, {
19
- errors: {
20
- message: string;
21
- }[];
22
- }, {}>;
23
- export default _default;
@@ -1,26 +0,0 @@
1
- import { S as s } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
2
- import { i as m } from "./isSymbol-CSje8ekq.js";
3
- function g(r, t) {
4
- for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
5
- o[n] = t(r[n], n, r);
6
- return o;
7
- }
8
- var l = Array.isArray, e = s ? s.prototype : void 0, f = e ? e.toString : void 0;
9
- function y(r) {
10
- if (typeof r == "string")
11
- return r;
12
- if (l(r))
13
- return g(r, y) + "";
14
- if (m(r))
15
- return f ? f.call(r) : "";
16
- var t = r + "";
17
- return t == "0" && 1 / r == -1 / 0 ? "-0" : t;
18
- }
19
- function S(r) {
20
- return r == null ? "" : y(r);
21
- }
22
- export {
23
- g as a,
24
- l as i,
25
- S as t
26
- };