@knime/jsonforms 1.21.1 → 1.21.3
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 +13 -0
- package/README.md +6 -0
- package/dist/{AnyOfTwinlist-UXM-U6hT.js → AnyOfTwinlist-By12blUM.js} +1 -1
- package/dist/{CheckboxControl-QBXVq5Tw.js → CheckboxControl--qMC4yqR.js} +1 -1
- package/dist/{CheckboxesControl-2pd974_e.js → CheckboxesControl-BsOG-QR8.js} +2 -2
- package/dist/{ColorControl-CDxRfPzc.js → ColorControl-BX93RNbV.js} +1 -1
- package/dist/{ColorPreviewControl-Cg99cain.js → ColorPreviewControl-CFVeFXBp.js} +5 -5
- package/dist/ComboBoxControl-M5HOJcy2.js +37 -0
- package/dist/{DateControl-DqNL8rlX.js → DateControl-PYVPxPvC.js} +1 -1
- package/dist/{DateTimeControl-apf8S1y2.js → DateTimeControl-_8d8iizh.js} +1 -1
- package/dist/{DateTimeFormatPickerControl-_4b5Jk3w.js → DateTimeFormatPickerControl-xRNNTLIl.js} +1 -1
- package/dist/{DateTimeFormatPickerWithTypeControl-B1jOpszt.js → DateTimeFormatPickerWithTypeControl-CZZBe3PC.js} +11 -11
- package/dist/{DropdownControl-CesCAa-A.js → DropdownControl-sGxFWX33.js} +2 -2
- package/dist/{ExecutorCoresControl-ILXk2Hk6.js → ExecutorCoresControl-6DB4hS8_.js} +2 -2
- package/dist/{ExecutorMemoryControl-De46Fxsm.js → ExecutorMemoryControl-xKHl7IXW.js} +2 -2
- package/dist/FileUploadControl-Bjgh9vSl.js +210 -0
- package/dist/{GridSelectionControl-CGspDoCC.js → GridSelectionControl-DslOwaNV.js} +17 -17
- package/dist/{HorizontalLayout-DPuI5hYY.js → HorizontalLayout-Dl9cC50s.js} +1 -1
- package/dist/{IntegerControl-BwGzlwkz.js → IntegerControl-DSzPJs4Z.js} +1 -1
- package/dist/{IntervalControl-BHeKHuWm.js → IntervalControl-DoWDLPMP.js} +12 -12
- package/dist/{LinkControl-D_0AKRJz.js → LinkControl-BuYI03b_.js} +3 -3
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-DZ90-rk8.js} +5 -5
- package/dist/{ManualTwinlistControl-BMSgSIBJ.js → ManualTwinlistControl-mN3zJTMK.js} +3 -3
- package/dist/{MultiselectListBox-DpL-Z03B.js → MultiSelectListBoxControl-CnSublPM.js} +103 -78
- package/dist/{MultimodeTwinlistControl-DOJD7vUU.js → MultimodeTwinlistControl-CyZQ54SO.js} +1 -1
- package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-BzIvunuA.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-C9JUTbz1.js} +3 -3
- package/dist/{NameFilter-B1LEenoh.js → NameFilter-C1u8qsYQ.js} +1 -1
- package/dist/{NumberControl-DVzhX3S9.js → NumberControl-qiTgXs6x.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Bb4FK9RQ.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Bs-H6e08.js} +2 -2
- package/dist/{OneOfDropdown-BFOyIhv6.js → OneOfDropdown-Dn6QM81-.js} +4 -4
- package/dist/{RadioButtonsWithDescriptionControl-oD8Zab-J.js → RadioButtonsWithDescriptionControl-1X9F9obn.js} +1 -1
- package/dist/{RadioControl-D6Wm5j7g.js → RadioControl-BdHtNPFC.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CsEFu5wd.js → RadioControlBase.vue_vue_type_script_setup_true_lang-Cp22r9KZ.js} +2 -2
- package/dist/{ResourceControlBase-DRlen7vy.js → ResourceControlBase-CDpi3J6s.js} +2 -2
- package/dist/{RichTextControl-DPX_lxfc.js → RichTextControl-5o904Fvx.js} +2185 -2187
- package/dist/{SectionHeading-DIs2yBVY.js → SectionHeading-CrGc61FB.js} +1 -1
- package/dist/{SectionLayout-6ID4pFDm.js → SectionLayout-B9X7fzQ9.js} +3 -3
- package/dist/SettingsSubPanel-WzFrc-mQ.js +5 -0
- package/dist/{SettingsSubPanelLayout-bSgzF47m.js → SettingsSubPanelLayout-D8j0-HKD.js} +7 -7
- package/dist/{SimpleButtonControl-CpO-Xbws.js → SimpleButtonControl-BS6opqJW.js} +8 -8
- package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js} +11510 -11132
- package/dist/{SimpleTwinlistControl-BMKo3T2E.js → SimpleTwinlistControl-RlnzOp0j.js} +2 -2
- package/dist/{SingleSelectControl-IDX5QUdR.js → SingleSelectControl-DPPwJUq3.js} +2 -2
- package/dist/{SingleSelectListBoxControl-CYGArF9u.js → SingleSelectListBoxControl-EMc8u2ik.js} +3 -3
- package/dist/SortListControl-Bw3K37ru.js +103 -0
- package/dist/{StyledListItem-DA8cbCw1.js → StyledListItem-Bli2itH-.js} +1 -1
- package/dist/{TeamAndSpacesControl-BThkHK2b.js → TeamAndSpacesControl-BlvUuAAA.js} +1 -1
- package/dist/{TeamResourceControl-CQgq2Bq5.js → TeamResourceControl-DuLmQ7gc.js} +2 -2
- package/dist/{TextAreaControl-ykGD_BnL.js → TextAreaControl-DtfB44mR.js} +1 -1
- package/dist/{TextControl-QTuQZi2l.js → TextControl-BlUQLMGo.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-C1Cs6NXf.js → TextControl.vue_vue_type_script_setup_true_lang-CBke-957.js} +2 -2
- package/dist/{TimeControl-W0VRENnH.js → TimeControl-DWzlpLX-.js} +1 -1
- package/dist/{TimePartInput-BHzqB1_B.js → TimePartInput-CRP2YYM0.js} +1 -1
- package/dist/{TimeframesControl-C12gkBRu.js → TimeframesControl-O_hzJcX5.js} +2 -2
- package/dist/{Tooltip-B0QEjsdY.js → Tooltip-C9vAa0Wb.js} +1 -1
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-BlaFr27R.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-DtphbKhB.js} +2 -2
- package/dist/{TypedStringFilter-B-LUMedK.js → TypedStringFilter-ByeMPxR6.js} +1 -1
- package/dist/{ValueSwitch-BBO_VXIM.js → ValueSwitch-BV9qUd5x.js} +6 -6
- package/dist/{ValueSwitchControl-Jz7xZfY-.js → ValueSwitchControl-nW7WtSSM.js} +1 -1
- package/dist/{VerticalLayout-CGtB4d8F.js → VerticalLayout-C7_-yu_D.js} +2 -2
- package/dist/{VerticalLayoutBase-JY9q-FO2.js → VerticalLayoutBase-eODyPAoq.js} +1 -1
- package/dist/{ZonedDateTimeControl-BatkUEiY.js → ZonedDateTimeControl-DlrvZKe4.js} +2 -2
- package/dist/{_Uint8Array-Bbzs2Ov4.js → _Uint8Array-BESS0YjU.js} +14 -14
- package/dist/{_baseIteratee-pNDg46VS.js → _baseIteratee-BLvJX4uT.js} +9 -9
- package/dist/floating-ui.vue-Fx4CxKut.js +1057 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +113 -102
- package/dist/{localTimeUtils-B5XTvulp.js → localTimeUtils-Bl9xa5Jk.js} +1292 -1268
- package/dist/{popper-D54JdmBM.js → popper-iehk3xNV.js} +224 -210
- package/dist/src/renderers/defaultRenderers.d.ts +1 -930
- package/dist/src/renderers/sortListRenderer.d.ts +1 -930
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -2
- package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -918
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -1
- package/dist/testing.js +2589 -2602
- package/dist/{toString-GoK24L1U.js → toString-DXFebvWA.js} +1 -1
- package/dist/{useBuiltinValidations-LGrGrHzT.js → useBuiltinValidations-ChnQzGRe.js} +1 -1
- package/dist/useDropdownNavigation-2Yhk7zes.js +821 -0
- package/dist/{usePossibleValues-ItF87hxE.js → usePossibleValues-B8es3DCW.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-B8gDSha9.js → useUnknownValuesInTwinlist-qv0kKHaD.js} +1 -1
- package/package.json +4 -4
- package/dist/Checkbox-DiIYr1i-.js +0 -75
- package/dist/ComboBoxControl-BoQyPwaV.js +0 -616
- package/dist/FileUploadControl-CFQSJwkd.js +0 -197
- package/dist/MultiSelectListBoxControl-DbJWOUtn.js +0 -31
- package/dist/SettingsSubPanel-BUVqvjIE.js +0 -5
- package/dist/SortListControl-LWMW3lAc.js +0 -389
- package/dist/_baseAssignValue-DV_dpE4l.js +0 -19
- package/dist/_baseEach-RTY-xHIc.js +0 -30
- package/dist/close-CwP2mh9x.js +0 -17
- package/dist/createMissingItem-B00Kg95q.js +0 -4
- package/dist/floating-ui.vue-Bk6u3tWN.js +0 -1060
- package/dist/navigator-e30QQMkl.js +0 -4
- package/dist/useDropdownNavigation-EOwf_fL0.js +0 -946
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { openBlock as p, createElementBlock as E, createElementVNode as c, resolveComponent as ye, normalizeClass as D, createCommentVNode as F, withModifiers as N, createVNode as I, defineComponent as H, useModel as k, computed as P, Fragment as C, createBlock as te, withDirectives as b, vShow as S, renderList as X, unref as m, toDisplayString as K, withCtx as W, createTextVNode as Ae, mergeModels as G, ref as T, watch as z, withKeys as Me, vModelText as we, normalizeStyle as xe } from "vue";
|
|
2
|
-
import { _ as U,
|
|
3
|
-
import { u as Re, a as Ne, s as _e, f as Se, o as Ce } from "./floating-ui.vue-
|
|
4
|
-
import { T as $e } from "./Tooltip-
|
|
2
|
+
import { _ as U, a0 as De, Q as be, a8 as Pe, u as q } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
|
+
import { u as Re, a as Ne, s as _e, f as Se, o as Ce } from "./floating-ui.vue-Fx4CxKut.js";
|
|
4
|
+
import { T as $e } from "./Tooltip-C9vAa0Wb.js";
|
|
5
5
|
import { A as Oe } from "./arrow-dropdown-DMFBPPcK.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { V as Z } from "./ValueSwitch-
|
|
7
|
+
import { V as Z } from "./ValueSwitch-BV9qUd5x.js";
|
|
8
8
|
const ae = (e, t) => ({
|
|
9
9
|
negative: e,
|
|
10
10
|
years: parseInt(t[1] ?? "0", 10),
|
|
@@ -325,7 +325,7 @@ const Xe = { render: Le }, Ke = 200, We = 50, ze = 0.1, qe = 1, Ze = {
|
|
|
325
325
|
key: 0,
|
|
326
326
|
class: "invalid-marker"
|
|
327
327
|
};
|
|
328
|
-
function
|
|
328
|
+
function Qe(e, t, a, s, u, n) {
|
|
329
329
|
const d = ye("ArrowIcon");
|
|
330
330
|
return p(), E("div", {
|
|
331
331
|
class: D(["wrapper", { disabled: a.disabled, compact: a.compact }])
|
|
@@ -366,12 +366,12 @@ function Je(e, t, a, s, u, n) {
|
|
|
366
366
|
], 34)
|
|
367
367
|
], 2);
|
|
368
368
|
}
|
|
369
|
-
const j = /* @__PURE__ */ U(Ze, [["render",
|
|
369
|
+
const j = /* @__PURE__ */ U(Ze, [["render", Qe], ["__scopeId", "data-v-0ce77f1e"]]), Q = [
|
|
370
370
|
"years",
|
|
371
371
|
"months",
|
|
372
372
|
"weeks",
|
|
373
373
|
"days"
|
|
374
|
-
],
|
|
374
|
+
], J = [
|
|
375
375
|
"hours",
|
|
376
376
|
"minutes",
|
|
377
377
|
"seconds",
|
|
@@ -397,7 +397,7 @@ const j = /* @__PURE__ */ U(Ze, [["render", Je], ["__scopeId", "data-v-0ce77f1e"
|
|
|
397
397
|
} : {
|
|
398
398
|
...t,
|
|
399
399
|
durationPart: e.interval
|
|
400
|
-
}, B = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(),
|
|
400
|
+
}, B = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Je = { class: "header" }, et = { class: "ascending-descending-switch-container" }, tt = { class: "input-grid" }, at = { class: "input-label" }, nt = { class: "input-label" }, st = { class: "accept-controls" }, lt = /* @__PURE__ */ H({
|
|
401
401
|
__name: "IntervalInputPopoverContent",
|
|
402
402
|
props: /* @__PURE__ */ G({
|
|
403
403
|
format: {},
|
|
@@ -415,7 +415,7 @@ const j = /* @__PURE__ */ U(Ze, [["render", Je], ["__scopeId", "data-v-0ce77f1e"
|
|
|
415
415
|
emits: /* @__PURE__ */ G(["commit"], ["update:usedFormat", "update:modelValue"]),
|
|
416
416
|
setup(e, { emit: t }) {
|
|
417
417
|
const a = t, s = e, u = k(e, "usedFormat"), n = k(e, "modelValue"), d = P(() => {
|
|
418
|
-
const f = u.value === "DATE" ?
|
|
418
|
+
const f = u.value === "DATE" ? Q : J, v = u.value === "DATE" ? f.map(
|
|
419
419
|
(i) => n.value.periodPart[i]
|
|
420
420
|
) : f.map(
|
|
421
421
|
(i) => n.value.durationPart[i]
|
|
@@ -445,7 +445,7 @@ const j = /* @__PURE__ */ U(Ze, [["render", Je], ["__scopeId", "data-v-0ce77f1e"
|
|
|
445
445
|
);
|
|
446
446
|
};
|
|
447
447
|
return (f, v) => (p(), E(C, null, [
|
|
448
|
-
c("span",
|
|
448
|
+
c("span", Je, [
|
|
449
449
|
v[2] || (v[2] = c("span", { class: "input-title" }, "Interval", -1)),
|
|
450
450
|
s.format === "DATE_OR_TIME" ? (p(), te(Z, {
|
|
451
451
|
key: 0,
|
|
@@ -472,7 +472,7 @@ const j = /* @__PURE__ */ U(Ze, [["render", Je], ["__scopeId", "data-v-0ce77f1e"
|
|
|
472
472
|
[S, e.allowDescending]
|
|
473
473
|
]),
|
|
474
474
|
c("div", tt, [
|
|
475
|
-
(p(!0), E(C, null, X(m(
|
|
475
|
+
(p(!0), E(C, null, X(m(Q), (i) => b((p(), E("span", {
|
|
476
476
|
key: i,
|
|
477
477
|
class: "labeled-date-time-input"
|
|
478
478
|
}, [
|
|
@@ -488,7 +488,7 @@ const j = /* @__PURE__ */ U(Ze, [["render", Je], ["__scopeId", "data-v-0ce77f1e"
|
|
|
488
488
|
], 512)), [
|
|
489
489
|
[S, u.value === "DATE"]
|
|
490
490
|
])), 128)),
|
|
491
|
-
(p(!0), E(C, null, X(m(
|
|
491
|
+
(p(!0), E(C, null, X(m(J), (i) => b((p(), E("span", {
|
|
492
492
|
key: i,
|
|
493
493
|
class: "labeled-date-time-input"
|
|
494
494
|
}, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, useCssVars as r, unref as n, openBlock as p, createElementBlock as d, createVNode as m } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a9 as u, _ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
3
|
const g = { class: "link-wrapper" }, f = /* @__PURE__ */ s({
|
|
4
4
|
__name: "LinkControl",
|
|
5
5
|
props: {
|
|
@@ -18,7 +18,7 @@ const g = { class: "link-wrapper" }, f = /* @__PURE__ */ s({
|
|
|
18
18
|
}));
|
|
19
19
|
const e = o, t = e.control.uischema.options?.alignment === "right" ? "flex-end" : "flex-start", { to: a, leadingIcon: l, trailingIcon: i } = e.control.uischema.options || {};
|
|
20
20
|
return (c, h) => (p(), d("div", g, [
|
|
21
|
-
m(n(
|
|
21
|
+
m(n(u), {
|
|
22
22
|
class: "link-button",
|
|
23
23
|
label: o.control.label,
|
|
24
24
|
to: n(a),
|
|
@@ -29,7 +29,7 @@ const g = { class: "link-wrapper" }, f = /* @__PURE__ */ s({
|
|
|
29
29
|
}, null, 8, ["label", "to", "leading-icon", "trailing-icon"])
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
32
|
-
}), x = /* @__PURE__ */
|
|
32
|
+
}), x = /* @__PURE__ */ _(f, [["__scopeId", "data-v-d1973605"]]);
|
|
33
33
|
export {
|
|
34
34
|
x as default
|
|
35
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 { a3 as _ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
3
|
const L = /* @__PURE__ */ v({
|
|
4
4
|
__name: "LoadingDropdown",
|
|
5
5
|
props: {
|
|
@@ -34,21 +34,21 @@ const L = /* @__PURE__ */ v({
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
return a;
|
|
37
|
-
}), c = s(() => i.value ? "Loading" : o.value.length > 0 ? "No value selected" : "No values present"),
|
|
37
|
+
}), c = s(() => i.value ? "Loading" : o.value.length > 0 ? "No value selected" : "No values present"), m = s(
|
|
38
38
|
() => e.disabled || o.value.length === 0
|
|
39
|
-
),
|
|
39
|
+
), b = (a) => {
|
|
40
40
|
n("update:modelValue", a ?? "");
|
|
41
41
|
};
|
|
42
42
|
return (a, l) => (V(), f(y(_), g(a.$attrs, {
|
|
43
43
|
id: e.id,
|
|
44
44
|
ariaLabel: e.ariaLabel,
|
|
45
45
|
"model-value": d.value,
|
|
46
|
-
disabled:
|
|
46
|
+
disabled: m.value,
|
|
47
47
|
"possible-values": o.value,
|
|
48
48
|
loading: i.value,
|
|
49
49
|
placeholder: c.value,
|
|
50
50
|
error: e.error,
|
|
51
|
-
"onUpdate:modelValue":
|
|
51
|
+
"onUpdate:modelValue": b
|
|
52
52
|
}), null, 16, ["id", "ariaLabel", "model-value", "disabled", "possible-values", "loading", "placeholder", "error"]));
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as k, toRef as i, computed as t, openBlock as C, createBlock as U, unref as a, mergeProps as x } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a5 as I } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
3
|
import { m as r } from "./index-Blg1O3Fz.js";
|
|
4
|
-
import { a as M, u as v } from "./usePossibleValues-
|
|
4
|
+
import { a as M, u as v } from "./usePossibleValues-B8es3DCW.js";
|
|
5
5
|
import { t as F } from "./toKdsPossibleValues-BklBg3gG.js";
|
|
6
|
-
import { u as L } from "./useUnknownValuesInTwinlist-
|
|
6
|
+
import { u as L } from "./useUnknownValuesInTwinlist-qv0kKHaD.js";
|
|
7
7
|
const K = /* @__PURE__ */ k({
|
|
8
8
|
__name: "ManualTwinlistControl",
|
|
9
9
|
props: {
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { toRef as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 v, withKeys as a, withModifiers as d, normalizeProps as C, 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 A, unref as x } from "vue";
|
|
2
|
+
import { u as T } from "./usePossibleValues-B8es3DCW.js";
|
|
3
|
+
import { aa as O, R as z, _ as P } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
4
|
+
import { S as M } from "./StyledListItem-Bli2itH-.js";
|
|
5
|
+
const R = (e, t) => {
|
|
6
|
+
let i, n = 0;
|
|
7
|
+
return (...o) => {
|
|
8
|
+
const [s, r] = o;
|
|
8
9
|
clearTimeout(i);
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const l = Date.now();
|
|
11
|
+
l - n > t ? (n = l, e(s, r)) : i = setTimeout(() => {
|
|
12
|
+
n = l, e(s, r);
|
|
12
13
|
}, t);
|
|
13
14
|
};
|
|
14
|
-
},
|
|
15
|
+
}, E = 250, U = {
|
|
15
16
|
name: "MultiselectListBox",
|
|
16
|
-
components: { StyledListItem:
|
|
17
|
+
components: { StyledListItem: M },
|
|
17
18
|
props: {
|
|
18
19
|
id: {
|
|
19
20
|
type: String,
|
|
20
21
|
default() {
|
|
21
|
-
return `MultiselectListBox-${
|
|
22
|
+
return `MultiselectListBox-${z()}`;
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
modelValue: {
|
|
@@ -121,22 +122,22 @@ const z = (e, t) => {
|
|
|
121
122
|
"keyArrowRight"
|
|
122
123
|
],
|
|
123
124
|
setup(e) {
|
|
124
|
-
const { containerProps: i, wrapperProps:
|
|
125
|
-
|
|
125
|
+
const { containerProps: i, wrapperProps: n, list: o, scrollTo: s } = O(
|
|
126
|
+
S(e, "possibleValues"),
|
|
126
127
|
{
|
|
127
128
|
itemHeight: 22
|
|
128
129
|
}
|
|
129
130
|
);
|
|
130
|
-
return
|
|
131
|
+
return y(
|
|
131
132
|
() => e.possibleValues,
|
|
132
133
|
() => {
|
|
133
134
|
if (!i.ref.value)
|
|
134
135
|
return;
|
|
135
|
-
const
|
|
136
|
+
const r = i.ref.value?.scrollTop ?? 0;
|
|
136
137
|
s(
|
|
137
138
|
Math.max(
|
|
138
139
|
Math.min(
|
|
139
|
-
Math.floor(
|
|
140
|
+
Math.floor(r / 22),
|
|
140
141
|
e.possibleValues.length - 1
|
|
141
142
|
),
|
|
142
143
|
0
|
|
@@ -146,8 +147,8 @@ const z = (e, t) => {
|
|
|
146
147
|
), {
|
|
147
148
|
optionLineHeight: 22,
|
|
148
149
|
containerProps: i,
|
|
149
|
-
wrapperProps:
|
|
150
|
-
list:
|
|
150
|
+
wrapperProps: n,
|
|
151
|
+
list: o
|
|
151
152
|
};
|
|
152
153
|
},
|
|
153
154
|
data() {
|
|
@@ -205,9 +206,9 @@ const z = (e, t) => {
|
|
|
205
206
|
},
|
|
206
207
|
methods: {
|
|
207
208
|
createDebouncedHandleCtrlClick() {
|
|
208
|
-
this.debouncedHandleCtrlClick =
|
|
209
|
+
this.debouncedHandleCtrlClick = R((e, t) => {
|
|
209
210
|
this.handleCtrlClick(e, t);
|
|
210
|
-
},
|
|
211
|
+
}, E);
|
|
211
212
|
},
|
|
212
213
|
// Define debouncedHandleCtrlClick as a method
|
|
213
214
|
debouncedHandleCtrlClick(e, t) {
|
|
@@ -231,29 +232,29 @@ const z = (e, t) => {
|
|
|
231
232
|
* @returns {String[]}
|
|
232
233
|
*/
|
|
233
234
|
getPossibleValuesInSection(e, t) {
|
|
234
|
-
const i = e > t ? t : e,
|
|
235
|
-
return this.possibleValuesWithBottom.slice(i,
|
|
235
|
+
const i = e > t ? t : e, n = e > t ? e : t;
|
|
236
|
+
return this.possibleValuesWithBottom.slice(i, n + 1).map((o) => o.id);
|
|
236
237
|
},
|
|
237
238
|
onStartDrag(e, t = !1) {
|
|
238
239
|
if (this.disabled || e.shiftKey)
|
|
239
240
|
return;
|
|
240
241
|
(e.ctrlKey || e.metaKey) && (this.draggingInverseMode = !0);
|
|
241
|
-
const i = e.target,
|
|
242
|
-
|
|
242
|
+
const i = e.target, n = t ? this.bottomIndex : this.getDataOptionIndex(i);
|
|
243
|
+
n && (this.draggingStartIndex = Number(n));
|
|
243
244
|
},
|
|
244
245
|
onDrag(e) {
|
|
245
246
|
if (this.draggingStartIndex !== -1) {
|
|
246
247
|
const t = e.target, i = this.getDataOptionIndex(t);
|
|
247
248
|
if (!i)
|
|
248
249
|
return;
|
|
249
|
-
const
|
|
250
|
-
let
|
|
250
|
+
const n = Number(i);
|
|
251
|
+
let o = this.getPossibleValuesInSection(
|
|
251
252
|
this.draggingStartIndex,
|
|
252
|
-
|
|
253
|
+
n
|
|
253
254
|
);
|
|
254
|
-
this.draggingInverseMode && (
|
|
255
|
-
(s) => !
|
|
256
|
-
)), this.setSelected(
|
|
255
|
+
this.draggingInverseMode && (o = this.selectedValues.filter(
|
|
256
|
+
(s) => !o.includes(s)
|
|
257
|
+
)), this.setSelected(o);
|
|
257
258
|
}
|
|
258
259
|
},
|
|
259
260
|
getDataOptionIndex(e) {
|
|
@@ -328,10 +329,10 @@ const z = (e, t) => {
|
|
|
328
329
|
return;
|
|
329
330
|
const i = this.containerProps.ref.value;
|
|
330
331
|
if (i.scrollHeight > i.clientHeight) {
|
|
331
|
-
const
|
|
332
|
-
if (!(s >
|
|
332
|
+
const n = i.clientHeight + i.scrollTop, o = e * this.optionLineHeight, s = o + this.optionLineHeight, r = o < i.scrollTop;
|
|
333
|
+
if (!(s > n || r))
|
|
333
334
|
return;
|
|
334
|
-
t === "up" || t === "auto" &&
|
|
335
|
+
t === "up" || t === "auto" && r ? i.scrollTop = o : i.scrollTop = s - i.clientHeight;
|
|
335
336
|
}
|
|
336
337
|
},
|
|
337
338
|
scrollUpIntoView(e) {
|
|
@@ -433,21 +434,21 @@ const z = (e, t) => {
|
|
|
433
434
|
this.resizeHeight = this.computeBoxHeight(Math.round(e));
|
|
434
435
|
}
|
|
435
436
|
}
|
|
436
|
-
},
|
|
437
|
+
}, F = { class: "box" }, W = ["id", "aria-label", "aria-activedescendant"], j = {
|
|
437
438
|
key: 0,
|
|
438
439
|
class: "empty-state"
|
|
439
|
-
},
|
|
440
|
+
}, q = { key: 1 }, Y = {
|
|
440
441
|
key: 1,
|
|
441
442
|
role: "bottom-box"
|
|
442
443
|
};
|
|
443
|
-
function
|
|
444
|
-
const
|
|
445
|
-
return h(),
|
|
446
|
-
class:
|
|
447
|
-
style:
|
|
444
|
+
function G(e, t, i, n, o, s) {
|
|
445
|
+
const r = p("StyledListItem");
|
|
446
|
+
return h(), c("div", {
|
|
447
|
+
class: V(["multiselect-list-box", { invalid: !i.isValid, disabled: i.disabled }]),
|
|
448
|
+
style: I(s.cssStyleSize)
|
|
448
449
|
}, [
|
|
449
|
-
|
|
450
|
-
|
|
450
|
+
f("div", F, [
|
|
451
|
+
f("ul", v(n.containerProps, {
|
|
451
452
|
id: i.id,
|
|
452
453
|
role: "listbox",
|
|
453
454
|
tabindex: "0",
|
|
@@ -455,46 +456,46 @@ function j(e, t, i, r, l, s) {
|
|
|
455
456
|
"aria-label": i.ariaLabel,
|
|
456
457
|
"aria-activedescendant": s.generateOptionId(s.getCurrentKeyNavItem()),
|
|
457
458
|
onKeydown: [
|
|
458
|
-
t[1] || (t[1] = a(d((...
|
|
459
|
-
t[2] || (t[2] = a(d((...
|
|
460
|
-
t[3] || (t[3] = a(d((...
|
|
461
|
-
t[4] || (t[4] = a(d((...
|
|
462
|
-
t[5] || (t[5] = a(d((...
|
|
463
|
-
t[6] || (t[6] = a(d((...
|
|
464
|
-
t[7] || (t[7] = a(d((...
|
|
465
|
-
t[8] || (t[8] = a(d((...
|
|
466
|
-
t[9] || (t[9] = a(d((...
|
|
459
|
+
t[1] || (t[1] = a(d((...l) => s.onCtrlA && s.onCtrlA(...l), ["ctrl", "prevent", "exact"]), ["a"])),
|
|
460
|
+
t[2] || (t[2] = a(d((...l) => s.onArrowUp && s.onArrowUp(...l), ["prevent", "exact"]), ["up"])),
|
|
461
|
+
t[3] || (t[3] = a(d((...l) => s.onArrowDown && s.onArrowDown(...l), ["prevent", "exact"]), ["down"])),
|
|
462
|
+
t[4] || (t[4] = a(d((...l) => s.onArrowUpShift && s.onArrowUpShift(...l), ["shift", "prevent", "exact"]), ["up"])),
|
|
463
|
+
t[5] || (t[5] = a(d((...l) => s.onArrowDownShift && s.onArrowDownShift(...l), ["shift", "prevent", "exact"]), ["down"])),
|
|
464
|
+
t[6] || (t[6] = a(d((...l) => s.onArrowLeft && s.onArrowLeft(...l), ["prevent", "exact"]), ["left"])),
|
|
465
|
+
t[7] || (t[7] = a(d((...l) => s.onArrowRight && s.onArrowRight(...l), ["prevent", "exact"]), ["right"])),
|
|
466
|
+
t[8] || (t[8] = a(d((...l) => s.onHomeKey && s.onHomeKey(...l), ["prevent", "exact"]), ["home"])),
|
|
467
|
+
t[9] || (t[9] = a(d((...l) => s.onEndKey && s.onEndKey(...l), ["prevent", "exact"]), ["end"]))
|
|
467
468
|
],
|
|
468
|
-
onMousedown: t[10] || (t[10] = (...
|
|
469
|
-
onMousemove: t[11] || (t[11] = (...
|
|
469
|
+
onMousedown: t[10] || (t[10] = (...l) => s.onStartDrag && s.onStartDrag(...l)),
|
|
470
|
+
onMousemove: t[11] || (t[11] = (...l) => s.onDrag && s.onDrag(...l))
|
|
470
471
|
}), [
|
|
471
|
-
|
|
472
|
-
(h(!0),
|
|
473
|
-
id: s.generateOptionId(
|
|
474
|
-
key: `listbox-${
|
|
475
|
-
text:
|
|
476
|
-
"data-option-index":
|
|
477
|
-
"line-height":
|
|
478
|
-
selected: s.isCurrentValue(
|
|
479
|
-
invalid:
|
|
480
|
-
special:
|
|
472
|
+
f("div", C(w(n.wrapperProps)), [
|
|
473
|
+
(h(!0), c(k, null, D(n.list, ({ data: l, index: u }) => (h(), g(r, {
|
|
474
|
+
id: s.generateOptionId(l),
|
|
475
|
+
key: `listbox-${l.id}`,
|
|
476
|
+
text: l.text,
|
|
477
|
+
"data-option-index": u,
|
|
478
|
+
"line-height": n.optionLineHeight,
|
|
479
|
+
selected: s.isCurrentValue(l.id),
|
|
480
|
+
invalid: l.invalid,
|
|
481
|
+
special: l.special,
|
|
481
482
|
disabled: i.disabled,
|
|
482
|
-
onClick: (
|
|
483
|
-
onDblclickShift: t[0] || (t[0] = (
|
|
484
|
-
onDblclickExact: (
|
|
483
|
+
onClick: (m) => s.handleClick(m, l.id, u),
|
|
484
|
+
onDblclickShift: t[0] || (t[0] = (m) => s.handleShiftDblClick()),
|
|
485
|
+
onDblclickExact: (m) => s.handleDblClick(l.id, u)
|
|
485
486
|
}, {
|
|
486
|
-
default:
|
|
487
|
-
H(e.$slots, "option", { slotItem:
|
|
487
|
+
default: B(() => [
|
|
488
|
+
H(e.$slots, "option", { slotItem: l }, void 0, !0)
|
|
488
489
|
]),
|
|
489
490
|
_: 2
|
|
490
491
|
}, 1032, ["id", "text", "data-option-index", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onDblclickExact"]))), 128))
|
|
491
492
|
], 16)
|
|
492
|
-
], 16,
|
|
493
|
-
s.showEmptyState ? (h(),
|
|
494
|
-
i.emptyStateComponent ? (h(), g(
|
|
493
|
+
], 16, W),
|
|
494
|
+
s.showEmptyState ? (h(), c("div", j, [
|
|
495
|
+
i.emptyStateComponent ? (h(), g(K(i.emptyStateComponent), { key: 0 })) : (h(), c("span", q, N(i.emptyStateLabel), 1))
|
|
495
496
|
])) : b("", !0),
|
|
496
|
-
i.withBottomValue ? (h(),
|
|
497
|
-
|
|
497
|
+
i.withBottomValue ? (h(), c("div", Y, [
|
|
498
|
+
L(r, {
|
|
498
499
|
id: s.generateOptionId(i.bottomValue),
|
|
499
500
|
special: "",
|
|
500
501
|
text: i.bottomValue.text,
|
|
@@ -502,7 +503,7 @@ function j(e, t, i, r, l, s) {
|
|
|
502
503
|
selected: s.isCurrentValue(i.bottomValue.id),
|
|
503
504
|
disabled: i.disabled,
|
|
504
505
|
onClick: s.handleBottomClick,
|
|
505
|
-
onDblclickShift: t[12] || (t[12] = (
|
|
506
|
+
onDblclickShift: t[12] || (t[12] = (l) => s.handleShiftDblClick()),
|
|
506
507
|
onDblclickExact: s.handleBottomDblClick,
|
|
507
508
|
onMousedown: s.onBottomStartDrag,
|
|
508
509
|
onMousemove: s.onBottomDrag
|
|
@@ -511,7 +512,31 @@ function j(e, t, i, r, l, s) {
|
|
|
511
512
|
])
|
|
512
513
|
], 6);
|
|
513
514
|
}
|
|
514
|
-
const
|
|
515
|
+
const J = /* @__PURE__ */ P(U, [["render", G], ["__scopeId", "data-v-4ee62d65"]]), $ = /* @__PURE__ */ A({
|
|
516
|
+
__name: "MultiSelectListBoxControl",
|
|
517
|
+
props: {
|
|
518
|
+
control: {},
|
|
519
|
+
handleChange: { type: Function },
|
|
520
|
+
changeValue: { type: Function },
|
|
521
|
+
disabled: { type: Boolean },
|
|
522
|
+
isValid: { type: Boolean },
|
|
523
|
+
onRegisterValidation: { type: Function },
|
|
524
|
+
labelForId: {}
|
|
525
|
+
},
|
|
526
|
+
setup(e) {
|
|
527
|
+
const t = e, { possibleValues: i } = T(S(t, "control"));
|
|
528
|
+
return (n, o) => (h(), g(x(J), {
|
|
529
|
+
id: e.labelForId,
|
|
530
|
+
"possible-values": x(i) || [],
|
|
531
|
+
disabled: e.disabled,
|
|
532
|
+
"model-value": e.control.data,
|
|
533
|
+
"is-valid": e.isValid,
|
|
534
|
+
ariaLabel: e.control.label,
|
|
535
|
+
size: e.control.uischema.options?.size,
|
|
536
|
+
"onUpdate:modelValue": e.changeValue
|
|
537
|
+
}, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"]));
|
|
538
|
+
}
|
|
539
|
+
});
|
|
515
540
|
export {
|
|
516
|
-
|
|
541
|
+
$ as default
|
|
517
542
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as A, toRef as b, computed as c, openBlock as B, createBlock as S, unref as u, mergeProps as N } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { ab as r, a5 as G } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
3
|
import { m as g } from "./index-Blg1O3Fz.js";
|
|
4
|
-
import { u as X, a as Y } from "./usePossibleValues-
|
|
4
|
+
import { u as X, a as Y } from "./usePossibleValues-B8es3DCW.js";
|
|
5
5
|
import { t as W } from "./toKdsPossibleValues-BklBg3gG.js";
|
|
6
|
-
import { u as q } from "./useUnknownValuesInTwinlist-
|
|
6
|
+
import { u as q } from "./useUnknownValuesInTwinlist-qv0kKHaD.js";
|
|
7
7
|
const O = /* @__PURE__ */ A({
|
|
8
8
|
__name: "MultimodeTwinlistControl",
|
|
9
9
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as a } from "vue";
|
|
2
|
-
import { _ as l } from "./MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as l } from "./MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-C9JUTbz1.js";
|
|
3
3
|
const u = /* @__PURE__ */ n({
|
|
4
4
|
__name: "NameFilter",
|
|
5
5
|
props: {
|
|
@@ -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-Bs-H6e08.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "NumberControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, computed as l, openBlock as u, createBlock as d, unref as p } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as b } from "./useBuiltinValidations-
|
|
2
|
+
import { a4 as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
|
+
import { u as b } from "./useBuiltinValidations-ChnQzGRe.js";
|
|
4
4
|
const E = 1, v = 0.1, h = /* @__PURE__ */ m({
|
|
5
5
|
__name: "NumberControlBase",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, computed as s, openBlock as d, createBlock as u, unref as n } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { o as
|
|
2
|
+
import { a3 as c } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
|
+
import { o as m } from "./index-Blg1O3Fz.js";
|
|
4
4
|
const g = /* @__PURE__ */ r({
|
|
5
5
|
__name: "OneOfDropdown",
|
|
6
6
|
props: {
|
|
@@ -13,11 +13,11 @@ const g = /* @__PURE__ */ r({
|
|
|
13
13
|
labelForId: {}
|
|
14
14
|
},
|
|
15
15
|
setup(e) {
|
|
16
|
-
const o = e, t = o.control.schema?.oneOf?.map(
|
|
16
|
+
const o = e, t = o.control.schema?.oneOf?.map(m) ?? [], a = s({
|
|
17
17
|
get: () => o.control.data ?? "",
|
|
18
18
|
set: o.changeValue
|
|
19
19
|
});
|
|
20
|
-
return (
|
|
20
|
+
return (p, l) => (d(), u(n(c), {
|
|
21
21
|
id: e.labelForId,
|
|
22
22
|
modelValue: a.value,
|
|
23
23
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, computed as s, openBlock as n, createElementBlock as t, Fragment as c, renderList as v, createVNode as b, unref as _, createElementVNode as i, normalizeClass as g, createCommentVNode as y } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { ae as L } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
3
|
const M = ["innerHTML"], B = ["innerHTML"], C = ["innerHTML"], x = /* @__PURE__ */ V({
|
|
4
4
|
__name: "RadioButtonsWithDescriptionControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as n, createBlock as t, mergeProps as a } from "vue";
|
|
2
|
-
import { _ as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as p } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-
|
|
2
|
+
import { _ as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-Cp22r9KZ.js";
|
|
3
|
+
import { _ as p } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
4
4
|
const i = /* @__PURE__ */ e({
|
|
5
5
|
__name: "RadioControl",
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, computed as d, ref as p, toRef as b, onMounted as v, openBlock as t, createElementBlock as V, Fragment as f, createBlock as i, unref as s, createCommentVNode as h } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { ac as y, ad as g } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
3
|
import { o as B } from "./index-Blg1O3Fz.js";
|
|
4
|
-
import { u as F } from "./usePossibleValues-
|
|
4
|
+
import { u as F } from "./usePossibleValues-B8es3DCW.js";
|
|
5
5
|
const U = /* @__PURE__ */ r({
|
|
6
6
|
__name: "RadioControlBase",
|
|
7
7
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as B, computed as e, openBlock as s, createElementBlock as u, createElementVNode as h, normalizeClass as w, createCommentVNode as M, createBlock as D, resolveDynamicComponent as T, withCtx as _, createVNode as b, unref as F, renderSlot as S } from "vue";
|
|
2
|
-
import { _ as C,
|
|
3
|
-
import { T as O } from "./Tooltip-
|
|
2
|
+
import { _ as C, a4 as $ } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js";
|
|
3
|
+
import { T as O } from "./Tooltip-C9vAa0Wb.js";
|
|
4
4
|
const R = { class: "donut-container" }, N = ["viewBox"], I = ["r"], L = ["r"], U = ["viewBox"], E = ["r", "stroke-width"], W = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"], K = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"], z = 0.5, o = 22, g = 10, A = /* @__PURE__ */ B({
|
|
5
5
|
__name: "SmallDonutChart",
|
|
6
6
|
props: {
|