@knime/jsonforms 1.21.0 → 1.21.2

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 (107) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +6 -0
  3. package/dist/AnyOfTwinlist-BaKgX8A7.js +22 -0
  4. package/dist/{Checkbox-uBRF2ZKG.js → Checkbox-BnKpZFTE.js} +1 -1
  5. package/dist/{CheckboxControl-B9Sd2LLd.js → CheckboxControl-5w7zlrdd.js} +1 -1
  6. package/dist/{CheckboxesControl-CTaoagZv.js → CheckboxesControl-0al-vEKC.js} +2 -2
  7. package/dist/{ColorControl-DxCjpcHn.js → ColorControl-Dzp0Qztx.js} +1 -1
  8. package/dist/{ColorPreviewControl-C7MmFIpq.js → ColorPreviewControl-DD9oq2kB.js} +5 -5
  9. package/dist/{ComboBoxControl-CV4SCOo7.js → ComboBoxControl-BOoPDajP.js} +14 -15
  10. package/dist/{DateControl-9d_SPymX.js → DateControl-BqYwfkTb.js} +1 -1
  11. package/dist/{DateTimeControl-nxVjz31-.js → DateTimeControl-CNkPjqie.js} +1 -1
  12. package/dist/{DateTimeFormatPickerControl-CMgXr7tA.js → DateTimeFormatPickerControl-BawKiO92.js} +1 -1
  13. package/dist/DateTimeFormatPickerWithTypeControl-BZhGNGGy.js +464 -0
  14. package/dist/{DropdownControl-BXbRH5G-.js → DropdownControl-C5dZUtMO.js} +2 -2
  15. package/dist/{ExecutorCoresControl-B04lAS0W.js → ExecutorCoresControl-D_f2Ii7P.js} +2 -2
  16. package/dist/{ExecutorMemoryControl-CraHGxVJ.js → ExecutorMemoryControl-Bi5ddlwR.js} +2 -2
  17. package/dist/FileUploadControl-Bpc7-Tjx.js +210 -0
  18. package/dist/{GridSelectionControl-Cqrr0vTk.js → GridSelectionControl-DS8kT_Nx.js} +17 -17
  19. package/dist/{HorizontalLayout-BRxOESz6.js → HorizontalLayout-CIcEcUaB.js} +1 -1
  20. package/dist/{IntegerControl-BG7i8ix-.js → IntegerControl-CNd2Zml6.js} +1 -1
  21. package/dist/{IntervalControl-YdZin9Wi.js → IntervalControl-BPiRezHq.js} +11 -11
  22. package/dist/{LinkControl-Ntwn3ko5.js → LinkControl-Bp2h1jSd.js} +3 -3
  23. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-CiYSPKlk.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-BRmvlIKr.js} +5 -5
  24. package/dist/ManualTwinlistControl-Dtx1Qiz7.js +72 -0
  25. package/dist/{MultiselectListBox-DE0QC--O.js → MultiSelectListBoxControl-DXLGhCNi.js} +103 -78
  26. package/dist/MultimodeTwinlistControl-CKRsC015.js +4 -0
  27. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CV2htSnA.js +157 -0
  28. package/dist/{NameFilter-dUTC31qA.js → NameFilter-BGJOxdjr.js} +4 -4
  29. package/dist/{NumberControl-Bi9ixtTO.js → NumberControl-B05C6ECd.js} +1 -1
  30. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BkEh0Ykh.js → NumberControlBase.vue_vue_type_script_setup_true_lang-B64ImWmo.js} +2 -2
  31. package/dist/{OneOfDropdown-BR4WCua4.js → OneOfDropdown-DFr8wkfK.js} +4 -4
  32. package/dist/{RadioButtonsWithDescriptionControl-C69ZDGN4.js → RadioButtonsWithDescriptionControl-FxnrFURa.js} +1 -1
  33. package/dist/{RadioControl-DnF-ishb.js → RadioControl-B3Wse8Ra.js} +2 -2
  34. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DvfaMgRR.js → RadioControlBase.vue_vue_type_script_setup_true_lang-B6fvhFpH.js} +2 -2
  35. package/dist/{ResourceControlBase-OgchIcbA.js → ResourceControlBase-CS-UW4Kt.js} +2 -2
  36. package/dist/{RichTextControl-sy7UyTn8.js → RichTextControl-BYuWpXlC.js} +1629 -1489
  37. package/dist/{SectionHeading-Dfcyl0Yz.js → SectionHeading-DH9g1jBv.js} +1 -1
  38. package/dist/{SectionLayout-CqIHiM2R.js → SectionLayout-DrSBiXd-.js} +3 -3
  39. package/dist/SettingsSubPanel-CZu70rLw.js +5 -0
  40. package/dist/{SettingsSubPanelLayout-DNEqHncD.js → SettingsSubPanelLayout-CR7zIFEo.js} +7 -7
  41. package/dist/{SimpleButtonControl-BKV86mQ0.js → SimpleButtonControl-B2fHLn6i.js} +8 -8
  42. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-CwE6CdU-.js +28169 -0
  43. package/dist/SimpleTwinlistControl-BeebhKhJ.js +22 -0
  44. package/dist/{SingleSelectControl-CMEjgiNY.js → SingleSelectControl-W6KYjtSP.js} +2 -2
  45. package/dist/{SingleSelectListBoxControl-zUEWoGd8.js → SingleSelectListBoxControl-Cp_vbfKc.js} +3 -3
  46. package/dist/SortListControl-b3lDXyoN.js +103 -0
  47. package/dist/{StyledListItem-Dmiasg50.js → StyledListItem-B97G9CDY.js} +1 -1
  48. package/dist/{TeamAndSpacesControl-2B_pTWqM.js → TeamAndSpacesControl-BaOQSDum.js} +1 -1
  49. package/dist/{TeamResourceControl-BFCZeFBI.js → TeamResourceControl-DdB1fE3C.js} +2 -2
  50. package/dist/{TextAreaControl-DWtOmv7O.js → TextAreaControl-CVRPcJt8.js} +1 -1
  51. package/dist/{TextControl-DwAc1Lgx.js → TextControl-BqJncTor.js} +1 -1
  52. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BvSRuAqp.js → TextControl.vue_vue_type_script_setup_true_lang-C-5QWuaO.js} +2 -2
  53. package/dist/{TimeControl-n4lsWwMk.js → TimeControl-DvCOb5wo.js} +1 -1
  54. package/dist/{TimePartInput-DTxykHkb.js → TimePartInput-DGfV6WeZ.js} +1 -1
  55. package/dist/{TimeframesControl-CPnnV-IY.js → TimeframesControl-7oW8Nb-d.js} +2 -2
  56. package/dist/{Tooltip-CQD85sdp.js → Tooltip-ZO6iIct2.js} +1 -1
  57. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-Ck66siqL.js +42 -0
  58. package/dist/{TypedStringFilter-7TKnShae.js → TypedStringFilter-cQS5GH50.js} +8 -9
  59. package/dist/{ValueSwitch-BuQf-fpg.js → ValueSwitch-BXc_PE8P.js} +6 -6
  60. package/dist/{ValueSwitchControl-DUWpTxo1.js → ValueSwitchControl-CZStDbmJ.js} +1 -1
  61. package/dist/{VerticalLayout-BR0nc-T3.js → VerticalLayout-BsGmnjxN.js} +2 -2
  62. package/dist/{VerticalLayoutBase-BmUvz2xm.js → VerticalLayoutBase-CEM6gzmm.js} +1 -1
  63. package/dist/{ZonedDateTimeControl-4Zlm92zJ.js → ZonedDateTimeControl-BrhYGJwr.js} +2 -2
  64. package/dist/{_Uint8Array-CgOaNCk1.js → _Uint8Array-DDNG27um.js} +14 -14
  65. package/dist/{_baseIteratee-B7GNekaD.js → _baseIteratee-CpLcQZ3B.js} +9 -9
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +113 -102
  68. package/dist/{localTimeUtils-GW01Jwt9.js → localTimeUtils-DA3ktTUE.js} +1671 -1579
  69. package/dist/{popper-D54JdmBM.js → popper-70nckCW_.js} +53 -53
  70. package/dist/src/renderers/defaultRenderers.d.ts +1 -930
  71. package/dist/src/renderers/sortListRenderer.d.ts +1 -930
  72. package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -918
  73. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
  74. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -2
  75. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +2 -8
  76. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  77. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +1 -1
  78. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -5
  79. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +1 -1
  80. package/dist/src/uiComponents/twinlist/toKdsPossibleValues.d.ts +9 -0
  81. package/dist/testing.js +2 -2
  82. package/dist/toKdsPossibleValues-BklBg3gG.js +14 -0
  83. package/dist/{toString-EJiXsCqP.js → toString-N4qKgUAY.js} +1 -1
  84. package/dist/{useBuiltinValidations-C-jX-GU7.js → useBuiltinValidations-C3nXdk7R.js} +1 -1
  85. package/dist/{usePossibleValues-CdNvUspy.js → usePossibleValues-CdZtv_zD.js} +1 -1
  86. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-De2_vatY.js → useUnknownValuesInTwinlist-BANpCttu.js} +6 -7
  87. package/package.json +5 -5
  88. package/dist/AnyOfTwinlist-BXOiwhPe.js +0 -22
  89. package/dist/DateTimeFormatPickerWithTypeControl-TpmjEZVL.js +0 -442
  90. package/dist/FileUploadControl-D3Awi7rK.js +0 -197
  91. package/dist/InputField-BPW3gcOb.js +0 -148
  92. package/dist/LoadingIcon-DWlZH7u-.js +0 -29
  93. package/dist/ManualTwinlistControl-Ag2U5qFU.js +0 -79
  94. package/dist/MultiSelectListBoxControl-yIxxGB8U.js +0 -31
  95. package/dist/MultimodeTwinlistControl-Cx8g1mbI.js +0 -598
  96. package/dist/SettingsSubPanel-B5IVsvuc.js +0 -5
  97. package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js +0 -26292
  98. package/dist/SimpleTwinlistControl-5zMN3nHL.js +0 -25
  99. package/dist/SortListControl-Rh42JVSy.js +0 -389
  100. package/dist/TwinlistControlBase-DpODIPuw.js +0 -57
  101. package/dist/TwinlistLoadingInfo-BwuYp151.js +0 -956
  102. package/dist/_baseAssignValue-DAm2gl_N.js +0 -19
  103. package/dist/_baseEach-CpynTt09.js +0 -30
  104. package/dist/createMissingItem-B00Kg95q.js +0 -4
  105. package/dist/navigator-e30QQMkl.js +0 -4
  106. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +0 -2
  107. package/dist/useSearch-hpyYQ_6y.js +0 -74
