@knime/jsonforms 1.14.2 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/{AnyOfTwinlist-Cwxtyt0Q.js → AnyOfTwinlist-Co_sJAsc.js} +3 -3
- package/dist/{Button-BxuGKyL5.js → Button-Cqwayw73.js} +4 -4
- package/dist/CheckboxControl-C10_DX1N.js +40 -0
- package/dist/{Checkboxes-DIPjJhPO.js → Checkboxes-DWOxHiUX.js} +2 -2
- package/dist/{CheckboxesControl-5QlPmjwv.js → CheckboxesControl-BMRFgmO_.js} +7 -10
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-R0DlbAdT.js} +26 -29
- package/dist/{DateControl-CddCObVg.js → DateControl-DAGAM92B.js} +3 -3
- package/dist/DateTimeControl-DJhIb_U4.js +45 -0
- package/dist/{DateTimeFormatInput-bO1zHUyp.js → DateTimeFormatInput-BhLQzC-P.js} +74 -82
- package/dist/{DateTimeFormatPickerControl-Dq25_JV2.js → DateTimeFormatPickerControl-V7pxRYaW.js} +5 -8
- package/dist/{DateTimeFormatPickerWithTypeControl-DZib_x-B.js → DateTimeFormatPickerWithTypeControl-3fa75rGw.js} +6 -9
- package/dist/{DateTimeInput-CEYEV8dt.js → DateTimeInput-Cs0KqlOS.js} +4629 -4556
- package/dist/Dropdown-BEx-cvXH.js +608 -0
- package/dist/{DropdownControl-BNQKWzTT.js → DropdownControl-DEIA5VD4.js} +4 -4
- package/dist/{HorizontalLayout-6GwurgkR.js → HorizontalLayout-DCfhMNq4.js} +2 -2
- package/dist/{InputField-BYxW_-G3.js → InputField-OkFB9VHZ.js} +11 -11
- package/dist/{IntegerControl-DZIY-wb_.js → IntegerControl-Om8J7hch.js} +3 -3
- package/dist/{IntervalControl-Yts36_MI.js → IntervalControl-B7UbyyD-.js} +99 -100
- package/dist/{LoadingDropdown-Dw-0WQ8x.js → LoadingDropdown-CINkq_Sw.js} +6 -6
- package/dist/{ManualTwinlistControl-C3NnAug1.js → ManualTwinlistControl-BLTfr2gT.js} +24 -30
- package/dist/MultiSelectListBoxControl-j1TaFtQj.js +31 -0
- package/dist/{MultimodeTwinlistControl-B2Jven29.js → MultimodeTwinlistControl-BsFqHRFM.js} +97 -108
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CMTJnAWr.js} +18 -23
- package/dist/{NameFilter-D0hKO5Fr.js → NameFilter-d5k6rDVY.js} +3 -3
- package/dist/{NumberControl-DkeQT1iR.js → NumberControl-Kc3hvVef.js} +3 -3
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +50 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-BepS3tAK.js} +5 -5
- package/dist/{OneOfDropdown-NAgE-mPP.js → OneOfDropdown-CLwVXrbC.js} +10 -11
- package/dist/{RadioControl-DjrysNQ_.js → RadioControl-DpziR8nA.js} +4 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +104 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-CE6whfV5.js} +4524 -4079
- package/dist/SectionHeading-D7znCZXu.js +19 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js +15431 -0
- package/dist/{SectionLayout-CJP4sYyB.js → SectionLayout-BhXDOzqB.js} +4 -4
- package/dist/SettingsSubPanel-x9uWGoiu.js +5 -0
- package/dist/{SettingsSubPanelLayout-YBNVPQOD.js → SettingsSubPanelLayout-BPHBM5n5.js} +12 -11
- package/dist/{SimpleButtonControl-ejyUwJdL.js → SimpleButtonControl-DfCSlgZS.js} +9 -9
- package/dist/SimpleTwinlistControl-CBalniCf.js +25 -0
- package/dist/{SingleSelectControl-B0JgDv7j.js → SingleSelectControl-DC4w0ata.js} +4 -4
- package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js} +33 -36
- package/dist/{SortListControl-mvJofiWn.js → SortListControl-BIUyPjCi.js} +122 -120
- package/dist/{StyledListItem-BXz08pEQ.js → StyledListItem-D-HJWfo5.js} +3 -3
- package/dist/{TextAreaControl-S4aoqAv1.js → TextAreaControl-D28TQZEY.js} +23 -26
- package/dist/{TextControl-rJrjrBw8.js → TextControl-DUDBWcHy.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js → TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js} +16 -19
- package/dist/TimeControl-HRooO_z3.js +36 -0
- package/dist/{TwinlistControlBase-D1l9t7Up.js → TwinlistControlBase-Brfh5pqZ.js} +5 -5
- package/dist/{TwinlistLoadingInfo-CQRx9cEu.js → TwinlistLoadingInfo-C4Tta00d.js} +150 -167
- package/dist/TypedStringFilter-CdvgPKhD.js +26 -0
- package/dist/{ValueSwitch-CUYV7v67.js → ValueSwitch-W4y1YvNM.js} +8 -8
- package/dist/{ValueSwitchControl-IP9SxrUs.js → ValueSwitchControl-BaXH8Cjx.js} +3 -3
- package/dist/{VerticalLayout-D2eQSYgv.js → VerticalLayout-ChAmRKNj.js} +5 -5
- package/dist/VerticalLayoutBase-DAk4vfH5.js +20 -0
- package/dist/ZonedDateTimeControl-Qb57KmMT.js +69 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-DdH9cM67.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-BGt-t7Os.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-DAFySze4.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-BAFsD8Su.js} +2 -2
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BQVCxGb8.js} +2 -2
- package/dist/{close-BuY4mhXV.js → close-DGt8x-x_.js} +2 -2
- package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
- package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
- package/dist/index-CpKfM262.js +376 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +64 -67
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-NIKgHnIr.js} +179 -181
- package/dist/magic-string.es-BQ9KnLz-.js +659 -0
- package/dist/navigator-e30QQMkl.js +4 -0
- package/dist/popper-LGjf7Wza.js +905 -0
- package/dist/{reload-BVbCGubF.js → reload-DCdbNLa2.js} +2 -2
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
- package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
- package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +966 -151
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
- package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
- package/dist/src/renderers/sortListRenderer.d.ts +853 -20
- package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
- package/dist/src/renderers/textRenderer.d.ts +1 -1
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/{svgWithTitle-Cr3Pu3wr.js → svgWithTitle-CnTmPYAB.js} +4 -4
- package/dist/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-BhubvA3m.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-Boxrm71q.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DXuWWBh_.js +16 -0
- package/package.json +14 -14
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
- package/dist/SectionHeading-BU1W5lDr.js +0 -19
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
- package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
- package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
- package/dist/index-CoRworrE.js +0 -322
- package/dist/magic-string.es-D-aKzDFf.js +0 -858
- package/dist/navigator-D_R-txCf.js +0 -7
- package/dist/popper-CRR--9mA.js +0 -907
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u, ref as i,
|
|
2
|
-
import {
|
|
3
|
-
import { V as h } from "./VerticalLayoutBase-
|
|
4
|
-
import { S as v } from "./SectionHeading-
|
|
1
|
+
import { defineComponent as u, ref as i, createElementBlock as m, openBlock as l, createVNode as s, withCtx as r, renderSlot as p, createBlock as c, unref as d } from "vue";
|
|
2
|
+
import { x as f, _ as y } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
3
|
+
import { V as h } from "./VerticalLayoutBase-DAk4vfH5.js";
|
|
4
|
+
import { S as v } from "./SectionHeading-D7znCZXu.js";
|
|
5
5
|
const b = /* @__PURE__ */ u({
|
|
6
6
|
__name: "SectionLayout",
|
|
7
7
|
props: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
2
|
-
import {
|
|
3
|
-
import { N as f } from "./arrow-next-
|
|
4
|
-
import { V as h } from "./VerticalLayoutBase-
|
|
5
|
-
import { S as y } from "./SectionHeading-
|
|
6
|
-
import { S as b } from "./SettingsSubPanel-
|
|
1
|
+
import { defineComponent as i, createBlock as n, openBlock as s, withCtx as t, createVNode as a, unref as l, createElementVNode as m } from "vue";
|
|
2
|
+
import { x as c, v as p, _ as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
3
|
+
import { N as f } from "./arrow-next-BQVCxGb8.js";
|
|
4
|
+
import { V as h } from "./VerticalLayoutBase-DAk4vfH5.js";
|
|
5
|
+
import { S as y } from "./SectionHeading-D7znCZXu.js";
|
|
6
|
+
import { S as b } from "./SettingsSubPanel-x9uWGoiu.js";
|
|
7
7
|
const S = /* @__PURE__ */ i({
|
|
8
8
|
__name: "SettingsSubPanelLayout",
|
|
9
9
|
props: {
|
|
10
10
|
layout: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (e, r) => (
|
|
12
|
+
setup(_) {
|
|
13
|
+
return (e, r) => (s(), n(b, {
|
|
14
14
|
"show-back-arrow": "",
|
|
15
15
|
"background-color-override": "var(--knime-gray-ultra-light"
|
|
16
16
|
}, {
|
|
@@ -19,7 +19,7 @@ const S = /* @__PURE__ */ i({
|
|
|
19
19
|
"title-text": e.layout.uischema.label
|
|
20
20
|
}, {
|
|
21
21
|
"right-buttons": t(() => [
|
|
22
|
-
a(l(
|
|
22
|
+
a(l(p), {
|
|
23
23
|
compact: "",
|
|
24
24
|
class: "set-button",
|
|
25
25
|
onClick: o
|
|
@@ -28,7 +28,8 @@ const S = /* @__PURE__ */ i({
|
|
|
28
28
|
r[0] || (r[0] = m("span", null, "Set", -1)),
|
|
29
29
|
a(l(f))
|
|
30
30
|
]),
|
|
31
|
-
_: 2
|
|
31
|
+
_: 2,
|
|
32
|
+
__: [0]
|
|
32
33
|
}, 1032, ["onClick"])
|
|
33
34
|
]),
|
|
34
35
|
_: 2
|
|
@@ -39,7 +40,7 @@ const S = /* @__PURE__ */ i({
|
|
|
39
40
|
elements: e.layout.uischema.elements
|
|
40
41
|
}, {
|
|
41
42
|
default: t(({ element: o, index: u }) => [
|
|
42
|
-
(
|
|
43
|
+
(s(), n(l(c), {
|
|
43
44
|
key: `${e.layout.path}-${u}`,
|
|
44
45
|
schema: e.layout.schema,
|
|
45
46
|
uischema: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u,
|
|
2
|
-
import {
|
|
3
|
-
import { R as S } from "./reload-
|
|
4
|
-
import { B as $ } from "./Button-
|
|
1
|
+
import { defineComponent as u, createBlock as p, openBlock as s, resolveDynamicComponent as f, computed as r, ref as g, createElementBlock as _, createVNode as b, renderSlot as y, unref as B, withCtx as C, createCommentVNode as h, createTextVNode as I, toDisplayString as V } from "vue";
|
|
2
|
+
import { A as k, _ as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
3
|
+
import { R as S } from "./reload-DCdbNLa2.js";
|
|
4
|
+
import { B as $ } from "./Button-Cqwayw73.js";
|
|
5
5
|
const x = /* @__PURE__ */ u({
|
|
6
6
|
__name: "DynamicIcon",
|
|
7
7
|
props: {
|
|
@@ -36,23 +36,23 @@ const x = /* @__PURE__ */ u({
|
|
|
36
36
|
onMouseover: o[0] || (o[0] = (v) => n.value = !0),
|
|
37
37
|
onMouseleave: o[1] || (o[1] = (v) => n.value = !1)
|
|
38
38
|
}, [
|
|
39
|
-
b(
|
|
39
|
+
b(B($), {
|
|
40
40
|
compact: "",
|
|
41
41
|
"with-border": "",
|
|
42
42
|
disabled: t.value,
|
|
43
43
|
class: "button-input",
|
|
44
44
|
onClick: m
|
|
45
45
|
}, {
|
|
46
|
-
default:
|
|
46
|
+
default: C(() => [
|
|
47
47
|
i.value ? (s(), p(x, {
|
|
48
48
|
key: 0,
|
|
49
49
|
icon: i.value
|
|
50
|
-
}, null, 8, ["icon"])) :
|
|
51
|
-
|
|
50
|
+
}, null, 8, ["icon"])) : h("", !0),
|
|
51
|
+
I(V(c.control.label), 1)
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
54
|
}, 8, ["disabled"]),
|
|
55
|
-
|
|
55
|
+
y(c.$slots, "buttons", { hover: n.value }, void 0, !0)
|
|
56
56
|
], 32));
|
|
57
57
|
}
|
|
58
58
|
}), j = /* @__PURE__ */ F(D, [["__scopeId", "data-v-71d12dcd"]]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as s, toRef as i, createBlock as l, openBlock as a, mergeProps as r, unref as p } from "vue";
|
|
2
|
+
import { u as c } from "./usePossibleValues-DXuWWBh_.js";
|
|
3
|
+
import { T as u } from "./TwinlistControlBase-Brfh5pqZ.js";
|
|
4
|
+
const h = /* @__PURE__ */ s({
|
|
5
|
+
__name: "SimpleTwinlistControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const o = e, t = i(o, "control"), { possibleValues: n } = c(t);
|
|
17
|
+
return (m, d) => (a(), l(u, r(o, {
|
|
18
|
+
"possible-values": p(n),
|
|
19
|
+
"twinlist-size": o.control.uischema.options?.twinlistSize
|
|
20
|
+
}), null, 16, ["possible-values", "twinlist-size"]));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
h as default
|
|
25
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as I, computed as n, toRef as y,
|
|
2
|
-
import { u as F } from "./usePossibleValues-
|
|
3
|
-
import { L as R } from "./LoadingDropdown-
|
|
1
|
+
import { defineComponent as I, computed as n, toRef as y, createBlock as v, openBlock as w } from "vue";
|
|
2
|
+
import { u as F } from "./usePossibleValues-DXuWWBh_.js";
|
|
3
|
+
import { L as R } from "./LoadingDropdown-CINkq_Sw.js";
|
|
4
4
|
const t = "__special__", i = "__regular__", L = /* @__PURE__ */ I({
|
|
5
5
|
__name: "SingleSelectControl",
|
|
6
6
|
props: {
|
|
@@ -42,7 +42,7 @@ const t = "__special__", i = "__regular__", L = /* @__PURE__ */ I({
|
|
|
42
42
|
r.changeValue(m(e));
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
return (e, o) => (
|
|
45
|
+
return (e, o) => (w(), v(R, {
|
|
46
46
|
id: e.labelForId,
|
|
47
47
|
modelValue: u.value,
|
|
48
48
|
"onUpdate:modelValue": o[0] || (o[0] = (_) => u.value = _),
|
package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { resolveComponent as m,
|
|
2
|
-
import { u as S } from "./usePossibleValues-
|
|
3
|
-
import { S as C } from "./StyledListItem-
|
|
4
|
-
import { _ as L,
|
|
1
|
+
import { resolveComponent as m, createElementBlock as u, openBlock as a, normalizeClass as c, createElementVNode as V, normalizeStyle as h, Fragment as y, renderList as I, createBlock as f, defineComponent as x, toRef as g, createCommentVNode as v, unref as o } from "vue";
|
|
2
|
+
import { u as S } from "./usePossibleValues-DXuWWBh_.js";
|
|
3
|
+
import { S as C } from "./StyledListItem-D-HJWfo5.js";
|
|
4
|
+
import { _ as L, B as _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
5
5
|
const B = 40, w = 38, H = 36, T = 35, K = {
|
|
6
6
|
name: "ListBox",
|
|
7
7
|
components: {
|
|
@@ -161,7 +161,7 @@ const B = 40, w = 38, H = 36, T = 35, K = {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}, k = ["id", "tabindex", "aria-label", "aria-activedescendant"];
|
|
164
|
-
function
|
|
164
|
+
function D(e, t, l, n, d, s) {
|
|
165
165
|
const p = m("StyledListItem");
|
|
166
166
|
return a(), u("div", {
|
|
167
167
|
class: c(["list-box", { invalid: !l.isValid, disabled: l.disabled }])
|
|
@@ -172,36 +172,36 @@ function A(e, t, l, n, d, i) {
|
|
|
172
172
|
role: "listbox",
|
|
173
173
|
tabindex: l.disabled ? -1 : 0,
|
|
174
174
|
"aria-label": l.ariaLabel,
|
|
175
|
-
style: h(
|
|
176
|
-
"aria-activedescendant":
|
|
177
|
-
onKeydown: t[0] || (t[0] = (...
|
|
175
|
+
style: h(s.ulSizeStyle),
|
|
176
|
+
"aria-activedescendant": s.generateOptionId(s.getCurrentItem()),
|
|
177
|
+
onKeydown: t[0] || (t[0] = (...i) => s.handleKeyDown && s.handleKeyDown(...i))
|
|
178
178
|
}, [
|
|
179
|
-
(a(!0), u(y, null, I(
|
|
180
|
-
id:
|
|
181
|
-
key: `listbox-${
|
|
179
|
+
(a(!0), u(y, null, I(s.selectableValues, (i, r) => (a(), f(p, {
|
|
180
|
+
id: s.generateOptionId(i),
|
|
181
|
+
key: `listbox-${i.id}`,
|
|
182
182
|
ref_for: !0,
|
|
183
183
|
ref: "options",
|
|
184
184
|
style: h({ "line-height": `${d.optionLineHeight}px` }),
|
|
185
|
-
text:
|
|
186
|
-
title:
|
|
185
|
+
text: i.text,
|
|
186
|
+
title: i.text,
|
|
187
187
|
class: c({
|
|
188
|
-
focused:
|
|
188
|
+
focused: s.isCurrentValue(i.id),
|
|
189
189
|
noselect: !0,
|
|
190
|
-
empty:
|
|
190
|
+
empty: i.text.trim() === ""
|
|
191
191
|
}),
|
|
192
|
-
"aria-selected":
|
|
192
|
+
"aria-selected": s.isCurrentValue(i.id),
|
|
193
193
|
"line-height": d.optionLineHeight,
|
|
194
|
-
selected:
|
|
195
|
-
invalid:
|
|
196
|
-
special:
|
|
194
|
+
selected: s.isCurrentValue(i.id),
|
|
195
|
+
invalid: i.invalid,
|
|
196
|
+
special: i.special,
|
|
197
197
|
disabled: l.disabled,
|
|
198
|
-
onClick: (b) => !l.disabled &&
|
|
199
|
-
onFocus: (b) => !l.disabled &&
|
|
198
|
+
onClick: (b) => !l.disabled && s.setSelected(i.id, r),
|
|
199
|
+
onFocus: (b) => !l.disabled && s.setSelected(i.id, r)
|
|
200
200
|
}, null, 8, ["id", "style", "text", "title", "class", "aria-selected", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onFocus"]))), 128))
|
|
201
201
|
], 44, k)
|
|
202
202
|
], 2);
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const z = /* @__PURE__ */ L(K, [["render", D], ["__scopeId", "data-v-ef9a5a49"]]), N = /* @__PURE__ */ x({
|
|
205
205
|
__name: "SingleSelectListBoxControl",
|
|
206
206
|
props: {
|
|
207
207
|
control: {},
|
|
@@ -214,20 +214,17 @@ const D = /* @__PURE__ */ L(K, [["render", A], ["__scopeId", "data-v-ef9a5a49"]]
|
|
|
214
214
|
},
|
|
215
215
|
setup(e) {
|
|
216
216
|
const t = e, { possibleValues: l } = S(g(t, "control"));
|
|
217
|
-
return (n, d) => {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
"onUpdate:modelValue": n.changeValue
|
|
229
|
-
}, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"])) : v("", !0);
|
|
230
|
-
};
|
|
217
|
+
return (n, d) => o(l) ? (a(), f(o(z), {
|
|
218
|
+
key: 0,
|
|
219
|
+
id: n.labelForId,
|
|
220
|
+
"possible-values": o(l),
|
|
221
|
+
disabled: n.disabled,
|
|
222
|
+
"model-value": n.control.data,
|
|
223
|
+
"is-valid": n.isValid,
|
|
224
|
+
ariaLabel: n.control.label,
|
|
225
|
+
size: n.control.uischema.options?.size,
|
|
226
|
+
"onUpdate:modelValue": n.changeValue
|
|
227
|
+
}, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"])) : v("", !0);
|
|
231
228
|
}
|
|
232
229
|
});
|
|
233
230
|
export {
|