@knime/jsonforms 1.19.3 → 1.19.4

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 (85) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AnyOfTwinlist-Dp4tys3q.js → AnyOfTwinlist-gIm_R7yi.js} +1 -1
  3. package/dist/{Checkbox-DQGgsPMe.js → Checkbox-D1QZ8D8U.js} +1 -1
  4. package/dist/{CheckboxControl-Co-u8zIT.js → CheckboxControl-DitntAd8.js} +1 -1
  5. package/dist/{CheckboxesControl-Bgd9iMx4.js → CheckboxesControl-C_Wwb06j.js} +2 -2
  6. package/dist/{ColorControl-DSIJEQa6.js → ColorControl-86_aeUMf.js} +1 -1
  7. package/dist/{ColorPreviewControl-M74CZDtV.js → ColorPreviewControl-HgbFwMCE.js} +1 -1
  8. package/dist/{ComboBoxControl-DlDwfBJ6.js → ComboBoxControl-CGwWGyDl.js} +3 -3
  9. package/dist/{DateControl-DXGRsPNb.js → DateControl-BofbO5lM.js} +1 -1
  10. package/dist/{DateTimeControl-DZu7GdGd.js → DateTimeControl-BzWk51J8.js} +1 -1
  11. package/dist/DateTimeFormatPickerControl-7KTdYrMN.js +31 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DmevlqK8.js +442 -0
  13. package/dist/{DropdownControl-B5t3ci7I.js → DropdownControl-XAeknlV2.js} +3 -3
  14. package/dist/{HorizontalLayout-Ch3hLrIN.js → HorizontalLayout-BQFvLK2X.js} +1 -1
  15. package/dist/{IntegerControl-BtDffvT2.js → IntegerControl-XNoJU3s2.js} +1 -1
  16. package/dist/{IntervalControl-4KXdyBow.js → IntervalControl-DaQTfsx8.js} +2 -2
  17. package/dist/{Label-DIL1h9Qs.js → Label-BckcZVsr.js} +1 -1
  18. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-Dvc5j9LS.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-M581gyEa.js} +1 -1
  19. package/dist/LoadingIcon-D3kls_iA.js +29 -0
  20. package/dist/{ManualTwinlistControl-DbAQmyh-.js → ManualTwinlistControl-BCgJbfp5.js} +4 -4
  21. package/dist/{MultiSelectListBoxControl-CJq8YRIf.js → MultiSelectListBoxControl-B6tvY3Al.js} +2 -2
  22. package/dist/{MultimodeTwinlistControl-BnZKShf0.js → MultimodeTwinlistControl-CUWzYCUm.js} +7 -7
  23. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-CyQTPMyR.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C8itN9TE.js} +2 -2
  24. package/dist/{MultiselectListBox-DoaiyXCr.js → MultiselectListBox-C1rI0rOG.js} +4 -4
  25. package/dist/{NameFilter-BOOz855n.js → NameFilter-CaPBJKzh.js} +1 -1
  26. package/dist/{NumberControl-BGfezDbH.js → NumberControl-DOnwoK8Z.js} +1 -1
  27. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DEUdBs67.js → NumberControlBase.vue_vue_type_script_setup_true_lang-IP3X2jko.js} +4 -4
  28. package/dist/{OneOfDropdown-CUjqXf2d.js → OneOfDropdown-CHt7_dgU.js} +9 -9
  29. package/dist/{RadioControl-CflL2uzB.js → RadioControl-CP7QiYX1.js} +2 -2
  30. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DeJwqPMr.js → RadioControlBase.vue_vue_type_script_setup_true_lang-qv1xOkqz.js} +2 -2
  31. package/dist/{RichTextControl-DgGRklWy.js → RichTextControl-DKlFtbdd.js} +1535 -1461
  32. package/dist/{SectionHeading-DCJFQT3o.js → SectionHeading-DbcAkyOk.js} +1 -1
  33. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js +25430 -0
  34. package/dist/{SectionLayout-G8HpKi28.js → SectionLayout-BRfbEX0H.js} +3 -3
  35. package/dist/SettingsSubPanel-Bw-wC4JV.js +5 -0
  36. package/dist/{SettingsSubPanelLayout-SJU7BOgG.js → SettingsSubPanelLayout-nMEM9Js5.js} +4 -4
  37. package/dist/SimpleButtonControl-Cs9fDA9V.js +49 -0
  38. package/dist/{SimpleTwinlistControl-DcuGc5tg.js → SimpleTwinlistControl-CMJCJOPx.js} +2 -2
  39. package/dist/{SingleSelectControl-BUjRwdMJ.js → SingleSelectControl-DrqxOX0c.js} +2 -2
  40. package/dist/{SingleSelectListBoxControl-ChoNB2eF.js → SingleSelectListBoxControl-2ORQoAtg.js} +5 -5
  41. package/dist/{SortListControl-BerbmMJZ.js → SortListControl-BLWFLyUn.js} +21 -22
  42. package/dist/{StyledListItem-DGnmnBfT.js → StyledListItem-DhsQSwUn.js} +1 -1
  43. package/dist/{TextAreaControl-BTy9I4No.js → TextAreaControl-v3fhzCGm.js} +1 -1
  44. package/dist/{TextControl-jApAdwbS.js → TextControl-CNlNwI8q.js} +1 -1
  45. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BhRDHrnP.js → TextControl.vue_vue_type_script_setup_true_lang-BQReBqLi.js} +5 -5
  46. package/dist/{TimeControl-CyzaSlu_.js → TimeControl-uBNUovJi.js} +1 -1
  47. package/dist/{TwinlistControlBase-Cr_kQ7QL.js → TwinlistControlBase-BfsU0lp4.js} +3 -3
  48. package/dist/{TwinlistLoadingInfo-DDnRGx8d.js → TwinlistLoadingInfo-CZpH6CqT.js} +4 -4
  49. package/dist/{TypedStringFilter-44sDrVc2.js → TypedStringFilter-ElEPYctF.js} +1 -1
  50. package/dist/{ValueSwitch-DDh7pJlr.js → ValueSwitch-BfYlPI2B.js} +4 -4
  51. package/dist/{ValueSwitchControl-D2mlCmJc.js → ValueSwitchControl-DyV85jLv.js} +1 -1
  52. package/dist/{VerticalLayout-DUWN2tE_.js → VerticalLayout-CFGNNSaB.js} +2 -2
  53. package/dist/{VerticalLayoutBase-BXquSYig.js → VerticalLayoutBase-CCtK1J1U.js} +1 -1
  54. package/dist/{ZonedDateTimeControl-BqzNkyVT.js → ZonedDateTimeControl-BtPeUK4M.js} +17 -19
  55. package/dist/{_baseEach-CZzKf7-y.js → _baseEach-DR1qyPMo.js} +7 -8
  56. package/dist/_baseIteratee-DrBvc1GG.js +640 -0
  57. package/dist/knime-jsonforms.css +1 -1
  58. package/dist/knime-jsonforms.js +7 -7
  59. package/dist/{localTimeUtils-mOEGN5Ue.js → localTimeUtils-C1z-tWPY.js} +3934 -3328
  60. package/dist/{popper-LGjf7Wza.js → popper-D54JdmBM.js} +212 -208
  61. package/dist/src/renderers/defaultRenderers.d.ts +81 -22
  62. package/dist/src/renderers/simpleButtonRenderer.d.ts +81 -22
  63. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
  64. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +14 -11
  65. package/dist/testing.js +2 -2
  66. package/dist/toString-lufkO4XX.js +25 -0
  67. package/dist/{useBuiltinValidations-BYH5TtV3.js → useBuiltinValidations-CXYzLTj1.js} +1 -1
  68. package/dist/{usePossibleValues-Bl8VFSuX.js → usePossibleValues-BGGWIVzM.js} +1 -1
  69. package/package.json +2 -2
  70. package/dist/Button-CFECKZ55.js +0 -82
  71. package/dist/DateTimeFormatInput-DQWXEBN9.js +0 -374
  72. package/dist/DateTimeFormatPickerControl-DV1iDDsX.js +0 -40
  73. package/dist/DateTimeFormatPickerWithTypeControl-Bo1QbIo_.js +0 -76
  74. package/dist/Dropdown-Cd-G9xTT.js +0 -620
  75. package/dist/LoadingIcon-CahQdReW.js +0 -18
  76. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js +0 -18551
  77. package/dist/SettingsSubPanel-BjcrxG_D.js +0 -5
  78. package/dist/SimpleButtonControl-B0z0KSAs.js +0 -68
  79. package/dist/_baseIteratee-B35Fekqn.js +0 -516
  80. package/dist/_getTag-BdqcT5ks.js +0 -131
  81. package/dist/hotkeys-rxnt4egK.js +0 -6
  82. package/dist/isArray-WzO_os3q.js +0 -4
  83. package/dist/reload-DjY4GPvr.js +0 -17
  84. package/dist/src/uiComponents/DynamicIcon.vue.d.ts +0 -7
  85. package/dist/toString-D3sgaaZu.js +0 -25
