@knime/jsonforms 1.21.16 → 1.21.17
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 +6 -0
- package/dist/AnyOfTwinlist-SXwBBRp2.js +23 -0
- package/dist/CheckboxControl-CbWn843V.js +40 -0
- package/dist/CheckboxesControl-BiQOMrsp.js +39 -0
- package/dist/{ColorControl-wEr-pQ4g.js → ColorControl-B_mQdOCs.js} +10 -8
- package/dist/{ColorPreviewControl-B7aXaak-.js → ColorPreviewControl-BREwhSO9.js} +28 -28
- package/dist/ComboBoxControl-BIZlnizm.js +39 -0
- package/dist/DateControl-vkwY-8Qy.js +44 -0
- package/dist/DateTimeControl-CtXV6_D2.js +80 -0
- package/dist/DateTimeFormatPickerControl-a7MPaNFN.js +34 -0
- package/dist/{DateTimeFormatPickerWithTypeControl-BVG_BSaN.js → DateTimeFormatPickerWithTypeControl-B9Nu0dh1.js} +18 -17
- package/dist/DropdownControl-BUwovb4K.js +32 -0
- package/dist/{ExecutorCoresControl-Cphh4q2c.js → ExecutorCoresControl-DN-1o1XJ.js} +10 -9
- package/dist/{ExecutorMemoryControl-BQDSkKjf.js → ExecutorMemoryControl-UzqzP4hI.js} +9 -8
- package/dist/{FileUploadControl-CnPXEafs.js → FileUploadControl-WC8TFQHe.js} +46 -45
- package/dist/{GridSelectionControl-093qWj_x.js → GridSelectionControl-BgqT1t9d.js} +24 -23
- package/dist/{HorizontalLayout-D07DfljM.js → HorizontalLayout-CESRA3YR.js} +6 -6
- package/dist/{IntegerControl-D0qSSA_X.js → IntegerControl-DKXN0mcE.js} +5 -4
- package/dist/IntervalControl-BswGPjcV.js +51 -0
- package/dist/LinkControl-DTqOfnTg.js +35 -0
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM.js} +1 -1
- package/dist/ManualTwinlistControl-CoZdPu6n.js +74 -0
- package/dist/{MultiSelectListBoxControl-qdxrfyqT.js → MultiSelectListBoxControl-CjM94miu.js} +53 -52
- package/dist/{MultimodeTwinlistControl-DKNf9s6C.js → MultimodeTwinlistControl-NMnPBn6a.js} +1 -1
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-mQFRHgGM.js +159 -0
- package/dist/{NameFilter-DxsfvMYP.js → NameFilter-DuVJG0SF.js} +7 -6
- package/dist/{NumberControl-gRIAl0Xw.js → NumberControl-NMJmxuze.js} +7 -6
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8.js +52 -0
- package/dist/{OneOfDropdown-6EW73QQp.js → OneOfDropdown-CwJemyYo.js} +13 -11
- package/dist/{RadioButtonsWithDescriptionControl-DDdnwXUW.js → RadioButtonsWithDescriptionControl-BK3UCreL.js} +15 -15
- package/dist/{RadioControl-BOGJkSzd.js → RadioControl-ts1-JozG.js} +5 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt.js +57 -0
- package/dist/{ResourceControlBase-D-oG-tP4.js → ResourceControlBase-FDiyHyQi.js} +18 -15
- package/dist/{RichTextControl-FgGsWYtG.js → RichTextControl-DH6GqUeF.js} +4 -3
- package/dist/{SectionHeading-xMNeMcnS.js → SectionHeading-DIAFnjCM.js} +1 -1
- package/dist/{SectionLayout-Bo11XVly.js → SectionLayout-Cb3_L9Te.js} +3 -3
- package/dist/{SettingsSubPanel-D_FDP5Zc.js → SettingsSubPanel-BuxORlJO.js} +1 -1
- package/dist/{SettingsSubPanelLayout-Dp_jLbsR.js → SettingsSubPanelLayout-DruWJjQA.js} +4 -4
- package/dist/{SimpleButtonControl-QdWssOCJ.js → SimpleButtonControl-BeRnF6lP.js} +13 -13
- package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js} +5294 -5346
- package/dist/{SimpleTwinlistControl-CAaKpaUA.js → SimpleTwinlistControl-CnBe4qsI.js} +6 -5
- package/dist/{SingleSelectControl-D7D5AanU.js → SingleSelectControl-C4Qzk2Ki.js} +21 -19
- package/dist/{SingleSelectListBoxControl-XeWCleLY.js → SingleSelectListBoxControl-sLe2Y67h.js} +16 -15
- package/dist/SortListControl-ChpYm3CZ.js +105 -0
- package/dist/{StyledListItem-CjOv-VlL.js → StyledListItem-BJEJoIzr.js} +1 -1
- package/dist/{TeamAndSpacesControl-DFrotXG1.js → TeamAndSpacesControl-7ZXPUwBb.js} +12 -11
- package/dist/{TeamResourceControl-BnBXHcn9.js → TeamResourceControl-BZDXMRLZ.js} +12 -11
- package/dist/{TextAreaControl-9YsuIVg_.js → TextAreaControl-BDGtgWys.js} +10 -8
- package/dist/{TextControl-BrUMvx4G.js → TextControl-8jfyOJKb.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4BT0xCnX.js → TextControl.vue_vue_type_script_setup_true_lang--8lz3nbO.js} +16 -14
- package/dist/{TimeControl-DvzIDb-2.js → TimeControl-Dvt5U7xN.js} +28 -26
- package/dist/{TimeframesControl-2GAc0ndD.js → TimeframesControl-DcUxC3kX.js} +7 -6
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-Chqnf11f.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N.js} +14 -11
- package/dist/{TypedStringFilter-mklK-qwG.js → TypedStringFilter-Cx8OCQcE.js} +5 -4
- package/dist/{ValueSwitchControl-BOUlFthR.js → ValueSwitchControl-1ax1yKbk.js} +6 -5
- package/dist/{VerticalLayout-u04mODMq.js → VerticalLayout-DnyoqTeh.js} +2 -2
- package/dist/{VerticalLayoutBase-rWbtLYJT.js → VerticalLayoutBase-BS5IpgON.js} +2 -2
- package/dist/ZonedDateTimeControl-mIIRwaHz.js +79 -0
- package/dist/{_Uint8Array-S1XaShiS.js → _Uint8Array-CsgDtogS.js} +12 -12
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +41 -42
- 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/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/testing.js +3 -3
- package/dist/{toString-DXjInt1t.js → toString-hCFROtg1.js} +1 -1
- package/dist/{useBuiltinValidations-CFNcCpco.js → useBuiltinValidations-Cfw3JlJf.js} +1 -1
- package/dist/{usePossibleValues-yDswh8Qc.js → usePossibleValues-CtPV4Cjp.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-BSnLQI_Q.js → useUnknownValuesInTwinlist-BCbqJg7j.js} +1 -1
- package/package.json +1 -1
- 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/SortListControl-kjhkdRwC.js +0 -103
- package/dist/ZonedDateTimeControl-BzV5ZuYf.js +0 -77
- 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/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as s, openBlock as p, createBlock as t, mergeProps as r, unref as a } from "vue";
|
|
2
|
+
import { o as l } from "./index-Blg1O3Fz.js";
|
|
3
|
+
import { _ as i } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N.js";
|
|
4
|
+
const d = /* @__PURE__ */ s({
|
|
5
|
+
__name: "AnyOfTwinlist",
|
|
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 o = e.control.schema.anyOf.map(l);
|
|
18
|
+
return (n, u) => (p(), t(i, r(n.$props, { "possible-values": a(o) }), null, 16, ["possible-values"]));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
d as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as r, ref as s, openBlock as u, createElementBlock as d, createElementVNode as c, createVNode as i, unref as b, renderSlot as a } from "vue";
|
|
2
|
+
import { $ as v, _ as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
const f = { class: "checkbox-container" }, x = /* @__PURE__ */ r({
|
|
4
|
+
__name: "CheckboxControl",
|
|
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(e) {
|
|
16
|
+
const t = s(!1);
|
|
17
|
+
return (n, o) => (u(), d("div", {
|
|
18
|
+
class: "checkbox-input",
|
|
19
|
+
onMouseover: o[1] || (o[1] = (l) => t.value = !0),
|
|
20
|
+
onMouseleave: o[2] || (o[2] = (l) => t.value = !1)
|
|
21
|
+
}, [
|
|
22
|
+
c("div", f, [
|
|
23
|
+
i(b(v), {
|
|
24
|
+
class: "checkbox",
|
|
25
|
+
disabled: e.disabled,
|
|
26
|
+
"model-value": e.control.data,
|
|
27
|
+
label: e.control.label,
|
|
28
|
+
error: e.error,
|
|
29
|
+
"sub-text": e.subText,
|
|
30
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.changeValue(l === !0))
|
|
31
|
+
}, null, 8, ["disabled", "model-value", "label", "error", "sub-text"]),
|
|
32
|
+
a(n.$slots, "icon", {}, void 0, !0)
|
|
33
|
+
]),
|
|
34
|
+
a(n.$slots, "buttons", { hover: t.value }, void 0, !0)
|
|
35
|
+
], 32));
|
|
36
|
+
}
|
|
37
|
+
}), p = /* @__PURE__ */ m(x, [["__scopeId", "data-v-5bf70a5e"]]);
|
|
38
|
+
export {
|
|
39
|
+
p as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as u, computed as l, ref as r, toRef as c, onMounted as i, openBlock as d, createBlock as m, unref as p, createCommentVNode as b } from "vue";
|
|
2
|
+
import { I as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
import { o as h } from "./index-Blg1O3Fz.js";
|
|
4
|
+
import { u as v } from "./usePossibleValues-CtPV4Cjp.js";
|
|
5
|
+
const F = /* @__PURE__ */ u({
|
|
6
|
+
__name: "CheckboxesControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(e) {
|
|
18
|
+
const o = e, n = l(
|
|
19
|
+
() => o.control.uischema.options?.checkboxLayout
|
|
20
|
+
), t = r(null), { possibleValues: s } = v(c(o, "control")), a = l(() => t.value ?? s.value);
|
|
21
|
+
return i(() => {
|
|
22
|
+
t.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(h) : null;
|
|
23
|
+
}), (x, y) => a.value ? (d(), m(p(f), {
|
|
24
|
+
key: 0,
|
|
25
|
+
id: e.labelForId,
|
|
26
|
+
class: "checkboxes",
|
|
27
|
+
"possible-values": a.value,
|
|
28
|
+
alignment: n.value,
|
|
29
|
+
disabled: e.disabled,
|
|
30
|
+
"model-value": e.control.data,
|
|
31
|
+
error: e.error,
|
|
32
|
+
"sub-text": e.subText,
|
|
33
|
+
"onUpdate:modelValue": e.changeValue
|
|
34
|
+
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "error", "sub-text", "onUpdate:modelValue"])) : b("", !0);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
F as default
|
|
39
|
+
};
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { defineComponent as a, openBlock as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as a, openBlock as o, createBlock as l, unref as t } from "vue";
|
|
2
|
+
import { M as n } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
const c = /* @__PURE__ */ a({
|
|
4
4
|
__name: "ColorControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
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
15
|
setup(e) {
|
|
15
|
-
return (
|
|
16
|
+
return (r, d) => (o(), l(t(n), {
|
|
16
17
|
id: e.labelForId,
|
|
17
18
|
ariaLabel: e.control.label,
|
|
18
19
|
"model-value": e.control.data ?? "",
|
|
19
20
|
disabled: e.disabled,
|
|
20
|
-
error:
|
|
21
|
+
error: e.error,
|
|
22
|
+
"sub-text": e.subText,
|
|
21
23
|
"onUpdate:modelValue": e.changeValue
|
|
22
|
-
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "onUpdate:modelValue"]));
|
|
24
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text", "onUpdate:modelValue"]));
|
|
23
25
|
}
|
|
24
26
|
});
|
|
25
27
|
export {
|
|
26
|
-
|
|
28
|
+
c as default
|
|
27
29
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as u, openBlock as e, createElementBlock as o, createVNode as y, unref as p, computed as s, normalizeStyle as m, createBlock as d, Fragment as f, renderList as k } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { J as w, _ as v, u as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
3
|
const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
|
|
4
4
|
__name: "ColorPreviewEmptyState",
|
|
5
|
-
setup(
|
|
5
|
+
setup(r) {
|
|
6
6
|
return (t, l) => (e(), o("div", P, [
|
|
7
7
|
y(p(w), { headline: "No colors" })
|
|
8
8
|
]));
|
|
9
9
|
}
|
|
10
|
-
}), g = /* @__PURE__ */ v($, [["__scopeId", "data-v-7a09310d"]]), x = { class: "gradient-preview" },
|
|
10
|
+
}), g = /* @__PURE__ */ v($, [["__scopeId", "data-v-7a09310d"]]), x = { class: "gradient-preview" }, b = /* @__PURE__ */ u({
|
|
11
11
|
__name: "GradientPreview",
|
|
12
12
|
props: {
|
|
13
13
|
gradient: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const t =
|
|
17
|
-
const
|
|
18
|
-
return
|
|
15
|
+
setup(r) {
|
|
16
|
+
const t = r, l = s(() => t.gradient.colors.length > 0), a = s(() => {
|
|
17
|
+
const n = t.gradient.stops;
|
|
18
|
+
return n === null ? t.gradient.colors.join(", ") : t.gradient.colors.map((i, _) => `${i} ${n[_]}%`).join(", ");
|
|
19
19
|
}), c = s(
|
|
20
|
-
() => `linear-gradient(to right in lab, ${
|
|
20
|
+
() => `linear-gradient(to right in lab, ${a.value})`
|
|
21
21
|
);
|
|
22
|
-
return (
|
|
22
|
+
return (n, i) => (e(), o("div", x, [
|
|
23
23
|
l.value ? (e(), o("div", {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "gradient-bar",
|
|
@@ -27,24 +27,24 @@ const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
|
|
|
27
27
|
}, null, 4)) : (e(), d(g, { key: 1 }))
|
|
28
28
|
]));
|
|
29
29
|
}
|
|
30
|
-
}),
|
|
30
|
+
}), S = /* @__PURE__ */ v(b, [["__scopeId", "data-v-8a745225"]]), B = { class: "palette-preview" }, F = 8, E = /* @__PURE__ */ u({
|
|
31
31
|
__name: "PalettePreview",
|
|
32
32
|
props: {
|
|
33
33
|
palette: {}
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const t =
|
|
35
|
+
setup(r) {
|
|
36
|
+
const t = r, l = s(() => t.palette.colors.length > 0), a = s(
|
|
37
37
|
() => Math.max(1, Math.min(F, t.palette.colors.length))
|
|
38
38
|
), c = s(() => ({
|
|
39
|
-
gridTemplateColumns: `repeat(${
|
|
39
|
+
gridTemplateColumns: `repeat(${a.value}, minmax(0, 1fr))`
|
|
40
40
|
}));
|
|
41
|
-
return (
|
|
41
|
+
return (n, i) => (e(), o("div", B, [
|
|
42
42
|
l.value ? (e(), o("div", {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "palette-grid",
|
|
45
45
|
style: m(c.value)
|
|
46
46
|
}, [
|
|
47
|
-
(e(!0), o(f, null, k(
|
|
47
|
+
(e(!0), o(f, null, k(r.palette.colors, (_, h) => (e(), o("div", {
|
|
48
48
|
key: h,
|
|
49
49
|
class: "color-cell",
|
|
50
50
|
style: m({ background: _ })
|
|
@@ -55,7 +55,7 @@ const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
|
|
|
55
55
|
}))
|
|
56
56
|
]));
|
|
57
57
|
}
|
|
58
|
-
}),
|
|
58
|
+
}), G = /* @__PURE__ */ v(E, [["__scopeId", "data-v-ad83046f"]]), I = { class: "color-preview" }, V = /* @__PURE__ */ u({
|
|
59
59
|
__name: "ColorPreviewControl",
|
|
60
60
|
props: {
|
|
61
61
|
control: {},
|
|
@@ -63,27 +63,27 @@ const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
|
|
|
63
63
|
changeValue: { type: Function },
|
|
64
64
|
disabled: { type: Boolean },
|
|
65
65
|
labelForId: {},
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
error: { type: Boolean },
|
|
67
|
+
subText: {},
|
|
68
68
|
onRegisterValidation: { type: Function }
|
|
69
69
|
},
|
|
70
|
-
setup(
|
|
71
|
-
const t =
|
|
70
|
+
setup(r) {
|
|
71
|
+
const t = r, l = s(
|
|
72
72
|
() => t.control.uischema
|
|
73
|
-
),
|
|
73
|
+
), a = C(l, "previewColors", {
|
|
74
74
|
colors: []
|
|
75
|
-
}), c = (
|
|
76
|
-
return (
|
|
77
|
-
c(p(
|
|
75
|
+
}), c = (n) => !("stops" in n);
|
|
76
|
+
return (n, i) => (e(), o("div", I, [
|
|
77
|
+
c(p(a)) ? (e(), d(G, {
|
|
78
78
|
key: 0,
|
|
79
|
-
palette: p(
|
|
80
|
-
}, null, 8, ["palette"])) : (e(), d(
|
|
79
|
+
palette: p(a)
|
|
80
|
+
}, null, 8, ["palette"])) : (e(), d(S, {
|
|
81
81
|
key: 1,
|
|
82
|
-
gradient: p(
|
|
82
|
+
gradient: p(a)
|
|
83
83
|
}, null, 8, ["gradient"]))
|
|
84
84
|
]));
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
V as default
|
|
89
89
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as r, toRef as c, computed as a, openBlock as d, createBlock as b, unref as u } from "vue";
|
|
2
|
+
import { N as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
import { u as v } from "./usePossibleValues-CtPV4Cjp.js";
|
|
4
|
+
const g = /* @__PURE__ */ r({
|
|
5
|
+
__name: "ComboBoxControl",
|
|
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 l = e, { possibleValues: o } = v(c(l, "control")), t = a(
|
|
18
|
+
() => o.value === null || o.value.length === 0
|
|
19
|
+
), s = a(
|
|
20
|
+
() => l.control.uischema.providedOptions?.includes("possibleValues") || l.control.uischema.options?.possibleValues !== void 0
|
|
21
|
+
), i = a(
|
|
22
|
+
() => l.disabled || t.value && s.value
|
|
23
|
+
);
|
|
24
|
+
return (p, V) => (d(), b(u(m), {
|
|
25
|
+
id: e.labelForId,
|
|
26
|
+
"model-value": e.control.data,
|
|
27
|
+
"allow-new-values": !s.value,
|
|
28
|
+
ariaLabel: e.control.label,
|
|
29
|
+
disabled: i.value,
|
|
30
|
+
"possible-values": t.value ? e.control.data.map((n) => ({ id: n, text: n })) : u(o),
|
|
31
|
+
error: e.error,
|
|
32
|
+
"sub-text": e.subText,
|
|
33
|
+
"onUpdate:modelValue": e.changeValue
|
|
34
|
+
}, null, 8, ["id", "model-value", "allow-new-values", "ariaLabel", "disabled", "possible-values", "error", "sub-text", "onUpdate:modelValue"]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
g as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as l, computed as i, openBlock as d, createBlock as c, unref as u } from "vue";
|
|
2
|
+
import { R as s } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
import { p as m } from "./plainDateTimeUtils-CR0UhpkD.js";
|
|
4
|
+
import { U as p } from "./classApi-CHpAZrj3.js";
|
|
5
|
+
const y = /* @__PURE__ */ l({
|
|
6
|
+
__name: "DateControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(t) {
|
|
18
|
+
const a = t, o = (e) => {
|
|
19
|
+
if (!e)
|
|
20
|
+
return null;
|
|
21
|
+
try {
|
|
22
|
+
return p.PlainDate.from(e);
|
|
23
|
+
} catch {
|
|
24
|
+
return m.fromString(e).date;
|
|
25
|
+
}
|
|
26
|
+
}, r = i(
|
|
27
|
+
() => o(a.control.data)
|
|
28
|
+
), n = (e) => {
|
|
29
|
+
a.changeValue(e?.toString() ?? "");
|
|
30
|
+
};
|
|
31
|
+
return (e, b) => (d(), c(u(s), {
|
|
32
|
+
id: t.labelForId,
|
|
33
|
+
ariaLabel: a.control.label,
|
|
34
|
+
"model-value": r.value,
|
|
35
|
+
disabled: t.disabled,
|
|
36
|
+
error: t.error,
|
|
37
|
+
"sub-text": t.subText,
|
|
38
|
+
"onUpdate:modelValue": n
|
|
39
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text"]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
y as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { defineComponent as D, computed as r, openBlock as d, createElementBlock as T, normalizeClass as V, createVNode as C, unref as a, createBlock as U, createCommentVNode as B } from "vue";
|
|
2
|
+
import { R as F, T as k, _ as w } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
import { u as L } from "./usePlainDateTimeBatch-Bd2G-GY9.js";
|
|
4
|
+
import { p as i } from "./plainDateTimeUtils-CR0UhpkD.js";
|
|
5
|
+
import { U as P } from "./classApi-CHpAZrj3.js";
|
|
6
|
+
const $ = /* @__PURE__ */ D({
|
|
7
|
+
__name: "DateTimeControl",
|
|
8
|
+
props: {
|
|
9
|
+
control: {},
|
|
10
|
+
handleChange: { type: Function },
|
|
11
|
+
changeValue: { type: Function },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
15
|
+
onRegisterValidation: { type: Function },
|
|
16
|
+
labelForId: {}
|
|
17
|
+
},
|
|
18
|
+
setup(t) {
|
|
19
|
+
const o = t, n = r(() => o.control.uischema.options), l = r(() => n.value?.showTime ?? !0), s = r(
|
|
20
|
+
() => i.getMaxGranularity(n.value)
|
|
21
|
+
), m = (e) => {
|
|
22
|
+
if (typeof e != "string" || e === "")
|
|
23
|
+
return null;
|
|
24
|
+
try {
|
|
25
|
+
return P.PlainDate.from(e);
|
|
26
|
+
} catch {
|
|
27
|
+
return i.fromString(e).date;
|
|
28
|
+
}
|
|
29
|
+
}, c = r(
|
|
30
|
+
() => m(n.value?.minimum)
|
|
31
|
+
), g = r(
|
|
32
|
+
() => m(n.value?.maximum)
|
|
33
|
+
), {
|
|
34
|
+
datePart: p,
|
|
35
|
+
timePart: b,
|
|
36
|
+
granularity: y,
|
|
37
|
+
onDateChange: f,
|
|
38
|
+
onTimeChange: x,
|
|
39
|
+
onGranularityChange: h
|
|
40
|
+
} = L({
|
|
41
|
+
getDateTime: () => o.control.data,
|
|
42
|
+
commit: (e, u, v) => {
|
|
43
|
+
if (!l.value) {
|
|
44
|
+
o.changeValue(e === null ? "" : e.toString());
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
o.changeValue(i.toString(e, u, v));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return (e, u) => (d(), T("div", {
|
|
51
|
+
class: V(["date-time-row", { "date-only": !l.value }])
|
|
52
|
+
}, [
|
|
53
|
+
C(a(F), {
|
|
54
|
+
id: t.labelForId,
|
|
55
|
+
ariaLabel: `${o.control.label} date`,
|
|
56
|
+
"model-value": a(p),
|
|
57
|
+
disabled: t.disabled,
|
|
58
|
+
error: t.error,
|
|
59
|
+
"sub-text": t.subText,
|
|
60
|
+
"min-date": c.value,
|
|
61
|
+
"max-date": g.value,
|
|
62
|
+
"onUpdate:modelValue": a(f)
|
|
63
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text", "min-date", "max-date", "onUpdate:modelValue"]),
|
|
64
|
+
l.value ? (d(), U(a(k), {
|
|
65
|
+
key: 0,
|
|
66
|
+
ariaLabel: `${o.control.label} time`,
|
|
67
|
+
"model-value": a(b),
|
|
68
|
+
granularity: a(y),
|
|
69
|
+
"max-granularity": s.value,
|
|
70
|
+
disabled: t.disabled,
|
|
71
|
+
error: t.error,
|
|
72
|
+
"onUpdate:modelValue": a(x),
|
|
73
|
+
"onUpdate:granularity": a(h)
|
|
74
|
+
}, null, 8, ["ariaLabel", "model-value", "granularity", "max-granularity", "disabled", "error", "onUpdate:modelValue", "onUpdate:granularity"])) : B("", !0)
|
|
75
|
+
], 2));
|
|
76
|
+
}
|
|
77
|
+
}), R = /* @__PURE__ */ w($, [["__scopeId", "data-v-e52553e7"]]);
|
|
78
|
+
export {
|
|
79
|
+
R as default
|
|
80
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as s, computed as a, openBlock as u, createBlock as c, unref as l } from "vue";
|
|
2
|
+
import { u as i, O as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
const h = /* @__PURE__ */ s({
|
|
4
|
+
__name: "DateTimeFormatPickerControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const o = e, t = a(
|
|
17
|
+
() => o.control.uischema
|
|
18
|
+
), n = a(() => t.value.options), r = a(() => n.value?.allowedFormats), d = i(t, "dateTimeFormats", []);
|
|
19
|
+
return (b, f) => (u(), c(l(m), {
|
|
20
|
+
id: e.labelForId,
|
|
21
|
+
ariaLabel: e.control.label,
|
|
22
|
+
"model-value": o.control.data,
|
|
23
|
+
disabled: e.disabled,
|
|
24
|
+
"allowed-formats": r.value,
|
|
25
|
+
"all-default-formats": l(d) ?? [],
|
|
26
|
+
error: e.error,
|
|
27
|
+
"sub-text": e.subText,
|
|
28
|
+
"onUpdate:modelValue": e.changeValue
|
|
29
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "sub-text", "onUpdate:modelValue"]));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
h as default
|
|
34
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as m, createElementBlock as f, createElementVNode as v, h as X, defineComponent as
|
|
2
|
-
import { _ as $,
|
|
1
|
+
import { openBlock as m, createElementBlock as f, createElementVNode as v, h as X, defineComponent as I, createBlock as M, unref as T, Fragment as A, renderList as W, normalizeClass as k, toDisplayString as C, renderSlot as Z, createCommentVNode as S, resolveComponent as Y, withCtx as K, normalizeProps as ee, guardReactiveProps as te, useCssVars as le, computed as g, ref as w, watch as R, reactive as oe, onMounted as ae, nextTick as H, onUnmounted as se, createVNode as x, useModel as ne, withDirectives as ie, vModelText as de, normalizeStyle as re, mergeModels as ue } from "vue";
|
|
2
|
+
import { _ as $, P as ce, Q as me, u as pe } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
3
|
import { u as ve, F as fe, a as ye, b as he, o as ge, s as Te, f as be } from "./useDropdownNavigation-CdrbT-CQ.js";
|
|
4
4
|
const we = {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -18,27 +18,27 @@ const Ee = { render: Ve }, Fe = (e, a) => ({
|
|
|
18
18
|
const n = e.render({}, []), r = X("title", a);
|
|
19
19
|
return r.ns = "svg", n.children.unshift(r), n;
|
|
20
20
|
}
|
|
21
|
-
}), _e = /* @__PURE__ */
|
|
21
|
+
}), _e = /* @__PURE__ */ I({
|
|
22
22
|
__name: "LoadingIcon",
|
|
23
23
|
setup(e) {
|
|
24
24
|
const a = Fe(Ee, "Loading…");
|
|
25
25
|
return (n, r) => (m(), M(T(a)));
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
27
|
+
}), xe = /* @__PURE__ */ $(_e, [["__scopeId", "data-v-6b552b81"]]), Ie = {
|
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
29
|
fill: "none",
|
|
30
30
|
"stroke-linejoin": "round",
|
|
31
31
|
viewBox: "0 0 32 32"
|
|
32
32
|
};
|
|
33
33
|
function $e(e, a) {
|
|
34
|
-
return m(), f("svg",
|
|
34
|
+
return m(), f("svg", Ie, [...a[0] || (a[0] = [
|
|
35
35
|
v("path", {
|
|
36
36
|
fill: "#000",
|
|
37
37
|
d: "M2 3.842v-.5a.5.5 0 0 0-.5.5zm22.611 0h.5a.5.5 0 0 0-.5-.5zm-.5 7.48a.5.5 0 1 0 1 0zM2 21.43h-.5a.5.5 0 0 0 .5.5zm10.298.5a.5.5 0 1 0 0-1zm5.283 8.222h-.5a.5.5 0 0 0 .765.424zm3.278-2.046.265.424a.5.5 0 0 0 .235-.424zm0-5.87-.366-.34a.5.5 0 0 0-.134.34zM27.613 15l.366.341a.5.5 0 0 0-.366-.841zm-10.032 7.235h.5a.5.5 0 0 0-.128-.334zM11.063 15v-.5a.5.5 0 0 0-.372.835zm-.69-9.483V2h-1v3.517zM16.155 2v3.517h1V2zM2 4.342h22.611v-1H2zm22.111-.5v7.48h1v-7.48zM2.5 21.43V3.842h-1V21.43zM2 8.362h22.611v-1H2zM12.298 20.93h-6.81v1h6.81zm-6.81 0H2v1h3.488zm12.358 9.646 3.278-2.046-.53-.849-3.278 2.047zm3.513-2.47v-5.87h-1v5.87zm-.135-5.528 6.755-7.236-.731-.682-6.755 7.235zm-4.143-.342v7.916h1v-7.916zm.872-.334-6.519-7.236-.743.67 6.519 7.235zm-6.89-6.401h16.55v-1h-16.55z"
|
|
38
38
|
}, null, -1)
|
|
39
39
|
])]);
|
|
40
40
|
}
|
|
41
|
-
const ke = { render: $e }, De =
|
|
41
|
+
const ke = { render: $e }, De = I({
|
|
42
42
|
name: "BaseRadioButtons",
|
|
43
43
|
props: {
|
|
44
44
|
id: {
|
|
@@ -107,7 +107,7 @@ function Be(e, a, n, r, V, E) {
|
|
|
107
107
|
], 2))), 128))
|
|
108
108
|
], 8, Me);
|
|
109
109
|
}
|
|
110
|
-
const Re = /* @__PURE__ */ $(De, [["render", Be], ["__scopeId", "data-v-2bbebb4b"]]), Ae =
|
|
110
|
+
const Re = /* @__PURE__ */ $(De, [["render", Be], ["__scopeId", "data-v-2bbebb4b"]]), Ae = I({
|
|
111
111
|
name: "ValueSwitch",
|
|
112
112
|
components: {
|
|
113
113
|
BaseRadioButtons: Re
|
|
@@ -168,7 +168,7 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
168
168
|
}, Ue = {
|
|
169
169
|
key: 1,
|
|
170
170
|
class: "no-formats-available"
|
|
171
|
-
}, He = ["onClick"], Le = { class: "format-pattern" }, We = { class: "format-preview" }, L = 1, Ze = /* @__PURE__ */
|
|
171
|
+
}, He = ["onClick"], Le = { class: "format-pattern" }, We = { class: "format-preview" }, L = 1, Ze = /* @__PURE__ */ I({
|
|
172
172
|
__name: "DateTimeFormatPickerPopover",
|
|
173
173
|
props: {
|
|
174
174
|
allFormats: {},
|
|
@@ -362,7 +362,7 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
362
362
|
"possible-values": E.value,
|
|
363
363
|
class: "filter-switch"
|
|
364
364
|
}, null, 8, ["modelValue", "possible-values"])) : S("", !0),
|
|
365
|
-
|
|
365
|
+
x(z, {
|
|
366
366
|
id: "selectedFormatStandard",
|
|
367
367
|
ref: "standardSwitchRef",
|
|
368
368
|
modelValue: d.value,
|
|
@@ -383,7 +383,7 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
383
383
|
(...o) => T(N) && T(N)(...o))
|
|
384
384
|
}, [
|
|
385
385
|
i.value === null ? (m(), f("div", Oe, [
|
|
386
|
-
|
|
386
|
+
x(xe, { class: "loading-spinner" })
|
|
387
387
|
])) : i.value.length === 0 ? (m(), f("div", Ue, " No formats available ")) : (m(!0), f(A, { key: 2 }, W(i.value, (o, c) => (m(), f("div", {
|
|
388
388
|
key: F(o),
|
|
389
389
|
ref_for: !0,
|
|
@@ -408,7 +408,7 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
408
408
|
}), Ke = /* @__PURE__ */ $(Ze, [["__scopeId", "data-v-8bb40d8b"]]), je = { class: "input-fields" }, Qe = ["disabled"], qe = {
|
|
409
409
|
key: 0,
|
|
410
410
|
class: "invalid-marker"
|
|
411
|
-
}, Ge = ["disabled"], Je = {}, Xe = /* @__PURE__ */
|
|
411
|
+
}, Ge = ["disabled"], Je = {}, Xe = /* @__PURE__ */ I({
|
|
412
412
|
...Je,
|
|
413
413
|
__name: "DateTimeFormatInput",
|
|
414
414
|
props: /* @__PURE__ */ ue({
|
|
@@ -490,7 +490,7 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
490
490
|
disabled: e.disabled,
|
|
491
491
|
onClick: h[2] || (h[2] = (F) => d.value = !d.value)
|
|
492
492
|
}, [
|
|
493
|
-
|
|
493
|
+
x(T(ke))
|
|
494
494
|
], 10, Ge)
|
|
495
495
|
])
|
|
496
496
|
], 2),
|
|
@@ -501,7 +501,7 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
501
501
|
class: "popover",
|
|
502
502
|
style: re(T(i))
|
|
503
503
|
}, [
|
|
504
|
-
|
|
504
|
+
x(Ke, {
|
|
505
505
|
"all-formats": e.allDefaultFormats,
|
|
506
506
|
"initial-selected-pattern": n.value.format,
|
|
507
507
|
"selected-type": n.value.temporalType,
|
|
@@ -512,14 +512,15 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
512
512
|
], 4)) : S("", !0)
|
|
513
513
|
]));
|
|
514
514
|
}
|
|
515
|
-
}), Ye = /* @__PURE__ */ $(Xe, [["__scopeId", "data-v-1577d5ce"]]), et = ["id"], tt = /* @__PURE__ */
|
|
515
|
+
}), Ye = /* @__PURE__ */ $(Xe, [["__scopeId", "data-v-1577d5ce"]]), et = ["id"], tt = /* @__PURE__ */ I({
|
|
516
516
|
__name: "DateTimeFormatPickerWithTypeControl",
|
|
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
|
},
|
|
@@ -561,14 +562,14 @@ const z = /* @__PURE__ */ $(Ae, [["render", ze], ["__scopeId", "data-v-83231815"
|
|
|
561
562
|
id: e.labelForId,
|
|
562
563
|
class: "control-container"
|
|
563
564
|
}, [
|
|
564
|
-
|
|
565
|
+
x(T(z), {
|
|
565
566
|
modelValue: d.value,
|
|
566
567
|
"onUpdate:modelValue": i[0] || (i[0] = (y) => d.value = y),
|
|
567
568
|
compact: "",
|
|
568
569
|
"possible-values": s,
|
|
569
570
|
disabled: e.disabled
|
|
570
571
|
}, null, 8, ["modelValue", "disabled"]),
|
|
571
|
-
|
|
572
|
+
x(T(Ye), {
|
|
572
573
|
modelValue: u.value,
|
|
573
574
|
"onUpdate:modelValue": i[1] || (i[1] = (y) => u.value = y),
|
|
574
575
|
compact: "",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as l, toRef as t, openBlock as n, createBlock as r, unref as s } from "vue";
|
|
2
|
+
import { u } from "./usePossibleValues-CtPV4Cjp.js";
|
|
3
|
+
import { _ as d } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM.js";
|
|
4
|
+
const p = /* @__PURE__ */ l({
|
|
5
|
+
__name: "DropdownControl",
|
|
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 o = e, { possibleValues: a } = u(t(o, "control"));
|
|
18
|
+
return (i, c) => (n(), r(d, {
|
|
19
|
+
id: e.labelForId ?? "",
|
|
20
|
+
ariaLabel: e.control.label,
|
|
21
|
+
disabled: e.disabled,
|
|
22
|
+
"model-value": e.control.data ?? "",
|
|
23
|
+
"possible-values": s(a),
|
|
24
|
+
error: e.error,
|
|
25
|
+
"sub-text": e.subText,
|
|
26
|
+
"onUpdate:modelValue": e.changeValue
|
|
27
|
+
}, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "error", "sub-text", "onUpdate:modelValue"]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
p as default
|
|
32
|
+
};
|