@knime/jsonforms 1.4.1 → 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 +12 -0
- package/dist/{AnyOfTwinlist-0hW9G7sf.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
- package/dist/{BaseButton-DYMQRyQo.js → BaseButton-8vDrj52e.js} +1 -1
- package/dist/{Button-BR-eqILd.js → Button-Bngb_I70.js} +2 -2
- package/dist/{Checkbox-9hNjHDpy.js → Checkbox-DSfVQlDb.js} +1 -1
- package/dist/CheckboxControl-D85aBRJ6.js +41 -0
- package/dist/{Checkboxes-MxUKgTL4.js → Checkboxes-DUJ3v5jU.js} +2 -2
- package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
- package/dist/{ColumnFilter-B05Q5-4y.js → ColumnFilter-BzCVLydy.js} +7 -5
- package/dist/{ColumnSelect-DZDQRiA5.js → ColumnSelect-DK7NqI5Q.js} +21 -18
- package/dist/{ComboBoxControl-CaHVCAiu.js → ComboBoxControl-CEXpJltI.js} +17 -14
- package/dist/{DateControl-fKUFzQr8.js → DateControl-CjRiy7d1.js} +6 -4
- package/dist/{DateTimeControl-BrwQ4jAx.js → DateTimeControl-CaDuNC_u.js} +18 -15
- package/dist/{DateTimeFormatPickerControl-CZY7EboY.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
- package/dist/{DateTimeInput-hVg3JWxI.js → DateTimeInput-96g3nCth.js} +7 -7
- package/dist/{Dropdown-C_6yKbqc.js → Dropdown-CQKvBlYB.js} +4 -4
- package/dist/{DropdownControl-DNcQIzCP.js → DropdownControl-B0x5hFXM.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js +237 -0
- package/dist/{FunctionButton-ByT1Atrb.js → FunctionButton-CapvFBi0.js} +2 -2
- package/dist/HorizontalLayout-k7vmjzLP.js +25 -0
- package/dist/{InputField-zQvLeNOh.js → InputField-DhyBnTBT.js} +1 -1
- package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
- package/dist/{IntervalControl-CWBmbjUk.js → IntervalControl-DhujNXBe.js} +37 -35
- package/dist/{MultiselectListBox-D18KQA8Z.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
- package/dist/{NameFilter-D6GRh9kP.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-DzpQc_Qg.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-D7yWH5sv.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
- package/dist/{RichTextControl-TMco-1sx.js → RichTextControl-hHIvuaDd.js} +9 -7
- package/dist/{SectionLayout-M0zSsGYd.js → SectionLayout-DEKmJPJl.js} +2 -2
- package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
- package/dist/{SimpleTwinlistControl-BWH9IcaM.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
- package/dist/SortListControl-CsrP-QT8.js +366 -0
- package/dist/{TextAreaControl-C2gBXg91.js → TextAreaControl-CNH7s35f.js} +25 -22
- package/dist/{TextControl-DJ1eQ6Yr.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-DMjXrTBS.js → TwinlistControl-DJ88Q4I-.js} +21 -18
- package/dist/{TwinlistLoadingInfo-C_JMBMqE.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
- package/dist/{ValueSwitch--IDkMn2T.js → ValueSwitch-B08Mz10g.js} +1 -1
- package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
- package/dist/{VerticalLayout-CWTnAzTT.js → VerticalLayout-ptrtpOrD.js} +2 -2
- package/dist/{VerticalLayoutBase-DHFsRdUV.js → VerticalLayoutBase-B8FGVlzl.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-79uRC9rW.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-CV6Gjcdp.js → _baseAssignValue-BPMLYzDH.js} +1 -1
- package/dist/{_baseEach-BC_75zAM.js → _baseEach-B8N_Gx8P.js} +2 -2
- package/dist/{_baseIsEqual-Dy0dFQAX.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
- package/dist/{_baseIteratee-BHjwOYqh.js → _baseIteratee-DvBmrhnf.js} +3 -3
- package/dist/{_getTag-Ce_JffFU.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-B-ENHrsI.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-VPyre7by.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-DtkgVAey.js +0 -42
- package/dist/CheckboxesControl-liJGUpRw.js +0 -38
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-m-g4D1dr.js +0 -226
- package/dist/ErrorMessage-DQT5FZlf.js +0 -23
- package/dist/HorizontalLayout-D1PnPnoE.js +0 -30
- package/dist/IntegerControl-D6kUQaXd.js +0 -18
- package/dist/NumberControl-CqwAwLo_.js +0 -18
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-Jn4BDGH-.js +0 -42
- package/dist/OneOfDropdown-CIeXHQcC.js +0 -32
- package/dist/RadioControl-D64PZUts.js +0 -22
- package/dist/SimpleButtonControl-DevNyR5x.js +0 -58
- package/dist/SortListControl-BLeXo6HS.js +0 -356
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-BHuggcaD.js +0 -69
- package/dist/TimeControl-DOpylHS3.js +0 -30
- package/dist/ValueSwitchControl-BVgE9bjw.js +0 -18
- package/dist/ZonedDateTimeControl-B8ORteJg.js +0 -66
- package/dist/isSymbol-DwnNqH7F.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-B2Sp1LQh.js +0 -26
package/dist/{DateTimeFormatPickerControl-CZY7EboY.js → DateTimeFormatPickerControl-DDTmhBMD.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as y, createElementVNode as m, defineComponent as I, computed as F, ref as T, reactive as G, watch as
|
|
2
|
-
import { n as C, _ as K, u as ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
1
|
+
import { openBlock as u, createElementBlock as y, createElementVNode as m, defineComponent as I, computed as F, ref as T, reactive as G, watch as $, onMounted as J, createVNode as h, withCtx as M, withKeys as N, withModifiers as Q, normalizeStyle as L, unref as w, Fragment as X, renderList as Y, normalizeClass as z, toDisplayString as P, nextTick as S, mergeModels as B, useModel as ee, withDirectives as te, vModelText as oe, createCommentVNode as O, createBlock as le } from "vue";
|
|
2
|
+
import { n as C, _ as K, u as ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
3
|
import { o as se } from "./index-CkuSIXs2.js";
|
|
4
4
|
import { u as ne, o as ie, s as re, f as de, a as ce } from "./floating-ui.vue.esm-B1dY_Hbh.js";
|
|
5
5
|
import { u as me } from "./useDropdownNavigation-D6ZenVxz.js";
|
|
6
|
-
import { L as ue } from "./svgWithTitle-
|
|
7
|
-
import { V as U } from "./ValueSwitch
|
|
6
|
+
import { L as ue } from "./svgWithTitle-YSv0CfBl.js";
|
|
7
|
+
import { V as U } from "./ValueSwitch-B08Mz10g.js";
|
|
8
8
|
const pe = {
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
fill: "none",
|
|
@@ -25,7 +25,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
25
25
|
}, Ee = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "no-formats-available"
|
|
28
|
-
}, be = ["onClick", "onDblclick"], De = { class: "format-pattern" },
|
|
28
|
+
}, be = ["onClick", "onDblclick"], De = { class: "format-pattern" }, Ve = { class: "format-preview" }, H = 1, ke = /* @__PURE__ */ I({
|
|
29
29
|
__name: "DateTimeFormatPickerPopover",
|
|
30
30
|
props: {
|
|
31
31
|
allFormats: {},
|
|
@@ -55,7 +55,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
55
55
|
() => f.filter(
|
|
56
56
|
(e) => p.allowedTypes.includes(e.id)
|
|
57
57
|
)
|
|
58
|
-
),
|
|
58
|
+
), V = F(() => [
|
|
59
59
|
{
|
|
60
60
|
id: "RECENT",
|
|
61
61
|
text: "Recent"
|
|
@@ -80,7 +80,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
80
80
|
)) ?? null;
|
|
81
81
|
}), D = T(null), r = G({}), d = (e) => `${e.format}-${e.category}-${e.temporalType}`, _ = (e) => (t) => {
|
|
82
82
|
r[d(e)] = t;
|
|
83
|
-
}, { currentIndex:
|
|
83
|
+
}, { currentIndex: k, onKeydown: A, resetNavigation: Z } = me({
|
|
84
84
|
keepOpenedOnTab: !0,
|
|
85
85
|
getFirstElement: () => ({
|
|
86
86
|
index: 0,
|
|
@@ -117,24 +117,24 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
117
117
|
const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - o;
|
|
118
118
|
v > l ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, R = async (e, t, o) => {
|
|
121
121
|
c.value = t ?? c.value, a.value = o ?? a.value, await S(), b.value = e;
|
|
122
122
|
const l = r[`${e}-${a.value}-${c.value}`];
|
|
123
123
|
l && j(l);
|
|
124
124
|
const v = s.value.findIndex(
|
|
125
|
-
(
|
|
125
|
+
(x) => x.format === e
|
|
126
126
|
);
|
|
127
|
-
|
|
127
|
+
k.value = v;
|
|
128
128
|
}, W = async () => {
|
|
129
129
|
var e;
|
|
130
130
|
await S(), (e = D.value) == null || e.focus();
|
|
131
131
|
};
|
|
132
|
-
|
|
132
|
+
$(k, (e) => {
|
|
133
133
|
if (e === null)
|
|
134
134
|
return;
|
|
135
135
|
const t = s.value[e];
|
|
136
|
-
|
|
137
|
-
}),
|
|
136
|
+
R(t.format, t.temporalType, t.category);
|
|
137
|
+
}), $([c, a], () => {
|
|
138
138
|
b.value = null, Z();
|
|
139
139
|
});
|
|
140
140
|
const q = T(!1);
|
|
@@ -147,10 +147,10 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
147
147
|
"EUROPEAN",
|
|
148
148
|
"AMERICAN"
|
|
149
149
|
], t = p.allFormats.filter((o) => p.initialSelectedPattern === o.format).sort((o, l) => {
|
|
150
|
-
const v = e.indexOf(o.category),
|
|
151
|
-
return v -
|
|
150
|
+
const v = e.indexOf(o.category), x = e.indexOf(l.category);
|
|
151
|
+
return v - x;
|
|
152
152
|
});
|
|
153
|
-
t.length > 0 &&
|
|
153
|
+
t.length > 0 && R(
|
|
154
154
|
t[0].format,
|
|
155
155
|
t[0].temporalType,
|
|
156
156
|
t[0].category
|
|
@@ -189,7 +189,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
189
189
|
modelValue: a.value,
|
|
190
190
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => a.value = o),
|
|
191
191
|
compact: "",
|
|
192
|
-
"possible-values":
|
|
192
|
+
"possible-values": V.value
|
|
193
193
|
}, null, 8, ["modelValue", "possible-values"])
|
|
194
194
|
]),
|
|
195
195
|
_: 1
|
|
@@ -222,16 +222,16 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
222
222
|
key: d(o),
|
|
223
223
|
ref_for: !0,
|
|
224
224
|
ref: _(o),
|
|
225
|
-
class: z([{ selected: l === w(
|
|
225
|
+
class: z([{ selected: l === w(k) }, "single-format"]),
|
|
226
226
|
role: "menuitem",
|
|
227
227
|
onClick: () => {
|
|
228
228
|
var v;
|
|
229
|
-
|
|
229
|
+
k.value = l, (v = D.value) == null || v.focus();
|
|
230
230
|
},
|
|
231
231
|
onDblclick: () => i("commit", o.format)
|
|
232
232
|
}, [
|
|
233
233
|
m("span", De, P(o.format), 1),
|
|
234
|
-
m("span",
|
|
234
|
+
m("span", Ve, P(o.example), 1)
|
|
235
235
|
], 42, be))), 128))
|
|
236
236
|
], 36)
|
|
237
237
|
]),
|
|
@@ -240,10 +240,10 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
240
240
|
])
|
|
241
241
|
]));
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), xe = /* @__PURE__ */ K(ke, [["__scopeId", "data-v-01e54f12"]]), Me = { class: "input-fields" }, Ce = ["disabled"], ze = {
|
|
244
244
|
key: 0,
|
|
245
245
|
class: "invalid-marker"
|
|
246
|
-
}, Ie = ["disabled"], Ae = {},
|
|
246
|
+
}, Ie = ["disabled"], Ae = {}, Re = /* @__PURE__ */ I({
|
|
247
247
|
...Ae,
|
|
248
248
|
__name: "DateTimeFormatInput",
|
|
249
249
|
props: /* @__PURE__ */ B({
|
|
@@ -265,7 +265,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
265
265
|
}),
|
|
266
266
|
emits: /* @__PURE__ */ B(["committed"], ["update:modelValue"]),
|
|
267
267
|
setup(g, { emit: E }) {
|
|
268
|
-
const i = E, p = g, f = ee(g, "modelValue"), n = "Format like 'yyyy-MM-dd'",
|
|
268
|
+
const i = E, p = g, f = ee(g, "modelValue"), n = "Format like 'yyyy-MM-dd'", V = F(() => p.isValid), b = T(null), c = T(null), a = T(!1), s = (r) => {
|
|
269
269
|
f.value = r, a.value = !1, i("committed", r);
|
|
270
270
|
};
|
|
271
271
|
se(c, () => a.value = !1, {
|
|
@@ -306,7 +306,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
306
306
|
}, null, 40, Ce), [
|
|
307
307
|
[oe, f.value]
|
|
308
308
|
]),
|
|
309
|
-
|
|
309
|
+
V.value ? O("", !0) : (u(), y("span", ze)),
|
|
310
310
|
m("button", {
|
|
311
311
|
ref_key: "togglePopoverButtonRef",
|
|
312
312
|
ref: b,
|
|
@@ -325,7 +325,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
325
325
|
class: "popover",
|
|
326
326
|
style: L(w(D))
|
|
327
327
|
}, [
|
|
328
|
-
h(
|
|
328
|
+
h(xe, {
|
|
329
329
|
"all-formats": r.allDefaultFormats,
|
|
330
330
|
"initial-selected-pattern": f.value,
|
|
331
331
|
"allowed-types": r.allowedTypes,
|
|
@@ -335,13 +335,15 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
335
335
|
], 4)) : O("", !0)
|
|
336
336
|
]));
|
|
337
337
|
}
|
|
338
|
-
}),
|
|
338
|
+
}), $e = /* @__PURE__ */ K(Re, [["__scopeId", "data-v-ce3e7e80"]]), Le = /* @__PURE__ */ I({
|
|
339
339
|
__name: "DateTimeFormatPickerControl",
|
|
340
340
|
props: {
|
|
341
341
|
control: {},
|
|
342
342
|
handleChange: { type: Function },
|
|
343
343
|
changeValue: { type: Function },
|
|
344
344
|
disabled: { type: Boolean },
|
|
345
|
+
isValid: { type: Boolean },
|
|
346
|
+
onRegisterValidation: { type: Function },
|
|
345
347
|
labelForId: {}
|
|
346
348
|
},
|
|
347
349
|
setup(g) {
|
|
@@ -355,7 +357,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
|
|
|
355
357
|
}),
|
|
356
358
|
null
|
|
357
359
|
);
|
|
358
|
-
return (n,
|
|
360
|
+
return (n, V) => (u(), le(w($e), {
|
|
359
361
|
id: n.labelForId,
|
|
360
362
|
compact: "",
|
|
361
363
|
disabled: n.disabled,
|
|
@@ -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: {
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { q as m, _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
|
+
const i = { class: "horizontal" }, h = /* @__PURE__ */ l({
|
|
4
|
+
__name: "HorizontalLayout",
|
|
5
|
+
props: {
|
|
6
|
+
layout: {}
|
|
7
|
+
},
|
|
8
|
+
setup(d) {
|
|
9
|
+
return (e, y) => (a(), o("div", i, [
|
|
10
|
+
(a(!0), o(s, null, n(e.layout.uischema.elements, (t, r) => (a(), u(c(m), {
|
|
11
|
+
key: `${e.layout.path}-${r}`,
|
|
12
|
+
class: "horizontal-element",
|
|
13
|
+
schema: e.layout.schema,
|
|
14
|
+
uischema: t,
|
|
15
|
+
path: e.layout.path,
|
|
16
|
+
enabled: e.layout.enabled,
|
|
17
|
+
renderers: e.layout.renderers,
|
|
18
|
+
cells: e.layout.cells
|
|
19
|
+
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))), 128))
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
}), k = /* @__PURE__ */ p(h, [["__scopeId", "data-v-38139453"]]);
|
|
23
|
+
export {
|
|
24
|
+
k as default
|
|
25
|
+
};
|
|
@@ -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
|
+
};
|