@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,127 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, ref as r, computed as l, onMounted as z, openBlock as d, createBlock as h, unref as p, withCtx as _, createElementVNode as S, createVNode as P, toDisplayString as y, createCommentVNode as C, createElementBlock as U } from "vue";
|
|
2
|
-
import { r as W, q as w, a as j, S as G, L as J, F as K, T as Q, _ as X } from "./index-1mTLieVA.js";
|
|
3
|
-
import { g as b } from "./getFlattenedSettings-D64OwqpI.js";
|
|
4
|
-
const Y = { class: "button-wrapper" }, Z = { class: "button-input-text" }, $ = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "error-message"
|
|
7
|
-
}, tt = /* @__PURE__ */ R({
|
|
8
|
-
__name: "ButtonControl",
|
|
9
|
-
props: W(),
|
|
10
|
-
setup(B) {
|
|
11
|
-
const m = w("registerWatcher"), k = w("getData"), x = B, { control: s, onChange: E } = j({ props: x }), i = r(null), D = () => {
|
|
12
|
-
i.value = null;
|
|
13
|
-
}, v = r({}), f = (t) => {
|
|
14
|
-
v.value = b(t);
|
|
15
|
-
}, o = r({}), V = l(
|
|
16
|
-
() => {
|
|
17
|
-
var t;
|
|
18
|
-
return ((t = s.value.uischema.options) == null ? void 0 : t.states) ?? [];
|
|
19
|
-
}
|
|
20
|
-
), g = (t) => {
|
|
21
|
-
D(), o.value = V.value.find(({ id: e }) => e === t);
|
|
22
|
-
}, A = (t) => {
|
|
23
|
-
setTimeout(() => E(t));
|
|
24
|
-
}, F = (t) => {
|
|
25
|
-
if (t === null)
|
|
26
|
-
return;
|
|
27
|
-
const { settingValue: e, setSettingValue: n, buttonState: a } = t;
|
|
28
|
-
n && A(e), g(a);
|
|
29
|
-
}, I = (t, e = () => {
|
|
30
|
-
}) => {
|
|
31
|
-
const { state: n } = t;
|
|
32
|
-
if (n === "SUCCESS") {
|
|
33
|
-
F(t.result);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
n === "FAIL" && (i.value = t.message[0]), e();
|
|
37
|
-
}, c = r(0), L = G(), u = async ({
|
|
38
|
-
method: t,
|
|
39
|
-
options: e,
|
|
40
|
-
handler: n
|
|
41
|
-
}, a = () => {
|
|
42
|
-
}) => {
|
|
43
|
-
c.value += 1;
|
|
44
|
-
const O = await k({
|
|
45
|
-
method: t,
|
|
46
|
-
options: [L, n, ...e]
|
|
47
|
-
});
|
|
48
|
-
c.value -= 1, I(O, a);
|
|
49
|
-
}, M = async (t) => {
|
|
50
|
-
f(t), await u({
|
|
51
|
-
method: "settings.initializeButton",
|
|
52
|
-
options: [s.value.data],
|
|
53
|
-
handler: s.value.uischema.options.actionHandler
|
|
54
|
-
});
|
|
55
|
-
}, N = (t) => {
|
|
56
|
-
u({
|
|
57
|
-
method: "settings.update",
|
|
58
|
-
options: [b(t)],
|
|
59
|
-
handler: s.value.uischema.options.updateOptions.updateHandler
|
|
60
|
-
});
|
|
61
|
-
}, T = async () => {
|
|
62
|
-
const { id: t, nextState: e } = o.value, n = o.value, a = () => {
|
|
63
|
-
e === o.value.id && (o.value = n);
|
|
64
|
-
};
|
|
65
|
-
typeof e < "u" && g(e), await u(
|
|
66
|
-
{
|
|
67
|
-
method: "settings.invokeButtonAction",
|
|
68
|
-
options: [t, v.value],
|
|
69
|
-
handler: s.value.uischema.options.actionHandler
|
|
70
|
-
},
|
|
71
|
-
a
|
|
72
|
-
);
|
|
73
|
-
};
|
|
74
|
-
z(() => {
|
|
75
|
-
var e, n, a;
|
|
76
|
-
m({
|
|
77
|
-
init: M,
|
|
78
|
-
transformSettings: f,
|
|
79
|
-
dependencies: ((e = s.value.uischema.options) == null ? void 0 : e.dependencies) || []
|
|
80
|
-
});
|
|
81
|
-
const t = (a = (n = s.value.uischema) == null ? void 0 : n.options) == null ? void 0 : a.updateOptions;
|
|
82
|
-
typeof t < "u" && m({
|
|
83
|
-
transformSettings: N,
|
|
84
|
-
dependencies: t.dependencies
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
const q = l(
|
|
88
|
-
() => {
|
|
89
|
-
var t;
|
|
90
|
-
return ((t = s.value.uischema.options) == null ? void 0 : t.displayErrorMessage) ?? !0;
|
|
91
|
-
}
|
|
92
|
-
), H = l(
|
|
93
|
-
() => {
|
|
94
|
-
var t;
|
|
95
|
-
return ((t = s.value.uischema.options) == null ? void 0 : t.showTitleAndDescription) ?? !0;
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
return (t, e) => (d(), h(J, {
|
|
99
|
-
control: p(s),
|
|
100
|
-
show: H.value
|
|
101
|
-
}, {
|
|
102
|
-
default: _(({ labelForId: n }) => [
|
|
103
|
-
S("div", Y, [
|
|
104
|
-
P(p(K), {
|
|
105
|
-
id: n,
|
|
106
|
-
disabled: o.value.disabled,
|
|
107
|
-
class: "button-input",
|
|
108
|
-
primary: o.value.primary,
|
|
109
|
-
compact: "",
|
|
110
|
-
onClick: T
|
|
111
|
-
}, {
|
|
112
|
-
default: _(() => [
|
|
113
|
-
S("div", Z, y(o.value.text), 1)
|
|
114
|
-
]),
|
|
115
|
-
_: 2
|
|
116
|
-
}, 1032, ["id", "disabled", "primary"]),
|
|
117
|
-
c.value > 0 ? (d(), h(p(Q), { key: 0 })) : C("", !0),
|
|
118
|
-
i.value && q.value ? (d(), U("span", $, " Error: " + y(i.value), 1)) : C("", !0)
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}, 8, ["control", "show"]));
|
|
123
|
-
}
|
|
124
|
-
}), ot = /* @__PURE__ */ X(tt, [["__scopeId", "data-v-f789e320"]]);
|
|
125
|
-
export {
|
|
126
|
-
ot as default
|
|
127
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as f, openBlock as n, createBlock as a, unref as e, withCtx as c, createElementVNode as C, createVNode as l, createTextVNode as b, toDisplayString as g, createCommentVNode as i } from "vue";
|
|
2
|
-
import { r as h, a as _, k, l as V, m as D, R as N, n as R, D as w, E as y, _ as E } from "./index-1mTLieVA.js";
|
|
3
|
-
const M = /* @__PURE__ */ x({
|
|
4
|
-
__name: "CheckboxControl",
|
|
5
|
-
props: h(),
|
|
6
|
-
setup(u) {
|
|
7
|
-
const d = u, { control: o, onChange: s, disabled: p } = _({ props: d }), r = f(!1), m = k(o);
|
|
8
|
-
return (S, t) => (n(), a(V, { control: e(o) }, {
|
|
9
|
-
default: c(() => [
|
|
10
|
-
C("div", {
|
|
11
|
-
class: "checkbox-input",
|
|
12
|
-
onMouseover: t[0] || (t[0] = (v) => r.value = !0),
|
|
13
|
-
onMouseleave: t[1] || (t[1] = (v) => r.value = !1)
|
|
14
|
-
}, [
|
|
15
|
-
l(e(D), {
|
|
16
|
-
class: "checkbox",
|
|
17
|
-
disabled: e(p),
|
|
18
|
-
"model-value": e(o).data,
|
|
19
|
-
"onUpdate:modelValue": e(s)
|
|
20
|
-
}, {
|
|
21
|
-
default: c(() => [
|
|
22
|
-
b(g(e(o).label) + " ", 1),
|
|
23
|
-
e(m) ? (n(), a(e(N), {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "reexecution-icon"
|
|
26
|
-
})) : i("", !0)
|
|
27
|
-
]),
|
|
28
|
-
_: 1
|
|
29
|
-
}, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
|
|
30
|
-
l(R, {
|
|
31
|
-
hover: r.value,
|
|
32
|
-
onControllingFlowVariableSet: e(s)
|
|
33
|
-
}, null, 8, ["hover", "onControllingFlowVariableSet"]),
|
|
34
|
-
e(o).description ? (n(), a(w, {
|
|
35
|
-
key: 0,
|
|
36
|
-
html: e(o).description,
|
|
37
|
-
hover: r.value
|
|
38
|
-
}, null, 8, ["html", "hover"])) : i("", !0),
|
|
39
|
-
l(y, {
|
|
40
|
-
error: e(o).errors
|
|
41
|
-
}, null, 8, ["error"])
|
|
42
|
-
], 32)
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
}, 8, ["control"]));
|
|
46
|
-
}
|
|
47
|
-
}), F = /* @__PURE__ */ E(M, [["__scopeId", "data-v-51ca0c91"]]);
|
|
48
|
-
export {
|
|
49
|
-
F as default
|
|
50
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, computed as p, ref as b, onMounted as C, openBlock as t, createBlock as r, unref as o, withCtx as f, createCommentVNode as v } from "vue";
|
|
2
|
-
import { r as g, a as h, o as _, L as k } from "./index-1mTLieVA.js";
|
|
3
|
-
import { C as x } from "./Checkboxes-C6FkTqJJ.js";
|
|
4
|
-
const B = /* @__PURE__ */ d({
|
|
5
|
-
__name: "CheckboxesControl",
|
|
6
|
-
props: g(),
|
|
7
|
-
setup(s) {
|
|
8
|
-
const i = s, { control: a, disabled: u, onChange: n } = h({ props: i }), m = p(
|
|
9
|
-
() => {
|
|
10
|
-
var e;
|
|
11
|
-
return (e = a.value.uischema.options) == null ? void 0 : e.checkboxLayout;
|
|
12
|
-
}
|
|
13
|
-
), l = b(null);
|
|
14
|
-
return C(() => {
|
|
15
|
-
var e;
|
|
16
|
-
l.value = (e = a.value.schema.anyOf) == null ? void 0 : e.map(_);
|
|
17
|
-
}), (e, V) => (t(), r(k, {
|
|
18
|
-
control: o(a),
|
|
19
|
-
"margin-bottom": -10,
|
|
20
|
-
onControllingFlowVariableSet: o(n)
|
|
21
|
-
}, {
|
|
22
|
-
default: f(({ labelForId: c }) => [
|
|
23
|
-
l.value ? (t(), r(o(x), {
|
|
24
|
-
key: 0,
|
|
25
|
-
id: c,
|
|
26
|
-
"possible-values": l.value,
|
|
27
|
-
alignment: m.value,
|
|
28
|
-
disabled: o(u),
|
|
29
|
-
"model-value": o(a).data,
|
|
30
|
-
"onUpdate:modelValue": o(n)
|
|
31
|
-
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : v("", !0)
|
|
32
|
-
]),
|
|
33
|
-
_: 1
|
|
34
|
-
}, 8, ["control", "onControllingFlowVariableSet"]));
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
B as default
|
|
39
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as e, createBlock as r, mergeProps as t } from "vue";
|
|
2
|
-
import { r as s } from "./index-1mTLieVA.js";
|
|
3
|
-
import l from "./TwinlistControl-BqoP2Kbq.js";
|
|
4
|
-
const c = /* @__PURE__ */ n({
|
|
5
|
-
__name: "ColumnFilter",
|
|
6
|
-
props: s(),
|
|
7
|
-
setup(p) {
|
|
8
|
-
return (o, m) => (e(), r(l, t({ ...o.$props, ...o.$attrs }, {
|
|
9
|
-
"unknown-values-text": "Any unknown column",
|
|
10
|
-
"show-unknown-values": "",
|
|
11
|
-
"empty-state-label": "No columns in this list"
|
|
12
|
-
}), null, 16));
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
c as default
|
|
17
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, computed as h, watchEffect as w, watch as C, onMounted as P, openBlock as b, createBlock as _, mergeProps as y, unref as p } from "vue";
|
|
2
|
-
import { U as D, r as V, a as j, q, V as E, p as I, W as F } from "./index-1mTLieVA.js";
|
|
3
|
-
import { _ as S } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js";
|
|
4
|
-
function U(s, n) {
|
|
5
|
-
return D(s, n);
|
|
6
|
-
}
|
|
7
|
-
const g = /* @__PURE__ */ v({
|
|
8
|
-
__name: "ColumnSelect",
|
|
9
|
-
props: V(),
|
|
10
|
-
setup(s) {
|
|
11
|
-
class n extends F {
|
|
12
|
-
toInternalState(e) {
|
|
13
|
-
return e == null ? void 0 : e.selected;
|
|
14
|
-
}
|
|
15
|
-
equals(e, r) {
|
|
16
|
-
return e === r;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const t = j({
|
|
20
|
-
props: s,
|
|
21
|
-
valueComparator: new n()
|
|
22
|
-
}), l = h(
|
|
23
|
-
() => {
|
|
24
|
-
var o;
|
|
25
|
-
return (o = t.control.value.uischema.options) == null ? void 0 : o.choicesProvider;
|
|
26
|
-
}
|
|
27
|
-
), m = q("getPossibleValuesFromUiSchema"), a = E(
|
|
28
|
-
I(l, null),
|
|
29
|
-
t.control.value
|
|
30
|
-
), d = new Promise((o) => {
|
|
31
|
-
w(() => {
|
|
32
|
-
a.value && o(a.value);
|
|
33
|
-
});
|
|
34
|
-
}), c = (o) => {
|
|
35
|
-
var u;
|
|
36
|
-
const e = a.value;
|
|
37
|
-
if (e === null)
|
|
38
|
-
throw new Error("Must not convert data before column choices are fetched.");
|
|
39
|
-
const r = ((u = e.find((f) => f.id === o)) == null ? void 0 : u.compatibleTypes) ?? [];
|
|
40
|
-
return { selected: o, compatibleTypes: r };
|
|
41
|
-
}, i = ({ selected: o }) => o;
|
|
42
|
-
return C(() => a.value, () => {
|
|
43
|
-
const o = t.control.value.data, e = c(i(o));
|
|
44
|
-
U(o, e) || t.onChange(e);
|
|
45
|
-
}), P(async () => {
|
|
46
|
-
l.value || (a.value = await m(
|
|
47
|
-
t.control.value
|
|
48
|
-
));
|
|
49
|
-
}), (o, e) => (b(), _(S, y({ ...o.$attrs, ...o.$props }, {
|
|
50
|
-
"async-initial-options": p(d),
|
|
51
|
-
"json-forms-control": p(t),
|
|
52
|
-
"control-data-to-dropdown-value": i,
|
|
53
|
-
compact: "",
|
|
54
|
-
"dropdown-value-to-control-data": c
|
|
55
|
-
}), null, 16, ["async-initial-options", "json-forms-control"]));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
g as default
|
|
60
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as d, createBlock as i, unref as o } from "vue";
|
|
2
|
-
import { r as c, a as p } from "./index-1mTLieVA.js";
|
|
3
|
-
import { C as f } from "./CredentialsControlBase-Dqhh-4hT.js";
|
|
4
|
-
const h = /* @__PURE__ */ l({
|
|
5
|
-
__name: "CredentialsControl",
|
|
6
|
-
props: c(),
|
|
7
|
-
setup(n) {
|
|
8
|
-
const t = n, { control: e, onChange: r, disabled: a, flowSettings: s } = p({ props: t });
|
|
9
|
-
return (C, m) => (d(), i(f, {
|
|
10
|
-
control: o(e),
|
|
11
|
-
data: o(e).data,
|
|
12
|
-
"flow-settings": o(s),
|
|
13
|
-
disabled: o(a),
|
|
14
|
-
onChange: o(r)
|
|
15
|
-
}, null, 8, ["control", "data", "flow-settings", "disabled", "onChange"]));
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
h as default
|
|
20
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, computed as a, watch as E, openBlock as t, createBlock as d, withCtx as j, createElementVNode as q, unref as i, createCommentVNode as v, normalizeClass as h } from "vue";
|
|
2
|
-
import { p as w, a1 as n, L as A, I as p, _ as G } from "./index-1mTLieVA.js";
|
|
3
|
-
const J = ["id"], b = "*****************", K = /* @__PURE__ */ z({
|
|
4
|
-
__name: "CredentialsControlBase",
|
|
5
|
-
props: {
|
|
6
|
-
control: {},
|
|
7
|
-
data: {},
|
|
8
|
-
flowSettings: {},
|
|
9
|
-
disabled: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
emits: ["change"],
|
|
12
|
-
setup(g, { emit: f }) {
|
|
13
|
-
const r = g, l = f, m = () => ({
|
|
14
|
-
password: "",
|
|
15
|
-
secondFactor: "",
|
|
16
|
-
username: ""
|
|
17
|
-
}), o = a(() => r.data ?? m()), C = (e) => {
|
|
18
|
-
l("change", n(o.value, { username: e }));
|
|
19
|
-
}, F = (e) => {
|
|
20
|
-
l("change", n(o.value, { password: e, isHiddenPassword: !1 }));
|
|
21
|
-
}, P = (e) => {
|
|
22
|
-
l(
|
|
23
|
-
"change",
|
|
24
|
-
n(o.value, { secondFactor: e, isHiddenSecondFactor: !1 })
|
|
25
|
-
);
|
|
26
|
-
}, S = a(() => o.value.isHiddenPassword ? b : o.value.password), U = a(() => o.value.isHiddenSecondFactor ? b : o.value.secondFactor), s = a(() => r.control.uischema.options ?? {}), _ = w(
|
|
27
|
-
a(() => s.value.hasUsernameProvider),
|
|
28
|
-
!0
|
|
29
|
-
), y = a(() => s.value.hideUsername ?? !1), c = a(() => _.value && !y.value), L = w(
|
|
30
|
-
a(() => s.value.hasPasswordProvider),
|
|
31
|
-
!0
|
|
32
|
-
), V = a(() => s.value.hidePassword ?? !1), u = a(() => L.value && !V.value), k = a(
|
|
33
|
-
() => u.value && (s.value.showSecondFactor ?? !1)
|
|
34
|
-
), B = a(
|
|
35
|
-
() => {
|
|
36
|
-
var e;
|
|
37
|
-
return ((e = s.value) == null ? void 0 : e.usernameLabel) ?? "Username";
|
|
38
|
-
}
|
|
39
|
-
), H = a(
|
|
40
|
-
() => {
|
|
41
|
-
var e;
|
|
42
|
-
return ((e = s.value) == null ? void 0 : e.passwordLabel) ?? "Password";
|
|
43
|
-
}
|
|
44
|
-
), D = a(
|
|
45
|
-
() => {
|
|
46
|
-
var e;
|
|
47
|
-
return ((e = s.value) == null ? void 0 : e.secondFactorLabel) ?? "Second authentication factor";
|
|
48
|
-
}
|
|
49
|
-
), I = a(
|
|
50
|
-
() => {
|
|
51
|
-
var e;
|
|
52
|
-
return (e = r.flowSettings) == null ? void 0 : e.controllingFlowVariableName;
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
E(
|
|
56
|
-
() => I.value,
|
|
57
|
-
(e) => {
|
|
58
|
-
e ? l("change", n(o.value, { flowVariableName: e })) : l("change", m());
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
const N = (e) => {
|
|
62
|
-
l("change", n(o.value, e));
|
|
63
|
-
};
|
|
64
|
-
return (e, M) => (t(), d(A, {
|
|
65
|
-
control: e.control,
|
|
66
|
-
onControllingFlowVariableSet: N
|
|
67
|
-
}, {
|
|
68
|
-
default: j(({ labelForId: x }) => [
|
|
69
|
-
q("div", {
|
|
70
|
-
id: x ?? void 0,
|
|
71
|
-
class: "credentials-input-wrapper"
|
|
72
|
-
}, [
|
|
73
|
-
c.value ? (t(), d(i(p), {
|
|
74
|
-
key: 0,
|
|
75
|
-
placeholder: B.value,
|
|
76
|
-
"model-value": o.value.username,
|
|
77
|
-
disabled: e.disabled,
|
|
78
|
-
compact: "",
|
|
79
|
-
type: "text",
|
|
80
|
-
"onUpdate:modelValue": C
|
|
81
|
-
}, null, 8, ["placeholder", "model-value", "disabled"])) : v("", !0),
|
|
82
|
-
u.value ? (t(), d(i(p), {
|
|
83
|
-
key: 1,
|
|
84
|
-
class: h({ margin: c.value }),
|
|
85
|
-
placeholder: H.value,
|
|
86
|
-
"model-value": S.value,
|
|
87
|
-
disabled: e.disabled,
|
|
88
|
-
compact: "",
|
|
89
|
-
type: "password",
|
|
90
|
-
"onUpdate:modelValue": F
|
|
91
|
-
}, null, 8, ["class", "placeholder", "model-value", "disabled"])) : v("", !0),
|
|
92
|
-
k.value ? (t(), d(i(p), {
|
|
93
|
-
key: 2,
|
|
94
|
-
class: h({ margin: c.value || u.value }),
|
|
95
|
-
placeholder: D.value,
|
|
96
|
-
"model-value": U.value,
|
|
97
|
-
disabled: e.disabled,
|
|
98
|
-
compact: "",
|
|
99
|
-
type: "password",
|
|
100
|
-
"onUpdate:modelValue": P
|
|
101
|
-
}, null, 8, ["class", "placeholder", "model-value", "disabled"])) : v("", !0)
|
|
102
|
-
], 8, J)
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
}, 8, ["control"]));
|
|
106
|
-
}
|
|
107
|
-
}), R = /* @__PURE__ */ G(K, [["__scopeId", "data-v-306031c3"]]);
|
|
108
|
-
export {
|
|
109
|
-
R as C
|
|
110
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, openBlock as s, createBlock as i, unref as e, withCtx as c, createVNode as p } from "vue";
|
|
2
|
-
import { r as u, a as m, L as f, aa as C } from "./index-1mTLieVA.js";
|
|
3
|
-
const g = /* @__PURE__ */ d({
|
|
4
|
-
__name: "DateControl",
|
|
5
|
-
props: u(),
|
|
6
|
-
setup(t) {
|
|
7
|
-
const l = t, { control: o, disabled: n, onChange: a } = m({ props: l });
|
|
8
|
-
return (_, b) => (s(), i(f, {
|
|
9
|
-
control: e(o),
|
|
10
|
-
onControllingFlowVariableSet: e(a)
|
|
11
|
-
}, {
|
|
12
|
-
default: c(({ labelForId: r }) => [
|
|
13
|
-
p(e(C), {
|
|
14
|
-
id: r,
|
|
15
|
-
"two-lines": "",
|
|
16
|
-
"model-value": new Date(e(o).data),
|
|
17
|
-
required: !0,
|
|
18
|
-
"show-time": !1,
|
|
19
|
-
compact: "",
|
|
20
|
-
disabled: e(n),
|
|
21
|
-
"onUpdate:modelValue": e(a)
|
|
22
|
-
}, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"])
|
|
23
|
-
]),
|
|
24
|
-
_: 1
|
|
25
|
-
}, 8, ["control", "onControllingFlowVariableSet"]));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
g as default
|
|
30
|
-
};
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, computed as u, openBlock as p, createBlock as m, unref as l, mergeProps as S, withCtx as w, createCommentVNode as y, ref as U, onMounted as H, onBeforeUnmount as W, normalizeProps as M } from "vue";
|
|
2
|
-
import { $ as z, T as G, _ as J, r as K, a as Q, q as f, V as X, p as Y, S as Z, L as ee, m as oe, y as ae, a0 as le } from "./index-1mTLieVA.js";
|
|
3
|
-
import { g as te } from "./getFlattenedSettings-D64OwqpI.js";
|
|
4
|
-
import { u as se } from "./useHideOnNull-CCfNP3O7.js";
|
|
5
|
-
const ne = /* @__PURE__ */ N({
|
|
6
|
-
__name: "LoadingDropdown",
|
|
7
|
-
props: {
|
|
8
|
-
possibleValues: {},
|
|
9
|
-
modelValue: {},
|
|
10
|
-
id: {},
|
|
11
|
-
ariaLabel: {},
|
|
12
|
-
disabled: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
setup(s) {
|
|
15
|
-
const o = s, a = u(() => {
|
|
16
|
-
const { possibleValues: t } = o;
|
|
17
|
-
return t === null ? "Loading" : t.length > 0 ? "No value selected" : "No values present";
|
|
18
|
-
}), n = u(() => o.possibleValues === null ? "" : o.modelValue), v = u(
|
|
19
|
-
() => o.disabled || o.possibleValues === null || o.possibleValues.length === 0
|
|
20
|
-
);
|
|
21
|
-
return (t, C) => (p(), m(l(z), S({ ...t.$props, ...t.$attrs }, {
|
|
22
|
-
"model-value": n.value,
|
|
23
|
-
disabled: v.value,
|
|
24
|
-
"possible-values": t.possibleValues ?? [],
|
|
25
|
-
placeholder: a.value,
|
|
26
|
-
compact: ""
|
|
27
|
-
}), {
|
|
28
|
-
"icon-right": w(() => [
|
|
29
|
-
t.possibleValues === null ? (p(), m(l(G), {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "loading-icon"
|
|
32
|
-
})) : y("", !0)
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
}, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
|
|
36
|
-
}
|
|
37
|
-
}), re = /* @__PURE__ */ J(ne, [["__scopeId", "data-v-cf6ba18c"]]), pe = /* @__PURE__ */ N({
|
|
38
|
-
__name: "DropdownControl",
|
|
39
|
-
props: {
|
|
40
|
-
...K(),
|
|
41
|
-
asyncInitialOptions: {
|
|
42
|
-
type: Object,
|
|
43
|
-
required: !1,
|
|
44
|
-
default: null
|
|
45
|
-
},
|
|
46
|
-
jsonFormsControl: {
|
|
47
|
-
type: Object,
|
|
48
|
-
required: !1,
|
|
49
|
-
default: null
|
|
50
|
-
},
|
|
51
|
-
controlDataToDropdownValue: {
|
|
52
|
-
type: Function,
|
|
53
|
-
required: !1,
|
|
54
|
-
default: (s) => s
|
|
55
|
-
},
|
|
56
|
-
dropdownValueToControlData: {
|
|
57
|
-
type: Function,
|
|
58
|
-
required: !1,
|
|
59
|
-
default: (s) => s
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
setup(s) {
|
|
63
|
-
const o = s, { control: a, onChange: n, disabled: v } = o.jsonFormsControl ?? Q({ props: o }), t = f("getPossibleValuesFromUiSchema"), C = f("registerWatcher"), T = f("getData"), j = f("sendAlert"), D = U(null), _ = u(
|
|
64
|
-
() => {
|
|
65
|
-
var e;
|
|
66
|
-
return (e = a.value.uischema.options) == null ? void 0 : e.choicesProvider;
|
|
67
|
-
}
|
|
68
|
-
), r = X(
|
|
69
|
-
Y(_.value, null),
|
|
70
|
-
a.value
|
|
71
|
-
), h = U(a.value.data), b = (e) => o.dropdownValueToControlData(
|
|
72
|
-
e.length > 0 ? e[0].id : null
|
|
73
|
-
), { showCheckbox: q, showControl: x, checkboxProps: B } = se(
|
|
74
|
-
{
|
|
75
|
-
control: a,
|
|
76
|
-
disabled: v,
|
|
77
|
-
controlElement: D
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
setDefault: () => {
|
|
81
|
-
!h.value && r.value ? n(b(r.value)) : n(h.value);
|
|
82
|
-
},
|
|
83
|
-
setNull: () => {
|
|
84
|
-
n(null);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
), O = u(
|
|
88
|
-
() => o.controlDataToDropdownValue(a.value.data)
|
|
89
|
-
), F = u(
|
|
90
|
-
() => {
|
|
91
|
-
var e;
|
|
92
|
-
return (e = a.value.uischema.options) == null ? void 0 : e.choicesUpdateHandler;
|
|
93
|
-
}
|
|
94
|
-
), E = Z(), L = async (e, c) => {
|
|
95
|
-
const { result: i, state: g, message: V } = await T({
|
|
96
|
-
method: "settings.update",
|
|
97
|
-
options: [
|
|
98
|
-
E,
|
|
99
|
-
F.value,
|
|
100
|
-
te(e)
|
|
101
|
-
]
|
|
102
|
-
});
|
|
103
|
-
return (A) => {
|
|
104
|
-
const P = (d) => {
|
|
105
|
-
r.value = d, (c || !O.value) && (le(
|
|
106
|
-
A,
|
|
107
|
-
a.value.path,
|
|
108
|
-
b(d)
|
|
109
|
-
), n(b(d)));
|
|
110
|
-
};
|
|
111
|
-
i && P(i), g === "FAIL" && (V.forEach((d) => {
|
|
112
|
-
j({
|
|
113
|
-
message: d,
|
|
114
|
-
type: ae.ERROR
|
|
115
|
-
});
|
|
116
|
-
}), P([]));
|
|
117
|
-
};
|
|
118
|
-
}, R = async (e) => {
|
|
119
|
-
(await L(e, !1))(e);
|
|
120
|
-
}, $ = async () => {
|
|
121
|
-
o.asyncInitialOptions !== null ? r.value = await o.asyncInitialOptions : _.value || t(a.value).then((e) => {
|
|
122
|
-
r.value = e;
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
let k = () => {
|
|
126
|
-
};
|
|
127
|
-
H(async () => {
|
|
128
|
-
var e, c;
|
|
129
|
-
if (F.value) {
|
|
130
|
-
const i = ((e = a.value.uischema.options) == null ? void 0 : e.dependencies) || [], g = !!((c = a.value.uischema.options) != null && c.setFirstValueOnUpdate);
|
|
131
|
-
k = await C({
|
|
132
|
-
transformSettings: (V) => L(V, g),
|
|
133
|
-
init: R,
|
|
134
|
-
dependencies: i
|
|
135
|
-
});
|
|
136
|
-
} else
|
|
137
|
-
$();
|
|
138
|
-
}), W(() => {
|
|
139
|
-
k();
|
|
140
|
-
});
|
|
141
|
-
const I = (e) => {
|
|
142
|
-
h.value = o.dropdownValueToControlData(e), n(h.value);
|
|
143
|
-
};
|
|
144
|
-
return (e, c) => (p(), m(ee, {
|
|
145
|
-
control: l(a),
|
|
146
|
-
onControllingFlowVariableSet: I
|
|
147
|
-
}, {
|
|
148
|
-
"before-label": w(() => [
|
|
149
|
-
l(q) ? (p(), m(l(oe), M(S({ key: 0 }, l(B))), null, 16)) : y("", !0)
|
|
150
|
-
]),
|
|
151
|
-
default: w(({ labelForId: i }) => [
|
|
152
|
-
l(x) ? (p(), m(re, {
|
|
153
|
-
key: 0,
|
|
154
|
-
id: i ?? "",
|
|
155
|
-
ref_key: "controlElement",
|
|
156
|
-
ref: D,
|
|
157
|
-
ariaLabel: l(a).label,
|
|
158
|
-
disabled: l(v),
|
|
159
|
-
"model-value": O.value,
|
|
160
|
-
"possible-values": l(r),
|
|
161
|
-
compact: "",
|
|
162
|
-
"onUpdate:modelValue": I
|
|
163
|
-
}, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values"])) : y("", !0)
|
|
164
|
-
]),
|
|
165
|
-
_: 1
|
|
166
|
-
}, 8, ["control"]));
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
export {
|
|
170
|
-
pe as _
|
|
171
|
-
};
|