@knime/jsonforms 1.4.2 → 1.5.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 +6 -0
- package/dist/{AnyOfTwinlist-ZSMUfL9L.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
- package/dist/{BaseButton-DaHwEJS7.js → BaseButton-8vDrj52e.js} +1 -1
- package/dist/{Button-Bw_2CUrZ.js → Button-Bngb_I70.js} +2 -2
- package/dist/{Checkbox-CClH5v1O.js → Checkbox-DSfVQlDb.js} +1 -1
- package/dist/CheckboxControl-D85aBRJ6.js +41 -0
- package/dist/{Checkboxes-D4qPaeYl.js → Checkboxes-DUJ3v5jU.js} +2 -2
- package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
- package/dist/{ColumnFilter-C7RkEFw3.js → ColumnFilter-BzCVLydy.js} +7 -5
- package/dist/{ColumnSelect-CofZcttu.js → ColumnSelect-DK7NqI5Q.js} +21 -18
- package/dist/{ComboBoxControl-C9KmCrJL.js → ComboBoxControl-CEXpJltI.js} +17 -14
- package/dist/{DateControl-CzO-FHO5.js → DateControl-CjRiy7d1.js} +6 -4
- package/dist/{DateTimeControl-1FXkgKJC.js → DateTimeControl-CaDuNC_u.js} +18 -15
- package/dist/{DateTimeFormatPickerControl-CoY0tjuj.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
- package/dist/{DateTimeInput-BS4u5oiH.js → DateTimeInput-96g3nCth.js} +7 -7
- package/dist/{Dropdown-DY6B_Cwm.js → Dropdown-CQKvBlYB.js} +4 -4
- package/dist/{DropdownControl-BOx53GRG.js → DropdownControl-B0x5hFXM.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js +237 -0
- package/dist/{FunctionButton-fTG-kCKu.js → FunctionButton-CapvFBi0.js} +2 -2
- package/dist/{HorizontalLayout-B6G89LUS.js → HorizontalLayout-k7vmjzLP.js} +1 -1
- package/dist/{InputField-Ciw2sHfy.js → InputField-DhyBnTBT.js} +1 -1
- package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
- package/dist/{IntervalControl-Cv3oVrKV.js → IntervalControl-DhujNXBe.js} +37 -35
- package/dist/{MultiselectListBox-Ds0W-GHB.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
- package/dist/{NameFilter-BpyjqqIg.js → NameFilter-DJhwpboP.js} +7 -5
- package/dist/NumberControl-CU94dpBh.js +20 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-6vn1oT7O.js +60 -0
- package/dist/{NumberInput-Cq6cNPOt.js → NumberInput-Io3ZSWBF.js} +1 -1
- package/dist/OneOfDropdown-C04RF5gK.js +35 -0
- package/dist/RadioControl-Ni6f_qCw.js +24 -0
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CJRt1KAq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
- package/dist/{RichTextControl-DfLozxjM.js → RichTextControl-hHIvuaDd.js} +9 -7
- package/dist/{SectionLayout-B8lhvDwV.js → SectionLayout-DEKmJPJl.js} +2 -2
- package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
- package/dist/{SimpleTwinlistControl--SlX5r8j.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
- package/dist/SortListControl-CsrP-QT8.js +366 -0
- package/dist/{TextAreaControl-Cxe1N51h.js → TextAreaControl-CNH7s35f.js} +25 -22
- package/dist/{TextControl-C97DTUxi.js → TextControl-C1ZKoreI.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-BhX-hMgT.js +87 -0
- package/dist/TimeControl-Bwt1kRki.js +33 -0
- package/dist/{TwinlistControl-Cw71wnqH.js → TwinlistControl-DJ88Q4I-.js} +21 -18
- package/dist/{TwinlistLoadingInfo-5dgWG85L.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
- package/dist/{ValueSwitch-Ds5TMrQM.js → ValueSwitch-B08Mz10g.js} +1 -1
- package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
- package/dist/{VerticalLayout-FdSZVMXg.js → VerticalLayout-ptrtpOrD.js} +2 -2
- package/dist/{VerticalLayoutBase-BM2Lzz4_.js → VerticalLayoutBase-B8FGVlzl.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-Do6BV4CX.js} +5705 -5674
- package/dist/ZonedDateTimeControl-70XjGsqQ.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-CzJjTpP3.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-YSv0CfBl.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 +1 -1
- 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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { resolveComponent as qe, openBlock as O, createElementBlock as E, normalizeClass as te, createElementVNode as q, createCommentVNode as ee, withModifiers as Nt, createVNode as V, reactive as Na, computed as _, defineComponent as Ce, ref as we, watch as Ae, onMounted as Un, onUnmounted as Aa, toRefs as yl, inject as br, watchEffect as Co, provide as Dr, nextTick as fr, unref as M, createBlock as Pe, resolveDynamicComponent as Wa, normalizeProps as mr, mergeProps as Mt, renderSlot as _r, withCtx as Te, toDisplayString as Le, Fragment as Oe, renderList as Ge, normalizeStyle as pr, withKeys as _n, withDirectives as xo, toRef as yn, guardReactiveProps as _a, createTextVNode as Ua, isRef as ir, Transition as Yo, resolveDirective as gl, toHandlers as Io, pushScopeId as wl, popScopeId as bl } from "vue";
|
|
2
2
|
import { c as Dl } from "./popper-CRR--9mA.js";
|
|
3
|
-
import { r as _l } from "./BaseButton-
|
|
4
|
-
import { D as Tl } from "./Dropdown-
|
|
3
|
+
import { r as _l } from "./BaseButton-8vDrj52e.js";
|
|
4
|
+
import { D as Tl } from "./Dropdown-CQKvBlYB.js";
|
|
5
5
|
import { A as Ml } from "./arrow-dropdown-DjUxzjqC.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { _ as So,
|
|
8
|
-
import { i as $l, a as Pl } from "./toString-
|
|
9
|
-
import { b as kl } from "./_baseIteratee-
|
|
10
|
-
import { b as Ol } from "./_baseEach-
|
|
11
|
-
import { a as Cl } from "./_getTag-
|
|
7
|
+
import { _ as So, r as Fn } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
8
|
+
import { i as $l, a as Pl } from "./toString-DkbNkGT4.js";
|
|
9
|
+
import { b as kl } from "./_baseIteratee-DvBmrhnf.js";
|
|
10
|
+
import { b as Ol } from "./_baseEach-B8N_Gx8P.js";
|
|
11
|
+
import { a as Cl } from "./_getTag-DS8v0_uf.js";
|
|
12
12
|
function it(e) {
|
|
13
13
|
"@babel/helpers - typeof";
|
|
14
14
|
return it = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -3,10 +3,10 @@ import { A as pe } from "./arrow-dropdown-DjUxzjqC.js";
|
|
|
3
3
|
import { C as he } from "./close-h7XT0ja0.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { u as me } from "./useSearch-hpyYQ_6y.js";
|
|
6
|
-
import { F as ge } from "./FunctionButton-
|
|
7
|
-
import { a as ye, b as we, d as xe, f as ve, h as Ve, j as be, k as Ee } from "./_getTag-
|
|
8
|
-
import { i as Se } from "./toString-
|
|
9
|
-
import { _ as ke } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
6
|
+
import { F as ge } from "./FunctionButton-CapvFBi0.js";
|
|
7
|
+
import { a as ye, b as we, d as xe, f as ve, h as Ve, j as be, k as Ee } from "./_getTag-DS8v0_uf.js";
|
|
8
|
+
import { i as Se } from "./toString-DkbNkGT4.js";
|
|
9
|
+
import { _ as ke } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
10
10
|
var Ce = "[object Map]", Oe = "[object Set]", Ie = Object.prototype, De = Ie.hasOwnProperty;
|
|
11
11
|
function _e(e) {
|
|
12
12
|
if (e == null)
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { defineComponent as E, computed as c, openBlock as y, createBlock as w, unref as h, mergeProps as H, withCtx as b, createCommentVNode as O, ref as N, onMounted as K, onBeforeUnmount as G, normalizeProps as J, createVNode as Q, renderSlot as T } from "vue";
|
|
2
|
+
import { _ as X, k as D, u as Y, L as Z, o as j } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
|
+
import { w as ee } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
|
|
4
|
+
import { u as oe } from "./useHideOnNull-CCfNP3O7.js";
|
|
5
|
+
import { D as ne } from "./Dropdown-CQKvBlYB.js";
|
|
6
|
+
import { L as ae } from "./svgWithTitle-YSv0CfBl.js";
|
|
7
|
+
import { b as te } from "./_baseAssignValue-BPMLYzDH.js";
|
|
8
|
+
import { e as le, c as se, t as re, i as ie } from "./_getTag-DS8v0_uf.js";
|
|
9
|
+
import { i as B } from "./isObject-B53jY8Qg.js";
|
|
10
|
+
import { C as ue } from "./Checkbox-DSfVQlDb.js";
|
|
11
|
+
var de = Object.prototype, ce = de.hasOwnProperty;
|
|
12
|
+
function pe(o, e, l) {
|
|
13
|
+
var s = o[e];
|
|
14
|
+
(!(ce.call(o, e) && le(s, l)) || l === void 0 && !(e in o)) && te(o, e, l);
|
|
15
|
+
}
|
|
16
|
+
function me(o, e, l, s) {
|
|
17
|
+
if (!B(o))
|
|
18
|
+
return o;
|
|
19
|
+
e = se(e, o);
|
|
20
|
+
for (var u = -1, r = e.length, g = r - 1, d = o; d != null && ++u < r; ) {
|
|
21
|
+
var t = re(e[u]), i = l;
|
|
22
|
+
if (t === "__proto__" || t === "constructor" || t === "prototype")
|
|
23
|
+
return o;
|
|
24
|
+
if (u != g) {
|
|
25
|
+
var v = d[t];
|
|
26
|
+
i = void 0, i === void 0 && (i = B(v) ? v : ie(e[u + 1]) ? [] : {});
|
|
27
|
+
}
|
|
28
|
+
pe(d, t, i), d = d[t];
|
|
29
|
+
}
|
|
30
|
+
return o;
|
|
31
|
+
}
|
|
32
|
+
function he(o, e, l) {
|
|
33
|
+
return o == null ? o : me(o, e, l);
|
|
34
|
+
}
|
|
35
|
+
var a = [];
|
|
36
|
+
for (var I = 0; I < 256; ++I)
|
|
37
|
+
a.push((I + 256).toString(16).slice(1));
|
|
38
|
+
function ge(o, e = 0) {
|
|
39
|
+
return (a[o[e + 0]] + a[o[e + 1]] + a[o[e + 2]] + a[o[e + 3]] + "-" + a[o[e + 4]] + a[o[e + 5]] + "-" + a[o[e + 6]] + a[o[e + 7]] + "-" + a[o[e + 8]] + a[o[e + 9]] + "-" + a[o[e + 10]] + a[o[e + 11]] + a[o[e + 12]] + a[o[e + 13]] + a[o[e + 14]] + a[o[e + 15]]).toLowerCase();
|
|
40
|
+
}
|
|
41
|
+
var U, ve = new Uint8Array(16);
|
|
42
|
+
function be() {
|
|
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(ve);
|
|
46
|
+
}
|
|
47
|
+
var fe = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
48
|
+
const x = {
|
|
49
|
+
randomUUID: fe
|
|
50
|
+
};
|
|
51
|
+
function Ve(o, e, l) {
|
|
52
|
+
if (x.randomUUID && !o)
|
|
53
|
+
return x.randomUUID();
|
|
54
|
+
o = o || {};
|
|
55
|
+
var s = o.random || (o.rng || be)();
|
|
56
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, ge(s);
|
|
57
|
+
}
|
|
58
|
+
const ye = ({ view: o, model: e }) => ({
|
|
59
|
+
...o,
|
|
60
|
+
...e
|
|
61
|
+
}), we = /* @__PURE__ */ E({
|
|
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(ne), H({ ...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": b(() => [
|
|
85
|
+
r.possibleValues === null ? (y(), w(h(ae), {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "loading-icon"
|
|
88
|
+
})) : O("", !0)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
|
|
92
|
+
}
|
|
93
|
+
}), De = /* @__PURE__ */ X(we, [["__scopeId", "data-v-cf6ba18c"]]), Te = /* @__PURE__ */ E({
|
|
94
|
+
__name: "DropdownControl",
|
|
95
|
+
props: {
|
|
96
|
+
control: {},
|
|
97
|
+
handleChange: {},
|
|
98
|
+
changeValue: {},
|
|
99
|
+
disabled: { type: Boolean },
|
|
100
|
+
labelForId: {},
|
|
101
|
+
isValid: { type: Boolean },
|
|
102
|
+
messages: {},
|
|
103
|
+
onRegisterValidation: {},
|
|
104
|
+
asyncInitialOptions: { default: null },
|
|
105
|
+
controlDataToDropdownValue: { type: Function, default: (o) => o },
|
|
106
|
+
dropdownValueToControlData: { type: Function, default: (o) => o }
|
|
107
|
+
},
|
|
108
|
+
setup(o) {
|
|
109
|
+
const e = o, l = D("getPossibleValuesFromUiSchema"), s = D("registerWatcher"), u = D("getData"), r = D("sendAlert"), g = N(null), d = c(
|
|
110
|
+
() => {
|
|
111
|
+
var n;
|
|
112
|
+
return (n = e.control.uischema.options) == null ? void 0 : n.choicesProvider;
|
|
113
|
+
}
|
|
114
|
+
), t = ee(
|
|
115
|
+
Y(d.value, null),
|
|
116
|
+
e.control
|
|
117
|
+
), i = N(e.control.data), v = (n) => e.dropdownValueToControlData(
|
|
118
|
+
n.length > 0 ? n[0].id : null
|
|
119
|
+
), { showCheckbox: R, showControl: A, checkboxProps: $ } = oe(
|
|
120
|
+
{
|
|
121
|
+
control: c(() => e.control),
|
|
122
|
+
disabled: c(() => e.disabled),
|
|
123
|
+
controlElement: g
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
setDefault: () => {
|
|
127
|
+
!i.value && t.value ? e.changeValue(v(t.value)) : e.changeValue(i.value);
|
|
128
|
+
},
|
|
129
|
+
setNull: () => {
|
|
130
|
+
e.changeValue(null);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
), _ = c(
|
|
134
|
+
() => e.controlDataToDropdownValue(e.control.data)
|
|
135
|
+
), L = c(
|
|
136
|
+
() => {
|
|
137
|
+
var n;
|
|
138
|
+
return (n = e.control.uischema.options) == null ? void 0 : n.choicesUpdateHandler;
|
|
139
|
+
}
|
|
140
|
+
), M = Ve(), P = async (n, f) => {
|
|
141
|
+
const { result: p, state: m, message: C } = await u({
|
|
142
|
+
method: "settings.update",
|
|
143
|
+
options: [
|
|
144
|
+
M,
|
|
145
|
+
L.value,
|
|
146
|
+
ye(n)
|
|
147
|
+
]
|
|
148
|
+
});
|
|
149
|
+
return (q) => {
|
|
150
|
+
const S = (V) => {
|
|
151
|
+
t.value = V, (f || !_.value) && (he(
|
|
152
|
+
q,
|
|
153
|
+
e.control.path,
|
|
154
|
+
v(V)
|
|
155
|
+
), e.changeValue(v(V)));
|
|
156
|
+
};
|
|
157
|
+
p && S(p), m === "FAIL" && (C.forEach((V) => {
|
|
158
|
+
r({
|
|
159
|
+
message: V,
|
|
160
|
+
type: "error"
|
|
161
|
+
});
|
|
162
|
+
}), S([]));
|
|
163
|
+
};
|
|
164
|
+
}, W = async (n) => {
|
|
165
|
+
(await P(n, !1))(n);
|
|
166
|
+
}, k = async () => {
|
|
167
|
+
e.asyncInitialOptions !== null ? t.value = await e.asyncInitialOptions : d.value || l(e.control).then((n) => {
|
|
168
|
+
t.value = n;
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
let F = () => {
|
|
172
|
+
};
|
|
173
|
+
K(async () => {
|
|
174
|
+
var n, f;
|
|
175
|
+
if (L.value) {
|
|
176
|
+
const p = ((n = e.control.uischema.options) == null ? void 0 : n.dependencies) || [], m = !!((f = e.control.uischema.options) != null && f.setFirstValueOnUpdate);
|
|
177
|
+
F = await s({
|
|
178
|
+
transformSettings: (C) => P(C, m),
|
|
179
|
+
init: W,
|
|
180
|
+
dependencies: p
|
|
181
|
+
});
|
|
182
|
+
} else
|
|
183
|
+
k();
|
|
184
|
+
}), G(() => {
|
|
185
|
+
F();
|
|
186
|
+
});
|
|
187
|
+
const z = (n) => {
|
|
188
|
+
i.value = e.dropdownValueToControlData(n), e.changeValue(i.value);
|
|
189
|
+
};
|
|
190
|
+
return (n, f) => {
|
|
191
|
+
var p;
|
|
192
|
+
return y(), w(Z, {
|
|
193
|
+
label: n.control.label,
|
|
194
|
+
"hide-control-header": (p = n.control.uischema.options) == null ? void 0 : p.hideControlHeader
|
|
195
|
+
}, {
|
|
196
|
+
"before-label": b(() => [
|
|
197
|
+
h(R) ? (y(), w(h(ue), J(H({ key: 0 }, h($))), null, 16)) : O("", !0)
|
|
198
|
+
]),
|
|
199
|
+
default: b(({ labelForId: m }) => [
|
|
200
|
+
h(A) ? (y(), w(j, {
|
|
201
|
+
key: 0,
|
|
202
|
+
errors: n.messages.errors
|
|
203
|
+
}, {
|
|
204
|
+
default: b(() => [
|
|
205
|
+
Q(De, {
|
|
206
|
+
id: m ?? "",
|
|
207
|
+
ref_key: "controlElement",
|
|
208
|
+
ref: g,
|
|
209
|
+
ariaLabel: n.control.label,
|
|
210
|
+
disabled: n.disabled,
|
|
211
|
+
"model-value": _.value,
|
|
212
|
+
"possible-values": h(t),
|
|
213
|
+
"is-valid": n.isValid,
|
|
214
|
+
compact: "",
|
|
215
|
+
"onUpdate:modelValue": z
|
|
216
|
+
}, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "is-valid"])
|
|
217
|
+
]),
|
|
218
|
+
_: 2
|
|
219
|
+
}, 1032, ["errors"])) : O("", !0)
|
|
220
|
+
]),
|
|
221
|
+
icon: b(() => [
|
|
222
|
+
T(n.$slots, "icon")
|
|
223
|
+
]),
|
|
224
|
+
buttons: b(({ hover: m }) => [
|
|
225
|
+
T(n.$slots, "buttons", {
|
|
226
|
+
hover: m,
|
|
227
|
+
controlHTMLElement: g.value
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 3
|
|
231
|
+
}, 8, ["label", "hide-control-header"]);
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
export {
|
|
236
|
+
Te as _
|
|
237
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as s } from "./BaseButton-
|
|
1
|
+
import { B as s } from "./BaseButton-8vDrj52e.js";
|
|
2
2
|
import { resolveComponent as o, openBlock as l, createBlock as r, normalizeClass as i, withCtx as d, renderSlot as c } from "vue";
|
|
3
|
-
import { _ as u } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
+
import { _ as u } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
4
|
const f = {
|
|
5
5
|
name: "FunctionButton",
|
|
6
6
|
components: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as a, createElementBlock as o, Fragment as s, renderList as n, createBlock as u, unref as c } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { q as m, _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
3
|
const i = { class: "horizontal" }, h = /* @__PURE__ */ l({
|
|
4
4
|
__name: "HorizontalLayout",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { openBlock as s, createElementBlock as l, normalizeClass as r, renderSlot as o, createCommentVNode as u, createElementVNode as d, mergeProps as c, pushScopeId as p, popScopeId as f } from "vue";
|
|
3
|
-
import { _ as m } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
+
import { _ as m } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
4
|
const h = {
|
|
5
5
|
name: "InputField",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-6vn1oT7O.js";
|
|
3
|
+
const s = /* @__PURE__ */ o({
|
|
4
|
+
__name: "IntegerControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
isValid: { type: Boolean },
|
|
11
|
+
onRegisterValidation: { type: Function },
|
|
12
|
+
labelForId: {}
|
|
13
|
+
},
|
|
14
|
+
setup(p) {
|
|
15
|
+
return (e, l) => (n(), t(a, r(e.$props, { type: "integer" }), null, 16));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
s as default
|
|
20
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { _ as H, u as Re } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
1
|
+
import { openBlock as v, createElementBlock as E, renderSlot as Te, toDisplayString as w, createCommentVNode as B, createElementVNode as p, defineComponent as F, mergeModels as G, useModel as k, computed as D, Fragment as V, createBlock as j, withDirectives as P, createVNode as I, vShow as b, renderList as z, unref as c, withCtx as X, createTextVNode as ge, pushScopeId as De, popScopeId as ye, ref as h, watch as K, normalizeClass as xe, withKeys as $e, vModelText as Me, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { _ as H, u as Re } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
3
|
import { o as Ae, a as we } from "./index-CkuSIXs2.js";
|
|
4
4
|
import { u as be, s as Ne, f as Ve, o as Se, a as Ce } from "./floating-ui.vue.esm-B1dY_Hbh.js";
|
|
5
|
-
import { F as Oe } from "./FunctionButton-
|
|
6
|
-
import { N as W } from "./NumberInput-
|
|
7
|
-
import { V as q } from "./ValueSwitch-
|
|
5
|
+
import { F as Oe } from "./FunctionButton-CapvFBi0.js";
|
|
6
|
+
import { N as W } from "./NumberInput-Io3ZSWBF.js";
|
|
7
|
+
import { V as q } from "./ValueSwitch-B08Mz10g.js";
|
|
8
8
|
const Ge = {
|
|
9
9
|
name: "Tooltip",
|
|
10
10
|
props: {
|
|
@@ -18,9 +18,9 @@ const Ge = {
|
|
|
18
18
|
class: "text"
|
|
19
19
|
};
|
|
20
20
|
function Fe(e, t, a, n, i, s) {
|
|
21
|
-
return
|
|
21
|
+
return v(), E("div", ke, [
|
|
22
22
|
Te(e.$slots, "default", {}, void 0, !0),
|
|
23
|
-
a.text ? (
|
|
23
|
+
a.text ? (v(), E("span", Be, w(a.text), 1)) : B("", !0)
|
|
24
24
|
]);
|
|
25
25
|
}
|
|
26
26
|
const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc"]]), J = (e, t) => ({
|
|
@@ -158,11 +158,11 @@ const He = /* @__PURE__ */ H(Ge, [["render", Fe], ["__scopeId", "data-v-05123edc
|
|
|
158
158
|
stroke: "#000",
|
|
159
159
|
"stroke-linejoin": "round",
|
|
160
160
|
viewBox: "0 0 32 32"
|
|
161
|
-
}, Le = /* @__PURE__ */
|
|
161
|
+
}, Le = /* @__PURE__ */ p("path", { d: "m19.7 17-4.6-2.6V8.7m6.3 15.6h8.7m-3.2-3.2 3.2 3.2-3.2 3.2m-18-5.4c-2.2-1.8-3.6-4.6-3.6-7.7 0-5.5 4.4-9.9 9.9-9.9S25 8.9 25 14.4s-4.4 9.9-9.9 9.9H1.9" }, null, -1), Ye = [
|
|
162
162
|
Le
|
|
163
163
|
];
|
|
164
164
|
function Ze(e, t) {
|
|
165
|
-
return
|
|
165
|
+
return v(), E("svg", qe, [...Ye]);
|
|
166
166
|
}
|
|
167
167
|
const je = { render: Ze }, L = [
|
|
168
168
|
"years",
|
|
@@ -195,7 +195,7 @@ const je = { render: Ze }, L = [
|
|
|
195
195
|
} : {
|
|
196
196
|
...t,
|
|
197
197
|
durationPart: e.interval
|
|
198
|
-
}, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Je = (e) => (De("data-v-ed4a2407"), e = e(), ye(), e), Qe = { class: "header" }, et = /* @__PURE__ */ Je(() => /* @__PURE__ */
|
|
198
|
+
}, O = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Je = (e) => (De("data-v-ed4a2407"), e = e(), ye(), e), Qe = { class: "header" }, et = /* @__PURE__ */ Je(() => /* @__PURE__ */ p("span", { class: "input-title" }, "Duration", -1)), tt = { class: "ascending-descending-switch-container" }, at = { class: "input-grid" }, nt = { class: "input-label" }, st = { class: "input-label" }, ot = { class: "accept-controls" }, lt = /* @__PURE__ */ F({
|
|
199
199
|
__name: "IntervalInputPopoverContent",
|
|
200
200
|
props: /* @__PURE__ */ G({
|
|
201
201
|
format: {},
|
|
@@ -243,10 +243,10 @@ const je = { render: Ze }, L = [
|
|
|
243
243
|
_.value
|
|
244
244
|
);
|
|
245
245
|
};
|
|
246
|
-
return (u, m) => (
|
|
247
|
-
|
|
246
|
+
return (u, m) => (v(), E(V, null, [
|
|
247
|
+
p("span", Qe, [
|
|
248
248
|
et,
|
|
249
|
-
n.format === "DATE_OR_TIME" ? (
|
|
249
|
+
n.format === "DATE_OR_TIME" ? (v(), j(q, {
|
|
250
250
|
key: 0,
|
|
251
251
|
modelValue: i.value,
|
|
252
252
|
"onUpdate:modelValue": m[0] || (m[0] = (o) => i.value = o),
|
|
@@ -257,7 +257,7 @@ const je = { render: Ze }, L = [
|
|
|
257
257
|
compact: ""
|
|
258
258
|
}, null, 8, ["modelValue"])) : B("", !0)
|
|
259
259
|
]),
|
|
260
|
-
P(
|
|
260
|
+
P(p("div", tt, [
|
|
261
261
|
I(q, {
|
|
262
262
|
modelValue: _.value,
|
|
263
263
|
"onUpdate:modelValue": m[1] || (m[1] = (o) => _.value = o),
|
|
@@ -270,12 +270,12 @@ const je = { render: Ze }, L = [
|
|
|
270
270
|
], 512), [
|
|
271
271
|
[b, u.allowDescending]
|
|
272
272
|
]),
|
|
273
|
-
|
|
274
|
-
(
|
|
273
|
+
p("div", at, [
|
|
274
|
+
(v(!0), E(V, null, z(c(L), (o) => P((v(), E("span", {
|
|
275
275
|
key: o,
|
|
276
276
|
class: "labeled-date-time-input"
|
|
277
277
|
}, [
|
|
278
|
-
|
|
278
|
+
p("span", nt, w(c(O)(o)), 1),
|
|
279
279
|
I(W, {
|
|
280
280
|
modelValue: s.value.periodPart[o],
|
|
281
281
|
"onUpdate:modelValue": (x) => s.value.periodPart[o] = x,
|
|
@@ -287,11 +287,11 @@ const je = { render: Ze }, L = [
|
|
|
287
287
|
], 512)), [
|
|
288
288
|
[b, i.value === "DATE"]
|
|
289
289
|
])), 128)),
|
|
290
|
-
(
|
|
290
|
+
(v(!0), E(V, null, z(c(Y), (o) => P((v(), E("span", {
|
|
291
291
|
key: o,
|
|
292
292
|
class: "labeled-date-time-input"
|
|
293
293
|
}, [
|
|
294
|
-
|
|
294
|
+
p("span", st, w(c(O)(o)), 1),
|
|
295
295
|
I(W, {
|
|
296
296
|
"model-value": s.value.durationPart[o],
|
|
297
297
|
min: c(T)[o].min,
|
|
@@ -306,7 +306,7 @@ const je = { render: Ze }, L = [
|
|
|
306
306
|
[b, i.value === "TIME"]
|
|
307
307
|
])), 128))
|
|
308
308
|
]),
|
|
309
|
-
|
|
309
|
+
p("div", ot, [
|
|
310
310
|
I(He, {
|
|
311
311
|
text: d.value.valid ? "" : d.value.reason
|
|
312
312
|
}, {
|
|
@@ -330,8 +330,8 @@ const je = { render: Ze }, L = [
|
|
|
330
330
|
}), rt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-ed4a2407"]]), it = { class: "input-fields" }, dt = ["disabled", "placeholder"], ut = {
|
|
331
331
|
key: 0,
|
|
332
332
|
class: "invalid-marker"
|
|
333
|
-
}, ct = ["disabled"],
|
|
334
|
-
...
|
|
333
|
+
}, ct = ["disabled"], pt = {}, vt = /* @__PURE__ */ F({
|
|
334
|
+
...pt,
|
|
335
335
|
__name: "IntervalInput",
|
|
336
336
|
props: /* @__PURE__ */ G({
|
|
337
337
|
format: { default: "DATE_OR_TIME" },
|
|
@@ -400,7 +400,7 @@ const je = { render: Ze }, L = [
|
|
|
400
400
|
g(a.value),
|
|
401
401
|
s.value
|
|
402
402
|
);
|
|
403
|
-
},
|
|
403
|
+
}, pe = (l) => {
|
|
404
404
|
const r = C(
|
|
405
405
|
l,
|
|
406
406
|
"DATE_OR_TIME"
|
|
@@ -414,7 +414,7 @@ const je = { render: Ze }, L = [
|
|
|
414
414
|
f,
|
|
415
415
|
s.value
|
|
416
416
|
), a.value = S(f), n.value = r.type, d.value = M(f);
|
|
417
|
-
},
|
|
417
|
+
}, ve = (l) => {
|
|
418
418
|
const r = g(l);
|
|
419
419
|
d.value = M(r), s.value = A(
|
|
420
420
|
r,
|
|
@@ -429,9 +429,9 @@ const je = { render: Ze }, L = [
|
|
|
429
429
|
}, fe = (l) => {
|
|
430
430
|
l !== "DATE_OR_TIME" && me(l);
|
|
431
431
|
}, $ = h(!1);
|
|
432
|
-
K(() => t.format, fe), K(a,
|
|
432
|
+
K(() => t.format, fe), K(a, ve);
|
|
433
433
|
const U = (l) => {
|
|
434
|
-
|
|
434
|
+
pe(l);
|
|
435
435
|
}, R = (l, r) => {
|
|
436
436
|
l && r ? o(
|
|
437
437
|
r.popoverValues,
|
|
@@ -461,12 +461,12 @@ const je = { render: Ze }, L = [
|
|
|
461
461
|
placement: "top-end",
|
|
462
462
|
whileElementsMounted: Ce
|
|
463
463
|
});
|
|
464
|
-
return (l, r) => (
|
|
465
|
-
|
|
464
|
+
return (l, r) => (v(), E("div", null, [
|
|
465
|
+
p("div", {
|
|
466
466
|
class: xe(["wrapper", { disabled: l.disabled, compact: l.compact }])
|
|
467
467
|
}, [
|
|
468
|
-
|
|
469
|
-
P(
|
|
468
|
+
p("span", it, [
|
|
469
|
+
P(p("input", {
|
|
470
470
|
ref_key: "inputTextFieldRef",
|
|
471
471
|
ref: m,
|
|
472
472
|
"onUpdate:modelValue": r[0] || (r[0] = (f) => d.value = f),
|
|
@@ -480,8 +480,8 @@ const je = { render: Ze }, L = [
|
|
|
480
480
|
}, null, 40, dt), [
|
|
481
481
|
[Me, d.value]
|
|
482
482
|
]),
|
|
483
|
-
_.value ? B("", !0) : (
|
|
484
|
-
|
|
483
|
+
_.value ? B("", !0) : (v(), E("span", ut)),
|
|
484
|
+
p("button", {
|
|
485
485
|
ref_key: "togglePopoverButtonRef",
|
|
486
486
|
ref: u,
|
|
487
487
|
class: "trigger-popover-button",
|
|
@@ -494,7 +494,7 @@ const je = { render: Ze }, L = [
|
|
|
494
494
|
], 8, ct)
|
|
495
495
|
])
|
|
496
496
|
], 2),
|
|
497
|
-
P(
|
|
497
|
+
P(p("div", {
|
|
498
498
|
ref_key: "durationInputPopoverRef",
|
|
499
499
|
ref: y,
|
|
500
500
|
class: "control-popup",
|
|
@@ -516,13 +516,15 @@ const je = { render: Ze }, L = [
|
|
|
516
516
|
])
|
|
517
517
|
]));
|
|
518
518
|
}
|
|
519
|
-
}), mt = /* @__PURE__ */ H(
|
|
519
|
+
}), mt = /* @__PURE__ */ H(vt, [["__scopeId", "data-v-0dd589ba"]]), Dt = /* @__PURE__ */ F({
|
|
520
520
|
__name: "IntervalControl",
|
|
521
521
|
props: {
|
|
522
522
|
control: {},
|
|
523
523
|
handleChange: { type: Function },
|
|
524
524
|
changeValue: { type: Function },
|
|
525
525
|
disabled: { type: Boolean },
|
|
526
|
+
isValid: { type: Boolean },
|
|
527
|
+
onRegisterValidation: { type: Function },
|
|
526
528
|
labelForId: {}
|
|
527
529
|
},
|
|
528
530
|
setup(e) {
|
|
@@ -534,7 +536,7 @@ const je = { render: Ze }, L = [
|
|
|
534
536
|
}),
|
|
535
537
|
((i = a.value) == null ? void 0 : i.intervalType) ?? "DATE_OR_TIME"
|
|
536
538
|
);
|
|
537
|
-
return (s, d) => (
|
|
539
|
+
return (s, d) => (v(), j(c(mt), {
|
|
538
540
|
id: s.labelForId,
|
|
539
541
|
compact: "",
|
|
540
542
|
disabled: s.disabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as h, createElementBlock as u, mergeProps as x, withModifiers as a, toDisplayString as y, toRef as p, watch as I, resolveComponent as v, normalizeClass as C, normalizeStyle as w, createElementVNode as f, withKeys as d, normalizeProps as V, guardReactiveProps as k, Fragment as H, renderList as B, createBlock as g, resolveDynamicComponent as D, createCommentVNode as b, createVNode as K } from "vue";
|
|
2
2
|
import { b as N } from "./index-CkuSIXs2.js";
|
|
3
|
-
import { _ as S } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
3
|
+
import { _ as S } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
4
|
const A = (e, t) => {
|
|
5
5
|
let i, n = 0;
|
|
6
6
|
return (...r) => {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as a } from "vue";
|
|
2
|
+
import l from "./TwinlistControl-DJ88Q4I-.js";
|
|
3
|
+
const u = /* @__PURE__ */ n({
|
|
4
4
|
__name: "NameFilter",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
+
isValid: { type: Boolean },
|
|
11
|
+
onRegisterValidation: { type: Function },
|
|
10
12
|
labelForId: {}
|
|
11
13
|
},
|
|
12
14
|
setup(r) {
|
|
13
|
-
return (e, s) => (o(), t(
|
|
15
|
+
return (e, s) => (o(), t(l, a({ ...e.$props, ...e.$attrs }, {
|
|
14
16
|
"unknown-values-text": "Any unknown value",
|
|
15
17
|
"show-unknown-values": "",
|
|
16
18
|
"empty-state-label": "No values in this list"
|
|
@@ -18,5 +20,5 @@ const i = /* @__PURE__ */ n({
|
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
22
|
export {
|
|
21
|
-
|
|
23
|
+
u as default
|
|
22
24
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-6vn1oT7O.js";
|
|
3
|
+
const s = /* @__PURE__ */ o({
|
|
4
|
+
__name: "NumberControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
isValid: { type: Boolean },
|
|
11
|
+
onRegisterValidation: { type: Function },
|
|
12
|
+
labelForId: {}
|
|
13
|
+
},
|
|
14
|
+
setup(p) {
|
|
15
|
+
return (e, l) => (n(), t(a, r(e.$props, { type: "double" }), null, 16));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
s as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as b, computed as y, openBlock as h, createBlock as V, unref as i } from "vue";
|
|
2
|
+
import { u as m } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
|
+
import { N as g } from "./NumberInput-Io3ZSWBF.js";
|
|
4
|
+
const C = /* @__PURE__ */ b({
|
|
5
|
+
__name: "NumberControlBase",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {},
|
|
14
|
+
type: {}
|
|
15
|
+
},
|
|
16
|
+
setup(f) {
|
|
17
|
+
const o = f, {
|
|
18
|
+
min: u,
|
|
19
|
+
minProvider: s,
|
|
20
|
+
max: d,
|
|
21
|
+
maxProvider: p
|
|
22
|
+
} = o.control.uischema.options || {}, a = m(s, u), n = m(p, d);
|
|
23
|
+
if (typeof [s, p, u, d].find(
|
|
24
|
+
(e) => typeof e < "u"
|
|
25
|
+
) < "u") {
|
|
26
|
+
const e = ({
|
|
27
|
+
value: t,
|
|
28
|
+
minimum: r,
|
|
29
|
+
maximum: l
|
|
30
|
+
}) => typeof r == "number" && t < r ? { errors: [`The value has to be at least ${r}`] } : typeof l == "number" && t > l ? { errors: [`The value has to be ${l} at max`] } : { errors: [] }, c = y(
|
|
31
|
+
() => (t) => e({
|
|
32
|
+
value: t,
|
|
33
|
+
minimum: a.value,
|
|
34
|
+
maximum: n.value
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
o.onRegisterValidation(c);
|
|
38
|
+
}
|
|
39
|
+
const v = () => {
|
|
40
|
+
const e = o.control.data;
|
|
41
|
+
typeof a.value == "number" && e < a.value ? o.changeValue(a.value) : typeof n.value == "number" && e > n.value && o.changeValue(n.value);
|
|
42
|
+
};
|
|
43
|
+
return (e, c) => (h(), V(i(g), {
|
|
44
|
+
id: e.labelForId,
|
|
45
|
+
class: "number-input",
|
|
46
|
+
disabled: e.disabled,
|
|
47
|
+
"model-value": e.control.data,
|
|
48
|
+
type: e.type,
|
|
49
|
+
min: i(a),
|
|
50
|
+
max: i(n),
|
|
51
|
+
"is-valid": e.isValid,
|
|
52
|
+
compact: "",
|
|
53
|
+
"onUpdate:modelValue": e.changeValue,
|
|
54
|
+
onFocusout: v
|
|
55
|
+
}, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
C as _
|
|
60
|
+
};
|