@knime/jsonforms 1.14.3 → 1.15.0
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 +24 -0
- package/dist/{AnyOfTwinlist-Cwxtyt0Q.js → AnyOfTwinlist-Co_sJAsc.js} +3 -3
- package/dist/{Button-BxuGKyL5.js → Button-Cqwayw73.js} +4 -4
- package/dist/CheckboxControl-C10_DX1N.js +40 -0
- package/dist/{Checkboxes-DIPjJhPO.js → Checkboxes-DWOxHiUX.js} +2 -2
- package/dist/{CheckboxesControl-5QlPmjwv.js → CheckboxesControl-BMRFgmO_.js} +7 -10
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-R0DlbAdT.js} +26 -29
- package/dist/{DateControl-CddCObVg.js → DateControl-DAGAM92B.js} +3 -3
- package/dist/DateTimeControl-DJhIb_U4.js +45 -0
- package/dist/{DateTimeFormatInput-bO1zHUyp.js → DateTimeFormatInput-BhLQzC-P.js} +74 -82
- package/dist/{DateTimeFormatPickerControl-Dq25_JV2.js → DateTimeFormatPickerControl-V7pxRYaW.js} +5 -8
- package/dist/{DateTimeFormatPickerWithTypeControl-DZib_x-B.js → DateTimeFormatPickerWithTypeControl-3fa75rGw.js} +6 -9
- package/dist/{DateTimeInput-CEYEV8dt.js → DateTimeInput-Cs0KqlOS.js} +4629 -4556
- package/dist/Dropdown-BEx-cvXH.js +608 -0
- package/dist/{DropdownControl-BNQKWzTT.js → DropdownControl-DEIA5VD4.js} +4 -4
- package/dist/{HorizontalLayout-6GwurgkR.js → HorizontalLayout-DCfhMNq4.js} +2 -2
- package/dist/{InputField-BYxW_-G3.js → InputField-OkFB9VHZ.js} +11 -11
- package/dist/{IntegerControl-DZIY-wb_.js → IntegerControl-Om8J7hch.js} +3 -3
- package/dist/{IntervalControl-Yts36_MI.js → IntervalControl-B7UbyyD-.js} +99 -100
- package/dist/{LoadingDropdown-Dw-0WQ8x.js → LoadingDropdown-CINkq_Sw.js} +6 -6
- package/dist/{ManualTwinlistControl-C3NnAug1.js → ManualTwinlistControl-BLTfr2gT.js} +24 -30
- package/dist/MultiSelectListBoxControl-j1TaFtQj.js +31 -0
- package/dist/{MultimodeTwinlistControl-B2Jven29.js → MultimodeTwinlistControl-BsFqHRFM.js} +97 -108
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CMTJnAWr.js} +18 -23
- package/dist/{NameFilter-D0hKO5Fr.js → NameFilter-d5k6rDVY.js} +3 -3
- package/dist/{NumberControl-DkeQT1iR.js → NumberControl-Kc3hvVef.js} +3 -3
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +50 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-BepS3tAK.js} +5 -5
- package/dist/{OneOfDropdown-NAgE-mPP.js → OneOfDropdown-CLwVXrbC.js} +10 -11
- package/dist/{RadioControl-DjrysNQ_.js → RadioControl-DpziR8nA.js} +4 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +104 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-CE6whfV5.js} +4524 -4079
- package/dist/SectionHeading-D7znCZXu.js +19 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js +15431 -0
- package/dist/{SectionLayout-CJP4sYyB.js → SectionLayout-BhXDOzqB.js} +4 -4
- package/dist/SettingsSubPanel-x9uWGoiu.js +5 -0
- package/dist/{SettingsSubPanelLayout-YBNVPQOD.js → SettingsSubPanelLayout-BPHBM5n5.js} +12 -11
- package/dist/{SimpleButtonControl-ejyUwJdL.js → SimpleButtonControl-DfCSlgZS.js} +9 -9
- package/dist/SimpleTwinlistControl-CBalniCf.js +25 -0
- package/dist/{SingleSelectControl-B0JgDv7j.js → SingleSelectControl-DC4w0ata.js} +4 -4
- package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js} +33 -36
- package/dist/{SortListControl-mvJofiWn.js → SortListControl-BIUyPjCi.js} +122 -120
- package/dist/{StyledListItem-BXz08pEQ.js → StyledListItem-D-HJWfo5.js} +3 -3
- package/dist/{TextAreaControl-S4aoqAv1.js → TextAreaControl-D28TQZEY.js} +23 -26
- package/dist/{TextControl-rJrjrBw8.js → TextControl-DUDBWcHy.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js → TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js} +16 -19
- package/dist/TimeControl-HRooO_z3.js +36 -0
- package/dist/{TwinlistControlBase-D1l9t7Up.js → TwinlistControlBase-Brfh5pqZ.js} +5 -5
- package/dist/{TwinlistLoadingInfo-CQRx9cEu.js → TwinlistLoadingInfo-C4Tta00d.js} +150 -167
- package/dist/TypedStringFilter-CdvgPKhD.js +26 -0
- package/dist/{ValueSwitch-CUYV7v67.js → ValueSwitch-W4y1YvNM.js} +8 -8
- package/dist/{ValueSwitchControl-IP9SxrUs.js → ValueSwitchControl-BaXH8Cjx.js} +3 -3
- package/dist/{VerticalLayout-D2eQSYgv.js → VerticalLayout-ChAmRKNj.js} +5 -5
- package/dist/VerticalLayoutBase-DAk4vfH5.js +20 -0
- package/dist/ZonedDateTimeControl-Qb57KmMT.js +69 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-DdH9cM67.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-BGt-t7Os.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-DAFySze4.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-BAFsD8Su.js} +2 -2
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BQVCxGb8.js} +2 -2
- package/dist/{close-BuY4mhXV.js → close-DGt8x-x_.js} +2 -2
- package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
- package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
- package/dist/index-CpKfM262.js +376 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +64 -67
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-NIKgHnIr.js} +179 -181
- package/dist/magic-string.es-BQ9KnLz-.js +659 -0
- package/dist/navigator-e30QQMkl.js +4 -0
- package/dist/popper-LGjf7Wza.js +905 -0
- package/dist/{reload-BVbCGubF.js → reload-DCdbNLa2.js} +2 -2
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
- package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
- package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +966 -151
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
- package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
- package/dist/src/renderers/sortListRenderer.d.ts +853 -20
- package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
- package/dist/src/renderers/textRenderer.d.ts +1 -1
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/{svgWithTitle-Cr3Pu3wr.js → svgWithTitle-CnTmPYAB.js} +4 -4
- package/dist/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-BhubvA3m.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-Boxrm71q.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DXuWWBh_.js +16 -0
- package/package.json +14 -14
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
- package/dist/SectionHeading-BU1W5lDr.js +0 -19
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
- package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
- package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
- package/dist/index-CoRworrE.js +0 -322
- package/dist/magic-string.es-D-aKzDFf.js +0 -858
- package/dist/navigator-D_R-txCf.js +0 -7
- package/dist/popper-CRR--9mA.js +0 -907
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as H,
|
|
3
|
-
import { o as
|
|
4
|
-
import { u as we, s as be, f as Ne, o as Ve
|
|
5
|
-
import { N as q } from "./NumberInput-
|
|
6
|
-
import { V as z } from "./ValueSwitch-
|
|
7
|
-
const
|
|
1
|
+
import { createElementBlock as E, openBlock as m, renderSlot as Te, createCommentVNode as B, toDisplayString as O, createElementVNode as v, defineComponent as F, mergeModels as G, useModel as k, computed as R, Fragment as N, withDirectives as $, createBlock as J, createVNode as _, vShow as b, renderList as K, unref as c, withCtx as X, createTextVNode as _e, ref as T, watch as W, normalizeClass as he, withKeys as ye, vModelText as De, normalizeStyle as xe } from "vue";
|
|
2
|
+
import { _ as H, v as Me, u as Pe } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
3
|
+
import { o as $e, a as Re } from "./index-CpKfM262.js";
|
|
4
|
+
import { u as Ae, a as we, s as be, f as Ne, o as Ve } from "./floating-ui.vue-CDo9Kas1.js";
|
|
5
|
+
import { N as q } from "./NumberInput-BepS3tAK.js";
|
|
6
|
+
import { V as z } from "./ValueSwitch-W4y1YvNM.js";
|
|
7
|
+
const Se = {
|
|
8
8
|
name: "Tooltip",
|
|
9
9
|
props: {
|
|
10
10
|
text: {
|
|
@@ -12,25 +12,24 @@ const Ce = {
|
|
|
12
12
|
required: !0
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
},
|
|
15
|
+
}, Ce = { class: "tooltip" }, Oe = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "text"
|
|
18
18
|
};
|
|
19
|
-
function
|
|
20
|
-
return m(), E("div",
|
|
21
|
-
|
|
22
|
-
a.text ? (m(), E("span",
|
|
19
|
+
function Ge(e, t, a, n, l, i) {
|
|
20
|
+
return m(), E("div", Ce, [
|
|
21
|
+
Te(e.$slots, "default", {}, void 0, !0),
|
|
22
|
+
a.text ? (m(), E("span", Oe, O(a.text), 1)) : B("", !0)
|
|
23
23
|
]);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const ke = /* @__PURE__ */ H(Se, [["render", Ge], ["__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),
|
|
29
29
|
weeks: parseInt(t[3] ?? "0", 10),
|
|
30
30
|
days: parseInt(t[4] ?? "0", 10)
|
|
31
31
|
}), ee = (e, t) => {
|
|
32
|
-
|
|
33
|
-
const a = parseInt(((n = t[4]) == null ? void 0 : n.padEnd(3, "0")) ?? "0", 10);
|
|
32
|
+
const a = parseInt(t[4]?.padEnd(3, "0") ?? "0", 10);
|
|
34
33
|
return {
|
|
35
34
|
negative: e,
|
|
36
35
|
hours: parseInt(t[1] ?? "0", 10),
|
|
@@ -62,33 +61,33 @@ const Be = /* @__PURE__ */ H(Ce, [["render", ke], ["__scopeId", "data-v-05123edc
|
|
|
62
61
|
), de = new RegExp(
|
|
63
62
|
`^(?:${oe})?\\s*(?:${le})?\\s*(?:${re})?$`,
|
|
64
63
|
"i"
|
|
65
|
-
),
|
|
64
|
+
), Be = new RegExp(
|
|
66
65
|
`^\\s*-\\s*\\(\\s*${ie.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
67
66
|
"i"
|
|
68
|
-
),
|
|
67
|
+
), Fe = new RegExp(
|
|
69
68
|
`^\\s*-\\s*(?:\\s*${te}|${ae}|${ne}|${se})\\s*$`,
|
|
70
69
|
"i"
|
|
71
|
-
),
|
|
70
|
+
), He = new RegExp(
|
|
72
71
|
`^\\s*-\\s*\\(\\s*${de.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`,
|
|
73
72
|
"i"
|
|
74
|
-
),
|
|
73
|
+
), Ue = new RegExp(
|
|
75
74
|
`^\\s*-\\s*(?:\\s*${oe}|${le}|${re})\\s*$`,
|
|
76
75
|
"i"
|
|
77
76
|
), ue = (e) => {
|
|
78
|
-
if (e = e
|
|
77
|
+
if (e = e?.trim(), !e)
|
|
79
78
|
throw new Error("Empty interval string");
|
|
80
|
-
const t = ie.exec(e), a =
|
|
79
|
+
const t = ie.exec(e), a = Be.exec(e) ?? Fe.exec(e), n = de.exec(e), l = He.exec(e) ?? Ue.exec(e), i = t ?? a, d = n ?? l, I = (a ?? l) !== null;
|
|
81
80
|
if (d && i)
|
|
82
81
|
throw new Error("Ambiguous time format");
|
|
83
82
|
if (i)
|
|
84
83
|
return {
|
|
85
84
|
type: "DATE",
|
|
86
|
-
interval: Q(
|
|
85
|
+
interval: Q(I, i)
|
|
87
86
|
};
|
|
88
87
|
if (d)
|
|
89
88
|
return {
|
|
90
89
|
type: "TIME",
|
|
91
|
-
interval: ee(
|
|
90
|
+
interval: ee(I, d)
|
|
92
91
|
};
|
|
93
92
|
throw new Error(`Invalid human readable time: ${e}`);
|
|
94
93
|
}, ce = (e, t) => {
|
|
@@ -103,8 +102,8 @@ const Be = /* @__PURE__ */ H(Ce, [["render", ke], ["__scopeId", "data-v-05123edc
|
|
|
103
102
|
} catch {
|
|
104
103
|
return { valid: !1 };
|
|
105
104
|
}
|
|
106
|
-
},
|
|
107
|
-
if (e = e
|
|
105
|
+
}, y = (e) => {
|
|
106
|
+
if (e = e?.trim(), ["", "P", "PT", "-", "-P", "-PT"].includes(e))
|
|
108
107
|
throw new Error("Empty ISO duration");
|
|
109
108
|
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), l = a.exec(e);
|
|
110
109
|
if (n)
|
|
@@ -126,7 +125,7 @@ const Be = /* @__PURE__ */ H(Ce, [["render", ke], ["__scopeId", "data-v-05123edc
|
|
|
126
125
|
throw new Error(`Invalid ISO duration: ${e}`);
|
|
127
126
|
}, ve = (e, t) => {
|
|
128
127
|
try {
|
|
129
|
-
const a =
|
|
128
|
+
const a = y(e), n = a.type, l = a.interval.negative;
|
|
130
129
|
if (n === t || t === "DATE_OR_TIME")
|
|
131
130
|
return {
|
|
132
131
|
valid: !0,
|
|
@@ -136,32 +135,32 @@ const Be = /* @__PURE__ */ H(Ce, [["render", ke], ["__scopeId", "data-v-05123edc
|
|
|
136
135
|
} catch {
|
|
137
136
|
return { valid: !1 };
|
|
138
137
|
}
|
|
139
|
-
},
|
|
138
|
+
}, Ke = (e) => {
|
|
140
139
|
const t = ve(e, "DATE_OR_TIME"), a = ce(
|
|
141
140
|
e,
|
|
142
141
|
"DATE_OR_TIME"
|
|
143
142
|
);
|
|
144
143
|
if (t.valid)
|
|
145
|
-
return
|
|
144
|
+
return y(e);
|
|
146
145
|
if (a.valid)
|
|
147
146
|
return ue(e);
|
|
148
147
|
throw new Error(`Invalid interval string: ${e}`);
|
|
149
148
|
}, S = (e, t) => {
|
|
150
149
|
const a = ve(e, t), n = ce(e, t);
|
|
151
150
|
return a.valid ? a : n.valid ? n : { valid: !1 };
|
|
152
|
-
},
|
|
151
|
+
}, Xe = {
|
|
153
152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
154
153
|
fill: "none",
|
|
155
154
|
stroke: "#000",
|
|
156
155
|
"stroke-linejoin": "round",
|
|
157
156
|
viewBox: "0 0 32 32"
|
|
158
157
|
};
|
|
159
|
-
function
|
|
160
|
-
return m(), E("svg",
|
|
158
|
+
function We(e, t) {
|
|
159
|
+
return m(), E("svg", Xe, t[0] || (t[0] = [
|
|
161
160
|
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
161
|
]));
|
|
163
162
|
}
|
|
164
|
-
const
|
|
163
|
+
const qe = { render: We }, Y = [
|
|
165
164
|
"years",
|
|
166
165
|
"months",
|
|
167
166
|
"weeks",
|
|
@@ -171,7 +170,7 @@ const ze = { render: qe }, Y = [
|
|
|
171
170
|
"minutes",
|
|
172
171
|
"seconds",
|
|
173
172
|
"milliseconds"
|
|
174
|
-
],
|
|
173
|
+
], h = {
|
|
175
174
|
years: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
176
175
|
months: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
177
176
|
weeks: { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
@@ -192,7 +191,7 @@ const ze = { render: qe }, Y = [
|
|
|
192
191
|
} : {
|
|
193
192
|
...t,
|
|
194
193
|
durationPart: e.interval
|
|
195
|
-
}, C = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(),
|
|
194
|
+
}, C = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), ze = { class: "header" }, Le = { class: "ascending-descending-switch-container" }, Ye = { class: "input-grid" }, Ze = { class: "input-label" }, je = { class: "input-label" }, Je = { class: "accept-controls" }, Qe = /* @__PURE__ */ F({
|
|
196
195
|
__name: "IntervalInputPopoverContent",
|
|
197
196
|
props: /* @__PURE__ */ G({
|
|
198
197
|
format: {},
|
|
@@ -216,31 +215,31 @@ const ze = { render: qe }, Y = [
|
|
|
216
215
|
(r) => i.value.durationPart[r]
|
|
217
216
|
);
|
|
218
217
|
for (let r = 0; r < u.length; r++) {
|
|
219
|
-
const
|
|
220
|
-
if (isNaN(x) || x < g
|
|
218
|
+
const g = p[r], x = u[r];
|
|
219
|
+
if (isNaN(x) || x < h[g].min || x > h[g].max)
|
|
221
220
|
return {
|
|
222
221
|
valid: !1,
|
|
223
|
-
reason: `${C(
|
|
222
|
+
reason: `${C(g)} out of bounds.`
|
|
224
223
|
};
|
|
225
224
|
}
|
|
226
225
|
return { valid: !0 };
|
|
227
|
-
}),
|
|
226
|
+
}), I = R({
|
|
228
227
|
get() {
|
|
229
228
|
return n.allowDescending ? l.value === "DATE" ? i.value.periodPart.negative ? "DESCENDING" : "ASCENDING" : i.value.durationPart.negative ? "DESCENDING" : "ASCENDING" : "ASCENDING";
|
|
230
229
|
},
|
|
231
230
|
set(p) {
|
|
232
231
|
i.value.periodPart.negative = p === "DESCENDING", i.value.durationPart.negative = p === "DESCENDING";
|
|
233
232
|
}
|
|
234
|
-
}),
|
|
233
|
+
}), D = () => {
|
|
235
234
|
a(
|
|
236
235
|
"commit",
|
|
237
236
|
l.value,
|
|
238
237
|
i.value,
|
|
239
|
-
|
|
238
|
+
I.value
|
|
240
239
|
);
|
|
241
240
|
};
|
|
242
241
|
return (p, u) => (m(), E(N, null, [
|
|
243
|
-
v("span",
|
|
242
|
+
v("span", ze, [
|
|
244
243
|
u[2] || (u[2] = v("span", { class: "input-title" }, "Interval", -1)),
|
|
245
244
|
n.format === "DATE_OR_TIME" ? (m(), J(z, {
|
|
246
245
|
key: 0,
|
|
@@ -253,10 +252,10 @@ const ze = { render: qe }, Y = [
|
|
|
253
252
|
compact: ""
|
|
254
253
|
}, null, 8, ["modelValue"])) : B("", !0)
|
|
255
254
|
]),
|
|
256
|
-
$(v("div",
|
|
257
|
-
|
|
258
|
-
modelValue:
|
|
259
|
-
"onUpdate:modelValue": u[1] || (u[1] = (r) =>
|
|
255
|
+
$(v("div", Le, [
|
|
256
|
+
_(z, {
|
|
257
|
+
modelValue: I.value,
|
|
258
|
+
"onUpdate:modelValue": u[1] || (u[1] = (r) => I.value = r),
|
|
260
259
|
compact: "",
|
|
261
260
|
"possible-values": [
|
|
262
261
|
{ id: "ASCENDING", text: "Forward" },
|
|
@@ -266,17 +265,17 @@ const ze = { render: qe }, Y = [
|
|
|
266
265
|
], 512), [
|
|
267
266
|
[b, p.allowDescending]
|
|
268
267
|
]),
|
|
269
|
-
v("div",
|
|
268
|
+
v("div", Ye, [
|
|
270
269
|
(m(!0), E(N, null, K(c(Y), (r) => $((m(), E("span", {
|
|
271
270
|
key: r,
|
|
272
271
|
class: "labeled-date-time-input"
|
|
273
272
|
}, [
|
|
274
|
-
v("span",
|
|
275
|
-
|
|
273
|
+
v("span", Ze, O(c(C)(r)), 1),
|
|
274
|
+
_(q, {
|
|
276
275
|
modelValue: i.value.periodPart[r],
|
|
277
|
-
"onUpdate:modelValue": (
|
|
278
|
-
min: c(
|
|
279
|
-
max: c(
|
|
276
|
+
"onUpdate:modelValue": (g) => i.value.periodPart[r] = g,
|
|
277
|
+
min: c(h)[r].min,
|
|
278
|
+
max: c(h)[r].max,
|
|
280
279
|
compact: "",
|
|
281
280
|
type: "integer"
|
|
282
281
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])
|
|
@@ -287,35 +286,36 @@ const ze = { render: qe }, Y = [
|
|
|
287
286
|
key: r,
|
|
288
287
|
class: "labeled-date-time-input"
|
|
289
288
|
}, [
|
|
290
|
-
v("span",
|
|
291
|
-
|
|
289
|
+
v("span", je, O(c(C)(r)), 1),
|
|
290
|
+
_(q, {
|
|
292
291
|
"model-value": i.value.durationPart[r],
|
|
293
|
-
min: c(
|
|
294
|
-
max: c(
|
|
292
|
+
min: c(h)[r].min,
|
|
293
|
+
max: c(h)[r].max,
|
|
295
294
|
compact: "",
|
|
296
295
|
type: "integer",
|
|
297
|
-
"onUpdate:modelValue": (
|
|
298
|
-
i.value.durationPart[r] =
|
|
296
|
+
"onUpdate:modelValue": (g) => {
|
|
297
|
+
i.value.durationPart[r] = g;
|
|
299
298
|
}
|
|
300
299
|
}, null, 8, ["model-value", "min", "max", "onUpdate:modelValue"])
|
|
301
300
|
], 512)), [
|
|
302
301
|
[b, l.value === "TIME"]
|
|
303
302
|
])), 128))
|
|
304
303
|
]),
|
|
305
|
-
v("div",
|
|
306
|
-
|
|
304
|
+
v("div", Je, [
|
|
305
|
+
_(ke, {
|
|
307
306
|
text: d.value.valid ? "" : d.value.reason
|
|
308
307
|
}, {
|
|
309
308
|
default: X(() => [
|
|
310
|
-
|
|
309
|
+
_(Me, {
|
|
311
310
|
primary: "",
|
|
312
311
|
disabled: !d.value.valid,
|
|
313
|
-
onClick:
|
|
312
|
+
onClick: D
|
|
314
313
|
}, {
|
|
315
314
|
default: X(() => u[3] || (u[3] = [
|
|
316
|
-
|
|
315
|
+
_e(" Set ", -1)
|
|
317
316
|
])),
|
|
318
|
-
_: 1
|
|
317
|
+
_: 1,
|
|
318
|
+
__: [3]
|
|
319
319
|
}, 8, ["disabled"])
|
|
320
320
|
]),
|
|
321
321
|
_: 1
|
|
@@ -323,11 +323,11 @@ const ze = { render: qe }, Y = [
|
|
|
323
323
|
])
|
|
324
324
|
], 64));
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), et = /* @__PURE__ */ H(Qe, [["__scopeId", "data-v-9492a842"]]), tt = { class: "input-fields" }, at = ["disabled", "placeholder"], nt = {
|
|
327
327
|
key: 0,
|
|
328
328
|
class: "invalid-marker"
|
|
329
|
-
},
|
|
330
|
-
...
|
|
329
|
+
}, st = ["disabled"], ot = {}, lt = /* @__PURE__ */ F({
|
|
330
|
+
...ot,
|
|
331
331
|
__name: "IntervalInput",
|
|
332
332
|
props: /* @__PURE__ */ G({
|
|
333
333
|
format: { default: "DATE_OR_TIME" },
|
|
@@ -342,7 +342,7 @@ const ze = { render: qe }, 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 = T(
|
|
346
346
|
(() => {
|
|
347
347
|
if (t.format === "DATE_OR_TIME") {
|
|
348
348
|
const s = S(
|
|
@@ -353,9 +353,9 @@ const ze = { render: qe }, Y = [
|
|
|
353
353
|
} else
|
|
354
354
|
return t.format;
|
|
355
355
|
})()
|
|
356
|
-
), l = R(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), i =
|
|
356
|
+
), l = R(() => n.value === "DATE" ? "ISO-8601, whole words (1 year), single letters (1y)" : "ISO-8601, whole words (1 hour), single letters (1h)"), i = T(
|
|
357
357
|
(() => {
|
|
358
|
-
const s =
|
|
358
|
+
const s = y(
|
|
359
359
|
a.value
|
|
360
360
|
);
|
|
361
361
|
return w(s, {
|
|
@@ -375,25 +375,25 @@ const ze = { render: qe }, Y = [
|
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
377
|
})()
|
|
378
|
-
), d =
|
|
378
|
+
), d = T(
|
|
379
379
|
P(
|
|
380
|
-
|
|
380
|
+
y(a.value)
|
|
381
381
|
)
|
|
382
|
-
),
|
|
382
|
+
), I = R(() => {
|
|
383
383
|
const s = S(
|
|
384
384
|
d.value,
|
|
385
385
|
"DATE_OR_TIME"
|
|
386
386
|
);
|
|
387
387
|
return s.valid && (t.allowDescending || !s.negative) && (s.type === n.value || t.format === "DATE_OR_TIME");
|
|
388
|
-
}),
|
|
388
|
+
}), D = T(null), p = T(null), u = T(null), r = (s, o) => {
|
|
389
389
|
const f = j(
|
|
390
390
|
s,
|
|
391
391
|
o
|
|
392
392
|
);
|
|
393
393
|
d.value = P(f), a.value = V(f), n.value = o, i.value = s;
|
|
394
|
-
},
|
|
394
|
+
}, g = () => {
|
|
395
395
|
i.value = w(
|
|
396
|
-
|
|
396
|
+
y(a.value),
|
|
397
397
|
i.value
|
|
398
398
|
);
|
|
399
399
|
}, x = (s) => {
|
|
@@ -403,7 +403,7 @@ const ze = { render: qe }, Y = [
|
|
|
403
403
|
);
|
|
404
404
|
if (!o.valid || !t.allowDescending && o.negative || o.type !== n.value && t.format !== "DATE_OR_TIME")
|
|
405
405
|
return;
|
|
406
|
-
const f =
|
|
406
|
+
const f = Ke(
|
|
407
407
|
s
|
|
408
408
|
);
|
|
409
409
|
i.value = w(
|
|
@@ -411,7 +411,7 @@ const ze = { render: qe }, Y = [
|
|
|
411
411
|
i.value
|
|
412
412
|
), a.value = V(f), n.value = o.type, d.value = P(f);
|
|
413
413
|
}, pe = (s) => {
|
|
414
|
-
const o =
|
|
414
|
+
const o = y(s);
|
|
415
415
|
d.value = P(o), i.value = w(
|
|
416
416
|
o,
|
|
417
417
|
i.value
|
|
@@ -424,7 +424,7 @@ const ze = { render: qe }, Y = [
|
|
|
424
424
|
d.value = P(o), a.value = V(o), n.value = s;
|
|
425
425
|
}, fe = (s) => {
|
|
426
426
|
s !== "DATE_OR_TIME" && me(s);
|
|
427
|
-
}, M =
|
|
427
|
+
}, M = T(!1);
|
|
428
428
|
W(() => t.format, fe), W(a, pe);
|
|
429
429
|
const U = (s) => {
|
|
430
430
|
x(s);
|
|
@@ -432,12 +432,12 @@ const ze = { render: qe }, Y = [
|
|
|
432
432
|
s && o ? r(
|
|
433
433
|
o.popoverValues,
|
|
434
434
|
o.usedFormat
|
|
435
|
-
) :
|
|
435
|
+
) : g(), M.value = !1;
|
|
436
436
|
};
|
|
437
|
-
|
|
437
|
+
$e(D, () => A(!1), {
|
|
438
438
|
ignore: [p]
|
|
439
|
-
}),
|
|
440
|
-
const { floatingStyles: Ee, update:
|
|
439
|
+
}), Re("Escape", () => A(!1));
|
|
440
|
+
const { floatingStyles: Ee, update: ge } = Ae(p, D, {
|
|
441
441
|
middleware: [
|
|
442
442
|
be(),
|
|
443
443
|
// move left/right to keep it on screen
|
|
@@ -455,13 +455,13 @@ const ze = { render: qe }, Y = [
|
|
|
455
455
|
})
|
|
456
456
|
],
|
|
457
457
|
placement: "top-end",
|
|
458
|
-
whileElementsMounted:
|
|
458
|
+
whileElementsMounted: we
|
|
459
459
|
});
|
|
460
460
|
return (s, o) => (m(), E("div", null, [
|
|
461
461
|
v("div", {
|
|
462
|
-
class:
|
|
462
|
+
class: he(["wrapper", { disabled: s.disabled, compact: s.compact }])
|
|
463
463
|
}, [
|
|
464
|
-
v("span",
|
|
464
|
+
v("span", tt, [
|
|
465
465
|
$(v("input", {
|
|
466
466
|
ref_key: "inputTextFieldRef",
|
|
467
467
|
ref: u,
|
|
@@ -473,38 +473,37 @@ const ze = { render: qe }, Y = [
|
|
|
473
473
|
onFocus: o[1] || (o[1] = (f) => M.value = !1),
|
|
474
474
|
onFocusout: o[2] || (o[2] = () => U(d.value)),
|
|
475
475
|
onKeypress: o[3] || (o[3] = ye(() => U(d.value), ["enter"]))
|
|
476
|
-
}, null, 40,
|
|
477
|
-
[
|
|
476
|
+
}, null, 40, at), [
|
|
477
|
+
[De, d.value]
|
|
478
478
|
]),
|
|
479
|
-
|
|
479
|
+
I.value ? B("", !0) : (m(), E("span", nt)),
|
|
480
480
|
v("button", {
|
|
481
481
|
ref_key: "togglePopoverButtonRef",
|
|
482
482
|
ref: p,
|
|
483
483
|
class: "trigger-popover-button",
|
|
484
484
|
disabled: s.disabled,
|
|
485
485
|
onClick: o[4] || (o[4] = () => {
|
|
486
|
-
M.value ? A(!1) : (M.value = !0, c(
|
|
486
|
+
M.value ? A(!1) : (M.value = !0, c(ge)());
|
|
487
487
|
})
|
|
488
488
|
}, [
|
|
489
|
-
|
|
490
|
-
], 8,
|
|
489
|
+
_(c(qe))
|
|
490
|
+
], 8, st)
|
|
491
491
|
])
|
|
492
492
|
], 2),
|
|
493
493
|
$(v("div", {
|
|
494
494
|
ref_key: "durationInputPopoverRef",
|
|
495
|
-
ref:
|
|
495
|
+
ref: D,
|
|
496
496
|
class: "control-popup",
|
|
497
|
-
style:
|
|
497
|
+
style: xe(c(Ee))
|
|
498
498
|
}, [
|
|
499
|
-
|
|
499
|
+
_(et, {
|
|
500
500
|
"model-value": i.value,
|
|
501
501
|
"used-format": n.value,
|
|
502
502
|
format: t.format,
|
|
503
503
|
"allow-descending": t.allowDescending,
|
|
504
|
-
onCommit: o[5] || (o[5] = (f,
|
|
504
|
+
onCommit: o[5] || (o[5] = (f, Ie, it) => A(!0, {
|
|
505
505
|
usedFormat: f,
|
|
506
|
-
popoverValues:
|
|
507
|
-
directionality: _e
|
|
506
|
+
popoverValues: Ie
|
|
508
507
|
}))
|
|
509
508
|
}, null, 8, ["model-value", "used-format", "format", "allow-descending"])
|
|
510
509
|
], 4), [
|
|
@@ -512,7 +511,7 @@ const ze = { render: qe }, Y = [
|
|
|
512
511
|
])
|
|
513
512
|
]));
|
|
514
513
|
}
|
|
515
|
-
}),
|
|
514
|
+
}), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-098d6ad9"]]), ft = /* @__PURE__ */ F({
|
|
516
515
|
__name: "IntervalControl",
|
|
517
516
|
props: {
|
|
518
517
|
control: {},
|
|
@@ -526,12 +525,12 @@ const ze = { render: qe }, Y = [
|
|
|
526
525
|
setup(e) {
|
|
527
526
|
const t = e, a = R(
|
|
528
527
|
() => t.control.uischema
|
|
529
|
-
), n =
|
|
528
|
+
), n = Pe(
|
|
530
529
|
a,
|
|
531
530
|
"intervalType",
|
|
532
531
|
"DATE_OR_TIME"
|
|
533
532
|
);
|
|
534
|
-
return (l, i) => (m(), J(c(
|
|
533
|
+
return (l, i) => (m(), J(c(rt), {
|
|
535
534
|
id: l.labelForId,
|
|
536
535
|
compact: "",
|
|
537
536
|
disabled: l.disabled,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as d, computed as l,
|
|
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-
|
|
1
|
+
import { defineComponent as d, computed as l, createBlock as s, openBlock as a, unref as n, mergeProps as u, withCtx as c, createCommentVNode as m } from "vue";
|
|
2
|
+
import { D as b } from "./Dropdown-BEx-cvXH.js";
|
|
3
|
+
import { L as V } from "./svgWithTitle-CnTmPYAB.js";
|
|
4
|
+
import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "LoadingDropdown",
|
|
7
7
|
props: {
|
|
@@ -18,7 +18,7 @@ const v = /* @__PURE__ */ d({
|
|
|
18
18
|
}), t = l(() => o.possibleValues === null ? "" : o.modelValue), i = l(
|
|
19
19
|
() => o.disabled || o.possibleValues === null || o.possibleValues.length === 0
|
|
20
20
|
);
|
|
21
|
-
return (e, g) => (
|
|
21
|
+
return (e, g) => (a(), s(n(b), u({ ...e.$props, ...e.$attrs }, {
|
|
22
22
|
"model-value": t.value,
|
|
23
23
|
disabled: i.value,
|
|
24
24
|
"possible-values": e.possibleValues ?? [],
|
|
@@ -26,7 +26,7 @@ const v = /* @__PURE__ */ d({
|
|
|
26
26
|
compact: ""
|
|
27
27
|
}), {
|
|
28
28
|
"icon-right": c(() => [
|
|
29
|
-
e.possibleValues === null ? (
|
|
29
|
+
e.possibleValues === null ? (a(), s(n(V), {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "loading-icon"
|
|
32
32
|
})) : m("", !0)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { m as
|
|
3
|
-
import { u as L, a as U } from "./usePossibleValues-
|
|
4
|
-
import { T as z, a as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as C, toRef as d, computed as a, markRaw as I, createBlock as k, openBlock as F, unref as c, mergeProps as T } from "vue";
|
|
2
|
+
import { m as _ } from "./index-Blg1O3Fz.js";
|
|
3
|
+
import { u as L, a as U } from "./usePossibleValues-DXuWWBh_.js";
|
|
4
|
+
import { T as z, a as M } from "./TwinlistLoadingInfo-C4Tta00d.js";
|
|
5
|
+
import { u as x } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js";
|
|
6
|
+
import { _ as B } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
7
|
+
const D = /* @__PURE__ */ C({
|
|
8
8
|
__name: "ManualTwinlistControl",
|
|
9
9
|
props: {
|
|
10
10
|
control: {},
|
|
@@ -18,31 +18,28 @@ const M = /* @__PURE__ */ I({
|
|
|
18
18
|
setup(r) {
|
|
19
19
|
const n = r;
|
|
20
20
|
let o;
|
|
21
|
-
const
|
|
22
|
-
const l =
|
|
23
|
-
n.changeValue(l), o
|
|
21
|
+
const t = (e) => {
|
|
22
|
+
const l = _(n.control.data, e);
|
|
23
|
+
n.changeValue(l), o?.(l);
|
|
24
24
|
}, p = (e) => {
|
|
25
25
|
if (e !== null)
|
|
26
26
|
if ("includedValues" in e) {
|
|
27
27
|
const { includedValues: l, excludedValues: u, includeUnknownValues: y } = e;
|
|
28
28
|
if (!l || !u)
|
|
29
29
|
return;
|
|
30
|
-
|
|
30
|
+
t({
|
|
31
31
|
manuallySelected: l,
|
|
32
32
|
manuallyDeselected: u,
|
|
33
33
|
includeUnknownColumns: y
|
|
34
34
|
});
|
|
35
35
|
} else
|
|
36
|
-
|
|
37
|
-
}, { possibleValues:
|
|
36
|
+
t({ manuallySelected: e });
|
|
37
|
+
}, { possibleValues: s } = L(
|
|
38
38
|
d(n, "control")
|
|
39
|
-
), { selectedAndDeselected: i, setCurrentManualFilter: m } =
|
|
39
|
+
), { selectedAndDeselected: i, setCurrentManualFilter: m } = x({
|
|
40
40
|
data: a(() => ({ manualFilter: n.control.data })),
|
|
41
41
|
possibleValueIds: a(
|
|
42
|
-
() => {
|
|
43
|
-
var e;
|
|
44
|
-
return ((e = t.value) == null ? void 0 : e.map(({ id: l }) => l)) ?? null;
|
|
45
|
-
}
|
|
42
|
+
() => s.value?.map(({ id: e }) => e) ?? null
|
|
46
43
|
)
|
|
47
44
|
});
|
|
48
45
|
o = m;
|
|
@@ -54,32 +51,29 @@ const M = /* @__PURE__ */ I({
|
|
|
54
51
|
includeUnknownValues: n.control.data.includeUnknownColumns
|
|
55
52
|
};
|
|
56
53
|
}), f = a(
|
|
57
|
-
() => i.value.selected === null ?
|
|
54
|
+
() => i.value.selected === null ? I(z) : null
|
|
58
55
|
), { excludedLabel: w, includedLabel: V } = U(
|
|
59
56
|
d(n, "control")
|
|
60
|
-
),
|
|
61
|
-
() =>
|
|
62
|
-
var e;
|
|
63
|
-
return (e = n.control.uischema.options) == null ? void 0 : e.twinlistSize;
|
|
64
|
-
}
|
|
57
|
+
), h = a(() => w ?? "Excludes"), v = a(() => V ?? "Includes"), g = a(
|
|
58
|
+
() => n.control.uischema.options?.twinlistSize
|
|
65
59
|
);
|
|
66
|
-
return (e, l) => (
|
|
60
|
+
return (e, l) => (F(), k(c(M), T(e.$attrs, {
|
|
67
61
|
id: e.labelForId,
|
|
68
62
|
"show-search": "",
|
|
69
63
|
disabled: e.disabled,
|
|
70
64
|
"empty-state-component": f.value,
|
|
71
65
|
"model-value": b.value,
|
|
72
|
-
"possible-values": c(
|
|
66
|
+
"possible-values": c(s) ?? [],
|
|
73
67
|
size: g.value,
|
|
74
|
-
"left-label":
|
|
75
|
-
"right-label":
|
|
68
|
+
"left-label": h.value,
|
|
69
|
+
"right-label": v.value,
|
|
76
70
|
"is-valid": e.isValid,
|
|
77
71
|
compact: "",
|
|
78
72
|
"show-resize-handle": "",
|
|
79
73
|
"onUpdate:modelValue": p
|
|
80
74
|
}), null, 16, ["id", "disabled", "empty-state-component", "model-value", "possible-values", "size", "left-label", "right-label", "is-valid"]));
|
|
81
75
|
}
|
|
82
|
-
}),
|
|
76
|
+
}), $ = /* @__PURE__ */ B(D, [["__scopeId", "data-v-3a892220"]]);
|
|
83
77
|
export {
|
|
84
|
-
|
|
78
|
+
$ as default
|
|
85
79
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as s, toRef as n, createBlock as t, openBlock as d, unref as o } from "vue";
|
|
2
|
+
import { u as r } from "./usePossibleValues-DXuWWBh_.js";
|
|
3
|
+
import { M as u } from "./MultiselectListBox-CMTJnAWr.js";
|
|
4
|
+
const V = /* @__PURE__ */ s({
|
|
5
|
+
__name: "MultiSelectListBoxControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(l) {
|
|
16
|
+
const a = l, { possibleValues: i } = r(n(a, "control"));
|
|
17
|
+
return (e, p) => (d(), t(o(u), {
|
|
18
|
+
id: e.labelForId,
|
|
19
|
+
"possible-values": o(i) || [],
|
|
20
|
+
disabled: e.disabled,
|
|
21
|
+
"model-value": e.control.data,
|
|
22
|
+
"is-valid": e.isValid,
|
|
23
|
+
ariaLabel: e.control.label,
|
|
24
|
+
size: e.control.uischema.options?.size,
|
|
25
|
+
"onUpdate:modelValue": e.changeValue
|
|
26
|
+
}, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"]));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
V as default
|
|
31
|
+
};
|