@knime/jsonforms 1.9.4 → 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 +14 -0
- package/dist/{AnyOfTwinlist-D1KycEHY.js → AnyOfTwinlist-CAyoczAB.js} +1 -1
- package/dist/{Button-Dj1USqpr.js → Button-BzZgjDcV.js} +1 -1
- package/dist/{Checkbox-5l-7O-Rc.js → Checkbox-C_i21GaA.js} +1 -1
- package/dist/{CheckboxControl-CcV_DXsi.js → CheckboxControl-DDoLA6Vd.js} +2 -2
- package/dist/{Checkboxes-TSVYIY6A.js → Checkboxes-C_e0UeAC.js} +2 -2
- package/dist/{CheckboxesControl-CEIBobjb.js → CheckboxesControl-mSVKQ6CW.js} +2 -2
- package/dist/{ComboBoxControl-FTELjHzm.js → ComboBoxControl-BY9Wb-2K.js} +9 -9
- package/dist/{DateControl-CF5FYRLV.js → DateControl-YjVx-aFd.js} +1 -1
- package/dist/{DateTimeControl-D1B_TgdP.js → DateTimeControl-D5Z7nHgz.js} +2 -2
- package/dist/{DateTimeFormatInput--ahcIWAg.js → DateTimeFormatInput-DP9GTXiX.js} +57 -57
- package/dist/{DateTimeFormatPickerControl-BliVRAB0.js → DateTimeFormatPickerControl-DdIvsCjx.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CXseluiT.js → DateTimeFormatPickerWithTypeControl-CrrpUdTR.js} +3 -3
- package/dist/{DateTimeInput-DqqCRfzR.js → DateTimeInput-BSUVtZ_C.js} +1182 -1182
- package/dist/{Dropdown-BfqaIGuC.js → Dropdown-DP_F92tv.js} +85 -86
- package/dist/{DropdownControl-D8-qWkOR.js → DropdownControl-GMJULpL6.js} +4 -4
- package/dist/{HorizontalLayout-CWRVRpwR.js → HorizontalLayout-COzD3yLU.js} +1 -1
- package/dist/{InputField-C2yLbANc.js → InputField-BF7vTszr.js} +39 -39
- package/dist/{IntegerControl-Bz5KWKoG.js → IntegerControl-CKIl5Rfi.js} +1 -1
- package/dist/{IntervalControl-B0CHqejJ.js → IntervalControl-C2ykMH4V.js} +129 -129
- package/dist/{LoadingDropdown-fVxRhH6V.js → LoadingDropdown-CxqiKfdN.js} +3 -3
- package/dist/{MultimodeTwinlistControl-DV_0SHHy.js → MultimodeTwinlistControl-BM744sO6.js} +27 -27
- package/dist/{MultiselectListBox-Cn7ngRfj.js → MultiselectListBox-DwBSUb9V.js} +23 -25
- package/dist/{NameFilter-DTecZo_d.js → NameFilter-Dgf1mtuH.js} +1 -1
- package/dist/{NumberControl-Bv6y2n41.js → NumberControl-Cp0OiNDl.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-6m9utn_F.js → NumberControlBase.vue_vue_type_script_setup_true_lang-B7BnKygX.js} +2 -2
- package/dist/{NumberInput-Ys4Hdd7b.js → NumberInput-H3BZ_gou.js} +2 -2
- package/dist/{OneOfDropdown-CDAPUCNY.js → OneOfDropdown-DbkVGpS-.js} +1 -1
- package/dist/{RadioControl-B2pjYv6_.js → RadioControl-9cZ9L-XZ.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CclH-Wwk.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DXLEuMzn.js} +2 -2
- package/dist/{RichTextControl-Cp-ZJ8Qo.js → RichTextControl-B6KPOKpK.js} +1915 -1915
- package/dist/{SectionHeading-D0esbYSn.js → SectionHeading-BMWemtGd.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js} +5525 -5356
- package/dist/{SectionLayout-lUG0FeYA.js → SectionLayout-DR_wqkbw.js} +3 -3
- package/dist/SettingsSubPanel-TN03TZ-e.js +5 -0
- package/dist/SettingsSubPanelLayout-DxJd3igq.js +61 -0
- package/dist/{SimpleButtonControl-DWLU_5Ny.js → SimpleButtonControl-BBy1H52n.js} +8 -8
- package/dist/{SimpleTwinlistControl-D6ORIuzH.js → SimpleTwinlistControl-lyNwPBvG.js} +2 -2
- package/dist/{SingleSelectControl-BKv71LA7.js → SingleSelectControl-BRjpWFqk.js} +2 -2
- package/dist/{SortListControl-B5N2Hqr2.js → SortListControl-BTrDdu9O.js} +123 -123
- package/dist/{TextAreaControl-Bb1thkUU.js → TextAreaControl-B1-g-8ug.js} +1 -1
- package/dist/{TextControl-CuiHsefr.js → TextControl-NsT1R1rk.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DqaxrzeR.js → TextControl.vue_vue_type_script_setup_true_lang-Dgyo9rJ-.js} +4 -4
- package/dist/{TimeControl-CfdGsohr.js → TimeControl-CWjNnOHM.js} +2 -2
- package/dist/{TwinlistControlBase-CYNUKmVM.js → TwinlistControlBase-Dam1VsbM.js} +3 -3
- package/dist/{TwinlistLoadingInfo-CPqVvWp4.js → TwinlistLoadingInfo-y6JvMoCY.js} +305 -384
- package/dist/{TypedStringFilter-0MA1D7-X.js → TypedStringFilter-BjzWIu-L.js} +1 -1
- package/dist/ValueSwitch-DZ5LB9vA.js +131 -0
- package/dist/{ValueSwitchControl-avfCCusm.js → ValueSwitchControl-BCpz0Ya4.js} +1 -1
- package/dist/{VerticalLayout-DXyKnMvI.js → VerticalLayout-WkUU2XH3.js} +5 -5
- package/dist/{VerticalLayoutBase-D-TX7EUL.js → VerticalLayoutBase-413o9U_2.js} +1 -1
- package/dist/{ZonedDateTimeControl-BNZ8YhWM.js → ZonedDateTimeControl-6u9Nbw2f.js} +4 -4
- package/dist/{_baseEach-FP8ISlsz.js → _baseEach-D8bWEfeT.js} +2 -2
- package/dist/_baseIteratee-c38lvCZS.js +516 -0
- package/dist/{_getTag-DiktJuv_.js → _getTag-DwDUrDKD.js} +25 -26
- 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-Bvx7vLrT.js → localTimeUtils-Bpn7Hjtc.js} +1 -1
- package/dist/{magic-string.es-CvzN4vs8.js → magic-string.es-Dlayy_3o.js} +10 -10
- 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/controlToRenderer.d.ts +8 -1
- 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/higherOrderComponents/control/index.d.ts +1 -0
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +1 -0
- package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +5 -2
- 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 +115 -1096
- 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-DMRd3aDh.js → svgWithTitle-CEHRG42c.js} +2 -2
- package/dist/testUtils/component.d.ts +10 -10
- package/dist/testing.js +4395 -4086
- package/dist/toString-BC2RXvs0.js +25 -0
- package/dist/{useBuiltinValidations-iU8yJR-J.js → useBuiltinValidations-BsKhdvbW.js} +1 -1
- package/dist/{usePossibleValues-CQWkZRBa.js → usePossibleValues-D12PcddT.js} +1 -1
- package/package.json +6 -6
- package/dist/SettingsSubPanel-DlUlLFts.js +0 -5
- package/dist/SettingsSubPanelLayout-BvbwLKfV.js +0 -61
- package/dist/ValueSwitch-B6rM3Cb9.js +0 -138
- package/dist/_baseIteratee-DhaGkQLM.js +0 -518
- 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/isObject-B53jY8Qg.js +0 -7
- package/dist/isObjectLike-BatpeCIi.js +0 -29
- package/dist/isSymbol-C3_SC0Qp.js +0 -8
- package/dist/reload-BhzcZRFp.js +0 -17
- package/dist/toString-B9O7P854.js +0 -26
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as
|
|
2
|
-
import { o as
|
|
3
|
-
import { A as
|
|
4
|
-
import { C as
|
|
1
|
+
import { defineComponent as Y, ref as w, h as j, watch as O, computed as P, useId as G, toRefs as z, nextTick as U, resolveComponent as v, openBlock as d, createBlock as D, withCtx as S, createElementVNode as g, normalizeClass as x, normalizeStyle as q, createElementBlock as p, withModifiers as b, renderSlot as k, toDisplayString as I, createCommentVNode as E, withKeys as X, createVNode as B, withDirectives as Q, Fragment as C, renderList as M, createTextVNode as J, vShow as Z } from "vue";
|
|
2
|
+
import { o as $, t as ee, c as V, d as K, i as A, n as te, e as se, f as ne } from "./index-Bf0xDq3g.js";
|
|
3
|
+
import { A as ie } from "./arrow-dropdown-DdgjzLAO.js";
|
|
4
|
+
import { C as oe } from "./close-BuY4mhXV.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { i as
|
|
10
|
-
import { i as
|
|
11
|
-
var
|
|
12
|
-
function
|
|
6
|
+
import { u as re } from "./useSearch-hpyYQ_6y.js";
|
|
7
|
+
import { q as le, _ as ae } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
|
|
8
|
+
import { i as de, a as ue, b as ce, c as he, d as pe, e as fe, f as me } from "./_getTag-DwDUrDKD.js";
|
|
9
|
+
import { i as ge } from "./isArray-WzO_os3q.js";
|
|
10
|
+
import { i as ye } from "./hotkeys-kwHHtFKz.js";
|
|
11
|
+
var xe = "[object Map]", Ve = "[object Set]", we = Object.prototype, ve = we.hasOwnProperty;
|
|
12
|
+
function be(e) {
|
|
13
13
|
if (e == null)
|
|
14
14
|
return !0;
|
|
15
|
-
if (
|
|
15
|
+
if (de(e) && (ge(e) || typeof e == "string" || typeof e.splice == "function" || ue(e) || ce(e) || he(e)))
|
|
16
16
|
return !e.length;
|
|
17
|
-
var t =
|
|
18
|
-
if (t ==
|
|
17
|
+
var t = pe(e);
|
|
18
|
+
if (t == xe || t == Ve)
|
|
19
19
|
return !e.size;
|
|
20
|
-
if (
|
|
21
|
-
return !
|
|
20
|
+
if (fe(e))
|
|
21
|
+
return !me(e).length;
|
|
22
22
|
for (var s in e)
|
|
23
|
-
if (
|
|
23
|
+
if (ve.call(e, s))
|
|
24
24
|
return !1;
|
|
25
25
|
return !0;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const Ee = /* @__PURE__ */ Y({
|
|
28
28
|
name: "OnClickOutside",
|
|
29
29
|
props: ["as", "options"],
|
|
30
30
|
emits: ["trigger"],
|
|
31
31
|
setup(e, { slots: t, emit: s }) {
|
|
32
|
-
const o =
|
|
33
|
-
return
|
|
32
|
+
const o = w();
|
|
33
|
+
return $(o, (i) => {
|
|
34
34
|
s("trigger", i);
|
|
35
35
|
}, e.options), () => {
|
|
36
36
|
if (t.default)
|
|
@@ -38,25 +38,25 @@ const Ce = /* @__PURE__ */ Y({
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
function
|
|
41
|
+
function Ce(e) {
|
|
42
42
|
var t;
|
|
43
|
-
const s =
|
|
43
|
+
const s = V(e);
|
|
44
44
|
return (t = s == null ? void 0 : s.$el) != null ? t : s;
|
|
45
45
|
}
|
|
46
|
-
const Oe =
|
|
46
|
+
const Oe = ne ? window : void 0;
|
|
47
47
|
function De(...e) {
|
|
48
48
|
let t, s, o, i;
|
|
49
49
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, o, i] = e, t = Oe) : [t, s, o, i] = e, !t)
|
|
50
|
-
return
|
|
50
|
+
return te;
|
|
51
51
|
Array.isArray(s) || (s = [s]), Array.isArray(o) || (o = [o]);
|
|
52
52
|
const n = [], f = () => {
|
|
53
53
|
n.forEach((h) => h()), n.length = 0;
|
|
54
|
-
}, r = (h, a, m, l) => (h.addEventListener(a, m, l), () => h.removeEventListener(a, m, l)), c =
|
|
55
|
-
() => [
|
|
54
|
+
}, r = (h, a, m, l) => (h.addEventListener(a, m, l), () => h.removeEventListener(a, m, l)), c = O(
|
|
55
|
+
() => [Ce(t), V(i)],
|
|
56
56
|
([h, a]) => {
|
|
57
57
|
if (f(), !h)
|
|
58
58
|
return;
|
|
59
|
-
const m =
|
|
59
|
+
const m = se(a) ? { ...a } : a;
|
|
60
60
|
n.push(
|
|
61
61
|
...s.flatMap((l) => o.map((y) => r(h, l, y, m)))
|
|
62
62
|
);
|
|
@@ -67,7 +67,7 @@ function De(...e) {
|
|
|
67
67
|
};
|
|
68
68
|
return K(u), u;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function T(e) {
|
|
71
71
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
72
72
|
}
|
|
73
73
|
function N(e) {
|
|
@@ -79,19 +79,19 @@ function N(e) {
|
|
|
79
79
|
return !s || s.tagName === "BODY" ? !1 : N(s);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Se(e) {
|
|
83
83
|
const t = e || window.event, s = t.target;
|
|
84
84
|
return N(s) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
const s =
|
|
86
|
+
const _ = /* @__PURE__ */ new WeakMap();
|
|
87
|
+
function ke(e, t = !1) {
|
|
88
|
+
const s = w(t);
|
|
89
89
|
let o = null, i = "";
|
|
90
|
-
|
|
91
|
-
const c =
|
|
90
|
+
O(ee(e), (r) => {
|
|
91
|
+
const c = T(V(r));
|
|
92
92
|
if (c) {
|
|
93
93
|
const u = c;
|
|
94
|
-
if (
|
|
94
|
+
if (_.get(u) || _.set(u, u.style.overflow), u.style.overflow !== "hidden" && (i = u.style.overflow), u.style.overflow === "hidden")
|
|
95
95
|
return s.value = !0;
|
|
96
96
|
if (s.value)
|
|
97
97
|
return u.style.overflow = "hidden";
|
|
@@ -100,18 +100,18 @@ function Ie(e, t = !1) {
|
|
|
100
100
|
immediate: !0
|
|
101
101
|
});
|
|
102
102
|
const n = () => {
|
|
103
|
-
const r =
|
|
103
|
+
const r = T(V(e));
|
|
104
104
|
!r || s.value || (A && (o = De(
|
|
105
105
|
r,
|
|
106
106
|
"touchmove",
|
|
107
107
|
(c) => {
|
|
108
|
-
|
|
108
|
+
Se(c);
|
|
109
109
|
},
|
|
110
110
|
{ passive: !1 }
|
|
111
111
|
)), r.style.overflow = "hidden", s.value = !0);
|
|
112
112
|
}, f = () => {
|
|
113
|
-
const r =
|
|
114
|
-
!r || !s.value || (A && (o == null || o()), r.style.overflow = i,
|
|
113
|
+
const r = T(V(e));
|
|
114
|
+
!r || !s.value || (A && (o == null || o()), r.style.overflow = i, _.delete(r), s.value = !1);
|
|
115
115
|
};
|
|
116
116
|
return K(f), P({
|
|
117
117
|
get() {
|
|
@@ -122,32 +122,31 @@ function Ie(e, t = !1) {
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ie() {
|
|
126
126
|
let e = !1;
|
|
127
|
-
const t =
|
|
127
|
+
const t = w(!1);
|
|
128
128
|
return (s, o) => {
|
|
129
129
|
if (t.value = o.value, e)
|
|
130
130
|
return;
|
|
131
131
|
e = !0;
|
|
132
|
-
const i =
|
|
133
|
-
|
|
132
|
+
const i = ke(s, o.value);
|
|
133
|
+
O(t, (n) => i.value = n);
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Be = "Escape", W = "Enter", Me = [L, R, H, F, W], Ae = {
|
|
136
|
+
Ie();
|
|
137
|
+
const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Te = "Escape", W = "Enter", _e = [L, R, H, F, W], Be = {
|
|
139
138
|
name: "Dropdown",
|
|
140
139
|
components: {
|
|
141
|
-
DropdownIcon:
|
|
142
|
-
OnClickOutside:
|
|
143
|
-
FunctionButton:
|
|
144
|
-
CloseIcon:
|
|
140
|
+
DropdownIcon: ie,
|
|
141
|
+
OnClickOutside: Ee,
|
|
142
|
+
FunctionButton: le,
|
|
143
|
+
CloseIcon: oe
|
|
145
144
|
},
|
|
146
145
|
props: {
|
|
147
146
|
id: {
|
|
148
147
|
type: String,
|
|
149
148
|
default() {
|
|
150
|
-
return `Dropdown-${
|
|
149
|
+
return `Dropdown-${G()}`;
|
|
151
150
|
}
|
|
152
151
|
},
|
|
153
152
|
modelValue: {
|
|
@@ -220,19 +219,19 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Be = "Escape", W =
|
|
|
220
219
|
},
|
|
221
220
|
emits: ["update:modelValue"],
|
|
222
221
|
setup(e) {
|
|
223
|
-
const { caseSensitiveSearch: t, possibleValues: s } =
|
|
222
|
+
const { caseSensitiveSearch: t, possibleValues: s } = z(e), o = w(!1), i = P(() => {
|
|
224
223
|
const r = {};
|
|
225
224
|
for (const c of s.value)
|
|
226
225
|
r[c.id] = c.text;
|
|
227
226
|
return r;
|
|
228
|
-
}), n =
|
|
229
|
-
|
|
227
|
+
}), n = w(i.value[e.modelValue]);
|
|
228
|
+
O(
|
|
230
229
|
() => e.modelValue,
|
|
231
230
|
(r) => {
|
|
232
231
|
n.value = i.value[r];
|
|
233
232
|
}
|
|
234
233
|
);
|
|
235
|
-
const f =
|
|
234
|
+
const f = re(
|
|
236
235
|
n,
|
|
237
236
|
t,
|
|
238
237
|
s,
|
|
@@ -299,7 +298,7 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Be = "Escape", W =
|
|
|
299
298
|
},
|
|
300
299
|
hasOptionTemplate() {
|
|
301
300
|
return this.possibleValues.length === 0 ? !1 : this.possibleValues.every(
|
|
302
|
-
(e) => e.slotData && !
|
|
301
|
+
(e) => e.slotData && !be(e.slotData)
|
|
303
302
|
);
|
|
304
303
|
},
|
|
305
304
|
selectedOption() {
|
|
@@ -398,17 +397,17 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Be = "Escape", W =
|
|
|
398
397
|
},
|
|
399
398
|
async expand() {
|
|
400
399
|
var e, t;
|
|
401
|
-
this.isDisabled || (this.searchValue = this.displayTextMap[this.modelValue], this.hasOptionTemplate && (this.slotContainerHeight = ((e = this.$refs.slotContainer) == null ? void 0 : e.clientHeight) ?? 0), this.isExpanded = !0, this.candidate === this.modelValue && (this.isMissing || this.showPlaceholder) && this.updateCandidate((t = this.currentPossibleValues[0]) == null ? void 0 : t.id), await
|
|
400
|
+
this.isDisabled || (this.searchValue = this.displayTextMap[this.modelValue], this.hasOptionTemplate && (this.slotContainerHeight = ((e = this.$refs.slotContainer) == null ? void 0 : e.clientHeight) ?? 0), this.isExpanded = !0, this.candidate === this.modelValue && (this.isMissing || this.showPlaceholder) && this.updateCandidate((t = this.currentPossibleValues[0]) == null ? void 0 : t.id), await U(), this.getSearchInput().focus(), this.getSearchInput().select(), this.candidate && this.scrollTo(this.candidate));
|
|
402
401
|
},
|
|
403
402
|
collapse() {
|
|
404
403
|
this.isExpanded = !1, this.getButtonRef().focus();
|
|
405
404
|
},
|
|
406
405
|
/* NOTE: we use a single keyDown method because @keydown.up bindings are not testable. */
|
|
407
406
|
handleKeyDownButton(e) {
|
|
408
|
-
this.isExpanded ? this.handleKeyDownOnExpanded(e) :
|
|
407
|
+
this.isExpanded ? this.handleKeyDownOnExpanded(e) : ye(e, _e) && (this.expand(), e.preventDefault());
|
|
409
408
|
},
|
|
410
409
|
handleKeyDownOnExpanded(e) {
|
|
411
|
-
e.key === L && (this.onArrowDown(), e.preventDefault()), e.key === R && (this.onArrowUp(), e.preventDefault()), e.key === F && (this.onEndKey(), e.preventDefault()), e.key === H && (this.onHomeKey(), e.preventDefault()), e.key ===
|
|
410
|
+
e.key === L && (this.onArrowDown(), e.preventDefault()), e.key === R && (this.onArrowUp(), e.preventDefault()), e.key === F && (this.onEndKey(), e.preventDefault()), e.key === H && (this.onHomeKey(), e.preventDefault()), e.key === Te && (this.collapse(), e.preventDefault(), e.stopPropagation()), e.key === W && (this.onEnter(), e.preventDefault());
|
|
412
411
|
},
|
|
413
412
|
hasSelection() {
|
|
414
413
|
return !!(this.modelValue && !this.isMissing);
|
|
@@ -436,20 +435,20 @@ const L = "ArrowDown", R = "ArrowUp", H = "Home", F = "End", Be = "Escape", W =
|
|
|
436
435
|
this.searchValue = "", this.getSearchInput().focus();
|
|
437
436
|
}
|
|
438
437
|
}
|
|
439
|
-
},
|
|
438
|
+
}, Me = ["id"], Ae = ["id", "aria-label", "aria-labelledby", "aria-expanded"], Pe = ["value"], Ke = {
|
|
440
439
|
key: 1,
|
|
441
440
|
ref: "slotContainer"
|
|
442
|
-
},
|
|
441
|
+
}, Ne = { class: "right" }, Le = {
|
|
443
442
|
key: 0,
|
|
444
443
|
class: "loading-icon"
|
|
445
|
-
},
|
|
444
|
+
}, Re = ["aria-activedescendant"], He = {
|
|
446
445
|
key: 0,
|
|
447
446
|
class: "empty-state"
|
|
448
|
-
},
|
|
449
|
-
function
|
|
447
|
+
}, Fe = ["id", "title", "aria-selected", "onMouseenter", "onClick"], We = ["id", "name", "value"];
|
|
448
|
+
function Ye(e, t, s, o, i, n) {
|
|
450
449
|
const f = v("CloseIcon"), r = v("FunctionButton"), c = v("DropdownIcon"), u = v("OnClickOutside");
|
|
451
|
-
return d(),
|
|
452
|
-
default:
|
|
450
|
+
return d(), D(u, { onTrigger: n.closeDropdown }, {
|
|
451
|
+
default: S(() => {
|
|
453
452
|
var h;
|
|
454
453
|
return [
|
|
455
454
|
g("div", {
|
|
@@ -475,7 +474,7 @@ function Ue(e, t, s, o, i, n) {
|
|
|
475
474
|
missing: n.isMissing && !i.isExpanded,
|
|
476
475
|
"has-option-template": n.hasOptionTemplate && !i.isExpanded
|
|
477
476
|
}),
|
|
478
|
-
style:
|
|
477
|
+
style: q({
|
|
479
478
|
...i.isExpanded && n.hasOptionTemplate && {
|
|
480
479
|
height: `calc(${i.slotContainerHeight}px + 0 * var(--form-border-width))`,
|
|
481
480
|
boxSizing: "content-box"
|
|
@@ -498,7 +497,7 @@ function Ue(e, t, s, o, i, n) {
|
|
|
498
497
|
onClick: t[0] || (t[0] = b(() => {
|
|
499
498
|
}, ["stop"])),
|
|
500
499
|
onInput: t[1] || (t[1] = (a) => n.handleSearch(a.target.value))
|
|
501
|
-
}, null, 40,
|
|
500
|
+
}, null, 40, Pe)) : n.hasOptionTemplate ? (d(), p("div", Ke, [
|
|
502
501
|
k(e.$slots, "option", {
|
|
503
502
|
slotData: (h = n.selectedOption) == null ? void 0 : h.slotData,
|
|
504
503
|
isMissing: n.isMissing,
|
|
@@ -509,11 +508,11 @@ function Ue(e, t, s, o, i, n) {
|
|
|
509
508
|
key: 2,
|
|
510
509
|
ref: "span"
|
|
511
510
|
}, I(n.displayText), 513)),
|
|
512
|
-
g("div",
|
|
513
|
-
n.hasRightIcon ? (d(), p("div",
|
|
511
|
+
g("div", Ne, [
|
|
512
|
+
n.hasRightIcon ? (d(), p("div", Le, [
|
|
514
513
|
k(e.$slots, "icon-right")
|
|
515
514
|
])) : E("", !0),
|
|
516
|
-
i.isExpanded && n.nonEmptySearchValue ? (d(),
|
|
515
|
+
i.isExpanded && n.nonEmptySearchValue ? (d(), D(r, {
|
|
517
516
|
key: 1,
|
|
518
517
|
ref: "closeButton",
|
|
519
518
|
title: "Close",
|
|
@@ -524,12 +523,12 @@ function Ue(e, t, s, o, i, n) {
|
|
|
524
523
|
}, ["stop"]), ["enter"])),
|
|
525
524
|
onClick: b(n.handleResetInput, ["stop"])
|
|
526
525
|
}, {
|
|
527
|
-
default:
|
|
526
|
+
default: S(() => [
|
|
528
527
|
B(f, { class: "icon" })
|
|
529
528
|
]),
|
|
530
529
|
_: 1
|
|
531
530
|
}, 8, ["compact", "onClick"])) : E("", !0),
|
|
532
|
-
!i.isExpanded || !n.nonEmptySearchValue ? (d(),
|
|
531
|
+
!i.isExpanded || !n.nonEmptySearchValue ? (d(), D(r, {
|
|
533
532
|
key: 2,
|
|
534
533
|
class: "button",
|
|
535
534
|
compact: s.compact,
|
|
@@ -538,7 +537,7 @@ function Ue(e, t, s, o, i, n) {
|
|
|
538
537
|
tabindex: i.isExpanded ? 0 : -1,
|
|
539
538
|
onClick: b(n.toggleExpanded, ["stop"])
|
|
540
539
|
}, {
|
|
541
|
-
default:
|
|
540
|
+
default: S(() => [
|
|
542
541
|
B(c, {
|
|
543
542
|
class: x(["dropdown-icon", "icon"])
|
|
544
543
|
})
|
|
@@ -546,17 +545,17 @@ function Ue(e, t, s, o, i, n) {
|
|
|
546
545
|
_: 1
|
|
547
546
|
}, 8, ["compact", "disabled", "title", "tabindex", "onClick"])) : E("", !0)
|
|
548
547
|
])
|
|
549
|
-
], 46,
|
|
550
|
-
|
|
548
|
+
], 46, Ae),
|
|
549
|
+
Q(g("ul", {
|
|
551
550
|
ref: "ul",
|
|
552
551
|
role: "listbox",
|
|
553
552
|
tabindex: "-1",
|
|
554
553
|
"aria-activedescendant": i.isExpanded ? n.generateId("option", n.getCurrentSelectedId()) : void 0,
|
|
555
554
|
class: x({ "drops-upwards": s.direction === "up" })
|
|
556
555
|
}, [
|
|
557
|
-
n.hasNoFilteredPossibleValues ? (d(), p("div",
|
|
556
|
+
n.hasNoFilteredPossibleValues ? (d(), p("div", He, I(i.emptyState), 1)) : E("", !0),
|
|
558
557
|
(d(!0), p(C, null, M(n.orderedGroupedValues, (a, m) => (d(), p(C, { key: m }, [
|
|
559
|
-
|
|
558
|
+
t[5] || (t[5] = g("span", { class: "group-divider" }, null, -1)),
|
|
560
559
|
(d(!0), p(C, null, M(a.items, (l) => (d(), p("li", {
|
|
561
560
|
id: n.generateId("option", l.id),
|
|
562
561
|
key: `listbox-${l.id}`,
|
|
@@ -580,26 +579,26 @@ function Ue(e, t, s, o, i, n) {
|
|
|
580
579
|
slotData: l.slotData,
|
|
581
580
|
expanded: !0
|
|
582
581
|
}) : (d(), p(C, { key: 1 }, [
|
|
583
|
-
|
|
582
|
+
J(I(l.text), 1)
|
|
584
583
|
], 64))
|
|
585
|
-
], 42,
|
|
584
|
+
], 42, Fe))), 128))
|
|
586
585
|
], 64))), 128))
|
|
587
|
-
], 10,
|
|
588
|
-
[
|
|
586
|
+
], 10, Re), [
|
|
587
|
+
[Z, i.isExpanded]
|
|
589
588
|
]),
|
|
590
589
|
g("input", {
|
|
591
590
|
id: s.id,
|
|
592
591
|
type: "hidden",
|
|
593
592
|
name: s.name,
|
|
594
593
|
value: s.modelValue
|
|
595
|
-
}, null, 8,
|
|
596
|
-
], 10,
|
|
594
|
+
}, null, 8, We)
|
|
595
|
+
], 10, Me)
|
|
597
596
|
];
|
|
598
597
|
}),
|
|
599
598
|
_: 3
|
|
600
599
|
}, 8, ["onTrigger"]);
|
|
601
600
|
}
|
|
602
|
-
const
|
|
601
|
+
const et = /* @__PURE__ */ ae(Be, [["render", Ye], ["__scopeId", "data-v-b7f2f914"]]);
|
|
603
602
|
export {
|
|
604
|
-
|
|
603
|
+
et as D
|
|
605
604
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, ref as c, toRef as k, computed as p, openBlock as s, createBlock as i, withCtx as l, unref as a, normalizeProps as y, mergeProps as L, createCommentVNode as m, createVNode as w, renderSlot as b } from "vue";
|
|
2
|
-
import { L as F, E as D } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { L as F, E as D } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
|
|
3
3
|
import { u as E } from "./useHideOnNull-CCfNP3O7.js";
|
|
4
|
-
import { u as N } from "./usePossibleValues-
|
|
5
|
-
import { L as B } from "./LoadingDropdown-
|
|
6
|
-
import { C as P } from "./Checkbox-
|
|
4
|
+
import { u as N } from "./usePossibleValues-D12PcddT.js";
|
|
5
|
+
import { L as B } from "./LoadingDropdown-CxqiKfdN.js";
|
|
6
|
+
import { C as P } from "./Checkbox-C_i21GaA.js";
|
|
7
7
|
const I = /* @__PURE__ */ C({
|
|
8
8
|
__name: "DropdownControl",
|
|
9
9
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as a, createElementBlock as o, Fragment as s, renderList as n, createBlock as u, unref as c } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { r as m, _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
|
|
3
3
|
const i = { class: "horizontal" }, d = /* @__PURE__ */ l({
|
|
4
4
|
__name: "HorizontalLayout",
|
|
5
5
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { openBlock as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
2
|
+
import { openBlock as i, createElementBlock as s, normalizeClass as r, renderSlot as u, createCommentVNode as o, createElementVNode as d, mergeProps as f } from "vue";
|
|
3
|
+
import { _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
|
|
4
|
+
const c = {
|
|
5
5
|
name: "InputField",
|
|
6
6
|
props: {
|
|
7
7
|
modelValue: {
|
|
8
8
|
default: "",
|
|
9
|
-
type: [Number, String]
|
|
9
|
+
type: [Number, String, null]
|
|
10
10
|
},
|
|
11
11
|
id: {
|
|
12
|
-
type: String,
|
|
12
|
+
type: [String, null],
|
|
13
13
|
default: null
|
|
14
14
|
},
|
|
15
15
|
name: {
|
|
@@ -102,47 +102,47 @@ const h = {
|
|
|
102
102
|
return typeof this.getValue() > "u" ? (e = !1, t = "Invalid input") : this.pattern && this.$refs.input.validity.patternMismatch && (e = !1, t = "Input does not match the expected pattern"), { isValid: e, errorMessage: t };
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, m = {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: "icon"
|
|
108
|
-
},
|
|
108
|
+
}, h = ["id", "name", "value", "type", "pattern", "placeholder", "autofocus", "aria-activedescendant", "aria-owns", "autocomplete", "disabled"], y = {
|
|
109
109
|
key: 1,
|
|
110
110
|
class: "icon icon-right"
|
|
111
|
-
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
114
|
-
class: r(["input-wrapper", { compact:
|
|
111
|
+
};
|
|
112
|
+
function g(e, t, n, v, I, l) {
|
|
113
|
+
return i(), s("div", {
|
|
114
|
+
class: r(["input-wrapper", { compact: n.compact }])
|
|
115
115
|
}, [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
])) :
|
|
119
|
-
d("input",
|
|
120
|
-
id:
|
|
116
|
+
l.hasLeftIcon ? (i(), s("div", m, [
|
|
117
|
+
u(e.$slots, "icon")
|
|
118
|
+
])) : o("", !0),
|
|
119
|
+
d("input", f(e.$attrs, {
|
|
120
|
+
id: n.id,
|
|
121
121
|
ref: "input",
|
|
122
|
-
name:
|
|
123
|
-
value:
|
|
124
|
-
class:
|
|
125
|
-
type:
|
|
126
|
-
pattern:
|
|
127
|
-
placeholder:
|
|
128
|
-
autofocus:
|
|
129
|
-
"aria-activedescendant":
|
|
130
|
-
"aria-owns":
|
|
131
|
-
autocomplete:
|
|
132
|
-
disabled:
|
|
133
|
-
onInput: t[0] || (t[0] = (...
|
|
134
|
-
onFocus: t[1] || (t[1] = (
|
|
135
|
-
onKeyup: t[2] || (t[2] = (
|
|
136
|
-
onKeypress: t[3] || (t[3] = (
|
|
137
|
-
onKeydown: t[4] || (t[4] = (
|
|
138
|
-
}), null, 16,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
])) :
|
|
142
|
-
|
|
122
|
+
name: n.name,
|
|
123
|
+
value: n.modelValue,
|
|
124
|
+
class: l.inputClassList,
|
|
125
|
+
type: n.type,
|
|
126
|
+
pattern: n.pattern,
|
|
127
|
+
placeholder: n.placeholder,
|
|
128
|
+
autofocus: n.autofocus,
|
|
129
|
+
"aria-activedescendant": n.ariaActivedescendant,
|
|
130
|
+
"aria-owns": n.ariaOwns,
|
|
131
|
+
autocomplete: n.autocomplete,
|
|
132
|
+
disabled: n.disabled,
|
|
133
|
+
onInput: t[0] || (t[0] = (...a) => l.onInput && l.onInput(...a)),
|
|
134
|
+
onFocus: t[1] || (t[1] = (a) => e.$emit("focus", a)),
|
|
135
|
+
onKeyup: t[2] || (t[2] = (a) => e.$emit("keyup", a)),
|
|
136
|
+
onKeypress: t[3] || (t[3] = (a) => e.$emit("keypress", a)),
|
|
137
|
+
onKeydown: t[4] || (t[4] = (a) => e.$emit("keydown", a))
|
|
138
|
+
}), null, 16, h),
|
|
139
|
+
l.hasRightIcon ? (i(), s("div", y, [
|
|
140
|
+
u(e.$slots, "iconRight")
|
|
141
|
+
])) : o("", !0),
|
|
142
|
+
t[5] || (t[5] = d("span", { class: "invalid-marker" }, null, -1))
|
|
143
143
|
], 2);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const w = /* @__PURE__ */ p(c, [["render", g], ["__scopeId", "data-v-c9535e8e"]]);
|
|
146
146
|
export {
|
|
147
|
-
|
|
147
|
+
w as I
|
|
148
148
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
|
|
2
|
-
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-B7BnKygX.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "IntegerControl",
|
|
5
5
|
props: {
|