@knime/jsonforms 1.15.0 → 1.15.1

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 (117) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-Cqwayw73.js → Button-B9RSLVI2.js} +8 -7
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-R0DlbAdT.js → ComboBoxControl-2r1FWcy-.js} +234 -165
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/{DateTimeInput-Cs0KqlOS.js → DateTimeInput-DcwhvMD2.js} +421 -377
  14. package/dist/{Dropdown-BEx-cvXH.js → Dropdown-D49sEHBa.js} +140 -85
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-OkFB9VHZ.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CMTJnAWr.js → MultiselectListBox-CfdPbcn1.js} +96 -72
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-BepS3tAK.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CE6whfV5.js → RichTextControl-B1mJMs1e.js} +4126 -3777
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js → SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js} +5456 -5284
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-DdH9cM67.js → _baseEach-CWap1NWh.js} +2 -2
  58. package/dist/{_baseIteratee-BGt-t7Os.js → _baseIteratee-D0MXvnuf.js} +3 -3
  59. package/dist/{_getTag-DAFySze4.js → _getTag-BvpAzjaz.js} +1 -1
  60. package/dist/{arrow-dropdown-BAFsD8Su.js → arrow-dropdown-eS-nVNCv.js} +7 -1
  61. package/dist/{arrow-next-BQVCxGb8.js → arrow-next-BmOStWql.js} +7 -1
  62. package/dist/{close-DGt8x-x_.js → close-0dYG2oDA.js} +7 -1
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.js +134 -108
  65. package/dist/{localTimeUtils-NIKgHnIr.js → localTimeUtils-CfchSrLG.js} +1 -1
  66. package/dist/{reload-DCdbNLa2.js → reload-57Xc2t-6.js} +7 -1
  67. package/dist/testing.js +2 -2
  68. package/dist/{toString-BhubvA3m.js → toString-C-X8cE7K.js} +1 -1
  69. package/dist/{useBuiltinValidations-Boxrm71q.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  70. package/dist/{usePossibleValues-DXuWWBh_.js → usePossibleValues-DTVXBGRC.js} +1 -1
  71. package/package.json +4 -4
  72. package/dist/AnyOfTwinlist-Co_sJAsc.js +0 -22
  73. package/dist/CheckboxControl-C10_DX1N.js +0 -40
  74. package/dist/Checkboxes-DWOxHiUX.js +0 -103
  75. package/dist/CheckboxesControl-BMRFgmO_.js +0 -38
  76. package/dist/DateControl-DAGAM92B.js +0 -29
  77. package/dist/DateTimeControl-DJhIb_U4.js +0 -45
  78. package/dist/DateTimeFormatInput-BhLQzC-P.js +0 -373
  79. package/dist/DateTimeFormatPickerControl-V7pxRYaW.js +0 -40
  80. package/dist/DateTimeFormatPickerWithTypeControl-3fa75rGw.js +0 -76
  81. package/dist/DropdownControl-DEIA5VD4.js +0 -31
  82. package/dist/HorizontalLayout-DCfhMNq4.js +0 -25
  83. package/dist/IntegerControl-Om8J7hch.js +0 -20
  84. package/dist/IntervalControl-B7UbyyD-.js +0 -545
  85. package/dist/LoadingDropdown-CINkq_Sw.js +0 -40
  86. package/dist/ManualTwinlistControl-BLTfr2gT.js +0 -79
  87. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +0 -31
  88. package/dist/MultimodeTwinlistControl-BsFqHRFM.js +0 -459
  89. package/dist/NameFilter-d5k6rDVY.js +0 -24
  90. package/dist/NumberControl-Kc3hvVef.js +0 -20
  91. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +0 -50
  92. package/dist/OneOfDropdown-CLwVXrbC.js +0 -33
  93. package/dist/RadioControl-DpziR8nA.js +0 -24
  94. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +0 -104
  95. package/dist/SectionHeading-D7znCZXu.js +0 -19
  96. package/dist/SectionLayout-BhXDOzqB.js +0 -46
  97. package/dist/SettingsSubPanel-x9uWGoiu.js +0 -5
  98. package/dist/SettingsSubPanelLayout-BPHBM5n5.js +0 -62
  99. package/dist/SimpleButtonControl-DfCSlgZS.js +0 -61
  100. package/dist/SimpleTwinlistControl-CBalniCf.js +0 -25
  101. package/dist/SingleSelectControl-DC4w0ata.js +0 -58
  102. package/dist/SingleSelectListBoxControl-CKj-p8jZ.js +0 -232
  103. package/dist/SortListControl-BIUyPjCi.js +0 -377
  104. package/dist/StyledListItem-D-HJWfo5.js +0 -72
  105. package/dist/TextAreaControl-D28TQZEY.js +0 -108
  106. package/dist/TextControl-DUDBWcHy.js +0 -4
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js +0 -47
  108. package/dist/TimeControl-HRooO_z3.js +0 -36
  109. package/dist/TwinlistControlBase-Brfh5pqZ.js +0 -40
  110. package/dist/TwinlistLoadingInfo-C4Tta00d.js +0 -946
  111. package/dist/TypedStringFilter-CdvgPKhD.js +0 -26
  112. package/dist/ValueSwitch-W4y1YvNM.js +0 -131
  113. package/dist/ValueSwitchControl-BaXH8Cjx.js +0 -20
  114. package/dist/VerticalLayout-ChAmRKNj.js +0 -30
  115. package/dist/VerticalLayoutBase-DAk4vfH5.js +0 -20
  116. package/dist/ZonedDateTimeControl-Qb57KmMT.js +0 -69
  117. package/dist/svgWithTitle-CnTmPYAB.js +0 -18
@@ -1,373 +0,0 @@
1
- import { createElementBlock as y, openBlock as u, createElementVNode as p, defineComponent as O, computed as F, ref as f, watch as I, reactive as G, onMounted as J, nextTick as N, onUnmounted as Q, createBlock as P, unref as E, withCtx as X, createCommentVNode as C, createVNode as k, normalizeStyle as U, Fragment as Y, renderList as ee, normalizeClass as V, toDisplayString as B, mergeModels as te, useModel as oe, withDirectives as le, vModelText as ae } from "vue";
2
- import { o as se } from "./index-CpKfM262.js";
3
- import { u as ne, a as ie, o as re, s as de, f as ce } from "./floating-ui.vue-CDo9Kas1.js";
4
- import { u as me, F as ue } from "./useDropdownNavigation-BfCXUheD.js";
5
- import { L as pe } from "./svgWithTitle-CnTmPYAB.js";
6
- import { V as $ } from "./ValueSwitch-W4y1YvNM.js";
7
- import { _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
8
- const ve = {
9
- xmlns: "http://www.w3.org/2000/svg",
10
- fill: "none",
11
- "stroke-linejoin": "round",
12
- viewBox: "0 0 32 32"
13
- };
14
- function fe(x, g) {
15
- return u(), y("svg", ve, g[0] || (g[0] = [
16
- p("path", {
17
- fill: "#000",
18
- 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"
19
- }, null, -1)
20
- ]));
21
- }
22
- const ye = { render: fe }, he = { class: "popover" }, Te = { class: "formats-container-border-host" }, ge = {
23
- key: 0,
24
- class: "no-formats-available"
25
- }, we = {
26
- key: 1,
27
- class: "no-formats-available"
28
- }, Ee = ["onClick"], xe = { class: "format-pattern" }, Fe = { class: "format-preview" }, H = 1, _e = /* @__PURE__ */ O({
29
- __name: "DateTimeFormatPickerPopover",
30
- props: {
31
- allFormats: {},
32
- selectedType: {},
33
- initialSelectedPattern: {},
34
- showTypeSwitch: { type: Boolean }
35
- },
36
- emits: ["commit", "cancel"],
37
- setup(x, { emit: g }) {
38
- const n = g, d = x, M = F(() => [
39
- {
40
- id: "RECENT",
41
- text: "Recent"
42
- },
43
- {
44
- id: "STANDARD",
45
- text: "ISO"
46
- },
47
- {
48
- id: "EUROPEAN",
49
- text: "European"
50
- },
51
- {
52
- id: "AMERICAN",
53
- text: "United States"
54
- }
55
- ]), D = F(() => [
56
- {
57
- id: "DATE",
58
- text: "Date"
59
- },
60
- {
61
- id: "DATE_TIME",
62
- text: "Date & time"
63
- },
64
- {
65
- id: "TIME",
66
- text: "Time"
67
- },
68
- {
69
- id: "ZONED_DATE_TIME",
70
- text: "Zoned date & time"
71
- }
72
- ]), i = f(null), h = f(null), a = f("RECENT"), m = f(d.selectedType);
73
- I(
74
- () => d.selectedType,
75
- (e) => {
76
- h.value = e;
77
- }
78
- );
79
- const s = F(
80
- () => d.allFormats?.filter(
81
- (e) => e.category === a.value && e.temporalType === m.value
82
- ) ?? null
83
- ), r = f(null), c = G({}), T = (e) => `${e.format}-${e.category}-${e.temporalType}`, K = (e) => (t) => {
84
- c[T(e)] = t;
85
- }, w = (e) => ({
86
- format: e.format,
87
- temporalType: e.temporalType
88
- }), {
89
- currentIndex: b,
90
- onKeydown: S,
91
- resetNavigation: Z,
92
- setElement: W
93
- } = me({
94
- keepOpenedOnTab: !0,
95
- getFirstElement: () => ({
96
- index: 0,
97
- onClick: () => n(
98
- "commit",
99
- w(s.value[0])
100
- )
101
- }),
102
- getLastElement: () => {
103
- const e = s.value.length - 1;
104
- return {
105
- index: e,
106
- onClick: () => n(
107
- "commit",
108
- w(s.value[e])
109
- )
110
- };
111
- },
112
- getNextElement: (e, t) => {
113
- if (e = e === null || e === -1 ? null : e, t === 1) {
114
- const l = ((e ?? -1) + 1) % s.value.length;
115
- return {
116
- index: l,
117
- onClick: () => n(
118
- "commit",
119
- w(s.value[l])
120
- )
121
- };
122
- } else {
123
- const l = ((e ?? 0) - 1 + s.value.length) % s.value.length;
124
- return {
125
- index: l,
126
- onClick: () => n(
127
- "commit",
128
- w(s.value[l])
129
- )
130
- };
131
- }
132
- },
133
- close: () => {
134
- n("cancel");
135
- }
136
- }), j = (e) => {
137
- const t = e.parentElement;
138
- if (t && t.scrollHeight > t.clientHeight) {
139
- const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - o;
140
- v > l ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
141
- }
142
- }, A = (e) => {
143
- const t = c[`${e}-${a.value}-${m.value}`];
144
- t && j(t);
145
- }, R = async (e, t, o) => {
146
- m.value = t ?? m.value, a.value = o ?? a.value, await N(), h.value = e, A(e);
147
- const l = s.value.findIndex(
148
- (v) => v.format === e
149
- );
150
- W({
151
- index: l,
152
- onClick: () => n(
153
- "commit",
154
- w(s.value[l])
155
- )
156
- });
157
- };
158
- I(b, (e) => {
159
- if (e === null)
160
- return;
161
- const t = s.value?.[e]?.format;
162
- t && A(t);
163
- }), I([m, a], () => {
164
- m.value === i.value?.temporalType && a.value === i.value?.category ? R(
165
- i.value.format,
166
- i.value.temporalType,
167
- i.value.category
168
- ) : (h.value = null, Z());
169
- });
170
- const _ = f(!1);
171
- return J(async () => {
172
- if (!d.allFormats)
173
- return;
174
- const e = [
175
- "RECENT",
176
- "STANDARD",
177
- "EUROPEAN",
178
- "AMERICAN"
179
- ], t = d.allFormats.filter((o) => d.initialSelectedPattern === o.format).filter(
180
- (o) => (
181
- // if the type switch is hidden, filter to only formats with the same type
182
- d.selectedType === o.temporalType || d.showTypeSwitch
183
- )
184
- ).sort((o, l) => {
185
- const v = e.indexOf(o.category), z = e.indexOf(l.category);
186
- return v - z;
187
- });
188
- if (t.length > 0) {
189
- const o = t[0].format, l = t[0].temporalType, v = t[0].category;
190
- await R(o, l, v);
191
- const z = s.value.findIndex(
192
- (q) => q.format === o
193
- );
194
- i.value = {
195
- format: o,
196
- index: z,
197
- category: v,
198
- temporalType: l
199
- };
200
- }
201
- N(() => _.value = !0);
202
- }), Q(() => _.value = !1), (e, t) => (u(), P(E(ue), {
203
- active: _.value,
204
- "onUpdate:active": t[3] || (t[3] = (o) => _.value = o),
205
- "initial-focus": () => r.value ?? !1
206
- }, {
207
- default: X(() => [
208
- p("div", he, [
209
- e.showTypeSwitch ? (u(), P($, {
210
- key: 0,
211
- id: "selectedFormatType",
212
- ref: "typeSwitchRef",
213
- modelValue: m.value,
214
- "onUpdate:modelValue": t[0] || (t[0] = (o) => m.value = o),
215
- compact: "",
216
- "possible-values": D.value,
217
- class: "filter-switch"
218
- }, null, 8, ["modelValue", "possible-values"])) : C("", !0),
219
- k($, {
220
- id: "selectedFormatStandard",
221
- ref: "standardSwitchRef",
222
- modelValue: a.value,
223
- "onUpdate:modelValue": t[1] || (t[1] = (o) => a.value = o),
224
- compact: "",
225
- "possible-values": M.value,
226
- class: "filter-switch"
227
- }, null, 8, ["modelValue", "possible-values"]),
228
- p("div", Te, [
229
- p("div", {
230
- id: "dateFormats",
231
- ref_key: "formatContainerRef",
232
- ref: r,
233
- class: "formats-container",
234
- style: U({ "--formats-container-border-width": H + "px" }),
235
- tabindex: "0",
236
- role: "menu",
237
- onKeydown: t[2] || (t[2] = //@ts-ignore
238
- (...o) => E(S) && E(S)(...o))
239
- }, [
240
- s.value === null ? (u(), y("div", ge, [
241
- k(pe, { class: "loading-spinner" })
242
- ])) : s.value.length === 0 ? (u(), y("div", we, " No formats available ")) : (u(!0), y(Y, { key: 2 }, ee(s.value, (o, l) => (u(), y("div", {
243
- key: T(o),
244
- ref_for: !0,
245
- ref: K(o),
246
- class: V([{
247
- highlighted: l === E(b),
248
- applied: l === i.value?.index && o.category === i.value.category && o.temporalType === i.value.temporalType
249
- }, "single-format"]),
250
- role: "menuitem",
251
- onClick: () => n("commit", w(o))
252
- }, [
253
- p("span", xe, B(o.format), 1),
254
- p("span", Fe, B(o.example), 1)
255
- ], 10, Ee))), 128))
256
- ], 36)
257
- ])
258
- ])
259
- ]),
260
- _: 1
261
- }, 8, ["active", "initial-focus"]));
262
- }
263
- }), ke = /* @__PURE__ */ L(_e, [["__scopeId", "data-v-5d20d963"]]), Me = { class: "input-fields" }, De = ["disabled"], ze = {
264
- key: 0,
265
- class: "invalid-marker"
266
- }, Ie = ["disabled"], Ce = {}, Ve = /* @__PURE__ */ O({
267
- ...Ce,
268
- __name: "DateTimeFormatInput",
269
- props: /* @__PURE__ */ te({
270
- disabled: { type: Boolean, default: !1 },
271
- compact: { type: Boolean, default: !1 },
272
- isValid: { type: Boolean, default: !0 },
273
- allDefaultFormats: {},
274
- allowedTypes: { default: () => [
275
- "DATE",
276
- "TIME",
277
- "DATE_TIME",
278
- "ZONED_DATE_TIME"
279
- ] },
280
- showTypeSwitchInPopover: { type: Boolean, default: !0 }
281
- }, {
282
- modelValue: {
283
- default: {
284
- format: "yyyy-MM-dd",
285
- temporalType: "DATE"
286
- }
287
- },
288
- modelModifiers: {}
289
- }),
290
- emits: ["update:modelValue"],
291
- setup(x) {
292
- const g = x, n = oe(x, "modelValue"), d = F({
293
- get: () => n.value.format,
294
- set: (r) => {
295
- n.value = {
296
- ...n.value,
297
- format: r
298
- };
299
- }
300
- }), M = "Format like 'yyyy-MM-dd'", D = F(() => g.isValid), i = f(null), h = f(null), a = f(!1), m = (r) => {
301
- n.value = r, a.value = !1;
302
- };
303
- se(h, () => a.value = !1, {
304
- ignore: [i]
305
- });
306
- const { floatingStyles: s } = ne(
307
- i,
308
- h,
309
- {
310
- middleware: [
311
- re({
312
- mainAxis: 2,
313
- crossAxis: 0
314
- }),
315
- de(),
316
- ce({
317
- mainAxis: !0,
318
- crossAxis: !1
319
- })
320
- ],
321
- placement: "top-end",
322
- whileElementsMounted: ie
323
- }
324
- );
325
- return (r, c) => (u(), y("div", null, [
326
- p("div", {
327
- class: V(["wrapper", { disabled: r.disabled, compact: r.compact }])
328
- }, [
329
- p("span", Me, [
330
- le(p("input", {
331
- "onUpdate:modelValue": c[0] || (c[0] = (T) => d.value = T),
332
- type: "text",
333
- disabled: r.disabled,
334
- placeholder: M,
335
- spellcheck: "false",
336
- onFocus: c[1] || (c[1] = (T) => a.value = !1)
337
- }, null, 40, De), [
338
- [ae, d.value]
339
- ]),
340
- D.value ? C("", !0) : (u(), y("span", ze)),
341
- p("button", {
342
- ref_key: "togglePopoverButtonRef",
343
- ref: i,
344
- class: V(["trigger-popover-button", { active: a.value }]),
345
- disabled: r.disabled,
346
- onClick: c[2] || (c[2] = (T) => a.value = !a.value)
347
- }, [
348
- k(E(ye))
349
- ], 10, Ie)
350
- ])
351
- ], 2),
352
- a.value ? (u(), y("div", {
353
- key: 0,
354
- ref_key: "floatingPopoverRef",
355
- ref: h,
356
- class: "popover",
357
- style: U(E(s))
358
- }, [
359
- k(ke, {
360
- "all-formats": r.allDefaultFormats,
361
- "initial-selected-pattern": n.value.format,
362
- "selected-type": n.value.temporalType,
363
- "show-type-switch": r.showTypeSwitchInPopover,
364
- onCommit: m,
365
- onCancel: c[3] || (c[3] = (T) => a.value = !1)
366
- }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
367
- ], 4)) : C("", !0)
368
- ]));
369
- }
370
- }), $e = /* @__PURE__ */ L(Ve, [["__scopeId", "data-v-a18d67d3"]]);
371
- export {
372
- $e as D
373
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as p, computed as o, createBlock as c, openBlock as f, unref as r } from "vue";
2
- import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
- import { D as v } from "./DateTimeFormatInput-BhLQzC-P.js";
4
- const b = /* @__PURE__ */ p({
5
- __name: "DateTimeFormatPickerControl",
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(s) {
16
- const a = s, t = o(
17
- () => a.control.uischema
18
- ), d = o(() => t.value.options), m = o(() => d.value?.allowedFormats), i = F(t, "dateTimeFormats"), l = o({
19
- get: () => ({
20
- format: a.control.data,
21
- temporalType: "DATE"
22
- }),
23
- set: (e) => a.changeValue(e.format)
24
- });
25
- return (e, n) => (f(), c(r(v), {
26
- id: e.labelForId,
27
- modelValue: l.value,
28
- "onUpdate:modelValue": n[0] || (n[0] = (u) => l.value = u),
29
- compact: "",
30
- disabled: e.disabled,
31
- "show-type-switch-in-popover": !0,
32
- "allowed-formats": m.value,
33
- "all-default-formats": r(i),
34
- "is-valid": !0
35
- }, null, 8, ["id", "modelValue", "disabled", "allowed-formats", "all-default-formats"]));
36
- }
37
- });
38
- export {
39
- b as default
40
- };
@@ -1,76 +0,0 @@
1
- import { defineComponent as v, computed as t, createElementBlock as T, openBlock as V, createVNode as r, unref as d } from "vue";
2
- import { u as F, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
- import { V as h } from "./ValueSwitch-W4y1YvNM.js";
4
- import { D as y } from "./DateTimeFormatInput-BhLQzC-P.js";
5
- const D = ["id"], _ = /* @__PURE__ */ v({
6
- __name: "DateTimeFormatPickerWithTypeControl",
7
- props: {
8
- control: {},
9
- handleChange: { type: Function },
10
- changeValue: { type: Function },
11
- disabled: { type: Boolean },
12
- isValid: { type: Boolean },
13
- onRegisterValidation: { type: Function },
14
- labelForId: {}
15
- },
16
- setup(m) {
17
- const l = m, i = t(
18
- () => l.control.uischema
19
- ), u = t(() => i.value.options), p = t(() => u.value?.allowedFormats), c = F(i, "dateTimeFormats"), f = [
20
- {
21
- id: "DATE",
22
- text: "Date"
23
- },
24
- {
25
- id: "DATE_TIME",
26
- text: "Date & time"
27
- },
28
- {
29
- id: "TIME",
30
- text: "Time"
31
- },
32
- {
33
- id: "ZONED_DATE_TIME",
34
- text: "Zoned date & time"
35
- }
36
- ], o = t({
37
- get: () => l.control.data,
38
- set: (e) => {
39
- l.changeValue(e);
40
- }
41
- }), n = t({
42
- get: () => o.value.temporalType,
43
- set: (e) => {
44
- o.value = {
45
- ...o.value,
46
- temporalType: e
47
- };
48
- }
49
- });
50
- return (e, a) => (V(), T("div", {
51
- id: e.labelForId,
52
- class: "control-container"
53
- }, [
54
- r(d(h), {
55
- modelValue: n.value,
56
- "onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
57
- compact: "",
58
- "possible-values": f,
59
- disabled: e.disabled
60
- }, null, 8, ["modelValue", "disabled"]),
61
- r(d(y), {
62
- modelValue: o.value,
63
- "onUpdate:modelValue": a[1] || (a[1] = (s) => o.value = s),
64
- compact: "",
65
- disabled: e.disabled,
66
- "show-type-switch-in-popover": !1,
67
- "allowed-formats": p.value,
68
- "all-default-formats": d(c),
69
- "is-valid": !0
70
- }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
71
- ], 8, D));
72
- }
73
- }), B = /* @__PURE__ */ b(_, [["__scopeId", "data-v-8517cafd"]]);
74
- export {
75
- B as default
76
- };
@@ -1,31 +0,0 @@
1
- import { defineComponent as n, toRef as i, createBlock as s, openBlock as d, unref as t } from "vue";
2
- import { u as r } from "./usePossibleValues-DXuWWBh_.js";
3
- import { L as p } from "./LoadingDropdown-CINkq_Sw.js";
4
- const V = /* @__PURE__ */ n({
5
- __name: "DropdownControl",
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(o) {
16
- const a = o, { possibleValues: l } = r(i(a, "control"));
17
- return (e, u) => (d(), s(p, {
18
- id: e.labelForId ?? "",
19
- ariaLabel: e.control.label,
20
- disabled: e.disabled,
21
- "model-value": e.control.data ?? "",
22
- "possible-values": t(l),
23
- "is-valid": e.isValid,
24
- compact: "",
25
- "onUpdate:modelValue": e.changeValue
26
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "is-valid", "onUpdate:modelValue"]));
27
- }
28
- });
29
- export {
30
- V as default
31
- };
@@ -1,25 +0,0 @@
1
- import { defineComponent as l, createElementBlock as o, openBlock as a, Fragment as s, renderList as n, createBlock as u, unref as c } from "vue";
2
- import { x as m, _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
3
- const i = { class: "horizontal" }, d = /* @__PURE__ */ l({
4
- __name: "HorizontalLayout",
5
- props: {
6
- layout: {}
7
- },
8
- setup(h) {
9
- return (e, y) => (a(), o("div", i, [
10
- (a(!0), o(s, null, n(e.layout.uischema.elements, (r, t) => (a(), u(c(m), {
11
- key: t,
12
- class: "horizontal-element",
13
- schema: e.layout.schema,
14
- uischema: r,
15
- path: e.layout.path,
16
- enabled: e.layout.enabled,
17
- renderers: e.layout.renderers,
18
- cells: e.layout.cells
19
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))), 128))
20
- ]));
21
- }
22
- }), k = /* @__PURE__ */ p(d, [["__scopeId", "data-v-451dfa05"]]);
23
- export {
24
- k as default
25
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as o, createBlock as n, openBlock as t, mergeProps as r } from "vue";
2
- import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js";
3
- const s = /* @__PURE__ */ o({
4
- __name: "IntegerControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- isValid: { type: Boolean },
11
- onRegisterValidation: { type: Function },
12
- labelForId: {}
13
- },
14
- setup(p) {
15
- return (e, l) => (t(), n(a, r(e.$props, { type: "integer" }), null, 16));
16
- }
17
- });
18
- export {
19
- s as default
20
- };