@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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as h, computed as b, watchEffect as v, watch as w, onMounted as y, openBlock as P, createBlock as g, mergeProps as C, unref as S, withCtx as u, renderSlot as p } from "vue";
|
|
2
|
+
import { w as V } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
|
|
3
|
+
import { q as _, u as D } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
4
|
+
import { _ as F } from "./DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js";
|
|
5
|
+
import { b as $ } from "./_baseIsEqual-d71B2UwX.js";
|
|
6
|
+
function E(s, t) {
|
|
7
|
+
return $(s, t);
|
|
8
|
+
}
|
|
9
|
+
const U = /* @__PURE__ */ h({
|
|
10
|
+
__name: "ColumnSelect",
|
|
11
|
+
props: {
|
|
12
|
+
control: {},
|
|
13
|
+
handleChange: { type: Function },
|
|
14
|
+
changeValue: { type: Function },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
labelForId: {}
|
|
17
|
+
},
|
|
18
|
+
setup(s) {
|
|
19
|
+
const t = s, i = b(
|
|
20
|
+
() => {
|
|
21
|
+
var o;
|
|
22
|
+
return (o = t.control.uischema.options) == null ? void 0 : o.choicesProvider;
|
|
23
|
+
}
|
|
24
|
+
), d = _("getPossibleValuesFromUiSchema"), a = V(
|
|
25
|
+
D(i, null),
|
|
26
|
+
t.control
|
|
27
|
+
), m = new Promise((o) => {
|
|
28
|
+
v(() => {
|
|
29
|
+
a.value && o(a.value);
|
|
30
|
+
});
|
|
31
|
+
}), l = (o) => {
|
|
32
|
+
var n;
|
|
33
|
+
const e = a.value;
|
|
34
|
+
if (e === null)
|
|
35
|
+
throw new Error("Must not convert data before column choices are fetched.");
|
|
36
|
+
const c = ((n = e.find((f) => f.id === o)) == null ? void 0 : n.compatibleTypes) ?? [];
|
|
37
|
+
return { selected: o, compatibleTypes: c };
|
|
38
|
+
}, r = ({ selected: o }) => o;
|
|
39
|
+
return w(() => a.value, () => {
|
|
40
|
+
const o = t.control.data, e = l(r(o));
|
|
41
|
+
E(o, e) || t.changeValue(e);
|
|
42
|
+
}), y(async () => {
|
|
43
|
+
i.value || (a.value = await d(t.control));
|
|
44
|
+
}), (o, e) => (P(), g(F, C({ ...o.$attrs, ...o.$props }, {
|
|
45
|
+
"async-initial-options": S(m),
|
|
46
|
+
"control-data-to-dropdown-value": r,
|
|
47
|
+
compact: "",
|
|
48
|
+
"dropdown-value-to-control-data": l
|
|
49
|
+
}), {
|
|
50
|
+
icon: u(() => [
|
|
51
|
+
p(o.$slots, "icon")
|
|
52
|
+
]),
|
|
53
|
+
buttons: u(({ hover: c, controlHTMLElement: n }) => [
|
|
54
|
+
p(o.$slots, "buttons", {
|
|
55
|
+
hover: c,
|
|
56
|
+
controlHTMLElement: n
|
|
57
|
+
})
|
|
58
|
+
]),
|
|
59
|
+
_: 3
|
|
60
|
+
}, 16, ["async-initial-options"]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
U as default
|
|
65
|
+
};
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { resolveComponent as b, openBlock as d, createElementBlock as V, normalizeClass as w, withKeys as u, withModifiers as a, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as f, withDirectives as I, normalizeStyle as A, Fragment as k, renderList as D, createBlock as C, withCtx as O, createTextVNode as x, vShow as P, defineComponent as M, vModelText as z, computed as v, ref as B, onMounted as R, unref as N, createCommentVNode as U } from "vue";
|
|
2
|
+
import { w as L } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
|
|
3
|
+
import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
4
|
+
import { C as K } from "./close-h7XT0ja0.js";
|
|
5
|
+
import { F as j } from "./FunctionButton-DBec3TQi.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { u as W } from "./index-Cp7Xre_V.js";
|
|
8
|
+
import { A as G } from "./arrow-dropdown-DjUxzjqC.js";
|
|
9
|
+
import { C as X } from "./Checkbox-BxPISyW3.js";
|
|
10
|
+
import { c as q } from "./createMissingItem-B00Kg95q.js";
|
|
11
|
+
const y = 1, J = 28.5, Q = 8, Y = {
|
|
5
12
|
name: "Multiselect",
|
|
6
13
|
components: {
|
|
7
|
-
Checkbox:
|
|
8
|
-
DropdownIcon:
|
|
14
|
+
Checkbox: X,
|
|
15
|
+
DropdownIcon: G
|
|
9
16
|
},
|
|
10
17
|
props: {
|
|
11
18
|
/**
|
|
@@ -140,7 +147,7 @@ const C = 1, ee = 28.5, te = 8, se = {
|
|
|
140
147
|
},
|
|
141
148
|
optionsHeight() {
|
|
142
149
|
return this.useSpecificOptionsHeight ? {
|
|
143
|
-
"max-height": `${this.sizeVisibleOptions *
|
|
150
|
+
"max-height": `${this.sizeVisibleOptions * J + Q}px`
|
|
144
151
|
} : {};
|
|
145
152
|
},
|
|
146
153
|
refocusElementOnClose() {
|
|
@@ -171,7 +178,7 @@ const C = 1, ee = 28.5, te = 8, se = {
|
|
|
171
178
|
this.collapsed = !this.collapsed, setTimeout(() => {
|
|
172
179
|
var e;
|
|
173
180
|
(e = this.$refs.toggle) == null || e.focus();
|
|
174
|
-
},
|
|
181
|
+
}, y);
|
|
175
182
|
},
|
|
176
183
|
isChecked(e) {
|
|
177
184
|
return this.modelValue.includes(e);
|
|
@@ -186,7 +193,7 @@ const C = 1, ee = 28.5, te = 8, se = {
|
|
|
186
193
|
closeOptions(e = !0) {
|
|
187
194
|
this.collapsed = !0, e && setTimeout(() => {
|
|
188
195
|
this.refocusElementOnClose.focus();
|
|
189
|
-
},
|
|
196
|
+
}, y);
|
|
190
197
|
},
|
|
191
198
|
/**
|
|
192
199
|
* Handle closing the options if necessary and stopping the event if so.
|
|
@@ -212,7 +219,7 @@ const C = 1, ee = 28.5, te = 8, se = {
|
|
|
212
219
|
onFocusOut() {
|
|
213
220
|
setTimeout(() => {
|
|
214
221
|
this.focusElements.includes(document.activeElement) || (this.closeOptions(!1), this.useCustomListBox && this.$emit("focusOutside"));
|
|
215
|
-
},
|
|
222
|
+
}, y);
|
|
216
223
|
},
|
|
217
224
|
/*
|
|
218
225
|
* Manually prevents default event bubbling and propagation for mousedown which can fire blur events that
|
|
@@ -232,62 +239,62 @@ const C = 1, ee = 28.5, te = 8, se = {
|
|
|
232
239
|
).map((e) => e.$el && e.$el.firstChild));
|
|
233
240
|
}
|
|
234
241
|
}
|
|
235
|
-
},
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
return
|
|
242
|
+
}, Z = { key: 1 };
|
|
243
|
+
function _(e, t, i, n, h, l) {
|
|
244
|
+
const r = b("DropdownIcon"), c = b("Checkbox");
|
|
245
|
+
return d(), V("div", {
|
|
239
246
|
ref: "multiselect",
|
|
240
|
-
class:
|
|
247
|
+
class: w(["multiselect", { collapsed: h.collapsed, invalid: !i.isValid, compact: i.compact }]),
|
|
241
248
|
onKeydown: [
|
|
242
|
-
t[2] || (t[2] =
|
|
243
|
-
t[3] || (t[3] =
|
|
244
|
-
t[4] || (t[4] =
|
|
249
|
+
t[2] || (t[2] = u((...s) => l.closeOptionsAndStop && l.closeOptionsAndStop(...s), ["esc"])),
|
|
250
|
+
t[3] || (t[3] = u(a((...s) => l.onUp && l.onUp(...s), ["stop", "prevent"]), ["up"])),
|
|
251
|
+
t[4] || (t[4] = u(a((...s) => l.onDown && l.onDown(...s), ["stop", "prevent"]), ["down"]))
|
|
245
252
|
],
|
|
246
|
-
onFocusout: t[5] || (t[5] =
|
|
247
|
-
onMousedown: t[6] || (t[6] = (...
|
|
253
|
+
onFocusout: t[5] || (t[5] = a((...s) => l.onFocusOut && l.onFocusOut(...s), ["stop"])),
|
|
254
|
+
onMousedown: t[6] || (t[6] = (...s) => l.onMousedown && l.onMousedown(...s))
|
|
248
255
|
}, [
|
|
249
|
-
i.useCustomListBox ?
|
|
250
|
-
|
|
256
|
+
i.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), V("div", Z, [
|
|
257
|
+
p("div", {
|
|
251
258
|
ref: "toggle",
|
|
252
259
|
role: "button",
|
|
253
260
|
tabindex: "0",
|
|
254
|
-
class:
|
|
255
|
-
onClick: t[0] || (t[0] = (...
|
|
256
|
-
onKeydown: t[1] || (t[1] =
|
|
257
|
-
},
|
|
258
|
-
|
|
261
|
+
class: w({ placeholder: !i.modelValue.length }),
|
|
262
|
+
onClick: t[0] || (t[0] = (...s) => l.toggle && l.toggle(...s)),
|
|
263
|
+
onKeydown: t[1] || (t[1] = u(a((...s) => l.toggle && l.toggle(...s), ["prevent"]), ["space"]))
|
|
264
|
+
}, S(l.summary), 35),
|
|
265
|
+
f(r, { class: "icon" })
|
|
259
266
|
])),
|
|
260
|
-
|
|
267
|
+
I(p("div", {
|
|
261
268
|
class: "options",
|
|
262
|
-
style:
|
|
269
|
+
style: A(l.optionsHeight)
|
|
263
270
|
}, [
|
|
264
|
-
(
|
|
271
|
+
(d(!0), V(k, null, D(i.possibleValues, (s, o) => (d(), C(c, {
|
|
265
272
|
ref_for: !0,
|
|
266
273
|
ref: "option",
|
|
267
|
-
key: `multiselect-${
|
|
268
|
-
"data-index":
|
|
269
|
-
"model-value": l.isChecked(
|
|
270
|
-
disabled:
|
|
274
|
+
key: `multiselect-${s.id}`,
|
|
275
|
+
"data-index": o,
|
|
276
|
+
"model-value": l.isChecked(s.id),
|
|
277
|
+
disabled: s.disabled,
|
|
271
278
|
class: "boxes",
|
|
272
|
-
"onUpdate:modelValue": (
|
|
279
|
+
"onUpdate:modelValue": (m) => l.onUpdateModelValue(s.id, m)
|
|
273
280
|
}, {
|
|
274
|
-
default:
|
|
275
|
-
|
|
281
|
+
default: O(() => [
|
|
282
|
+
x(S(s.text), 1)
|
|
276
283
|
]),
|
|
277
284
|
_: 2
|
|
278
285
|
}, 1032, ["data-index", "model-value", "disabled", "onUpdate:modelValue"]))), 128)),
|
|
279
|
-
|
|
286
|
+
F(e.$slots, "selectAction", {}, void 0, !0)
|
|
280
287
|
], 4), [
|
|
281
|
-
[
|
|
288
|
+
[P, l.showOptions]
|
|
282
289
|
])
|
|
283
290
|
], 34);
|
|
284
291
|
}
|
|
285
|
-
const
|
|
292
|
+
const ee = /* @__PURE__ */ E(Y, [["render", _], ["__scopeId", "data-v-e722538a"]]), g = "draft-id-combobox-preview-item", te = M({
|
|
286
293
|
name: "ComboBox",
|
|
287
294
|
components: {
|
|
288
|
-
Multiselect:
|
|
289
|
-
FunctionButton:
|
|
290
|
-
CloseIcon:
|
|
295
|
+
Multiselect: ee,
|
|
296
|
+
FunctionButton: j,
|
|
297
|
+
CloseIcon: K
|
|
291
298
|
},
|
|
292
299
|
props: {
|
|
293
300
|
/**
|
|
@@ -378,7 +385,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
|
|
|
378
385
|
({ id: i, text: n }) => n.toLowerCase().includes(this.trimmedLowerCasedSearchValue) || i === this.trimmedSearchValue
|
|
379
386
|
);
|
|
380
387
|
return this.allowNewValues && !e && !this.isSearchEmpty ? [
|
|
381
|
-
{ id:
|
|
388
|
+
{ id: g, text: `${this.trimmedSearchValue} (new item)` },
|
|
382
389
|
...t
|
|
383
390
|
] : t;
|
|
384
391
|
},
|
|
@@ -390,7 +397,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
|
|
|
390
397
|
},
|
|
391
398
|
selectedValues() {
|
|
392
399
|
return this.modelValue.map(
|
|
393
|
-
(e) => this.allPossibleItems.find((t) => e === t.id) ||
|
|
400
|
+
(e) => this.allPossibleItems.find((t) => e === t.id) || q(e)
|
|
394
401
|
);
|
|
395
402
|
},
|
|
396
403
|
maxSizeVisibleOptions() {
|
|
@@ -432,7 +439,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
|
|
|
432
439
|
this.inputOrOptionsFocussed || this.$refs.combobox.toggle(), this.inputOrOptionsFocussed = !0, this.$refs.combobox.updateFocusOptions();
|
|
433
440
|
},
|
|
434
441
|
updateSelectedIds(e) {
|
|
435
|
-
if (!e.includes(
|
|
442
|
+
if (!e.includes(g)) {
|
|
436
443
|
this.emitNewSelection(e);
|
|
437
444
|
return;
|
|
438
445
|
}
|
|
@@ -441,7 +448,7 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
|
|
|
441
448
|
text: this.trimmedSearchValue
|
|
442
449
|
};
|
|
443
450
|
this.allPossibleItems.push(i), this.emitNewSelection(
|
|
444
|
-
e.map((n) => n ===
|
|
451
|
+
e.map((n) => n === g ? i.id : n)
|
|
445
452
|
);
|
|
446
453
|
},
|
|
447
454
|
removeTag(e) {
|
|
@@ -457,10 +464,10 @@ const ie = /* @__PURE__ */ N(se, [["render", le], ["__scopeId", "data-v-e722538a
|
|
|
457
464
|
this.$refs.combobox.closeOptions();
|
|
458
465
|
}
|
|
459
466
|
}
|
|
460
|
-
}),
|
|
461
|
-
function
|
|
462
|
-
const
|
|
463
|
-
return
|
|
467
|
+
}), se = ["title"], oe = { class: "icon-right" };
|
|
468
|
+
function le(e, t, i, n, h, l) {
|
|
469
|
+
const r = b("CloseIcon"), c = b("FunctionButton"), s = b("Multiselect");
|
|
470
|
+
return d(), C(s, {
|
|
464
471
|
ref: "combobox",
|
|
465
472
|
"model-value": e.modelValue,
|
|
466
473
|
"possible-values": e.searchResults,
|
|
@@ -474,127 +481,121 @@ function re(e, t, i, n, y, l) {
|
|
|
474
481
|
onFocusOutside: e.onFocusOutside,
|
|
475
482
|
"onUpdate:modelValue": e.updateSelectedIds
|
|
476
483
|
}, {
|
|
477
|
-
listBox:
|
|
478
|
-
|
|
484
|
+
listBox: O(() => [
|
|
485
|
+
p("div", {
|
|
479
486
|
ref: "listBox",
|
|
480
487
|
class: "summary-input-icon-wrapper",
|
|
481
488
|
tabindex: "0",
|
|
482
|
-
onKeydown: t[8] || (t[8] =
|
|
489
|
+
onKeydown: t[8] || (t[8] = u(a((...o) => e.focusInput && e.focusInput(...o), ["prevent", "self"]), ["enter"]))
|
|
483
490
|
}, [
|
|
484
|
-
|
|
485
|
-
class:
|
|
491
|
+
p("div", {
|
|
492
|
+
class: w([
|
|
486
493
|
"summary-input-wrapper",
|
|
487
494
|
{ "with-icon-right": e.hasSelection, compact: e.compact }
|
|
488
495
|
]),
|
|
489
|
-
onClick: t[7] || (t[7] =
|
|
496
|
+
onClick: t[7] || (t[7] = a((...o) => e.focusInput && e.focusInput(...o), ["stop"]))
|
|
490
497
|
}, [
|
|
491
|
-
(
|
|
492
|
-
key: `item.id${
|
|
498
|
+
(d(!0), V(k, null, D(e.selectedValues, ({ id: o, text: m, invalid: T }, $) => (d(), V("div", {
|
|
499
|
+
key: `item.id${$}`,
|
|
493
500
|
class: "tag",
|
|
494
|
-
title:
|
|
501
|
+
title: m
|
|
495
502
|
}, [
|
|
496
|
-
|
|
497
|
-
class:
|
|
498
|
-
},
|
|
499
|
-
|
|
503
|
+
p("span", {
|
|
504
|
+
class: w(["text", { invalid: T }])
|
|
505
|
+
}, S(m), 3),
|
|
506
|
+
f(c, {
|
|
500
507
|
class: "remove-tag-button",
|
|
501
508
|
compact: e.compact,
|
|
502
|
-
onClick:
|
|
509
|
+
onClick: a((ae) => e.removeTag(o), ["stop"])
|
|
503
510
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
|
|
511
|
+
default: O(() => [
|
|
512
|
+
f(r, { class: "remove-tag-button-icon" })
|
|
506
513
|
]),
|
|
507
514
|
_: 2
|
|
508
515
|
}, 1032, ["compact", "onClick"])
|
|
509
|
-
], 8,
|
|
510
|
-
|
|
516
|
+
], 8, se))), 128)),
|
|
517
|
+
I(p("input", {
|
|
511
518
|
ref: "searchInput",
|
|
512
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
519
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.searchValue = o),
|
|
513
520
|
class: "search-input",
|
|
514
521
|
type: "text",
|
|
515
|
-
style:
|
|
516
|
-
onFocus: t[1] || (t[1] = (...
|
|
517
|
-
onInput: t[2] || (t[2] = (...
|
|
522
|
+
style: A(e.inputWidth),
|
|
523
|
+
onFocus: t[1] || (t[1] = (...o) => e.onInputFocus && e.onInputFocus(...o)),
|
|
524
|
+
onInput: t[2] || (t[2] = (...o) => e.onInput && e.onInput(...o)),
|
|
518
525
|
onKeydown: [
|
|
519
|
-
t[3] || (t[3] =
|
|
520
|
-
t[4] || (t[4] =
|
|
521
|
-
t[5] || (t[5] =
|
|
522
|
-
t[6] || (t[6] =
|
|
526
|
+
t[3] || (t[3] = u(a((...o) => e.onEnter && e.onEnter(...o), ["prevent"]), ["enter"])),
|
|
527
|
+
t[4] || (t[4] = u((...o) => e.onBackspace && e.onBackspace(...o), ["backspace"])),
|
|
528
|
+
t[5] || (t[5] = u(a((...o) => e.onDown && e.onDown(...o), ["stop", "prevent"]), ["down"])),
|
|
529
|
+
t[6] || (t[6] = u((...o) => e.closeOptionsAndStop && e.closeOptionsAndStop(...o), ["esc"]))
|
|
523
530
|
]
|
|
524
531
|
}, null, 36), [
|
|
525
|
-
[
|
|
532
|
+
[z, e.searchValue]
|
|
526
533
|
])
|
|
527
534
|
], 2),
|
|
528
|
-
|
|
529
|
-
|
|
535
|
+
I(p("div", oe, [
|
|
536
|
+
f(c, {
|
|
530
537
|
ref: "removeAllTags",
|
|
531
538
|
class: "remove-all-tags-button",
|
|
532
539
|
compact: e.compact,
|
|
533
|
-
onClick:
|
|
540
|
+
onClick: a(e.removeAllTags, ["stop"])
|
|
534
541
|
}, {
|
|
535
|
-
default:
|
|
536
|
-
|
|
542
|
+
default: O(() => [
|
|
543
|
+
f(r)
|
|
537
544
|
]),
|
|
538
545
|
_: 1
|
|
539
546
|
}, 8, ["compact", "onClick"])
|
|
540
547
|
], 512), [
|
|
541
|
-
[
|
|
548
|
+
[P, e.hasSelection]
|
|
542
549
|
])
|
|
543
550
|
], 544)
|
|
544
551
|
]),
|
|
545
552
|
_: 1
|
|
546
553
|
}, 8, ["model-value", "possible-values", "size-visible-options", "parent-focus-element", "parent-refocus-element-on-close", "close-dropdown-on-selection", "is-valid", "compact", "onFocusOutside", "onUpdate:modelValue"]);
|
|
547
554
|
}
|
|
548
|
-
const
|
|
555
|
+
const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077"]]), ne = /* @__PURE__ */ M({
|
|
549
556
|
__name: "ComboBoxControl",
|
|
550
|
-
props:
|
|
557
|
+
props: {
|
|
558
|
+
control: {},
|
|
559
|
+
handleChange: { type: Function },
|
|
560
|
+
changeValue: { type: Function },
|
|
561
|
+
disabled: { type: Boolean },
|
|
562
|
+
labelForId: {}
|
|
563
|
+
},
|
|
551
564
|
setup(e) {
|
|
552
|
-
const t = e,
|
|
553
|
-
control: i,
|
|
554
|
-
onChange: n,
|
|
555
|
-
disabled: y
|
|
556
|
-
} = q({ props: t }), l = I(
|
|
565
|
+
const t = e, i = v(
|
|
557
566
|
() => {
|
|
558
|
-
var
|
|
559
|
-
return (
|
|
567
|
+
var s, o;
|
|
568
|
+
return (o = (s = t.control.uischema) == null ? void 0 : s.options) == null ? void 0 : o.choicesProvider;
|
|
560
569
|
}
|
|
561
|
-
),
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
),
|
|
565
|
-
|
|
566
|
-
var
|
|
567
|
-
|
|
570
|
+
), n = L(
|
|
571
|
+
H(i, []),
|
|
572
|
+
t.control
|
|
573
|
+
), h = B([]), l = B(!1);
|
|
574
|
+
R(() => {
|
|
575
|
+
var s, o;
|
|
576
|
+
h.value = t.control.data, i.value || (n.value = (o = (s = t.control.uischema) == null ? void 0 : s.options) == null ? void 0 : o.possibleValues), l.value = !0;
|
|
568
577
|
});
|
|
569
|
-
const
|
|
570
|
-
() => typeof
|
|
571
|
-
),
|
|
578
|
+
const r = v(
|
|
579
|
+
() => typeof n.value > "u"
|
|
580
|
+
), c = v(
|
|
572
581
|
() => {
|
|
573
|
-
var
|
|
574
|
-
return
|
|
582
|
+
var s;
|
|
583
|
+
return t.disabled || r.value || ((s = n.value) == null ? void 0 : s.length) === 0;
|
|
575
584
|
}
|
|
576
585
|
);
|
|
577
|
-
return (
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
"possible-values": s.value ? [] : b(d),
|
|
589
|
-
"model-value": m.value,
|
|
590
|
-
compact: "",
|
|
591
|
-
"onUpdate:modelValue": u[0] || (u[0] = (z) => b(n)(z))
|
|
592
|
-
}, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value"])) : H("", !0)
|
|
593
|
-
]),
|
|
594
|
-
_: 1
|
|
595
|
-
}, 8, ["control", "onControllingFlowVariableSet"]));
|
|
586
|
+
return (s, o) => l.value ? (d(), C(N(ie), {
|
|
587
|
+
key: 0,
|
|
588
|
+
id: s.labelForId,
|
|
589
|
+
"allow-new-values": r.value ? "" : !1,
|
|
590
|
+
"aria-label": s.control.label,
|
|
591
|
+
disabled: c.value,
|
|
592
|
+
"possible-values": r.value ? [] : N(n),
|
|
593
|
+
"model-value": h.value,
|
|
594
|
+
compact: "",
|
|
595
|
+
"onUpdate:modelValue": o[0] || (o[0] = (m) => s.changeValue(m))
|
|
596
|
+
}, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value"])) : U("", !0);
|
|
596
597
|
}
|
|
597
|
-
}),
|
|
598
|
+
}), Oe = /* @__PURE__ */ E(ne, [["__scopeId", "data-v-838db307"]]);
|
|
598
599
|
export {
|
|
599
|
-
|
|
600
|
+
Oe as default
|
|
600
601
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
|
|
2
|
+
import { D as t } from "./DateTimeInput-ltP7o2TE.js";
|
|
3
|
+
const i = /* @__PURE__ */ o({
|
|
4
|
+
__name: "DateControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
labelForId: {}
|
|
11
|
+
},
|
|
12
|
+
setup(d) {
|
|
13
|
+
return (e, r) => (a(), l(n(t), {
|
|
14
|
+
id: e.labelForId,
|
|
15
|
+
"two-lines": "",
|
|
16
|
+
"model-value": new Date(e.control.data),
|
|
17
|
+
required: !0,
|
|
18
|
+
"show-time": !1,
|
|
19
|
+
compact: "",
|
|
20
|
+
disabled: e.disabled,
|
|
21
|
+
"onUpdate:modelValue": e.changeValue
|
|
22
|
+
}, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
i as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as r, computed as a, openBlock as p, createBlock as h, unref as v } from "vue";
|
|
2
|
+
import { D as w } from "./DateTimeInput-ltP7o2TE.js";
|
|
3
|
+
const F = /* @__PURE__ */ r({
|
|
4
|
+
__name: "DateTimeControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
labelForId: {}
|
|
11
|
+
},
|
|
12
|
+
setup(s) {
|
|
13
|
+
const u = s, o = a(() => u.control.uischema.options), d = a(
|
|
14
|
+
() => {
|
|
15
|
+
var e;
|
|
16
|
+
return (e = o.value) != null && e.minimum ? new Date(o.value.minimum) : null;
|
|
17
|
+
}
|
|
18
|
+
), c = a(
|
|
19
|
+
() => {
|
|
20
|
+
var e;
|
|
21
|
+
return (e = o.value) != null && e.maximum ? new Date(o.value.maximum) : null;
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
return (e, f) => {
|
|
25
|
+
var n, l, m, t, i;
|
|
26
|
+
return p(), h(v(w), {
|
|
27
|
+
id: e.labelForId,
|
|
28
|
+
"two-lines": "",
|
|
29
|
+
"model-value": new Date(e.control.data),
|
|
30
|
+
required: !0,
|
|
31
|
+
"show-time": (n = o.value) == null ? void 0 : n.showTime,
|
|
32
|
+
"show-seconds": (l = o.value) == null ? void 0 : l.showSeconds,
|
|
33
|
+
"show-milliseconds": (m = o.value) == null ? void 0 : m.showMilliseconds,
|
|
34
|
+
timezone: (t = o.value) == null ? void 0 : t.timezone,
|
|
35
|
+
"date-format": (i = o.value) == null ? void 0 : i.dateFormat,
|
|
36
|
+
min: d.value,
|
|
37
|
+
max: c.value,
|
|
38
|
+
compact: "",
|
|
39
|
+
disabled: e.disabled,
|
|
40
|
+
"onUpdate:modelValue": e.changeValue
|
|
41
|
+
}, null, 8, ["id", "model-value", "show-time", "show-seconds", "show-milliseconds", "timezone", "date-format", "min", "max", "disabled", "onUpdate:modelValue"]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
F as default
|
|
47
|
+
};
|