@knime/jsonforms 1.19.2 → 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.
- package/CHANGELOG.md +15 -0
- package/dist/{AnyOfTwinlist-DbIxFGCg.js → AnyOfTwinlist-gIm_R7yi.js} +1 -1
- package/dist/{Checkbox-DHrRt49x.js → Checkbox-D1QZ8D8U.js} +1 -1
- package/dist/{CheckboxControl-D0b--DXW.js → CheckboxControl-DitntAd8.js} +1 -1
- package/dist/{CheckboxesControl-D2UmK0cM.js → CheckboxesControl-C_Wwb06j.js} +2 -2
- package/dist/{ColorControl-BWQGbfC0.js → ColorControl-86_aeUMf.js} +1 -1
- package/dist/ColorPreviewControl-HgbFwMCE.js +89 -0
- package/dist/{ComboBoxControl-CL4v2Sgq.js → ComboBoxControl-CGwWGyDl.js} +8 -8
- package/dist/{DateControl-BwCKXxzH.js → DateControl-BofbO5lM.js} +8 -7
- package/dist/{DateTimeControl-DIHNi8gS.js → DateTimeControl-BzWk51J8.js} +1 -1
- package/dist/DateTimeFormatPickerControl-7KTdYrMN.js +31 -0
- package/dist/DateTimeFormatPickerWithTypeControl-DmevlqK8.js +442 -0
- package/dist/{DropdownControl-DIr6VLc6.js → DropdownControl-XAeknlV2.js} +3 -3
- package/dist/{HorizontalLayout-y52FdHPr.js → HorizontalLayout-BQFvLK2X.js} +1 -1
- package/dist/{IntegerControl-Bk-MII8Z.js → IntegerControl-XNoJU3s2.js} +1 -1
- package/dist/{IntervalControl-C7rHNjU3.js → IntervalControl-DaQTfsx8.js} +2 -2
- package/dist/{Label-4eQvTocI.js → Label-BckcZVsr.js} +1 -1
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BohYhBbA.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-M581gyEa.js} +1 -1
- package/dist/LoadingIcon-D3kls_iA.js +29 -0
- package/dist/{ManualTwinlistControl-Cymjfy5p.js → ManualTwinlistControl-BCgJbfp5.js} +4 -4
- package/dist/{MultiSelectListBoxControl-xAD6kXMK.js → MultiSelectListBoxControl-B6tvY3Al.js} +2 -2
- package/dist/{MultimodeTwinlistControl-BumsqGUV.js → MultimodeTwinlistControl-CUWzYCUm.js} +14 -14
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-KKPjcj4X.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C8itN9TE.js} +2 -2
- package/dist/{MultiselectListBox-ZX6212Yu.js → MultiselectListBox-C1rI0rOG.js} +4 -4
- package/dist/{NameFilter-FSgsA62B.js → NameFilter-CaPBJKzh.js} +1 -1
- package/dist/{NumberControl-BqoqHwEO.js → NumberControl-DOnwoK8Z.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BncdSveV.js → NumberControlBase.vue_vue_type_script_setup_true_lang-IP3X2jko.js} +4 -4
- package/dist/{OneOfDropdown-B_2tiTwi.js → OneOfDropdown-CHt7_dgU.js} +9 -9
- package/dist/{RadioControl-BFhCpO9D.js → RadioControl-CP7QiYX1.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CaIHPPJ6.js → RadioControlBase.vue_vue_type_script_setup_true_lang-qv1xOkqz.js} +2 -2
- package/dist/{RichTextControl-CdhHDOWn.js → RichTextControl-DKlFtbdd.js} +1535 -1461
- package/dist/{SectionHeading-DZCr2UJ-.js → SectionHeading-DbcAkyOk.js} +1 -1
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-B1Ey6pj2.js +25430 -0
- package/dist/{SectionLayout-C-8MnV5C.js → SectionLayout-BRfbEX0H.js} +3 -3
- package/dist/SettingsSubPanel-Bw-wC4JV.js +5 -0
- package/dist/{SettingsSubPanelLayout-BYZgAnN7.js → SettingsSubPanelLayout-nMEM9Js5.js} +6 -6
- package/dist/SimpleButtonControl-Cs9fDA9V.js +49 -0
- package/dist/{SimpleTwinlistControl-BCZ8bawe.js → SimpleTwinlistControl-CMJCJOPx.js} +2 -2
- package/dist/{SingleSelectControl-Dej4aS7t.js → SingleSelectControl-DrqxOX0c.js} +2 -2
- package/dist/{SingleSelectListBoxControl-BfJjjRQn.js → SingleSelectListBoxControl-2ORQoAtg.js} +5 -5
- package/dist/{SortListControl-BzZCSfie.js → SortListControl-BLWFLyUn.js} +35 -36
- package/dist/{StyledListItem-BSq6JKC8.js → StyledListItem-DhsQSwUn.js} +1 -1
- package/dist/{TextAreaControl-jzV7HC6S.js → TextAreaControl-v3fhzCGm.js} +1 -1
- package/dist/{TextControl-1b_uj1FP.js → TextControl-CNlNwI8q.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BoZDe5bd.js → TextControl.vue_vue_type_script_setup_true_lang-BQReBqLi.js} +5 -5
- package/dist/{TimeControl-BYogu7kA.js → TimeControl-uBNUovJi.js} +1 -1
- package/dist/{TwinlistControlBase-Bd5_Uuq-.js → TwinlistControlBase-BfsU0lp4.js} +3 -3
- package/dist/{TwinlistLoadingInfo-3TeV4Gdp.js → TwinlistLoadingInfo-CZpH6CqT.js} +4 -4
- package/dist/{TypedStringFilter-CU8Og0OV.js → TypedStringFilter-ElEPYctF.js} +1 -1
- package/dist/{ValueSwitch-DjDuJdNN.js → ValueSwitch-BfYlPI2B.js} +4 -4
- package/dist/{ValueSwitchControl-D1saOV7r.js → ValueSwitchControl-DyV85jLv.js} +1 -1
- package/dist/{VerticalLayout-g5Won-Pb.js → VerticalLayout-CFGNNSaB.js} +2 -2
- package/dist/{VerticalLayoutBase-CGb9hUYx.js → VerticalLayoutBase-CCtK1J1U.js} +1 -1
- package/dist/{ZonedDateTimeControl-CtgGTCQc.js → ZonedDateTimeControl-BtPeUK4M.js} +17 -19
- package/dist/{_baseEach-GM1_9gpl.js → _baseEach-DR1qyPMo.js} +7 -8
- package/dist/_baseIteratee-DrBvc1GG.js +640 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-5E_obOH5.js → localTimeUtils-C1z-tWPY.js} +3934 -3328
- package/dist/{popper-LGjf7Wza.js → popper-D54JdmBM.js} +212 -208
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/renderers/colorPreviewRenderer.d.ts +69 -0
- package/dist/src/renderers/defaultRenderers.d.ts +150 -22
- package/dist/src/renderers/simpleButtonRenderer.d.ts +81 -22
- package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +11 -0
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +14 -11
- package/dist/src/uiComponents/colorPreview/ColorPreviewEmptyState.vue.d.ts +2 -0
- package/dist/src/uiComponents/colorPreview/GradientPreview.vue.d.ts +6 -0
- package/dist/src/uiComponents/colorPreview/PalettePreview.vue.d.ts +6 -0
- package/dist/testing.js +2 -2
- package/dist/toString-lufkO4XX.js +25 -0
- package/dist/{useBuiltinValidations-V_W_S2ya.js → useBuiltinValidations-CXYzLTj1.js} +1 -1
- package/dist/{usePossibleValues-CcLAFNOh.js → usePossibleValues-BGGWIVzM.js} +1 -1
- package/package.json +4 -4
- package/dist/Button-DPBuV8Ju.js +0 -82
- package/dist/DateTimeFormatInput-BjdyxUQY.js +0 -374
- package/dist/DateTimeFormatPickerControl-CV6pc2KZ.js +0 -40
- package/dist/DateTimeFormatPickerWithTypeControl-DyGt-WGp.js +0 -76
- package/dist/Dropdown-DlCk3K9Y.js +0 -620
- package/dist/LoadingIcon-Br99Lv_8.js +0 -18
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-BYoCo820.js +0 -18542
- package/dist/SettingsSubPanel-DLmH_M05.js +0 -5
- package/dist/SimpleButtonControl-CdMqbvzO.js +0 -68
- package/dist/_baseIteratee-CHnCehKu.js +0 -516
- package/dist/_getTag-D-KT4MkB.js +0 -131
- package/dist/hotkeys-rxnt4egK.js +0 -6
- package/dist/isArray-WzO_os3q.js +0 -4
- package/dist/reload-DjY4GPvr.js +0 -17
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +0 -7
- package/dist/toString-D64mIKfx.js +0 -25
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
import { openBlock as m, createElementBlock as y, createElementVNode as p, defineComponent as O, useCssVars as J, computed as F, ref as f, watch as z, reactive as q, onMounted as G, nextTick as N, onUnmounted as Q, createBlock as P, unref as E, withCtx as X, createCommentVNode as C, createVNode as M, 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, J as ne } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-BYoCo820.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-Br99Lv_8.js";
|
|
6
|
-
import { V as $ } from "./ValueSwitch-DjDuJdNN.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" }, ke = { class: "format-preview" }, H = 1, Me = /* @__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
|
-
J((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 = q({}), 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 k = f(!1);
|
|
173
|
-
return G(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(() => k.value = !0);
|
|
204
|
-
}), Q(() => k.value = !1), (e, t) => (m(), P(E(pe), {
|
|
205
|
-
active: k.value,
|
|
206
|
-
"onUpdate:active": t[3] || (t[3] = (o) => k.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
|
-
M($, {
|
|
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
|
-
M(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", ke, 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(Me, [["__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
|
-
M(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
|
-
M(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-BYoCo820.js";
|
|
3
|
-
import { D as v } from "./DateTimeFormatInput-BjdyxUQY.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-BYoCo820.js";
|
|
3
|
-
import { V as h } from "./ValueSwitch-DjDuJdNN.js";
|
|
4
|
-
import { D as y } from "./DateTimeFormatInput-BjdyxUQY.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
|
-
};
|