@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @knime/json-forms
|
|
2
2
|
|
|
3
|
+
## 1.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6887f7b]
|
|
8
|
+
- @knime/components@1.34.1
|
|
9
|
+
- @knime/rich-text-editor@1.7.1
|
|
10
|
+
|
|
11
|
+
## 1.15.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 0df972d: Dependency updates. Mostly relevant:
|
|
16
|
+
|
|
17
|
+
- vite, vitest (and coverage reporter), vite-plugin-vue, vue-tsc
|
|
18
|
+
- tiptap
|
|
19
|
+
- vueuse/core
|
|
20
|
+
|
|
21
|
+
Other improvements:
|
|
22
|
+
|
|
23
|
+
- Updated license-checker to allow for Open Font License (OFL)
|
|
24
|
+
- Updated svgo.config.d.ts to fix detection of svg config when supplying it to the vite-svg-loader plugin in vite.config files
|
|
25
|
+
- Remove usages of interface in favor of type, when used in .vue; interfaces create multiple type issues when inferring props, etc which are likely caused by the declaration merging feature of interfaces.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [0df972d]
|
|
30
|
+
- @knime/rich-text-editor@1.7.0
|
|
31
|
+
- @knime/components@1.34.0
|
|
32
|
+
- @knime/styles@1.11.0
|
|
33
|
+
- @knime/utils@1.5.4
|
|
34
|
+
|
|
3
35
|
## 1.14.3
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as i, openBlock as p, mergeProps as a } from "vue";
|
|
2
|
+
import { o as l } from "./index-Blg1O3Fz.js";
|
|
3
|
+
import { T as u } from "./TwinlistControlBase-CMFEecdr.js";
|
|
4
|
+
import { _ as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
5
|
+
const d = /* @__PURE__ */ s({
|
|
6
|
+
__name: "AnyOfTwinlist",
|
|
7
|
+
props: {
|
|
8
|
+
control: { type: Object, required: !0 },
|
|
9
|
+
handleChange: { type: Function, required: !0 },
|
|
10
|
+
changeValue: { type: Function, required: !0 },
|
|
11
|
+
disabled: { type: Boolean, required: !0 },
|
|
12
|
+
isValid: { type: Boolean, required: !0 },
|
|
13
|
+
onRegisterValidation: { type: Function, required: !0 },
|
|
14
|
+
labelForId: { type: String, required: !0 }
|
|
15
|
+
},
|
|
16
|
+
setup(r, { expose: n }) {
|
|
17
|
+
n();
|
|
18
|
+
const o = r, e = o.control.schema.anyOf.map(l), t = { props: o, possibleValues: e, TwinlistControlBase: u };
|
|
19
|
+
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
function m(r, n, o, e, t, f) {
|
|
23
|
+
return p(), i(e.TwinlistControlBase, a(r.$props, { "possible-values": e.possibleValues }), null, 16, ["possible-values"]);
|
|
24
|
+
}
|
|
25
|
+
const q = /* @__PURE__ */ c(d, [["render", m], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/twinlist/AnyOfTwinlist.vue"]]);
|
|
26
|
+
export {
|
|
27
|
+
q as default
|
|
28
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as o, resolveComponent as a,
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, resolveComponent as a, createBlock as s, openBlock as n, normalizeClass as r, withCtx as l, renderSlot as c } from "vue";
|
|
2
|
+
import { D as p, _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
3
|
+
const d = o({
|
|
4
4
|
name: "Button",
|
|
5
5
|
components: {
|
|
6
|
-
BaseButton:
|
|
6
|
+
BaseButton: p
|
|
7
7
|
},
|
|
8
8
|
props: {
|
|
9
9
|
/**
|
|
@@ -64,19 +64,20 @@ const c = o({
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
function
|
|
67
|
+
function m(e, u, f, B, h, _) {
|
|
68
68
|
const t = a("BaseButton");
|
|
69
|
-
return
|
|
69
|
+
return n(), s(t, {
|
|
70
70
|
class: r(e.classes),
|
|
71
71
|
disabled: e.disabled
|
|
72
72
|
}, {
|
|
73
73
|
default: l(() => [
|
|
74
|
-
|
|
74
|
+
c(e.$slots, "default")
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
77
|
+
/* FORWARDED */
|
|
77
78
|
}, 8, ["class", "disabled"]);
|
|
78
79
|
}
|
|
79
|
-
const b = /* @__PURE__ */
|
|
80
|
+
const b = /* @__PURE__ */ i(d, [["render", m], ["__scopeId", "data-v-7dccdc88"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/Buttons/Button.vue"]]);
|
|
80
81
|
export {
|
|
81
82
|
b as B
|
|
82
83
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as l, ref as s, createElementBlock as d, openBlock as u, createVNode as i, renderSlot as n, withCtx as c, createTextVNode as p, toDisplayString as b } from "vue";
|
|
2
|
+
import { C as m, _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
3
|
+
const _ = /* @__PURE__ */ l({
|
|
4
|
+
__name: "CheckboxControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: { type: Object, required: !0 },
|
|
7
|
+
handleChange: { type: Function, required: !0 },
|
|
8
|
+
changeValue: { type: Function, required: !0 },
|
|
9
|
+
disabled: { type: Boolean, required: !0 },
|
|
10
|
+
labelForId: { type: null, required: !1 },
|
|
11
|
+
isValid: { type: Boolean, required: !0 },
|
|
12
|
+
messages: { type: Object, required: !0 },
|
|
13
|
+
onRegisterValidation: { type: Function, required: !0 }
|
|
14
|
+
},
|
|
15
|
+
setup(r, { expose: o }) {
|
|
16
|
+
o();
|
|
17
|
+
const e = { hover: s(!1), get Checkbox() {
|
|
18
|
+
return m;
|
|
19
|
+
} };
|
|
20
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function f(r, o, t, e, h, C) {
|
|
24
|
+
return u(), d(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
class: "checkbox-input",
|
|
28
|
+
onMouseover: o[0] || (o[0] = (a) => e.hover = !0),
|
|
29
|
+
onMouseleave: o[1] || (o[1] = (a) => e.hover = !1)
|
|
30
|
+
},
|
|
31
|
+
[
|
|
32
|
+
i(e.Checkbox, {
|
|
33
|
+
class: "checkbox",
|
|
34
|
+
disabled: t.disabled,
|
|
35
|
+
"model-value": t.control.data,
|
|
36
|
+
"onUpdate:modelValue": t.changeValue
|
|
37
|
+
}, {
|
|
38
|
+
default: c(() => [
|
|
39
|
+
p(
|
|
40
|
+
b(t.control.label) + " ",
|
|
41
|
+
1
|
|
42
|
+
/* TEXT */
|
|
43
|
+
),
|
|
44
|
+
n(r.$slots, "icon", {}, void 0, !0)
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
/* FORWARDED */
|
|
48
|
+
}, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
|
|
49
|
+
n(r.$slots, "buttons", { hover: e.hover }, void 0, !0)
|
|
50
|
+
],
|
|
51
|
+
32
|
|
52
|
+
/* NEED_HYDRATION */
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
const y = /* @__PURE__ */ v(_, [["render", f], ["__scopeId", "data-v-135266ed"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/CheckboxControl.vue"]]);
|
|
56
|
+
export {
|
|
57
|
+
y as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { _ as c, C as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
2
|
+
import { resolveComponent as m, createElementBlock as r, openBlock as l, normalizeClass as p, Fragment as f, renderList as h, createBlock as b, withCtx as x, createTextVNode as k, toDisplayString as _ } from "vue";
|
|
3
|
+
const V = {
|
|
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
|
+
(o) => o.hasOwnProperty("id") && o.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((o) => o.invalid);
|
|
59
|
+
return {
|
|
60
|
+
isValid: e,
|
|
61
|
+
errorMessage: e ? null : "One or more of the selected items is invalid."
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
onUpdateModelValue(e, o) {
|
|
65
|
+
let t = Array.from(this.modelValue);
|
|
66
|
+
o ? t.indexOf(e) === -1 && t.push(e) : t = t.filter((s) => s !== 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 y(e, o, t, s, v, n) {
|
|
78
|
+
const d = m("Checkbox");
|
|
79
|
+
return l(), r(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
class: p(["checkboxes", t.alignment])
|
|
83
|
+
},
|
|
84
|
+
[
|
|
85
|
+
(l(!0), r(
|
|
86
|
+
f,
|
|
87
|
+
null,
|
|
88
|
+
h(t.possibleValues, (a) => (l(), b(d, {
|
|
89
|
+
ref_for: !0,
|
|
90
|
+
ref: "boxes",
|
|
91
|
+
key: `checkboxes-${a.id}`,
|
|
92
|
+
"model-value": t.modelValue.indexOf(a.id) > -1,
|
|
93
|
+
title: a.text,
|
|
94
|
+
invalid: a.invalid,
|
|
95
|
+
disabled: t.disabled,
|
|
96
|
+
class: "box",
|
|
97
|
+
"onUpdate:modelValue": (i) => n.onUpdateModelValue(a.id, i)
|
|
98
|
+
}, {
|
|
99
|
+
default: x(() => [
|
|
100
|
+
k(
|
|
101
|
+
_(a.text),
|
|
102
|
+
1
|
|
103
|
+
/* TEXT */
|
|
104
|
+
)
|
|
105
|
+
]),
|
|
106
|
+
_: 2
|
|
107
|
+
/* DYNAMIC */
|
|
108
|
+
}, 1032, ["model-value", "title", "invalid", "disabled", "onUpdate:modelValue"]))),
|
|
109
|
+
128
|
|
110
|
+
/* KEYED_FRAGMENT */
|
|
111
|
+
))
|
|
112
|
+
],
|
|
113
|
+
2
|
|
114
|
+
/* CLASS */
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
const A = /* @__PURE__ */ c(V, [["render", y], ["__scopeId", "data-v-535b2687"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/Checkboxes/Checkboxes.vue"]]);
|
|
118
|
+
export {
|
|
119
|
+
A as C
|
|
120
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as c, computed as l, ref as u, toRef as d, onMounted as p, createBlock as m, createCommentVNode as b, openBlock as _ } from "vue";
|
|
2
|
+
import { o as f } from "./index-Blg1O3Fz.js";
|
|
3
|
+
import { u as h } from "./usePossibleValues-DTVXBGRC.js";
|
|
4
|
+
import { C } from "./Checkboxes-Bofcg7tl.js";
|
|
5
|
+
import { _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
|
|
6
|
+
const g = /* @__PURE__ */ c({
|
|
7
|
+
__name: "CheckboxesControl",
|
|
8
|
+
props: {
|
|
9
|
+
control: { type: Object, required: !0 },
|
|
10
|
+
handleChange: { type: Function, required: !0 },
|
|
11
|
+
changeValue: { type: Function, required: !0 },
|
|
12
|
+
disabled: { type: Boolean, required: !0 },
|
|
13
|
+
isValid: { type: Boolean, required: !0 },
|
|
14
|
+
onRegisterValidation: { type: Function, required: !0 },
|
|
15
|
+
labelForId: { type: String, required: !0 }
|
|
16
|
+
},
|
|
17
|
+
setup(a, { expose: r }) {
|
|
18
|
+
r();
|
|
19
|
+
const e = a, o = l(
|
|
20
|
+
() => e.control.uischema.options?.checkboxLayout
|
|
21
|
+
), t = u(null), { possibleValues: n } = h(d(e, "control")), i = l(() => t.value ?? n.value);
|
|
22
|
+
p(() => {
|
|
23
|
+
t.value = e.control.schema.anyOf ? e.control.schema.anyOf.map(f) : null;
|
|
24
|
+
});
|
|
25
|
+
const s = { props: e, alignment: o, staticOptions: t, possibleValues: n, options: i, get Checkboxes() {
|
|
26
|
+
return C;
|
|
27
|
+
} };
|
|
28
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
function k(a, r, e, o, t, n) {
|
|
32
|
+
return o.options ? (_(), m(o.Checkboxes, {
|
|
33
|
+
key: 0,
|
|
34
|
+
id: e.labelForId,
|
|
35
|
+
class: "checkboxes",
|
|
36
|
+
"possible-values": o.options,
|
|
37
|
+
alignment: o.alignment,
|
|
38
|
+
disabled: e.disabled,
|
|
39
|
+
"model-value": e.control.data,
|
|
40
|
+
"is-valid": e.isValid,
|
|
41
|
+
"onUpdate:modelValue": e.changeValue
|
|
42
|
+
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "is-valid", "onUpdate:modelValue"])) : b("v-if", !0);
|
|
43
|
+
}
|
|
44
|
+
const O = /* @__PURE__ */ v(g, [["render", k], ["__scopeId", "data-v-c36c5814"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/CheckboxesControl.vue"]]);
|
|
45
|
+
export {
|
|
46
|
+
O as default
|
|
47
|
+
};
|