@knime/jsonforms 0.1.7 → 1.0.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 +14 -0
- package/README.md +71 -70
- package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
- package/dist/BaseButton-arvXMjXG.js +112 -0
- package/dist/Button-Bc51Uur8.js +83 -0
- package/dist/Checkbox-BxPISyW3.js +75 -0
- package/dist/CheckboxControl-B-RyvD0K.js +42 -0
- package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
- package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
- package/dist/ColumnFilter-bO-fKaHD.js +22 -0
- package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
- package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
- package/dist/DateControl-v0qHckKz.js +27 -0
- package/dist/DateTimeControl-COnMFfMd.js +47 -0
- package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
- package/dist/Dropdown-By1NMrXZ.js +691 -0
- package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
- package/dist/ErrorMessage-fuIcc8xw.js +23 -0
- package/dist/FunctionButton-DBec3TQi.js +75 -0
- package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
- package/dist/InputField-BKH5rtn3.js +148 -0
- package/dist/IntegerControl-CBuOHc4B.js +18 -0
- package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
- package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
- package/dist/NameFilter-oHBcHQTY.js +22 -0
- package/dist/NumberControl-Cwf50Oe-.js +18 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
- package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
- package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
- package/dist/RadioControl-DsVkQLSI.js +22 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
- package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
- package/dist/SectionLayout-BDgtf57K.js +43 -0
- package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
- package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
- package/dist/SortListControl-On9GHu_U.js +356 -0
- package/dist/TextAreaControl-DF_pLD80.js +108 -0
- package/dist/TextControl-BTZ4ONmV.js +4 -0
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
- package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
- package/dist/TwinlistControl-DcFpZrni.js +553 -0
- package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
- package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
- package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
- package/dist/VerticalLayout-D1KXulG4.js +30 -0
- package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
- package/dist/_baseAssignValue-C56BMUo_.js +19 -0
- package/dist/_baseEach-1sO8_8tT.js +31 -0
- package/dist/_baseIsEqual-d71B2UwX.js +248 -0
- package/dist/_baseIteratee-BgB8cpN8.js +104 -0
- package/dist/_getTag-BiNJdVyP.js +314 -0
- package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
- package/dist/close-h7XT0ja0.js +17 -0
- package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
- package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
- package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
- package/dist/index-C1PjXAJX.js +17 -0
- package/dist/index-Cp7Xre_V.js +331 -0
- package/dist/isObject-B53jY8Qg.js +7 -0
- package/dist/isSymbol-DLKDpjGl.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.d.ts +2 -0
- package/dist/knime-jsonforms.js +119 -3
- package/dist/magic-string.es-DFyz70Kz.js +860 -0
- package/dist/popper-1JCni0RT.js +907 -0
- package/dist/reload-BhzcZRFp.js +17 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/inputFormats.d.ts +25 -0
- package/dist/src/constants/priorityRanks.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
- package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
- package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
- package/dist/src/higherOrderComponents/index.d.ts +3 -0
- package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
- package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
- package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
- package/dist/src/higherOrderComponents/types.d.ts +25 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
- package/dist/src/layoutComponents/index.d.ts +3 -0
- package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
- package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
- package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
- package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
- package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
- package/dist/src/renderers/index.d.ts +1 -0
- package/dist/src/renderers/integerRenderer.d.ts +5 -0
- package/dist/src/renderers/intervalRenderer.d.ts +5 -0
- package/dist/src/renderers/localDateRenderer.d.ts +5 -0
- package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/numberRenderer.d.ts +5 -0
- package/dist/src/renderers/radioRenderer.d.ts +5 -0
- package/dist/src/renderers/richTextRenderer.d.ts +5 -0
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
- package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
- package/dist/src/renderers/sortListRenderer.d.ts +288 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
- package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
- package/dist/src/renderers/textRenderer.d.ts +193 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
- package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
- package/dist/src/types/Control.d.ts +2 -0
- package/dist/src/types/alert.d.ts +5 -0
- package/dist/src/types/provided.d.ts +25 -0
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
- package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
- package/dist/src/uiComponents/index.d.ts +4 -0
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
- package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
- package/dist/src/utils/index.d.ts +15 -0
- package/dist/src/utils/inject.d.ts +3 -0
- package/dist/src/utils/localTimeUtils.d.ts +16 -0
- package/dist/svgWithTitle-zrGi2kyc.js +18 -0
- package/dist/testUtils/component.d.ts +190 -0
- package/dist/testUtils/index.d.ts +2 -0
- package/dist/testUtils/renderer.d.ts +6 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +18889 -0
- package/dist/toString-C9vll-oa.js +26 -0
- package/dist/useSearch-hpyYQ_6y.js +74 -0
- package/package.json +11 -7
- package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
- package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
- package/dist/ButtonControl-yAb2GdQI.js +0 -127
- package/dist/CheckboxControl-Ck45Jycu.js +0 -50
- package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
- package/dist/ColumnFilter-u7yVpuFC.js +0 -17
- package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
- package/dist/CredentialsControl-D1Te47JG.js +0 -20
- package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
- package/dist/DateControl-CuV2lKvs.js +0 -30
- package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
- package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
- package/dist/FileChooserControl-HX_GjlNB.js +0 -605
- package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
- package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
- package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
- package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
- package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
- package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
- package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
- package/dist/NameFilter-CsfBC6e2.js +0 -17
- package/dist/NodeDialog.vue.d.ts +0 -8
- package/dist/NumberControl-BJCFqjn3.js +0 -13
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
- package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
- package/dist/RadioControl-BZEV6NYx.js +0 -13
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
- package/dist/SectionLayout-DtVREvcv.js +0 -54
- package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
- package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
- package/dist/SortListControl-DcW5Ofs5.js +0 -316
- package/dist/TextAreaControl-DTw_oBDS.js +0 -111
- package/dist/TextControl-BlfySQDC.js +0 -49
- package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
- package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
- package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
- package/dist/VerticalLayout-CTFSrGS8.js +0 -39
- package/dist/arrow-up-Dsq3EgtE.js +0 -30
- package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
- package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
- package/dist/index-1mTLieVA.js +0 -32714
- package/dist/index.d.ts +0 -3
- package/dist/layoutComponents/Form.vue.d.ts +0 -2
- package/dist/link-BA69Hfx6.js +0 -17
- package/dist/loading/LoadingDialog.vue.d.ts +0 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { openBlock as h, createElementBlock as u, mergeProps as x, withModifiers as a, toDisplayString as y, toRef as p, watch as I, resolveComponent as v, normalizeClass as C, normalizeStyle as w, createElementVNode as f, withKeys as d, normalizeProps as V, guardReactiveProps as k, Fragment as H, renderList as B, createBlock as g, resolveDynamicComponent as D, createCommentVNode as b, createVNode as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { b as N } from "./index-Cp7Xre_V.js";
|
|
3
|
+
import { _ as S } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
3
4
|
const A = (e, t) => {
|
|
4
5
|
let i, n = 0;
|
|
5
6
|
return (...r) => {
|
|
@@ -573,7 +574,7 @@ function q(e, t, i, n, r, s) {
|
|
|
573
574
|
])
|
|
574
575
|
], 6);
|
|
575
576
|
}
|
|
576
|
-
const
|
|
577
|
+
const Q = /* @__PURE__ */ S(E, [["render", q], ["__scopeId", "data-v-0b9d68d0"]]);
|
|
577
578
|
export {
|
|
578
|
-
|
|
579
|
+
Q as M
|
|
579
580
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as l } from "vue";
|
|
2
|
+
import a from "./TwinlistControl-DcFpZrni.js";
|
|
3
|
+
const i = /* @__PURE__ */ n({
|
|
4
|
+
__name: "NameFilter",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
labelForId: {}
|
|
11
|
+
},
|
|
12
|
+
setup(r) {
|
|
13
|
+
return (e, s) => (o(), t(a, l({ ...e.$props, ...e.$attrs }, {
|
|
14
|
+
"unknown-values-text": "Any unknown value",
|
|
15
|
+
"show-unknown-values": "",
|
|
16
|
+
"empty-state-label": "No values in this list"
|
|
17
|
+
}), null, 16));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
i as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
|
|
2
|
+
import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js";
|
|
3
|
+
const m = /* @__PURE__ */ o({
|
|
4
|
+
__name: "NumberControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
labelForId: {}
|
|
11
|
+
},
|
|
12
|
+
setup(a) {
|
|
13
|
+
return (e, l) => (n(), r(p, t(e.$props, { type: "double" }), null, 16));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
m as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as p, openBlock as d, createBlock as b, unref as t } from "vue";
|
|
2
|
+
import { u as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
3
|
+
import { N as h } from "./NumberInput-DERn3NyL.js";
|
|
4
|
+
const V = /* @__PURE__ */ p({
|
|
5
|
+
__name: "NumberControlBase",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
labelForId: {},
|
|
12
|
+
type: {}
|
|
13
|
+
},
|
|
14
|
+
setup(s) {
|
|
15
|
+
var l, u, r, m;
|
|
16
|
+
const o = s, n = i(
|
|
17
|
+
(l = o.control.uischema.options) == null ? void 0 : l.minProvider,
|
|
18
|
+
(u = o.control.uischema.options) == null ? void 0 : u.min
|
|
19
|
+
), a = i(
|
|
20
|
+
(r = o.control.uischema.options) == null ? void 0 : r.maxProvider,
|
|
21
|
+
(m = o.control.uischema.options) == null ? void 0 : m.max
|
|
22
|
+
), c = () => {
|
|
23
|
+
const e = o.control.data;
|
|
24
|
+
typeof n.value == "number" && e < n.value ? o.changeValue(n.value) : typeof a.value == "number" && e > a.value && o.changeValue(a.value);
|
|
25
|
+
};
|
|
26
|
+
return (e, v) => (d(), b(t(h), {
|
|
27
|
+
id: e.labelForId,
|
|
28
|
+
class: "number-input",
|
|
29
|
+
disabled: e.disabled,
|
|
30
|
+
"model-value": e.control.data,
|
|
31
|
+
type: e.type,
|
|
32
|
+
min: t(n),
|
|
33
|
+
max: t(a),
|
|
34
|
+
compact: "",
|
|
35
|
+
"onUpdate:modelValue": e.changeValue,
|
|
36
|
+
onFocusout: c
|
|
37
|
+
}, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "onUpdate:modelValue"]));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
V as _
|
|
42
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { A as p } from "./arrow-dropdown-DjUxzjqC.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { resolveComponent as h, openBlock as o, createElementBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as f, withModifiers as r, createVNode as m } from "vue";
|
|
4
|
+
import { _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
3
5
|
const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
4
6
|
name: "NumberInput",
|
|
5
7
|
components: {
|
|
6
|
-
ArrowIcon:
|
|
8
|
+
ArrowIcon: p
|
|
7
9
|
},
|
|
8
10
|
props: {
|
|
9
11
|
modelValue: {
|
|
@@ -173,7 +175,7 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
|
173
175
|
class: "invalid-marker"
|
|
174
176
|
};
|
|
175
177
|
function A(t, e, a, w, y, s) {
|
|
176
|
-
const u =
|
|
178
|
+
const u = h("ArrowIcon");
|
|
177
179
|
return o(), d("div", {
|
|
178
180
|
class: l(["wrapper", { disabled: a.disabled, compact: a.compact }])
|
|
179
181
|
}, [
|
|
@@ -194,7 +196,7 @@ function A(t, e, a, w, y, s) {
|
|
|
194
196
|
onMouseenter: e[2] || (e[2] = (...i) => s.toggleHover && s.toggleHover(...i)),
|
|
195
197
|
onMouseleave: e[3] || (e[3] = (...i) => s.toggleHover && s.toggleHover(...i))
|
|
196
198
|
}, null, 42, b),
|
|
197
|
-
a.isValid ?
|
|
199
|
+
a.isValid ? f("", !0) : (o(), d("span", N)),
|
|
198
200
|
n("span", {
|
|
199
201
|
class: l(["increase", { disabled: a.disabled }]),
|
|
200
202
|
onMousedown: e[4] || (e[4] = r((i) => s.mouseEvent(i, "increase"), ["prevent"])),
|
|
@@ -213,7 +215,7 @@ function A(t, e, a, w, y, s) {
|
|
|
213
215
|
], 34)
|
|
214
216
|
], 2);
|
|
215
217
|
}
|
|
216
|
-
const
|
|
218
|
+
const B = /* @__PURE__ */ V(I, [["render", A], ["__scopeId", "data-v-6b79dc2b"]]);
|
|
217
219
|
export {
|
|
218
|
-
|
|
220
|
+
B as N
|
|
219
221
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as l, openBlock as m, createBlock as f, mergeProps as u, unref as d, withCtx as e, renderSlot as s } from "vue";
|
|
2
|
+
import { o as h } from "./index-C1PjXAJX.js";
|
|
3
|
+
import { _ as y } from "./DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js";
|
|
4
|
+
const B = /* @__PURE__ */ l({
|
|
5
|
+
__name: "OneOfDropdown",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
labelForId: {}
|
|
12
|
+
},
|
|
13
|
+
setup(r) {
|
|
14
|
+
var n, t;
|
|
15
|
+
const p = ((t = (n = r.control.schema) == null ? void 0 : n.oneOf) == null ? void 0 : t.map(h)) ?? [], a = Promise.resolve(p);
|
|
16
|
+
return (o, $) => (m(), f(y, u({ ...o.$attrs, ...o.$props }, { "async-initial-options": d(a) }), {
|
|
17
|
+
icon: e(() => [
|
|
18
|
+
s(o.$slots, "icon")
|
|
19
|
+
]),
|
|
20
|
+
buttons: e(({ hover: i, controlHTMLElement: c }) => [
|
|
21
|
+
s(o.$slots, "buttons", {
|
|
22
|
+
hover: i,
|
|
23
|
+
controlHTMLElement: c
|
|
24
|
+
})
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["async-initial-options"]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
B as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as r, createBlock as a, mergeProps as n } from "vue";
|
|
2
|
+
import { _ as t } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js";
|
|
3
|
+
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
4
|
+
const s = /* @__PURE__ */ e({
|
|
5
|
+
__name: "RadioControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
labelForId: {}
|
|
12
|
+
},
|
|
13
|
+
setup(c) {
|
|
14
|
+
return (o, l) => (r(), a(t, n(o.$props, {
|
|
15
|
+
type: "radio",
|
|
16
|
+
class: "radio"
|
|
17
|
+
}), null, 16));
|
|
18
|
+
}
|
|
19
|
+
}), m = /* @__PURE__ */ p(s, [["__scopeId", "data-v-06f75491"]]);
|
|
20
|
+
export {
|
|
21
|
+
m as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { resolveComponent as c, openBlock as m, createBlock as p, normalizeClass as b, defineComponent as f, computed as s, ref as v, onMounted as B, resolveDynamicComponent as h, createCommentVNode as y } from "vue";
|
|
2
|
+
import { o as V } from "./index-C1PjXAJX.js";
|
|
3
|
+
import { B as _, V as g } from "./ValueSwitch-CpE1f4ie.js";
|
|
4
|
+
import { _ as C } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
5
|
+
const R = {
|
|
6
|
+
name: "RadioButtons",
|
|
7
|
+
components: {
|
|
8
|
+
BaseRadioButtons: _
|
|
9
|
+
},
|
|
10
|
+
props: {
|
|
11
|
+
// these props are passed to BaseRadioButtons
|
|
12
|
+
id: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
default: !1,
|
|
22
|
+
type: Boolean
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* List of possible values. Each item must have an `id` and a `text` property
|
|
26
|
+
* @example
|
|
27
|
+
* [{
|
|
28
|
+
* id: 'pdf',
|
|
29
|
+
* text: 'PDF'
|
|
30
|
+
* }, {
|
|
31
|
+
* id: 'XLS',
|
|
32
|
+
* text: 'Excel',
|
|
33
|
+
* }]
|
|
34
|
+
*/
|
|
35
|
+
possibleValues: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => []
|
|
38
|
+
},
|
|
39
|
+
// additional props
|
|
40
|
+
alignment: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "horizontal",
|
|
43
|
+
validator(a) {
|
|
44
|
+
return ["horizontal", "vertical"].includes(a);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
emits: ["update:modelValue"],
|
|
49
|
+
methods: {
|
|
50
|
+
hasSelection() {
|
|
51
|
+
return this.$refs.radioButton.$refs.input.some((a) => a.checked);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
function S(a, t, o, d, i, u) {
|
|
56
|
+
const l = c("BaseRadioButtons");
|
|
57
|
+
return m(), p(l, {
|
|
58
|
+
id: o.id,
|
|
59
|
+
ref: "radioButton",
|
|
60
|
+
"possible-values": o.possibleValues,
|
|
61
|
+
"model-value": o.modelValue,
|
|
62
|
+
disabled: o.disabled,
|
|
63
|
+
class: b(["radio-buttons", o.alignment, { disabled: o.disabled }]),
|
|
64
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.$emit("update:modelValue", e))
|
|
65
|
+
}, null, 8, ["id", "possible-values", "model-value", "disabled", "class"]);
|
|
66
|
+
}
|
|
67
|
+
const k = /* @__PURE__ */ C(R, [["render", S], ["__scopeId", "data-v-e428929b"]]), U = /* @__PURE__ */ f({
|
|
68
|
+
__name: "RadioControlBase",
|
|
69
|
+
props: {
|
|
70
|
+
control: {},
|
|
71
|
+
handleChange: { type: Function },
|
|
72
|
+
changeValue: { type: Function },
|
|
73
|
+
disabled: { type: Boolean },
|
|
74
|
+
labelForId: {},
|
|
75
|
+
type: {}
|
|
76
|
+
},
|
|
77
|
+
setup(a) {
|
|
78
|
+
const t = a, o = s(() => {
|
|
79
|
+
var e;
|
|
80
|
+
return (e = t.control.uischema.options) == null ? void 0 : e.radioLayout;
|
|
81
|
+
}), d = s(
|
|
82
|
+
() => {
|
|
83
|
+
var e;
|
|
84
|
+
return ((e = t.control.uischema.options) == null ? void 0 : e.disabledOptions) ?? [];
|
|
85
|
+
}
|
|
86
|
+
), i = (e) => d.value.includes(e.id) ? { ...e, disabled: !0 } : e, u = s(
|
|
87
|
+
() => t.type === "valueSwitch" ? g : k
|
|
88
|
+
), l = v(null);
|
|
89
|
+
return B(() => {
|
|
90
|
+
var e, n, r;
|
|
91
|
+
l.value = (r = (n = (e = t.control) == null ? void 0 : e.schema) == null ? void 0 : n.oneOf) == null ? void 0 : r.map(V).map(i);
|
|
92
|
+
}), (e, n) => l.value ? (m(), p(h(u.value), {
|
|
93
|
+
key: 0,
|
|
94
|
+
id: e.labelForId,
|
|
95
|
+
"possible-values": l.value,
|
|
96
|
+
alignment: o.value,
|
|
97
|
+
disabled: e.disabled,
|
|
98
|
+
"model-value": e.control.data,
|
|
99
|
+
compact: "",
|
|
100
|
+
"onUpdate:modelValue": e.changeValue
|
|
101
|
+
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : y("", !0);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
U as _
|
|
106
|
+
};
|