@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,26 @@
|
|
|
1
|
+
import { S as s } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
|
|
2
|
+
import { i as y } from "./isSymbol-DLKDpjGl.js";
|
|
3
|
+
function g(r, t) {
|
|
4
|
+
for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
|
|
5
|
+
o[n] = t(r[n], n, r);
|
|
6
|
+
return o;
|
|
7
|
+
}
|
|
8
|
+
var l = Array.isArray, p = 1 / 0, e = s ? s.prototype : void 0, f = e ? e.toString : void 0;
|
|
9
|
+
function m(r) {
|
|
10
|
+
if (typeof r == "string")
|
|
11
|
+
return r;
|
|
12
|
+
if (l(r))
|
|
13
|
+
return g(r, m) + "";
|
|
14
|
+
if (y(r))
|
|
15
|
+
return f ? f.call(r) : "";
|
|
16
|
+
var t = r + "";
|
|
17
|
+
return t == "0" && 1 / r == -p ? "-0" : t;
|
|
18
|
+
}
|
|
19
|
+
function a(r) {
|
|
20
|
+
return r == null ? "" : m(r);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
g as a,
|
|
24
|
+
l as i,
|
|
25
|
+
a as t
|
|
26
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { computed as n, unref as m } from "vue";
|
|
2
|
+
const h = [
|
|
3
|
+
{
|
|
4
|
+
id: "search",
|
|
5
|
+
normalize(e, t) {
|
|
6
|
+
return t ? e : e.toLowerCase();
|
|
7
|
+
},
|
|
8
|
+
test(e, t, r, s) {
|
|
9
|
+
const c = (r ? e : e.toLowerCase()).includes(t);
|
|
10
|
+
return s ? !c : c;
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "wildcard",
|
|
15
|
+
normalize(e, t) {
|
|
16
|
+
if (e.length > 0)
|
|
17
|
+
e = `^${e.replace(
|
|
18
|
+
/[-[\]{}()+.,\\^$|#\s]/g,
|
|
19
|
+
"\\$&"
|
|
20
|
+
).replace(/\*/g, ".*").replace(/\?/g, ".?")}$`;
|
|
21
|
+
else
|
|
22
|
+
return { test: () => !1 };
|
|
23
|
+
try {
|
|
24
|
+
const r = t ? "" : "i";
|
|
25
|
+
return new RegExp(e, r);
|
|
26
|
+
} catch {
|
|
27
|
+
return /$^/;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
test(e, t, r, s) {
|
|
31
|
+
const a = t.test(e);
|
|
32
|
+
return s ? !a : a;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "regex",
|
|
37
|
+
normalize(e, t) {
|
|
38
|
+
try {
|
|
39
|
+
const r = t ? "" : "i";
|
|
40
|
+
return new RegExp(`^(${e})$`, r);
|
|
41
|
+
} catch {
|
|
42
|
+
return /$^/;
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
test(e, t, r, s) {
|
|
46
|
+
const a = t.test(e);
|
|
47
|
+
return s ? !a : a;
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "type",
|
|
52
|
+
normalize(e) {
|
|
53
|
+
return { test: (t) => e.includes(t) };
|
|
54
|
+
},
|
|
55
|
+
test(e, t) {
|
|
56
|
+
return typeof e > "u" ? !1 : t.test(e);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
], i = Object.assign({}, ...h.map((e) => ({ [e.id]: e }))), S = (e, t, r, s = !0) => {
|
|
60
|
+
const a = n(() => e.value ? i.search.normalize(
|
|
61
|
+
e.value,
|
|
62
|
+
t.value
|
|
63
|
+
) : ""), c = n(() => {
|
|
64
|
+
const o = a.value, d = t.value;
|
|
65
|
+
return (f) => i.search.test(f.text, o, d, !1);
|
|
66
|
+
}), l = n(() => r.value ?? []), u = n(() => m(s) && e.value);
|
|
67
|
+
return n(
|
|
68
|
+
() => u.value ? l.value.filter(c.value) : l.value
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
i as f,
|
|
73
|
+
S as u
|
|
74
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Internal JSON Forms integration for frontend KNIME projects",
|
|
5
5
|
"homepage": "https://knime.github.io/webapps-common/",
|
|
6
6
|
"license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
|
|
@@ -15,15 +15,17 @@
|
|
|
15
15
|
"tabbable": "6.2.0",
|
|
16
16
|
"uuid": "10.0.0",
|
|
17
17
|
"date-fns": "2.30.0",
|
|
18
|
-
"@knime/components": "1.15.
|
|
19
|
-
"@knime/rich-text-editor": "1.3.
|
|
18
|
+
"@knime/components": "1.15.1",
|
|
19
|
+
"@knime/rich-text-editor": "1.3.8",
|
|
20
20
|
"@knime/styles": "1.2.0",
|
|
21
|
+
"@knime/utils": "1.2.4",
|
|
21
22
|
"@knime/ui-extension-service": "1.2.1"
|
|
22
23
|
},
|
|
23
24
|
"peerDependencies": {
|
|
24
|
-
"vue": "3.
|
|
25
|
+
"vue": "~3.4.27"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
28
|
+
"vue": "~3.4.27",
|
|
27
29
|
"@tsconfig/node20": "20.1.4",
|
|
28
30
|
"@types/jsdom": "21.1.7",
|
|
29
31
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -45,15 +47,17 @@
|
|
|
45
47
|
"vitest": "2.1.1",
|
|
46
48
|
"vue-tsc": "^2.1.6"
|
|
47
49
|
},
|
|
48
|
-
"main": "dist/knime-jsonforms.js",
|
|
49
50
|
"exports": {
|
|
50
51
|
".": {
|
|
51
52
|
"import": "./dist/knime-jsonforms.js",
|
|
52
|
-
"types": "./dist/
|
|
53
|
+
"types": "./dist/knime-jsonforms.d.ts"
|
|
54
|
+
},
|
|
55
|
+
"./testing": {
|
|
56
|
+
"import": "./dist/testing.js",
|
|
57
|
+
"types": "./dist/testing.d.ts"
|
|
53
58
|
},
|
|
54
59
|
"./styles": "./dist/knime-jsonforms.css"
|
|
55
60
|
},
|
|
56
|
-
"types": "dist/index.d.ts",
|
|
57
61
|
"files": [
|
|
58
62
|
"dist",
|
|
59
63
|
"CHANGELOG.md"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as s, createBlock as t, mergeProps as a } from "vue";
|
|
2
|
-
import { r as i, o as m } from "./index-1mTLieVA.js";
|
|
3
|
-
import f from "./SimpleTwinlistControl-D6E8DEoD.js";
|
|
4
|
-
const d = /* @__PURE__ */ n({
|
|
5
|
-
__name: "AnyOfTwinlist",
|
|
6
|
-
props: i(),
|
|
7
|
-
setup(_) {
|
|
8
|
-
const p = (e) => {
|
|
9
|
-
var r, o;
|
|
10
|
-
return (o = (r = e == null ? void 0 : e.schema) == null ? void 0 : r.anyOf) == null ? void 0 : o.map(m);
|
|
11
|
-
};
|
|
12
|
-
return (e, r) => (s(), t(f, a(e.$props, { "options-generator": p }), null, 16));
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
d as default
|
|
17
|
-
};
|
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as h, createElementVNode as p, defineComponent as N, computed as b, createVNode as f, unref as E, toDisplayString as W, createCommentVNode as A, provide as L, onMounted as j, onUnmounted as q, Fragment as R, normalizeStyle as Q, renderSlot as T, renderList as K, resolveComponent as m, createBlock as $, withCtx as w, ref as F, watch as U, nextTick as z, normalizeClass as X, mergeProps as V, createTextVNode as Y } from "vue";
|
|
2
|
-
import { p as M, g as Z, _ as k, q as I, t as ee, v as te, w as oe, x, y as ne, z as re, A as se, F as ae, G as ie, s as le, B as de, l as ce, r as ue, H as me, J as pe, K as he, M as ve, N as ye, O as fe, P as ge, Q as we } from "./index-1mTLieVA.js";
|
|
3
|
-
import { A as _e, a as Ae } from "./arrow-up-Dsq3EgtE.js";
|
|
4
|
-
const Ie = {
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
stroke: "#000",
|
|
8
|
-
"stroke-linejoin": "round",
|
|
9
|
-
viewBox: "0 0 32 32"
|
|
10
|
-
}, Ce = /* @__PURE__ */ p("path", { d: "m26 7-3 22.5H9L6 7M4 7h24M12 7V2.5h8V7" }, null, -1), Te = [
|
|
11
|
-
Ce
|
|
12
|
-
];
|
|
13
|
-
function $e(e, t) {
|
|
14
|
-
return c(), h("svg", Ie, [...Te]);
|
|
15
|
-
}
|
|
16
|
-
const De = { render: $e }, Ee = {
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
-
fill: "none",
|
|
19
|
-
stroke: "#000",
|
|
20
|
-
viewBox: "0 0 32 32"
|
|
21
|
-
}, be = /* @__PURE__ */ p("circle", {
|
|
22
|
-
cx: "16",
|
|
23
|
-
cy: "16",
|
|
24
|
-
r: "12.92"
|
|
25
|
-
}, null, -1), Be = /* @__PURE__ */ p("line", {
|
|
26
|
-
x1: "8.499",
|
|
27
|
-
x2: "24.48",
|
|
28
|
-
y1: "15.934",
|
|
29
|
-
y2: "15.934"
|
|
30
|
-
}, null, -1), Le = /* @__PURE__ */ p("line", {
|
|
31
|
-
x1: "15.99",
|
|
32
|
-
x2: "15.99",
|
|
33
|
-
y1: "23.991",
|
|
34
|
-
y2: "8.009"
|
|
35
|
-
}, null, -1), ke = [
|
|
36
|
-
be,
|
|
37
|
-
Be,
|
|
38
|
-
Le
|
|
39
|
-
];
|
|
40
|
-
function Se(e, t) {
|
|
41
|
-
return c(), h("svg", Ee, [...ke]);
|
|
42
|
-
}
|
|
43
|
-
const Pe = { render: Se }, Re = { class: "vertical" }, Fe = { key: 0 }, Ue = /* @__PURE__ */ N({
|
|
44
|
-
__name: "ArrayLayoutItemLabel",
|
|
45
|
-
props: {
|
|
46
|
-
titleConfig: {},
|
|
47
|
-
subTitleProvider: {},
|
|
48
|
-
index: {}
|
|
49
|
-
},
|
|
50
|
-
setup(e) {
|
|
51
|
-
const t = e, o = t.titleConfig, r = o.type === "provided" ? M(o.provider, "") : b(() => `${o.title} ${t.index + 1}`), d = M(t.subTitleProvider, "");
|
|
52
|
-
return (n, l) => (c(), h("div", Re, [
|
|
53
|
-
f(E(Z), {
|
|
54
|
-
text: E(r),
|
|
55
|
-
compact: ""
|
|
56
|
-
}, null, 8, ["text"]),
|
|
57
|
-
E(d) ? (c(), h("span", Fe, W(E(d)), 1)) : A("", !0)
|
|
58
|
-
]));
|
|
59
|
-
}
|
|
60
|
-
}), Me = /* @__PURE__ */ k(Ue, [["__scopeId", "data-v-288d00d0"]]), Ne = (e, t) => {
|
|
61
|
-
const o = "addStateProviderListener", r = I(o);
|
|
62
|
-
L(o, ({ id: n, indexIds: l = [], indices: s = [] }, i) => r(
|
|
63
|
-
{
|
|
64
|
-
id: n,
|
|
65
|
-
indexIds: [e, ...l],
|
|
66
|
-
indices: [t, ...s]
|
|
67
|
-
},
|
|
68
|
-
i
|
|
69
|
-
));
|
|
70
|
-
}, Oe = (e) => {
|
|
71
|
-
const t = "trigger", o = I(t);
|
|
72
|
-
L(t, ({
|
|
73
|
-
id: s,
|
|
74
|
-
indexIds: i = []
|
|
75
|
-
}) => o({
|
|
76
|
-
id: s,
|
|
77
|
-
indexIds: [e, ...i]
|
|
78
|
-
}));
|
|
79
|
-
const d = "isTriggerActive", n = I(d);
|
|
80
|
-
L(d, ({ id: s, indexIds: i = [] }) => n({
|
|
81
|
-
id: s,
|
|
82
|
-
indexIds: [e, ...i]
|
|
83
|
-
}));
|
|
84
|
-
}, Ve = { class: "item-header" }, We = { class: "elements" }, Ke = {
|
|
85
|
-
key: 1,
|
|
86
|
-
class: "element"
|
|
87
|
-
}, ze = { class: "form-component" }, xe = { class: "compensate-label" }, Je = /* @__PURE__ */ N({
|
|
88
|
-
__name: "ArrayLayoutItem",
|
|
89
|
-
props: {
|
|
90
|
-
elements: {},
|
|
91
|
-
elementCheckboxScope: {},
|
|
92
|
-
arrayElementTitle: { type: [Boolean, Object] },
|
|
93
|
-
subTitleProvider: {},
|
|
94
|
-
index: {},
|
|
95
|
-
path: {},
|
|
96
|
-
hasBeenAdded: { type: Boolean },
|
|
97
|
-
id: {},
|
|
98
|
-
idsRecord: {}
|
|
99
|
-
},
|
|
100
|
-
setup(e) {
|
|
101
|
-
const t = e;
|
|
102
|
-
t.hasBeenAdded && ee(), Ne(t.id, t.index), Oe(t.id);
|
|
103
|
-
const o = te(t.idsRecord, t.id);
|
|
104
|
-
L(
|
|
105
|
-
"createArrayAtPath",
|
|
106
|
-
(n) => oe(o, n)
|
|
107
|
-
);
|
|
108
|
-
const r = b(() => x(t.path, `${t.index}`)), d = I("sendAlert");
|
|
109
|
-
return j(() => {
|
|
110
|
-
!t.arrayElementTitle && t.elements.length > 1 && d({
|
|
111
|
-
message: "For displaying more than one row of widgets within an array layout element, the configuration must provide a title for an element.",
|
|
112
|
-
type: ne.ERROR
|
|
113
|
-
});
|
|
114
|
-
}), q(() => {
|
|
115
|
-
re(t.idsRecord, t.id);
|
|
116
|
-
}), (n, l) => n.arrayElementTitle ? (c(), h(R, { key: 0 }, [
|
|
117
|
-
p("div", Ve, [
|
|
118
|
-
p("div", {
|
|
119
|
-
class: "left",
|
|
120
|
-
style: Q({ alignItems: n.subTitleProvider ? "normal" : "baseline" })
|
|
121
|
-
}, [
|
|
122
|
-
n.elementCheckboxScope ? T(n.$slots, "renderer", {
|
|
123
|
-
key: 0,
|
|
124
|
-
path: r.value,
|
|
125
|
-
element: {
|
|
126
|
-
type: "Control",
|
|
127
|
-
scope: n.elementCheckboxScope,
|
|
128
|
-
options: {
|
|
129
|
-
format: E(se)
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}, void 0, !0) : A("", !0),
|
|
133
|
-
f(Me, {
|
|
134
|
-
"title-config": n.arrayElementTitle,
|
|
135
|
-
"sub-title-provider": n.subTitleProvider,
|
|
136
|
-
index: n.index
|
|
137
|
-
}, null, 8, ["title-config", "sub-title-provider", "index"])
|
|
138
|
-
], 4),
|
|
139
|
-
T(n.$slots, "controls", {}, void 0, !0)
|
|
140
|
-
]),
|
|
141
|
-
p("div", We, [
|
|
142
|
-
(c(!0), h(R, null, K(n.elements, ([s, i]) => T(n.$slots, "renderer", {
|
|
143
|
-
key: `${r.value}-${s}`,
|
|
144
|
-
path: r.value,
|
|
145
|
-
element: i
|
|
146
|
-
}, void 0, !0)), 128))
|
|
147
|
-
])
|
|
148
|
-
], 64)) : (c(), h("div", Ke, [
|
|
149
|
-
p("div", ze, [
|
|
150
|
-
T(n.$slots, "renderer", {
|
|
151
|
-
element: n.elements[0][1],
|
|
152
|
-
path: r.value
|
|
153
|
-
}, void 0, !0)
|
|
154
|
-
]),
|
|
155
|
-
p("div", xe, [
|
|
156
|
-
T(n.$slots, "controls", {}, void 0, !0)
|
|
157
|
-
])
|
|
158
|
-
]));
|
|
159
|
-
}
|
|
160
|
-
}), Ge = /* @__PURE__ */ k(Je, [["__scopeId", "data-v-97091d9a"]]), He = {
|
|
161
|
-
name: "ArrayLayoutItemControls",
|
|
162
|
-
components: {
|
|
163
|
-
TrashIcon: De,
|
|
164
|
-
FunctionButton: ae,
|
|
165
|
-
ArrowUpIcon: _e,
|
|
166
|
-
ArrowDownIcon: Ae
|
|
167
|
-
},
|
|
168
|
-
props: {
|
|
169
|
-
isFirst: {
|
|
170
|
-
type: Boolean,
|
|
171
|
-
default: !1
|
|
172
|
-
},
|
|
173
|
-
isLast: {
|
|
174
|
-
type: Boolean,
|
|
175
|
-
default: !1
|
|
176
|
-
},
|
|
177
|
-
showSortControls: {
|
|
178
|
-
type: Boolean,
|
|
179
|
-
default: !1
|
|
180
|
-
},
|
|
181
|
-
showDeleteButton: {
|
|
182
|
-
type: Boolean,
|
|
183
|
-
default: !1
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
emits: ["moveUp", "moveDown", "delete"]
|
|
187
|
-
}, je = { class: "item-controls" };
|
|
188
|
-
function qe(e, t, o, r, d, n) {
|
|
189
|
-
const l = m("ArrowUpIcon"), s = m("FunctionButton"), i = m("ArrowDownIcon"), v = m("TrashIcon");
|
|
190
|
-
return c(), h("div", je, [
|
|
191
|
-
T(e.$slots, "before", {}, void 0, !0),
|
|
192
|
-
o.showSortControls ? (c(), $(s, {
|
|
193
|
-
key: 0,
|
|
194
|
-
disabled: o.isFirst,
|
|
195
|
-
title: "Move up",
|
|
196
|
-
onClick: t[0] || (t[0] = (g) => e.$emit("moveUp"))
|
|
197
|
-
}, {
|
|
198
|
-
default: w(() => [
|
|
199
|
-
f(l)
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}, 8, ["disabled"])) : A("", !0),
|
|
203
|
-
o.showSortControls ? (c(), $(s, {
|
|
204
|
-
key: 1,
|
|
205
|
-
disabled: o.isLast,
|
|
206
|
-
title: "Move down",
|
|
207
|
-
onClick: t[1] || (t[1] = (g) => e.$emit("moveDown"))
|
|
208
|
-
}, {
|
|
209
|
-
default: w(() => [
|
|
210
|
-
f(i)
|
|
211
|
-
]),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["disabled"])) : A("", !0),
|
|
214
|
-
o.showDeleteButton ? (c(), $(s, {
|
|
215
|
-
key: 2,
|
|
216
|
-
class: "trashButton",
|
|
217
|
-
title: "Remove",
|
|
218
|
-
onClick: t[2] || (t[2] = (g) => e.$emit("delete"))
|
|
219
|
-
}, {
|
|
220
|
-
default: w(() => [
|
|
221
|
-
f(v, { class: "trash" })
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
})) : A("", !0)
|
|
225
|
-
]);
|
|
226
|
-
}
|
|
227
|
-
const Qe = /* @__PURE__ */ k(He, [["render", qe], ["__scopeId", "data-v-f4f565bd"]]), Xe = 200, Ye = (e) => e.reduce((t, o) => t + o, ""), Ze = (e, t) => {
|
|
228
|
-
const o = F(/* @__PURE__ */ new Map()), r = F(!1), d = I("isTriggerActive"), n = () => {
|
|
229
|
-
let l = !1;
|
|
230
|
-
d({ id: ie }).then((s) => {
|
|
231
|
-
l = !0, s.state === "SUCCESS" && (o.value = s.result.reduce((i, { indices: v, isActive: g }) => (i.set(v[0], g), i), /* @__PURE__ */ new Map()), r.value = !1);
|
|
232
|
-
}), setTimeout(() => {
|
|
233
|
-
l || (r.value = !0);
|
|
234
|
-
}, Xe), r.value = !1;
|
|
235
|
-
};
|
|
236
|
-
return U(
|
|
237
|
-
() => Ye(t.value),
|
|
238
|
-
() => {
|
|
239
|
-
e && (t.value.every((s) => o.value.has(s)) && o.value.size === t.value.length || z(n));
|
|
240
|
-
},
|
|
241
|
-
{ immediate: !0 }
|
|
242
|
-
), { isEdited: o, isEditedIsLoading: r };
|
|
243
|
-
}, et = N({
|
|
244
|
-
name: "ArrayLayout",
|
|
245
|
-
components: {
|
|
246
|
-
DispatchRenderer: le,
|
|
247
|
-
Button: de,
|
|
248
|
-
PlusIcon: Pe,
|
|
249
|
-
DialogComponentWrapper: ce,
|
|
250
|
-
ArrayLayoutItemControls: Qe,
|
|
251
|
-
ArrayLayoutItem: Ge
|
|
252
|
-
},
|
|
253
|
-
props: {
|
|
254
|
-
...ue()
|
|
255
|
-
},
|
|
256
|
-
setup(e) {
|
|
257
|
-
var O;
|
|
258
|
-
const { handleChange: t, control: o } = me(
|
|
259
|
-
e
|
|
260
|
-
), r = b(() => {
|
|
261
|
-
var a;
|
|
262
|
-
return ((a = o.value.data) == null ? void 0 : a.length) ?? 0;
|
|
263
|
-
}), d = F(r.value), n = M(
|
|
264
|
-
(O = o.value.uischema.options) == null ? void 0 : O.elementDefaultValueProvider,
|
|
265
|
-
null
|
|
266
|
-
);
|
|
267
|
-
pe({
|
|
268
|
-
dataPath: o.value.path,
|
|
269
|
-
value: r,
|
|
270
|
-
valueComparator: {
|
|
271
|
-
setSettings: (a) => {
|
|
272
|
-
d.value = a;
|
|
273
|
-
},
|
|
274
|
-
isModified: (a) => d.value !== a
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
const l = b(
|
|
278
|
-
() => o.value.data.map(
|
|
279
|
-
(a) => a._id ? a : {
|
|
280
|
-
...a,
|
|
281
|
-
_id: he()
|
|
282
|
-
}
|
|
283
|
-
)
|
|
284
|
-
), s = I("createArrayAtPath")(
|
|
285
|
-
ve(o.value.uischema.scope)
|
|
286
|
-
), i = b(() => l.value.map(({ _id: a }) => a)), v = (a) => a.reduce((y, _) => y + _, "");
|
|
287
|
-
U(
|
|
288
|
-
() => i.value,
|
|
289
|
-
(a, y) => {
|
|
290
|
-
y && v(a) === v(y) || (a.forEach((_, H) => ye(_, H)), y == null || y.filter((_) => !a.includes(_)).forEach((_) => fe(_)));
|
|
291
|
-
},
|
|
292
|
-
{ immediate: !0 }
|
|
293
|
-
);
|
|
294
|
-
const { isEdited: g, isEditedIsLoading: S } = Ze(
|
|
295
|
-
o.value.uischema.options.withEditAndReset,
|
|
296
|
-
i
|
|
297
|
-
);
|
|
298
|
-
U(
|
|
299
|
-
() => v(i.value),
|
|
300
|
-
() => t(o.value.path, l.value),
|
|
301
|
-
{ immediate: !0 }
|
|
302
|
-
);
|
|
303
|
-
const {
|
|
304
|
-
addItem: D,
|
|
305
|
-
moveDown: u,
|
|
306
|
-
moveUp: C,
|
|
307
|
-
removeItems: P,
|
|
308
|
-
control: J
|
|
309
|
-
} = ge(e), G = I("updateData"), B = (a) => async (...y) => {
|
|
310
|
-
a(...y)(), await z(), G(o.value.path);
|
|
311
|
-
};
|
|
312
|
-
return {
|
|
313
|
-
addItem: B(D),
|
|
314
|
-
moveDown: B(u),
|
|
315
|
-
moveUp: B(C),
|
|
316
|
-
removeItems: B(P),
|
|
317
|
-
control: J,
|
|
318
|
-
numElements: r,
|
|
319
|
-
cleanArrayLength: d,
|
|
320
|
-
signedData: l,
|
|
321
|
-
idsRecord: s,
|
|
322
|
-
providedElementDefaultValue: n,
|
|
323
|
-
isEdited: g,
|
|
324
|
-
isEditedIsLoading: S
|
|
325
|
-
};
|
|
326
|
-
},
|
|
327
|
-
data() {
|
|
328
|
-
return {
|
|
329
|
-
arrayElementTitleKey: "arrayElementTitle",
|
|
330
|
-
editResetButtonFormat: we,
|
|
331
|
-
elementCountBeforeAddingOne: -1
|
|
332
|
-
};
|
|
333
|
-
},
|
|
334
|
-
computed: {
|
|
335
|
-
showSortControls() {
|
|
336
|
-
return this.control.uischema.options.showSortButtons;
|
|
337
|
-
},
|
|
338
|
-
showEditAndResetControls() {
|
|
339
|
-
return this.control.uischema.options.withEditAndReset;
|
|
340
|
-
},
|
|
341
|
-
elementCheckboxScope() {
|
|
342
|
-
return this.control.uischema.options.elementCheckboxScope;
|
|
343
|
-
},
|
|
344
|
-
showAddAndDeleteButtons() {
|
|
345
|
-
return !this.control.uischema.options.hasFixedSize;
|
|
346
|
-
},
|
|
347
|
-
elements() {
|
|
348
|
-
return this.control.uischema.options.detail ? Object.entries(this.control.uischema.options.detail) : [];
|
|
349
|
-
},
|
|
350
|
-
arrayElementTitle() {
|
|
351
|
-
var o, r;
|
|
352
|
-
const e = (o = this.control.uischema.options) == null ? void 0 : o.elementTitleProvider;
|
|
353
|
-
if (e)
|
|
354
|
-
return {
|
|
355
|
-
type: "provided",
|
|
356
|
-
provider: e
|
|
357
|
-
};
|
|
358
|
-
const t = (r = this.control.uischema.options) == null ? void 0 : r[this.arrayElementTitleKey];
|
|
359
|
-
return t ? {
|
|
360
|
-
type: "enumerated",
|
|
361
|
-
title: t
|
|
362
|
-
} : !1;
|
|
363
|
-
},
|
|
364
|
-
subTitleProvider() {
|
|
365
|
-
var e;
|
|
366
|
-
return (e = this.control.uischema.options) == null ? void 0 : e.elementSubTitleProvider;
|
|
367
|
-
},
|
|
368
|
-
useCardLayout() {
|
|
369
|
-
return this.arrayElementTitle !== !1;
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
methods: {
|
|
373
|
-
createDefaultValue(e) {
|
|
374
|
-
if (this.providedElementDefaultValue !== null)
|
|
375
|
-
return this.providedElementDefaultValue;
|
|
376
|
-
const t = {};
|
|
377
|
-
return Object.keys(e.properties).forEach((o) => {
|
|
378
|
-
t[o] = e.properties[o].default;
|
|
379
|
-
}), t;
|
|
380
|
-
},
|
|
381
|
-
addDefaultItem() {
|
|
382
|
-
this.elementCountBeforeAddingOne = this.numElements, this.addItem(
|
|
383
|
-
this.control.path,
|
|
384
|
-
this.createDefaultValue(
|
|
385
|
-
this.control.schema
|
|
386
|
-
)
|
|
387
|
-
);
|
|
388
|
-
},
|
|
389
|
-
moveItemUp(e) {
|
|
390
|
-
this.moveUp(this.control.path, e);
|
|
391
|
-
},
|
|
392
|
-
moveItemDown(e) {
|
|
393
|
-
this.moveDown(this.control.path, e);
|
|
394
|
-
},
|
|
395
|
-
deleteItem(e) {
|
|
396
|
-
this.removeItems(x(this.control.path, ""), [e]);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}), tt = { class: "array" };
|
|
400
|
-
function ot(e, t, o, r, d, n) {
|
|
401
|
-
const l = m("DispatchRenderer"), s = m("ArrayLayoutItemControls"), i = m("ArrayLayoutItem"), v = m("PlusIcon"), g = m("Button"), S = m("DialogComponentWrapper");
|
|
402
|
-
return c(), $(S, { control: e.control }, {
|
|
403
|
-
default: w(() => [
|
|
404
|
-
p("div", tt, [
|
|
405
|
-
(c(!0), h(R, null, K(e.signedData, (D, u) => (c(), h("div", {
|
|
406
|
-
key: `${e.control.path}-${D._id}`,
|
|
407
|
-
class: X(["item", { card: e.useCardLayout }])
|
|
408
|
-
}, [
|
|
409
|
-
f(i, {
|
|
410
|
-
id: D._id,
|
|
411
|
-
"ids-record": e.idsRecord,
|
|
412
|
-
elements: e.elements,
|
|
413
|
-
"array-element-title": e.arrayElementTitle,
|
|
414
|
-
"sub-title-provider": e.subTitleProvider,
|
|
415
|
-
path: e.control.path,
|
|
416
|
-
index: u,
|
|
417
|
-
"has-been-added": u === e.elementCountBeforeAddingOne,
|
|
418
|
-
"element-checkbox-scope": e.elementCheckboxScope
|
|
419
|
-
}, {
|
|
420
|
-
renderer: w(({ element: C, path: P }) => [
|
|
421
|
-
f(l, V({ ref_for: !0 }, e.control, {
|
|
422
|
-
uischema: C,
|
|
423
|
-
path: P
|
|
424
|
-
}), null, 16, ["uischema", "path"])
|
|
425
|
-
]),
|
|
426
|
-
controls: w(() => [
|
|
427
|
-
f(s, {
|
|
428
|
-
"is-first": u === 0,
|
|
429
|
-
"is-last": u === e.control.data.length - 1,
|
|
430
|
-
"show-sort-controls": e.showSortControls,
|
|
431
|
-
"show-delete-button": e.showAddAndDeleteButtons,
|
|
432
|
-
onMoveUp: (C) => e.moveItemUp(u),
|
|
433
|
-
onMoveDown: (C) => e.moveItemDown(u),
|
|
434
|
-
onDelete: (C) => e.deleteItem(u)
|
|
435
|
-
}, {
|
|
436
|
-
before: w(() => [
|
|
437
|
-
e.showEditAndResetControls ? (c(), $(l, V({
|
|
438
|
-
key: 0,
|
|
439
|
-
ref_for: !0
|
|
440
|
-
}, e.control, {
|
|
441
|
-
schema: {
|
|
442
|
-
type: "object",
|
|
443
|
-
properties: {
|
|
444
|
-
_edit: {
|
|
445
|
-
type: "boolean"
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
uischema: {
|
|
450
|
-
scope: "#/properties/_edit",
|
|
451
|
-
options: {
|
|
452
|
-
format: e.editResetButtonFormat
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
path: `${e.control.path}.${u}`,
|
|
456
|
-
"initial-is-edited": e.isEdited.get(D._id) ? "" : void 0,
|
|
457
|
-
"is-loading": e.isEditedIsLoading ? "" : void 0
|
|
458
|
-
}), null, 16, ["uischema", "path", "initial-is-edited", "is-loading"])) : A("", !0)
|
|
459
|
-
]),
|
|
460
|
-
_: 2
|
|
461
|
-
}, 1032, ["is-first", "is-last", "show-sort-controls", "show-delete-button", "onMoveUp", "onMoveDown", "onDelete"])
|
|
462
|
-
]),
|
|
463
|
-
_: 2
|
|
464
|
-
}, 1032, ["id", "ids-record", "elements", "array-element-title", "sub-title-provider", "path", "index", "has-been-added", "element-checkbox-scope"])
|
|
465
|
-
], 2))), 128)),
|
|
466
|
-
e.showAddAndDeleteButtons ? (c(), $(g, {
|
|
467
|
-
key: 0,
|
|
468
|
-
class: "add-item-button",
|
|
469
|
-
"with-border": "",
|
|
470
|
-
compact: "",
|
|
471
|
-
onClick: e.addDefaultItem
|
|
472
|
-
}, {
|
|
473
|
-
default: w(() => [
|
|
474
|
-
f(v),
|
|
475
|
-
Y(" " + W(e.control.uischema.options.addButtonText || "New"), 1)
|
|
476
|
-
]),
|
|
477
|
-
_: 1
|
|
478
|
-
}, 8, ["onClick"])) : A("", !0)
|
|
479
|
-
])
|
|
480
|
-
]),
|
|
481
|
-
_: 1
|
|
482
|
-
}, 8, ["control"]);
|
|
483
|
-
}
|
|
484
|
-
const at = /* @__PURE__ */ k(et, [["render", ot], ["__scopeId", "data-v-0cb3d879"]]);
|
|
485
|
-
export {
|
|
486
|
-
at as default
|
|
487
|
-
};
|