@knime/jsonforms 3.0.0 → 3.1.0
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 +15 -0
- package/dist/AnyOfTwinlist-iPxS5C9Y.js +24 -0
- package/dist/CheckboxControl-C99OdmDL.js +41 -0
- package/dist/CheckboxesControl-BZhMhT9x.js +47 -0
- package/dist/ColorControl-D1dNnNbO.js +38 -0
- package/dist/ColorPreviewControl-B4zix2kb.js +67 -0
- package/dist/ComboBoxControl-BGWAD9IW.js +47 -0
- package/dist/DateControl-D0HfVrtz.js +49 -0
- package/dist/DateTimeControl-kTQZI9JC.js +103 -0
- package/dist/DateTimeFormatPickerControl-BiYcsKSn.js +44 -0
- package/dist/DropdownControl-jsayV3N5.js +42 -0
- package/dist/ExecutorCoresControl-DNo2SaC6.js +26 -0
- package/dist/ExecutorMemoryControl-C8RLYQdd.js +26 -0
- package/dist/FileUploadControl-Cv3xWTAS.js +58 -0
- package/dist/GridSelectionControl-BqtaGQYg.js +86 -0
- package/dist/HorizontalLayout-B_lETfCu.js +29 -0
- package/dist/IntegerControl-Cr8SO0xH.js +22 -0
- package/dist/IntervalControl-BdjKEwLy.js +53 -0
- package/dist/LinkControl-QMwkCJlj.js +37 -0
- package/dist/LoadingDropdown-BpU4Uiin.js +61 -0
- package/dist/ManualTwinlistControl-CPILp7H_.js +75 -0
- package/dist/NameFilter-CYYPRj-2.js +29 -0
- package/dist/NumberControl-ODy5GAlR.js +22 -0
- package/dist/NumberControlBase-Cl3QcvzB.js +56 -0
- package/dist/OneOfDropdown-CMPRAraI.js +44 -0
- package/dist/ProgressButtonControl-BimHrSZd.js +51 -0
- package/dist/RadioButtonsWithDescriptionControl-DJu3ODo7.js +58 -0
- package/dist/RadioControl-D_NE5s4n.js +22 -0
- package/dist/RadioControlBase-knF86px0.js +69 -0
- package/dist/ResourceControlBase-BVMVVYns.js +64 -0
- package/dist/RichTextControl-JIM904_P.js +72 -0
- package/dist/SectionLayout-BDYjoUXM.js +41 -0
- package/dist/SettingsSubPanelLayout-DVw_AsU6.js +53 -0
- package/dist/SimpleTwinlistControl-BNnOmbN-.js +24 -0
- package/dist/SingleSelectControl-CJV9VMZm.js +58 -0
- package/dist/SortListControl-D-ifoRva.js +71 -0
- package/dist/TeamAndSpacesControl-D1FvyeCV.js +56 -0
- package/dist/TeamResourceControl-DyCO6-Nk.js +26 -0
- package/dist/TextAreaControl-7QziyTgn.js +40 -0
- package/dist/TimeControl-B29iTlhP.js +71 -0
- package/dist/TimeframesControl-Wvu--J0V.js +46 -0
- package/dist/TwinlistControlBase-300a_qUR.js +55 -0
- package/dist/TypedStringFilter-Ek7bQ-7j.js +35 -0
- package/dist/ValueSwitchControl-H2t2Wgo6.js +22 -0
- package/dist/VerticalLayout-zV890HYr.js +32 -0
- package/dist/ZonedDateTimeControl-DoE2T9iz.js +88 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/inject-DEsHVs5q.js +5 -0
- package/dist/knime-jsonforms.css +2 -1
- package/dist/knime-jsonforms.d.ts +1 -1
- package/dist/knime-jsonforms.js +3 -219
- package/dist/magic-string.es-DrXXtutX.js +659 -0
- package/dist/plainDateTimeUtils-5uOCJ4N5.js +58 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +53 -435
- package/dist/src/higherOrderComponents/control/DescriptionPopover.vue.d.ts +2 -1
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +21 -21
- package/dist/src/layoutComponents/Form.vue.d.ts +9 -12
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +2 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +9 -13
- package/dist/src/layoutComponents/SettingsSubPanelLayout.vue.d.ts +9 -13
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +2 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +10 -14
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -15
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +11 -10
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +2 -1
- package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayoutItemControls.vue.d.ts +3 -2
- package/dist/src/loading/LoadingDialog.vue.d.ts +2 -1
- package/dist/src/renderers/checkboxRenderer.d.ts +5 -4
- package/dist/src/renderers/colorPreviewRenderer.d.ts +1 -1
- package/dist/src/renderers/defaultRenderers.d.ts +22 -21
- package/dist/src/renderers/fallbackRenderers.d.ts +6 -5
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/linkRenderer.d.ts +1 -1
- package/dist/src/renderers/progressButtonRenderer.d.ts +3 -3
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +3 -3
- package/dist/src/renderers/sectionSubPanelLayoutRenderer.d.ts +3 -3
- package/dist/src/renderers/simpleButtonRenderer.d.ts +3 -3
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +11 -14
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ColorControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ColorPreviewControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/FieldControl.vue.d.ts +12 -7
- package/dist/src/uiComponents/FieldRenderer.vue.d.ts +12 -7
- package/dist/src/uiComponents/FileUploadControl.vue.d.ts +2 -3
- package/dist/src/uiComponents/GridSelectionControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/LinkControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/PasswordControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ProgressButtonControl.vue.d.ts +9 -13
- package/dist/src/uiComponents/QuantityControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioButtonsWithDescriptionControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -13
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TeamAndSpacesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +3 -454
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeframesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/UsernameControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/colorPreview/ColorPreviewEmptyState.vue.d.ts +2 -1
- package/dist/src/uiComponents/colorPreview/GradientPreview.vue.d.ts +2 -1
- package/dist/src/uiComponents/colorPreview/PalettePreview.vue.d.ts +2 -1
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +3 -2
- package/dist/src/uiComponents/resourceControls/ExecutorCoresControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/resourceControls/ExecutorMemoryControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/resourceControls/ResourceControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/resourceControls/TeamResourceControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +2 -141
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +3 -2
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/src-DwqijroM.js +1269 -0
- package/dist/temporal-polyfill-D4u1I_Z-.js +3114 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +15278 -19038
- package/dist/toKdsPossibleValues-Dd_qzlUI.js +14 -0
- package/dist/useBuiltinValidations-B_Drc2y-.js +43 -0
- package/dist/usePossibleValues-Cx6iSt_X.js +15 -0
- package/dist/useProvidedState-478_KXOe.js +26 -0
- package/dist/useUnknownValuesInTwinlist-BvCTc3hC.js +205 -0
- package/dist/utils-DmZLgn8X.js +12 -0
- package/package.json +7 -7
- package/dist/AnyOfTwinlist-CcodfEXw.js +0 -23
- package/dist/CheckboxControl-B_MAR82s.js +0 -41
- package/dist/CheckboxesControl--bG4aF6O.js +0 -39
- package/dist/ColorControl-CEp2Ei7R.js +0 -29
- package/dist/ColorPreviewControl-j0uQH95J.js +0 -90
- package/dist/ComboBoxControl-BpJzwiv6.js +0 -39
- package/dist/DateControl-83Fi6P5y.js +0 -44
- package/dist/DateTimeControl-C-D8bFm3.js +0 -103
- package/dist/DateTimeFormatPickerControl-B9gl_66T.js +0 -35
- package/dist/DropdownControl-CtveoldX.js +0 -32
- package/dist/ExecutorCoresControl-CErHidL7.js +0 -39
- package/dist/ExecutorMemoryControl-DgSM86Yg.js +0 -35
- package/dist/FileUploadControl-BBfnxURy.js +0 -56
- package/dist/GridSelectionControl-BaI4j0Jj.js +0 -117
- package/dist/HorizontalLayout-D1SRCyhL.js +0 -26
- package/dist/IntegerControl-v93Xw4DJ.js +0 -21
- package/dist/IntervalControl-CVlO_mFO.js +0 -52
- package/dist/LinkControl-j8GrcZZG.js +0 -36
- package/dist/LoadingDropdown.vue_vue_type_script_setup_true_lang-DFSHuMQ6.js +0 -57
- package/dist/ManualTwinlistControl-BzJehuHs.js +0 -74
- package/dist/MultimodeTwinlistControl-Br0DrpsZ.js +0 -4
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CHcU__0y.js +0 -159
- package/dist/NameFilter-BjuVseuX.js +0 -25
- package/dist/NumberControl-BF76FEhD.js +0 -21
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DMTsK83k.js +0 -52
- package/dist/OneOfDropdown-DpXmZauV.js +0 -35
- package/dist/ProgressButtonControl-t8QMA22a.js +0 -52
- package/dist/RadioButtonsWithDescriptionControl-CeZ4qYCr.js +0 -58
- package/dist/RadioControl-DOn1Kre5.js +0 -21
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-CExBvDXt.js +0 -57
- package/dist/ResourceControlBase-CX97xRiy.js +0 -70
- package/dist/RichTextControl-BrVmkMgh.js +0 -60
- package/dist/SectionHeading-YAJTwOE4.js +0 -61
- package/dist/SectionLayout-BYOxuxY2.js +0 -47
- package/dist/SettingsSubPanel-DgISjowU.js +0 -5
- package/dist/SettingsSubPanelLayout-BQJCnTqx.js +0 -69
- package/dist/SimpleButtonControl-GTX19t2_.js +0 -50
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js +0 -1284
- package/dist/SimpleTwinlistControl-DOH1_L25.js +0 -23
- package/dist/SingleSelectControl-mY_yYOyk.js +0 -58
- package/dist/SortListControl-D-Um5gEW.js +0 -81
- package/dist/TeamAndSpacesControl-fGumynvr.js +0 -66
- package/dist/TeamResourceControl--1Sj3-Ks.js +0 -35
- package/dist/TextAreaControl-Cwq-lNBk.js +0 -30
- package/dist/TextControl-MvbrNTGW.js +0 -4
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Cbv0bM2X.js +0 -53
- package/dist/TimeControl-WG0SC4_b.js +0 -71
- package/dist/TimeframesControl-CX5eKOGZ.js +0 -53
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-BKCvZF3X.js +0 -45
- package/dist/TypedStringFilter-BnWygKQJ.js +0 -27
- package/dist/ValueSwitchControl-BByKe7NK.js +0 -21
- package/dist/VerticalLayout-DIBkvSZ9.js +0 -30
- package/dist/VerticalLayoutBase-BEDnWcoh.js +0 -20
- package/dist/ZonedDateTimeControl-B45OygrC.js +0 -97
- package/dist/index-Blg1O3Fz.js +0 -15
- package/dist/index-_VUHzju5.js +0 -3210
- package/dist/magic-string.es-uPKorP4O.js +0 -663
- package/dist/plainDateTimeUtils-BZSKqp9i.js +0 -52
- package/dist/toKdsPossibleValues-BklBg3gG.js +0 -14
- package/dist/useBuiltinValidations-_4IBMopQ.js +0 -74
- package/dist/usePossibleValues-CXVLf00v.js +0 -16
- package/dist/useUnknownValuesInTwinlist-uXOCQkVS.js +0 -65
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { t } from "./temporal-polyfill-D4u1I_Z-.js";
|
|
3
|
+
import { computed as n, createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, unref as s } from "vue";
|
|
4
|
+
import { KdsTimeInput as c } from "@knime/kds-components";
|
|
5
|
+
//#region src/uiComponents/TimeframesControl.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var l = { class: "timeframe" }, u = /*#__PURE__*/ e(/* @__PURE__ */ a({
|
|
7
|
+
__name: "TimeframesControl",
|
|
8
|
+
props: {
|
|
9
|
+
control: {},
|
|
10
|
+
handleChange: { type: Function },
|
|
11
|
+
changeValue: { type: Function },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
error: { type: Boolean },
|
|
14
|
+
subText: {},
|
|
15
|
+
onRegisterValidation: { type: Function },
|
|
16
|
+
labelForId: {}
|
|
17
|
+
},
|
|
18
|
+
setup(e) {
|
|
19
|
+
let a = e, u = (e) => String(e).padStart(2, "0"), d = (e) => {
|
|
20
|
+
try {
|
|
21
|
+
return t.PlainTime.from(e);
|
|
22
|
+
} catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}, f = n(() => d(a.control.data?.start ?? "00:00:00")), p = n(() => d(a.control.data?.end ?? "00:00:00")), m = (e, t) => {
|
|
26
|
+
let n = t === "end" ? "59" : "00", r = e ? u(e.hour) : "00", i = e ? u(e.minute) : "00", o = {
|
|
27
|
+
...a.control.data,
|
|
28
|
+
[t]: `${r}:${i}:${n}`
|
|
29
|
+
};
|
|
30
|
+
a.changeValue(o);
|
|
31
|
+
};
|
|
32
|
+
return (e, t) => (o(), r("div", l, [i(s(c), {
|
|
33
|
+
label: "Between",
|
|
34
|
+
"max-granularity": "minute",
|
|
35
|
+
"model-value": f.value,
|
|
36
|
+
"onUpdate:modelValue": t[0] ||= (e) => m(e, "start")
|
|
37
|
+
}, null, 8, ["model-value"]), i(s(c), {
|
|
38
|
+
label: "and",
|
|
39
|
+
"max-granularity": "minute",
|
|
40
|
+
"model-value": p.value,
|
|
41
|
+
"onUpdate:modelValue": t[1] ||= (e) => m(e, "end")
|
|
42
|
+
}, null, 8, ["model-value"])]));
|
|
43
|
+
}
|
|
44
|
+
}), [["__scopeId", "data-v-f38723b8"]]);
|
|
45
|
+
//#endregion
|
|
46
|
+
export { u as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as e } from "./usePossibleValues-Cx6iSt_X.js";
|
|
2
|
+
import { t } from "./toKdsPossibleValues-Dd_qzlUI.js";
|
|
3
|
+
import { computed as n, createBlock as r, defineComponent as i, openBlock as a, toRef as o, unref as s } from "vue";
|
|
4
|
+
import { KdsTwinList as c } from "@knime/kds-components";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/uiComponents/twinlist/TwinlistControlBase.vue
|
|
7
|
+
var l = /* @__PURE__ */ i({
|
|
8
|
+
__name: "TwinlistControlBase",
|
|
9
|
+
props: {
|
|
10
|
+
control: {},
|
|
11
|
+
handleChange: { type: Function },
|
|
12
|
+
changeValue: { type: Function },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
error: { type: Boolean },
|
|
15
|
+
subText: {},
|
|
16
|
+
onRegisterValidation: { type: Function },
|
|
17
|
+
labelForId: {},
|
|
18
|
+
possibleValues: {}
|
|
19
|
+
},
|
|
20
|
+
setup(i) {
|
|
21
|
+
let l = i, { includedLabel: u, excludedLabel: d } = e(o(l, "control")), f = n(() => t(l.possibleValues ?? [])), p = n(() => {
|
|
22
|
+
let e = new Set(l.control.data ?? []);
|
|
23
|
+
return f.value.filter((t) => !e.has(t.id)).map((e) => e.id);
|
|
24
|
+
});
|
|
25
|
+
return (e, t) => (a(), r(s(c), {
|
|
26
|
+
id: i.labelForId,
|
|
27
|
+
ariaLabel: i.control.label,
|
|
28
|
+
disabled: i.disabled,
|
|
29
|
+
error: i.error,
|
|
30
|
+
"sub-text": i.subText,
|
|
31
|
+
"manually-included": i.control.data ?? [],
|
|
32
|
+
"manually-excluded": p.value,
|
|
33
|
+
"possible-values": f.value,
|
|
34
|
+
loading: i.possibleValues === null,
|
|
35
|
+
"exclude-label": s(d),
|
|
36
|
+
"include-label": s(u),
|
|
37
|
+
"onUpdate:manuallyIncluded": i.changeValue
|
|
38
|
+
}, null, 8, [
|
|
39
|
+
"id",
|
|
40
|
+
"ariaLabel",
|
|
41
|
+
"disabled",
|
|
42
|
+
"error",
|
|
43
|
+
"sub-text",
|
|
44
|
+
"manually-included",
|
|
45
|
+
"manually-excluded",
|
|
46
|
+
"possible-values",
|
|
47
|
+
"loading",
|
|
48
|
+
"exclude-label",
|
|
49
|
+
"include-label",
|
|
50
|
+
"onUpdate:manuallyIncluded"
|
|
51
|
+
]));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { l as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { n as e } from "./useUnknownValuesInTwinlist-BvCTc3hC.js";
|
|
2
|
+
import { computed as t, createBlock as n, defineComponent as r, mergeProps as i, openBlock as a } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/uiComponents/twinlist/TypedStringFilter.vue
|
|
5
|
+
var o = /* @__PURE__ */ r({
|
|
6
|
+
__name: "TypedStringFilter",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(r) {
|
|
18
|
+
let o = r, s = t(() => o.control.uischema.options);
|
|
19
|
+
return (t, r) => (a(), n(e, i({
|
|
20
|
+
...t.$props,
|
|
21
|
+
...t.$attrs
|
|
22
|
+
}, {
|
|
23
|
+
"show-unknown-values": "",
|
|
24
|
+
"unknown-values-text": s.value.unknownValuesText,
|
|
25
|
+
"empty-state-label": s.value.emptyStateLabel,
|
|
26
|
+
"show-type-filter": !s.value?.hideTypeFilter
|
|
27
|
+
}), null, 16, [
|
|
28
|
+
"unknown-values-text",
|
|
29
|
+
"empty-state-label",
|
|
30
|
+
"show-type-filter"
|
|
31
|
+
]));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./RadioControlBase-knF86px0.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, mergeProps as r, openBlock as i } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/uiComponents/ValueSwitchControl.vue
|
|
5
|
+
var a = /* @__PURE__ */ n({
|
|
6
|
+
__name: "ValueSwitchControl",
|
|
7
|
+
props: {
|
|
8
|
+
control: {},
|
|
9
|
+
handleChange: { type: Function },
|
|
10
|
+
changeValue: { type: Function },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
14
|
+
onRegisterValidation: { type: Function },
|
|
15
|
+
labelForId: {}
|
|
16
|
+
},
|
|
17
|
+
setup(n) {
|
|
18
|
+
return (n, a) => (i(), t(e, r(n.$props, { type: "valueSwitch" }), null, 16));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { u as e } from "./src-DwqijroM.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, openBlock as r, unref as i, withCtx as a } from "vue";
|
|
3
|
+
import { DispatchRenderer as o } from "@jsonforms/vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/layoutComponents/VerticalLayout.vue
|
|
6
|
+
var s = /* @__PURE__ */ n({
|
|
7
|
+
__name: "VerticalLayout",
|
|
8
|
+
props: { layout: {} },
|
|
9
|
+
setup(n) {
|
|
10
|
+
return (s, c) => (r(), t(e, { elements: n.layout.uischema.elements }, {
|
|
11
|
+
default: a(({ element: e, index: a }) => [(r(), t(i(o), {
|
|
12
|
+
key: `${n.layout.path}-${a}`,
|
|
13
|
+
schema: n.layout.schema,
|
|
14
|
+
uischema: e,
|
|
15
|
+
path: n.layout.path,
|
|
16
|
+
enabled: n.layout.enabled,
|
|
17
|
+
renderers: n.layout.renderers,
|
|
18
|
+
cells: n.layout.cells
|
|
19
|
+
}, null, 8, [
|
|
20
|
+
"schema",
|
|
21
|
+
"uischema",
|
|
22
|
+
"path",
|
|
23
|
+
"enabled",
|
|
24
|
+
"renderers",
|
|
25
|
+
"cells"
|
|
26
|
+
]))]),
|
|
27
|
+
_: 1
|
|
28
|
+
}, 8, ["elements"]));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { s as default };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { t as e } from "./temporal-polyfill-D4u1I_Z-.js";
|
|
2
|
+
import { t } from "./plainDateTimeUtils-5uOCJ4N5.js";
|
|
3
|
+
import { computed as n, createBlock as r, defineComponent as i, openBlock as a, ref as o, unref as s } from "vue";
|
|
4
|
+
import { KdsZonedDateTimeInput as c } from "@knime/kds-components";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/uiComponents/ZonedDateTimeControl.vue
|
|
7
|
+
var l = /* @__PURE__ */ i({
|
|
8
|
+
__name: "ZonedDateTimeControl",
|
|
9
|
+
props: {
|
|
10
|
+
control: {},
|
|
11
|
+
handleChange: { type: Function },
|
|
12
|
+
changeValue: { type: Function },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
error: { type: Boolean },
|
|
15
|
+
subText: {},
|
|
16
|
+
onRegisterValidation: { type: Function },
|
|
17
|
+
labelForId: {}
|
|
18
|
+
},
|
|
19
|
+
setup(i) {
|
|
20
|
+
let l = i, u = n(() => l.control.uischema.options), d = n(() => t.getMaxGranularity(u.value, { showMilliseconds: !1 })), f = o(t.detectGranularity(l.control.data.dateTime)), p = n(() => {
|
|
21
|
+
let { date: n, time: r } = t.fromString(l.control.data.dateTime);
|
|
22
|
+
if (n === null) return null;
|
|
23
|
+
let i = n.toPlainDateTime(r ?? e.PlainTime.from("00:00:00")), a = l.control.data.timeZone;
|
|
24
|
+
if (!a) return null;
|
|
25
|
+
try {
|
|
26
|
+
return i.toZonedDateTime(a);
|
|
27
|
+
} catch {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
}), m, h, g = !1, _ = () => {
|
|
31
|
+
g = !1;
|
|
32
|
+
let e = h ?? f.value, n = m !== void 0, r = h !== void 0, i = m;
|
|
33
|
+
if (m = void 0, h = void 0, f.value = e, n) {
|
|
34
|
+
if (i === null) {
|
|
35
|
+
l.changeValue({
|
|
36
|
+
...l.control.data,
|
|
37
|
+
dateTime: ""
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
l.changeValue({
|
|
42
|
+
...l.control.data,
|
|
43
|
+
dateTime: t.toString(i.toPlainDate(), i.toPlainTime(), e),
|
|
44
|
+
timeZone: i.timeZoneId
|
|
45
|
+
});
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (r) {
|
|
49
|
+
let { date: n, time: r } = t.fromString(l.control.data.dateTime);
|
|
50
|
+
n && l.changeValue({
|
|
51
|
+
...l.control.data,
|
|
52
|
+
dateTime: t.toString(n, r, e)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}, v = () => {
|
|
56
|
+
g || (g = !0, queueMicrotask(_));
|
|
57
|
+
}, y = (e) => {
|
|
58
|
+
m = e, v();
|
|
59
|
+
}, b = (e) => {
|
|
60
|
+
h = e, v();
|
|
61
|
+
};
|
|
62
|
+
return (e, t) => (a(), r(s(c), {
|
|
63
|
+
id: i.labelForId,
|
|
64
|
+
ariaLabel: i.control.label,
|
|
65
|
+
"model-value": p.value,
|
|
66
|
+
granularity: f.value,
|
|
67
|
+
"max-granularity": d.value,
|
|
68
|
+
"possible-values": u.value?.possibleValues,
|
|
69
|
+
disabled: i.disabled,
|
|
70
|
+
error: i.error,
|
|
71
|
+
"sub-text": i.subText,
|
|
72
|
+
"onUpdate:modelValue": y,
|
|
73
|
+
"onUpdate:granularity": b
|
|
74
|
+
}, null, 8, [
|
|
75
|
+
"id",
|
|
76
|
+
"ariaLabel",
|
|
77
|
+
"model-value",
|
|
78
|
+
"granularity",
|
|
79
|
+
"max-granularity",
|
|
80
|
+
"possible-values",
|
|
81
|
+
"disabled",
|
|
82
|
+
"error",
|
|
83
|
+
"sub-text"
|
|
84
|
+
]));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
//#endregion
|
|
88
|
+
export { l as default };
|
package/dist/knime-jsonforms.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.flex-wrapper[data-v-2d34194b]{
|
|
1
|
+
.flex-wrapper[data-v-2d34194b]{flex-direction:column;height:100%;display:flex}.form[data-v-2d34194b]{--horizontal-dialog-padding:var(--kds-spacing-container-0-75x);padding:0 var(--horizontal-dialog-padding) var(--kds-spacing-container-0-75x);flex-direction:column;flex-grow:1;display:flex;overflow:hidden auto}.form[data-v-2d34194b]:focus{outline:none}.settings-sub-panel[data-v-bcab65d0]{z-index:3;background-color:var(--kds-color-surface-default);width:100%;box-shadow:var(--kds-elevation-level-3);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0}.settings-sub-panel[data-v-bcab65d0]:focus{outline:none}.settings-sub-panel-body[data-v-bcab65d0]{--horizontal-dialog-padding:var(--kds-spacing-container-0-75x);height:100%;padding:0 var(--horizontal-dialog-padding) var(--horizontal-dialog-padding);flex-direction:column;display:flex;overflow:hidden auto}.settings-sub-panel-footer[data-v-bcab65d0]{flex:none}.slide-enter-active[data-v-bcab65d0],.slide-leave-active[data-v-bcab65d0]{transition:transform .2s}.slide-enter-from[data-v-bcab65d0],.slide-leave-to[data-v-bcab65d0]{transform:translateX(calc(100% + var(--kds-spacing-container-0-5x)))}.loading-dialog[data-v-6920196f]{gap:var(--kds-spacing-container-1x);height:100%;padding:var(--kds-spacing-container-2x) var(--kds-spacing-container-1x);flex-direction:column;display:flex}.loading-dialog .two-columns[data-v-6920196f]{gap:var(--kds-spacing-container-1x);margin-bottom:var(--kds-spacing-container-3x);grid-template-columns:1fr 1fr;display:grid}.dialog[data-v-acd25041]{background-color:var(--kds-color-surface-default);flex-direction:column;justify-content:space-between;height:100%;display:flex;position:relative;overflow-x:hidden}.dialog-label[data-v-dcb388eb]{flex-direction:column;width:100%;display:flex;position:relative}.dialog-label.fill[data-v-dcb388eb]{flex-grow:1}.dialog-label .control-header[data-v-dcb388eb]{max-width:100%;min-height:calc(var(--kds-spacing-input-label-spacing-bottom) + var(--kds-dimension-component-height-1x));display:flex}.dialog-label .control-header .left[data-v-dcb388eb]{flex:1;justify-content:flex-start;min-width:0;display:flex}.dialog-label .control-header .left .label[data-v-dcb388eb]{white-space:pre;flex-shrink:1;min-width:0}.dialog-label .control-header[data-v-dcb388eb] .toggle-hide-on-null{padding-bottom:var(--kds-spacing-input-label-spacing-bottom);margin-left:var(--kds-spacing-container-0-12x)}.dialog-label .control-header[data-v-dcb388eb]:has(.left .label:hover) .toggle-hide-on-null:not(.disabled) .control{background:var(--bg-hover)}.dialog-label[data-v-dcb388eb] .label-text{display:inline-block}.description-wrapper[data-v-36483899]{pointer-events:auto;max-height:300px;overflow:auto}.vertical-layout[data-v-abc3717c]{--vertical-padding:var(--kds-spacing-container-0-5x);flex-direction:column;display:flex}.vertical-layout[data-v-abc3717c]:last-child{flex:1}.vertical-layout[data-v-abc3717c]:not(:has(:first-child>.section:first-child)){gap:var(--kds-spacing-container-0-75x);padding-top:var(--vertical-padding)}.section-header-sentinel[data-v-87a3f8e3]{height:1px;margin-bottom:-1px}.section-header[data-v-87a3f8e3]{z-index:1;margin:0 calc(-1 * var(--horizontal-dialog-padding,0));background-color:var(--kds-color-surface-default);position:sticky;top:0}.section-header .section-header-layout-container[data-v-87a3f8e3]{gap:var(--kds-spacing-container-0-5x);width:calc(100% - var(--horizontal-dialog-padding,0) * 2);padding-top:var(--kds-spacing-container-0-25x);padding-bottom:var(--kds-spacing-container-0-12x);margin:0 var(--horizontal-dialog-padding,0);justify-content:space-between;align-items:center;display:flex}.section-header .section-header-layout-container h3[data-v-87a3f8e3]{font:var(--kds-font-base-title-medium-strong);color:var(--kds-color-text-and-icon-neutral);margin:0}.section-header .section-header-layout-container .section-header-buttons[data-v-87a3f8e3]{gap:var(--kds-spacing-container-0-25x);align-items:center;display:flex}.section-header.is-sticking .section-header-layout-container[data-v-87a3f8e3]{border-bottom:var(--kds-border-base-subtle)}.item-controls[data-v-9f37d47c]{gap:var(--kds-spacing-container-0-25x);margin-bottom:var(--kds-spacing-container-0-12x);display:flex}.simple-array .item-header[data-v-7737a235]{margin-top:var(--kds-spacing-container-0-5x);margin-bottom:var(--kds-spacing-container-0-5x);justify-content:space-between;align-items:baseline;display:flex}.simple-array .element[data-v-7737a235]{gap:var(--kds-spacing-container-0-25x);margin-bottom:var(--kds-spacing-container-1x);align-items:end;display:flex}.simple-array .element .form-component[data-v-7737a235]{flex-grow:1;min-width:0}.simple-array[data-v-7737a235]>:last-child>*{margin-bottom:0}.simple-button-input[data-v-c79c6b71]{margin-bottom:var(--kds-spacing-container-0-5x);place-content:center space-between;display:flex;position:relative}.empty-state-wrapper[data-v-7a09310d]{background:var(--kds-color-surface-muted);border:var(--kds-border-base-subtle);border-radius:var(--kds-border-radius-container-0-25x);justify-content:center;align-items:center;display:flex}.gradient-preview[data-v-8a745225]{height:var(--kds-dimension-component-height-1-5x)}.gradient-preview .gradient-bar[data-v-8a745225]{border-radius:var(--kds-border-radius-container-0-25x)}.gradient-preview[data-v-8a745225]>*{height:100%}.palette-preview[data-v-ad83046f]{--palette-grid-entry-height:var(--kds-dimension-component-height-1-5x);--palette-grid-gap:var(--kds-spacing-container-0-25x);min-height:calc(2 * var(--palette-grid-entry-height) + var(--palette-grid-gap))}.palette-preview .palette-grid[data-v-ad83046f]{--min-grid-rows:2;grid-template-rows:repeat(var(--min-grid-rows), var(--palette-grid-entry-height));grid-auto-rows:var(--palette-grid-entry-height);gap:var(--palette-grid-gap);display:grid}.palette-preview .palette-grid .color-cell[data-v-ad83046f]{height:var(--palette-grid-entry-height);border-radius:var(--kds-border-radius-container-0-25x)}.palette-preview .empty-state[data-v-ad83046f]{height:var(--palette-grid-entry-height)}.input-wrapper[data-v-3a916a8e]{gap:var(--kds-spacing-container-1x);flex-direction:column;display:flex}.input-wrapper .chart[data-v-3a916a8e]{gap:var(--kds-spacing-container-0-75x);flex-direction:row;align-items:center;display:flex}.checkbox-input[data-v-4f590a2d]{display:flex;position:relative}.checkbox-input .checkbox-container[data-v-4f590a2d]{flex:1;min-width:0;display:flex}.reexecution-icon[data-v-4f590a2d]{vertical-align:top;height:10px;margin:3px 0 1px 5px;display:inline-block}.file-select-button[data-v-37968bc6]{display:inline}.filename[data-v-37968bc6]{font:var(--kds-font-base-title-small);color:var(--kds-color-text-and-icon-subtle);margin-left:10px}.grid-list[data-v-b6393b68]{width:var(--bf8a5982)}.grid-list .grid-list-container[data-v-b6393b68]{place-items:stretch stretch;display:grid}.grid-list .button[data-v-b6393b68]{min-width:36px;margin-bottom:var(--kds-spacing-container-0-5x)}.grid-list .button.overwrite-legacy-styles[data-v-b6393b68]{border-radius:6px}.grid-list .button.overwrite-legacy-styles.toggled[data-v-b6393b68]{color:var(--lightningcss-light,#292929)var(--lightningcss-dark,#f0f0f0);background-color:var(--lightningcss-light,#e1f9f4)var(--lightningcss-dark,#135e5952);border:1px solid var(--lightningcss-light,#599b93)var(--lightningcss-dark,#c7ebe4);border-radius:6px}.grid-list .button.overwrite-legacy-styles.toggled[data-v-b6393b68]:hover{background-color:var(--lightningcss-light,#c7ebe4)var(--lightningcss-dark,#29756d8f)}.grid-list .button.overwrite-legacy-styles.toggled[data-v-b6393b68]:active{background-color:var(--lightningcss-light,#add7cf)var(--lightningcss-dark,#599b93b8)}.grid-list .button.invert[data-v-b6393b68]{margin-top:var(--kds-spacing-container-0-75x);margin-left:0}.grid-list .checkbox[data-v-b6393b68]{margin-top:var(--kds-spacing-container-0-37x)}.horizontal[data-v-8f2ebb37]{gap:var(--kds-spacing-container-0-25x);justify-content:space-between;width:100%;display:inline-flex}.horizontal-element[data-v-8f2ebb37]{flex:1;width:0}.link-wrapper[data-v-c55bc56b]{justify-content:var(--v7f757bb0);width:100%;display:flex}.progress-button-input[data-v-f880d1e8]{place-content:center space-between;display:flex}.radio-wrapper[data-v-d327df7b]{flex-direction:row;gap:20px;display:flex}.radio-wrapper .radio-button[data-v-d327df7b]{flex:0 0 90px;position:relative}.radio-wrapper .description[data-v-d327df7b],.radio-wrapper .price[data-v-d327df7b]{font:var(--kds-font-base-body-small)}.radio-wrapper .description[data-v-d327df7b]{flex:auto}.radio-wrapper .price[data-v-d327df7b]{flex:0 0 110px}.radio-wrapper .price.selected[data-v-d327df7b]{font-weight:500}.footnote[data-v-d327df7b]{font:var(--kds-font-base-body-small)}.editor[data-v-0d780c9f]{height:100%}.section[data-v-33f353d4]:not(:first-child){padding-top:var(--kds-spacing-container-1x)}.flex-row[data-v-dc2400b4]{gap:var(--kds-spacing-container-0-5x);flex-direction:row;justify-content:flex-end;align-items:center;display:flex}.team-and-space[data-v-40e43c08]{transition:opacity .3s ease-in-out}.team-and-space .team[data-v-40e43c08],.team-and-space .space[data-v-40e43c08]{float:left;width:calc(50% - 5px);margin-right:5px}.timeframe[data-v-f38723b8]{flex-direction:row;gap:20px;display:flex}.timeframe[data-v-f38723b8]>*{flex:auto}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './src/index'
|
|
1
|
+
export * from './src/index.js'
|
|
2
2
|
export {}
|
package/dist/knime-jsonforms.js
CHANGED
|
@@ -1,219 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { _ as P, p as U } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
|
|
5
|
-
import { L as fe, S as pe, c as he, a as ve, b as ge, d as _e, e as De, f as ye, g as we, h as be, i as Pe, l as Se, j as Le, k as xe, m as Ce, n as Fe, o as $e, t as ke, u as Te, w as je, q as Ae, r as Ne } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Ccuf283K.js";
|
|
6
|
-
import { KdsLoadingSkeleton as p } from "@knime/kds-components";
|
|
7
|
-
import { default as Ee } from "./SimpleButtonControl-GTX19t2_.js";
|
|
8
|
-
import { _ as Je } from "./TextControl.vue_vue_type_script_setup_true_lang-Cbv0bM2X.js";
|
|
9
|
-
import { V as Oe } from "./VerticalLayoutBase-BEDnWcoh.js";
|
|
10
|
-
import { S as Ve } from "./SectionHeading-YAJTwOE4.js";
|
|
11
|
-
import { S as Ue } from "./SettingsSubPanel-DgISjowU.js";
|
|
12
|
-
const G = {}, H = { class: "flex-wrapper" }, q = { class: "form" };
|
|
13
|
-
function K(t, s) {
|
|
14
|
-
return l(), y("div", H, [
|
|
15
|
-
w("div", q, [
|
|
16
|
-
h(t.$slots, "default", {}, void 0, !0)
|
|
17
|
-
]),
|
|
18
|
-
h(t.$slots, "bottom-content", {}, void 0, !0)
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
const X = /* @__PURE__ */ P(G, [["render", K], ["__scopeId", "data-v-2d34194b"]]), Y = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "loading-dialog"
|
|
24
|
-
}, Q = { class: "two-columns" }, W = 200, Z = /* @__PURE__ */ v({
|
|
25
|
-
__name: "LoadingDialog",
|
|
26
|
-
setup(t) {
|
|
27
|
-
const s = D(!1);
|
|
28
|
-
return N(() => {
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
s.value = !0;
|
|
31
|
-
}, W);
|
|
32
|
-
}), (r, a) => s.value ? (l(), y("div", Y, [
|
|
33
|
-
n(i(p), {
|
|
34
|
-
variant: "input-with-label",
|
|
35
|
-
repeat: 3
|
|
36
|
-
}),
|
|
37
|
-
w("div", Q, [
|
|
38
|
-
n(i(p), { variant: "input-with-label" }),
|
|
39
|
-
n(i(p), { variant: "input-with-label" })
|
|
40
|
-
]),
|
|
41
|
-
n(i(p), {
|
|
42
|
-
variant: "input-with-label",
|
|
43
|
-
repeat: 3
|
|
44
|
-
})
|
|
45
|
-
])) : B("", !0);
|
|
46
|
-
}
|
|
47
|
-
}), ee = /* @__PURE__ */ P(Z, [["__scopeId", "data-v-6920196f"]]), te = { class: "dialog" }, k = "EXPOSED_METHOD", oe = /* @__PURE__ */ v({
|
|
48
|
-
__name: "JsonFormsDialog",
|
|
49
|
-
props: {
|
|
50
|
-
schema: {},
|
|
51
|
-
uischema: {},
|
|
52
|
-
data: {},
|
|
53
|
-
renderers: {},
|
|
54
|
-
ajv: { default: () => {
|
|
55
|
-
} },
|
|
56
|
-
validate: { type: Function, default: void 0 }
|
|
57
|
-
},
|
|
58
|
-
emits: ["updateData", "trigger", "change", "alert", "stateProviderListener", "initialized"],
|
|
59
|
-
setup(t, { expose: s, emit: r }) {
|
|
60
|
-
const a = r, u = (e, o, g) => (o.type === O && // @ts-expect-error source doesn't exist on type object
|
|
61
|
-
o.context?.source !== k && setTimeout(() => R(() => a("updateData", o.path))), g(e, o)), c = (e) => {
|
|
62
|
-
a("change", e);
|
|
63
|
-
};
|
|
64
|
-
Object.entries({
|
|
65
|
-
trigger: (e) => new Promise((o) => a("trigger", e, o)),
|
|
66
|
-
addStateProviderListener: (e, o) => a("stateProviderListener", e, o),
|
|
67
|
-
sendAlert: (e) => a("alert", e),
|
|
68
|
-
validate: (e, o) => {
|
|
69
|
-
if (!t.validate)
|
|
70
|
-
throw new Error(
|
|
71
|
-
`No validate function provided to JsonFormsDialog but validate called with arguments ${JSON.stringify(
|
|
72
|
-
{ id: e, data: o }
|
|
73
|
-
)}`
|
|
74
|
-
);
|
|
75
|
-
return t.validate(e, o);
|
|
76
|
-
}
|
|
77
|
-
}).forEach(([e, o]) => E(e, o));
|
|
78
|
-
const f = D(null), S = [], L = (e, o) => {
|
|
79
|
-
f.value.dispatch(
|
|
80
|
-
M.update(e, () => o, {
|
|
81
|
-
source: k
|
|
82
|
-
})
|
|
83
|
-
);
|
|
84
|
-
}, x = d(() => f.value !== null);
|
|
85
|
-
let C;
|
|
86
|
-
const T = new Promise((e) => {
|
|
87
|
-
C = e;
|
|
88
|
-
}), j = $(
|
|
89
|
-
() => x.value,
|
|
90
|
-
(e) => {
|
|
91
|
-
e && (a("initialized"), j());
|
|
92
|
-
},
|
|
93
|
-
{ immediate: !0 }
|
|
94
|
-
);
|
|
95
|
-
$(
|
|
96
|
-
() => x.value,
|
|
97
|
-
(e) => {
|
|
98
|
-
e && (C(), S.forEach(
|
|
99
|
-
({ path: o, value: g }) => L(o, g)
|
|
100
|
-
));
|
|
101
|
-
}
|
|
102
|
-
), s({
|
|
103
|
-
updateData: async (e, o) => {
|
|
104
|
-
f.value ? L(e, o) : (S.push({ path: e, value: o }), await T);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
const F = D(null);
|
|
108
|
-
U(F);
|
|
109
|
-
const A = d(() => ({
|
|
110
|
-
data: t.data,
|
|
111
|
-
schema: t.schema,
|
|
112
|
-
uischema: t.uischema,
|
|
113
|
-
renderers: t.renderers,
|
|
114
|
-
middleware: u,
|
|
115
|
-
...t.ajv ? { ajv: t.ajv } : {}
|
|
116
|
-
}));
|
|
117
|
-
return (e, o) => (l(), y("div", te, [
|
|
118
|
-
w("div", {
|
|
119
|
-
ref_key: "subPanelTeleportDest",
|
|
120
|
-
ref: F
|
|
121
|
-
}, null, 512),
|
|
122
|
-
(l(), b(I, null, {
|
|
123
|
-
fallback: _(() => [
|
|
124
|
-
n(ee)
|
|
125
|
-
]),
|
|
126
|
-
default: _(() => [
|
|
127
|
-
n(X, null, {
|
|
128
|
-
default: _(() => [
|
|
129
|
-
h(e.$slots, "top", {}, void 0, !0),
|
|
130
|
-
n(i(V), J({
|
|
131
|
-
ref_key: "jsonforms",
|
|
132
|
-
ref: f
|
|
133
|
-
}, A.value, { onChange: c }), null, 16),
|
|
134
|
-
h(e.$slots, "bottom", {}, void 0, !0)
|
|
135
|
-
]),
|
|
136
|
-
_: 3
|
|
137
|
-
})
|
|
138
|
-
]),
|
|
139
|
-
_: 3
|
|
140
|
-
}))
|
|
141
|
-
]));
|
|
142
|
-
}
|
|
143
|
-
}), ce = /* @__PURE__ */ P(oe, [["__scopeId", "data-v-ffb137c5"]]), ae = /* @__PURE__ */ v({
|
|
144
|
-
__name: "FieldRenderer",
|
|
145
|
-
props: {
|
|
146
|
-
control: {},
|
|
147
|
-
fieldName: {},
|
|
148
|
-
uischema: {}
|
|
149
|
-
},
|
|
150
|
-
setup(t) {
|
|
151
|
-
const s = (c, m) => c === "" ? m : `${c}.${m}`, r = t, a = d(() => s(r.control.path, r.fieldName)), u = d(
|
|
152
|
-
() => r.control.schema.properties[r.fieldName]
|
|
153
|
-
);
|
|
154
|
-
return (c, m) => (l(), b(i(z), {
|
|
155
|
-
key: a.value,
|
|
156
|
-
schema: u.value,
|
|
157
|
-
uischema: t.uischema,
|
|
158
|
-
path: a.value,
|
|
159
|
-
enabled: t.control.enabled,
|
|
160
|
-
renderers: t.control.renderers,
|
|
161
|
-
cells: t.control.cells
|
|
162
|
-
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]));
|
|
163
|
-
}
|
|
164
|
-
}), de = /* @__PURE__ */ v({
|
|
165
|
-
__name: "FieldControl",
|
|
166
|
-
props: {
|
|
167
|
-
control: {},
|
|
168
|
-
fieldName: {},
|
|
169
|
-
format: {},
|
|
170
|
-
options: {}
|
|
171
|
-
},
|
|
172
|
-
setup(t) {
|
|
173
|
-
const s = t, r = d(() => ({
|
|
174
|
-
type: "Control",
|
|
175
|
-
scope: "#",
|
|
176
|
-
options: {
|
|
177
|
-
...s.options,
|
|
178
|
-
format: s.format
|
|
179
|
-
}
|
|
180
|
-
}));
|
|
181
|
-
return (a, u) => (l(), b(ae, {
|
|
182
|
-
"field-name": t.fieldName,
|
|
183
|
-
uischema: r.value,
|
|
184
|
-
control: t.control
|
|
185
|
-
}, null, 8, ["field-name", "uischema", "control"]));
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
export {
|
|
189
|
-
de as FieldControl,
|
|
190
|
-
X as Form,
|
|
191
|
-
ce as JsonFormsDialog,
|
|
192
|
-
fe as LabeledControl,
|
|
193
|
-
Ve as SectionHeading,
|
|
194
|
-
Ue as SettingsSubPanel,
|
|
195
|
-
pe as SimpleArrayLayout,
|
|
196
|
-
Ee as SimpleButtonControl,
|
|
197
|
-
Je as TextControl,
|
|
198
|
-
Oe as VerticalLayoutBase,
|
|
199
|
-
he as controlProps,
|
|
200
|
-
ve as controlToRenderer,
|
|
201
|
-
ge as controls,
|
|
202
|
-
_e as defaultRenderers,
|
|
203
|
-
De as defineControl,
|
|
204
|
-
ye as defineLayout,
|
|
205
|
-
we as getAsyncSetupMethod,
|
|
206
|
-
be as handleAsyncComponents,
|
|
207
|
-
Pe as inputFormats,
|
|
208
|
-
Se as layoutProps,
|
|
209
|
-
Le as layoutToRenderer,
|
|
210
|
-
xe as layouts,
|
|
211
|
-
Ce as mapControls,
|
|
212
|
-
Fe as mapLayouts,
|
|
213
|
-
$e as priorityRanks,
|
|
214
|
-
ke as toRenderers,
|
|
215
|
-
Te as useProvidedState,
|
|
216
|
-
je as withDescriptionButton,
|
|
217
|
-
Ae as withDescriptionButtonLayout,
|
|
218
|
-
Ne as withLabel
|
|
219
|
-
};
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, w as E, x as D, y as O } from "./src-DwqijroM.js";
|
|
2
|
+
import { n as k } from "./useProvidedState-478_KXOe.js";
|
|
3
|
+
export { x as FieldControl, e as Form, n as JsonFormsDialog, r as LabeledControl, g as SectionHeading, i as SettingsSubPanel, u as SimpleArrayLayout, v as SimpleButtonControl, C as TextControl, w as VerticalLayoutBase, l as controlProps, T as controlToRenderer, h as controls, c as defaultRenderers, D as defineControl, _ as defineLayout, o as getAsyncSetupMethod, a as handleAsyncComponents, f as inputFormats, m as layoutProps, p as layoutToRenderer, y as layouts, t as mapControls, E as mapLayouts, d as priorityRanks, S as toRenderers, k as useProvidedState, s as withDescriptionButton, b as withDescriptionButtonLayout, O as withLabel };
|