@@ -1,442 +0,0 @@
1
- import { openBlock as v, createElementBlock as w, createElementVNode as y, defineComponent as A, useCssVars as q, computed as h, ref as g, watch as I, reactive as G, onMounted as J, nextTick as $, onUnmounted as Q, createBlock as O, unref as x, withCtx as X, createCommentVNode as C, createVNode as b, Fragment as Y, renderList as ee, normalizeClass as _, toDisplayString as H, useModel as te, withDirectives as oe, vModelText as le, normalizeStyle as ae, mergeModels as se } from "vue";
2
- import { _ as S, P as ne, u as ie } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
3
- import { V as z } from "./ValueSwitch-BuQf-fpg.js";
4
- import { u as re, a as de, o as ce, s as ue, f as me } from "./floating-ui.vue-Bk6u3tWN.js";
5
- import { u as pe, F as ve } from "./useDropdownNavigation-EOwf_fL0.js";
6
- import { L as fe } from "./LoadingIcon-DWlZH7u-.js";
7
- const ye = {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- fill: "none",
10
- "stroke-linejoin": "round",
11
- viewBox: "0 0 32 32"
12
- };
13
- function he(n, f) {
14
- return v(), w("svg", ye, [...f[0] || (f[0] = [
15
- y("path", {
16
- fill: "#000",
17
- d: "M2 3.842v-.5a.5.5 0 0 0-.5.5zm22.611 0h.5a.5.5 0 0 0-.5-.5zm-.5 7.48a.5.5 0 1 0 1 0zM2 21.43h-.5a.5.5 0 0 0 .5.5zm10.298.5a.5.5 0 1 0 0-1zm5.283 8.222h-.5a.5.5 0 0 0 .765.424zm3.278-2.046.265.424a.5.5 0 0 0 .235-.424zm0-5.87-.366-.34a.5.5 0 0 0-.134.34zM27.613 15l.366.341a.5.5 0 0 0-.366-.841zm-10.032 7.235h.5a.5.5 0 0 0-.128-.334zM11.063 15v-.5a.5.5 0 0 0-.372.835zm-.69-9.483V2h-1v3.517zM16.155 2v3.517h1V2zM2 4.342h22.611v-1H2zm22.111-.5v7.48h1v-7.48zM2.5 21.43V3.842h-1V21.43zM2 8.362h22.611v-1H2zM12.298 20.93h-6.81v1h6.81zm-6.81 0H2v1h3.488zm12.358 9.646 3.278-2.046-.53-.849-3.278 2.047zm3.513-2.47v-5.87h-1v5.87zm-.135-5.528 6.755-7.236-.731-.682-6.755 7.235zm-4.143-.342v7.916h1v-7.916zm.872-.334-6.519-7.236-.743.67 6.519 7.235zm-6.89-6.401h16.55v-1h-16.55z"
18
- }, null, -1)
19
- ])]);
20
- }
21
- const Te = { render: he }, ge = { class: "popover" }, we = { class: "formats-container-border-host" }, xe = {
22
- key: 0,
23
- class: "no-formats-available"
24
- }, Fe = {
25
- key: 1,
26
- class: "no-formats-available"
27
- }, Ee = ["onClick"], be = { class: "format-pattern" }, Ve = { class: "format-preview" }, U = 1, De = /* @__PURE__ */ A({
28
- __name: "DateTimeFormatPickerPopover",
29
- props: {
30
- allFormats: {},
31
- selectedType: {},
32
- initialSelectedPattern: {},
33
- showTypeSwitch: { type: Boolean }
34
- },
35
- emits: ["commit", "cancel"],
36
- setup(n, { emit: f }) {
37
- q((e) => ({
38
- v3b9e5e3a: U
39
- }));
40
- const i = f, c = n, V = h(() => [
41
- {
42
- id: "RECENT",
43
- text: "Recent"
44
- },
45
- {
46
- id: "STANDARD",
47
- text: "ISO"
48
- },
49
- {
50
- id: "EUROPEAN",
51
- text: "European"
52
- },
53
- {
54
- id: "AMERICAN",
55
- text: "United States"
56
- }
57
- ]), D = h(() => [
58
- {
59
- id: "DATE",
60
- text: "Date"
61
- },
62
- {
63
- id: "DATE_TIME",
64
- text: "Date & time"
65
- },
66
- {
67
- id: "TIME",
68
- text: "Time"
69
- },
70
- {
71
- id: "ZONED_DATE_TIME",
72
- text: "Zoned date & time"
73
- }
74
- ]), r = g(null), u = g(null), a = g("RECENT"), d = g(c.selectedType);
75
- I(
76
- () => c.selectedType,
77
- (e) => {
78
- u.value = e;
79
- }
80
- );
81
- const l = h(
82
- () => c.allFormats?.filter(
83
- (e) => e.category === a.value && e.temporalType === d.value
84
- ) ?? null
85
- ), m = g(null), p = G({}), F = (e) => `${e.format}-${e.category}-${e.temporalType}`, L = (e) => (t) => {
86
- p[F(e)] = t;
87
- }, E = (e) => ({
88
- format: e.format,
89
- temporalType: e.temporalType
90
- }), {
91
- currentIndex: R,
92
- onKeydown: P,
93
- resetNavigation: Z,
94
- setElement: W
95
- } = pe({
96
- keepOpenedOnTab: !0,
97
- getFirstElement: () => ({
98
- index: 0,
99
- onClick: () => i(
100
- "commit",
101
- E(l.value[0])
102
- )
103
- }),
104
- getLastElement: () => {
105
- const e = l.value.length - 1;
106
- return {
107
- index: e,
108
- onClick: () => i(
109
- "commit",
110
- E(l.value[e])
111
- )
112
- };
113
- },
114
- getNextElement: (e, t) => {
115
- if (e = e === null || e === -1 ? null : e, t === 1) {
116
- const s = ((e ?? -1) + 1) % l.value.length;
117
- return {
118
- index: s,
119
- onClick: () => i(
120
- "commit",
121
- E(l.value[s])
122
- )
123
- };
124
- } else {
125
- const s = ((e ?? 0) - 1 + l.value.length) % l.value.length;
126
- return {
127
- index: s,
128
- onClick: () => i(
129
- "commit",
130
- E(l.value[s])
131
- )
132
- };
133
- }
134
- },
135
- close: () => {
136
- i("cancel");
137
- }
138
- }), K = (e) => {
139
- const t = e.parentElement;
140
- if (t && t.scrollHeight > t.clientHeight) {
141
- const o = t.offsetTop + U, s = t.clientHeight + t.scrollTop, T = e.offsetTop + e.offsetHeight - o;
142
- T > s ? t.scrollTop = T - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
143
- }
144
- }, N = (e) => {
145
- const t = p[`${e}-${a.value}-${d.value}`];
146
- t && K(t);
147
- }, B = async (e, t, o) => {
148
- d.value = t ?? d.value, a.value = o ?? a.value, await $(), u.value = e, N(e);
149
- const s = l.value.findIndex(
150
- (T) => T.format === e
151
- );
152
- W({
153
- index: s,
154
- onClick: () => i(
155
- "commit",
156
- E(l.value[s])
157
- )
158
- });
159
- };
160
- I(R, (e) => {
161
- if (e === null)
162
- return;
163
- const t = l.value?.[e]?.format;
164
- t && N(t);
165
- }), I([d, a], () => {
166
- d.value === r.value?.temporalType && a.value === r.value?.category ? B(
167
- r.value.format,
168
- r.value.temporalType,
169
- r.value.category
170
- ) : (u.value = null, Z());
171
- });
172
- const M = g(!1);
173
- return J(async () => {
174
- if (!c.allFormats)
175
- return;
176
- const e = [
177
- "RECENT",
178
- "STANDARD",
179
- "EUROPEAN",
180
- "AMERICAN"
181
- ], t = c.allFormats.filter((o) => c.initialSelectedPattern === o.format).filter(
182
- (o) => (
183
- // if the type switch is hidden, filter to only formats with the same type
184
- c.selectedType === o.temporalType || c.showTypeSwitch
185
- )
186
- ).sort((o, s) => {
187
- const T = e.indexOf(o.category), k = e.indexOf(s.category);
188
- return T - k;
189
- });
190
- if (t.length > 0) {
191
- const o = t[0].format, s = t[0].temporalType, T = t[0].category;
192
- await B(o, s, T);
193
- const k = l.value.findIndex(
194
- (j) => j.format === o
195
- );
196
- r.value = {
197
- format: o,
198
- index: k,
199
- category: T,
200
- temporalType: s
201
- };
202
- }
203
- $(() => M.value = !0);
204
- }), Q(() => M.value = !1), (e, t) => (v(), O(x(ve), {
205
- active: M.value,
206
- "onUpdate:active": t[3] || (t[3] = (o) => M.value = o),
207
- "initial-focus": () => m.value ?? !1
208
- }, {
209
- default: X(() => [
210
- y("div", ge, [
211
- n.showTypeSwitch ? (v(), O(z, {
212
- key: 0,
213
- id: "selectedFormatType",
214
- ref: "typeSwitchRef",
215
- modelValue: d.value,
216
- "onUpdate:modelValue": t[0] || (t[0] = (o) => d.value = o),
217
- compact: "",
218
- "possible-values": D.value,
219
- class: "filter-switch"
220
- }, null, 8, ["modelValue", "possible-values"])) : C("", !0),
221
- b(z, {
222
- id: "selectedFormatStandard",
223
- ref: "standardSwitchRef",
224
- modelValue: a.value,
225
- "onUpdate:modelValue": t[1] || (t[1] = (o) => a.value = o),
226
- compact: "",
227
- "possible-values": V.value,
228
- class: "filter-switch"
229
- }, null, 8, ["modelValue", "possible-values"]),
230
- y("div", we, [
231
- y("div", {
232
- id: "dateFormats",
233
- ref_key: "formatContainerRef",
234
- ref: m,
235
- class: "formats-container",
236
- tabindex: "0",
237
- role: "menu",
238
- onKeydown: t[2] || (t[2] = //@ts-ignore
239
- (...o) => x(P) && x(P)(...o))
240
- }, [
241
- l.value === null ? (v(), w("div", xe, [
242
- b(fe, { class: "loading-spinner" })
243
- ])) : l.value.length === 0 ? (v(), w("div", Fe, " No formats available ")) : (v(!0), w(Y, { key: 2 }, ee(l.value, (o, s) => (v(), w("div", {
244
- key: F(o),
245
- ref_for: !0,
246
- ref: L(o),
247
- class: _([{
248
- highlighted: s === x(R),
249
- applied: s === r.value?.index && o.category === r.value.category && o.temporalType === r.value.temporalType
250
- }, "single-format"]),
251
- role: "menuitem",
252
- onClick: () => i("commit", E(o))
253
- }, [
254
- y("span", be, H(o.format), 1),
255
- y("span", Ve, H(o.example), 1)
256
- ], 10, Ee))), 128))
257
- ], 544)
258
- ])
259
- ])
260
- ]),
261
- _: 1
262
- }, 8, ["active", "initial-focus"]));
263
- }
264
- }), Me = /* @__PURE__ */ S(De, [["__scopeId", "data-v-8bb40d8b"]]), ke = { class: "input-fields" }, Ie = ["disabled"], Ce = {
265
- key: 0,
266
- class: "invalid-marker"
267
- }, _e = ["disabled"], ze = {}, Ae = /* @__PURE__ */ A({
268
- ...ze,
269
- __name: "DateTimeFormatInput",
270
- props: /* @__PURE__ */ se({
271
- disabled: { type: Boolean, default: !1 },
272
- compact: { type: Boolean, default: !1 },
273
- isValid: { type: Boolean, default: !0 },
274
- allDefaultFormats: {},
275
- allowedTypes: { default: () => [
276
- "DATE",
277
- "TIME",
278
- "DATE_TIME",
279
- "ZONED_DATE_TIME"
280
- ] },
281
- showTypeSwitchInPopover: { type: Boolean, default: !0 }
282
- }, {
283
- modelValue: {
284
- default: {
285
- format: "yyyy-MM-dd",
286
- temporalType: "DATE"
287
- }
288
- },
289
- modelModifiers: {}
290
- }),
291
- emits: ["update:modelValue"],
292
- setup(n) {
293
- const f = n, i = te(n, "modelValue"), c = h({
294
- get: () => i.value.format,
295
- set: (m) => {
296
- i.value = {
297
- ...i.value,
298
- format: m
299
- };
300
- }
301
- }), V = "Format like 'yyyy-MM-dd'", D = h(() => f.isValid), r = g(null), u = g(null), a = g(!1), d = (m) => {
302
- i.value = m, a.value = !1;
303
- };
304
- ne(u, () => a.value = !1, {
305
- ignore: [r]
306
- });
307
- const { floatingStyles: l } = re(
308
- r,
309
- u,
310
- {
311
- middleware: [
312
- ce({
313
- mainAxis: 2,
314
- crossAxis: 0
315
- }),
316
- ue(),
317
- me({
318
- mainAxis: !0,
319
- crossAxis: !1
320
- })
321
- ],
322
- placement: "top-end",
323
- whileElementsMounted: de
324
- }
325
- );
326
- return (m, p) => (v(), w("div", null, [
327
- y("div", {
328
- class: _(["wrapper", { disabled: n.disabled, compact: n.compact }])
329
- }, [
330
- y("span", ke, [
331
- oe(y("input", {
332
- "onUpdate:modelValue": p[0] || (p[0] = (F) => c.value = F),
333
- type: "text",
334
- disabled: n.disabled,
335
- placeholder: V,
336
- spellcheck: "false",
337
- onFocus: p[1] || (p[1] = (F) => a.value = !1)
338
- }, null, 40, Ie), [
339
- [le, c.value]
340
- ]),
341
- D.value ? C("", !0) : (v(), w("span", Ce)),
342
- y("button", {
343
- ref_key: "togglePopoverButtonRef",
344
- ref: r,
345
- class: _(["trigger-popover-button", { active: a.value }]),
346
- disabled: n.disabled,
347
- onClick: p[2] || (p[2] = (F) => a.value = !a.value)
348
- }, [
349
- b(x(Te))
350
- ], 10, _e)
351
- ])
352
- ], 2),
353
- a.value ? (v(), w("div", {
354
- key: 0,
355
- ref_key: "floatingPopoverRef",
356
- ref: u,
357
- class: "popover",
358
- style: ae(x(l))
359
- }, [
360
- b(Me, {
361
- "all-formats": n.allDefaultFormats,
362
- "initial-selected-pattern": i.value.format,
363
- "selected-type": i.value.temporalType,
364
- "show-type-switch": n.showTypeSwitchInPopover,
365
- onCommit: d,
366
- onCancel: p[3] || (p[3] = (F) => a.value = !1)
367
- }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
368
- ], 4)) : C("", !0)
369
- ]));
370
- }
371
- }), Se = /* @__PURE__ */ S(Ae, [["__scopeId", "data-v-1577d5ce"]]), Re = ["id"], Pe = /* @__PURE__ */ A({
372
- __name: "DateTimeFormatPickerWithTypeControl",
373
- props: {
374
- control: {},
375
- handleChange: { type: Function },
376
- changeValue: { type: Function },
377
- disabled: { type: Boolean },
378
- isValid: { type: Boolean },
379
- onRegisterValidation: { type: Function },
380
- labelForId: {}
381
- },
382
- setup(n) {
383
- const f = n, i = h(
384
- () => f.control.uischema
385
- ), c = h(() => i.value.options), V = h(() => c.value?.allowedFormats), D = ie(i, "dateTimeFormats"), r = [
386
- {
387
- id: "DATE",
388
- text: "Date"
389
- },
390
- {
391
- id: "DATE_TIME",
392
- text: "Date & time"
393
- },
394
- {
395
- id: "TIME",
396
- text: "Time"
397
- },
398
- {
399
- id: "ZONED_DATE_TIME",
400
- text: "Zoned date & time"
401
- }
402
- ], u = h({
403
- get: () => f.control.data,
404
- set: (d) => {
405
- f.changeValue(d);
406
- }
407
- }), a = h({
408
- get: () => u.value.temporalType,
409
- set: (d) => {
410
- u.value = {
411
- ...u.value,
412
- temporalType: d
413
- };
414
- }
415
- });
416
- return (d, l) => (v(), w("div", {
417
- id: n.labelForId,
418
- class: "control-container"
419
- }, [
420
- b(x(z), {
421
- modelValue: a.value,
422
- "onUpdate:modelValue": l[0] || (l[0] = (m) => a.value = m),
423
- compact: "",
424
- "possible-values": r,
425
- disabled: n.disabled
426
- }, null, 8, ["modelValue", "disabled"]),
427
- b(x(Se), {
428
- modelValue: u.value,
429
- "onUpdate:modelValue": l[1] || (l[1] = (m) => u.value = m),
430
- compact: "",
431
- disabled: n.disabled,
432
- "show-type-switch-in-popover": !1,
433
- "allowed-formats": V.value,
434
- "all-default-formats": x(D),
435
- "is-valid": !0
436
- }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
437
- ], 8, Re));
438
- }
439
- }), Le = /* @__PURE__ */ S(Pe, [["__scopeId", "data-v-8517cafd"]]);
440
- export {
441
- Le as default
442
- };
@@ -1,197 +0,0 @@
1
- import { defineComponent as V, ref as h, computed as g, openBlock as N, createElementBlock as G, createVNode as R, unref as q, createElementVNode as v, toDisplayString as K } from "vue";
2
- import { C as E, G as W, A as $, B as I, y as Y, _ as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
3
- import { e as J, o as Q, U as w, j as X, a as j, m as U, n as T, i as Z, S as k, g as z } from "./_Uint8Array-CgOaNCk1.js";
4
- import { b as ee } from "./_baseAssignValue-DAm2gl_N.js";
5
- import { i as te } from "./isArray-WzO_os3q.js";
6
- var S = Object.create, re = /* @__PURE__ */ (function() {
7
- function e() {
8
- }
9
- return function(t) {
10
- if (!E(t))
11
- return {};
12
- if (S)
13
- return S(t);
14
- e.prototype = t;
15
- var r = new e();
16
- return e.prototype = void 0, r;
17
- };
18
- })();
19
- function ne(e, t) {
20
- for (var r = -1, a = e == null ? 0 : e.length; ++r < a && t(e[r], r, e) !== !1; )
21
- ;
22
- return e;
23
- }
24
- var oe = Object.prototype, ae = oe.hasOwnProperty;
25
- function ce(e, t, r) {
26
- var a = e[t];
27
- (!(ae.call(e, t) && J(a, r)) || r === void 0 && !(t in e)) && ee(e, t, r);
28
- }
29
- var ie = Q(Object.getPrototypeOf, Object), D = typeof exports == "object" && exports && !exports.nodeType && exports, O = D && typeof module == "object" && module && !module.nodeType && module, se = O && O.exports === D, C = se ? W.Buffer : void 0;
30
- C && C.allocUnsafe;
31
- function le(e, t) {
32
- return e.slice();
33
- }
34
- var fe = Object.prototype, ue = fe.hasOwnProperty;
35
- function be(e) {
36
- var t = e.length, r = new e.constructor(t);
37
- return t && typeof e[0] == "string" && ue.call(e, "index") && (r.index = e.index, r.input = e.input), r;
38
- }
39
- function m(e) {
40
- var t = new e.constructor(e.byteLength);
41
- return new w(t).set(new w(e)), t;
42
- }
43
- function pe(e, t) {
44
- var r = m(e.buffer);
45
- return new e.constructor(r, e.byteOffset, e.byteLength);
46
- }
47
- var de = /\w*$/;
48
- function ge(e) {
49
- var t = new e.constructor(e.source, de.exec(e));
50
- return t.lastIndex = e.lastIndex, t;
51
- }
52
- var x = $ ? $.prototype : void 0, F = x ? x.valueOf : void 0;
53
- function ye(e) {
54
- return F ? Object(F.call(e)) : {};
55
- }
56
- function Te(e, t) {
57
- var r = m(e.buffer);
58
- return new e.constructor(r, e.byteOffset, e.length);
59
- }
60
- var je = "[object Boolean]", me = "[object Date]", Ae = "[object Map]", he = "[object Number]", ve = "[object RegExp]", $e = "[object Set]", we = "[object String]", Se = "[object Symbol]", Oe = "[object ArrayBuffer]", Ce = "[object DataView]", xe = "[object Float32Array]", Fe = "[object Float64Array]", Be = "[object Int8Array]", _e = "[object Int16Array]", Ee = "[object Int32Array]", Ie = "[object Uint8Array]", Ue = "[object Uint8ClampedArray]", De = "[object Uint16Array]", Me = "[object Uint32Array]";
61
- function Pe(e, t, r) {
62
- var a = e.constructor;
63
- switch (t) {
64
- case Oe:
65
- return m(e);
66
- case je:
67
- case me:
68
- return new a(+e);
69
- case Ce:
70
- return pe(e);
71
- case xe:
72
- case Fe:
73
- case Be:
74
- case _e:
75
- case Ee:
76
- case Ie:
77
- case Ue:
78
- case De:
79
- case Me:
80
- return Te(e);
81
- case Ae:
82
- return new a();
83
- case he:
84
- case we:
85
- return new a(e);
86
- case ve:
87
- return ge(e);
88
- case $e:
89
- return new a();
90
- case Se:
91
- return ye(e);
92
- }
93
- }
94
- function Le(e) {
95
- return typeof e.constructor == "function" && !X(e) ? re(ie(e)) : {};
96
- }
97
- var Ve = "[object Map]";
98
- function Ne(e) {
99
- return I(e) && j(e) == Ve;
100
- }
101
- var B = T && T.isMap, Ge = B ? U(B) : Ne, Re = "[object Set]";
102
- function qe(e) {
103
- return I(e) && j(e) == Re;
104
- }
105
- var _ = T && T.isSet, Ke = _ ? U(_) : qe, M = "[object Arguments]", We = "[object Array]", Ye = "[object Boolean]", He = "[object Date]", Je = "[object Error]", P = "[object Function]", Qe = "[object GeneratorFunction]", Xe = "[object Map]", Ze = "[object Number]", L = "[object Object]", ke = "[object RegExp]", ze = "[object Set]", et = "[object String]", tt = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", ot = "[object DataView]", at = "[object Float32Array]", ct = "[object Float64Array]", it = "[object Int8Array]", st = "[object Int16Array]", lt = "[object Int32Array]", ft = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", bt = "[object Uint16Array]", pt = "[object Uint32Array]", n = {};
106
- n[M] = n[We] = n[nt] = n[ot] = n[Ye] = n[He] = n[at] = n[ct] = n[it] = n[st] = n[lt] = n[Xe] = n[Ze] = n[L] = n[ke] = n[ze] = n[et] = n[tt] = n[ft] = n[ut] = n[bt] = n[pt] = !0;
107
- n[Je] = n[P] = n[rt] = !1;
108
- function y(e, t, r, a, u, c) {
109
- var o;
110
- if (o !== void 0)
111
- return o;
112
- if (!E(e))
113
- return e;
114
- var p = te(e);
115
- if (p)
116
- o = be(e);
117
- else {
118
- var i = j(e), d = i == P || i == Qe;
119
- if (Z(e))
120
- return le(e);
121
- if (i == L || i == M || d && !u)
122
- o = d ? {} : Le(e);
123
- else {
124
- if (!n[i])
125
- return u ? e : {};
126
- o = Pe(e, i);
127
- }
128
- }
129
- c || (c = new k());
130
- var l = c.get(e);
131
- if (l)
132
- return l;
133
- c.set(e, o), Ke(e) ? e.forEach(function(s) {
134
- o.add(y(s, t, r, s, e, c));
135
- }) : Ge(e) && e.forEach(function(s, f) {
136
- o.set(f, y(s, t, r, f, e, c));
137
- });
138
- var b = z, A = p ? void 0 : b(e);
139
- return ne(A || e, function(s, f) {
140
- A && (f = s, s = e[f]), ce(o, f, y(s, t, r, f, e, c));
141
- }), o;
142
- }
143
- var dt = 1, gt = 4;
144
- function yt(e) {
145
- return y(e, dt | gt);
146
- }
147
- const Tt = { class: "wrapper" }, jt = { class: "filename" }, mt = ["id", "aria-label", "accept", "multiple", "disabled"], At = /* @__PURE__ */ V({
148
- inheritAttrs: !1,
149
- __name: "FileUploadControl",
150
- props: {
151
- control: {},
152
- handleChange: { type: Function },
153
- changeValue: { type: Function },
154
- disabled: { type: Boolean },
155
- isValid: { type: Boolean },
156
- onRegisterValidation: { type: Function },
157
- labelForId: {}
158
- },
159
- setup(e) {
160
- const t = e, r = h(yt(t.control.data)), a = g(
161
- () => t.control.uischema.options?.accept ?? "*"
162
- ), u = g(
163
- () => t.control.uischema.options?.multiple ?? !1
164
- ), c = h(null), o = g(() => r.value?.map?.(({ name: l }) => l).join(", ") || "No file selected"), p = g(() => `Select file${u.value ? "s" : ""}`), i = () => {
165
- c.value?.click();
166
- }, d = (l) => {
167
- const b = l.target;
168
- b.files && (r.value = Array.from(b.files), t.handleChange(t.control.path, Array.from(r.value)));
169
- };
170
- return (l, b) => (N(), G("div", Tt, [
171
- R(q(Y), {
172
- class: "file-select-button",
173
- label: p.value,
174
- "leading-icon": "search",
175
- variant: "outlined",
176
- disabled: e.disabled,
177
- onClick: i
178
- }, null, 8, ["label", "disabled"]),
179
- v("span", jt, K(o.value), 1),
180
- v("input", {
181
- id: e.labelForId,
182
- ref_key: "fileSelector",
183
- ref: c,
184
- "aria-label": e.control.label,
185
- type: "file",
186
- accept: a.value,
187
- multiple: u.value,
188
- disabled: e.disabled,
189
- hidden: "",
190
- onChange: d
191
- }, null, 40, mt)
192
- ]));
193
- }
194
- }), Ot = /* @__PURE__ */ H(At, [["__scopeId", "data-v-7d1e4998"]]);
195
- export {
196
- Ot as default
197
- };