@knime/jsonforms 1.21.16 → 1.21.19
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 +18 -0
- package/dist/AnyOfTwinlist-Chx0nmt3.js +23 -0
- package/dist/CheckboxControl-B8b1Di4k.js +40 -0
- package/dist/CheckboxesControl-DWUnPGdN.js +39 -0
- package/dist/{ColorControl-wEr-pQ4g.js → ColorControl-ByE5ku7u.js} +10 -8
- package/dist/{ColorPreviewControl-B7aXaak-.js → ColorPreviewControl-XiKZ4jfn.js} +28 -28
- package/dist/ComboBoxControl-zSceYlyZ.js +39 -0
- package/dist/DateControl-BBGpEVpr.js +44 -0
- package/dist/DateTimeControl-CymOURq5.js +80 -0
- package/dist/DateTimeFormatPickerControl-Bx19jwpr.js +34 -0
- package/dist/{DateTimeFormatPickerWithTypeControl-BVG_BSaN.js → DateTimeFormatPickerWithTypeControl-Byo_0cTq.js} +30 -29
- package/dist/DropdownControl-C6ffVYyf.js +32 -0
- package/dist/{ExecutorCoresControl-Cphh4q2c.js → ExecutorCoresControl-D9FZ-g9O.js} +10 -9
- package/dist/{ExecutorMemoryControl-BQDSkKjf.js → ExecutorMemoryControl-__P80Lkb.js} +9 -8
- package/dist/{FileUploadControl-CnPXEafs.js → FileUploadControl-DWs4PhOj.js} +53 -52
- package/dist/{GridSelectionControl-093qWj_x.js → GridSelectionControl-WcJ4y6Fs.js} +27 -26
- package/dist/{HorizontalLayout-D07DfljM.js → HorizontalLayout-ByB5A7X3.js} +6 -6
- package/dist/{IntegerControl-D0qSSA_X.js → IntegerControl-aveswmbr.js} +5 -4
- package/dist/IntervalControl-B4Eqs1Jf.js +51 -0
- package/dist/LinkControl-DD56lOiw.js +35 -0
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg.js} +5 -5
- package/dist/ManualTwinlistControl-DBZ5RZgW.js +74 -0
- package/dist/{MultiSelectListBoxControl-qdxrfyqT.js → MultiSelectListBoxControl-BMsPvxGQ.js} +53 -52
- package/dist/{MultimodeTwinlistControl-DKNf9s6C.js → MultimodeTwinlistControl-thO1be1r.js} +1 -1
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CKcpm_I1.js +159 -0
- package/dist/{NameFilter-DxsfvMYP.js → NameFilter-DBMVmZmk.js} +7 -6
- package/dist/{NumberControl-gRIAl0Xw.js → NumberControl-BPVO5l6t.js} +7 -6
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6.js +52 -0
- package/dist/{OneOfDropdown-6EW73QQp.js → OneOfDropdown-DBG8ZcpV.js} +13 -11
- package/dist/{RadioButtonsWithDescriptionControl-DDdnwXUW.js → RadioButtonsWithDescriptionControl-BsqMTEB5.js} +15 -15
- package/dist/{RadioControl-BOGJkSzd.js → RadioControl-ClJmr0EQ.js} +5 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw.js +57 -0
- package/dist/{ResourceControlBase-D-oG-tP4.js → ResourceControlBase-CeXYJeR1.js} +21 -18
- package/dist/{RichTextControl-FgGsWYtG.js → RichTextControl-DvYkBpzH.js} +2796 -2626
- package/dist/SectionHeading-7KVIxCGG.js +61 -0
- package/dist/{SectionLayout-Bo11XVly.js → SectionLayout-CwRO3UXc.js} +3 -3
- package/dist/SettingsSubPanel-i2sjXJXx.js +5 -0
- package/dist/SettingsSubPanelLayout-CV6y2bcX.js +67 -0
- package/dist/{SimpleButtonControl-QdWssOCJ.js → SimpleButtonControl-D58aXnm7.js} +14 -14
- package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js} +9583 -9612
- package/dist/{SimpleTwinlistControl-CAaKpaUA.js → SimpleTwinlistControl-BSON5VYy.js} +6 -5
- package/dist/{SingleSelectControl-D7D5AanU.js → SingleSelectControl-BSqORMYm.js} +21 -19
- package/dist/{SingleSelectListBoxControl-XeWCleLY.js → SingleSelectListBoxControl-CFdKzbOK.js} +18 -17
- package/dist/SortListControl-DZIHeQmn.js +105 -0
- package/dist/{StyledListItem-CjOv-VlL.js → StyledListItem--sgmJ3W_.js} +1 -1
- package/dist/{TeamAndSpacesControl-DFrotXG1.js → TeamAndSpacesControl-DiMyDT-5.js} +16 -15
- package/dist/{TeamResourceControl-BnBXHcn9.js → TeamResourceControl-Bag_dwA1.js} +12 -11
- package/dist/{TextAreaControl-9YsuIVg_.js → TextAreaControl-B52P0DAa.js} +10 -8
- package/dist/{TextControl-BrUMvx4G.js → TextControl-52n-sttB.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4BT0xCnX.js → TextControl.vue_vue_type_script_setup_true_lang-DrD-RvHO.js} +16 -14
- package/dist/{TimeControl-DvzIDb-2.js → TimeControl-Cu12_qpz.js} +26 -24
- package/dist/{TimeframesControl-2GAc0ndD.js → TimeframesControl-DhdC8OS1.js} +7 -6
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-Chqnf11f.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz.js} +14 -11
- package/dist/{TypedStringFilter-mklK-qwG.js → TypedStringFilter-zJOICQei.js} +5 -4
- package/dist/{ValueSwitchControl-BOUlFthR.js → ValueSwitchControl-CEVWJH7z.js} +6 -5
- package/dist/{VerticalLayout-u04mODMq.js → VerticalLayout-D_13xb_m.js} +2 -2
- package/dist/{VerticalLayoutBase-rWbtLYJT.js → VerticalLayoutBase-CYfG9KqS.js} +2 -2
- package/dist/ZonedDateTimeControl-C-vO6fC1.js +79 -0
- package/dist/{_Uint8Array-S1XaShiS.js → _Uint8Array-DdGQvEX6.js} +27 -27
- package/dist/collection-BBXRVj4b-DzRZ2FYd.js +22 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +107 -99
- package/dist/src/JsonFormsDialog.vue.d.ts +6 -6
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -2
- package/dist/src/higherOrderComponents/control/util.d.ts +4 -5
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +2 -2
- package/dist/src/higherOrderComponents/control/withLabel.d.ts +1 -1
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -3
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +0 -1
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +1 -1
- package/dist/src/renderers/checkboxRenderer.d.ts +120 -1
- package/dist/src/renderers/defaultRenderers.d.ts +120 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +120 -1
- package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -3
- package/dist/testing.js +3 -3
- package/dist/{toString-DXjInt1t.js → toString-f8odPeFb.js} +1 -1
- package/dist/{useBuiltinValidations-CFNcCpco.js → useBuiltinValidations-KbChI8vv.js} +1 -1
- package/dist/{usePossibleValues-yDswh8Qc.js → usePossibleValues-DiYOmnZW.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-BSnLQI_Q.js → useUnknownValuesInTwinlist-BhhirtmX.js} +1 -1
- package/package.json +2 -2
- package/dist/AnyOfTwinlist-BCIsT83q.js +0 -22
- package/dist/CheckboxControl-CjiUwvWU.js +0 -38
- package/dist/CheckboxesControl-CAHj0UnX.js +0 -37
- package/dist/ComboBoxControl-hveFsDLi.js +0 -37
- package/dist/DateControl-BtCCimuA.js +0 -42
- package/dist/DateTimeControl-Bll2rZlX.js +0 -78
- package/dist/DateTimeFormatPickerControl-CsKD9vWJ.js +0 -32
- package/dist/DropdownControl-DA8lNfVk.js +0 -30
- package/dist/IntervalControl-vOi33CZB.js +0 -48
- package/dist/LinkControl-D5t3awqb.js +0 -35
- package/dist/ManualTwinlistControl-BQ4H-fRR.js +0 -72
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DHx6nrqi.js +0 -157
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DEG90Gdx.js +0 -50
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BOuoChe1.js +0 -52
- package/dist/SectionHeading-xMNeMcnS.js +0 -19
- package/dist/SettingsSubPanel-D_FDP5Zc.js +0 -5
- package/dist/SettingsSubPanelLayout-Dp_jLbsR.js +0 -73
- package/dist/SortListControl-kjhkdRwC.js +0 -103
- package/dist/ZonedDateTimeControl-BzV5ZuYf.js +0 -77
- package/dist/arrow-next-BQULX8HT.js +0 -17
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +0 -5
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +0 -23
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +0 -11
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +0 -10
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as S, useCssVars as U, unref as n, ref as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as S, useCssVars as U, unref as n, ref as T, computed as s, watch as f, openBlock as r, createElementBlock as u, normalizeStyle as B, Fragment as D, renderList as G, createBlock as h, createCommentVNode as p, createVNode as A, withModifiers as N } from "vue";
|
|
2
|
+
import { Y as $, Z as z, B as O, _ as R } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
|
|
3
3
|
const W = { class: "grid-list" }, H = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "checkbox"
|
|
6
|
-
},
|
|
6
|
+
}, Y = 7, Z = "auto", j = "Invert selection", q = /* @__PURE__ */ S({
|
|
7
7
|
__name: "GridSelectionControl",
|
|
8
8
|
props: {
|
|
9
9
|
handleChange: { type: Function },
|
|
10
10
|
control: {},
|
|
11
11
|
changeValue: { type: Function },
|
|
12
12
|
disabled: { type: Boolean },
|
|
13
|
-
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
14
15
|
onRegisterValidation: { type: Function },
|
|
15
16
|
labelForId: {}
|
|
16
17
|
},
|
|
@@ -18,16 +19,16 @@ const W = { class: "grid-list" }, H = {
|
|
|
18
19
|
U((e) => ({
|
|
19
20
|
v38af777e: n(k)
|
|
20
21
|
}));
|
|
21
|
-
const
|
|
22
|
-
control: { path:
|
|
23
|
-
handleChange:
|
|
24
|
-
} =
|
|
22
|
+
const c = y, {
|
|
23
|
+
control: { path: b, uischema: { options: C } = {} },
|
|
24
|
+
handleChange: V
|
|
25
|
+
} = c, {
|
|
25
26
|
possibleValues: o = [],
|
|
26
|
-
columnCount: I =
|
|
27
|
-
gridWidth: k =
|
|
28
|
-
toggleLabel: m =
|
|
27
|
+
columnCount: I = Y,
|
|
28
|
+
gridWidth: k = Z,
|
|
29
|
+
toggleLabel: m = j,
|
|
29
30
|
renderLastItemAsCheckbox: d = !1
|
|
30
|
-
} =
|
|
31
|
+
} = C, a = T(/* @__PURE__ */ new Map()), x = s(() => ({
|
|
31
32
|
"grid-template-columns": `repeat(${I}, 1fr)`
|
|
32
33
|
})), E = s(
|
|
33
34
|
() => o.filter(
|
|
@@ -47,7 +48,7 @@ const W = { class: "grid-list" }, H = {
|
|
|
47
48
|
}, w = () => {
|
|
48
49
|
const e = /* @__PURE__ */ new Map();
|
|
49
50
|
return o.forEach(({ id: t }) => {
|
|
50
|
-
e.set(t, { active:
|
|
51
|
+
e.set(t, { active: c.control.data?.includes(t) ?? !1 });
|
|
51
52
|
}), e;
|
|
52
53
|
}, g = s(() => {
|
|
53
54
|
const e = [];
|
|
@@ -56,7 +57,7 @@ const W = { class: "grid-list" }, H = {
|
|
|
56
57
|
t && e.push(l);
|
|
57
58
|
}
|
|
58
59
|
), e;
|
|
59
|
-
}), F = s(() =>
|
|
60
|
+
}), F = s(() => c.control.data ?? []), _ = s(() => {
|
|
60
61
|
const e = g.value, t = F.value;
|
|
61
62
|
if (e.length !== t.length)
|
|
62
63
|
return !0;
|
|
@@ -64,7 +65,7 @@ const W = { class: "grid-list" }, H = {
|
|
|
64
65
|
return e.some((v) => !l.has(v));
|
|
65
66
|
});
|
|
66
67
|
return f(
|
|
67
|
-
() =>
|
|
68
|
+
() => c.control.data,
|
|
68
69
|
() => {
|
|
69
70
|
_.value && (a.value = w());
|
|
70
71
|
},
|
|
@@ -72,16 +73,16 @@ const W = { class: "grid-list" }, H = {
|
|
|
72
73
|
), f(
|
|
73
74
|
() => a.value,
|
|
74
75
|
() => {
|
|
75
|
-
_.value &&
|
|
76
|
+
_.value && V(b, g.value);
|
|
76
77
|
},
|
|
77
78
|
{ deep: !0 }
|
|
78
|
-
), (e, t) => (
|
|
79
|
-
n(o).length ? (
|
|
79
|
+
), (e, t) => (r(), u("div", W, [
|
|
80
|
+
n(o).length ? (r(), u("div", {
|
|
80
81
|
key: 0,
|
|
81
82
|
class: "grid-list-container",
|
|
82
|
-
style:
|
|
83
|
+
style: B(x.value)
|
|
83
84
|
}, [
|
|
84
|
-
(
|
|
85
|
+
(r(!0), u(D, null, G(E.value, ({ id: l, text: v }) => (r(), h(n($), {
|
|
85
86
|
key: `grid-item-${l}`,
|
|
86
87
|
modelValue: a.value.get(l).active,
|
|
87
88
|
"onUpdate:modelValue": (L) => a.value.get(l).active = L,
|
|
@@ -91,25 +92,25 @@ const W = { class: "grid-list" }, H = {
|
|
|
91
92
|
size: "xsmall"
|
|
92
93
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"]))), 128))
|
|
93
94
|
], 4)) : p("", !0),
|
|
94
|
-
n(d) && i.value ? (
|
|
95
|
-
|
|
95
|
+
n(d) && i.value ? (r(), u("div", H, [
|
|
96
|
+
A(n(z), {
|
|
96
97
|
modelValue: a.value.get(i.value.id).active,
|
|
97
98
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => a.value.get(i.value.id).active = l),
|
|
98
99
|
label: i.value.text
|
|
99
100
|
}, null, 8, ["modelValue", "label"])
|
|
100
101
|
])) : p("", !0),
|
|
101
|
-
n(m) ? (
|
|
102
|
+
n(m) ? (r(), h(n(O), {
|
|
102
103
|
key: 2,
|
|
103
104
|
variant: "outlined",
|
|
104
105
|
size: "xsmall",
|
|
105
106
|
label: n(m),
|
|
106
107
|
"leading-icon": "replace",
|
|
107
108
|
class: "invert overwrite-legacy-styles",
|
|
108
|
-
onClick:
|
|
109
|
+
onClick: N(M, ["prevent"])
|
|
109
110
|
}, null, 8, ["label"])) : p("", !0)
|
|
110
111
|
]));
|
|
111
112
|
}
|
|
112
|
-
}),
|
|
113
|
+
}), P = /* @__PURE__ */ R(q, [["__scopeId", "data-v-7c90b0fa"]]);
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
P as default
|
|
115
116
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as
|
|
2
|
-
import { a as m, _ as i } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-
|
|
1
|
+
import { defineComponent as o, openBlock as a, createElementBlock as t, Fragment as r, renderList as c, createBlock as s, unref as u } from "vue";
|
|
2
|
+
import { a as m, _ as i } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
|
|
3
3
|
const d = { class: "horizontal" }, h = /* @__PURE__ */ o({
|
|
4
4
|
__name: "HorizontalLayout",
|
|
5
5
|
props: {
|
|
6
6
|
layout: {}
|
|
7
7
|
},
|
|
8
8
|
setup(e) {
|
|
9
|
-
return (y, f) => (
|
|
10
|
-
(
|
|
9
|
+
return (y, f) => (a(), t("div", d, [
|
|
10
|
+
(a(!0), t(r, null, c(e.layout.uischema.elements, (l, n) => (a(), s(u(m), {
|
|
11
11
|
key: n,
|
|
12
12
|
class: "horizontal-element",
|
|
13
13
|
schema: e.layout.schema,
|
|
@@ -19,7 +19,7 @@ const d = { class: "horizontal" }, h = /* @__PURE__ */ o({
|
|
|
19
19
|
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))), 128))
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), p = /* @__PURE__ */ i(h, [["__scopeId", "data-v-174aebfa"]]);
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
p as default
|
|
25
25
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
|
|
2
|
-
import { _ as
|
|
2
|
+
import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "IntegerControl",
|
|
5
5
|
props: {
|
|
@@ -7,12 +7,13 @@ const s = /* @__PURE__ */ o({
|
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
-
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
11
12
|
onRegisterValidation: { type: Function },
|
|
12
13
|
labelForId: {}
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (e, l) => (n(), t(
|
|
15
|
+
setup(a) {
|
|
16
|
+
return (e, l) => (n(), t(p, r(e.$props, { type: "integer" }), null, 16));
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
export {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as p, computed as a, openBlock as b, createBlock as f, unref as r } from "vue";
|
|
2
|
+
import { u as l, $ as g } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
|
|
3
|
+
import { U as h } from "./classApi-CHpAZrj3.js";
|
|
4
|
+
const V = /* @__PURE__ */ p({
|
|
5
|
+
__name: "IntervalControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
13
|
+
onRegisterValidation: { type: Function },
|
|
14
|
+
labelForId: {}
|
|
15
|
+
},
|
|
16
|
+
setup(e) {
|
|
17
|
+
const t = e, n = a(
|
|
18
|
+
() => t.control.uischema
|
|
19
|
+
), u = l(
|
|
20
|
+
n,
|
|
21
|
+
"intervalType",
|
|
22
|
+
"DATE_OR_TIME"
|
|
23
|
+
), c = a(() => u.value.toLowerCase()), i = l(n, "allowDescending", !0), d = (o) => {
|
|
24
|
+
if (!o)
|
|
25
|
+
return null;
|
|
26
|
+
try {
|
|
27
|
+
return h.Duration.from(o);
|
|
28
|
+
} catch {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}, s = a(
|
|
32
|
+
() => d(t.control.data)
|
|
33
|
+
), m = (o) => {
|
|
34
|
+
t.changeValue(o?.toString() ?? "");
|
|
35
|
+
};
|
|
36
|
+
return (o, v) => (b(), f(r(g), {
|
|
37
|
+
id: e.labelForId,
|
|
38
|
+
ariaLabel: t.control.label,
|
|
39
|
+
"model-value": s.value,
|
|
40
|
+
"allow-descending": r(i),
|
|
41
|
+
disabled: e.disabled,
|
|
42
|
+
error: e.error,
|
|
43
|
+
format: c.value,
|
|
44
|
+
"sub-text": e.subText,
|
|
45
|
+
"onUpdate:modelValue": m
|
|
46
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "allow-descending", "disabled", "error", "format", "sub-text"]));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
V as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as r, useCssVars as s, unref as n, openBlock as p, createElementBlock as d, createVNode as u } from "vue";
|
|
2
|
+
import { a0 as m, _ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
|
|
3
|
+
const f = { class: "link-wrapper" }, g = /* @__PURE__ */ r({
|
|
4
|
+
__name: "LinkControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
labelForId: {},
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
13
|
+
onRegisterValidation: { type: Function }
|
|
14
|
+
},
|
|
15
|
+
setup(o) {
|
|
16
|
+
s((c) => ({
|
|
17
|
+
bc3ff08c: n(e)
|
|
18
|
+
}));
|
|
19
|
+
const t = o, e = t.control.uischema.options?.alignment === "right" ? "flex-end" : "flex-start", { to: a, leadingIcon: l, trailingIcon: i } = t.control.uischema.options || {};
|
|
20
|
+
return (c, b) => (p(), d("div", f, [
|
|
21
|
+
u(n(m), {
|
|
22
|
+
class: "link-button",
|
|
23
|
+
label: o.control.label,
|
|
24
|
+
to: n(a),
|
|
25
|
+
"leading-icon": n(l),
|
|
26
|
+
"trailing-icon": n(i),
|
|
27
|
+
size: "small",
|
|
28
|
+
variant: "transparent"
|
|
29
|
+
}, null, 8, ["label", "to", "leading-icon", "trailing-icon"])
|
|
30
|
+
]));
|
|
31
|
+
}
|
|
32
|
+
}), x = /* @__PURE__ */ _(g, [["__scopeId", "data-v-d1973605"]]);
|
|
33
|
+
export {
|
|
34
|
+
x as default
|
|
35
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, computed as s, openBlock as V, createBlock as f, unref as y, mergeProps as g } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { T as _ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
|
|
3
3
|
const L = /* @__PURE__ */ v({
|
|
4
4
|
__name: "LoadingDropdown",
|
|
5
5
|
props: {
|
|
@@ -11,8 +11,8 @@ const L = /* @__PURE__ */ v({
|
|
|
11
11
|
error: { type: Boolean }
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
14
|
+
setup(r, { emit: u }) {
|
|
15
|
+
const e = r, n = u, d = s(() => e.possibleValues === null ? "" : e.modelValue), i = s(() => e.possibleValues === null), p = s(
|
|
16
16
|
() => e.possibleValues?.some((a) => a.type !== void 0)
|
|
17
17
|
), o = s(() => {
|
|
18
18
|
if (e.possibleValues === null)
|
|
@@ -34,7 +34,7 @@ const L = /* @__PURE__ */ v({
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
return a;
|
|
37
|
-
}), c = s(() =>
|
|
37
|
+
}), c = s(() => i.value ? "Loading" : o.value.length > 0 ? "No value selected" : "No values present"), b = s(
|
|
38
38
|
() => e.disabled || o.value.length === 0
|
|
39
39
|
), m = (a) => {
|
|
40
40
|
n("update:modelValue", a ?? "");
|
|
@@ -45,7 +45,7 @@ const L = /* @__PURE__ */ v({
|
|
|
45
45
|
"model-value": d.value,
|
|
46
46
|
disabled: b.value,
|
|
47
47
|
"possible-values": o.value,
|
|
48
|
-
loading:
|
|
48
|
+
loading: i.value,
|
|
49
49
|
placeholder: c.value,
|
|
50
50
|
error: e.error,
|
|
51
51
|
"onUpdate:modelValue": m
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as k, toRef as i, computed as d, openBlock as C, createBlock as V, unref as a, mergeProps as U } from "vue";
|
|
2
|
+
import { X as I } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
|
|
3
|
+
import { m as r } from "./index-Blg1O3Fz.js";
|
|
4
|
+
import { a as M, u as v } from "./usePossibleValues-DiYOmnZW.js";
|
|
5
|
+
import { t as F } from "./toKdsPossibleValues-BklBg3gG.js";
|
|
6
|
+
import { u as L } from "./useUnknownValuesInTwinlist-BhhirtmX.js";
|
|
7
|
+
const K = /* @__PURE__ */ k({
|
|
8
|
+
__name: "ManualTwinlistControl",
|
|
9
|
+
props: {
|
|
10
|
+
control: {},
|
|
11
|
+
handleChange: { type: Function },
|
|
12
|
+
changeValue: { type: Function },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
error: { type: Boolean },
|
|
15
|
+
subText: {},
|
|
16
|
+
onRegisterValidation: { type: Function },
|
|
17
|
+
labelForId: {}
|
|
18
|
+
},
|
|
19
|
+
setup(l) {
|
|
20
|
+
const u = l, { excludedLabel: m, includedLabel: b } = M(
|
|
21
|
+
i(u, "control")
|
|
22
|
+
), { possibleValues: c } = v(
|
|
23
|
+
i(u, "control")
|
|
24
|
+
), p = d(
|
|
25
|
+
() => F(c.value ?? [])
|
|
26
|
+
), { selectedAndDeselected: o, setCurrentManualFilter: f } = L({
|
|
27
|
+
data: d(() => ({ manualFilter: u.control.data })),
|
|
28
|
+
possibleValueIds: d(
|
|
29
|
+
() => c.value?.map(({ id: e }) => e) ?? null
|
|
30
|
+
)
|
|
31
|
+
}), y = (e) => {
|
|
32
|
+
const s = r(u.control.data, e);
|
|
33
|
+
u.changeValue(s), f(s);
|
|
34
|
+
};
|
|
35
|
+
let n = null;
|
|
36
|
+
const g = () => {
|
|
37
|
+
if (n !== null) {
|
|
38
|
+
const e = n;
|
|
39
|
+
n = null, y(e);
|
|
40
|
+
}
|
|
41
|
+
}, t = (e) => {
|
|
42
|
+
n === null ? (n = e, queueMicrotask(g)) : n = r(
|
|
43
|
+
n,
|
|
44
|
+
e
|
|
45
|
+
);
|
|
46
|
+
}, x = (e) => {
|
|
47
|
+
t({ manuallySelected: e });
|
|
48
|
+
}, w = (e) => {
|
|
49
|
+
t({ manuallyDeselected: e });
|
|
50
|
+
}, h = (e) => {
|
|
51
|
+
e !== null && t({ includeUnknownColumns: e });
|
|
52
|
+
};
|
|
53
|
+
return (e, s) => (C(), V(a(I), U(e.$attrs, {
|
|
54
|
+
id: l.labelForId,
|
|
55
|
+
ariaLabel: l.control.label,
|
|
56
|
+
disabled: l.disabled,
|
|
57
|
+
"manually-included": a(o).selected ?? [],
|
|
58
|
+
"manually-excluded": a(o).deselected ?? [],
|
|
59
|
+
"include-unknown-values": l.control.data.includeUnknownColumns,
|
|
60
|
+
"possible-values": p.value,
|
|
61
|
+
loading: a(o).selected === null,
|
|
62
|
+
"exclude-label": a(m),
|
|
63
|
+
"include-label": a(b),
|
|
64
|
+
error: l.error,
|
|
65
|
+
"sub-text": l.subText,
|
|
66
|
+
"onUpdate:manuallyIncluded": x,
|
|
67
|
+
"onUpdate:manuallyExcluded": w,
|
|
68
|
+
"onUpdate:includeUnknownValues": h
|
|
69
|
+
}), null, 16, ["id", "ariaLabel", "disabled", "manually-included", "manually-excluded", "include-unknown-values", "possible-values", "loading", "exclude-label", "include-label", "error", "sub-text"]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
K as default
|
|
74
|
+
};
|
package/dist/{MultiSelectListBoxControl-qdxrfyqT.js → MultiSelectListBoxControl-BMsPvxGQ.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { toRef as S, watch as y, resolveComponent as p, openBlock as h, createElementBlock as c, normalizeStyle as I, normalizeClass as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { S as M } from "./StyledListItem
|
|
1
|
+
import { toRef as S, watch as y, resolveComponent as p, openBlock as h, createElementBlock as c, normalizeStyle as I, normalizeClass as v, createElementVNode as f, mergeProps as C, withKeys as a, withModifiers as d, normalizeProps as V, guardReactiveProps as w, Fragment as k, renderList as D, createBlock as g, withCtx as B, renderSlot as H, resolveDynamicComponent as K, toDisplayString as N, createCommentVNode as b, createVNode as L, defineComponent as T, unref as x } from "vue";
|
|
2
|
+
import { u as A } from "./usePossibleValues-DiYOmnZW.js";
|
|
3
|
+
import { a1 as O, O as z, _ as P } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
|
|
4
|
+
import { S as M } from "./StyledListItem--sgmJ3W_.js";
|
|
5
5
|
const E = (e, t) => {
|
|
6
|
-
let i,
|
|
6
|
+
let i, l = 0;
|
|
7
7
|
return (...o) => {
|
|
8
8
|
const [s, r] = o;
|
|
9
9
|
clearTimeout(i);
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const n = Date.now();
|
|
11
|
+
n - l > t ? (l = n, e(s, r)) : i = setTimeout(() => {
|
|
12
|
+
l = n, e(s, r);
|
|
13
13
|
}, t);
|
|
14
14
|
};
|
|
15
15
|
}, R = 250, U = {
|
|
@@ -122,7 +122,7 @@ const E = (e, t) => {
|
|
|
122
122
|
"keyArrowRight"
|
|
123
123
|
],
|
|
124
124
|
setup(e) {
|
|
125
|
-
const { containerProps: i, wrapperProps:
|
|
125
|
+
const { containerProps: i, wrapperProps: l, list: o, scrollTo: s } = O(
|
|
126
126
|
S(e, "possibleValues"),
|
|
127
127
|
{
|
|
128
128
|
itemHeight: 22
|
|
@@ -147,7 +147,7 @@ const E = (e, t) => {
|
|
|
147
147
|
), {
|
|
148
148
|
optionLineHeight: 22,
|
|
149
149
|
containerProps: i,
|
|
150
|
-
wrapperProps:
|
|
150
|
+
wrapperProps: l,
|
|
151
151
|
list: o
|
|
152
152
|
};
|
|
153
153
|
},
|
|
@@ -232,25 +232,25 @@ const E = (e, t) => {
|
|
|
232
232
|
* @returns {String[]}
|
|
233
233
|
*/
|
|
234
234
|
getPossibleValuesInSection(e, t) {
|
|
235
|
-
const i = e > t ? t : e,
|
|
236
|
-
return this.possibleValuesWithBottom.slice(i,
|
|
235
|
+
const i = e > t ? t : e, l = e > t ? e : t;
|
|
236
|
+
return this.possibleValuesWithBottom.slice(i, l + 1).map((o) => o.id);
|
|
237
237
|
},
|
|
238
238
|
onStartDrag(e, t = !1) {
|
|
239
239
|
if (this.disabled || e.shiftKey)
|
|
240
240
|
return;
|
|
241
241
|
(e.ctrlKey || e.metaKey) && (this.draggingInverseMode = !0);
|
|
242
|
-
const i = e.target,
|
|
243
|
-
|
|
242
|
+
const i = e.target, l = t ? this.bottomIndex : this.getDataOptionIndex(i);
|
|
243
|
+
l && (this.draggingStartIndex = Number(l));
|
|
244
244
|
},
|
|
245
245
|
onDrag(e) {
|
|
246
246
|
if (this.draggingStartIndex !== -1) {
|
|
247
247
|
const t = e.target, i = this.getDataOptionIndex(t);
|
|
248
248
|
if (!i)
|
|
249
249
|
return;
|
|
250
|
-
const
|
|
250
|
+
const l = Number(i);
|
|
251
251
|
let o = this.getPossibleValuesInSection(
|
|
252
252
|
this.draggingStartIndex,
|
|
253
|
-
|
|
253
|
+
l
|
|
254
254
|
);
|
|
255
255
|
this.draggingInverseMode && (o = this.selectedValues.filter(
|
|
256
256
|
(s) => !o.includes(s)
|
|
@@ -329,8 +329,8 @@ const E = (e, t) => {
|
|
|
329
329
|
return;
|
|
330
330
|
const i = this.containerProps.ref.value;
|
|
331
331
|
if (i.scrollHeight > i.clientHeight) {
|
|
332
|
-
const
|
|
333
|
-
if (!(s >
|
|
332
|
+
const l = i.clientHeight + i.scrollTop, o = e * this.optionLineHeight, s = o + this.optionLineHeight, r = o < i.scrollTop;
|
|
333
|
+
if (!(s > l || r))
|
|
334
334
|
return;
|
|
335
335
|
t === "up" || t === "auto" && r ? i.scrollTop = o : i.scrollTop = s - i.clientHeight;
|
|
336
336
|
}
|
|
@@ -437,18 +437,18 @@ const E = (e, t) => {
|
|
|
437
437
|
}, F = { class: "box" }, W = ["id", "aria-label", "aria-activedescendant"], j = {
|
|
438
438
|
key: 0,
|
|
439
439
|
class: "empty-state"
|
|
440
|
-
}, q = { key: 1 },
|
|
440
|
+
}, q = { key: 1 }, Y = {
|
|
441
441
|
key: 1,
|
|
442
442
|
role: "bottom-box"
|
|
443
443
|
};
|
|
444
|
-
function
|
|
444
|
+
function G(e, t, i, l, o, s) {
|
|
445
445
|
const r = p("StyledListItem");
|
|
446
446
|
return h(), c("div", {
|
|
447
|
-
class:
|
|
447
|
+
class: v(["multiselect-list-box", { invalid: !i.isValid, disabled: i.disabled }]),
|
|
448
448
|
style: I(s.cssStyleSize)
|
|
449
449
|
}, [
|
|
450
450
|
f("div", F, [
|
|
451
|
-
f("ul",
|
|
451
|
+
f("ul", C(l.containerProps, {
|
|
452
452
|
id: i.id,
|
|
453
453
|
role: "listbox",
|
|
454
454
|
tabindex: "0",
|
|
@@ -456,36 +456,36 @@ function Y(e, t, i, n, o, s) {
|
|
|
456
456
|
"aria-label": i.ariaLabel,
|
|
457
457
|
"aria-activedescendant": s.generateOptionId(s.getCurrentKeyNavItem()),
|
|
458
458
|
onKeydown: [
|
|
459
|
-
t[1] || (t[1] = a(d((...
|
|
460
|
-
t[2] || (t[2] = a(d((...
|
|
461
|
-
t[3] || (t[3] = a(d((...
|
|
462
|
-
t[4] || (t[4] = a(d((...
|
|
463
|
-
t[5] || (t[5] = a(d((...
|
|
464
|
-
t[6] || (t[6] = a(d((...
|
|
465
|
-
t[7] || (t[7] = a(d((...
|
|
466
|
-
t[8] || (t[8] = a(d((...
|
|
467
|
-
t[9] || (t[9] = a(d((...
|
|
459
|
+
t[1] || (t[1] = a(d((...n) => s.onCtrlA && s.onCtrlA(...n), ["ctrl", "prevent", "exact"]), ["a"])),
|
|
460
|
+
t[2] || (t[2] = a(d((...n) => s.onArrowUp && s.onArrowUp(...n), ["prevent", "exact"]), ["up"])),
|
|
461
|
+
t[3] || (t[3] = a(d((...n) => s.onArrowDown && s.onArrowDown(...n), ["prevent", "exact"]), ["down"])),
|
|
462
|
+
t[4] || (t[4] = a(d((...n) => s.onArrowUpShift && s.onArrowUpShift(...n), ["shift", "prevent", "exact"]), ["up"])),
|
|
463
|
+
t[5] || (t[5] = a(d((...n) => s.onArrowDownShift && s.onArrowDownShift(...n), ["shift", "prevent", "exact"]), ["down"])),
|
|
464
|
+
t[6] || (t[6] = a(d((...n) => s.onArrowLeft && s.onArrowLeft(...n), ["prevent", "exact"]), ["left"])),
|
|
465
|
+
t[7] || (t[7] = a(d((...n) => s.onArrowRight && s.onArrowRight(...n), ["prevent", "exact"]), ["right"])),
|
|
466
|
+
t[8] || (t[8] = a(d((...n) => s.onHomeKey && s.onHomeKey(...n), ["prevent", "exact"]), ["home"])),
|
|
467
|
+
t[9] || (t[9] = a(d((...n) => s.onEndKey && s.onEndKey(...n), ["prevent", "exact"]), ["end"]))
|
|
468
468
|
],
|
|
469
|
-
onMousedown: t[10] || (t[10] = (...
|
|
470
|
-
onMousemove: t[11] || (t[11] = (...
|
|
469
|
+
onMousedown: t[10] || (t[10] = (...n) => s.onStartDrag && s.onStartDrag(...n)),
|
|
470
|
+
onMousemove: t[11] || (t[11] = (...n) => s.onDrag && s.onDrag(...n))
|
|
471
471
|
}), [
|
|
472
|
-
f("div",
|
|
473
|
-
(h(!0), c(k, null, D(
|
|
474
|
-
id: s.generateOptionId(
|
|
475
|
-
key: `listbox-${
|
|
476
|
-
text:
|
|
472
|
+
f("div", V(w(l.wrapperProps)), [
|
|
473
|
+
(h(!0), c(k, null, D(l.list, ({ data: n, index: u }) => (h(), g(r, {
|
|
474
|
+
id: s.generateOptionId(n),
|
|
475
|
+
key: `listbox-${n.id}`,
|
|
476
|
+
text: n.text,
|
|
477
477
|
"data-option-index": u,
|
|
478
|
-
"line-height":
|
|
479
|
-
selected: s.isCurrentValue(
|
|
480
|
-
invalid:
|
|
481
|
-
special:
|
|
478
|
+
"line-height": l.optionLineHeight,
|
|
479
|
+
selected: s.isCurrentValue(n.id),
|
|
480
|
+
invalid: n.invalid,
|
|
481
|
+
special: n.special,
|
|
482
482
|
disabled: i.disabled,
|
|
483
|
-
onClick: (m) => s.handleClick(m,
|
|
483
|
+
onClick: (m) => s.handleClick(m, n.id, u),
|
|
484
484
|
onDblclickShift: t[0] || (t[0] = (m) => s.handleShiftDblClick()),
|
|
485
|
-
onDblclickExact: (m) => s.handleDblClick(
|
|
485
|
+
onDblclickExact: (m) => s.handleDblClick(n.id, u)
|
|
486
486
|
}, {
|
|
487
487
|
default: B(() => [
|
|
488
|
-
H(e.$slots, "option", { slotItem:
|
|
488
|
+
H(e.$slots, "option", { slotItem: n }, void 0, !0)
|
|
489
489
|
]),
|
|
490
490
|
_: 2
|
|
491
491
|
}, 1032, ["id", "text", "data-option-index", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onDblclickExact"]))), 128))
|
|
@@ -494,7 +494,7 @@ function Y(e, t, i, n, o, s) {
|
|
|
494
494
|
s.showEmptyState ? (h(), c("div", j, [
|
|
495
495
|
i.emptyStateComponent ? (h(), g(K(i.emptyStateComponent), { key: 0 })) : (h(), c("span", q, N(i.emptyStateLabel), 1))
|
|
496
496
|
])) : b("", !0),
|
|
497
|
-
i.withBottomValue ? (h(), c("div",
|
|
497
|
+
i.withBottomValue ? (h(), c("div", Y, [
|
|
498
498
|
L(r, {
|
|
499
499
|
id: s.generateOptionId(i.bottomValue),
|
|
500
500
|
special: "",
|
|
@@ -503,7 +503,7 @@ function Y(e, t, i, n, o, s) {
|
|
|
503
503
|
selected: s.isCurrentValue(i.bottomValue.id),
|
|
504
504
|
disabled: i.disabled,
|
|
505
505
|
onClick: s.handleBottomClick,
|
|
506
|
-
onDblclickShift: t[12] || (t[12] = (
|
|
506
|
+
onDblclickShift: t[12] || (t[12] = (n) => s.handleShiftDblClick()),
|
|
507
507
|
onDblclickExact: s.handleBottomDblClick,
|
|
508
508
|
onMousedown: s.onBottomStartDrag,
|
|
509
509
|
onMousemove: s.onBottomDrag
|
|
@@ -512,25 +512,26 @@ function Y(e, t, i, n, o, s) {
|
|
|
512
512
|
])
|
|
513
513
|
], 6);
|
|
514
514
|
}
|
|
515
|
-
const
|
|
515
|
+
const J = /* @__PURE__ */ P(U, [["render", G], ["__scopeId", "data-v-4ee62d65"]]), $ = /* @__PURE__ */ T({
|
|
516
516
|
__name: "MultiSelectListBoxControl",
|
|
517
517
|
props: {
|
|
518
518
|
control: {},
|
|
519
519
|
handleChange: { type: Function },
|
|
520
520
|
changeValue: { type: Function },
|
|
521
521
|
disabled: { type: Boolean },
|
|
522
|
-
|
|
522
|
+
error: { type: Boolean },
|
|
523
|
+
subText: {},
|
|
523
524
|
onRegisterValidation: { type: Function },
|
|
524
525
|
labelForId: {}
|
|
525
526
|
},
|
|
526
527
|
setup(e) {
|
|
527
|
-
const t = e, { possibleValues: i } =
|
|
528
|
-
return (
|
|
528
|
+
const t = e, { possibleValues: i } = A(S(t, "control"));
|
|
529
|
+
return (l, o) => (h(), g(x(J), {
|
|
529
530
|
id: e.labelForId,
|
|
530
531
|
"possible-values": x(i) || [],
|
|
531
532
|
disabled: e.disabled,
|
|
532
533
|
"model-value": e.control.data,
|
|
533
|
-
"is-valid": e.
|
|
534
|
+
"is-valid": !e.error,
|
|
534
535
|
ariaLabel: e.control.label,
|
|
535
536
|
size: e.control.uischema.options?.size,
|
|
536
537
|
"onUpdate:modelValue": e.changeValue
|