@knime/jsonforms 1.14.3 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
- package/dist/{Button-BxuGKyL5.js → Button-B9RSLVI2.js} +9 -8
- package/dist/CheckboxControl-q88fZSZD.js +58 -0
- package/dist/Checkboxes-Bofcg7tl.js +120 -0
- package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-2r1FWcy-.js} +238 -172
- package/dist/DateControl-vnkppn62.js +38 -0
- package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
- package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
- package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
- package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
- package/dist/DateTimeInput-DcwhvMD2.js +11321 -0
- package/dist/Dropdown-D49sEHBa.js +663 -0
- package/dist/DropdownControl-aeEqC-Yg.js +46 -0
- package/dist/HorizontalLayout-D0toQmVl.js +39 -0
- package/dist/{InputField-BYxW_-G3.js → InputField-C_aZPs-f.js} +48 -36
- package/dist/IntegerControl-DAwniqjW.js +33 -0
- package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
- package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
- package/dist/LoadingIcon-RPBUjTO3.js +23 -0
- package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
- package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
- package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CfdPbcn1.js} +105 -86
- package/dist/NameFilter-BV68t_P5.js +37 -0
- package/dist/NumberControl-Dm01CJW9.js +33 -0
- package/dist/NumberControlBase-CN5eTKEm.js +58 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-DWTImcA_.js} +72 -54
- package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
- package/dist/RadioControl-X6HLs9F1.js +36 -0
- package/dist/RadioControlBase-BGUHTIUl.js +111 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-B1mJMs1e.js} +5462 -4668
- package/dist/SectionHeading-B6JkPyMh.js +31 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js +15603 -0
- package/dist/SectionLayout-7pXn4OHo.js +61 -0
- package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
- package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
- package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
- package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
- package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
- package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
- package/dist/SortListControl-CWuxKIEb.js +445 -0
- package/dist/StyledListItem-NqAG7jSw.js +81 -0
- package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
- package/dist/TextControl-w9vrCC1T.js +54 -0
- package/dist/TimeControl-DiNQSV4K.js +46 -0
- package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
- package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
- package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
- package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
- package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
- package/dist/VerticalLayout-DY8gbasK.js +39 -0
- package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
- package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-CWap1NWh.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-D0MXvnuf.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-BvpAzjaz.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-eS-nVNCv.js} +9 -3
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BmOStWql.js} +9 -3
- package/dist/{close-BuY4mhXV.js → close-0dYG2oDA.js} +9 -3
- 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 +133 -110
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-CfchSrLG.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-57Xc2t-6.js +23 -0
- 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/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-C-X8cE7K.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-D0WuEacN.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DTVXBGRC.js +16 -0
- package/package.json +14 -14
- package/dist/AnyOfTwinlist-Cwxtyt0Q.js +0 -22
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/Checkboxes-DIPjJhPO.js +0 -103
- package/dist/CheckboxesControl-5QlPmjwv.js +0 -41
- package/dist/DateControl-CddCObVg.js +0 -29
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/DateTimeFormatInput-bO1zHUyp.js +0 -381
- package/dist/DateTimeFormatPickerControl-Dq25_JV2.js +0 -43
- package/dist/DateTimeFormatPickerWithTypeControl-DZib_x-B.js +0 -79
- package/dist/DateTimeInput-CEYEV8dt.js +0 -11204
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/DropdownControl-BNQKWzTT.js +0 -31
- package/dist/HorizontalLayout-6GwurgkR.js +0 -25
- package/dist/IntegerControl-DZIY-wb_.js +0 -20
- package/dist/IntervalControl-Yts36_MI.js +0 -546
- package/dist/LoadingDropdown-Dw-0WQ8x.js +0 -40
- package/dist/ManualTwinlistControl-C3NnAug1.js +0 -85
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/MultimodeTwinlistControl-B2Jven29.js +0 -470
- package/dist/NameFilter-D0hKO5Fr.js +0 -24
- package/dist/NumberControl-DkeQT1iR.js +0 -20
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/OneOfDropdown-NAgE-mPP.js +0 -34
- package/dist/RadioControl-DjrysNQ_.js +0 -24
- 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/SectionLayout-CJP4sYyB.js +0 -46
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SettingsSubPanelLayout-YBNVPQOD.js +0 -61
- package/dist/SimpleButtonControl-ejyUwJdL.js +0 -61
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/SingleSelectControl-B0JgDv7j.js +0 -58
- package/dist/SingleSelectListBoxControl-ClQOxnxW.js +0 -235
- package/dist/SortListControl-mvJofiWn.js +0 -375
- package/dist/StyledListItem-BXz08pEQ.js +0 -72
- package/dist/TextAreaControl-S4aoqAv1.js +0 -111
- package/dist/TextControl-rJrjrBw8.js +0 -4
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js +0 -50
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TwinlistControlBase-D1l9t7Up.js +0 -40
- package/dist/TwinlistLoadingInfo-CQRx9cEu.js +0 -963
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/ValueSwitch-CUYV7v67.js +0 -131
- package/dist/ValueSwitchControl-IP9SxrUs.js +0 -20
- package/dist/VerticalLayout-D2eQSYgv.js +0 -30
- 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/reload-BVbCGubF.js +0 -17
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/svgWithTitle-Cr3Pu3wr.js +0 -18
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { computed as u } from "vue";
|
|
2
|
+
import { u as o } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
3
|
+
const t = (s) => {
|
|
4
|
+
const e = u(() => s.value.uischema), l = o(e, "possibleValues");
|
|
5
|
+
return { possibleValues: u(() => e.value.providedOptions?.includes("possibleValues") ? l.value : e.value.options?.possibleValues ?? []) };
|
|
6
|
+
}, c = (s) => {
|
|
7
|
+
const e = u(() => s.value.uischema.options);
|
|
8
|
+
return {
|
|
9
|
+
includedLabel: e.value?.includedLabel ?? "Includes",
|
|
10
|
+
excludedLabel: e.value?.excludedLabel ?? "Excludes"
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
c as a,
|
|
15
|
+
t as u
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "Internal JSON Forms integration for frontend KNIME projects",
|
|
5
5
|
"homepage": "https://knime.github.io/webapps-common/",
|
|
6
6
|
"license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
|
|
7
7
|
"author": "KNIME AG, Zurich, Switzerland",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@floating-ui/vue": "1.1.
|
|
10
|
+
"@floating-ui/vue": "1.1.8",
|
|
11
11
|
"@jsonforms/core": "3.4.0",
|
|
12
12
|
"@jsonforms/vue": "3.4.0",
|
|
13
13
|
"@jsonforms/vue-vanilla": "3.4.0",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"focus-trap-vue": "4.0.3",
|
|
16
16
|
"tabbable": "6.2.0",
|
|
17
17
|
"uuid": "10.0.0",
|
|
18
|
-
"@knime/components": "1.
|
|
19
|
-
"@knime/
|
|
20
|
-
"@knime/styles": "1.
|
|
21
|
-
"@knime/
|
|
18
|
+
"@knime/components": "1.34.1",
|
|
19
|
+
"@knime/utils": "1.5.4",
|
|
20
|
+
"@knime/styles": "1.11.0",
|
|
21
|
+
"@knime/rich-text-editor": "1.7.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"consola": "3.x",
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/uuid": "10.0.0",
|
|
29
|
-
"@vitejs/plugin-vue": "^
|
|
29
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
30
30
|
"@vue/test-utils": "2.4.6",
|
|
31
|
-
"consola": "3.2
|
|
31
|
+
"consola": "3.4.2",
|
|
32
32
|
"lodash-es": "4.17.21",
|
|
33
33
|
"modern-normalize": "3.0.1",
|
|
34
34
|
"postcss": "8.4.5",
|
|
35
35
|
"type-fest": "4.26.1",
|
|
36
|
-
"typescript": "^5.
|
|
36
|
+
"typescript": "^5.8.3",
|
|
37
37
|
"v-calendar": "git+https://bitbucket.org/KNIME/v-calendar",
|
|
38
|
-
"vite": "
|
|
39
|
-
"vite-plugin-dts": "4.
|
|
38
|
+
"vite": "7.0.5",
|
|
39
|
+
"vite-plugin-dts": "4.5.4",
|
|
40
40
|
"vite-svg-loader": "5.1.0",
|
|
41
|
-
"vitest": "2.
|
|
42
|
-
"vue": "~3.5.
|
|
43
|
-
"vue-tsc": "
|
|
41
|
+
"vitest": "3.2.4",
|
|
42
|
+
"vue": "~3.5.18",
|
|
43
|
+
"vue-tsc": "3.0.4"
|
|
44
44
|
},
|
|
45
45
|
"exports": {
|
|
46
46
|
".": {
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, openBlock as t, createBlock as p, mergeProps as a, unref as l } from "vue";
|
|
2
|
-
import { o as r } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { T as i } from "./TwinlistControlBase-D1l9t7Up.js";
|
|
4
|
-
const y = /* @__PURE__ */ s({
|
|
5
|
-
__name: "AnyOfTwinlist",
|
|
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(o) {
|
|
16
|
-
const e = o.control.schema.anyOf.map(r);
|
|
17
|
-
return (n, u) => (t(), p(i, a(n.$props, { "possible-values": l(e) }), null, 16, ["possible-values"]));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
y as default
|
|
22
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, ref as s, openBlock as r, createElementBlock as d, createVNode as u, unref as i, withCtx as p, createTextVNode as c, toDisplayString as f, renderSlot as t } from "vue";
|
|
2
|
-
import { C as m, _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
|
|
3
|
-
const b = /* @__PURE__ */ a({
|
|
4
|
-
__name: "CheckboxControl",
|
|
5
|
-
props: {
|
|
6
|
-
control: {},
|
|
7
|
-
handleChange: { type: Function },
|
|
8
|
-
changeValue: { type: Function },
|
|
9
|
-
disabled: { type: Boolean },
|
|
10
|
-
labelForId: {},
|
|
11
|
-
isValid: { type: Boolean },
|
|
12
|
-
messages: {},
|
|
13
|
-
onRegisterValidation: { type: Function }
|
|
14
|
-
},
|
|
15
|
-
setup(h) {
|
|
16
|
-
const n = s(!1);
|
|
17
|
-
return (e, o) => (r(), d("div", {
|
|
18
|
-
class: "checkbox-input",
|
|
19
|
-
onMouseover: o[0] || (o[0] = (l) => n.value = !0),
|
|
20
|
-
onMouseleave: o[1] || (o[1] = (l) => n.value = !1)
|
|
21
|
-
}, [
|
|
22
|
-
u(i(m), {
|
|
23
|
-
class: "checkbox",
|
|
24
|
-
disabled: e.disabled,
|
|
25
|
-
"model-value": e.control.data,
|
|
26
|
-
"onUpdate:modelValue": e.changeValue
|
|
27
|
-
}, {
|
|
28
|
-
default: p(() => [
|
|
29
|
-
c(f(e.control.label) + " ", 1),
|
|
30
|
-
t(e.$slots, "icon", {}, void 0, !0)
|
|
31
|
-
]),
|
|
32
|
-
_: 3
|
|
33
|
-
}, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
|
|
34
|
-
t(e.$slots, "buttons", { hover: n.value }, void 0, !0)
|
|
35
|
-
], 32));
|
|
36
|
-
}
|
|
37
|
-
}), k = /* @__PURE__ */ v(b, [["__scopeId", "data-v-c26e0308"]]);
|
|
38
|
-
export {
|
|
39
|
-
k as default
|
|
40
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { _ as c, C as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
|
|
2
|
-
import { resolveComponent as f, openBlock as o, createElementBlock as s, normalizeClass as h, Fragment as m, renderList as p, createBlock as x, withCtx as b, createTextVNode as V, toDisplayString as y } from "vue";
|
|
3
|
-
const _ = {
|
|
4
|
-
name: "Checkboxes",
|
|
5
|
-
components: {
|
|
6
|
-
Checkbox: u
|
|
7
|
-
},
|
|
8
|
-
props: {
|
|
9
|
-
/**
|
|
10
|
-
* List of possible values. Each item must have an `id` and a `text` property.
|
|
11
|
-
* @example
|
|
12
|
-
* [{
|
|
13
|
-
* id: 'pdf',
|
|
14
|
-
* text: 'PDF'
|
|
15
|
-
* }, {
|
|
16
|
-
* id: 'XLS',
|
|
17
|
-
* text: 'Excel',
|
|
18
|
-
* }]
|
|
19
|
-
*/
|
|
20
|
-
possibleValues: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default: () => [],
|
|
23
|
-
validator(e) {
|
|
24
|
-
return Array.isArray(e) ? e.every(
|
|
25
|
-
(a) => a.hasOwnProperty("id") && a.hasOwnProperty("text")
|
|
26
|
-
) : !1;
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
/**
|
|
30
|
-
* Controls the alignment
|
|
31
|
-
*/
|
|
32
|
-
alignment: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "horizontal",
|
|
35
|
-
validator(e) {
|
|
36
|
-
return ["horizontal", "vertical"].includes(e);
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
disabled: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !1
|
|
42
|
-
},
|
|
43
|
-
isValid: {
|
|
44
|
-
default: !0,
|
|
45
|
-
type: Boolean
|
|
46
|
-
},
|
|
47
|
-
/**
|
|
48
|
-
* selected value (which is a list of ids of entries)
|
|
49
|
-
*/
|
|
50
|
-
modelValue: {
|
|
51
|
-
type: Array,
|
|
52
|
-
default: () => []
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
emits: ["update:modelValue"],
|
|
56
|
-
methods: {
|
|
57
|
-
validate() {
|
|
58
|
-
const e = !this.possibleValues.some((a) => a.invalid);
|
|
59
|
-
return {
|
|
60
|
-
isValid: e,
|
|
61
|
-
errorMessage: e ? null : "One or more of the selected items is invalid."
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
onUpdateModelValue(e, a) {
|
|
65
|
-
let t = Array.from(this.modelValue);
|
|
66
|
-
a ? t.indexOf(e) === -1 && t.push(e) : t = t.filter((r) => r !== e), consola.trace("Checkboxes value changed to", t), this.$emit("update:modelValue", t);
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Is at least one checkbox checked?
|
|
70
|
-
* @returns {boolean}
|
|
71
|
-
*/
|
|
72
|
-
hasSelection() {
|
|
73
|
-
return this.$refs.boxes.some((e) => e.isChecked());
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
function k(e, a, t, r, v, d) {
|
|
78
|
-
const i = f("Checkbox");
|
|
79
|
-
return o(), s("div", {
|
|
80
|
-
class: h(["checkboxes", t.alignment])
|
|
81
|
-
}, [
|
|
82
|
-
(o(!0), s(m, null, p(t.possibleValues, (l) => (o(), x(i, {
|
|
83
|
-
ref_for: !0,
|
|
84
|
-
ref: "boxes",
|
|
85
|
-
key: `checkboxes-${l.id}`,
|
|
86
|
-
"model-value": t.modelValue.indexOf(l.id) > -1,
|
|
87
|
-
title: l.text,
|
|
88
|
-
invalid: l.invalid,
|
|
89
|
-
disabled: t.disabled,
|
|
90
|
-
class: "box",
|
|
91
|
-
"onUpdate:modelValue": (n) => d.onUpdateModelValue(l.id, n)
|
|
92
|
-
}, {
|
|
93
|
-
default: b(() => [
|
|
94
|
-
V(y(l.text), 1)
|
|
95
|
-
]),
|
|
96
|
-
_: 2
|
|
97
|
-
}, 1032, ["model-value", "title", "invalid", "disabled", "onUpdate:modelValue"]))), 128))
|
|
98
|
-
], 2);
|
|
99
|
-
}
|
|
100
|
-
const A = /* @__PURE__ */ c(_, [["render", k], ["__scopeId", "data-v-4567f860"]]);
|
|
101
|
-
export {
|
|
102
|
-
A as C
|
|
103
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as n, ref as r, toRef as u, onMounted as p, openBlock as d, createBlock as m, unref as b, createCommentVNode as f } from "vue";
|
|
2
|
-
import { o as h } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { u as v } from "./usePossibleValues-lz0Rcu_N.js";
|
|
4
|
-
import { C as V } from "./Checkboxes-DIPjJhPO.js";
|
|
5
|
-
import { _ as y } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
|
|
6
|
-
const C = /* @__PURE__ */ c({
|
|
7
|
-
__name: "CheckboxesControl",
|
|
8
|
-
props: {
|
|
9
|
-
control: {},
|
|
10
|
-
handleChange: { type: Function },
|
|
11
|
-
changeValue: { type: Function },
|
|
12
|
-
disabled: { type: Boolean },
|
|
13
|
-
isValid: { type: Boolean },
|
|
14
|
-
onRegisterValidation: { type: Function },
|
|
15
|
-
labelForId: {}
|
|
16
|
-
},
|
|
17
|
-
setup(s) {
|
|
18
|
-
const o = s, t = n(
|
|
19
|
-
() => {
|
|
20
|
-
var e;
|
|
21
|
-
return (e = o.control.uischema.options) == null ? void 0 : e.checkboxLayout;
|
|
22
|
-
}
|
|
23
|
-
), a = r(null), { possibleValues: i } = v(u(o, "control")), l = n(() => a.value ?? i.value);
|
|
24
|
-
return p(() => {
|
|
25
|
-
a.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(h) : null;
|
|
26
|
-
}), (e, k) => l.value ? (d(), m(b(V), {
|
|
27
|
-
key: 0,
|
|
28
|
-
id: e.labelForId,
|
|
29
|
-
class: "checkboxes",
|
|
30
|
-
"possible-values": l.value,
|
|
31
|
-
alignment: t.value,
|
|
32
|
-
disabled: e.disabled,
|
|
33
|
-
"model-value": e.control.data,
|
|
34
|
-
"is-valid": e.isValid,
|
|
35
|
-
"onUpdate:modelValue": e.changeValue
|
|
36
|
-
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "is-valid", "onUpdate:modelValue"])) : f("", !0);
|
|
37
|
-
}
|
|
38
|
-
}), I = /* @__PURE__ */ y(C, [["__scopeId", "data-v-2891ceef"]]);
|
|
39
|
-
export {
|
|
40
|
-
I as default
|
|
41
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
|
|
2
|
-
import { D as t } from "./DateTimeInput-CEYEV8dt.js";
|
|
3
|
-
const u = /* @__PURE__ */ o({
|
|
4
|
-
__name: "DateControl",
|
|
5
|
-
props: {
|
|
6
|
-
control: {},
|
|
7
|
-
handleChange: { type: Function },
|
|
8
|
-
changeValue: { type: Function },
|
|
9
|
-
disabled: { type: Boolean },
|
|
10
|
-
isValid: { type: Boolean },
|
|
11
|
-
onRegisterValidation: { type: Function },
|
|
12
|
-
labelForId: {}
|
|
13
|
-
},
|
|
14
|
-
setup(d) {
|
|
15
|
-
return (e, i) => (a(), l(n(t), {
|
|
16
|
-
id: e.labelForId,
|
|
17
|
-
"two-lines": "",
|
|
18
|
-
"model-value": new Date(e.control.data),
|
|
19
|
-
required: !0,
|
|
20
|
-
"show-time": !1,
|
|
21
|
-
compact: "",
|
|
22
|
-
disabled: e.disabled,
|
|
23
|
-
"onUpdate:modelValue": e.changeValue
|
|
24
|
-
}, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"]));
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
u as default
|
|
29
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, computed as a, openBlock as f, createBlock as w, unref as V } from "vue";
|
|
2
|
-
import { D as T } from "./DateTimeInput-CEYEV8dt.js";
|
|
3
|
-
import { t as i, f as b } from "./localTimeUtils-Dv-1R88J.js";
|
|
4
|
-
const y = /* @__PURE__ */ h({
|
|
5
|
-
__name: "DateTimeControl",
|
|
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(r) {
|
|
16
|
-
const l = r, o = a(() => l.control.uischema.options), c = a(
|
|
17
|
-
() => {
|
|
18
|
-
var e;
|
|
19
|
-
return (e = o.value) != null && e.minimum ? i(o.value.minimum) : null;
|
|
20
|
-
}
|
|
21
|
-
), p = a(
|
|
22
|
-
() => {
|
|
23
|
-
var e;
|
|
24
|
-
return (e = o.value) != null && e.maximum ? i(o.value.maximum) : null;
|
|
25
|
-
}
|
|
26
|
-
), n = a({
|
|
27
|
-
get: () => i(l.control.data),
|
|
28
|
-
set: (e) => l.changeValue(b(e))
|
|
29
|
-
});
|
|
30
|
-
return (e, m) => {
|
|
31
|
-
var t, s, u, d;
|
|
32
|
-
return f(), w(V(T), {
|
|
33
|
-
id: e.labelForId,
|
|
34
|
-
modelValue: n.value,
|
|
35
|
-
"onUpdate:modelValue": m[0] || (m[0] = (v) => n.value = v),
|
|
36
|
-
"two-lines": "",
|
|
37
|
-
required: !0,
|
|
38
|
-
"show-time": (t = o.value) == null ? void 0 : t.showTime,
|
|
39
|
-
"show-seconds": (s = o.value) == null ? void 0 : s.showSeconds,
|
|
40
|
-
"show-milliseconds": (u = o.value) == null ? void 0 : u.showMilliseconds,
|
|
41
|
-
timezone: "UTC",
|
|
42
|
-
"date-format": (d = o.value) == null ? void 0 : d.dateFormat,
|
|
43
|
-
min: c.value,
|
|
44
|
-
max: p.value,
|
|
45
|
-
"is-valid": e.isValid,
|
|
46
|
-
compact: "",
|
|
47
|
-
disabled: e.disabled
|
|
48
|
-
}, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
y as default
|
|
54
|
-
};
|