@@ -1,374 +0,0 @@
1
- import { openBlock as m, createElementBlock as y, createElementVNode as p, defineComponent as O, useCssVars as q, computed as F, ref as f, watch as z, 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, Fragment as Y, renderList as ee, normalizeClass as I, toDisplayString as B, useModel as te, withDirectives as oe, vModelText as le, normalizeStyle as ae, mergeModels as se } from "vue";
2
- import { _ as U, M as ne } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
3
- import { u as ie, a as re, o as ce, s as de, f as ue } from "./floating-ui.vue-Fx4CxKut.js";
4
- import { u as me, F as pe } from "./useDropdownNavigation-2Yhk7zes.js";
5
- import { L as ve } from "./LoadingIcon-CahQdReW.js";
6
- import { V as $ } from "./ValueSwitch-DDh7pJlr.js";
7
- const fe = {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- fill: "none",
10
- "stroke-linejoin": "round",
11
- viewBox: "0 0 32 32"
12
- };
13
- function ye(r, x) {
14
- return m(), y("svg", fe, [...x[0] || (x[0] = [
15
- p("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 he = { render: ye }, Te = { class: "popover" }, ge = { class: "formats-container-border-host" }, xe = {
22
- key: 0,
23
- class: "no-formats-available"
24
- }, we = {
25
- key: 1,
26
- class: "no-formats-available"
27
- }, Ee = ["onClick"], Fe = { class: "format-pattern" }, Me = { class: "format-preview" }, H = 1, ke = /* @__PURE__ */ O({
28
- __name: "DateTimeFormatPickerPopover",
29
- props: {
30
- allFormats: {},
31
- selectedType: {},
32
- initialSelectedPattern: {},
33
- showTypeSwitch: { type: Boolean }
34
- },
35
- emits: ["commit", "cancel"],
36
- setup(r, { emit: x }) {
37
- q((e) => ({
38
- v3b9e5e3a: H
39
- }));
40
- const n = x, c = r, D = F(() => [
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
- ]), b = F(() => [
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
- ]), i = f(null), h = f(null), a = f("RECENT"), u = f(c.selectedType);
75
- z(
76
- () => c.selectedType,
77
- (e) => {
78
- h.value = e;
79
- }
80
- );
81
- const s = F(
82
- () => c.allFormats?.filter(
83
- (e) => e.category === a.value && e.temporalType === u.value
84
- ) ?? null
85
- ), T = f(null), d = G({}), g = (e) => `${e.format}-${e.category}-${e.temporalType}`, L = (e) => (t) => {
86
- d[g(e)] = t;
87
- }, w = (e) => ({
88
- format: e.format,
89
- temporalType: e.temporalType
90
- }), {
91
- currentIndex: V,
92
- onKeydown: S,
93
- resetNavigation: K,
94
- setElement: Z
95
- } = me({
96
- keepOpenedOnTab: !0,
97
- getFirstElement: () => ({
98
- index: 0,
99
- onClick: () => n(
100
- "commit",
101
- w(s.value[0])
102
- )
103
- }),
104
- getLastElement: () => {
105
- const e = s.value.length - 1;
106
- return {
107
- index: e,
108
- onClick: () => n(
109
- "commit",
110
- w(s.value[e])
111
- )
112
- };
113
- },
114
- getNextElement: (e, t) => {
115
- if (e = e === null || e === -1 ? null : e, t === 1) {
116
- const l = ((e ?? -1) + 1) % s.value.length;
117
- return {
118
- index: l,
119
- onClick: () => n(
120
- "commit",
121
- w(s.value[l])
122
- )
123
- };
124
- } else {
125
- const l = ((e ?? 0) - 1 + s.value.length) % s.value.length;
126
- return {
127
- index: l,
128
- onClick: () => n(
129
- "commit",
130
- w(s.value[l])
131
- )
132
- };
133
- }
134
- },
135
- close: () => {
136
- n("cancel");
137
- }
138
- }), W = (e) => {
139
- const t = e.parentElement;
140
- if (t && t.scrollHeight > t.clientHeight) {
141
- const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - o;
142
- v > l ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
143
- }
144
- }, A = (e) => {
145
- const t = d[`${e}-${a.value}-${u.value}`];
146
- t && W(t);
147
- }, R = async (e, t, o) => {
148
- u.value = t ?? u.value, a.value = o ?? a.value, await N(), h.value = e, A(e);
149
- const l = s.value.findIndex(
150
- (v) => v.format === e
151
- );
152
- Z({
153
- index: l,
154
- onClick: () => n(
155
- "commit",
156
- w(s.value[l])
157
- )
158
- });
159
- };
160
- z(V, (e) => {
161
- if (e === null)
162
- return;
163
- const t = s.value?.[e]?.format;
164
- t && A(t);
165
- }), z([u, a], () => {
166
- u.value === i.value?.temporalType && a.value === i.value?.category ? R(
167
- i.value.format,
168
- i.value.temporalType,
169
- i.value.category
170
- ) : (h.value = null, K());
171
- });
172
- const M = f(!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, l) => {
187
- const v = e.indexOf(o.category), _ = e.indexOf(l.category);
188
- return v - _;
189
- });
190
- if (t.length > 0) {
191
- const o = t[0].format, l = t[0].temporalType, v = t[0].category;
192
- await R(o, l, v);
193
- const _ = s.value.findIndex(
194
- (j) => j.format === o
195
- );
196
- i.value = {
197
- format: o,
198
- index: _,
199
- category: v,
200
- temporalType: l
201
- };
202
- }
203
- N(() => M.value = !0);
204
- }), Q(() => M.value = !1), (e, t) => (m(), P(E(pe), {
205
- active: M.value,
206
- "onUpdate:active": t[3] || (t[3] = (o) => M.value = o),
207
- "initial-focus": () => T.value ?? !1
208
- }, {
209
- default: X(() => [
210
- p("div", Te, [
211
- r.showTypeSwitch ? (m(), P($, {
212
- key: 0,
213
- id: "selectedFormatType",
214
- ref: "typeSwitchRef",
215
- modelValue: u.value,
216
- "onUpdate:modelValue": t[0] || (t[0] = (o) => u.value = o),
217
- compact: "",
218
- "possible-values": b.value,
219
- class: "filter-switch"
220
- }, null, 8, ["modelValue", "possible-values"])) : C("", !0),
221
- k($, {
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": D.value,
228
- class: "filter-switch"
229
- }, null, 8, ["modelValue", "possible-values"]),
230
- p("div", ge, [
231
- p("div", {
232
- id: "dateFormats",
233
- ref_key: "formatContainerRef",
234
- ref: T,
235
- class: "formats-container",
236
- tabindex: "0",
237
- role: "menu",
238
- onKeydown: t[2] || (t[2] = //@ts-ignore
239
- (...o) => E(S) && E(S)(...o))
240
- }, [
241
- s.value === null ? (m(), y("div", xe, [
242
- k(ve, { class: "loading-spinner" })
243
- ])) : s.value.length === 0 ? (m(), y("div", we, " No formats available ")) : (m(!0), y(Y, { key: 2 }, ee(s.value, (o, l) => (m(), y("div", {
244
- key: g(o),
245
- ref_for: !0,
246
- ref: L(o),
247
- class: I([{
248
- highlighted: l === E(V),
249
- applied: l === i.value?.index && o.category === i.value.category && o.temporalType === i.value.temporalType
250
- }, "single-format"]),
251
- role: "menuitem",
252
- onClick: () => n("commit", w(o))
253
- }, [
254
- p("span", Fe, B(o.format), 1),
255
- p("span", Me, B(o.example), 1)
256
- ], 10, Ee))), 128))
257
- ], 544)
258
- ])
259
- ])
260
- ]),
261
- _: 1
262
- }, 8, ["active", "initial-focus"]));
263
- }
264
- }), De = /* @__PURE__ */ U(ke, [["__scopeId", "data-v-8bb40d8b"]]), be = { class: "input-fields" }, _e = ["disabled"], ze = {
265
- key: 0,
266
- class: "invalid-marker"
267
- }, Ce = ["disabled"], Ie = {}, Ve = /* @__PURE__ */ O({
268
- ...Ie,
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(r) {
293
- const x = r, n = te(r, "modelValue"), c = F({
294
- get: () => n.value.format,
295
- set: (T) => {
296
- n.value = {
297
- ...n.value,
298
- format: T
299
- };
300
- }
301
- }), D = "Format like 'yyyy-MM-dd'", b = F(() => x.isValid), i = f(null), h = f(null), a = f(!1), u = (T) => {
302
- n.value = T, a.value = !1;
303
- };
304
- ne(h, () => a.value = !1, {
305
- ignore: [i]
306
- });
307
- const { floatingStyles: s } = ie(
308
- i,
309
- h,
310
- {
311
- middleware: [
312
- ce({
313
- mainAxis: 2,
314
- crossAxis: 0
315
- }),
316
- de(),
317
- ue({
318
- mainAxis: !0,
319
- crossAxis: !1
320
- })
321
- ],
322
- placement: "top-end",
323
- whileElementsMounted: re
324
- }
325
- );
326
- return (T, d) => (m(), y("div", null, [
327
- p("div", {
328
- class: I(["wrapper", { disabled: r.disabled, compact: r.compact }])
329
- }, [
330
- p("span", be, [
331
- oe(p("input", {
332
- "onUpdate:modelValue": d[0] || (d[0] = (g) => c.value = g),
333
- type: "text",
334
- disabled: r.disabled,
335
- placeholder: D,
336
- spellcheck: "false",
337
- onFocus: d[1] || (d[1] = (g) => a.value = !1)
338
- }, null, 40, _e), [
339
- [le, c.value]
340
- ]),
341
- b.value ? C("", !0) : (m(), y("span", ze)),
342
- p("button", {
343
- ref_key: "togglePopoverButtonRef",
344
- ref: i,
345
- class: I(["trigger-popover-button", { active: a.value }]),
346
- disabled: r.disabled,
347
- onClick: d[2] || (d[2] = (g) => a.value = !a.value)
348
- }, [
349
- k(E(he))
350
- ], 10, Ce)
351
- ])
352
- ], 2),
353
- a.value ? (m(), y("div", {
354
- key: 0,
355
- ref_key: "floatingPopoverRef",
356
- ref: h,
357
- class: "popover",
358
- style: ae(E(s))
359
- }, [
360
- k(De, {
361
- "all-formats": r.allDefaultFormats,
362
- "initial-selected-pattern": n.value.format,
363
- "selected-type": n.value.temporalType,
364
- "show-type-switch": r.showTypeSwitchInPopover,
365
- onCommit: u,
366
- onCancel: d[3] || (d[3] = (g) => a.value = !1)
367
- }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
368
- ], 4)) : C("", !0)
369
- ]));
370
- }
371
- }), $e = /* @__PURE__ */ U(Ve, [["__scopeId", "data-v-1577d5ce"]]);
372
- export {
373
- $e as D
374
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as c, computed as e, openBlock as p, createBlock as f, unref as s } from "vue";
2
- import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
3
- import { D as v } from "./DateTimeFormatInput-DQWXEBN9.js";
4
- const b = /* @__PURE__ */ c({
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(o) {
16
- const a = o, t = e(
17
- () => a.control.uischema
18
- ), d = e(() => t.value.options), m = e(() => d.value?.allowedFormats), i = F(t, "dateTimeFormats"), l = e({
19
- get: () => ({
20
- format: a.control.data,
21
- temporalType: "DATE"
22
- }),
23
- set: (n) => a.changeValue(n.format)
24
- });
25
- return (n, r) => (p(), f(s(v), {
26
- id: o.labelForId,
27
- modelValue: l.value,
28
- "onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
29
- compact: "",
30
- disabled: o.disabled,
31
- "show-type-switch-in-popover": !0,
32
- "allowed-formats": m.value,
33
- "all-default-formats": s(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, openBlock as T, createElementBlock as V, createVNode as r, unref as i } from "vue";
2
- import { u as F, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-nsJBcFCj.js";
3
- import { V as h } from "./ValueSwitch-DDh7pJlr.js";
4
- import { D as y } from "./DateTimeFormatInput-DQWXEBN9.js";
5
- const D = ["id"], w = /* @__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(o) {
17
- const d = o, n = t(
18
- () => d.control.uischema
19
- ), u = t(() => n.value.options), c = t(() => u.value?.allowedFormats), p = F(n, "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
- ], e = t({
37
- get: () => d.control.data,
38
- set: (a) => {
39
- d.changeValue(a);
40
- }
41
- }), m = t({
42
- get: () => e.value.temporalType,
43
- set: (a) => {
44
- e.value = {
45
- ...e.value,
46
- temporalType: a
47
- };
48
- }
49
- });
50
- return (a, l) => (T(), V("div", {
51
- id: o.labelForId,
52
- class: "control-container"
53
- }, [
54
- r(i(h), {
55
- modelValue: m.value,
56
- "onUpdate:modelValue": l[0] || (l[0] = (s) => m.value = s),
57
- compact: "",
58
- "possible-values": f,
59
- disabled: o.disabled
60
- }, null, 8, ["modelValue", "disabled"]),
61
- r(i(y), {
62
- modelValue: e.value,
63
- "onUpdate:modelValue": l[1] || (l[1] = (s) => e.value = s),
64
- compact: "",
65
- disabled: o.disabled,
66
- "show-type-switch-in-popover": !1,
67
- "allowed-formats": c.value,
68
- "all-default-formats": i(p),
69
- "is-valid": !0
70
- }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
71
- ], 8, D));
72
- }
73
- }), _ = /* @__PURE__ */ b(w, [["__scopeId", "data-v-8517cafd"]]);
74
- export {
75
- _ as default
76
- };