@knime/jsonforms 1.19.6 → 1.20.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.
- package/CHANGELOG.md +28 -0
- package/dist/{AnyOfTwinlist-DXjbNRLq.js → AnyOfTwinlist-CosNPUKG.js} +1 -1
- package/dist/{Checkbox-CZIoPAZU.js → Checkbox-BLHyWo4X.js} +1 -1
- package/dist/{CheckboxControl-D6LP2SAg.js → CheckboxControl-DyBcYCFe.js} +1 -1
- package/dist/{CheckboxesControl-D9DA7-T0.js → CheckboxesControl-DqcN6RcZ.js} +2 -2
- package/dist/{ColorControl-rCN_X6Wk.js → ColorControl-CPklP_Ox.js} +1 -1
- package/dist/{ColorPreviewControl-Dv7_mc6t.js → ColorPreviewControl-BhbI9XDV.js} +1 -1
- package/dist/{ComboBoxControl-DUaaxMZ_.js → ComboBoxControl-DR9x8i0b.js} +8 -8
- package/dist/{DateControl-5AuxnnvM.js → DateControl-DJxV5wzs.js} +1 -1
- package/dist/DateTimeControl-CoNsGbev.js +44 -0
- package/dist/{DateTimeFormatPickerControl-CbLnDDbr.js → DateTimeFormatPickerControl-BmtxQjzI.js} +1 -1
- package/dist/{DateTimeFormatPickerWithTypeControl-BBpPB5TM.js → DateTimeFormatPickerWithTypeControl-CK7LsO-R.js} +12 -12
- package/dist/{DropdownControl-2UdsfufQ.js → DropdownControl-nLA0kshc.js} +5 -5
- package/dist/ExecutorCoresControl-BgB0R_Xv.js +42 -0
- package/dist/ExecutorMemoryControl-Ck5naUl2.js +41 -0
- package/dist/FileUploadControl-CByhtwi1.js +197 -0
- package/dist/GridSelectionControl-8g--blrX.js +115 -0
- package/dist/{HorizontalLayout-ao9JZxiP.js → HorizontalLayout-Bc4F2xJR.js} +6 -6
- package/dist/InputField-Gw6K93vY.js +148 -0
- package/dist/{IntegerControl-wq8pma-E.js → IntegerControl-CAh031mO.js} +1 -1
- package/dist/{IntervalControl-DuI-4Y1d.js → IntervalControl-ocjzEBto.js} +168 -184
- package/dist/LinkControl-BML6cXj-.js +35 -0
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-C2sH3IaG.js +57 -0
- package/dist/{LoadingIcon-BhelL9SM.js → LoadingIcon-B0S8ig5H.js} +1 -1
- package/dist/{ManualTwinlistControl-rP4L1RP6.js → ManualTwinlistControl-BdbrjZtS.js} +4 -4
- package/dist/{MultiSelectListBoxControl-iUqimLmu.js → MultiSelectListBoxControl-0M1iLfXZ.js} +2 -2
- package/dist/{MultimodeTwinlistControl-DTuLtZRx.js → MultimodeTwinlistControl-aL0Jr_Hp.js} +19 -20
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-DhQuoNrM.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-C61plPNM.js} +2 -2
- package/dist/{MultiselectListBox-DijeK4wH.js → MultiselectListBox-BJqQv0AT.js} +5 -5
- package/dist/{NameFilter-C1_u0chZ.js → NameFilter-DvoXjvd8.js} +1 -1
- package/dist/{NumberControl-BYvfrBJs.js → NumberControl-BEYR3aHU.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DBbHZCg_.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CSwuzJVa.js} +2 -2
- package/dist/{OneOfDropdown-BcqrG6U3.js → OneOfDropdown-Bg1JOuCZ.js} +1 -1
- package/dist/RadioButtonsWithDescriptionControl-Cmzn6X0W.js +57 -0
- package/dist/{RadioControl-BNB_hYVd.js → RadioControl-D4invwra.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-C7JiVgxq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CuOORFSE.js} +2 -2
- package/dist/ResourceControlBase-BCx6cBBz.js +158 -0
- package/dist/{RichTextControl-BIjtuTf7.js → RichTextControl-TbANBneT.js} +2059 -1991
- package/dist/{SectionHeading-CUxdd2GX.js → SectionHeading-DoNDREK2.js} +1 -1
- package/dist/{SectionLayout-NqTBT8Al.js → SectionLayout-Dsd4wFck.js} +3 -3
- package/dist/SettingsSubPanel-sQPONy-U.js +5 -0
- package/dist/{SettingsSubPanelLayout-Biu_QPw1.js → SettingsSubPanelLayout-DbYqmGOS.js} +7 -7
- package/dist/{SimpleButtonControl-B0cnKTy4.js → SimpleButtonControl-DhM4t6v3.js} +6 -6
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js +26176 -0
- package/dist/{SimpleTwinlistControl-BIIN8GzH.js → SimpleTwinlistControl-Chay0D48.js} +2 -2
- package/dist/{SingleSelectControl-GbRcLm19.js → SingleSelectControl-BRfqeLOh.js} +2 -2
- package/dist/{SingleSelectListBoxControl-DkRfB8oZ.js → SingleSelectListBoxControl-DyDspddM.js} +5 -5
- package/dist/{SortListControl-BTS1lJOo.js → SortListControl-DX0uhRfk.js} +104 -118
- package/dist/{StyledListItem-DBa0VNHX.js → StyledListItem-B_FaDixp.js} +1 -1
- package/dist/TeamAndSpacesControl-CVGPGpqd.js +64 -0
- package/dist/TeamResourceControl-DD-USgie.js +38 -0
- package/dist/{TextAreaControl-DrABn8Uh.js → TextAreaControl-BCIrrOzR.js} +1 -1
- package/dist/{TextControl-CHyUjofE.js → TextControl-B_2oeFoq.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CuCBV4pA.js +45 -0
- package/dist/{TimeControl-B4oVEJCX.js → TimeControl-CeL2KxIB.js} +1 -1
- package/dist/TimePartInput-BbHxGv7L.js +254 -0
- package/dist/TimeframesControl-BBUDxMaB.js +87 -0
- package/dist/Tooltip-B5O8iOuG.js +24 -0
- package/dist/{TwinlistControlBase-CiK7yseq.js → TwinlistControlBase--CFSodU_.js} +3 -3
- package/dist/{TwinlistLoadingInfo-x51VCOej.js → TwinlistLoadingInfo-aB5QCSFX.js} +18 -18
- package/dist/{TypedStringFilter-DC6B-Fds.js → TypedStringFilter-BjyKvhn1.js} +1 -1
- package/dist/{ValueSwitch-ChY5YK2o.js → ValueSwitch-DYxCMQ9c.js} +4 -4
- package/dist/{ValueSwitchControl-CJdAUIwq.js → ValueSwitchControl-CQkiPcwC.js} +1 -1
- package/dist/{VerticalLayout-DWbD5oCa.js → VerticalLayout-DygOb7L9.js} +2 -2
- package/dist/{VerticalLayoutBase-COwlULuo.js → VerticalLayoutBase-Dq_p4WmZ.js} +1 -1
- package/dist/{ZonedDateTimeControl-CLiwgCKR.js → ZonedDateTimeControl-CKyKzTtF.js} +2 -2
- package/dist/_Uint8Array-Boy5On8p.js +349 -0
- package/dist/_baseAssignValue-CG1hoqdJ.js +19 -0
- package/dist/{_baseEach-84mBqaP3.js → _baseEach-LxtQB6N-.js} +1 -1
- package/dist/_baseIteratee-BBGehgFZ.js +308 -0
- package/dist/floating-ui.vue-Bk6u3tWN.js +1060 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +53 -51
- package/dist/{localTimeUtils-LXk5i7aP.js → localTimeUtils-C7kma5fB.js} +3163 -3553
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
- package/dist/src/constants/inputFormats.d.ts +14 -0
- package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -0
- package/dist/src/higherOrderComponents/control/withDescription.d.ts +2 -0
- package/dist/src/layoutComponents/index.d.ts +2 -1
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +74 -0
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +16 -0
- package/dist/src/renderers/defaultRenderers.d.ts +152 -3
- package/dist/src/renderers/executorCoresResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/executorMemoryResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/fileUploadRenderer.d.ts +1 -0
- package/dist/src/renderers/gridSelectionRenderer.d.ts +1 -0
- package/dist/src/renderers/linkRenderer.d.ts +69 -0
- package/dist/src/renderers/passwordRenderer.d.ts +1 -0
- package/dist/src/renderers/quantityRenderer.d.ts +1 -0
- package/dist/src/renderers/radioWithDescriptionRenderer.d.ts +69 -0
- package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +76 -0
- package/dist/src/renderers/sortListRenderer.d.ts +1 -3
- package/dist/src/renderers/teamAndSpaceDropdownRenderer.d.ts +3 -0
- package/dist/src/renderers/teamResourceRenderer.d.ts +1 -0
- package/dist/src/renderers/timeframesRenderer.d.ts +4 -0
- package/dist/src/renderers/usernameRenderer.d.ts +1 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +13 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/FileUploadControl.vue.d.ts +6 -0
- package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +9 -0
- package/dist/src/uiComponents/LinkControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/PasswordControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/QuantityControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +1 -3
- package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/TimeframesControl.vue.d.ts +8 -0
- package/dist/src/uiComponents/UsernameControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/configs/executionContexts.config.d.ts +29 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +2 -2
- package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/resourceControls/SmallDonutChart.vue.d.ts +20 -0
- package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +4 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -3
- package/dist/testing.js +2602 -2589
- package/dist/toString-Bbm8o0hZ.js +25 -0
- package/dist/{useBuiltinValidations-BUVcN7lQ.js → useBuiltinValidations-zKGc6Pdt.js} +1 -1
- package/dist/useDropdownNavigation-EOwf_fL0.js +946 -0
- package/dist/{usePossibleValues-D16WFE9l.js → usePossibleValues-DhdKca4Z.js} +1 -1
- package/package.json +5 -5
- package/dist/DateTimeControl-DZjFx11V.js +0 -44
- package/dist/Label-Vxe-id5C.js +0 -218
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DGUZn4wH.js +0 -52
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CYe4TfJy.js +0 -25430
- package/dist/SettingsSubPanel-CO7Sguho.js +0 -5
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-yTQu10VH.js +0 -45
- package/dist/_baseIteratee-CBFfQfHB.js +0 -640
- package/dist/floating-ui.vue-Fx4CxKut.js +0 -1057
- package/dist/toString-gvdOTqCo.js +0 -25
- package/dist/useDropdownNavigation-2Yhk7zes.js +0 -821
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { u as Re, a as Ne, s as
|
|
1
|
+
import { openBlock as p, createElementBlock as E, createElementVNode as c, resolveComponent as ye, normalizeClass as D, createCommentVNode as F, withModifiers as N, createVNode as I, defineComponent as H, useModel as k, computed as P, Fragment as C, createBlock as te, withDirectives as b, vShow as S, renderList as X, unref as m, toDisplayString as K, withCtx as W, createTextVNode as Ae, mergeModels as G, ref as T, watch as z, withKeys as Me, vModelText as we, normalizeStyle as xe } from "vue";
|
|
2
|
+
import { _ as U, N as De, P as be, a9 as Pe, u as q } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DAdzHTim.js";
|
|
3
|
+
import { u as Re, a as Ne, s as _e, f as Se, o as Ce } from "./floating-ui.vue-Bk6u3tWN.js";
|
|
4
|
+
import { T as $e } from "./Tooltip-B5O8iOuG.js";
|
|
4
5
|
import { A as Oe } from "./arrow-dropdown-DMFBPPcK.js";
|
|
5
6
|
/* empty css */
|
|
6
|
-
import { V as
|
|
7
|
-
const
|
|
8
|
-
name: "Tooltip",
|
|
9
|
-
props: {
|
|
10
|
-
text: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: !0
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}, ke = { class: "tooltip" }, Ge = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "text"
|
|
18
|
-
};
|
|
19
|
-
function Fe(e, t, a, s, u, n) {
|
|
20
|
-
return m(), f("div", ke, [
|
|
21
|
-
Ve(e.$slots, "default", {}, void 0, !0),
|
|
22
|
-
a.text ? (m(), f("span", Ge, F(a.text), 1)) : $("", !0)
|
|
23
|
-
]);
|
|
24
|
-
}
|
|
25
|
-
const He = /* @__PURE__ */ C(Be, [["render", Fe], ["__scopeId", "data-v-64e1cb84"]]), te = (e, t) => ({
|
|
7
|
+
import { V as Z } from "./ValueSwitch-DYxCMQ9c.js";
|
|
8
|
+
const ae = (e, t) => ({
|
|
26
9
|
negative: e,
|
|
27
10
|
years: parseInt(t[1] ?? "0", 10),
|
|
28
11
|
months: parseInt(t[2] ?? "0", 10),
|
|
29
12
|
weeks: parseInt(t[3] ?? "0", 10),
|
|
30
13
|
days: parseInt(t[4] ?? "0", 10)
|
|
31
|
-
}),
|
|
14
|
+
}), ne = (e, t) => {
|
|
32
15
|
const a = parseInt(t[4]?.padEnd(3, "0") ?? "0", 10);
|
|
33
16
|
return {
|
|
34
17
|
negative: e,
|
|
@@ -37,62 +20,62 @@ const He = /* @__PURE__ */ C(Be, [["render", Fe], ["__scopeId", "data-v-64e1cb84
|
|
|
37
20
|
seconds: parseInt(t[3] ?? "0", 10),
|
|
38
21
|
milliseconds: a
|
|
39
22
|
};
|
|
40
|
-
},
|
|
23
|
+
}, Y = (e) => e.type === "DATE" ? e.interval.years === 0 && e.interval.months === 0 && e.interval.weeks === 0 && e.interval.days === 0 : e.interval.hours === 0 && e.interval.minutes === 0 && e.interval.seconds === 0 && e.interval.milliseconds === 0, $ = (e) => {
|
|
41
24
|
let t = "P";
|
|
42
25
|
return e.type === "DATE" ? t += `${e.interval.years}Y${e.interval.months}M${e.interval.weeks}W${e.interval.days}D` : t += `T${e.interval.hours}H${e.interval.minutes}M${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")}S`, e.interval.negative && (t = `-${t}`), t;
|
|
43
|
-
},
|
|
26
|
+
}, x = (e) => {
|
|
44
27
|
const t = (s, u) => s === 0 ? "" : s === 1 ? `${s} ${u} ` : `${s} ${u}s `;
|
|
45
28
|
let a = "";
|
|
46
29
|
if (e.type === "DATE") {
|
|
47
|
-
if (
|
|
30
|
+
if (Y(e))
|
|
48
31
|
return "0 days";
|
|
49
32
|
a += t(e.interval.years, "year"), a += t(e.interval.months, "month"), a += t(e.interval.weeks, "week"), a += t(e.interval.days, "day");
|
|
50
33
|
} else {
|
|
51
|
-
if (
|
|
34
|
+
if (Y(e))
|
|
52
35
|
return "0 seconds";
|
|
53
36
|
a += t(e.interval.hours, "hour"), a += t(e.interval.minutes, "minute");
|
|
54
37
|
const s = e.interval.milliseconds === 0;
|
|
55
38
|
(e.interval.seconds !== 0 || !s) && (s ? a += t(e.interval.seconds, "second") : a += `${e.interval.seconds}.${e.interval.milliseconds.toString().padStart(3, "0")} seconds `);
|
|
56
39
|
}
|
|
57
40
|
return e.interval.negative && (a = `-(${a.trim()})`), a.trim();
|
|
58
|
-
},
|
|
59
|
-
`^(?:${
|
|
41
|
+
}, se = "(\\d+)\\s*y(?:ears?)?", le = "(\\d+)\\s*m(?:o(?:nths?)?)?", re = "(\\d+)\\s*w(?:eeks?)?", ie = "(\\d+)\\s*d(?:ays?)?", oe = "(\\d+)\\s*h(?:ours?)?", ue = "(\\d+)\\s*m(?:in(?:s|utes?)?)?", de = "(\\d+)(?:[,.](\\d{1,3}))?\\s*s(?:ec(?:s|onds?)?)?", ce = new RegExp(
|
|
42
|
+
`^(?:${se})?\\s*(?:${le})?\\s*(?:${re})?\\s*(?:${ie})?\\s*$`,
|
|
60
43
|
"i"
|
|
61
|
-
),
|
|
62
|
-
`^(?:${
|
|
44
|
+
), me = new RegExp(
|
|
45
|
+
`^(?:${oe})?\\s*(?:${ue})?\\s*(?:${de})?$`,
|
|
63
46
|
"i"
|
|
64
|
-
),
|
|
65
|
-
`^\\s*-\\s*\\(\\s*${
|
|
47
|
+
), Be = new RegExp(
|
|
48
|
+
`^\\s*-\\s*\\(\\s*${ce.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
66
49
|
"i"
|
|
67
|
-
),
|
|
68
|
-
`^\\s*-\\s*(?:\\s*${
|
|
50
|
+
), ke = new RegExp(
|
|
51
|
+
`^\\s*-\\s*(?:\\s*${se}|${le}|${re}|${ie})\\s*$`,
|
|
69
52
|
"i"
|
|
70
|
-
),
|
|
71
|
-
`^\\s*-\\s*\\(\\s*${
|
|
53
|
+
), Ge = new RegExp(
|
|
54
|
+
`^\\s*-\\s*\\(\\s*${me.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
72
55
|
"i"
|
|
73
|
-
),
|
|
74
|
-
`^\\s*-\\s*(?:\\s*${
|
|
56
|
+
), Fe = new RegExp(
|
|
57
|
+
`^\\s*-\\s*(?:\\s*${oe}|${ue}|${de})\\s*$`,
|
|
75
58
|
"i"
|
|
76
|
-
),
|
|
59
|
+
), ve = (e) => {
|
|
77
60
|
if (e = e?.trim(), !e)
|
|
78
61
|
throw new Error("Empty interval string");
|
|
79
|
-
const t =
|
|
62
|
+
const t = ce.exec(e), a = Be.exec(e) ?? ke.exec(e), s = me.exec(e), u = Ge.exec(e) ?? Fe.exec(e), n = t ?? a, d = s ?? u, r = (a ?? u) !== null;
|
|
80
63
|
if (d && n)
|
|
81
64
|
throw new Error("Ambiguous time format");
|
|
82
65
|
if (n)
|
|
83
66
|
return {
|
|
84
67
|
type: "DATE",
|
|
85
|
-
interval:
|
|
68
|
+
interval: ae(r, n)
|
|
86
69
|
};
|
|
87
70
|
if (d)
|
|
88
71
|
return {
|
|
89
72
|
type: "TIME",
|
|
90
|
-
interval:
|
|
73
|
+
interval: ne(r, d)
|
|
91
74
|
};
|
|
92
75
|
throw new Error(`Invalid human readable time: ${e}`);
|
|
93
|
-
},
|
|
76
|
+
}, pe = (e, t) => {
|
|
94
77
|
try {
|
|
95
|
-
const a =
|
|
78
|
+
const a = ve(e), s = a.type, u = a.interval.negative;
|
|
96
79
|
if (s === t || t === "DATE_OR_TIME")
|
|
97
80
|
return {
|
|
98
81
|
valid: !0,
|
|
@@ -109,7 +92,7 @@ const He = /* @__PURE__ */ C(Be, [["render", Fe], ["__scopeId", "data-v-64e1cb84
|
|
|
109
92
|
if (s)
|
|
110
93
|
return {
|
|
111
94
|
type: "DATE",
|
|
112
|
-
interval:
|
|
95
|
+
interval: ae(
|
|
113
96
|
e.startsWith("-"),
|
|
114
97
|
s
|
|
115
98
|
)
|
|
@@ -117,13 +100,13 @@ const He = /* @__PURE__ */ C(Be, [["render", Fe], ["__scopeId", "data-v-64e1cb84
|
|
|
117
100
|
if (u)
|
|
118
101
|
return {
|
|
119
102
|
type: "TIME",
|
|
120
|
-
interval:
|
|
103
|
+
interval: ne(
|
|
121
104
|
e.startsWith("-"),
|
|
122
105
|
u
|
|
123
106
|
)
|
|
124
107
|
};
|
|
125
108
|
throw new Error(`Invalid ISO duration: ${e}`);
|
|
126
|
-
},
|
|
109
|
+
}, fe = (e, t) => {
|
|
127
110
|
try {
|
|
128
111
|
const a = y(e), s = a.type, u = a.interval.negative;
|
|
129
112
|
if (s === t || t === "DATE_OR_TIME")
|
|
@@ -135,32 +118,32 @@ const He = /* @__PURE__ */ C(Be, [["render", Fe], ["__scopeId", "data-v-64e1cb84
|
|
|
135
118
|
} catch {
|
|
136
119
|
return { valid: !1 };
|
|
137
120
|
}
|
|
138
|
-
},
|
|
139
|
-
const t =
|
|
121
|
+
}, He = (e) => {
|
|
122
|
+
const t = fe(e, "DATE_OR_TIME"), a = pe(
|
|
140
123
|
e,
|
|
141
124
|
"DATE_OR_TIME"
|
|
142
125
|
);
|
|
143
126
|
if (t.valid)
|
|
144
127
|
return y(e);
|
|
145
128
|
if (a.valid)
|
|
146
|
-
return
|
|
129
|
+
return ve(e);
|
|
147
130
|
throw new Error(`Invalid interval string: ${e}`);
|
|
148
|
-
},
|
|
149
|
-
const a =
|
|
131
|
+
}, O = (e, t) => {
|
|
132
|
+
const a = fe(e, t), s = pe(e, t);
|
|
150
133
|
return a.valid ? a : s.valid ? s : { valid: !1 };
|
|
151
|
-
},
|
|
134
|
+
}, Ue = {
|
|
152
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
153
136
|
fill: "none",
|
|
154
137
|
stroke: "#000",
|
|
155
138
|
"stroke-linejoin": "round",
|
|
156
139
|
viewBox: "0 0 32 32"
|
|
157
140
|
};
|
|
158
|
-
function
|
|
159
|
-
return
|
|
141
|
+
function Le(e, t) {
|
|
142
|
+
return p(), E("svg", Ue, [...t[0] || (t[0] = [
|
|
160
143
|
c("path", { d: "m19.7 17-4.6-2.6V8.7m6.3 15.6h8.7m-3.2-3.2 3.2 3.2-3.2 3.2m-18-5.4c-2.2-1.8-3.6-4.6-3.6-7.7 0-5.5 4.4-9.9 9.9-9.9S25 8.9 25 14.4s-4.4 9.9-9.9 9.9H1.9" }, null, -1)
|
|
161
144
|
])]);
|
|
162
145
|
}
|
|
163
|
-
const
|
|
146
|
+
const Xe = { render: Le }, Ke = 200, We = 50, ze = 0.1, qe = 1, Ze = {
|
|
164
147
|
name: "NumberInput",
|
|
165
148
|
components: {
|
|
166
149
|
ArrowIcon: Oe
|
|
@@ -239,7 +222,7 @@ const Ze = { render: ze }, Ye = 200, je = 50, Je = 0.1, Qe = 1, et = {
|
|
|
239
222
|
return this.type === "integer";
|
|
240
223
|
},
|
|
241
224
|
stepSize() {
|
|
242
|
-
return this.step !== null ? this.step : this.isInteger ?
|
|
225
|
+
return this.step !== null ? this.step : this.isInteger ? qe : ze;
|
|
243
226
|
},
|
|
244
227
|
inputClassList() {
|
|
245
228
|
let e = this.inputClasses;
|
|
@@ -328,8 +311,8 @@ const Ze = { render: ze }, Ye = 200, je = 50, Je = 0.1, Qe = 1, et = {
|
|
|
328
311
|
this.clicked = !0, this.spinnerArrowTimeout = setTimeout(() => {
|
|
329
312
|
this.spinnerArrowInterval = setInterval(() => {
|
|
330
313
|
this.changeValue(a);
|
|
331
|
-
},
|
|
332
|
-
},
|
|
314
|
+
}, We);
|
|
315
|
+
}, Ke);
|
|
333
316
|
return;
|
|
334
317
|
}
|
|
335
318
|
this.clicked && (this.clicked = !1, this.changeValue(a));
|
|
@@ -338,14 +321,14 @@ const Ze = { render: ze }, Ye = 200, je = 50, Je = 0.1, Qe = 1, et = {
|
|
|
338
321
|
this.hovered = !this.hovered;
|
|
339
322
|
}
|
|
340
323
|
}
|
|
341
|
-
},
|
|
324
|
+
}, Ye = ["id", "name", "value", "min", "max", "step", "disabled"], je = {
|
|
342
325
|
key: 0,
|
|
343
326
|
class: "invalid-marker"
|
|
344
327
|
};
|
|
345
|
-
function
|
|
328
|
+
function Je(e, t, a, s, u, n) {
|
|
346
329
|
const d = ye("ArrowIcon");
|
|
347
|
-
return
|
|
348
|
-
class:
|
|
330
|
+
return p(), E("div", {
|
|
331
|
+
class: D(["wrapper", { disabled: a.disabled, compact: a.compact }])
|
|
349
332
|
}, [
|
|
350
333
|
c("input", {
|
|
351
334
|
id: a.id,
|
|
@@ -357,38 +340,38 @@ function nt(e, t, a, s, u, n) {
|
|
|
357
340
|
min: a.min,
|
|
358
341
|
max: a.max,
|
|
359
342
|
step: n.stepSize,
|
|
360
|
-
class:
|
|
343
|
+
class: D(n.inputClassList),
|
|
361
344
|
disabled: a.disabled,
|
|
362
345
|
onInput: t[0] || (t[0] = (r) => n.onInput(r)),
|
|
363
346
|
onBlur: t[1] || (t[1] = (...r) => n.onBlur && n.onBlur(...r)),
|
|
364
347
|
onMouseenter: t[2] || (t[2] = (...r) => n.toggleHover && n.toggleHover(...r)),
|
|
365
348
|
onMouseleave: t[3] || (t[3] = (...r) => n.toggleHover && n.toggleHover(...r))
|
|
366
|
-
}, null, 42,
|
|
367
|
-
a.isValid ?
|
|
349
|
+
}, null, 42, Ye),
|
|
350
|
+
a.isValid ? F("", !0) : (p(), E("span", je)),
|
|
368
351
|
c("span", {
|
|
369
|
-
class:
|
|
370
|
-
onMousedown: t[4] || (t[4] =
|
|
371
|
-
onMouseup: t[5] || (t[5] =
|
|
352
|
+
class: D(["increase", { disabled: a.disabled }]),
|
|
353
|
+
onMousedown: t[4] || (t[4] = N((r) => n.mouseEvent(r, "increase"), ["prevent"])),
|
|
354
|
+
onMouseup: t[5] || (t[5] = N((r) => n.mouseEvent(r, "increase"), ["prevent"])),
|
|
372
355
|
onMouseleave: t[6] || (t[6] = (r) => n.mouseEvent(r, "increase"))
|
|
373
356
|
}, [
|
|
374
357
|
I(d)
|
|
375
358
|
], 34),
|
|
376
359
|
c("span", {
|
|
377
|
-
class:
|
|
378
|
-
onMousedown: t[7] || (t[7] =
|
|
379
|
-
onMouseup: t[8] || (t[8] =
|
|
360
|
+
class: D(["decrease", { disabled: a.disabled }]),
|
|
361
|
+
onMousedown: t[7] || (t[7] = N((r) => n.mouseEvent(r, "decrease"), ["prevent"])),
|
|
362
|
+
onMouseup: t[8] || (t[8] = N((r) => n.mouseEvent(r, "decrease"), ["prevent"])),
|
|
380
363
|
onMouseleave: t[9] || (t[9] = (r) => n.mouseEvent(r, "decrease"))
|
|
381
364
|
}, [
|
|
382
365
|
I(d)
|
|
383
366
|
], 34)
|
|
384
367
|
], 2);
|
|
385
368
|
}
|
|
386
|
-
const
|
|
369
|
+
const j = /* @__PURE__ */ U(Ze, [["render", Je], ["__scopeId", "data-v-0ce77f1e"]]), J = [
|
|
387
370
|
"years",
|
|
388
371
|
"months",
|
|
389
372
|
"weeks",
|
|
390
373
|
"days"
|
|
391
|
-
],
|
|
374
|
+
], Q = [
|
|
392
375
|
"hours",
|
|
393
376
|
"minutes",
|
|
394
377
|
"seconds",
|
|
@@ -402,21 +385,21 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
402
385
|
minutes: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
403
386
|
seconds: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
404
387
|
milliseconds: { min: 0, max: 999 }
|
|
405
|
-
},
|
|
388
|
+
}, ee = (e, t) => t === "DATE" ? {
|
|
406
389
|
type: "DATE",
|
|
407
390
|
interval: e.periodPart
|
|
408
391
|
} : {
|
|
409
392
|
type: "TIME",
|
|
410
393
|
interval: e.durationPart
|
|
411
|
-
},
|
|
394
|
+
}, _ = (e, t) => e.type === "DATE" ? {
|
|
412
395
|
...t,
|
|
413
396
|
periodPart: e.interval
|
|
414
397
|
} : {
|
|
415
398
|
...t,
|
|
416
399
|
durationPart: e.interval
|
|
417
|
-
},
|
|
400
|
+
}, B = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Qe = { class: "header" }, et = { class: "ascending-descending-switch-container" }, tt = { class: "input-grid" }, at = { class: "input-label" }, nt = { class: "input-label" }, st = { class: "accept-controls" }, lt = /* @__PURE__ */ H({
|
|
418
401
|
__name: "IntervalInputPopoverContent",
|
|
419
|
-
props: /* @__PURE__ */
|
|
402
|
+
props: /* @__PURE__ */ G({
|
|
420
403
|
format: {},
|
|
421
404
|
allowDescending: { type: Boolean }
|
|
422
405
|
}, {
|
|
@@ -429,31 +412,31 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
429
412
|
},
|
|
430
413
|
modelModifiers: {}
|
|
431
414
|
}),
|
|
432
|
-
emits: /* @__PURE__ */
|
|
415
|
+
emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
|
|
433
416
|
setup(e, { emit: t }) {
|
|
434
|
-
const a = t, s = e, u =
|
|
435
|
-
const
|
|
417
|
+
const a = t, s = e, u = k(e, "usedFormat"), n = k(e, "modelValue"), d = P(() => {
|
|
418
|
+
const f = u.value === "DATE" ? J : Q, v = u.value === "DATE" ? f.map(
|
|
436
419
|
(i) => n.value.periodPart[i]
|
|
437
|
-
) :
|
|
420
|
+
) : f.map(
|
|
438
421
|
(i) => n.value.durationPart[i]
|
|
439
422
|
);
|
|
440
423
|
for (let i = 0; i < v.length; i++) {
|
|
441
|
-
const g =
|
|
442
|
-
if (isNaN(
|
|
424
|
+
const g = f[i], M = v[i];
|
|
425
|
+
if (isNaN(M) || M < V[g].min || M > V[g].max)
|
|
443
426
|
return {
|
|
444
427
|
valid: !1,
|
|
445
|
-
reason: `${
|
|
428
|
+
reason: `${B(g)} out of bounds.`
|
|
446
429
|
};
|
|
447
430
|
}
|
|
448
431
|
return { valid: !0 };
|
|
449
|
-
}), r =
|
|
432
|
+
}), r = P({
|
|
450
433
|
get() {
|
|
451
434
|
return s.allowDescending ? u.value === "DATE" ? n.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : n.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
|
|
452
435
|
},
|
|
453
|
-
set(
|
|
454
|
-
n.value.periodPart.negative =
|
|
436
|
+
set(f) {
|
|
437
|
+
n.value.periodPart.negative = f === "DESCENDING", n.value.durationPart.negative = f === "DESCENDING";
|
|
455
438
|
}
|
|
456
|
-
}),
|
|
439
|
+
}), A = () => {
|
|
457
440
|
a(
|
|
458
441
|
"commit",
|
|
459
442
|
u.value,
|
|
@@ -461,10 +444,10 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
461
444
|
r.value
|
|
462
445
|
);
|
|
463
446
|
};
|
|
464
|
-
return (
|
|
465
|
-
c("span",
|
|
447
|
+
return (f, v) => (p(), E(C, null, [
|
|
448
|
+
c("span", Qe, [
|
|
466
449
|
v[2] || (v[2] = c("span", { class: "input-title" }, "Interval", -1)),
|
|
467
|
-
s.format === "DATE_OR_TIME" ? (
|
|
450
|
+
s.format === "DATE_OR_TIME" ? (p(), te(Z, {
|
|
468
451
|
key: 0,
|
|
469
452
|
modelValue: u.value,
|
|
470
453
|
"onUpdate:modelValue": v[0] || (v[0] = (i) => u.value = i),
|
|
@@ -473,10 +456,10 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
473
456
|
{ id: "TIME", text: "Time" }
|
|
474
457
|
],
|
|
475
458
|
compact: ""
|
|
476
|
-
}, null, 8, ["modelValue"])) :
|
|
459
|
+
}, null, 8, ["modelValue"])) : F("", !0)
|
|
477
460
|
]),
|
|
478
|
-
|
|
479
|
-
I(
|
|
461
|
+
b(c("div", et, [
|
|
462
|
+
I(Z, {
|
|
480
463
|
modelValue: r.value,
|
|
481
464
|
"onUpdate:modelValue": v[1] || (v[1] = (i) => r.value = i),
|
|
482
465
|
compact: "",
|
|
@@ -488,32 +471,32 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
488
471
|
], 512), [
|
|
489
472
|
[S, e.allowDescending]
|
|
490
473
|
]),
|
|
491
|
-
c("div",
|
|
492
|
-
(
|
|
474
|
+
c("div", tt, [
|
|
475
|
+
(p(!0), E(C, null, X(m(J), (i) => b((p(), E("span", {
|
|
493
476
|
key: i,
|
|
494
477
|
class: "labeled-date-time-input"
|
|
495
478
|
}, [
|
|
496
|
-
c("span",
|
|
497
|
-
I(
|
|
479
|
+
c("span", at, K(m(B)(i)), 1),
|
|
480
|
+
I(j, {
|
|
498
481
|
modelValue: n.value.periodPart[i],
|
|
499
482
|
"onUpdate:modelValue": (g) => n.value.periodPart[i] = g,
|
|
500
|
-
min:
|
|
501
|
-
max:
|
|
483
|
+
min: m(V)[i].min,
|
|
484
|
+
max: m(V)[i].max,
|
|
502
485
|
compact: "",
|
|
503
486
|
type: "integer"
|
|
504
487
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
|
|
505
488
|
], 512)), [
|
|
506
489
|
[S, u.value === "DATE"]
|
|
507
490
|
])), 128)),
|
|
508
|
-
(
|
|
491
|
+
(p(!0), E(C, null, X(m(Q), (i) => b((p(), E("span", {
|
|
509
492
|
key: i,
|
|
510
493
|
class: "labeled-date-time-input"
|
|
511
494
|
}, [
|
|
512
|
-
c("span",
|
|
513
|
-
I(
|
|
495
|
+
c("span", nt, K(m(B)(i)), 1),
|
|
496
|
+
I(j, {
|
|
514
497
|
"model-value": n.value.durationPart[i],
|
|
515
|
-
min:
|
|
516
|
-
max:
|
|
498
|
+
min: m(V)[i].min,
|
|
499
|
+
max: m(V)[i].max,
|
|
517
500
|
compact: "",
|
|
518
501
|
type: "integer",
|
|
519
502
|
"onUpdate:modelValue": (g) => {
|
|
@@ -524,18 +507,18 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
524
507
|
[S, u.value === "TIME"]
|
|
525
508
|
])), 128))
|
|
526
509
|
]),
|
|
527
|
-
c("div",
|
|
528
|
-
I(
|
|
510
|
+
c("div", st, [
|
|
511
|
+
I($e, {
|
|
529
512
|
text: d.value.valid ? "" : d.value.reason
|
|
530
513
|
}, {
|
|
531
514
|
default: W(() => [
|
|
532
|
-
I(
|
|
515
|
+
I(De, {
|
|
533
516
|
primary: "",
|
|
534
517
|
disabled: !d.value.valid,
|
|
535
|
-
onClick:
|
|
518
|
+
onClick: A
|
|
536
519
|
}, {
|
|
537
520
|
default: W(() => [...v[3] || (v[3] = [
|
|
538
|
-
|
|
521
|
+
Ae(" Set ", -1)
|
|
539
522
|
])]),
|
|
540
523
|
_: 1
|
|
541
524
|
}, 8, ["disabled"])
|
|
@@ -545,13 +528,13 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
545
528
|
])
|
|
546
529
|
], 64));
|
|
547
530
|
}
|
|
548
|
-
}),
|
|
531
|
+
}), rt = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-a372cf12"]]), it = { class: "input-fields" }, ot = ["disabled", "placeholder"], ut = {
|
|
549
532
|
key: 0,
|
|
550
533
|
class: "invalid-marker"
|
|
551
|
-
},
|
|
552
|
-
...
|
|
534
|
+
}, dt = ["disabled"], ct = {}, mt = /* @__PURE__ */ H({
|
|
535
|
+
...ct,
|
|
553
536
|
__name: "IntervalInput",
|
|
554
|
-
props: /* @__PURE__ */
|
|
537
|
+
props: /* @__PURE__ */ G({
|
|
555
538
|
format: { default: "DATE_OR_TIME" },
|
|
556
539
|
allowDescending: { type: Boolean, default: !0 },
|
|
557
540
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -564,10 +547,10 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
564
547
|
}),
|
|
565
548
|
emits: ["update:modelValue"],
|
|
566
549
|
setup(e) {
|
|
567
|
-
const t = e, a =
|
|
550
|
+
const t = e, a = k(e, "modelValue"), s = T(
|
|
568
551
|
(() => {
|
|
569
552
|
if (t.format === "DATE_OR_TIME") {
|
|
570
|
-
const o =
|
|
553
|
+
const o = O(
|
|
571
554
|
a.value,
|
|
572
555
|
"DATE_OR_TIME"
|
|
573
556
|
);
|
|
@@ -575,12 +558,12 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
575
558
|
} else
|
|
576
559
|
return t.format;
|
|
577
560
|
})()
|
|
578
|
-
), u =
|
|
561
|
+
), u = P(() => s.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), n = T(
|
|
579
562
|
(() => {
|
|
580
563
|
const o = y(
|
|
581
564
|
a.value
|
|
582
565
|
);
|
|
583
|
-
return
|
|
566
|
+
return _(o, {
|
|
584
567
|
periodPart: {
|
|
585
568
|
negative: !1,
|
|
586
569
|
years: 0,
|
|
@@ -598,72 +581,72 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
598
581
|
});
|
|
599
582
|
})()
|
|
600
583
|
), d = T(
|
|
601
|
-
|
|
584
|
+
x(
|
|
602
585
|
y(a.value)
|
|
603
586
|
)
|
|
604
|
-
), r =
|
|
605
|
-
const o =
|
|
587
|
+
), r = P(() => {
|
|
588
|
+
const o = O(
|
|
606
589
|
d.value,
|
|
607
590
|
"DATE_OR_TIME"
|
|
608
591
|
);
|
|
609
592
|
return o.valid && (t.allowDescending || !o.negative) && (o.type === s.value || t.format === "DATE_OR_TIME");
|
|
610
|
-
}),
|
|
611
|
-
const
|
|
593
|
+
}), A = T(null), f = T(null), v = T(null), i = (o, l) => {
|
|
594
|
+
const h = ee(
|
|
612
595
|
o,
|
|
613
596
|
l
|
|
614
597
|
);
|
|
615
|
-
d.value =
|
|
598
|
+
d.value = x(h), a.value = $(h), s.value = l, n.value = o;
|
|
616
599
|
}, g = () => {
|
|
617
|
-
n.value =
|
|
600
|
+
n.value = _(
|
|
618
601
|
y(a.value),
|
|
619
602
|
n.value
|
|
620
603
|
);
|
|
621
|
-
},
|
|
622
|
-
const l =
|
|
604
|
+
}, M = (o) => {
|
|
605
|
+
const l = O(
|
|
623
606
|
o,
|
|
624
607
|
"DATE_OR_TIME"
|
|
625
608
|
);
|
|
626
609
|
if (!l.valid || !t.allowDescending && l.negative || l.type !== s.value && t.format !== "DATE_OR_TIME")
|
|
627
610
|
return;
|
|
628
|
-
const
|
|
611
|
+
const h = He(
|
|
629
612
|
o
|
|
630
613
|
);
|
|
631
|
-
n.value =
|
|
632
|
-
|
|
614
|
+
n.value = _(
|
|
615
|
+
h,
|
|
633
616
|
n.value
|
|
634
|
-
), a.value =
|
|
635
|
-
},
|
|
617
|
+
), a.value = $(h), s.value = l.type, d.value = x(h);
|
|
618
|
+
}, he = (o) => {
|
|
636
619
|
const l = y(o);
|
|
637
|
-
d.value =
|
|
620
|
+
d.value = x(l), n.value = _(
|
|
638
621
|
l,
|
|
639
622
|
n.value
|
|
640
623
|
), a.value = o;
|
|
641
|
-
},
|
|
642
|
-
const l =
|
|
624
|
+
}, Ee = (o) => {
|
|
625
|
+
const l = ee(
|
|
643
626
|
n.value,
|
|
644
627
|
o
|
|
645
628
|
);
|
|
646
|
-
d.value =
|
|
647
|
-
},
|
|
648
|
-
o !== "DATE_OR_TIME" &&
|
|
649
|
-
},
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
},
|
|
629
|
+
d.value = x(l), a.value = $(l), s.value = o;
|
|
630
|
+
}, ge = (o) => {
|
|
631
|
+
o !== "DATE_OR_TIME" && Ee(o);
|
|
632
|
+
}, w = T(!1);
|
|
633
|
+
z(() => t.format, ge), z(a, he);
|
|
634
|
+
const L = (o) => {
|
|
635
|
+
M(o);
|
|
636
|
+
}, R = (o, l) => {
|
|
654
637
|
o && l ? i(
|
|
655
638
|
l.popoverValues,
|
|
656
639
|
l.usedFormat
|
|
657
|
-
) : g(),
|
|
640
|
+
) : g(), w.value = !1;
|
|
658
641
|
};
|
|
659
|
-
|
|
660
|
-
ignore: [
|
|
661
|
-
}),
|
|
662
|
-
const { floatingStyles:
|
|
642
|
+
be(A, () => R(!1), {
|
|
643
|
+
ignore: [f]
|
|
644
|
+
}), Pe("Escape", () => R(!1));
|
|
645
|
+
const { floatingStyles: Ie, update: Te } = Re(f, A, {
|
|
663
646
|
middleware: [
|
|
664
|
-
|
|
647
|
+
_e(),
|
|
665
648
|
// move left/right to keep it on screen
|
|
666
|
-
|
|
649
|
+
Se({
|
|
667
650
|
// flip it vertically to keep it on screen
|
|
668
651
|
mainAxis: !0,
|
|
669
652
|
crossAxis: !1
|
|
@@ -679,61 +662,61 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
679
662
|
placement: "top-end",
|
|
680
663
|
whileElementsMounted: Ne
|
|
681
664
|
});
|
|
682
|
-
return (o, l) => (
|
|
665
|
+
return (o, l) => (p(), E("div", null, [
|
|
683
666
|
c("div", {
|
|
684
|
-
class:
|
|
667
|
+
class: D(["wrapper", { disabled: e.disabled, compact: e.compact }])
|
|
685
668
|
}, [
|
|
686
|
-
c("span",
|
|
687
|
-
|
|
669
|
+
c("span", it, [
|
|
670
|
+
b(c("input", {
|
|
688
671
|
ref_key: "inputTextFieldRef",
|
|
689
672
|
ref: v,
|
|
690
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
673
|
+
"onUpdate:modelValue": l[0] || (l[0] = (h) => d.value = h),
|
|
691
674
|
type: "text",
|
|
692
675
|
disabled: e.disabled,
|
|
693
676
|
placeholder: u.value,
|
|
694
677
|
spellcheck: "false",
|
|
695
|
-
onFocus: l[1] || (l[1] = (
|
|
696
|
-
onFocusout: l[2] || (l[2] = () =>
|
|
697
|
-
onKeypress: l[3] || (l[3] =
|
|
698
|
-
}, null, 40,
|
|
699
|
-
[
|
|
678
|
+
onFocus: l[1] || (l[1] = (h) => w.value = !1),
|
|
679
|
+
onFocusout: l[2] || (l[2] = () => L(d.value)),
|
|
680
|
+
onKeypress: l[3] || (l[3] = Me(() => L(d.value), ["enter"]))
|
|
681
|
+
}, null, 40, ot), [
|
|
682
|
+
[we, d.value]
|
|
700
683
|
]),
|
|
701
|
-
r.value ?
|
|
684
|
+
r.value ? F("", !0) : (p(), E("span", ut)),
|
|
702
685
|
c("button", {
|
|
703
686
|
ref_key: "togglePopoverButtonRef",
|
|
704
|
-
ref:
|
|
687
|
+
ref: f,
|
|
705
688
|
class: "trigger-popover-button",
|
|
706
689
|
disabled: e.disabled,
|
|
707
690
|
onClick: l[4] || (l[4] = () => {
|
|
708
|
-
|
|
691
|
+
w.value ? R(!1) : (w.value = !0, m(Te)());
|
|
709
692
|
})
|
|
710
693
|
}, [
|
|
711
|
-
I(
|
|
712
|
-
], 8,
|
|
694
|
+
I(m(Xe))
|
|
695
|
+
], 8, dt)
|
|
713
696
|
])
|
|
714
697
|
], 2),
|
|
715
|
-
|
|
698
|
+
b(c("div", {
|
|
716
699
|
ref_key: "durationInputPopoverRef",
|
|
717
|
-
ref:
|
|
700
|
+
ref: A,
|
|
718
701
|
class: "control-popup",
|
|
719
|
-
style:
|
|
702
|
+
style: xe(m(Ie))
|
|
720
703
|
}, [
|
|
721
|
-
I(
|
|
704
|
+
I(rt, {
|
|
722
705
|
"model-value": n.value,
|
|
723
706
|
"used-format": s.value,
|
|
724
707
|
format: t.format,
|
|
725
708
|
"allow-descending": t.allowDescending,
|
|
726
|
-
onCommit: l[5] || (l[5] = (
|
|
727
|
-
usedFormat:
|
|
728
|
-
popoverValues:
|
|
709
|
+
onCommit: l[5] || (l[5] = (h, Ve, pt) => R(!0, {
|
|
710
|
+
usedFormat: h,
|
|
711
|
+
popoverValues: Ve
|
|
729
712
|
}))
|
|
730
713
|
}, null, 8, ["model-value", "used-format", "format", "allow-descending"])
|
|
731
714
|
], 4), [
|
|
732
|
-
[S,
|
|
715
|
+
[S, w.value]
|
|
733
716
|
])
|
|
734
717
|
]));
|
|
735
718
|
}
|
|
736
|
-
}),
|
|
719
|
+
}), vt = /* @__PURE__ */ U(mt, [["__scopeId", "data-v-f37d874a"]]), yt = /* @__PURE__ */ H({
|
|
737
720
|
__name: "IntervalControl",
|
|
738
721
|
props: {
|
|
739
722
|
control: {},
|
|
@@ -745,23 +728,24 @@ const Y = /* @__PURE__ */ C(et, [["render", nt], ["__scopeId", "data-v-0ce77f1e"
|
|
|
745
728
|
labelForId: {}
|
|
746
729
|
},
|
|
747
730
|
setup(e) {
|
|
748
|
-
const t = e, a =
|
|
731
|
+
const t = e, a = P(
|
|
749
732
|
() => t.control.uischema
|
|
750
|
-
), s =
|
|
733
|
+
), s = q(
|
|
751
734
|
a,
|
|
752
735
|
"intervalType",
|
|
753
736
|
"DATE_OR_TIME"
|
|
754
|
-
);
|
|
755
|
-
return (
|
|
737
|
+
), u = q(a, "allowDescending", !0);
|
|
738
|
+
return (n, d) => (p(), te(m(vt), {
|
|
756
739
|
id: e.labelForId,
|
|
757
740
|
compact: "",
|
|
741
|
+
"allow-descending": m(u),
|
|
758
742
|
disabled: e.disabled,
|
|
759
743
|
"model-value": e.control.data,
|
|
760
|
-
format:
|
|
744
|
+
format: m(s),
|
|
761
745
|
"onUpdate:modelValue": e.changeValue
|
|
762
|
-
}, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"]));
|
|
746
|
+
}, null, 8, ["id", "allow-descending", "disabled", "model-value", "format", "onUpdate:modelValue"]));
|
|
763
747
|
}
|
|
764
748
|
});
|
|
765
749
|
export {
|
|
766
|
-
|
|
750
|
+
yt as default
|
|
767
751
|
};
|