@knime/jsonforms 0.1.7 → 1.0.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 +14 -0
- package/README.md +71 -70
- package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
- package/dist/BaseButton-arvXMjXG.js +112 -0
- package/dist/Button-Bc51Uur8.js +83 -0
- package/dist/Checkbox-BxPISyW3.js +75 -0
- package/dist/CheckboxControl-B-RyvD0K.js +42 -0
- package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
- package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
- package/dist/ColumnFilter-bO-fKaHD.js +22 -0
- package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
- package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
- package/dist/DateControl-v0qHckKz.js +27 -0
- package/dist/DateTimeControl-COnMFfMd.js +47 -0
- package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
- package/dist/Dropdown-By1NMrXZ.js +691 -0
- package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
- package/dist/ErrorMessage-fuIcc8xw.js +23 -0
- package/dist/FunctionButton-DBec3TQi.js +75 -0
- package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
- package/dist/InputField-BKH5rtn3.js +148 -0
- package/dist/IntegerControl-CBuOHc4B.js +18 -0
- package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
- package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
- package/dist/NameFilter-oHBcHQTY.js +22 -0
- package/dist/NumberControl-Cwf50Oe-.js +18 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
- package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
- package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
- package/dist/RadioControl-DsVkQLSI.js +22 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
- package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
- package/dist/SectionLayout-BDgtf57K.js +43 -0
- package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
- package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
- package/dist/SortListControl-On9GHu_U.js +356 -0
- package/dist/TextAreaControl-DF_pLD80.js +108 -0
- package/dist/TextControl-BTZ4ONmV.js +4 -0
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
- package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
- package/dist/TwinlistControl-DcFpZrni.js +553 -0
- package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
- package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
- package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
- package/dist/VerticalLayout-D1KXulG4.js +30 -0
- package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
- package/dist/_baseAssignValue-C56BMUo_.js +19 -0
- package/dist/_baseEach-1sO8_8tT.js +31 -0
- package/dist/_baseIsEqual-d71B2UwX.js +248 -0
- package/dist/_baseIteratee-BgB8cpN8.js +104 -0
- package/dist/_getTag-BiNJdVyP.js +314 -0
- package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
- package/dist/close-h7XT0ja0.js +17 -0
- package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
- package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
- package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
- package/dist/index-C1PjXAJX.js +17 -0
- package/dist/index-Cp7Xre_V.js +331 -0
- package/dist/isObject-B53jY8Qg.js +7 -0
- package/dist/isSymbol-DLKDpjGl.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.d.ts +2 -0
- package/dist/knime-jsonforms.js +119 -3
- package/dist/magic-string.es-DFyz70Kz.js +860 -0
- package/dist/popper-1JCni0RT.js +907 -0
- package/dist/reload-BhzcZRFp.js +17 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/inputFormats.d.ts +25 -0
- package/dist/src/constants/priorityRanks.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
- package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
- package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
- package/dist/src/higherOrderComponents/index.d.ts +3 -0
- package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
- package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
- package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
- package/dist/src/higherOrderComponents/types.d.ts +25 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
- package/dist/src/layoutComponents/index.d.ts +3 -0
- package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
- package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
- package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
- package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
- package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
- package/dist/src/renderers/index.d.ts +1 -0
- package/dist/src/renderers/integerRenderer.d.ts +5 -0
- package/dist/src/renderers/intervalRenderer.d.ts +5 -0
- package/dist/src/renderers/localDateRenderer.d.ts +5 -0
- package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/numberRenderer.d.ts +5 -0
- package/dist/src/renderers/radioRenderer.d.ts +5 -0
- package/dist/src/renderers/richTextRenderer.d.ts +5 -0
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
- package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
- package/dist/src/renderers/sortListRenderer.d.ts +288 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
- package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
- package/dist/src/renderers/textRenderer.d.ts +193 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
- package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
- package/dist/src/types/Control.d.ts +2 -0
- package/dist/src/types/alert.d.ts +5 -0
- package/dist/src/types/provided.d.ts +25 -0
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
- package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
- package/dist/src/uiComponents/index.d.ts +4 -0
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
- package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
- package/dist/src/utils/index.d.ts +15 -0
- package/dist/src/utils/inject.d.ts +3 -0
- package/dist/src/utils/localTimeUtils.d.ts +16 -0
- package/dist/svgWithTitle-zrGi2kyc.js +18 -0
- package/dist/testUtils/component.d.ts +190 -0
- package/dist/testUtils/index.d.ts +2 -0
- package/dist/testUtils/renderer.d.ts +6 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +18889 -0
- package/dist/toString-C9vll-oa.js +26 -0
- package/dist/useSearch-hpyYQ_6y.js +74 -0
- package/package.json +11 -7
- package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
- package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
- package/dist/ButtonControl-yAb2GdQI.js +0 -127
- package/dist/CheckboxControl-Ck45Jycu.js +0 -50
- package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
- package/dist/ColumnFilter-u7yVpuFC.js +0 -17
- package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
- package/dist/CredentialsControl-D1Te47JG.js +0 -20
- package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
- package/dist/DateControl-CuV2lKvs.js +0 -30
- package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
- package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
- package/dist/FileChooserControl-HX_GjlNB.js +0 -605
- package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
- package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
- package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
- package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
- package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
- package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
- package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
- package/dist/NameFilter-CsfBC6e2.js +0 -17
- package/dist/NodeDialog.vue.d.ts +0 -8
- package/dist/NumberControl-BJCFqjn3.js +0 -13
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
- package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
- package/dist/RadioControl-BZEV6NYx.js +0 -13
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
- package/dist/SectionLayout-DtVREvcv.js +0 -54
- package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
- package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
- package/dist/SortListControl-DcW5Ofs5.js +0 -316
- package/dist/TextAreaControl-DTw_oBDS.js +0 -111
- package/dist/TextControl-BlfySQDC.js +0 -49
- package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
- package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
- package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
- package/dist/VerticalLayout-CTFSrGS8.js +0 -39
- package/dist/arrow-up-Dsq3EgtE.js +0 -30
- package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
- package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
- package/dist/index-1mTLieVA.js +0 -32714
- package/dist/index.d.ts +0 -3
- package/dist/layoutComponents/Form.vue.d.ts +0 -2
- package/dist/link-BA69Hfx6.js +0 -17
- package/dist/loading/LoadingDialog.vue.d.ts +0 -2
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { openBlock as p, createElementBlock as E, renderSlot as Te, toDisplayString as w, createCommentVNode as B, createElementVNode as v, defineComponent as F, mergeModels as G, useModel as k, computed as D, Fragment as V, createBlock as j, withDirectives as P, createVNode as I, vShow as b, renderList as z, unref as c, withCtx as X, createTextVNode as ge, pushScopeId as De, popScopeId as ye, ref as h, watch as K, normalizeClass as xe, withKeys as $e, vModelText as Me, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { _ as H, u as Ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
3
|
+
import { o as Re, a as we } from "./index-Cp7Xre_V.js";
|
|
4
|
+
import { u as be, s as Ne, f as Ve, o as Se, a as Ce } from "./floating-ui.vue.esm-CDpUY3-t.js";
|
|
5
|
+
import { F as Oe } from "./FunctionButton-DBec3TQi.js";
|
|
6
|
+
import { N as W } from "./NumberInput-DERn3NyL.js";
|
|
7
|
+
import { V as q } from "./ValueSwitch-CpE1f4ie.js";
|
|
8
|
+
const Ge = {
|
|
9
|
+
name: "Tooltip",
|
|
10
|
+
props: {
|
|
11
|
+
text: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !0
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, ke = { class: "tooltip" }, Be = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "text"
|
|
19
|
+
};
|
|
20
|
+
function Fe(e, t, a, n, i, s) {
|
|
21
|
+
return p(), E("div", ke, [
|
|
22
|
+
Te(e.$slots, "default", {}, void 0, !0),
|
|
23
|
+
a.text ? (p(), E("span", Be, w(a.text), 1)) : B("", !0)
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc"]]), J = (e, t) => ({
|
|
7
27
|
negative: e,
|
|
8
28
|
years: parseInt(t[1] ?? "0", 10),
|
|
9
29
|
months: parseInt(t[2] ?? "0", 10),
|
|
@@ -22,7 +42,7 @@ const J = (e, t) => ({
|
|
|
22
42
|
}, N = (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, S = (e) => {
|
|
23
43
|
let t = "P";
|
|
24
44
|
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;
|
|
25
|
-
},
|
|
45
|
+
}, M = (e) => {
|
|
26
46
|
const t = (n, i) => n === 0 ? "" : n === 1 ? `${n} ${i} ` : `${n} ${i}s `;
|
|
27
47
|
let a = "";
|
|
28
48
|
if (e.type === "DATE") {
|
|
@@ -43,33 +63,33 @@ const J = (e, t) => ({
|
|
|
43
63
|
), ie = new RegExp(
|
|
44
64
|
`^(?:${se})?\\s*(?:${oe})?\\s*(?:${le})?$`,
|
|
45
65
|
"i"
|
|
46
|
-
),
|
|
66
|
+
), Ue = new RegExp(
|
|
47
67
|
`^\\s*-\\s*\\(\\s*${re.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
48
68
|
"i"
|
|
49
|
-
),
|
|
69
|
+
), ze = new RegExp(
|
|
50
70
|
`^\\s*-\\s*(?:\\s*${ee}|${te}|${ae}|${ne})\\s*$`,
|
|
51
71
|
"i"
|
|
52
|
-
),
|
|
72
|
+
), Xe = new RegExp(
|
|
53
73
|
`^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
54
74
|
"i"
|
|
55
|
-
),
|
|
75
|
+
), Ke = new RegExp(
|
|
56
76
|
`^\\s*-\\s*(?:\\s*${se}|${oe}|${le})\\s*$`,
|
|
57
77
|
"i"
|
|
58
78
|
), de = (e) => {
|
|
59
79
|
if (e = e == null ? void 0 : e.trim(), !e)
|
|
60
80
|
throw new Error("Empty interval string");
|
|
61
|
-
const t = re.exec(e), a =
|
|
62
|
-
if (d &&
|
|
81
|
+
const t = re.exec(e), a = Ue.exec(e) ?? ze.exec(e), n = ie.exec(e), i = Xe.exec(e) ?? Ke.exec(e), s = t ?? a, d = n ?? i, _ = (a ?? i) !== null;
|
|
82
|
+
if (d && s)
|
|
63
83
|
throw new Error("Ambiguous time format");
|
|
64
|
-
if (
|
|
84
|
+
if (s)
|
|
65
85
|
return {
|
|
66
86
|
type: "DATE",
|
|
67
|
-
interval: J(
|
|
87
|
+
interval: J(_, s)
|
|
68
88
|
};
|
|
69
89
|
if (d)
|
|
70
90
|
return {
|
|
71
91
|
type: "TIME",
|
|
72
|
-
interval: Q(
|
|
92
|
+
interval: Q(_, d)
|
|
73
93
|
};
|
|
74
94
|
throw new Error(`Invalid human readable time: ${e}`);
|
|
75
95
|
}, ue = (e, t) => {
|
|
@@ -84,7 +104,7 @@ const J = (e, t) => ({
|
|
|
84
104
|
} catch {
|
|
85
105
|
return { valid: !1 };
|
|
86
106
|
}
|
|
87
|
-
},
|
|
107
|
+
}, g = (e) => {
|
|
88
108
|
if (e = e == null ? void 0 : e.trim(), ["", "P", "PT", "-", "-P", "-PT"].includes(e))
|
|
89
109
|
throw new Error("Empty ISO duration");
|
|
90
110
|
const t = /^-?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?$/, a = /^-?PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:[,.](\d{1,3}))?S)?$/, n = t.exec(e), i = a.exec(e);
|
|
@@ -107,7 +127,7 @@ const J = (e, t) => ({
|
|
|
107
127
|
throw new Error(`Invalid ISO duration: ${e}`);
|
|
108
128
|
}, ce = (e, t) => {
|
|
109
129
|
try {
|
|
110
|
-
const a =
|
|
130
|
+
const a = g(e), n = a.type, i = a.interval.negative;
|
|
111
131
|
return n === t || t === "DATE_OR_TIME" ? {
|
|
112
132
|
valid: !0,
|
|
113
133
|
type: n,
|
|
@@ -117,50 +137,32 @@ const J = (e, t) => ({
|
|
|
117
137
|
} catch {
|
|
118
138
|
return { valid: !1 };
|
|
119
139
|
}
|
|
120
|
-
},
|
|
140
|
+
}, We = (e) => {
|
|
121
141
|
const t = ce(e, "DATE_OR_TIME"), a = ue(
|
|
122
142
|
e,
|
|
123
143
|
"DATE_OR_TIME"
|
|
124
144
|
);
|
|
125
145
|
if (t.valid)
|
|
126
|
-
return
|
|
146
|
+
return g(e);
|
|
127
147
|
if (a.valid)
|
|
128
148
|
return de(e);
|
|
129
149
|
throw new Error(`Invalid interval string: ${e}`);
|
|
130
150
|
}, C = (e, t) => {
|
|
131
151
|
const a = ce(e, t), n = ue(e, t);
|
|
132
152
|
return a.valid ? a : n.valid ? n : { valid: !1 };
|
|
133
|
-
},
|
|
134
|
-
name: "Tooltip",
|
|
135
|
-
props: {
|
|
136
|
-
text: {
|
|
137
|
-
type: String,
|
|
138
|
-
required: !0
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}, We = { class: "tooltip" }, qe = {
|
|
142
|
-
key: 0,
|
|
143
|
-
class: "text"
|
|
144
|
-
};
|
|
145
|
-
function Le(e, t, a, n, i, r) {
|
|
146
|
-
return m(), _("div", We, [
|
|
147
|
-
Te(e.$slots, "default", {}, void 0, !0),
|
|
148
|
-
a.text ? (m(), _("span", qe, w(a.text), 1)) : B("", !0)
|
|
149
|
-
]);
|
|
150
|
-
}
|
|
151
|
-
const Ye = /* @__PURE__ */ F(Ke, [["render", Le], ["__scopeId", "data-v-05123edc"]]), Ze = {
|
|
153
|
+
}, qe = {
|
|
152
154
|
xmlns: "http://www.w3.org/2000/svg",
|
|
153
155
|
fill: "none",
|
|
154
156
|
stroke: "#000",
|
|
155
157
|
"stroke-linejoin": "round",
|
|
156
158
|
viewBox: "0 0 32 32"
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
+
}, Le = /* @__PURE__ */ 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), Ye = [
|
|
160
|
+
Le
|
|
159
161
|
];
|
|
160
|
-
function
|
|
161
|
-
return
|
|
162
|
+
function Ze(e, t) {
|
|
163
|
+
return p(), E("svg", qe, [...Ye]);
|
|
162
164
|
}
|
|
163
|
-
const
|
|
165
|
+
const je = { render: Ze }, L = [
|
|
164
166
|
"years",
|
|
165
167
|
"months",
|
|
166
168
|
"weeks",
|
|
@@ -170,7 +172,7 @@ const et = { render: Qe }, L = [
|
|
|
170
172
|
"minutes",
|
|
171
173
|
"seconds",
|
|
172
174
|
"milliseconds"
|
|
173
|
-
],
|
|
175
|
+
], T = {
|
|
174
176
|
years: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
175
177
|
months: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
176
178
|
weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
@@ -191,7 +193,7 @@ const et = { render: Qe }, L = [
|
|
|
191
193
|
} : {
|
|
192
194
|
...t,
|
|
193
195
|
durationPart: e.interval
|
|
194
|
-
}, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(),
|
|
196
|
+
}, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Je = (e) => (De("data-v-41a0e491"), e = e(), ye(), e), Qe = { class: "header" }, et = /* @__PURE__ */ Je(() => /* @__PURE__ */ v("span", { class: "input-title" }, "Interval value", -1)), tt = { class: "ascending-descending-switch-container" }, at = { class: "input-grid" }, nt = { class: "input-label" }, st = { class: "input-label" }, ot = { class: "accept-controls" }, lt = /* @__PURE__ */ F({
|
|
195
197
|
__name: "IntervalInputPopoverContent",
|
|
196
198
|
props: /* @__PURE__ */ G({
|
|
197
199
|
format: {},
|
|
@@ -208,44 +210,44 @@ const et = { render: Qe }, L = [
|
|
|
208
210
|
}),
|
|
209
211
|
emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
|
|
210
212
|
setup(e, { emit: t }) {
|
|
211
|
-
const a = t, n = e, i = k(e, "usedFormat"),
|
|
212
|
-
const
|
|
213
|
-
(
|
|
214
|
-
) :
|
|
215
|
-
(
|
|
213
|
+
const a = t, n = e, i = k(e, "usedFormat"), s = k(e, "modelValue"), d = D(() => {
|
|
214
|
+
const u = i.value === "DATE" ? L : Y, m = i.value === "DATE" ? u.map(
|
|
215
|
+
(o) => s.value.periodPart[o]
|
|
216
|
+
) : u.map(
|
|
217
|
+
(o) => s.value.durationPart[o]
|
|
216
218
|
);
|
|
217
|
-
for (let
|
|
218
|
-
if (
|
|
219
|
+
for (let o = 0; o < m.length; o++)
|
|
220
|
+
if (m[o] < T[u[o]].min || m[o] > T[u[o]].max)
|
|
219
221
|
return {
|
|
220
222
|
valid: !1,
|
|
221
|
-
reason: `${O(
|
|
223
|
+
reason: `${O(u[o])} out of bounds.`
|
|
222
224
|
};
|
|
223
|
-
return
|
|
225
|
+
return m.every((o) => o === 0) ? {
|
|
224
226
|
valid: !1,
|
|
225
227
|
reason: "All values may not be zero."
|
|
226
228
|
} : { valid: !0 };
|
|
227
|
-
}),
|
|
229
|
+
}), _ = D({
|
|
228
230
|
get() {
|
|
229
|
-
return n.allowDescending ? i.value === "DATE" ?
|
|
231
|
+
return n.allowDescending ? i.value === "DATE" ? s.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : s.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
|
|
230
232
|
},
|
|
231
|
-
set(
|
|
232
|
-
|
|
233
|
+
set(u) {
|
|
234
|
+
s.value.periodPart.negative = u === "DESCENDING", s.value.durationPart.negative = u === "DESCENDING";
|
|
233
235
|
}
|
|
234
|
-
}),
|
|
236
|
+
}), y = () => {
|
|
235
237
|
a(
|
|
236
238
|
"commit",
|
|
237
239
|
i.value,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
+
s.value,
|
|
241
|
+
_.value
|
|
240
242
|
);
|
|
241
243
|
};
|
|
242
|
-
return (
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
n.format === "DATE_OR_TIME" ? (
|
|
244
|
+
return (u, m) => (p(), E(V, null, [
|
|
245
|
+
v("span", Qe, [
|
|
246
|
+
et,
|
|
247
|
+
n.format === "DATE_OR_TIME" ? (p(), j(q, {
|
|
246
248
|
key: 0,
|
|
247
249
|
modelValue: i.value,
|
|
248
|
-
"onUpdate:modelValue":
|
|
250
|
+
"onUpdate:modelValue": m[0] || (m[0] = (o) => i.value = o),
|
|
249
251
|
"possible-values": [
|
|
250
252
|
{ id: "DATE", text: "Date" },
|
|
251
253
|
{ id: "TIME", text: "Time" }
|
|
@@ -253,10 +255,10 @@ const et = { render: Qe }, L = [
|
|
|
253
255
|
compact: ""
|
|
254
256
|
}, null, 8, ["modelValue"])) : B("", !0)
|
|
255
257
|
]),
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
modelValue:
|
|
259
|
-
"onUpdate:modelValue":
|
|
258
|
+
P(v("div", tt, [
|
|
259
|
+
I(q, {
|
|
260
|
+
modelValue: _.value,
|
|
261
|
+
"onUpdate:modelValue": m[1] || (m[1] = (o) => _.value = o),
|
|
260
262
|
compact: "",
|
|
261
263
|
"possible-values": [
|
|
262
264
|
{ id: "ASCENDING", text: "Ascending interval" },
|
|
@@ -264,55 +266,55 @@ const et = { render: Qe }, L = [
|
|
|
264
266
|
]
|
|
265
267
|
}, null, 8, ["modelValue"])
|
|
266
268
|
], 512), [
|
|
267
|
-
[b,
|
|
269
|
+
[b, u.allowDescending]
|
|
268
270
|
]),
|
|
269
|
-
|
|
270
|
-
(
|
|
271
|
-
key:
|
|
271
|
+
v("div", at, [
|
|
272
|
+
(p(!0), E(V, null, z(c(L), (o) => P((p(), E("span", {
|
|
273
|
+
key: o,
|
|
272
274
|
class: "labeled-date-time-input"
|
|
273
275
|
}, [
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
modelValue:
|
|
277
|
-
"onUpdate:modelValue": (
|
|
278
|
-
min:
|
|
279
|
-
max:
|
|
276
|
+
v("span", nt, w(c(O)(o)), 1),
|
|
277
|
+
I(W, {
|
|
278
|
+
modelValue: s.value.periodPart[o],
|
|
279
|
+
"onUpdate:modelValue": (x) => s.value.periodPart[o] = x,
|
|
280
|
+
min: c(T)[o].min,
|
|
281
|
+
max: c(T)[o].max,
|
|
280
282
|
compact: "",
|
|
281
283
|
type: "integer"
|
|
282
284
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
|
|
283
285
|
], 512)), [
|
|
284
286
|
[b, i.value === "DATE"]
|
|
285
287
|
])), 128)),
|
|
286
|
-
(
|
|
287
|
-
key:
|
|
288
|
+
(p(!0), E(V, null, z(c(Y), (o) => P((p(), E("span", {
|
|
289
|
+
key: o,
|
|
288
290
|
class: "labeled-date-time-input"
|
|
289
291
|
}, [
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
"model-value":
|
|
293
|
-
min:
|
|
294
|
-
max:
|
|
292
|
+
v("span", st, w(c(O)(o)), 1),
|
|
293
|
+
I(W, {
|
|
294
|
+
"model-value": s.value.durationPart[o],
|
|
295
|
+
min: c(T)[o].min,
|
|
296
|
+
max: c(T)[o].max,
|
|
295
297
|
compact: "",
|
|
296
298
|
type: "integer",
|
|
297
|
-
"onUpdate:modelValue": (
|
|
298
|
-
|
|
299
|
+
"onUpdate:modelValue": (x) => {
|
|
300
|
+
s.value.durationPart[o] = x;
|
|
299
301
|
}
|
|
300
302
|
}, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
|
|
301
303
|
], 512)), [
|
|
302
304
|
[b, i.value === "TIME"]
|
|
303
305
|
])), 128))
|
|
304
306
|
]),
|
|
305
|
-
|
|
306
|
-
|
|
307
|
+
v("div", ot, [
|
|
308
|
+
I(He, {
|
|
307
309
|
text: d.value.valid ? "" : d.value.reason
|
|
308
310
|
}, {
|
|
309
|
-
default:
|
|
310
|
-
|
|
311
|
+
default: X(() => [
|
|
312
|
+
I(Oe, {
|
|
311
313
|
primary: "",
|
|
312
314
|
disabled: !d.value.valid,
|
|
313
|
-
onClick:
|
|
315
|
+
onClick: y
|
|
314
316
|
}, {
|
|
315
|
-
default:
|
|
317
|
+
default: X(() => [
|
|
316
318
|
ge(" Set " + w(i.value.toLowerCase()) + " interval ", 1)
|
|
317
319
|
]),
|
|
318
320
|
_: 1
|
|
@@ -323,11 +325,11 @@ const et = { render: Qe }, L = [
|
|
|
323
325
|
])
|
|
324
326
|
], 64));
|
|
325
327
|
}
|
|
326
|
-
}),
|
|
328
|
+
}), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-41a0e491"]]), it = { class: "input-fields" }, dt = ["disabled", "placeholder"], ut = {
|
|
327
329
|
key: 0,
|
|
328
330
|
class: "invalid-marker"
|
|
329
|
-
},
|
|
330
|
-
...
|
|
331
|
+
}, ct = ["disabled"], vt = {}, pt = /* @__PURE__ */ F({
|
|
332
|
+
...vt,
|
|
331
333
|
__name: "IntervalInput",
|
|
332
334
|
props: /* @__PURE__ */ G({
|
|
333
335
|
format: { default: "DATE_OR_TIME" },
|
|
@@ -342,23 +344,23 @@ const et = { render: Qe }, L = [
|
|
|
342
344
|
}),
|
|
343
345
|
emits: ["update:modelValue"],
|
|
344
346
|
setup(e) {
|
|
345
|
-
const t = e, a = k(e, "modelValue"), n =
|
|
347
|
+
const t = e, a = k(e, "modelValue"), n = h(
|
|
346
348
|
(() => {
|
|
347
349
|
if (t.format === "DATE_OR_TIME") {
|
|
348
|
-
const
|
|
350
|
+
const l = C(
|
|
349
351
|
a.value,
|
|
350
352
|
"DATE_OR_TIME"
|
|
351
353
|
);
|
|
352
|
-
return
|
|
354
|
+
return l.valid ? l.type : "DATE";
|
|
353
355
|
} else
|
|
354
356
|
return t.format;
|
|
355
357
|
})()
|
|
356
|
-
), i =
|
|
358
|
+
), i = D(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), s = h(
|
|
357
359
|
(() => {
|
|
358
|
-
const
|
|
360
|
+
const l = g(
|
|
359
361
|
a.value
|
|
360
362
|
);
|
|
361
|
-
return R(
|
|
363
|
+
return R(l, {
|
|
362
364
|
periodPart: {
|
|
363
365
|
negative: !1,
|
|
364
366
|
years: 0,
|
|
@@ -375,78 +377,78 @@ const et = { render: Qe }, L = [
|
|
|
375
377
|
}
|
|
376
378
|
});
|
|
377
379
|
})()
|
|
378
|
-
), d =
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
), d = h(
|
|
381
|
+
M(
|
|
382
|
+
g(a.value)
|
|
381
383
|
)
|
|
382
|
-
),
|
|
383
|
-
const
|
|
384
|
+
), _ = D(() => {
|
|
385
|
+
const l = C(
|
|
384
386
|
d.value,
|
|
385
387
|
"DATE_OR_TIME"
|
|
386
388
|
);
|
|
387
|
-
return
|
|
388
|
-
}),
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
|
|
389
|
+
return l.valid && (t.allowDescending || !l.negative) && !l.zero && (l.type === n.value || t.format === "DATE_OR_TIME");
|
|
390
|
+
}), y = h(null), u = h(null), m = h(null), o = (l, r) => {
|
|
391
|
+
const f = Z(
|
|
392
|
+
l,
|
|
393
|
+
r
|
|
392
394
|
);
|
|
393
|
-
d.value =
|
|
394
|
-
},
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
395
|
+
d.value = M(f), a.value = S(f), n.value = r, s.value = l;
|
|
396
|
+
}, x = () => {
|
|
397
|
+
s.value = R(
|
|
398
|
+
g(a.value),
|
|
399
|
+
s.value
|
|
398
400
|
);
|
|
399
|
-
}, ve = (
|
|
400
|
-
const
|
|
401
|
-
|
|
401
|
+
}, ve = (l) => {
|
|
402
|
+
const r = C(
|
|
403
|
+
l,
|
|
402
404
|
"DATE_OR_TIME"
|
|
403
405
|
);
|
|
404
|
-
if (!
|
|
406
|
+
if (!r.valid || r.zero || !t.allowDescending && r.negative || r.type !== n.value && t.format !== "DATE_OR_TIME")
|
|
405
407
|
return;
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
+
const f = We(
|
|
409
|
+
l
|
|
408
410
|
);
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
), a.value = S(
|
|
413
|
-
}, pe = (
|
|
414
|
-
const
|
|
415
|
-
d.value =
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
), a.value =
|
|
419
|
-
}, me = (
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
|
|
411
|
+
s.value = R(
|
|
412
|
+
f,
|
|
413
|
+
s.value
|
|
414
|
+
), a.value = S(f), n.value = r.type, d.value = M(f);
|
|
415
|
+
}, pe = (l) => {
|
|
416
|
+
const r = g(l);
|
|
417
|
+
d.value = M(r), s.value = R(
|
|
418
|
+
r,
|
|
419
|
+
s.value
|
|
420
|
+
), a.value = l;
|
|
421
|
+
}, me = (l) => {
|
|
422
|
+
const r = Z(
|
|
423
|
+
s.value,
|
|
424
|
+
l
|
|
423
425
|
);
|
|
424
|
-
d.value =
|
|
425
|
-
}, fe = (
|
|
426
|
-
|
|
427
|
-
},
|
|
426
|
+
d.value = M(r), a.value = S(r), n.value = l;
|
|
427
|
+
}, fe = (l) => {
|
|
428
|
+
l !== "DATE_OR_TIME" && me(l);
|
|
429
|
+
}, $ = h(!1);
|
|
428
430
|
K(() => t.format, fe), K(a, pe);
|
|
429
|
-
const
|
|
430
|
-
ve(
|
|
431
|
-
}, A = (
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
) :
|
|
431
|
+
const U = (l) => {
|
|
432
|
+
ve(l);
|
|
433
|
+
}, A = (l, r) => {
|
|
434
|
+
l && r ? o(
|
|
435
|
+
r.popoverValues,
|
|
436
|
+
r.usedFormat
|
|
437
|
+
) : x(), $.value = !1;
|
|
436
438
|
};
|
|
437
|
-
Re(
|
|
438
|
-
ignore: [
|
|
439
|
+
Re(y, () => A(!1), {
|
|
440
|
+
ignore: [u]
|
|
439
441
|
}), we("Escape", () => A(!1));
|
|
440
|
-
const { floatingStyles: Ee, update: _e } =
|
|
442
|
+
const { floatingStyles: Ee, update: _e } = be(u, y, {
|
|
441
443
|
middleware: [
|
|
442
|
-
|
|
444
|
+
Ne(),
|
|
443
445
|
// move left/right to keep it on screen
|
|
444
|
-
|
|
446
|
+
Ve({
|
|
445
447
|
// flip it vertically to keep it on screen
|
|
446
448
|
mainAxis: !0,
|
|
447
449
|
crossAxis: !1
|
|
448
450
|
}),
|
|
449
|
-
|
|
451
|
+
Se({
|
|
450
452
|
// move it a bit away from the button vertically
|
|
451
453
|
mainAxis: 2,
|
|
452
454
|
// vertical
|
|
@@ -455,95 +457,91 @@ const et = { render: Qe }, L = [
|
|
|
455
457
|
})
|
|
456
458
|
],
|
|
457
459
|
placement: "top-end",
|
|
458
|
-
whileElementsMounted:
|
|
460
|
+
whileElementsMounted: Ce
|
|
459
461
|
});
|
|
460
|
-
return (
|
|
461
|
-
|
|
462
|
-
class:
|
|
462
|
+
return (l, r) => (p(), E("div", null, [
|
|
463
|
+
v("div", {
|
|
464
|
+
class: xe(["wrapper", { disabled: l.disabled, compact: l.compact }])
|
|
463
465
|
}, [
|
|
464
|
-
|
|
465
|
-
|
|
466
|
+
v("span", it, [
|
|
467
|
+
P(v("input", {
|
|
466
468
|
ref_key: "inputTextFieldRef",
|
|
467
|
-
ref:
|
|
468
|
-
"onUpdate:modelValue":
|
|
469
|
+
ref: m,
|
|
470
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => d.value = f),
|
|
469
471
|
type: "text",
|
|
470
|
-
disabled:
|
|
472
|
+
disabled: l.disabled,
|
|
471
473
|
placeholder: i.value,
|
|
472
474
|
spellcheck: "false",
|
|
473
|
-
onFocus:
|
|
474
|
-
onFocusout:
|
|
475
|
-
onKeypress:
|
|
476
|
-
}, null, 40,
|
|
477
|
-
[
|
|
475
|
+
onFocus: r[1] || (r[1] = (f) => $.value = !1),
|
|
476
|
+
onFocusout: r[2] || (r[2] = () => U(d.value)),
|
|
477
|
+
onKeypress: r[3] || (r[3] = $e(() => U(d.value), ["enter"]))
|
|
478
|
+
}, null, 40, dt), [
|
|
479
|
+
[Me, d.value]
|
|
478
480
|
]),
|
|
479
|
-
|
|
480
|
-
|
|
481
|
+
_.value ? B("", !0) : (p(), E("span", ut)),
|
|
482
|
+
v("button", {
|
|
481
483
|
ref_key: "togglePopoverButtonRef",
|
|
482
|
-
ref:
|
|
484
|
+
ref: u,
|
|
483
485
|
class: "trigger-popover-button",
|
|
484
|
-
disabled:
|
|
485
|
-
onClick:
|
|
486
|
-
|
|
486
|
+
disabled: l.disabled,
|
|
487
|
+
onClick: r[4] || (r[4] = () => {
|
|
488
|
+
$.value ? A(!1) : ($.value = !0, c(_e)());
|
|
487
489
|
})
|
|
488
490
|
}, [
|
|
489
|
-
|
|
490
|
-
], 8,
|
|
491
|
+
I(c(je))
|
|
492
|
+
], 8, ct)
|
|
491
493
|
])
|
|
492
494
|
], 2),
|
|
493
|
-
|
|
495
|
+
P(v("div", {
|
|
494
496
|
ref_key: "durationInputPopoverRef",
|
|
495
|
-
ref:
|
|
497
|
+
ref: y,
|
|
496
498
|
class: "control-popup",
|
|
497
|
-
style:
|
|
499
|
+
style: Pe(c(Ee))
|
|
498
500
|
}, [
|
|
499
|
-
|
|
500
|
-
"model-value":
|
|
501
|
+
I(rt, {
|
|
502
|
+
"model-value": s.value,
|
|
501
503
|
"used-format": n.value,
|
|
502
504
|
format: t.format,
|
|
503
505
|
"allow-descending": t.allowDescending,
|
|
504
|
-
onCommit:
|
|
505
|
-
usedFormat:
|
|
506
|
-
popoverValues:
|
|
507
|
-
directionality:
|
|
506
|
+
onCommit: r[5] || (r[5] = (f, he, Ie) => A(!0, {
|
|
507
|
+
usedFormat: f,
|
|
508
|
+
popoverValues: he,
|
|
509
|
+
directionality: Ie
|
|
508
510
|
}))
|
|
509
511
|
}, null, 8, ["model-value", "used-format", "format", "allow-descending"])
|
|
510
512
|
], 4), [
|
|
511
|
-
[b,
|
|
513
|
+
[b, $.value]
|
|
512
514
|
])
|
|
513
515
|
]));
|
|
514
516
|
}
|
|
515
|
-
}),
|
|
517
|
+
}), mt = /* @__PURE__ */ H(pt, [["__scopeId", "data-v-0dd589ba"]]), Dt = /* @__PURE__ */ F({
|
|
516
518
|
__name: "IntervalControl",
|
|
517
|
-
props:
|
|
519
|
+
props: {
|
|
520
|
+
control: {},
|
|
521
|
+
handleChange: { type: Function },
|
|
522
|
+
changeValue: { type: Function },
|
|
523
|
+
disabled: { type: Boolean },
|
|
524
|
+
labelForId: {}
|
|
525
|
+
},
|
|
518
526
|
setup(e) {
|
|
519
|
-
var
|
|
520
|
-
const t = e,
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
var I;
|
|
525
|
-
return (I = r.value) == null ? void 0 : I.intervalTypeProvider;
|
|
527
|
+
var i;
|
|
528
|
+
const t = e, a = D(() => t.control.uischema.options), n = Ae(
|
|
529
|
+
D(() => {
|
|
530
|
+
var s;
|
|
531
|
+
return (s = a.value) == null ? void 0 : s.intervalTypeProvider;
|
|
526
532
|
}),
|
|
527
|
-
((
|
|
533
|
+
((i = a.value) == null ? void 0 : i.intervalType) ?? "DATE_OR_TIME"
|
|
528
534
|
);
|
|
529
|
-
return (
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
disabled: u(n),
|
|
538
|
-
"model-value": u(a).data,
|
|
539
|
-
format: u(d),
|
|
540
|
-
"onUpdate:modelValue": u(i)
|
|
541
|
-
}, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"])
|
|
542
|
-
]),
|
|
543
|
-
_: 1
|
|
544
|
-
}, 8, ["control", "onControllingFlowVariableSet"]));
|
|
535
|
+
return (s, d) => (p(), j(c(mt), {
|
|
536
|
+
id: s.labelForId,
|
|
537
|
+
compact: "",
|
|
538
|
+
disabled: s.disabled,
|
|
539
|
+
"model-value": s.control.data,
|
|
540
|
+
format: c(n),
|
|
541
|
+
"onUpdate:modelValue": s.changeValue
|
|
542
|
+
}, null, 8, ["id", "disabled", "model-value", "format", "onUpdate:modelValue"]));
|
|
545
543
|
}
|
|
546
544
|
});
|
|
547
545
|
export {
|
|
548
|
-
|
|
546
|
+
Dt as default
|
|
549
547
|
};
|