@knime/jsonforms 1.10.0 → 1.10.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 +8 -0
- package/dist/{AnyOfTwinlist-DeqIlR2B.js → AnyOfTwinlist-CAyoczAB.js} +1 -1
- package/dist/{Button-CN9kOg52.js → Button-BzZgjDcV.js} +1 -1
- package/dist/{Checkbox-BECqYUi7.js → Checkbox-C_i21GaA.js} +1 -1
- package/dist/{CheckboxControl-YAifFlUs.js → CheckboxControl-DDoLA6Vd.js} +2 -2
- package/dist/{Checkboxes-SN0Gyz3F.js → Checkboxes-C_e0UeAC.js} +2 -2
- package/dist/{CheckboxesControl-B9FhxSt0.js → CheckboxesControl-mSVKQ6CW.js} +2 -2
- package/dist/{ComboBoxControl-CLROGipS.js → ComboBoxControl-BY9Wb-2K.js} +5 -5
- package/dist/{DateControl-BMIbCzdJ.js → DateControl-YjVx-aFd.js} +1 -1
- package/dist/{DateTimeControl-CxFb7-M5.js → DateTimeControl-D5Z7nHgz.js} +2 -2
- package/dist/{DateTimeFormatInput-BoT3Fq6o.js → DateTimeFormatInput-DP9GTXiX.js} +57 -57
- package/dist/{DateTimeFormatPickerControl-Bh6dVZmY.js → DateTimeFormatPickerControl-DdIvsCjx.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-7Z0nCv1N.js → DateTimeFormatPickerWithTypeControl-CrrpUdTR.js} +3 -3
- package/dist/{DateTimeInput-C4Nh_2EL.js → DateTimeInput-BSUVtZ_C.js} +1182 -1182
- package/dist/{Dropdown-3hPIkzit.js → Dropdown-DP_F92tv.js} +86 -87
- package/dist/{DropdownControl-UjRCUZHh.js → DropdownControl-GMJULpL6.js} +4 -4
- package/dist/{HorizontalLayout-CJ_o8Fs4.js → HorizontalLayout-COzD3yLU.js} +1 -1
- package/dist/{InputField-dinsVJC1.js → InputField-BF7vTszr.js} +39 -39
- package/dist/{IntegerControl-DYv-Y9M7.js → IntegerControl-CKIl5Rfi.js} +1 -1
- package/dist/{IntervalControl-ETsNbmWj.js → IntervalControl-C2ykMH4V.js} +129 -129
- package/dist/{LoadingDropdown-BBu6y57e.js → LoadingDropdown-CxqiKfdN.js} +3 -3
- package/dist/{MultimodeTwinlistControl-B-Fm5b9C.js → MultimodeTwinlistControl-BM744sO6.js} +27 -27
- package/dist/{MultiselectListBox-DiY_1JbY.js → MultiselectListBox-DwBSUb9V.js} +23 -25
- package/dist/{NameFilter-ByVouGxz.js → NameFilter-Dgf1mtuH.js} +1 -1
- package/dist/{NumberControl-8pxttJYW.js → NumberControl-Cp0OiNDl.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-0MWDRFG4.js → NumberControlBase.vue_vue_type_script_setup_true_lang-B7BnKygX.js} +2 -2
- package/dist/{NumberInput-BsI5jyyt.js → NumberInput-H3BZ_gou.js} +2 -2
- package/dist/{OneOfDropdown-wSdpOv-h.js → OneOfDropdown-DbkVGpS-.js} +1 -1
- package/dist/{RadioControl-DrHwFQHw.js → RadioControl-9cZ9L-XZ.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-E93Q0_oH.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DXLEuMzn.js} +2 -2
- package/dist/{RichTextControl-C0MHCvEi.js → RichTextControl-B6KPOKpK.js} +1915 -1915
- package/dist/{SectionHeading-Dupn5jB4.js → SectionHeading-BMWemtGd.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-u8QsGw29.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js} +3747 -3746
- package/dist/{SectionLayout-B1wqBbiJ.js → SectionLayout-DR_wqkbw.js} +3 -3
- package/dist/{SettingsSubPanel-CENkQVK4.js → SettingsSubPanel-TN03TZ-e.js} +1 -1
- package/dist/SettingsSubPanelLayout-DxJd3igq.js +61 -0
- package/dist/{SimpleButtonControl-C5XhU03v.js → SimpleButtonControl-BBy1H52n.js} +3 -3
- package/dist/{SimpleTwinlistControl-B0LaCmtv.js → SimpleTwinlistControl-lyNwPBvG.js} +2 -2
- package/dist/{SingleSelectControl-CK4-CrfC.js → SingleSelectControl-BRjpWFqk.js} +2 -2
- package/dist/{SortListControl-D-JHzIyw.js → SortListControl-BTrDdu9O.js} +121 -121
- package/dist/{TextAreaControl-CVjex7AA.js → TextAreaControl-B1-g-8ug.js} +1 -1
- package/dist/{TextControl-E0OK9u3d.js → TextControl-NsT1R1rk.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DIBicKjn.js → TextControl.vue_vue_type_script_setup_true_lang-Dgyo9rJ-.js} +4 -4
- package/dist/{TimeControl-CjoQmYQT.js → TimeControl-CWjNnOHM.js} +2 -2
- package/dist/{TwinlistControlBase-BRT_sYid.js → TwinlistControlBase-Dam1VsbM.js} +3 -3
- package/dist/{TwinlistLoadingInfo-BHR4sp2h.js → TwinlistLoadingInfo-y6JvMoCY.js} +301 -301
- package/dist/{TypedStringFilter-C7u3z9EA.js → TypedStringFilter-BjzWIu-L.js} +1 -1
- package/dist/ValueSwitch-DZ5LB9vA.js +131 -0
- package/dist/{ValueSwitchControl-DRC37vZO.js → ValueSwitchControl-BCpz0Ya4.js} +1 -1
- package/dist/{VerticalLayout-HTwvzYs2.js → VerticalLayout-WkUU2XH3.js} +2 -2
- package/dist/{VerticalLayoutBase-CaUHhg4c.js → VerticalLayoutBase-413o9U_2.js} +1 -1
- package/dist/{ZonedDateTimeControl-Dry6mj8Q.js → ZonedDateTimeControl-6u9Nbw2f.js} +4 -4
- package/dist/{_baseEach-qp9WwRfp.js → _baseEach-D8bWEfeT.js} +2 -2
- package/dist/{_baseIteratee-D1BrioPy.js → _baseIteratee-c38lvCZS.js} +3 -3
- package/dist/{_getTag-D8q3h3ou.js → _getTag-DwDUrDKD.js} +1 -1
- package/dist/arrow-dropdown-DdgjzLAO.js +17 -0
- package/dist/arrow-next-CIOU5o42.js +17 -0
- package/dist/close-BuY4mhXV.js +17 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +73 -73
- package/dist/{localTimeUtils-BAL2gOb_.js → localTimeUtils-Bpn7Hjtc.js} +1 -1
- package/dist/{magic-string.es-BNAF4une.js → magic-string.es-Dlayy_3o.js} +1 -1
- package/dist/reload-BVbCGubF.js +17 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +11 -20
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +3 -12
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -12
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +4 -25
- package/dist/src/layoutComponents/Form.vue.d.ts +1 -1
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -10
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +1 -10
- package/dist/src/layoutComponents/SettingsSubPanelLayout.vue.d.ts +1 -10
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -10
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +3 -12
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +3 -12
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +3 -28
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +2 -2
- package/dist/src/loading/LoadingDialog.vue.d.ts +1 -1
- package/dist/src/renderers/defaultRenderers.d.ts +106 -1095
- package/dist/src/renderers/dropdownRenderer.d.ts +3 -219
- package/dist/src/renderers/fallbackRenderers.d.ts +4 -262
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -43
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +3 -87
- package/dist/src/renderers/sectionSubPanelLayoutRenderer.d.ts +1 -43
- package/dist/src/renderers/sortListRenderer.d.ts +85 -282
- package/dist/src/renderers/textMessageRenderer.d.ts +1 -109
- package/dist/src/renderers/textRenderer.d.ts +3 -219
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -86
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +3 -12
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +3 -12
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +1 -10
- package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +3 -12
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/SortListControl.vue.d.ts +8 -73
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/TextControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/composables/usePossibleValues.d.ts +3 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +1 -10
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +1 -10
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -10
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +4 -31
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -10
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +1 -10
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +4 -25
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +1 -10
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +6 -0
- package/dist/{svgWithTitle-BomcA1vs.js → svgWithTitle-CEHRG42c.js} +2 -2
- package/dist/testUtils/component.d.ts +10 -10
- package/dist/testing.js +4395 -4085
- package/dist/{toString-DkTEiU39.js → toString-BC2RXvs0.js} +1 -1
- package/dist/{useBuiltinValidations-DXisZ150.js → useBuiltinValidations-BsKhdvbW.js} +1 -1
- package/dist/{usePossibleValues-BYX8n8sq.js → usePossibleValues-D12PcddT.js} +1 -1
- package/package.json +6 -6
- package/dist/SettingsSubPanelLayout-BzokvPPl.js +0 -61
- package/dist/ValueSwitch-CTCKgRvt.js +0 -138
- package/dist/arrow-dropdown-DjUxzjqC.js +0 -17
- package/dist/arrow-next-Qa8PNb04.js +0 -17
- package/dist/close-h7XT0ja0.js +0 -17
- package/dist/reload-BhzcZRFp.js +0 -17
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { _ as H, q as
|
|
3
|
-
import { o as
|
|
4
|
-
import { u as
|
|
5
|
-
import { N as W } from "./NumberInput-
|
|
6
|
-
import { V as z } from "./ValueSwitch-
|
|
7
|
-
const
|
|
1
|
+
import { openBlock as m, createElementBlock as E, renderSlot as ge, toDisplayString as O, createCommentVNode as B, createElementVNode as v, defineComponent as F, mergeModels as G, useModel as k, computed as y, Fragment as N, createBlock as J, withDirectives as R, createVNode as g, vShow as b, renderList as K, unref as c, withCtx as X, createTextVNode as he, ref as _, watch as q, normalizeClass as De, withKeys as ye, vModelText as xe, normalizeStyle as Me } from "vue";
|
|
2
|
+
import { _ as H, q as Pe, u as $e } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
|
|
3
|
+
import { o as Re, a as Ae } from "./index-Bf0xDq3g.js";
|
|
4
|
+
import { u as we, s as be, f as Ne, o as Ve, a as Se } from "./floating-ui.vue-B-MrqKCT.js";
|
|
5
|
+
import { N as W } from "./NumberInput-H3BZ_gou.js";
|
|
6
|
+
import { V as z } from "./ValueSwitch-DZ5LB9vA.js";
|
|
7
|
+
const Ce = {
|
|
8
8
|
name: "Tooltip",
|
|
9
9
|
props: {
|
|
10
10
|
text: {
|
|
@@ -12,17 +12,17 @@ const Ge = {
|
|
|
12
12
|
required: !0
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
},
|
|
15
|
+
}, Oe = { class: "tooltip" }, Ge = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "text"
|
|
18
18
|
};
|
|
19
|
-
function
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
a.text ? (
|
|
19
|
+
function ke(e, t, a, n, i, s) {
|
|
20
|
+
return m(), E("div", Oe, [
|
|
21
|
+
ge(e.$slots, "default", {}, void 0, !0),
|
|
22
|
+
a.text ? (m(), E("span", Ge, O(a.text), 1)) : B("", !0)
|
|
23
23
|
]);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const Be = /* @__PURE__ */ H(Ce, [["render", ke], ["__scopeId", "data-v-05123edc"]]), Q = (e, t) => ({
|
|
26
26
|
negative: e,
|
|
27
27
|
years: parseInt(t[1] ?? "0", 10),
|
|
28
28
|
months: parseInt(t[2] ?? "0", 10),
|
|
@@ -41,7 +41,7 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
41
41
|
}, L = (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, V = (e) => {
|
|
42
42
|
let t = "P";
|
|
43
43
|
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;
|
|
44
|
-
},
|
|
44
|
+
}, $ = (e) => {
|
|
45
45
|
const t = (n, i) => n === 0 ? "" : n === 1 ? `${n} ${i} ` : `${n} ${i}s `;
|
|
46
46
|
let a = "";
|
|
47
47
|
if (e.type === "DATE") {
|
|
@@ -62,33 +62,33 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
62
62
|
), de = new RegExp(
|
|
63
63
|
`^(?:${oe})?\\s*(?:${le})?\\s*(?:${re})?$`,
|
|
64
64
|
"i"
|
|
65
|
-
),
|
|
65
|
+
), Fe = new RegExp(
|
|
66
66
|
`^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
67
67
|
"i"
|
|
68
|
-
),
|
|
68
|
+
), He = new RegExp(
|
|
69
69
|
`^\\s*-\\s*(?:\\s*${te}|${ae}|${ne}|${se})\\s*$`,
|
|
70
70
|
"i"
|
|
71
|
-
),
|
|
71
|
+
), Ue = new RegExp(
|
|
72
72
|
`^\\s*-\\s*\\(\\s*${de.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
73
73
|
"i"
|
|
74
|
-
),
|
|
74
|
+
), Ke = new RegExp(
|
|
75
75
|
`^\\s*-\\s*(?:\\s*${oe}|${le}|${re})\\s*$`,
|
|
76
76
|
"i"
|
|
77
77
|
), ue = (e) => {
|
|
78
78
|
if (e = e == null ? void 0 : e.trim(), !e)
|
|
79
79
|
throw new Error("Empty interval string");
|
|
80
|
-
const t = ie.exec(e), a =
|
|
80
|
+
const t = ie.exec(e), a = Fe.exec(e) ?? He.exec(e), n = de.exec(e), i = Ue.exec(e) ?? Ke.exec(e), s = t ?? a, d = n ?? i, T = (a ?? i) !== null;
|
|
81
81
|
if (d && s)
|
|
82
82
|
throw new Error("Ambiguous time format");
|
|
83
83
|
if (s)
|
|
84
84
|
return {
|
|
85
85
|
type: "DATE",
|
|
86
|
-
interval: Q(
|
|
86
|
+
interval: Q(T, s)
|
|
87
87
|
};
|
|
88
88
|
if (d)
|
|
89
89
|
return {
|
|
90
90
|
type: "TIME",
|
|
91
|
-
interval: ee(
|
|
91
|
+
interval: ee(T, d)
|
|
92
92
|
};
|
|
93
93
|
throw new Error(`Invalid human readable time: ${e}`);
|
|
94
94
|
}, ce = (e, t) => {
|
|
@@ -124,7 +124,7 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
124
124
|
)
|
|
125
125
|
};
|
|
126
126
|
throw new Error(`Invalid ISO duration: ${e}`);
|
|
127
|
-
},
|
|
127
|
+
}, ve = (e, t) => {
|
|
128
128
|
try {
|
|
129
129
|
const a = D(e), n = a.type, i = a.interval.negative;
|
|
130
130
|
if (n === t || t === "DATE_OR_TIME")
|
|
@@ -136,8 +136,8 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
136
136
|
} catch {
|
|
137
137
|
return { valid: !1 };
|
|
138
138
|
}
|
|
139
|
-
},
|
|
140
|
-
const t =
|
|
139
|
+
}, Xe = (e) => {
|
|
140
|
+
const t = ve(e, "DATE_OR_TIME"), a = ce(
|
|
141
141
|
e,
|
|
142
142
|
"DATE_OR_TIME"
|
|
143
143
|
);
|
|
@@ -147,21 +147,21 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
147
147
|
return ue(e);
|
|
148
148
|
throw new Error(`Invalid interval string: ${e}`);
|
|
149
149
|
}, S = (e, t) => {
|
|
150
|
-
const a =
|
|
150
|
+
const a = ve(e, t), n = ce(e, t);
|
|
151
151
|
return a.valid ? a : n.valid ? n : { valid: !1 };
|
|
152
|
-
},
|
|
152
|
+
}, qe = {
|
|
153
153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
154
154
|
fill: "none",
|
|
155
155
|
stroke: "#000",
|
|
156
156
|
"stroke-linejoin": "round",
|
|
157
157
|
viewBox: "0 0 32 32"
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
]
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
};
|
|
159
|
+
function We(e, t) {
|
|
160
|
+
return m(), E("svg", qe, t[0] || (t[0] = [
|
|
161
|
+
v("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)
|
|
162
|
+
]));
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const ze = { render: We }, Y = [
|
|
165
165
|
"years",
|
|
166
166
|
"months",
|
|
167
167
|
"weeks",
|
|
@@ -171,7 +171,7 @@ const je = { render: Ze }, Y = [
|
|
|
171
171
|
"minutes",
|
|
172
172
|
"seconds",
|
|
173
173
|
"milliseconds"
|
|
174
|
-
],
|
|
174
|
+
], h = {
|
|
175
175
|
years: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
176
176
|
months: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
177
177
|
weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
@@ -192,7 +192,7 @@ const je = { render: Ze }, Y = [
|
|
|
192
192
|
} : {
|
|
193
193
|
...t,
|
|
194
194
|
durationPart: e.interval
|
|
195
|
-
}, C = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(),
|
|
195
|
+
}, C = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Le = { class: "header" }, Ye = { class: "ascending-descending-switch-container" }, Ze = { class: "input-grid" }, je = { class: "input-label" }, Je = { class: "input-label" }, Qe = { class: "accept-controls" }, et = /* @__PURE__ */ F({
|
|
196
196
|
__name: "IntervalInputPopoverContent",
|
|
197
197
|
props: /* @__PURE__ */ G({
|
|
198
198
|
format: {},
|
|
@@ -210,21 +210,21 @@ const je = { render: Ze }, Y = [
|
|
|
210
210
|
emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
|
|
211
211
|
setup(e, { emit: t }) {
|
|
212
212
|
const a = t, n = e, i = k(e, "usedFormat"), s = k(e, "modelValue"), d = y(() => {
|
|
213
|
-
const p = i.value === "DATE" ? Y : Z,
|
|
213
|
+
const p = i.value === "DATE" ? Y : Z, u = i.value === "DATE" ? p.map(
|
|
214
214
|
(r) => s.value.periodPart[r]
|
|
215
215
|
) : p.map(
|
|
216
216
|
(r) => s.value.durationPart[r]
|
|
217
217
|
);
|
|
218
|
-
for (let r = 0; r <
|
|
219
|
-
const
|
|
220
|
-
if (isNaN(
|
|
218
|
+
for (let r = 0; r < u.length; r++) {
|
|
219
|
+
const I = p[r], M = u[r];
|
|
220
|
+
if (isNaN(M) || M < h[I].min || M > h[I].max)
|
|
221
221
|
return {
|
|
222
222
|
valid: !1,
|
|
223
|
-
reason: `${C(
|
|
223
|
+
reason: `${C(I)} out of bounds.`
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
return { valid: !0 };
|
|
227
|
-
}),
|
|
227
|
+
}), T = y({
|
|
228
228
|
get() {
|
|
229
229
|
return n.allowDescending ? i.value === "DATE" ? s.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : s.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
|
|
230
230
|
},
|
|
@@ -236,16 +236,16 @@ const je = { render: Ze }, Y = [
|
|
|
236
236
|
"commit",
|
|
237
237
|
i.value,
|
|
238
238
|
s.value,
|
|
239
|
-
|
|
239
|
+
T.value
|
|
240
240
|
);
|
|
241
241
|
};
|
|
242
|
-
return (p,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
n.format === "DATE_OR_TIME" ? (
|
|
242
|
+
return (p, u) => (m(), E(N, null, [
|
|
243
|
+
v("span", Le, [
|
|
244
|
+
u[2] || (u[2] = v("span", { class: "input-title" }, "Interval", -1)),
|
|
245
|
+
n.format === "DATE_OR_TIME" ? (m(), J(z, {
|
|
246
246
|
key: 0,
|
|
247
247
|
modelValue: i.value,
|
|
248
|
-
"onUpdate:modelValue":
|
|
248
|
+
"onUpdate:modelValue": u[0] || (u[0] = (r) => i.value = r),
|
|
249
249
|
"possible-values": [
|
|
250
250
|
{ id: "DATE", text: "Date" },
|
|
251
251
|
{ id: "TIME", text: "Time" }
|
|
@@ -253,10 +253,10 @@ const je = { render: Ze }, Y = [
|
|
|
253
253
|
compact: ""
|
|
254
254
|
}, null, 8, ["modelValue"])) : B("", !0)
|
|
255
255
|
]),
|
|
256
|
-
R(
|
|
257
|
-
|
|
258
|
-
modelValue:
|
|
259
|
-
"onUpdate:modelValue":
|
|
256
|
+
R(v("div", Ye, [
|
|
257
|
+
g(z, {
|
|
258
|
+
modelValue: T.value,
|
|
259
|
+
"onUpdate:modelValue": u[1] || (u[1] = (r) => T.value = r),
|
|
260
260
|
compact: "",
|
|
261
261
|
"possible-values": [
|
|
262
262
|
{ id: "ASCENDING", text: "Forward" },
|
|
@@ -266,55 +266,55 @@ const je = { render: Ze }, Y = [
|
|
|
266
266
|
], 512), [
|
|
267
267
|
[b, p.allowDescending]
|
|
268
268
|
]),
|
|
269
|
-
|
|
270
|
-
(
|
|
269
|
+
v("div", Ze, [
|
|
270
|
+
(m(!0), E(N, null, K(c(Y), (r) => R((m(), E("span", {
|
|
271
271
|
key: r,
|
|
272
272
|
class: "labeled-date-time-input"
|
|
273
273
|
}, [
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
v("span", je, O(c(C)(r)), 1),
|
|
275
|
+
g(W, {
|
|
276
276
|
modelValue: s.value.periodPart[r],
|
|
277
|
-
"onUpdate:modelValue": (
|
|
278
|
-
min:
|
|
279
|
-
max:
|
|
277
|
+
"onUpdate:modelValue": (I) => s.value.periodPart[r] = I,
|
|
278
|
+
min: c(h)[r].min,
|
|
279
|
+
max: c(h)[r].max,
|
|
280
280
|
compact: "",
|
|
281
281
|
type: "integer"
|
|
282
282
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
|
|
283
283
|
], 512)), [
|
|
284
284
|
[b, i.value === "DATE"]
|
|
285
285
|
])), 128)),
|
|
286
|
-
(
|
|
286
|
+
(m(!0), E(N, null, K(c(Z), (r) => R((m(), E("span", {
|
|
287
287
|
key: r,
|
|
288
288
|
class: "labeled-date-time-input"
|
|
289
289
|
}, [
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
v("span", Je, O(c(C)(r)), 1),
|
|
291
|
+
g(W, {
|
|
292
292
|
"model-value": s.value.durationPart[r],
|
|
293
|
-
min:
|
|
294
|
-
max:
|
|
293
|
+
min: c(h)[r].min,
|
|
294
|
+
max: c(h)[r].max,
|
|
295
295
|
compact: "",
|
|
296
296
|
type: "integer",
|
|
297
|
-
"onUpdate:modelValue": (
|
|
298
|
-
s.value.durationPart[r] =
|
|
297
|
+
"onUpdate:modelValue": (I) => {
|
|
298
|
+
s.value.durationPart[r] = I;
|
|
299
299
|
}
|
|
300
300
|
}, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
|
|
301
301
|
], 512)), [
|
|
302
302
|
[b, i.value === "TIME"]
|
|
303
303
|
])), 128))
|
|
304
304
|
]),
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
v("div", Qe, [
|
|
306
|
+
g(Be, {
|
|
307
307
|
text: d.value.valid ? "" : d.value.reason
|
|
308
308
|
}, {
|
|
309
309
|
default: X(() => [
|
|
310
|
-
|
|
310
|
+
g(Pe, {
|
|
311
311
|
primary: "",
|
|
312
312
|
disabled: !d.value.valid,
|
|
313
313
|
onClick: x
|
|
314
314
|
}, {
|
|
315
|
-
default: X(() => [
|
|
316
|
-
|
|
317
|
-
]),
|
|
315
|
+
default: X(() => u[3] || (u[3] = [
|
|
316
|
+
he(" Set ")
|
|
317
|
+
])),
|
|
318
318
|
_: 1
|
|
319
319
|
}, 8, ["disabled"])
|
|
320
320
|
]),
|
|
@@ -323,11 +323,11 @@ const je = { render: Ze }, Y = [
|
|
|
323
323
|
])
|
|
324
324
|
], 64));
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), tt = /* @__PURE__ */ H(et, [["__scopeId", "data-v-9492a842"]]), at = { class: "input-fields" }, nt = ["disabled", "placeholder"], st = {
|
|
327
327
|
key: 0,
|
|
328
328
|
class: "invalid-marker"
|
|
329
|
-
},
|
|
330
|
-
...
|
|
329
|
+
}, ot = ["disabled"], lt = {}, rt = /* @__PURE__ */ F({
|
|
330
|
+
...lt,
|
|
331
331
|
__name: "IntervalInput",
|
|
332
332
|
props: /* @__PURE__ */ G({
|
|
333
333
|
format: { default: "DATE_OR_TIME" },
|
|
@@ -342,7 +342,7 @@ const je = { render: Ze }, Y = [
|
|
|
342
342
|
}),
|
|
343
343
|
emits: ["update:modelValue"],
|
|
344
344
|
setup(e) {
|
|
345
|
-
const t = e, a = k(e, "modelValue"), n =
|
|
345
|
+
const t = e, a = k(e, "modelValue"), n = _(
|
|
346
346
|
(() => {
|
|
347
347
|
if (t.format === "DATE_OR_TIME") {
|
|
348
348
|
const o = S(
|
|
@@ -353,7 +353,7 @@ const je = { render: Ze }, Y = [
|
|
|
353
353
|
} else
|
|
354
354
|
return t.format;
|
|
355
355
|
})()
|
|
356
|
-
), i = y(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), s =
|
|
356
|
+
), i = y(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), s = _(
|
|
357
357
|
(() => {
|
|
358
358
|
const o = D(
|
|
359
359
|
a.value
|
|
@@ -375,44 +375,44 @@ const je = { render: Ze }, Y = [
|
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
377
|
})()
|
|
378
|
-
), d =
|
|
379
|
-
|
|
378
|
+
), d = _(
|
|
379
|
+
$(
|
|
380
380
|
D(a.value)
|
|
381
381
|
)
|
|
382
|
-
),
|
|
382
|
+
), T = y(() => {
|
|
383
383
|
const o = S(
|
|
384
384
|
d.value,
|
|
385
385
|
"DATE_OR_TIME"
|
|
386
386
|
);
|
|
387
387
|
return o.valid && (t.allowDescending || !o.negative) && (o.type === n.value || t.format === "DATE_OR_TIME");
|
|
388
|
-
}), x =
|
|
389
|
-
const
|
|
388
|
+
}), x = _(null), p = _(null), u = _(null), r = (o, l) => {
|
|
389
|
+
const f = j(
|
|
390
390
|
o,
|
|
391
391
|
l
|
|
392
392
|
);
|
|
393
|
-
d.value =
|
|
394
|
-
},
|
|
393
|
+
d.value = $(f), a.value = V(f), n.value = l, s.value = o;
|
|
394
|
+
}, I = () => {
|
|
395
395
|
s.value = w(
|
|
396
396
|
D(a.value),
|
|
397
397
|
s.value
|
|
398
398
|
);
|
|
399
|
-
},
|
|
399
|
+
}, M = (o) => {
|
|
400
400
|
const l = S(
|
|
401
401
|
o,
|
|
402
402
|
"DATE_OR_TIME"
|
|
403
403
|
);
|
|
404
404
|
if (!l.valid || !t.allowDescending && l.negative || l.type !== n.value && t.format !== "DATE_OR_TIME")
|
|
405
405
|
return;
|
|
406
|
-
const
|
|
406
|
+
const f = Xe(
|
|
407
407
|
o
|
|
408
408
|
);
|
|
409
409
|
s.value = w(
|
|
410
|
-
|
|
410
|
+
f,
|
|
411
411
|
s.value
|
|
412
|
-
), a.value = V(
|
|
413
|
-
},
|
|
412
|
+
), a.value = V(f), n.value = l.type, d.value = $(f);
|
|
413
|
+
}, pe = (o) => {
|
|
414
414
|
const l = D(o);
|
|
415
|
-
d.value =
|
|
415
|
+
d.value = $(l), s.value = w(
|
|
416
416
|
l,
|
|
417
417
|
s.value
|
|
418
418
|
), a.value = o;
|
|
@@ -421,32 +421,32 @@ const je = { render: Ze }, Y = [
|
|
|
421
421
|
s.value,
|
|
422
422
|
o
|
|
423
423
|
);
|
|
424
|
-
d.value =
|
|
424
|
+
d.value = $(l), a.value = V(l), n.value = o;
|
|
425
425
|
}, fe = (o) => {
|
|
426
426
|
o !== "DATE_OR_TIME" && me(o);
|
|
427
|
-
},
|
|
428
|
-
q(() => t.format, fe), q(a,
|
|
427
|
+
}, P = _(!1);
|
|
428
|
+
q(() => t.format, fe), q(a, pe);
|
|
429
429
|
const U = (o) => {
|
|
430
|
-
|
|
430
|
+
M(o);
|
|
431
431
|
}, A = (o, l) => {
|
|
432
432
|
o && l ? r(
|
|
433
433
|
l.popoverValues,
|
|
434
434
|
l.usedFormat
|
|
435
|
-
) :
|
|
435
|
+
) : I(), P.value = !1;
|
|
436
436
|
};
|
|
437
|
-
|
|
437
|
+
Re(x, () => A(!1), {
|
|
438
438
|
ignore: [p]
|
|
439
|
-
}),
|
|
440
|
-
const { floatingStyles: Ee, update:
|
|
439
|
+
}), Ae("Escape", () => A(!1));
|
|
440
|
+
const { floatingStyles: Ee, update: Ie } = we(p, x, {
|
|
441
441
|
middleware: [
|
|
442
|
-
|
|
442
|
+
be(),
|
|
443
443
|
// move left/right to keep it on screen
|
|
444
|
-
|
|
444
|
+
Ne({
|
|
445
445
|
// flip it vertically to keep it on screen
|
|
446
446
|
mainAxis: !0,
|
|
447
447
|
crossAxis: !1
|
|
448
448
|
}),
|
|
449
|
-
|
|
449
|
+
Ve({
|
|
450
450
|
// move it a bit away from the button vertically
|
|
451
451
|
mainAxis: 2,
|
|
452
452
|
// vertical
|
|
@@ -455,64 +455,64 @@ const je = { render: Ze }, Y = [
|
|
|
455
455
|
})
|
|
456
456
|
],
|
|
457
457
|
placement: "top-end",
|
|
458
|
-
whileElementsMounted:
|
|
458
|
+
whileElementsMounted: Se
|
|
459
459
|
});
|
|
460
|
-
return (o, l) => (
|
|
461
|
-
|
|
462
|
-
class:
|
|
460
|
+
return (o, l) => (m(), E("div", null, [
|
|
461
|
+
v("div", {
|
|
462
|
+
class: De(["wrapper", { disabled: o.disabled, compact: o.compact }])
|
|
463
463
|
}, [
|
|
464
|
-
|
|
465
|
-
R(
|
|
464
|
+
v("span", at, [
|
|
465
|
+
R(v("input", {
|
|
466
466
|
ref_key: "inputTextFieldRef",
|
|
467
|
-
ref:
|
|
468
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
467
|
+
ref: u,
|
|
468
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => d.value = f),
|
|
469
469
|
type: "text",
|
|
470
470
|
disabled: o.disabled,
|
|
471
471
|
placeholder: i.value,
|
|
472
472
|
spellcheck: "false",
|
|
473
|
-
onFocus: l[1] || (l[1] = (
|
|
473
|
+
onFocus: l[1] || (l[1] = (f) => P.value = !1),
|
|
474
474
|
onFocusout: l[2] || (l[2] = () => U(d.value)),
|
|
475
|
-
onKeypress: l[3] || (l[3] =
|
|
476
|
-
}, null, 40,
|
|
477
|
-
[
|
|
475
|
+
onKeypress: l[3] || (l[3] = ye(() => U(d.value), ["enter"]))
|
|
476
|
+
}, null, 40, nt), [
|
|
477
|
+
[xe, d.value]
|
|
478
478
|
]),
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
T.value ? B("", !0) : (m(), E("span", st)),
|
|
480
|
+
v("button", {
|
|
481
481
|
ref_key: "togglePopoverButtonRef",
|
|
482
482
|
ref: p,
|
|
483
483
|
class: "trigger-popover-button",
|
|
484
484
|
disabled: o.disabled,
|
|
485
485
|
onClick: l[4] || (l[4] = () => {
|
|
486
|
-
|
|
486
|
+
P.value ? A(!1) : (P.value = !0, c(Ie)());
|
|
487
487
|
})
|
|
488
488
|
}, [
|
|
489
|
-
|
|
490
|
-
], 8,
|
|
489
|
+
g(c(ze))
|
|
490
|
+
], 8, ot)
|
|
491
491
|
])
|
|
492
492
|
], 2),
|
|
493
|
-
R(
|
|
493
|
+
R(v("div", {
|
|
494
494
|
ref_key: "durationInputPopoverRef",
|
|
495
495
|
ref: x,
|
|
496
496
|
class: "control-popup",
|
|
497
|
-
style:
|
|
497
|
+
style: Me(c(Ee))
|
|
498
498
|
}, [
|
|
499
|
-
|
|
499
|
+
g(tt, {
|
|
500
500
|
"model-value": s.value,
|
|
501
501
|
"used-format": n.value,
|
|
502
502
|
format: t.format,
|
|
503
503
|
"allow-descending": t.allowDescending,
|
|
504
|
-
onCommit: l[5] || (l[5] = (
|
|
505
|
-
usedFormat:
|
|
506
|
-
popoverValues:
|
|
507
|
-
directionality:
|
|
504
|
+
onCommit: l[5] || (l[5] = (f, Te, _e) => A(!0, {
|
|
505
|
+
usedFormat: f,
|
|
506
|
+
popoverValues: Te,
|
|
507
|
+
directionality: _e
|
|
508
508
|
}))
|
|
509
509
|
}, null, 8, ["model-value", "used-format", "format", "allow-descending"])
|
|
510
510
|
], 4), [
|
|
511
|
-
[b,
|
|
511
|
+
[b, P.value]
|
|
512
512
|
])
|
|
513
513
|
]));
|
|
514
514
|
}
|
|
515
|
-
}),
|
|
515
|
+
}), it = /* @__PURE__ */ H(rt, [["__scopeId", "data-v-098d6ad9"]]), ft = /* @__PURE__ */ F({
|
|
516
516
|
__name: "IntervalControl",
|
|
517
517
|
props: {
|
|
518
518
|
control: {},
|
|
@@ -525,23 +525,23 @@ const je = { render: Ze }, Y = [
|
|
|
525
525
|
},
|
|
526
526
|
setup(e) {
|
|
527
527
|
var i;
|
|
528
|
-
const t = e, a = y(() => t.control.uischema.options), n =
|
|
528
|
+
const t = e, a = y(() => t.control.uischema.options), n = $e(
|
|
529
529
|
y(() => {
|
|
530
530
|
var s;
|
|
531
531
|
return (s = a.value) == null ? void 0 : s.intervalTypeProvider;
|
|
532
532
|
}),
|
|
533
533
|
((i = a.value) == null ? void 0 : i.intervalType) ?? "DATE_OR_TIME"
|
|
534
534
|
);
|
|
535
|
-
return (s, d) => (
|
|
535
|
+
return (s, d) => (m(), J(c(it), {
|
|
536
536
|
id: s.labelForId,
|
|
537
537
|
compact: "",
|
|
538
538
|
disabled: s.disabled,
|
|
539
539
|
"model-value": s.control.data,
|
|
540
|
-
format:
|
|
540
|
+
format: c(n),
|
|
541
541
|
"onUpdate:modelValue": s.changeValue
|
|
542
542
|
}, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"]));
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
545
|
export {
|
|
546
|
-
|
|
546
|
+
ft as default
|
|
547
547
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, computed as l, openBlock as s, createBlock as a, unref as n, mergeProps as u, withCtx as c, createCommentVNode as m } from "vue";
|
|
2
|
-
import { D as b } from "./Dropdown-
|
|
3
|
-
import { L as V } from "./svgWithTitle-
|
|
4
|
-
import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { D as b } from "./Dropdown-DP_F92tv.js";
|
|
3
|
+
import { L as V } from "./svgWithTitle-CEHRG42c.js";
|
|
4
|
+
import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "LoadingDropdown",
|
|
7
7
|
props: {
|