@knime/jsonforms 1.3.3 → 1.3.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 +8 -0
- package/dist/{AnyOfTwinlist-DTbSINwn.js → AnyOfTwinlist-DWTKh8y3.js} +1 -1
- package/dist/{BaseButton-CqVt12ca.js → BaseButton-XbIT7vaM.js} +1 -1
- package/dist/{Button-DRN3UFmy.js → Button-B4lMhq_V.js} +2 -2
- package/dist/{Checkbox-D5t33oix.js → Checkbox-DA-MBRku.js} +1 -1
- package/dist/{CheckboxControl-Bf6kuhO_.js → CheckboxControl-BSwdtIp0.js} +3 -3
- package/dist/{Checkboxes-DG26cQn9.js → Checkboxes-DmVAa2ou.js} +2 -2
- package/dist/{CheckboxesControl-CDuaKLTI.js → CheckboxesControl-BXN98kzV.js} +2 -2
- package/dist/{ColumnFilter-DOblIU5V.js → ColumnFilter-BlisoyzI.js} +1 -1
- package/dist/{ColumnSelect-C5Vot-7w.js → ColumnSelect-CedGiNBe.js} +3 -3
- package/dist/{ComboBoxControl-D3uKgWxy.js → ComboBoxControl-MI4pCBAe.js} +3 -3
- package/dist/{DateControl-MHXMJlTJ.js → DateControl-BNVNufrC.js} +1 -1
- package/dist/{DateTimeControl-cX7fA7OG.js → DateTimeControl-Cn60Rv64.js} +1 -1
- package/dist/DateTimeFormatPickerControl-Bo56MUDs.js +372 -0
- package/dist/{DateTimeInput-DHGkDRzN.js → DateTimeInput-6MlxDW9w.js} +7 -7
- package/dist/{Dropdown-BLYiaMgd.js → Dropdown-DmB1_gOb.js} +4 -4
- package/dist/{DropdownControl-iyJUn7Ql.js → DropdownControl-C514fY38.js} +1 -1
- package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-Cu6ivFMs.js → DropdownControl.vue_vue_type_script_setup_true_lang-DRa2Qfn0.js} +6 -6
- package/dist/{ErrorMessage-DxLXwOpE.js → ErrorMessage-BIc7kWRv.js} +1 -1
- package/dist/{FunctionButton-DdJAkJsm.js → FunctionButton-DR3tnO8v.js} +2 -2
- package/dist/{HorizontalLayout-BYb10Ov9.js → HorizontalLayout-DOWhO-Np.js} +1 -1
- package/dist/{InputField-BHKuSx3_.js → InputField-BBusFaFX.js} +1 -1
- package/dist/{IntegerControl-BjbcUybV.js → IntegerControl-DiVoD71I.js} +1 -1
- package/dist/{IntervalControl-CS_h9XOX.js → IntervalControl-PtcB3UIs.js} +141 -124
- package/dist/{MultiselectListBox-BcZ532yc.js → MultiselectListBox-DG7_PSXS.js} +1 -1
- package/dist/{NameFilter-Bavj6R5Y.js → NameFilter-CQXSBuy9.js} +1 -1
- package/dist/{NumberControl-B1wIJnhb.js → NumberControl-DWM2Kc--.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-NYrKeYNV.js → NumberControlBase.vue_vue_type_script_setup_true_lang-7QXxK9Yw.js} +2 -2
- package/dist/{NumberInput-Bl3PCp5A.js → NumberInput-FO9pUvkF.js} +1 -1
- package/dist/{OneOfDropdown-C1WccIK0.js → OneOfDropdown-C4GCURw-.js} +1 -1
- package/dist/{RadioControl-C-q11JJV.js → RadioControl-DvVlSLji.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-4mqiIYKp.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DuCaPGTf.js} +2 -2
- package/dist/{RichTextControl-BobNk1o_.js → RichTextControl-BnrjDfVq.js} +6 -6
- package/dist/{SectionLayout-DEAqT_bA.js → SectionLayout-DT8SCmqV.js} +2 -2
- package/dist/{SimpleButtonControl-BVgbUS6h.js → SimpleButtonControl-CJClTcRE.js} +2 -2
- package/dist/{SimpleTwinlistControl-BNFaO1HE.js → SimpleTwinlistControl-c3bpn8vI.js} +2 -2
- package/dist/{SortListControl-BNaViIum.js → SortListControl-CqCbP8e7.js} +8 -8
- package/dist/{TextAreaControl-D7EEzBfn.js → TextAreaControl-zeNcoIcU.js} +1 -1
- package/dist/{TextControl-BVD55xx8.js → TextControl-CmfvGpC9.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BOPE53CM.js → TextControl.vue_vue_type_script_setup_true_lang-BsaM_RO7.js} +3 -3
- package/dist/{TimeControl-3tSDqwpV.js → TimeControl-R-BGo2m5.js} +1 -1
- package/dist/{TwinlistControl-BtNowjdj.js → TwinlistControl-Rnep4Y82.js} +4 -4
- package/dist/{TwinlistLoadingInfo-Q2GmTReg.js → TwinlistLoadingInfo-DffSqS06.js} +6 -6
- package/dist/{ValueSwitch-D7c7AXNY.js → ValueSwitch-qtmPNeHX.js} +1 -1
- package/dist/{ValueSwitchControl-DkcDldIk.js → ValueSwitchControl-DS_FplBR.js} +1 -1
- package/dist/{VerticalLayout-QYNWLZz_.js → VerticalLayout-GBZoqIKf.js} +2 -2
- package/dist/{VerticalLayoutBase-CU69CYxp.js → VerticalLayoutBase-965sKTWy.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Cnf1NQ_I.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-C5uGdZmM.js} +29 -29
- package/dist/{ZonedDateTimeControl-BFzw99IS.js → ZonedDateTimeControl-BIhaQkam.js} +3 -3
- package/dist/{_baseAssignValue-DFfqrGww.js → _baseAssignValue-ZnU9dOPT.js} +1 -1
- package/dist/{_baseEach-BYHlqFLx.js → _baseEach-ChWAGFEO.js} +2 -2
- package/dist/{_baseIsEqual-D9grrbHy.js → _baseIsEqual-CmT75QGB.js} +3 -3
- package/dist/{_baseIteratee-DG1DF_X7.js → _baseIteratee-7U-WREQI.js} +3 -3
- package/dist/{_getTag-q9TxpB0c.js → _getTag-COTGx1U7.js} +3 -3
- package/dist/{isSymbol-Bikk6XGe.js → isSymbol--vHbw63w.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +6 -6
- package/dist/{svgWithTitle-DcZmbuza.js → svgWithTitle-mUT84Y1x.js} +1 -1
- package/dist/testing.js +3 -3
- package/dist/{toString-CfMbiIMn.js → toString-zKWZpxPQ.js} +2 -2
- package/package.json +3 -3
- package/dist/DateTimeFormatPickerControl-DNEwM4ca.js +0 -392
- package/dist/Tooltip-CDnPksH1.js +0 -24
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
import { openBlock as p, createElementBlock as T, createElementVNode as c, defineComponent as I, computed as F, ref as _, reactive as J, watch as A, onMounted as Q, createVNode as u, withCtx as x, withKeys as N, withModifiers as X, normalizeStyle as L, unref as b, Fragment as Y, renderList as ee, normalizeClass as z, toDisplayString as R, createTextVNode as te, nextTick as P, pushScopeId as oe, popScopeId as ae, mergeModels as B, useModel as le, withDirectives as se, vModelText as ne, createCommentVNode as O, createBlock as ie } from "vue";
|
|
2
|
-
import { n as M, _ as K, u as re } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Cnf1NQ_I.js";
|
|
3
|
-
import { o as de } from "./index-CkuSIXs2.js";
|
|
4
|
-
import { u as ce, o as me, s as ue, f as pe, a as fe } from "./floating-ui.vue.esm-B1dY_Hbh.js";
|
|
5
|
-
import { u as ve } from "./useDropdownNavigation-D6ZenVxz.js";
|
|
6
|
-
import { F as ye } from "./FunctionButton-DdJAkJsm.js";
|
|
7
|
-
import { L as he } from "./svgWithTitle-DcZmbuza.js";
|
|
8
|
-
import { T as Te } from "./Tooltip-CDnPksH1.js";
|
|
9
|
-
import { V as U } from "./ValueSwitch-D7c7AXNY.js";
|
|
10
|
-
const ge = {
|
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
-
fill: "none",
|
|
13
|
-
"stroke-linejoin": "round",
|
|
14
|
-
viewBox: "0 0 32 32"
|
|
15
|
-
}, _e = /* @__PURE__ */ c("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), Fe = [
|
|
19
|
-
_e
|
|
20
|
-
];
|
|
21
|
-
function we(m, E) {
|
|
22
|
-
return p(), T("svg", ge, [...Fe]);
|
|
23
|
-
}
|
|
24
|
-
const be = { render: we }, Ee = (m) => (oe("data-v-8fe9c5e5"), m = m(), ae(), m), De = { class: "popover" }, xe = /* @__PURE__ */ Ee(() => /* @__PURE__ */ c("h2", { class: "title" }, "Date & Time Formats", -1)), ke = { class: "switch-with-title" }, Ve = { class: "switch-with-title" }, Ce = { class: "date-format-input" }, Me = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "no-formats-available"
|
|
27
|
-
}, ze = {
|
|
28
|
-
key: 1,
|
|
29
|
-
class: "no-formats-available"
|
|
30
|
-
}, Ie = ["onClick", "onDblclick"], Se = { class: "format-pattern" }, $e = { class: "format-preview" }, Ae = { class: "commit-button-container" }, H = 1, Ne = /* @__PURE__ */ I({
|
|
31
|
-
__name: "DateTimeFormatPickerPopover",
|
|
32
|
-
props: {
|
|
33
|
-
allFormats: {},
|
|
34
|
-
allowedTypes: {},
|
|
35
|
-
initialSelectedPattern: {}
|
|
36
|
-
},
|
|
37
|
-
emits: ["commit", "cancel"],
|
|
38
|
-
setup(m, { emit: E }) {
|
|
39
|
-
const n = E, f = m, v = [
|
|
40
|
-
{
|
|
41
|
-
id: "DATE",
|
|
42
|
-
text: "Date"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: "TIME",
|
|
46
|
-
text: "Time"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: "DATE_TIME",
|
|
50
|
-
text: "Date & Time"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: "ZONED_DATE_TIME",
|
|
54
|
-
text: "Date & Time & Zone"
|
|
55
|
-
}
|
|
56
|
-
], i = F(
|
|
57
|
-
() => v.filter(
|
|
58
|
-
(e) => f.allowedTypes.includes(e.id)
|
|
59
|
-
)
|
|
60
|
-
), k = F(() => [
|
|
61
|
-
{
|
|
62
|
-
id: "RECENT",
|
|
63
|
-
text: "Recent"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: "STANDARD",
|
|
67
|
-
text: "Standard"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: "EUROPEAN",
|
|
71
|
-
text: "European"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: "AMERICAN",
|
|
75
|
-
text: "United States"
|
|
76
|
-
}
|
|
77
|
-
]), y = _(null), D = F(
|
|
78
|
-
() => y.value ? "" : "No format selected"
|
|
79
|
-
), l = _("DATE"), h = _("RECENT"), s = F(() => {
|
|
80
|
-
var o;
|
|
81
|
-
const e = h.value, t = l.value;
|
|
82
|
-
return ((o = f.allFormats) == null ? void 0 : o.filter(
|
|
83
|
-
(a) => a.category === e && a.temporalType === t
|
|
84
|
-
)) ?? null;
|
|
85
|
-
}), r = _(null), d = J({}), g = (e) => `${e.format}-${e.category}-${e.temporalType}`, Z = (e) => (t) => {
|
|
86
|
-
d[g(e)] = t;
|
|
87
|
-
}, { currentIndex: V, onKeydown: S, resetNavigation: j } = ve({
|
|
88
|
-
keepOpenedOnTab: !0,
|
|
89
|
-
getFirstElement: () => ({
|
|
90
|
-
index: 0,
|
|
91
|
-
onClick: () => n("commit", s.value[0].format)
|
|
92
|
-
}),
|
|
93
|
-
getLastElement: () => {
|
|
94
|
-
const e = s.value.length - 1;
|
|
95
|
-
return {
|
|
96
|
-
index: e,
|
|
97
|
-
onClick: () => n("commit", s.value[e].format)
|
|
98
|
-
};
|
|
99
|
-
},
|
|
100
|
-
getNextElement: (e, t) => {
|
|
101
|
-
if (e = e === null || e === -1 ? null : e, t === 1) {
|
|
102
|
-
const a = ((e ?? -1) + 1) % s.value.length;
|
|
103
|
-
return {
|
|
104
|
-
index: a,
|
|
105
|
-
onClick: () => n("commit", s.value[a].format)
|
|
106
|
-
};
|
|
107
|
-
} else {
|
|
108
|
-
const a = ((e ?? 0) - 1 + s.value.length) % s.value.length;
|
|
109
|
-
return {
|
|
110
|
-
index: a,
|
|
111
|
-
onClick: () => n("commit", s.value[a].format)
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
close: () => {
|
|
116
|
-
n("cancel");
|
|
117
|
-
}
|
|
118
|
-
}), W = (e) => {
|
|
119
|
-
const t = e.parentElement;
|
|
120
|
-
if (t && t.scrollHeight > t.clientHeight) {
|
|
121
|
-
const o = t.offsetTop + H, a = t.clientHeight + t.scrollTop, w = e.offsetTop + e.offsetHeight - o;
|
|
122
|
-
w > a ? t.scrollTop = w - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
|
|
123
|
-
}
|
|
124
|
-
}, $ = async (e, t, o) => {
|
|
125
|
-
l.value = t ?? l.value, h.value = o ?? h.value, await P(), y.value = e;
|
|
126
|
-
const a = d[`${e}-${h.value}-${l.value}`];
|
|
127
|
-
a && W(a);
|
|
128
|
-
const w = s.value.findIndex(
|
|
129
|
-
(C) => C.format === e
|
|
130
|
-
);
|
|
131
|
-
V.value = w;
|
|
132
|
-
}, q = async () => {
|
|
133
|
-
var e;
|
|
134
|
-
await P(), (e = r.value) == null || e.focus();
|
|
135
|
-
};
|
|
136
|
-
A(V, (e) => {
|
|
137
|
-
if (e === null)
|
|
138
|
-
return;
|
|
139
|
-
const t = s.value[e];
|
|
140
|
-
$(t.format, t.temporalType, t.category);
|
|
141
|
-
}), A([l, h], () => {
|
|
142
|
-
y.value = null, j();
|
|
143
|
-
});
|
|
144
|
-
const G = _(!1);
|
|
145
|
-
return Q(() => {
|
|
146
|
-
if (!f.allFormats)
|
|
147
|
-
return;
|
|
148
|
-
const e = [
|
|
149
|
-
"RECENT",
|
|
150
|
-
"STANDARD",
|
|
151
|
-
"EUROPEAN",
|
|
152
|
-
"AMERICAN"
|
|
153
|
-
], t = f.allFormats.filter((o) => f.initialSelectedPattern === o.format).sort((o, a) => {
|
|
154
|
-
const w = e.indexOf(o.category), C = e.indexOf(a.category);
|
|
155
|
-
return w - C;
|
|
156
|
-
});
|
|
157
|
-
t.length > 0 && $(
|
|
158
|
-
t[0].format,
|
|
159
|
-
t[0].temporalType,
|
|
160
|
-
t[0].category
|
|
161
|
-
), q(), setTimeout(() => {
|
|
162
|
-
G.value = !0;
|
|
163
|
-
}, 0);
|
|
164
|
-
}), (e, t) => (p(), T("div", De, [
|
|
165
|
-
xe,
|
|
166
|
-
c("div", ke, [
|
|
167
|
-
u(M, {
|
|
168
|
-
class: "control-title",
|
|
169
|
-
text: "Type",
|
|
170
|
-
for: "selectedFormatType"
|
|
171
|
-
}, {
|
|
172
|
-
default: x(() => [
|
|
173
|
-
u(U, {
|
|
174
|
-
id: "selectedFormatType",
|
|
175
|
-
modelValue: l.value,
|
|
176
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
|
|
177
|
-
compact: "",
|
|
178
|
-
"possible-values": i.value,
|
|
179
|
-
onKeydown: t[1] || (t[1] = N(X((o) => n("cancel"), ["shift"]), ["tab"]))
|
|
180
|
-
}, null, 8, ["modelValue", "possible-values"])
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
})
|
|
184
|
-
]),
|
|
185
|
-
c("div", Ve, [
|
|
186
|
-
u(M, {
|
|
187
|
-
class: "control-title",
|
|
188
|
-
text: "Standard",
|
|
189
|
-
for: "selectedFormatStandard"
|
|
190
|
-
}, {
|
|
191
|
-
default: x(() => [
|
|
192
|
-
u(U, {
|
|
193
|
-
id: "selectedFormatStandard",
|
|
194
|
-
modelValue: h.value,
|
|
195
|
-
"onUpdate:modelValue": t[2] || (t[2] = (o) => h.value = o),
|
|
196
|
-
compact: "",
|
|
197
|
-
"possible-values": k.value
|
|
198
|
-
}, null, 8, ["modelValue", "possible-values"])
|
|
199
|
-
]),
|
|
200
|
-
_: 1
|
|
201
|
-
})
|
|
202
|
-
]),
|
|
203
|
-
c("div", Ce, [
|
|
204
|
-
u(M, {
|
|
205
|
-
class: "control-title",
|
|
206
|
-
text: "Date formats",
|
|
207
|
-
for: "dateFormats"
|
|
208
|
-
}, {
|
|
209
|
-
default: x(() => [
|
|
210
|
-
c("div", {
|
|
211
|
-
id: "dateFormats",
|
|
212
|
-
ref_key: "formatContainerRef",
|
|
213
|
-
ref: r,
|
|
214
|
-
class: "formats-container",
|
|
215
|
-
style: L({ "--formats-container-border-width": H + "px" }),
|
|
216
|
-
tabindex: "0",
|
|
217
|
-
role: "menu",
|
|
218
|
-
onKeydown: t[3] || (t[3] = //@ts-ignore
|
|
219
|
-
(...o) => b(S) && b(S)(...o))
|
|
220
|
-
}, [
|
|
221
|
-
s.value === null ? (p(), T("div", Me, [
|
|
222
|
-
u(he, { class: "loading-spinner" })
|
|
223
|
-
])) : s.value.length === 0 ? (p(), T("div", ze, " No formats available ")) : (p(!0), T(Y, { key: 2 }, ee(s.value, (o, a) => (p(), T("div", {
|
|
224
|
-
key: g(o),
|
|
225
|
-
ref_for: !0,
|
|
226
|
-
ref: Z(o),
|
|
227
|
-
class: z([{ selected: a === b(V) }, "single-format"]),
|
|
228
|
-
role: "menuitem",
|
|
229
|
-
onClick: (w) => V.value = a,
|
|
230
|
-
onDblclick: () => n("commit", o.format)
|
|
231
|
-
}, [
|
|
232
|
-
c("span", Se, R(o.format), 1),
|
|
233
|
-
c("span", $e, R(o.example), 1)
|
|
234
|
-
], 42, Ie))), 128))
|
|
235
|
-
], 36)
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
})
|
|
239
|
-
]),
|
|
240
|
-
c("div", Ae, [
|
|
241
|
-
u(Te, { text: D.value }, {
|
|
242
|
-
default: x(() => [
|
|
243
|
-
u(ye, {
|
|
244
|
-
primary: "",
|
|
245
|
-
class: "commit-button",
|
|
246
|
-
disabled: !y.value,
|
|
247
|
-
onKeydown: t[4] || (t[4] = N((o) => o.shiftKey || n("cancel"), ["tab"])),
|
|
248
|
-
onClick: t[5] || (t[5] = () => {
|
|
249
|
-
n("commit", y.value);
|
|
250
|
-
})
|
|
251
|
-
}, {
|
|
252
|
-
default: x(() => [
|
|
253
|
-
te("Set format")
|
|
254
|
-
]),
|
|
255
|
-
_: 1
|
|
256
|
-
}, 8, ["disabled"])
|
|
257
|
-
]),
|
|
258
|
-
_: 1
|
|
259
|
-
}, 8, ["text"])
|
|
260
|
-
])
|
|
261
|
-
]));
|
|
262
|
-
}
|
|
263
|
-
}), Re = /* @__PURE__ */ K(Ne, [["__scopeId", "data-v-8fe9c5e5"]]), Pe = { class: "input-fields" }, Be = ["disabled"], Oe = {
|
|
264
|
-
key: 0,
|
|
265
|
-
class: "invalid-marker"
|
|
266
|
-
}, Ue = ["disabled"], He = {}, Le = /* @__PURE__ */ I({
|
|
267
|
-
...He,
|
|
268
|
-
__name: "DateTimeFormatInput",
|
|
269
|
-
props: /* @__PURE__ */ B({
|
|
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
|
-
}, {
|
|
281
|
-
modelValue: {
|
|
282
|
-
default: "yyyy-MM-dd"
|
|
283
|
-
},
|
|
284
|
-
modelModifiers: {}
|
|
285
|
-
}),
|
|
286
|
-
emits: /* @__PURE__ */ B(["committed"], ["update:modelValue"]),
|
|
287
|
-
setup(m, { emit: E }) {
|
|
288
|
-
const n = E, f = m, v = le(m, "modelValue"), i = "Format like 'yyyy-MM-dd'", k = F(() => f.isValid), y = _(null), D = _(null), l = _(!1), h = (r) => {
|
|
289
|
-
v.value = r, l.value = !1, n("committed", r);
|
|
290
|
-
};
|
|
291
|
-
de(D, () => l.value = !1, {
|
|
292
|
-
ignore: [y]
|
|
293
|
-
});
|
|
294
|
-
const { floatingStyles: s } = ce(
|
|
295
|
-
y,
|
|
296
|
-
D,
|
|
297
|
-
{
|
|
298
|
-
middleware: [
|
|
299
|
-
me({
|
|
300
|
-
mainAxis: 2,
|
|
301
|
-
crossAxis: 0
|
|
302
|
-
}),
|
|
303
|
-
ue(),
|
|
304
|
-
pe({
|
|
305
|
-
mainAxis: !0,
|
|
306
|
-
crossAxis: !1
|
|
307
|
-
})
|
|
308
|
-
],
|
|
309
|
-
placement: "top-end",
|
|
310
|
-
whileElementsMounted: fe
|
|
311
|
-
}
|
|
312
|
-
);
|
|
313
|
-
return (r, d) => (p(), T("div", null, [
|
|
314
|
-
c("div", {
|
|
315
|
-
class: z(["wrapper", { disabled: r.disabled, compact: r.compact }])
|
|
316
|
-
}, [
|
|
317
|
-
c("span", Pe, [
|
|
318
|
-
se(c("input", {
|
|
319
|
-
"onUpdate:modelValue": d[0] || (d[0] = (g) => v.value = g),
|
|
320
|
-
type: "text",
|
|
321
|
-
disabled: r.disabled,
|
|
322
|
-
placeholder: i,
|
|
323
|
-
spellcheck: "false",
|
|
324
|
-
onFocus: d[1] || (d[1] = (g) => l.value = !1),
|
|
325
|
-
onChange: d[2] || (d[2] = (g) => r.$emit("committed", v.value))
|
|
326
|
-
}, null, 40, Be), [
|
|
327
|
-
[ne, v.value]
|
|
328
|
-
]),
|
|
329
|
-
k.value ? O("", !0) : (p(), T("span", Oe)),
|
|
330
|
-
c("button", {
|
|
331
|
-
ref_key: "togglePopoverButtonRef",
|
|
332
|
-
ref: y,
|
|
333
|
-
class: z(["trigger-popover-button", { active: l.value }]),
|
|
334
|
-
disabled: r.disabled,
|
|
335
|
-
onClick: d[3] || (d[3] = (g) => l.value = !l.value)
|
|
336
|
-
}, [
|
|
337
|
-
u(b(be))
|
|
338
|
-
], 10, Ue)
|
|
339
|
-
])
|
|
340
|
-
], 2),
|
|
341
|
-
l.value ? (p(), T("div", {
|
|
342
|
-
key: 0,
|
|
343
|
-
ref_key: "floatingPopoverRef",
|
|
344
|
-
ref: D,
|
|
345
|
-
class: "popover",
|
|
346
|
-
style: L(b(s))
|
|
347
|
-
}, [
|
|
348
|
-
u(Re, {
|
|
349
|
-
"all-formats": r.allDefaultFormats,
|
|
350
|
-
"initial-selected-pattern": v.value,
|
|
351
|
-
"allowed-types": r.allowedTypes,
|
|
352
|
-
onCommit: h,
|
|
353
|
-
onCancel: d[4] || (d[4] = (g) => l.value = !1)
|
|
354
|
-
}, null, 8, ["all-formats", "initial-selected-pattern", "allowed-types"])
|
|
355
|
-
], 4)) : O("", !0)
|
|
356
|
-
]));
|
|
357
|
-
}
|
|
358
|
-
}), Ke = /* @__PURE__ */ K(Le, [["__scopeId", "data-v-ce3e7e80"]]), et = /* @__PURE__ */ I({
|
|
359
|
-
__name: "DateTimeFormatPickerControl",
|
|
360
|
-
props: {
|
|
361
|
-
control: {},
|
|
362
|
-
handleChange: { type: Function },
|
|
363
|
-
changeValue: { type: Function },
|
|
364
|
-
disabled: { type: Boolean },
|
|
365
|
-
labelForId: {}
|
|
366
|
-
},
|
|
367
|
-
setup(m) {
|
|
368
|
-
const E = m, n = F(() => E.control.uischema.options), f = F(() => {
|
|
369
|
-
var i;
|
|
370
|
-
return (i = n.value) == null ? void 0 : i.allowedFormats;
|
|
371
|
-
}), v = re(
|
|
372
|
-
F(() => {
|
|
373
|
-
var i;
|
|
374
|
-
return (i = n.value) == null ? void 0 : i.formatProvider;
|
|
375
|
-
}),
|
|
376
|
-
null
|
|
377
|
-
);
|
|
378
|
-
return (i, k) => (p(), ie(b(Ke), {
|
|
379
|
-
id: i.labelForId,
|
|
380
|
-
compact: "",
|
|
381
|
-
disabled: i.disabled,
|
|
382
|
-
"model-value": i.control.data,
|
|
383
|
-
"allowed-formats": f.value,
|
|
384
|
-
"all-default-formats": b(v),
|
|
385
|
-
"is-valid": !0,
|
|
386
|
-
"onUpdate:modelValue": i.changeValue
|
|
387
|
-
}, null, 8, ["id", "disabled", "model-value", "allowed-formats", "all-default-formats", "onUpdate:modelValue"]));
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
export {
|
|
391
|
-
et as default
|
|
392
|
-
};
|
package/dist/Tooltip-CDnPksH1.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as o, renderSlot as s, toDisplayString as n, createCommentVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Cnf1NQ_I.js";
|
|
3
|
-
const i = {
|
|
4
|
-
name: "Tooltip",
|
|
5
|
-
props: {
|
|
6
|
-
text: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: !0
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}, d = { class: "tooltip" }, p = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "text"
|
|
14
|
-
};
|
|
15
|
-
function _(r, l, t, m, u, f) {
|
|
16
|
-
return e(), o("div", d, [
|
|
17
|
-
s(r.$slots, "default", {}, void 0, !0),
|
|
18
|
-
t.text ? (e(), o("span", p, n(t.text), 1)) : c("", !0)
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
const k = /* @__PURE__ */ a(i, [["render", _], ["__scopeId", "data-v-05123edc"]]);
|
|
22
|
-
export {
|
|
23
|
-
k as T
|
|
24
|
-
};
|