@knime/jsonforms 1.5.9 → 1.5.10
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.
- package/CHANGELOG.md +9 -0
- package/dist/{AnyOfTwinlist-D_wKDkgH.js → AnyOfTwinlist-DMizLIwn.js} +1 -1
- package/dist/{BaseButton-C13_k-le.js → BaseButton-ew6uEaHi.js} +1 -1
- package/dist/{Button-D59Hu_Oe.js → Button-DI7EKUmu.js} +2 -2
- package/dist/{Checkbox-BCFe0QQA.js → Checkbox-DPq-j4rC.js} +1 -1
- package/dist/{CheckboxControl-Bxmhd07k.js → CheckboxControl-Tnv1xVel.js} +2 -2
- package/dist/{Checkboxes-Ct7xbZzA.js → Checkboxes-CtN15klz.js} +2 -2
- package/dist/{CheckboxesControl-BHmaIJxP.js → CheckboxesControl-DcVkxf7W.js} +2 -2
- package/dist/{ColumnFilter-Dm9u-ihr.js → ColumnFilter-Cw2PtnrT.js} +1 -1
- package/dist/{ColumnSelect-BhOWUmeV.js → ColumnSelect-Df-m3Md2.js} +2 -2
- package/dist/{ComboBoxControl-CiXpVeil.js → ComboBoxControl-DC3W4kPq.js} +3 -3
- package/dist/{DateControl-CZcZUyDm.js → DateControl-D70zb_g8.js} +1 -1
- package/dist/{DateTimeControl-Bhnh0Ppw.js → DateTimeControl-C-ef6bOV.js} +2 -2
- package/dist/DateTimeFormatInput-t-O7ZqrA.js +347 -0
- package/dist/DateTimeFormatPickerControl-BbOu24lA.js +47 -0
- package/dist/DateTimeFormatPickerWithTypeControl-9e1ef9Hf.js +83 -0
- package/dist/{DateTimeInput-CecGpLQL.js → DateTimeInput-C32yoECp.js} +3 -3
- package/dist/{Dropdown-CeUdmLWb.js → Dropdown-B6CD0Mt_.js} +2 -2
- package/dist/{DropdownControl-BbSTmj4b.js → DropdownControl-YplxM6ck.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-VEZYnhcS.js → DropdownControl.vue_vue_type_script_setup_true_lang-ByoiTkIU.js} +4 -4
- package/dist/{FunctionButton-DqrPll2b.js → FunctionButton-Cee1Q-EN.js} +2 -2
- package/dist/{HorizontalLayout-B35pXQro.js → HorizontalLayout-BtuP4oCU.js} +1 -1
- package/dist/{InputField-CfTNsOpl.js → InputField-DHXXBWSv.js} +1 -1
- package/dist/{IntegerControl-BA039DeJ.js → IntegerControl-B64xghdA.js} +1 -1
- package/dist/{IntervalControl-ZIfW0R6H.js → IntervalControl-NldC56aj.js} +4 -4
- package/dist/{MultiselectListBox-B9AMd6lu.js → MultiselectListBox-BUWB5ZWr.js} +1 -1
- package/dist/{NameFilter-DIK_hfEG.js → NameFilter-BQhzv9F3.js} +1 -1
- package/dist/{NumberControl-B3cmM4q8.js → NumberControl-EVY_3Hwl.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DnbBgqMT.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CA0OxGuU.js} +2 -2
- package/dist/{NumberInput-CyLbNMgq.js → NumberInput-CI1ee8it.js} +1 -1
- package/dist/{OneOfDropdown-CYjXvc-8.js → OneOfDropdown-BPZeE-Bn.js} +1 -1
- package/dist/{RadioControl-kq8I7uUs.js → RadioControl-DbX_Wfuv.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Db3c7o8X.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BJdqHTLu.js} +2 -2
- package/dist/{RichTextControl-3izRkdn7.js → RichTextControl-Dl4V0nno.js} +5 -5
- package/dist/{SectionLayout-DPgbDaqO.js → SectionLayout-CF6zovCM.js} +2 -2
- package/dist/{SimpleButtonControl-CdY2dArP.js → SimpleButtonControl-BwlE_a5H.js} +2 -2
- package/dist/{SimpleTwinlistControl-BEH4bbqT.js → SimpleTwinlistControl-Cbwa6xtL.js} +2 -2
- package/dist/{SortListControl-uVMSNrRs.js → SortListControl-BzbPvx8-.js} +4 -4
- package/dist/{TextAreaControl-CItxQ3qN.js → TextAreaControl-BdTbCiQe.js} +1 -1
- package/dist/{TextControl-CinlE4yD.js → TextControl-PPpaK3OZ.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-C1sg5jOI.js → TextControl.vue_vue_type_script_setup_true_lang-DndraaDL.js} +3 -3
- package/dist/{TimeControl-_FkL2Pmp.js → TimeControl-CHQYhf6G.js} +2 -2
- package/dist/{TwinlistControl-J97lsIsJ.js → TwinlistControl-CqDn6X1h.js} +44 -44
- package/dist/{TwinlistLoadingInfo-pVyUVKlm.js → TwinlistLoadingInfo-PbU9BJjv.js} +5 -5
- package/dist/{ValueSwitch-CILN5ncB.js → ValueSwitch-CA4_rkUU.js} +1 -1
- package/dist/{ValueSwitchControl-CmNBQoMK.js → ValueSwitchControl-5uuRkxf2.js} +1 -1
- package/dist/{VerticalLayout-Ct0EbMgR.js → VerticalLayout-C4FOz-7p.js} +2 -2
- package/dist/{VerticalLayoutBase-CQKByBuX.js → VerticalLayoutBase-DQCRpzUA.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-Bke7i9o8.js} +1470 -1459
- package/dist/{ZonedDateTimeControl-Bwj70QE6.js → ZonedDateTimeControl-BcZrk010.js} +4 -4
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +5 -5
- package/dist/{localTimeUtils-CtqjaX2h.js → localTimeUtils-ClDpVqfn.js} +1 -1
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -2
- package/dist/src/renderers/defaultRenderers.d.ts +25 -24
- package/dist/src/renderers/dropdownRenderer.d.ts +12 -12
- package/dist/src/renderers/sortListRenderer.d.ts +12 -12
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +13 -0
- package/dist/{svgWithTitle-CBUO7Hcc.js → svgWithTitle-C6ghivXy.js} +1 -1
- package/dist/testing.js +1 -1
- package/package.json +3 -3
- package/dist/DateTimeFormatPickerControl-CtJk8jQF.js +0 -374
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as y, createElementVNode as m, defineComponent as I, computed as F, ref as T, reactive as G, watch as $, onMounted as J, createVNode as h, withCtx as M, withKeys as N, withModifiers as Q, normalizeStyle as L, unref as w, Fragment as X, renderList as Y, normalizeClass as z, toDisplayString as P, nextTick as S, mergeModels as B, useModel as ee, withDirectives as te, vModelText as oe, createCommentVNode as O, createBlock as le } from "vue";
|
|
2
|
-
import { n as C, _ as K, u as ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_99aa13c1_lang-B21b2oJb.js";
|
|
3
|
-
import { o as se } from "./index-CkuSIXs2.js";
|
|
4
|
-
import { u as ne, o as ie, s as re, f as de, a as ce } from "./floating-ui.vue.esm-B1dY_Hbh.js";
|
|
5
|
-
import { u as me } from "./useDropdownNavigation-D6ZenVxz.js";
|
|
6
|
-
import { L as ue } from "./svgWithTitle-CBUO7Hcc.js";
|
|
7
|
-
import { V as U } from "./ValueSwitch-CILN5ncB.js";
|
|
8
|
-
const pe = {
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
fill: "none",
|
|
11
|
-
"stroke-linejoin": "round",
|
|
12
|
-
viewBox: "0 0 32 32"
|
|
13
|
-
}, fe = /* @__PURE__ */ m("path", {
|
|
14
|
-
fill: "#000",
|
|
15
|
-
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"
|
|
16
|
-
}, null, -1), ve = [
|
|
17
|
-
fe
|
|
18
|
-
];
|
|
19
|
-
function ye(g, E) {
|
|
20
|
-
return u(), y("svg", pe, [...ve]);
|
|
21
|
-
}
|
|
22
|
-
const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with-title" }, _e = { class: "switch-with-title" }, Fe = { class: "date-format-input" }, we = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "no-formats-available"
|
|
25
|
-
}, Ee = {
|
|
26
|
-
key: 1,
|
|
27
|
-
class: "no-formats-available"
|
|
28
|
-
}, be = ["onClick", "onDblclick"], De = { class: "format-pattern" }, Ve = { class: "format-preview" }, H = 1, ke = /* @__PURE__ */ I({
|
|
29
|
-
__name: "DateTimeFormatPickerPopover",
|
|
30
|
-
props: {
|
|
31
|
-
allFormats: {},
|
|
32
|
-
allowedTypes: {},
|
|
33
|
-
initialSelectedPattern: {}
|
|
34
|
-
},
|
|
35
|
-
emits: ["commit", "cancel"],
|
|
36
|
-
setup(g, { emit: E }) {
|
|
37
|
-
const i = E, p = g, f = [
|
|
38
|
-
{
|
|
39
|
-
id: "DATE",
|
|
40
|
-
text: "Date"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: "TIME",
|
|
44
|
-
text: "Time"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: "DATE_TIME",
|
|
48
|
-
text: "Date & Time"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: "ZONED_DATE_TIME",
|
|
52
|
-
text: "Date & Time & Zone"
|
|
53
|
-
}
|
|
54
|
-
], n = F(
|
|
55
|
-
() => f.filter(
|
|
56
|
-
(e) => p.allowedTypes.includes(e.id)
|
|
57
|
-
)
|
|
58
|
-
), V = F(() => [
|
|
59
|
-
{
|
|
60
|
-
id: "RECENT",
|
|
61
|
-
text: "Recent"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: "STANDARD",
|
|
65
|
-
text: "ISO"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: "EUROPEAN",
|
|
69
|
-
text: "European"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: "AMERICAN",
|
|
73
|
-
text: "United States"
|
|
74
|
-
}
|
|
75
|
-
]), b = T(null), c = T("DATE"), a = T("RECENT"), s = F(() => {
|
|
76
|
-
var o;
|
|
77
|
-
const e = a.value, t = c.value;
|
|
78
|
-
return ((o = p.allFormats) == null ? void 0 : o.filter(
|
|
79
|
-
(l) => l.category === e && l.temporalType === t
|
|
80
|
-
)) ?? null;
|
|
81
|
-
}), D = T(null), r = G({}), d = (e) => `${e.format}-${e.category}-${e.temporalType}`, _ = (e) => (t) => {
|
|
82
|
-
r[d(e)] = t;
|
|
83
|
-
}, { currentIndex: k, onKeydown: A, resetNavigation: Z } = me({
|
|
84
|
-
keepOpenedOnTab: !0,
|
|
85
|
-
getFirstElement: () => ({
|
|
86
|
-
index: 0,
|
|
87
|
-
onClick: () => i("commit", s.value[0].format)
|
|
88
|
-
}),
|
|
89
|
-
getLastElement: () => {
|
|
90
|
-
const e = s.value.length - 1;
|
|
91
|
-
return {
|
|
92
|
-
index: e,
|
|
93
|
-
onClick: () => i("commit", s.value[e].format)
|
|
94
|
-
};
|
|
95
|
-
},
|
|
96
|
-
getNextElement: (e, t) => {
|
|
97
|
-
if (e = e === null || e === -1 ? null : e, t === 1) {
|
|
98
|
-
const l = ((e ?? -1) + 1) % s.value.length;
|
|
99
|
-
return {
|
|
100
|
-
index: l,
|
|
101
|
-
onClick: () => i("commit", s.value[l].format)
|
|
102
|
-
};
|
|
103
|
-
} else {
|
|
104
|
-
const l = ((e ?? 0) - 1 + s.value.length) % s.value.length;
|
|
105
|
-
return {
|
|
106
|
-
index: l,
|
|
107
|
-
onClick: () => i("commit", s.value[l].format)
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
close: () => {
|
|
112
|
-
i("cancel");
|
|
113
|
-
}
|
|
114
|
-
}), j = (e) => {
|
|
115
|
-
const t = e.parentElement;
|
|
116
|
-
if (t && t.scrollHeight > t.clientHeight) {
|
|
117
|
-
const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - o;
|
|
118
|
-
v > l ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
|
|
119
|
-
}
|
|
120
|
-
}, R = async (e, t, o) => {
|
|
121
|
-
c.value = t ?? c.value, a.value = o ?? a.value, await S(), b.value = e;
|
|
122
|
-
const l = r[`${e}-${a.value}-${c.value}`];
|
|
123
|
-
l && j(l);
|
|
124
|
-
const v = s.value.findIndex(
|
|
125
|
-
(x) => x.format === e
|
|
126
|
-
);
|
|
127
|
-
k.value = v;
|
|
128
|
-
}, W = async () => {
|
|
129
|
-
var e;
|
|
130
|
-
await S(), (e = D.value) == null || e.focus();
|
|
131
|
-
};
|
|
132
|
-
$(k, (e) => {
|
|
133
|
-
if (e === null)
|
|
134
|
-
return;
|
|
135
|
-
const t = s.value[e];
|
|
136
|
-
R(t.format, t.temporalType, t.category);
|
|
137
|
-
}), $([c, a], () => {
|
|
138
|
-
b.value = null, Z();
|
|
139
|
-
});
|
|
140
|
-
const q = T(!1);
|
|
141
|
-
return J(() => {
|
|
142
|
-
if (!p.allFormats)
|
|
143
|
-
return;
|
|
144
|
-
const e = [
|
|
145
|
-
"RECENT",
|
|
146
|
-
"STANDARD",
|
|
147
|
-
"EUROPEAN",
|
|
148
|
-
"AMERICAN"
|
|
149
|
-
], t = p.allFormats.filter((o) => p.initialSelectedPattern === o.format).sort((o, l) => {
|
|
150
|
-
const v = e.indexOf(o.category), x = e.indexOf(l.category);
|
|
151
|
-
return v - x;
|
|
152
|
-
});
|
|
153
|
-
t.length > 0 && R(
|
|
154
|
-
t[0].format,
|
|
155
|
-
t[0].temporalType,
|
|
156
|
-
t[0].category
|
|
157
|
-
), W(), setTimeout(() => {
|
|
158
|
-
q.value = !0;
|
|
159
|
-
}, 0);
|
|
160
|
-
}), (e, t) => (u(), y("div", Te, [
|
|
161
|
-
m("div", ge, [
|
|
162
|
-
h(C, {
|
|
163
|
-
class: "control-title",
|
|
164
|
-
text: "Type",
|
|
165
|
-
for: "selectedFormatType"
|
|
166
|
-
}, {
|
|
167
|
-
default: M(() => [
|
|
168
|
-
h(U, {
|
|
169
|
-
id: "selectedFormatType",
|
|
170
|
-
modelValue: c.value,
|
|
171
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => c.value = o),
|
|
172
|
-
compact: "",
|
|
173
|
-
"possible-values": n.value,
|
|
174
|
-
onKeydown: t[1] || (t[1] = N(Q((o) => i("cancel"), ["shift"]), ["tab"]))
|
|
175
|
-
}, null, 8, ["modelValue", "possible-values"])
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
})
|
|
179
|
-
]),
|
|
180
|
-
m("div", _e, [
|
|
181
|
-
h(C, {
|
|
182
|
-
class: "control-title",
|
|
183
|
-
text: "Standard",
|
|
184
|
-
for: "selectedFormatStandard"
|
|
185
|
-
}, {
|
|
186
|
-
default: M(() => [
|
|
187
|
-
h(U, {
|
|
188
|
-
id: "selectedFormatStandard",
|
|
189
|
-
modelValue: a.value,
|
|
190
|
-
"onUpdate:modelValue": t[2] || (t[2] = (o) => a.value = o),
|
|
191
|
-
compact: "",
|
|
192
|
-
"possible-values": V.value
|
|
193
|
-
}, null, 8, ["modelValue", "possible-values"])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
})
|
|
197
|
-
]),
|
|
198
|
-
m("div", Fe, [
|
|
199
|
-
h(C, {
|
|
200
|
-
class: "control-title",
|
|
201
|
-
text: "Date formats",
|
|
202
|
-
for: "dateFormats"
|
|
203
|
-
}, {
|
|
204
|
-
default: M(() => [
|
|
205
|
-
m("div", {
|
|
206
|
-
id: "dateFormats",
|
|
207
|
-
ref_key: "formatContainerRef",
|
|
208
|
-
ref: D,
|
|
209
|
-
class: "formats-container",
|
|
210
|
-
style: L({ "--formats-container-border-width": H + "px" }),
|
|
211
|
-
tabindex: "0",
|
|
212
|
-
role: "menu",
|
|
213
|
-
onKeydown: [
|
|
214
|
-
t[3] || (t[3] = //@ts-ignore
|
|
215
|
-
(...o) => w(A) && w(A)(...o)),
|
|
216
|
-
t[4] || (t[4] = N((o) => o.shiftKey || i("cancel"), ["tab"]))
|
|
217
|
-
]
|
|
218
|
-
}, [
|
|
219
|
-
s.value === null ? (u(), y("div", we, [
|
|
220
|
-
h(ue, { class: "loading-spinner" })
|
|
221
|
-
])) : s.value.length === 0 ? (u(), y("div", Ee, " No formats available ")) : (u(!0), y(X, { key: 2 }, Y(s.value, (o, l) => (u(), y("div", {
|
|
222
|
-
key: d(o),
|
|
223
|
-
ref_for: !0,
|
|
224
|
-
ref: _(o),
|
|
225
|
-
class: z([{ selected: l === w(k) }, "single-format"]),
|
|
226
|
-
role: "menuitem",
|
|
227
|
-
onClick: () => {
|
|
228
|
-
var v;
|
|
229
|
-
k.value = l, (v = D.value) == null || v.focus();
|
|
230
|
-
},
|
|
231
|
-
onDblclick: () => i("commit", o.format)
|
|
232
|
-
}, [
|
|
233
|
-
m("span", De, P(o.format), 1),
|
|
234
|
-
m("span", Ve, P(o.example), 1)
|
|
235
|
-
], 42, be))), 128))
|
|
236
|
-
], 36)
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
})
|
|
240
|
-
])
|
|
241
|
-
]));
|
|
242
|
-
}
|
|
243
|
-
}), xe = /* @__PURE__ */ K(ke, [["__scopeId", "data-v-01e54f12"]]), Me = { class: "input-fields" }, Ce = ["disabled"], ze = {
|
|
244
|
-
key: 0,
|
|
245
|
-
class: "invalid-marker"
|
|
246
|
-
}, Ie = ["disabled"], Ae = {}, Re = /* @__PURE__ */ I({
|
|
247
|
-
...Ae,
|
|
248
|
-
__name: "DateTimeFormatInput",
|
|
249
|
-
props: /* @__PURE__ */ B({
|
|
250
|
-
disabled: { type: Boolean, default: !1 },
|
|
251
|
-
compact: { type: Boolean, default: !1 },
|
|
252
|
-
isValid: { type: Boolean, default: !0 },
|
|
253
|
-
allDefaultFormats: {},
|
|
254
|
-
allowedTypes: { default: () => [
|
|
255
|
-
"DATE",
|
|
256
|
-
"TIME",
|
|
257
|
-
"DATE_TIME",
|
|
258
|
-
"ZONED_DATE_TIME"
|
|
259
|
-
] }
|
|
260
|
-
}, {
|
|
261
|
-
modelValue: {
|
|
262
|
-
default: "yyyy-MM-dd"
|
|
263
|
-
},
|
|
264
|
-
modelModifiers: {}
|
|
265
|
-
}),
|
|
266
|
-
emits: /* @__PURE__ */ B(["committed"], ["update:modelValue"]),
|
|
267
|
-
setup(g, { emit: E }) {
|
|
268
|
-
const i = E, p = g, f = ee(g, "modelValue"), n = "Format like 'yyyy-MM-dd'", V = F(() => p.isValid), b = T(null), c = T(null), a = T(!1), s = (r) => {
|
|
269
|
-
f.value = r, a.value = !1, i("committed", r);
|
|
270
|
-
};
|
|
271
|
-
se(c, () => a.value = !1, {
|
|
272
|
-
ignore: [b]
|
|
273
|
-
});
|
|
274
|
-
const { floatingStyles: D } = ne(
|
|
275
|
-
b,
|
|
276
|
-
c,
|
|
277
|
-
{
|
|
278
|
-
middleware: [
|
|
279
|
-
ie({
|
|
280
|
-
mainAxis: 2,
|
|
281
|
-
crossAxis: 0
|
|
282
|
-
}),
|
|
283
|
-
re(),
|
|
284
|
-
de({
|
|
285
|
-
mainAxis: !0,
|
|
286
|
-
crossAxis: !1
|
|
287
|
-
})
|
|
288
|
-
],
|
|
289
|
-
placement: "top-end",
|
|
290
|
-
whileElementsMounted: ce
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
return (r, d) => (u(), y("div", null, [
|
|
294
|
-
m("div", {
|
|
295
|
-
class: z(["wrapper", { disabled: r.disabled, compact: r.compact }])
|
|
296
|
-
}, [
|
|
297
|
-
m("span", Me, [
|
|
298
|
-
te(m("input", {
|
|
299
|
-
"onUpdate:modelValue": d[0] || (d[0] = (_) => f.value = _),
|
|
300
|
-
type: "text",
|
|
301
|
-
disabled: r.disabled,
|
|
302
|
-
placeholder: n,
|
|
303
|
-
spellcheck: "false",
|
|
304
|
-
onFocus: d[1] || (d[1] = (_) => a.value = !1),
|
|
305
|
-
onChange: d[2] || (d[2] = (_) => r.$emit("committed", f.value))
|
|
306
|
-
}, null, 40, Ce), [
|
|
307
|
-
[oe, f.value]
|
|
308
|
-
]),
|
|
309
|
-
V.value ? O("", !0) : (u(), y("span", ze)),
|
|
310
|
-
m("button", {
|
|
311
|
-
ref_key: "togglePopoverButtonRef",
|
|
312
|
-
ref: b,
|
|
313
|
-
class: z(["trigger-popover-button", { active: a.value }]),
|
|
314
|
-
disabled: r.disabled,
|
|
315
|
-
onClick: d[3] || (d[3] = (_) => a.value = !a.value)
|
|
316
|
-
}, [
|
|
317
|
-
h(w(he))
|
|
318
|
-
], 10, Ie)
|
|
319
|
-
])
|
|
320
|
-
], 2),
|
|
321
|
-
a.value ? (u(), y("div", {
|
|
322
|
-
key: 0,
|
|
323
|
-
ref_key: "floatingPopoverRef",
|
|
324
|
-
ref: c,
|
|
325
|
-
class: "popover",
|
|
326
|
-
style: L(w(D))
|
|
327
|
-
}, [
|
|
328
|
-
h(xe, {
|
|
329
|
-
"all-formats": r.allDefaultFormats,
|
|
330
|
-
"initial-selected-pattern": f.value,
|
|
331
|
-
"allowed-types": r.allowedTypes,
|
|
332
|
-
onCommit: s,
|
|
333
|
-
onCancel: d[4] || (d[4] = (_) => a.value = !1)
|
|
334
|
-
}, null, 8, ["all-formats", "initial-selected-pattern", "allowed-types"])
|
|
335
|
-
], 4)) : O("", !0)
|
|
336
|
-
]));
|
|
337
|
-
}
|
|
338
|
-
}), $e = /* @__PURE__ */ K(Re, [["__scopeId", "data-v-ce3e7e80"]]), Le = /* @__PURE__ */ I({
|
|
339
|
-
__name: "DateTimeFormatPickerControl",
|
|
340
|
-
props: {
|
|
341
|
-
control: {},
|
|
342
|
-
handleChange: { type: Function },
|
|
343
|
-
changeValue: { type: Function },
|
|
344
|
-
disabled: { type: Boolean },
|
|
345
|
-
isValid: { type: Boolean },
|
|
346
|
-
onRegisterValidation: { type: Function },
|
|
347
|
-
labelForId: {}
|
|
348
|
-
},
|
|
349
|
-
setup(g) {
|
|
350
|
-
const E = g, i = F(() => E.control.uischema.options), p = F(() => {
|
|
351
|
-
var n;
|
|
352
|
-
return (n = i.value) == null ? void 0 : n.allowedFormats;
|
|
353
|
-
}), f = ae(
|
|
354
|
-
F(() => {
|
|
355
|
-
var n;
|
|
356
|
-
return (n = i.value) == null ? void 0 : n.formatProvider;
|
|
357
|
-
}),
|
|
358
|
-
null
|
|
359
|
-
);
|
|
360
|
-
return (n, V) => (u(), le(w($e), {
|
|
361
|
-
id: n.labelForId,
|
|
362
|
-
compact: "",
|
|
363
|
-
disabled: n.disabled,
|
|
364
|
-
"model-value": n.control.data,
|
|
365
|
-
"allowed-formats": p.value,
|
|
366
|
-
"all-default-formats": w(f),
|
|
367
|
-
"is-valid": !0,
|
|
368
|
-
"onUpdate:modelValue": n.changeValue
|
|
369
|
-
}, null, 8, ["id", "disabled", "model-value", "allowed-formats", "all-default-formats", "onUpdate:modelValue"]));
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
export {
|
|
373
|
-
Le as default
|
|
374
|
-
};
|