@knime/jsonforms 1.4.2 → 1.5.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 +16 -0
- package/dist/{AnyOfTwinlist-ZSMUfL9L.js → AnyOfTwinlist-CaEOxW3M.js} +8 -6
- package/dist/{BaseButton-DaHwEJS7.js → BaseButton-CHq3Yy1E.js} +1 -1
- package/dist/{Button-Bw_2CUrZ.js → Button-Dx6CyoGv.js} +2 -2
- package/dist/{Checkbox-CClH5v1O.js → Checkbox-Cke3C-vE.js} +1 -1
- package/dist/CheckboxControl-D1SHTB8h.js +41 -0
- package/dist/{Checkboxes-D4qPaeYl.js → Checkboxes-CyaGK3u6.js} +2 -2
- package/dist/CheckboxesControl-D312pbsl.js +41 -0
- package/dist/{ColumnFilter-C7RkEFw3.js → ColumnFilter-CwMprrK8.js} +7 -5
- package/dist/{ColumnSelect-CofZcttu.js → ColumnSelect-CVJpUuIQ.js} +21 -18
- package/dist/{ComboBoxControl-C9KmCrJL.js → ComboBoxControl-BXkGuoeG.js} +17 -14
- package/dist/{DateControl-CzO-FHO5.js → DateControl-C4yaoxEp.js} +6 -4
- package/dist/{DateTimeControl-1FXkgKJC.js → DateTimeControl-mo58rw4f.js} +18 -15
- package/dist/{DateTimeFormatPickerControl-CoY0tjuj.js → DateTimeFormatPickerControl-BiJIe8E3.js} +29 -27
- package/dist/{DateTimeInput-BS4u5oiH.js → DateTimeInput-DsWORwg_.js} +7 -7
- package/dist/{Dropdown-DY6B_Cwm.js → Dropdown-BE1j7NkI.js} +4 -4
- package/dist/{DropdownControl-BOx53GRG.js → DropdownControl-BRn6Cwjr.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-705eImVg.js +237 -0
- package/dist/{FunctionButton-fTG-kCKu.js → FunctionButton-DqqAHIw1.js} +2 -2
- package/dist/{HorizontalLayout-B6G89LUS.js → HorizontalLayout--yiRzTf6.js} +1 -1
- package/dist/{InputField-Ciw2sHfy.js → InputField-CokMvcHT.js} +1 -1
- package/dist/IntegerControl-NUkXRovt.js +20 -0
- package/dist/{IntervalControl-Cv3oVrKV.js → IntervalControl-CbN3LxUy.js} +37 -35
- package/dist/{MultiselectListBox-Ds0W-GHB.js → MultiselectListBox-DP2uhI2G.js} +1 -1
- package/dist/{NameFilter-BpyjqqIg.js → NameFilter-2zzjeGcf.js} +7 -5
- package/dist/NumberControl-ex4FP7SU.js +20 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CDfj1hZd.js +60 -0
- package/dist/{NumberInput-Cq6cNPOt.js → NumberInput-Qq75PlO6.js} +1 -1
- package/dist/OneOfDropdown-Adcy7Erh.js +35 -0
- package/dist/RadioControl-Dd78K-EK.js +24 -0
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CJRt1KAq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CJkUMFUb.js} +11 -9
- package/dist/{RichTextControl-DfLozxjM.js → RichTextControl-BHg6ymeN.js} +10 -8
- package/dist/{SectionLayout-B8lhvDwV.js → SectionLayout-BVy_P8t3.js} +2 -2
- package/dist/SimpleButtonControl-CgdCrXfy.js +61 -0
- package/dist/{SimpleTwinlistControl--SlX5r8j.js → SimpleTwinlistControl-DQBlyQ3x.js} +16 -13
- package/dist/SortListControl-B6-zMq_0.js +366 -0
- package/dist/{TextAreaControl-Cxe1N51h.js → TextAreaControl-D57tefaR.js} +25 -22
- package/dist/{TextControl-C97DTUxi.js → TextControl-CrRig4Eb.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Dyo28Jiw.js +87 -0
- package/dist/TimeControl-Bvfsb3xP.js +33 -0
- package/dist/{TwinlistControl-Cw71wnqH.js → TwinlistControl-B1Fadf2P.js} +21 -18
- package/dist/{TwinlistLoadingInfo-5dgWG85L.js → TwinlistLoadingInfo-DZ4p5J7x.js} +9 -9
- package/dist/{ValueSwitch-Ds5TMrQM.js → ValueSwitch-BHQvfjcw.js} +1 -1
- package/dist/ValueSwitchControl-Dr8FrHKm.js +20 -0
- package/dist/{VerticalLayout-FdSZVMXg.js → VerticalLayout-DVjSQ_-H.js} +2 -2
- package/dist/{VerticalLayoutBase-BM2Lzz4_.js → VerticalLayoutBase-YYIM5Icf.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js} +5705 -5674
- package/dist/ZonedDateTimeControl-ByZO_E4E.js +70 -0
- package/dist/{_baseAssignValue-BHZMmalr.js → _baseAssignValue-BPMLYzDH.js} +1 -1
- package/dist/{_baseEach-CFl6drhJ.js → _baseEach-B8N_Gx8P.js} +2 -2
- package/dist/{_baseIsEqual-CBeH4t67.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
- package/dist/{_baseIteratee-BLHhVAua.js → _baseIteratee-DvBmrhnf.js} +3 -3
- package/dist/{_getTag-ryBefWgF.js → _getTag-DS8v0_uf.js} +33 -34
- package/dist/isSymbol-OFe5xy2f.js +34 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +26 -26
- package/dist/{localTimeUtils-DzcBbZvn.js → localTimeUtils-Clk_MujE.js} +1 -1
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
- package/dist/src/higherOrderComponents/control/ErrorMessage.vue.d.ts +15 -0
- package/dist/src/higherOrderComponents/control/ErrorMessageWrapper.vue.d.ts +22 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/types.d.ts +2 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +18 -2
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +10 -0
- package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +9 -0
- package/dist/src/higherOrderComponents/control/withErrorMessage.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/withLabel.d.ts +9 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +1 -192
- package/dist/src/renderers/checkboxesRenderer.d.ts +1 -3
- package/dist/src/renderers/columnFilterRenderer.d.ts +1 -3
- package/dist/src/renderers/columnSelectRenderer.d.ts +56 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +1 -3
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -3
- package/dist/src/renderers/dateTimeRenderer.d.ts +1 -3
- package/dist/src/renderers/defaultRenderers.d.ts +299 -247
- package/dist/src/renderers/dropdownRenderer.d.ts +48 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +91 -189
- package/dist/src/renderers/integerRenderer.d.ts +1 -3
- package/dist/src/renderers/intervalRenderer.d.ts +1 -3
- package/dist/src/renderers/localDateRenderer.d.ts +1 -3
- package/dist/src/renderers/localTimeRenderer.d.ts +1 -3
- package/dist/src/renderers/nameFilterRenderer.d.ts +1 -3
- package/dist/src/renderers/numberRenderer.d.ts +1 -3
- package/dist/src/renderers/radioRenderer.d.ts +1 -3
- package/dist/src/renderers/richTextRenderer.d.ts +1 -3
- package/dist/src/renderers/simpleButtonRenderer.d.ts +9 -0
- package/dist/src/renderers/sortListRenderer.d.ts +48 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +1 -3
- package/dist/src/renderers/textMessageRenderer.d.ts +24 -0
- package/dist/src/renderers/textRenderer.d.ts +48 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +2 -6
- package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -3
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +4 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +58 -3
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -2
- package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -2
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +58 -3
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/index.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -2
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +2 -2
- package/dist/{svgWithTitle-CkdEuLiz.js → svgWithTitle-CJ0jyTXl.js} +1 -1
- package/dist/testUtils/component.d.ts +70 -7
- package/dist/testUtils/renderer.d.ts +1 -1
- package/dist/testing.js +203 -199
- package/dist/toString-DkbNkGT4.js +25 -0
- package/package.json +5 -5
- package/dist/CheckboxControl-DNlnK4C9.js +0 -42
- package/dist/CheckboxesControl-CcQ3PLSm.js +0 -38
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js +0 -226
- package/dist/ErrorMessage-BDO-x3Uz.js +0 -23
- package/dist/IntegerControl-C0jzMmDK.js +0 -18
- package/dist/NumberControl-DFJ7GW28.js +0 -18
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BVjv3GjM.js +0 -42
- package/dist/OneOfDropdown-fpE_aGK6.js +0 -32
- package/dist/RadioControl-BMvmjgc4.js +0 -22
- package/dist/SimpleButtonControl-Cc2jhvsQ.js +0 -58
- package/dist/SortListControl-BFZehvrs.js +0 -356
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CHTtVr4t.js +0 -69
- package/dist/TimeControl-CFFsz8tR.js +0 -30
- package/dist/ValueSwitchControl-CljMpNHI.js +0 -18
- package/dist/ZonedDateTimeControl-CCtdviwP.js +0 -66
- package/dist/isSymbol-CSje8ekq.js +0 -8
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +0 -12
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +0 -23
- package/dist/toString-ld_LFpvz.js +0 -26
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { S as s, i as g } from "./isSymbol-OFe5xy2f.js";
|
|
2
|
+
function l(r, n) {
|
|
3
|
+
for (var t = -1, i = r == null ? 0 : r.length, o = Array(i); ++t < i; )
|
|
4
|
+
o[t] = n(r[t], t, r);
|
|
5
|
+
return o;
|
|
6
|
+
}
|
|
7
|
+
var u = Array.isArray, e = s ? s.prototype : void 0, f = e ? e.toString : void 0;
|
|
8
|
+
function y(r) {
|
|
9
|
+
if (typeof r == "string")
|
|
10
|
+
return r;
|
|
11
|
+
if (u(r))
|
|
12
|
+
return l(r, y) + "";
|
|
13
|
+
if (g(r))
|
|
14
|
+
return f ? f.call(r) : "";
|
|
15
|
+
var n = r + "";
|
|
16
|
+
return n == "0" && 1 / r == -1 / 0 ? "-0" : n;
|
|
17
|
+
}
|
|
18
|
+
function m(r) {
|
|
19
|
+
return r == null ? "" : y(r);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
l as a,
|
|
23
|
+
u as i,
|
|
24
|
+
m as t
|
|
25
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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,10 +15,10 @@
|
|
|
15
15
|
"focus-trap-vue": "4.0.3",
|
|
16
16
|
"tabbable": "6.2.0",
|
|
17
17
|
"uuid": "10.0.0",
|
|
18
|
-
"@knime/components": "1.17.
|
|
19
|
-
"@knime/rich-text-editor": "1.3.
|
|
20
|
-
"@knime/styles": "1.2.
|
|
21
|
-
"@knime/utils": "1.2.
|
|
18
|
+
"@knime/components": "1.17.1",
|
|
19
|
+
"@knime/rich-text-editor": "1.3.16",
|
|
20
|
+
"@knime/styles": "1.2.1",
|
|
21
|
+
"@knime/utils": "1.2.5"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"vue": "~3.4.27"
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, ref as s, openBlock as d, createElementBlock as u, createVNode as l, unref as p, withCtx as i, createTextVNode as c, toDisplayString as m, renderSlot as n } from "vue";
|
|
2
|
-
import { E as f } from "./ErrorMessage-BDO-x3Uz.js";
|
|
3
|
-
import { C as b } from "./Checkbox-CClH5v1O.js";
|
|
4
|
-
import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
|
|
5
|
-
const h = /* @__PURE__ */ a({
|
|
6
|
-
__name: "CheckboxControl",
|
|
7
|
-
props: {
|
|
8
|
-
control: {},
|
|
9
|
-
handleChange: { type: Function },
|
|
10
|
-
changeValue: { type: Function },
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
labelForId: {}
|
|
13
|
-
},
|
|
14
|
-
setup(C) {
|
|
15
|
-
const r = s(!1);
|
|
16
|
-
return (e, o) => (d(), u("div", {
|
|
17
|
-
class: "checkbox-input",
|
|
18
|
-
onMouseover: o[0] || (o[0] = (t) => r.value = !0),
|
|
19
|
-
onMouseleave: o[1] || (o[1] = (t) => r.value = !1)
|
|
20
|
-
}, [
|
|
21
|
-
l(p(b), {
|
|
22
|
-
class: "checkbox",
|
|
23
|
-
disabled: e.disabled,
|
|
24
|
-
"model-value": e.control.data,
|
|
25
|
-
"onUpdate:modelValue": e.changeValue
|
|
26
|
-
}, {
|
|
27
|
-
default: i(() => [
|
|
28
|
-
c(m(e.control.label) + " ", 1),
|
|
29
|
-
n(e.$slots, "icon", {}, void 0, !0)
|
|
30
|
-
]),
|
|
31
|
-
_: 3
|
|
32
|
-
}, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
|
|
33
|
-
n(e.$slots, "buttons", { hover: r.value }, void 0, !0),
|
|
34
|
-
l(f, {
|
|
35
|
-
error: e.control.errors
|
|
36
|
-
}, null, 8, ["error"])
|
|
37
|
-
], 32));
|
|
38
|
-
}
|
|
39
|
-
}), $ = /* @__PURE__ */ v(h, [["__scopeId", "data-v-eb89a692"]]);
|
|
40
|
-
export {
|
|
41
|
-
$ as default
|
|
42
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, computed as s, ref as c, onMounted as r, openBlock as d, createBlock as p, unref as u, createCommentVNode as m } from "vue";
|
|
2
|
-
import { o as i } from "./index-hm05O8UX.js";
|
|
3
|
-
import { C as b } from "./Checkboxes-D4qPaeYl.js";
|
|
4
|
-
import { _ as h } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
|
|
5
|
-
const f = /* @__PURE__ */ t({
|
|
6
|
-
__name: "CheckboxesControl",
|
|
7
|
-
props: {
|
|
8
|
-
control: {},
|
|
9
|
-
handleChange: { type: Function },
|
|
10
|
-
changeValue: { type: Function },
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
labelForId: {}
|
|
13
|
-
},
|
|
14
|
-
setup(n) {
|
|
15
|
-
const a = n, l = s(
|
|
16
|
-
() => {
|
|
17
|
-
var e;
|
|
18
|
-
return (e = a.control.uischema.options) == null ? void 0 : e.checkboxLayout;
|
|
19
|
-
}
|
|
20
|
-
), o = c(null);
|
|
21
|
-
return r(() => {
|
|
22
|
-
var e;
|
|
23
|
-
o.value = (e = a.control.schema.anyOf) == null ? void 0 : e.map(i);
|
|
24
|
-
}), (e, v) => o.value ? (d(), p(u(b), {
|
|
25
|
-
key: 0,
|
|
26
|
-
id: e.labelForId,
|
|
27
|
-
class: "checkboxes",
|
|
28
|
-
"possible-values": o.value,
|
|
29
|
-
alignment: l.value,
|
|
30
|
-
disabled: e.disabled,
|
|
31
|
-
"model-value": e.control.data,
|
|
32
|
-
"onUpdate:modelValue": e.changeValue
|
|
33
|
-
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : m("", !0);
|
|
34
|
-
}
|
|
35
|
-
}), y = /* @__PURE__ */ h(f, [["__scopeId", "data-v-d9491213"]]);
|
|
36
|
-
export {
|
|
37
|
-
y as default
|
|
38
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { defineComponent as H, computed as c, openBlock as y, createBlock as w, unref as h, mergeProps as A, withCtx as V, createCommentVNode as O, ref as x, onMounted as K, onBeforeUnmount as G, normalizeProps as J, renderSlot as T } from "vue";
|
|
2
|
-
import { _ as Q, k as D, u as X, L as Y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
|
|
3
|
-
import { w as Z } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
|
|
4
|
-
import { u as j } from "./useHideOnNull-CCfNP3O7.js";
|
|
5
|
-
import { D as ee } from "./Dropdown-DY6B_Cwm.js";
|
|
6
|
-
import { L as oe } from "./svgWithTitle-CkdEuLiz.js";
|
|
7
|
-
import { b as ne } from "./_baseAssignValue-BHZMmalr.js";
|
|
8
|
-
import { e as te, c as ae, t as le, i as se } from "./_getTag-ryBefWgF.js";
|
|
9
|
-
import { i as N } from "./isObject-B53jY8Qg.js";
|
|
10
|
-
import { C as re } from "./Checkbox-CClH5v1O.js";
|
|
11
|
-
var ie = Object.prototype, ue = ie.hasOwnProperty;
|
|
12
|
-
function de(o, e, l) {
|
|
13
|
-
var s = o[e];
|
|
14
|
-
(!(ue.call(o, e) && te(s, l)) || l === void 0 && !(e in o)) && ne(o, e, l);
|
|
15
|
-
}
|
|
16
|
-
function ce(o, e, l, s) {
|
|
17
|
-
if (!N(o))
|
|
18
|
-
return o;
|
|
19
|
-
e = ae(e, o);
|
|
20
|
-
for (var u = -1, r = e.length, g = r - 1, d = o; d != null && ++u < r; ) {
|
|
21
|
-
var a = le(e[u]), i = l;
|
|
22
|
-
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
23
|
-
return o;
|
|
24
|
-
if (u != g) {
|
|
25
|
-
var v = d[a];
|
|
26
|
-
i = void 0, i === void 0 && (i = N(v) ? v : se(e[u + 1]) ? [] : {});
|
|
27
|
-
}
|
|
28
|
-
de(d, a, i), d = d[a];
|
|
29
|
-
}
|
|
30
|
-
return o;
|
|
31
|
-
}
|
|
32
|
-
function pe(o, e, l) {
|
|
33
|
-
return o == null ? o : ce(o, e, l);
|
|
34
|
-
}
|
|
35
|
-
var t = [];
|
|
36
|
-
for (var I = 0; I < 256; ++I)
|
|
37
|
-
t.push((I + 256).toString(16).slice(1));
|
|
38
|
-
function me(o, e = 0) {
|
|
39
|
-
return (t[o[e + 0]] + t[o[e + 1]] + t[o[e + 2]] + t[o[e + 3]] + "-" + t[o[e + 4]] + t[o[e + 5]] + "-" + t[o[e + 6]] + t[o[e + 7]] + "-" + t[o[e + 8]] + t[o[e + 9]] + "-" + t[o[e + 10]] + t[o[e + 11]] + t[o[e + 12]] + t[o[e + 13]] + t[o[e + 14]] + t[o[e + 15]]).toLowerCase();
|
|
40
|
-
}
|
|
41
|
-
var U, he = new Uint8Array(16);
|
|
42
|
-
function ge() {
|
|
43
|
-
if (!U && (U = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !U))
|
|
44
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
45
|
-
return U(he);
|
|
46
|
-
}
|
|
47
|
-
var ve = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
48
|
-
const B = {
|
|
49
|
-
randomUUID: ve
|
|
50
|
-
};
|
|
51
|
-
function be(o, e, l) {
|
|
52
|
-
if (B.randomUUID && !o)
|
|
53
|
-
return B.randomUUID();
|
|
54
|
-
o = o || {};
|
|
55
|
-
var s = o.random || (o.rng || ge)();
|
|
56
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, me(s);
|
|
57
|
-
}
|
|
58
|
-
const fe = ({ view: o, model: e }) => ({
|
|
59
|
-
...o,
|
|
60
|
-
...e
|
|
61
|
-
}), Ve = /* @__PURE__ */ H({
|
|
62
|
-
__name: "LoadingDropdown",
|
|
63
|
-
props: {
|
|
64
|
-
possibleValues: {},
|
|
65
|
-
modelValue: {},
|
|
66
|
-
id: {},
|
|
67
|
-
ariaLabel: {},
|
|
68
|
-
disabled: { type: Boolean }
|
|
69
|
-
},
|
|
70
|
-
setup(o) {
|
|
71
|
-
const e = o, l = c(() => {
|
|
72
|
-
const { possibleValues: r } = e;
|
|
73
|
-
return r === null ? "Loading" : r.length > 0 ? "No value selected" : "No values present";
|
|
74
|
-
}), s = c(() => e.possibleValues === null ? "" : e.modelValue), u = c(
|
|
75
|
-
() => e.disabled || e.possibleValues === null || e.possibleValues.length === 0
|
|
76
|
-
);
|
|
77
|
-
return (r, g) => (y(), w(h(ee), A({ ...r.$props, ...r.$attrs }, {
|
|
78
|
-
"model-value": s.value,
|
|
79
|
-
disabled: u.value,
|
|
80
|
-
"possible-values": r.possibleValues ?? [],
|
|
81
|
-
placeholder: l.value,
|
|
82
|
-
compact: ""
|
|
83
|
-
}), {
|
|
84
|
-
"icon-right": V(() => [
|
|
85
|
-
r.possibleValues === null ? (y(), w(h(oe), {
|
|
86
|
-
key: 0,
|
|
87
|
-
class: "loading-icon"
|
|
88
|
-
})) : O("", !0)
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
|
|
92
|
-
}
|
|
93
|
-
}), ye = /* @__PURE__ */ Q(Ve, [["__scopeId", "data-v-cf6ba18c"]]), Se = /* @__PURE__ */ H({
|
|
94
|
-
__name: "DropdownControl",
|
|
95
|
-
props: {
|
|
96
|
-
control: {},
|
|
97
|
-
handleChange: {},
|
|
98
|
-
changeValue: {},
|
|
99
|
-
disabled: { type: Boolean },
|
|
100
|
-
labelForId: {},
|
|
101
|
-
asyncInitialOptions: { default: null },
|
|
102
|
-
controlDataToDropdownValue: { type: Function, default: (o) => o },
|
|
103
|
-
dropdownValueToControlData: { type: Function, default: (o) => o }
|
|
104
|
-
},
|
|
105
|
-
setup(o) {
|
|
106
|
-
const e = o, l = D("getPossibleValuesFromUiSchema"), s = D("registerWatcher"), u = D("getData"), r = D("sendAlert"), g = x(null), d = c(
|
|
107
|
-
() => {
|
|
108
|
-
var n;
|
|
109
|
-
return (n = e.control.uischema.options) == null ? void 0 : n.choicesProvider;
|
|
110
|
-
}
|
|
111
|
-
), a = Z(
|
|
112
|
-
X(d.value, null),
|
|
113
|
-
e.control
|
|
114
|
-
), i = x(e.control.data), v = (n) => e.dropdownValueToControlData(
|
|
115
|
-
n.length > 0 ? n[0].id : null
|
|
116
|
-
), { showCheckbox: E, showControl: R, checkboxProps: $ } = j(
|
|
117
|
-
{
|
|
118
|
-
control: c(() => e.control),
|
|
119
|
-
disabled: c(() => e.disabled),
|
|
120
|
-
controlElement: g
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
setDefault: () => {
|
|
124
|
-
!i.value && a.value ? e.changeValue(v(a.value)) : e.changeValue(i.value);
|
|
125
|
-
},
|
|
126
|
-
setNull: () => {
|
|
127
|
-
e.changeValue(null);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
), _ = c(
|
|
131
|
-
() => e.controlDataToDropdownValue(e.control.data)
|
|
132
|
-
), L = c(
|
|
133
|
-
() => {
|
|
134
|
-
var n;
|
|
135
|
-
return (n = e.control.uischema.options) == null ? void 0 : n.choicesUpdateHandler;
|
|
136
|
-
}
|
|
137
|
-
), M = be(), P = async (n, b) => {
|
|
138
|
-
const { result: p, state: m, message: C } = await u({
|
|
139
|
-
method: "settings.update",
|
|
140
|
-
options: [
|
|
141
|
-
M,
|
|
142
|
-
L.value,
|
|
143
|
-
fe(n)
|
|
144
|
-
]
|
|
145
|
-
});
|
|
146
|
-
return (q) => {
|
|
147
|
-
const S = (f) => {
|
|
148
|
-
a.value = f, (b || !_.value) && (pe(
|
|
149
|
-
q,
|
|
150
|
-
e.control.path,
|
|
151
|
-
v(f)
|
|
152
|
-
), e.changeValue(v(f)));
|
|
153
|
-
};
|
|
154
|
-
p && S(p), m === "FAIL" && (C.forEach((f) => {
|
|
155
|
-
r({
|
|
156
|
-
message: f,
|
|
157
|
-
type: "error"
|
|
158
|
-
});
|
|
159
|
-
}), S([]));
|
|
160
|
-
};
|
|
161
|
-
}, W = async (n) => {
|
|
162
|
-
(await P(n, !1))(n);
|
|
163
|
-
}, k = async () => {
|
|
164
|
-
e.asyncInitialOptions !== null ? a.value = await e.asyncInitialOptions : d.value || l(e.control).then((n) => {
|
|
165
|
-
a.value = n;
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
let F = () => {
|
|
169
|
-
};
|
|
170
|
-
K(async () => {
|
|
171
|
-
var n, b;
|
|
172
|
-
if (L.value) {
|
|
173
|
-
const p = ((n = e.control.uischema.options) == null ? void 0 : n.dependencies) || [], m = !!((b = e.control.uischema.options) != null && b.setFirstValueOnUpdate);
|
|
174
|
-
F = await s({
|
|
175
|
-
transformSettings: (C) => P(C, m),
|
|
176
|
-
init: W,
|
|
177
|
-
dependencies: p
|
|
178
|
-
});
|
|
179
|
-
} else
|
|
180
|
-
k();
|
|
181
|
-
}), G(() => {
|
|
182
|
-
F();
|
|
183
|
-
});
|
|
184
|
-
const z = (n) => {
|
|
185
|
-
i.value = e.dropdownValueToControlData(n), e.changeValue(i.value);
|
|
186
|
-
};
|
|
187
|
-
return (n, b) => {
|
|
188
|
-
var p;
|
|
189
|
-
return y(), w(Y, {
|
|
190
|
-
label: n.control.label,
|
|
191
|
-
"hide-control-header": (p = n.control.uischema.options) == null ? void 0 : p.hideControlHeader
|
|
192
|
-
}, {
|
|
193
|
-
"before-label": V(() => [
|
|
194
|
-
h(E) ? (y(), w(h(re), J(A({ key: 0 }, h($))), null, 16)) : O("", !0)
|
|
195
|
-
]),
|
|
196
|
-
default: V(({ labelForId: m }) => [
|
|
197
|
-
h(R) ? (y(), w(ye, {
|
|
198
|
-
key: 0,
|
|
199
|
-
id: m ?? "",
|
|
200
|
-
ref_key: "controlElement",
|
|
201
|
-
ref: g,
|
|
202
|
-
ariaLabel: n.control.label,
|
|
203
|
-
disabled: n.disabled,
|
|
204
|
-
"model-value": _.value,
|
|
205
|
-
"possible-values": h(a),
|
|
206
|
-
compact: "",
|
|
207
|
-
"onUpdate:modelValue": z
|
|
208
|
-
}, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values"])) : O("", !0)
|
|
209
|
-
]),
|
|
210
|
-
icon: V(() => [
|
|
211
|
-
T(n.$slots, "icon")
|
|
212
|
-
]),
|
|
213
|
-
buttons: V(({ hover: m }) => [
|
|
214
|
-
T(n.$slots, "buttons", {
|
|
215
|
-
hover: m,
|
|
216
|
-
controlHTMLElement: g.value
|
|
217
|
-
})
|
|
218
|
-
]),
|
|
219
|
-
_: 3
|
|
220
|
-
}, 8, ["label", "hide-control-header"]);
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
export {
|
|
225
|
-
Se as _
|
|
226
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as s, toDisplayString as a } from "vue";
|
|
2
|
-
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
|
|
3
|
-
const c = {
|
|
4
|
-
props: {
|
|
5
|
-
errors: {
|
|
6
|
-
default: () => [],
|
|
7
|
-
type: Array
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
computed: {
|
|
11
|
-
displayableErrors() {
|
|
12
|
-
var r;
|
|
13
|
-
return (r = this.errors.map(({ message: e }) => e)) == null ? void 0 : r.join("; ");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}, i = ["title"];
|
|
17
|
-
function l(r, e, n, _, d, t) {
|
|
18
|
-
return o(), s("div", { title: t.displayableErrors }, a(t.displayableErrors), 9, i);
|
|
19
|
-
}
|
|
20
|
-
const u = /* @__PURE__ */ p(c, [["render", l], ["__scopeId", "data-v-070cf475"]]);
|
|
21
|
-
export {
|
|
22
|
-
u as E
|
|
23
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
|
|
2
|
-
import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-BVjv3GjM.js";
|
|
3
|
-
const _ = /* @__PURE__ */ o({
|
|
4
|
-
__name: "IntegerControl",
|
|
5
|
-
props: {
|
|
6
|
-
control: {},
|
|
7
|
-
handleChange: { type: Function },
|
|
8
|
-
changeValue: { type: Function },
|
|
9
|
-
disabled: { type: Boolean },
|
|
10
|
-
labelForId: {}
|
|
11
|
-
},
|
|
12
|
-
setup(a) {
|
|
13
|
-
return (e, l) => (n(), r(p, t(e.$props, { type: "integer" }), null, 16));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
export {
|
|
17
|
-
_ as default
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
|
|
2
|
-
import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-BVjv3GjM.js";
|
|
3
|
-
const m = /* @__PURE__ */ o({
|
|
4
|
-
__name: "NumberControl",
|
|
5
|
-
props: {
|
|
6
|
-
control: {},
|
|
7
|
-
handleChange: { type: Function },
|
|
8
|
-
changeValue: { type: Function },
|
|
9
|
-
disabled: { type: Boolean },
|
|
10
|
-
labelForId: {}
|
|
11
|
-
},
|
|
12
|
-
setup(a) {
|
|
13
|
-
return (e, l) => (n(), r(p, t(e.$props, { type: "double" }), null, 16));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
export {
|
|
17
|
-
m as default
|
|
18
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as d, createBlock as b, unref as t } from "vue";
|
|
2
|
-
import { u as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
|
|
3
|
-
import { N as h } from "./NumberInput-Cq6cNPOt.js";
|
|
4
|
-
const V = /* @__PURE__ */ p({
|
|
5
|
-
__name: "NumberControlBase",
|
|
6
|
-
props: {
|
|
7
|
-
control: {},
|
|
8
|
-
handleChange: { type: Function },
|
|
9
|
-
changeValue: { type: Function },
|
|
10
|
-
disabled: { type: Boolean },
|
|
11
|
-
labelForId: {},
|
|
12
|
-
type: {}
|
|
13
|
-
},
|
|
14
|
-
setup(s) {
|
|
15
|
-
var l, u, r, m;
|
|
16
|
-
const o = s, n = i(
|
|
17
|
-
(l = o.control.uischema.options) == null ? void 0 : l.minProvider,
|
|
18
|
-
(u = o.control.uischema.options) == null ? void 0 : u.min
|
|
19
|
-
), a = i(
|
|
20
|
-
(r = o.control.uischema.options) == null ? void 0 : r.maxProvider,
|
|
21
|
-
(m = o.control.uischema.options) == null ? void 0 : m.max
|
|
22
|
-
), c = () => {
|
|
23
|
-
const e = o.control.data;
|
|
24
|
-
typeof n.value == "number" && e < n.value ? o.changeValue(n.value) : typeof a.value == "number" && e > a.value && o.changeValue(a.value);
|
|
25
|
-
};
|
|
26
|
-
return (e, v) => (d(), b(t(h), {
|
|
27
|
-
id: e.labelForId,
|
|
28
|
-
class: "number-input",
|
|
29
|
-
disabled: e.disabled,
|
|
30
|
-
"model-value": e.control.data,
|
|
31
|
-
type: e.type,
|
|
32
|
-
min: t(n),
|
|
33
|
-
max: t(a),
|
|
34
|
-
compact: "",
|
|
35
|
-
"onUpdate:modelValue": e.changeValue,
|
|
36
|
-
onFocusout: c
|
|
37
|
-
}, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "onUpdate:modelValue"]));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
V as _
|
|
42
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as m, createBlock as f, mergeProps as u, unref as d, withCtx as e, renderSlot as s } from "vue";
|
|
2
|
-
import { o as h } from "./index-hm05O8UX.js";
|
|
3
|
-
import { _ as y } from "./DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js";
|
|
4
|
-
const B = /* @__PURE__ */ l({
|
|
5
|
-
__name: "OneOfDropdown",
|
|
6
|
-
props: {
|
|
7
|
-
control: {},
|
|
8
|
-
handleChange: { type: Function },
|
|
9
|
-
changeValue: { type: Function },
|
|
10
|
-
disabled: { type: Boolean },
|
|
11
|
-
labelForId: {}
|
|
12
|
-
},
|
|
13
|
-
setup(r) {
|
|
14
|
-
var n, t;
|
|
15
|
-
const p = ((t = (n = r.control.schema) == null ? void 0 : n.oneOf) == null ? void 0 : t.map(h)) ?? [], a = Promise.resolve(p);
|
|
16
|
-
return (o, $) => (m(), f(y, u({ ...o.$attrs, ...o.$props }, { "async-initial-options": d(a) }), {
|
|
17
|
-
icon: e(() => [
|
|
18
|
-
s(o.$slots, "icon")
|
|
19
|
-
]),
|
|
20
|
-
buttons: e(({ hover: i, controlHTMLElement: c }) => [
|
|
21
|
-
s(o.$slots, "buttons", {
|
|
22
|
-
hover: i,
|
|
23
|
-
controlHTMLElement: c
|
|
24
|
-
})
|
|
25
|
-
]),
|
|
26
|
-
_: 3
|
|
27
|
-
}, 16, ["async-initial-options"]));
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
export {
|
|
31
|
-
B as default
|
|
32
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, openBlock as r, createBlock as a, mergeProps as n } from "vue";
|
|
2
|
-
import { _ as t } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-CJRt1KAq.js";
|
|
3
|
-
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
|
|
4
|
-
const s = /* @__PURE__ */ e({
|
|
5
|
-
__name: "RadioControl",
|
|
6
|
-
props: {
|
|
7
|
-
control: {},
|
|
8
|
-
handleChange: { type: Function },
|
|
9
|
-
changeValue: { type: Function },
|
|
10
|
-
disabled: { type: Boolean },
|
|
11
|
-
labelForId: {}
|
|
12
|
-
},
|
|
13
|
-
setup(c) {
|
|
14
|
-
return (o, l) => (r(), a(t, n(o.$props, {
|
|
15
|
-
type: "radio",
|
|
16
|
-
class: "radio"
|
|
17
|
-
}), null, 16));
|
|
18
|
-
}
|
|
19
|
-
}), m = /* @__PURE__ */ p(s, [["__scopeId", "data-v-06f75491"]]);
|
|
20
|
-
export {
|
|
21
|
-
m as default
|
|
22
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as l, createBlock as p, resolveDynamicComponent as f, computed as r, ref as _, createElementBlock as b, createVNode as g, unref as B, withCtx as C, createCommentVNode as h, createTextVNode as y, toDisplayString as k, renderSlot as I } from "vue";
|
|
2
|
-
import { k as S, _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
|
|
3
|
-
import { R as $ } from "./reload-BhzcZRFp.js";
|
|
4
|
-
import { B as x } from "./Button-Bw_2CUrZ.js";
|
|
5
|
-
const D = /* @__PURE__ */ u({
|
|
6
|
-
__name: "DynamicIcon",
|
|
7
|
-
props: {
|
|
8
|
-
icon: {}
|
|
9
|
-
},
|
|
10
|
-
setup(s) {
|
|
11
|
-
const e = {
|
|
12
|
-
reload: $
|
|
13
|
-
};
|
|
14
|
-
return (t, a) => (l(), p(f(e[t.icon])));
|
|
15
|
-
}
|
|
16
|
-
}), F = /* @__PURE__ */ u({
|
|
17
|
-
__name: "SimpleButtonControl",
|
|
18
|
-
props: {
|
|
19
|
-
control: {},
|
|
20
|
-
handleChange: { type: Function },
|
|
21
|
-
changeValue: { type: Function },
|
|
22
|
-
disabled: { type: Boolean },
|
|
23
|
-
labelForId: {}
|
|
24
|
-
},
|
|
25
|
-
setup(s) {
|
|
26
|
-
const e = s, t = r(() => !e.control.enabled), a = r(() => e.control.uischema.options.triggerId), c = r(
|
|
27
|
-
() => e.control.uischema.options.icon
|
|
28
|
-
), d = S("trigger"), m = () => {
|
|
29
|
-
d({ id: a.value });
|
|
30
|
-
}, n = _(!1);
|
|
31
|
-
return (i, o) => (l(), b("div", {
|
|
32
|
-
class: "simple-button-input",
|
|
33
|
-
onMouseover: o[0] || (o[0] = (v) => n.value = !0),
|
|
34
|
-
onMouseleave: o[1] || (o[1] = (v) => n.value = !1)
|
|
35
|
-
}, [
|
|
36
|
-
g(B(x), {
|
|
37
|
-
compact: "",
|
|
38
|
-
"with-border": "",
|
|
39
|
-
disabled: t.value,
|
|
40
|
-
class: "button-input",
|
|
41
|
-
onClick: m
|
|
42
|
-
}, {
|
|
43
|
-
default: C(() => [
|
|
44
|
-
c.value ? (l(), p(D, {
|
|
45
|
-
key: 0,
|
|
46
|
-
icon: c.value
|
|
47
|
-
}, null, 8, ["icon"])) : h("", !0),
|
|
48
|
-
y(k(i.control.label), 1)
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["disabled"]),
|
|
52
|
-
I(i.$slots, "buttons", { hover: n.value }, void 0, !0)
|
|
53
|
-
], 32));
|
|
54
|
-
}
|
|
55
|
-
}), j = /* @__PURE__ */ V(F, [["__scopeId", "data-v-71d12dcd"]]);
|
|
56
|
-
export {
|
|
57
|
-
j as default
|
|
58
|
-
};
|