@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,366 @@
|
|
|
1
|
+
import { openBlock as S, createElementBlock as A, createElementVNode as k, defineComponent as Z, computed as _, ref as N, watch as W, Fragment as z, createVNode as u, withKeys as L, withModifiers as B, unref as p, withCtx as f, nextTick as ae, onMounted as re, createTextVNode as F, renderSlot as O, normalizeClass as ie } from "vue";
|
|
2
|
+
import { _ as Y, u as ce, k as ue, L as de, o as me } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
|
|
3
|
+
import { w as pe } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
|
|
4
|
+
import { i as fe } from "./navigator-BYUFe-z3.js";
|
|
5
|
+
import { F as M } from "./FunctionButton-DqqAHIw1.js";
|
|
6
|
+
import { M as he } from "./MultiselectListBox-DP2uhI2G.js";
|
|
7
|
+
import { b as we } from "./_baseAssignValue-BPMLYzDH.js";
|
|
8
|
+
import { b as ve } from "./_baseEach-B8N_Gx8P.js";
|
|
9
|
+
import { b as be } from "./_baseIteratee-DvBmrhnf.js";
|
|
10
|
+
import { i as ge } from "./toString-DkbNkGT4.js";
|
|
11
|
+
import { c as Ve } from "./createMissingItem-B00Kg95q.js";
|
|
12
|
+
import { B as T } from "./Button-Dx6CyoGv.js";
|
|
13
|
+
const R = {
|
|
14
|
+
ArrowUp: "↑",
|
|
15
|
+
ArrowDown: "↓",
|
|
16
|
+
ArrowLeft: "←",
|
|
17
|
+
ArrowRight: "→",
|
|
18
|
+
Enter: "↵",
|
|
19
|
+
" ": "Space",
|
|
20
|
+
// we use event.key and there space is an actual space not the code "Space"
|
|
21
|
+
CtrlOrCmd: "Ctrl"
|
|
22
|
+
}, _e = {
|
|
23
|
+
Shift: "⇧",
|
|
24
|
+
Delete: "⌫",
|
|
25
|
+
CtrlOrCmd: "⌘",
|
|
26
|
+
Ctrl: "⌃",
|
|
27
|
+
Alt: "⌥",
|
|
28
|
+
Enter: "↩"
|
|
29
|
+
}, q = (t) => {
|
|
30
|
+
const e = (r) => (i) => r[i] ?? i, a = ((...r) => r.reduce((i, w) => (x) => w(i(x))))(
|
|
31
|
+
e(_e),
|
|
32
|
+
e(R)
|
|
33
|
+
), l = e(R);
|
|
34
|
+
return fe() ? a(t) : l(t);
|
|
35
|
+
}, G = () => " ", ke = (t, e = G) => t.map(q).join(e()), xe = { formatHotkeys: ke, formatHotkey: q, getDefaultSeparator: G };
|
|
36
|
+
function Se(t, e, o, a) {
|
|
37
|
+
for (var l = t.length, r = o + -1; ++r < l; )
|
|
38
|
+
if (e(t[r], r, t))
|
|
39
|
+
return r;
|
|
40
|
+
return -1;
|
|
41
|
+
}
|
|
42
|
+
function Ae(t) {
|
|
43
|
+
return t !== t;
|
|
44
|
+
}
|
|
45
|
+
function Ce(t, e, o) {
|
|
46
|
+
for (var a = o - 1, l = t.length; ++a < l; )
|
|
47
|
+
if (t[a] === e)
|
|
48
|
+
return a;
|
|
49
|
+
return -1;
|
|
50
|
+
}
|
|
51
|
+
function Ie(t, e, o) {
|
|
52
|
+
return e === e ? Ce(t, e, o) : Se(t, Ae, o);
|
|
53
|
+
}
|
|
54
|
+
function ye(t, e, o, a) {
|
|
55
|
+
for (var l = -1, r = t == null ? 0 : t.length; ++l < r; ) {
|
|
56
|
+
var i = t[l];
|
|
57
|
+
e(a, i, o(i), t);
|
|
58
|
+
}
|
|
59
|
+
return a;
|
|
60
|
+
}
|
|
61
|
+
function Ue(t, e, o, a) {
|
|
62
|
+
return ve(t, function(l, r, i) {
|
|
63
|
+
e(a, l, o(l), i);
|
|
64
|
+
}), a;
|
|
65
|
+
}
|
|
66
|
+
function J(t, e) {
|
|
67
|
+
return function(o, a) {
|
|
68
|
+
var l = ge(o) ? ye : Ue, r = e ? e() : {};
|
|
69
|
+
return l(o, t, be(a), r);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function Q(t, e, o) {
|
|
73
|
+
var a = t == null ? 0 : t.length;
|
|
74
|
+
if (!a)
|
|
75
|
+
return -1;
|
|
76
|
+
var l = 0;
|
|
77
|
+
return Ie(t, e, l);
|
|
78
|
+
}
|
|
79
|
+
var Le = J(function(t, e, o) {
|
|
80
|
+
we(t, o, e);
|
|
81
|
+
}), Be = J(function(t, e, o) {
|
|
82
|
+
t[o ? 0 : 1].push(e);
|
|
83
|
+
}, function() {
|
|
84
|
+
return [[], []];
|
|
85
|
+
});
|
|
86
|
+
const Me = {
|
|
87
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
88
|
+
fill: "none",
|
|
89
|
+
stroke: "#000",
|
|
90
|
+
"stroke-linejoin": "round",
|
|
91
|
+
viewBox: "0 0 32 32"
|
|
92
|
+
}, $e = /* @__PURE__ */ k("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1), Ee = [
|
|
93
|
+
$e
|
|
94
|
+
];
|
|
95
|
+
function Fe(t, e) {
|
|
96
|
+
return S(), A("svg", Me, [...Ee]);
|
|
97
|
+
}
|
|
98
|
+
const Te = { render: Fe }, Ne = {
|
|
99
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
100
|
+
fill: "none",
|
|
101
|
+
stroke: "#000",
|
|
102
|
+
viewBox: "0 0 32 32"
|
|
103
|
+
}, Ke = /* @__PURE__ */ k("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1), Pe = [
|
|
104
|
+
Ke
|
|
105
|
+
];
|
|
106
|
+
function De(t, e) {
|
|
107
|
+
return S(), A("svg", Ne, [...Pe]);
|
|
108
|
+
}
|
|
109
|
+
const j = { render: De }, He = {
|
|
110
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
111
|
+
fill: "none",
|
|
112
|
+
stroke: "#000",
|
|
113
|
+
"stroke-linejoin": "round",
|
|
114
|
+
viewBox: "0 0 32 32"
|
|
115
|
+
}, Oe = /* @__PURE__ */ k("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1), Re = [
|
|
116
|
+
Oe
|
|
117
|
+
];
|
|
118
|
+
function je(t, e) {
|
|
119
|
+
return S(), A("svg", He, [...Re]);
|
|
120
|
+
}
|
|
121
|
+
const Ze = { render: je }, We = { class: "buttons" }, ze = /* @__PURE__ */ Z({
|
|
122
|
+
__name: "SortList",
|
|
123
|
+
props: {
|
|
124
|
+
modelValue: {},
|
|
125
|
+
id: {},
|
|
126
|
+
ariaLabel: {},
|
|
127
|
+
disabled: { type: Boolean },
|
|
128
|
+
possibleValues: {}
|
|
129
|
+
},
|
|
130
|
+
emits: ["update:modelValue"],
|
|
131
|
+
setup(t, { emit: e }) {
|
|
132
|
+
const o = t, a = e, l = _(() => Le(o.possibleValues, "id")), r = _(
|
|
133
|
+
() => o.modelValue.map(
|
|
134
|
+
(n) => l.value[n] ?? Ve(n)
|
|
135
|
+
)
|
|
136
|
+
), i = N([]);
|
|
137
|
+
W(
|
|
138
|
+
() => o.modelValue,
|
|
139
|
+
(n) => {
|
|
140
|
+
const c = new Set(n);
|
|
141
|
+
i.value = i.value.filter((d) => c.has(d));
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
const w = _(() => i.value.length === 0), x = (n, c, d) => [
|
|
145
|
+
n.slice(0, c),
|
|
146
|
+
n.slice(c, d),
|
|
147
|
+
n.slice(d)
|
|
148
|
+
], $ = (n) => {
|
|
149
|
+
let c = 0;
|
|
150
|
+
return (d) => n(d, c++);
|
|
151
|
+
}, C = (n, c) => Be(
|
|
152
|
+
n,
|
|
153
|
+
$((d, V) => c(V))
|
|
154
|
+
), v = N(null), s = (n) => ({ to: c } = {}) => {
|
|
155
|
+
const d = i.value.map((b) => Q(o.modelValue, b)).sort((b, U) => b - U), V = (n === "up" ? c : null) ?? Math.max(d[0] - 1, 0), E = (n === "down" ? c : null) ?? d[d.length - 1] + 1, [X, ee, te] = x(
|
|
156
|
+
o.modelValue,
|
|
157
|
+
V,
|
|
158
|
+
E + 1
|
|
159
|
+
), oe = new Set(d), [K, P] = C(
|
|
160
|
+
ee,
|
|
161
|
+
(b) => oe.has(b + V)
|
|
162
|
+
), [ne, le] = n === "up" ? [K, P] : [P, K], se = X.concat(ne, le, te);
|
|
163
|
+
a("update:modelValue", se), ae(() => {
|
|
164
|
+
var b, U, D, H;
|
|
165
|
+
n === "up" ? ((b = v.value) == null || b.scrollUpIntoView(V - 1), (U = v.value) == null || U.setCurrentKeyNavIndex(V)) : ((D = v.value) == null || D.scrollDownIntoView(E + 1), (H = v.value) == null || H.setCurrentKeyNavIndex(E));
|
|
166
|
+
});
|
|
167
|
+
}, m = s("up"), h = s("down"), I = () => m({ to: 0 }), y = () => h({ to: o.modelValue.length }), g = (n, c) => `${n} (${xe.formatHotkeys(c)})`;
|
|
168
|
+
return (n, c) => (S(), A(z, null, [
|
|
169
|
+
u(he, {
|
|
170
|
+
id: n.id,
|
|
171
|
+
ref_key: "listBox",
|
|
172
|
+
ref: v,
|
|
173
|
+
modelValue: i.value,
|
|
174
|
+
"onUpdate:modelValue": c[0] || (c[0] = (d) => i.value = d),
|
|
175
|
+
"possible-values": r.value,
|
|
176
|
+
ariaLabel: `sortListBox_${n.ariaLabel}`,
|
|
177
|
+
"with-is-empty-state": !0,
|
|
178
|
+
"empty-state-label": "Empty",
|
|
179
|
+
size: 10,
|
|
180
|
+
onKeydown: [
|
|
181
|
+
L(B(p(h), ["alt"]), ["down"]),
|
|
182
|
+
L(B(p(m), ["alt"]), ["up"]),
|
|
183
|
+
L(B(I, ["alt"]), ["home"]),
|
|
184
|
+
L(B(y, ["alt"]), ["end"])
|
|
185
|
+
]
|
|
186
|
+
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
|
|
187
|
+
k("div", We, [
|
|
188
|
+
u(M, {
|
|
189
|
+
disabled: w.value,
|
|
190
|
+
title: g("Move to top", ["Alt", "Home"]),
|
|
191
|
+
compact: "",
|
|
192
|
+
onClick: I
|
|
193
|
+
}, {
|
|
194
|
+
default: f(() => [
|
|
195
|
+
u(p(j), { class: "rotated" })
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["disabled", "title"]),
|
|
199
|
+
u(M, {
|
|
200
|
+
disabled: w.value,
|
|
201
|
+
title: g("Move to bottom", ["Alt", "End"]),
|
|
202
|
+
compact: "",
|
|
203
|
+
onClick: y
|
|
204
|
+
}, {
|
|
205
|
+
default: f(() => [
|
|
206
|
+
u(p(j))
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["disabled", "title"]),
|
|
210
|
+
u(M, {
|
|
211
|
+
disabled: w.value,
|
|
212
|
+
title: g("Move up", ["Alt", "ArrowUp"]),
|
|
213
|
+
compact: "",
|
|
214
|
+
onClick: p(m)
|
|
215
|
+
}, {
|
|
216
|
+
default: f(() => [
|
|
217
|
+
u(p(Ze))
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["disabled", "title", "onClick"]),
|
|
221
|
+
u(M, {
|
|
222
|
+
disabled: w.value,
|
|
223
|
+
title: g("Move down", ["Alt", "ArrowDown"]),
|
|
224
|
+
compact: "",
|
|
225
|
+
onClick: p(h)
|
|
226
|
+
}, {
|
|
227
|
+
default: f(() => [
|
|
228
|
+
u(p(Te))
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["disabled", "title", "onClick"])
|
|
232
|
+
])
|
|
233
|
+
], 64));
|
|
234
|
+
}
|
|
235
|
+
}), Ye = /* @__PURE__ */ Y(ze, [["__scopeId", "data-v-116782be"]]), qe = {
|
|
236
|
+
class: /* @__PURE__ */ ie(["flex", "space-between", "with-padding"])
|
|
237
|
+
}, Ge = { class: "flex" }, Je = "<any unknown new column>", Qe = /* @__PURE__ */ Z({
|
|
238
|
+
__name: "SortListControl",
|
|
239
|
+
props: {
|
|
240
|
+
control: {},
|
|
241
|
+
handleChange: {},
|
|
242
|
+
changeValue: {},
|
|
243
|
+
disabled: { type: Boolean },
|
|
244
|
+
labelForId: {},
|
|
245
|
+
isValid: { type: Boolean },
|
|
246
|
+
messages: {},
|
|
247
|
+
onRegisterValidation: {},
|
|
248
|
+
anyUnknownValuesId: { default: Je },
|
|
249
|
+
anyUnknownValuesText: { default: "Any unknown column" }
|
|
250
|
+
},
|
|
251
|
+
setup(t) {
|
|
252
|
+
const e = t, o = _(() => e.control.data), a = _(
|
|
253
|
+
() => e.control.uischema.options.choicesProvider
|
|
254
|
+
), l = pe(
|
|
255
|
+
ce(
|
|
256
|
+
a,
|
|
257
|
+
[]
|
|
258
|
+
),
|
|
259
|
+
e.control
|
|
260
|
+
), r = _(
|
|
261
|
+
() => l.value.concat({
|
|
262
|
+
id: e.anyUnknownValuesId,
|
|
263
|
+
text: e.anyUnknownValuesText,
|
|
264
|
+
special: !0
|
|
265
|
+
})
|
|
266
|
+
), i = (s) => {
|
|
267
|
+
if (o.value.length === 0) {
|
|
268
|
+
C();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
const m = Q(o.value, e.anyUnknownValuesId);
|
|
272
|
+
if (m === -1)
|
|
273
|
+
throw new Error(
|
|
274
|
+
`SortList data have to contain the value "${e.anyUnknownValuesId}"`
|
|
275
|
+
);
|
|
276
|
+
const h = o.value.slice(0, m + 1), I = o.value.slice(m + 1), y = new Set(o.value), g = s.map(({ id: n }) => n).filter((n) => !y.has(n));
|
|
277
|
+
g.length > 0 && e.changeValue(h.concat(g, I));
|
|
278
|
+
}, w = ue("getPossibleValuesFromUiSchema");
|
|
279
|
+
re(async () => {
|
|
280
|
+
const s = e.control.uischema.options.possibleValues;
|
|
281
|
+
s ? l.value = s : a.value || (l.value = await w(e.control));
|
|
282
|
+
}), W(() => l.value, i);
|
|
283
|
+
const x = () => {
|
|
284
|
+
e.changeValue(o.value.toSorted((s, m) => s.localeCompare(m)));
|
|
285
|
+
}, $ = () => {
|
|
286
|
+
e.changeValue(o.value.toSorted((s, m) => m.localeCompare(s)));
|
|
287
|
+
}, C = () => {
|
|
288
|
+
e.changeValue(r.value.map(({ id: s }) => s));
|
|
289
|
+
}, v = N(null);
|
|
290
|
+
return (s, m) => (S(), A(z, null, [
|
|
291
|
+
k("div", qe, [
|
|
292
|
+
k("div", Ge, [
|
|
293
|
+
u(p(T), {
|
|
294
|
+
"with-border": "",
|
|
295
|
+
compact: "",
|
|
296
|
+
onClick: x
|
|
297
|
+
}, {
|
|
298
|
+
default: f(() => [
|
|
299
|
+
F("A - Z")
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}),
|
|
303
|
+
u(p(T), {
|
|
304
|
+
"with-border": "",
|
|
305
|
+
compact: "",
|
|
306
|
+
onClick: $
|
|
307
|
+
}, {
|
|
308
|
+
default: f(() => [
|
|
309
|
+
F("Z - A")
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
})
|
|
313
|
+
]),
|
|
314
|
+
u(p(T), {
|
|
315
|
+
"with-border": "",
|
|
316
|
+
compact: "",
|
|
317
|
+
onClick: C
|
|
318
|
+
}, {
|
|
319
|
+
default: f(() => [
|
|
320
|
+
F("Reset all")
|
|
321
|
+
]),
|
|
322
|
+
_: 1
|
|
323
|
+
})
|
|
324
|
+
]),
|
|
325
|
+
u(de, {
|
|
326
|
+
label: s.control.label,
|
|
327
|
+
onControllingFlowVariableSet: s.changeValue
|
|
328
|
+
}, {
|
|
329
|
+
default: f(({ labelForId: h }) => [
|
|
330
|
+
u(me, {
|
|
331
|
+
errors: s.messages.errors
|
|
332
|
+
}, {
|
|
333
|
+
default: f(() => [
|
|
334
|
+
u(p(Ye), {
|
|
335
|
+
id: h ?? void 0,
|
|
336
|
+
ref_key: "controlElement",
|
|
337
|
+
ref: v,
|
|
338
|
+
"possible-values": r.value,
|
|
339
|
+
"model-value": o.value,
|
|
340
|
+
ariaLabel: s.control.label,
|
|
341
|
+
disabled: s.disabled,
|
|
342
|
+
compact: "",
|
|
343
|
+
"onUpdate:modelValue": s.changeValue
|
|
344
|
+
}, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
|
|
345
|
+
]),
|
|
346
|
+
_: 2
|
|
347
|
+
}, 1032, ["errors"])
|
|
348
|
+
]),
|
|
349
|
+
icon: f(() => [
|
|
350
|
+
O(s.$slots, "icon", {}, void 0, !0)
|
|
351
|
+
]),
|
|
352
|
+
buttons: f(({ hover: h }) => [
|
|
353
|
+
O(s.$slots, "buttons", {
|
|
354
|
+
hover: h,
|
|
355
|
+
controlHTMLElement: v.value
|
|
356
|
+
}, void 0, !0)
|
|
357
|
+
]),
|
|
358
|
+
_: 3
|
|
359
|
+
}, 8, ["label", "onControllingFlowVariableSet"])
|
|
360
|
+
], 64));
|
|
361
|
+
}
|
|
362
|
+
}), dt = /* @__PURE__ */ Y(Qe, [["__scopeId", "data-v-680f85e3"]]);
|
|
363
|
+
export {
|
|
364
|
+
Je as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
365
|
+
dt as default
|
|
366
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { openBlock as a, createElementBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { openBlock as a, createElementBlock as n, normalizeClass as o, createElementVNode as r, createCommentVNode as c, defineComponent as m, createBlock as p, unref as f } from "vue";
|
|
2
|
+
import { _ as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
|
|
3
|
+
const V = {
|
|
4
4
|
name: "TextArea",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {
|
|
@@ -56,15 +56,15 @@ const _ = {
|
|
|
56
56
|
this.$emit("update:modelValue", this.getValue());
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, _ = ["id", "name", "title", "value", "cols", "disabled", "rows", "placeholder"], y = {
|
|
60
60
|
key: 0,
|
|
61
61
|
class: "invalid-marker"
|
|
62
62
|
};
|
|
63
|
-
function
|
|
64
|
-
return a(),
|
|
63
|
+
function b(s, l, e, t, v, d) {
|
|
64
|
+
return a(), n("div", {
|
|
65
65
|
class: o({ disabled: e.disabled })
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
r("textarea", {
|
|
68
68
|
id: e.id,
|
|
69
69
|
ref: "input",
|
|
70
70
|
name: e.name,
|
|
@@ -75,34 +75,37 @@ function y(u, t, e, l, v, n) {
|
|
|
75
75
|
disabled: e.disabled,
|
|
76
76
|
rows: e.rows,
|
|
77
77
|
placeholder: e.placeholder,
|
|
78
|
-
onInput:
|
|
79
|
-
}, null, 42,
|
|
80
|
-
e.isValid ? c("", !0) : (a(),
|
|
78
|
+
onInput: l[0] || (l[0] = (...u) => d.onInput && d.onInput(...u))
|
|
79
|
+
}, null, 42, _),
|
|
80
|
+
e.isValid ? c("", !0) : (a(), n("span", y))
|
|
81
81
|
], 2);
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const h = /* @__PURE__ */ i(V, [["render", b], ["__scopeId", "data-v-12f15ade"]]), g = /* @__PURE__ */ m({
|
|
84
84
|
__name: "TextAreaControl",
|
|
85
85
|
props: {
|
|
86
86
|
control: {},
|
|
87
87
|
handleChange: { type: Function },
|
|
88
88
|
changeValue: { type: Function },
|
|
89
89
|
disabled: { type: Boolean },
|
|
90
|
+
isValid: { type: Boolean },
|
|
91
|
+
onRegisterValidation: { type: Function },
|
|
90
92
|
labelForId: {}
|
|
91
93
|
},
|
|
92
|
-
setup(
|
|
93
|
-
return (
|
|
94
|
-
var
|
|
95
|
-
return a(), p(f(
|
|
96
|
-
id:
|
|
94
|
+
setup(s) {
|
|
95
|
+
return (l, e) => {
|
|
96
|
+
var t;
|
|
97
|
+
return a(), p(f(h), {
|
|
98
|
+
id: l.labelForId,
|
|
97
99
|
class: "text-area-input",
|
|
98
|
-
"model-value":
|
|
99
|
-
disabled:
|
|
100
|
-
rows: (
|
|
101
|
-
"
|
|
102
|
-
|
|
100
|
+
"model-value": l.control.data,
|
|
101
|
+
disabled: l.disabled,
|
|
102
|
+
rows: (t = l.control.uischema.options) == null ? void 0 : t.rows,
|
|
103
|
+
"is-valid": l.isValid,
|
|
104
|
+
"onUpdate:modelValue": l.changeValue
|
|
105
|
+
}, null, 8, ["id", "model-value", "disabled", "rows", "is-valid", "onUpdate:modelValue"]);
|
|
103
106
|
};
|
|
104
107
|
}
|
|
105
|
-
}), w = /* @__PURE__ */
|
|
108
|
+
}), w = /* @__PURE__ */ i(g, [["__scopeId", "data-v-36a8d374"]]);
|
|
106
109
|
export {
|
|
107
110
|
w as default
|
|
108
111
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent as k, ref as v, computed as m, openBlock as d, createBlock as i, withCtx as r, unref as l, normalizeProps as P, mergeProps as E, createCommentVNode as h, createVNode as F, renderSlot as f } from "vue";
|
|
2
|
+
import { u as $, L as w, o as B } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
|
|
3
|
+
import { u as N } from "./useHideOnNull-CCfNP3O7.js";
|
|
4
|
+
import { C as H } from "./Checkbox-Cke3C-vE.js";
|
|
5
|
+
import { I } from "./InputField-CokMvcHT.js";
|
|
6
|
+
const U = /* @__PURE__ */ k({
|
|
7
|
+
__name: "TextControl",
|
|
8
|
+
props: {
|
|
9
|
+
control: {},
|
|
10
|
+
handleChange: { type: Function },
|
|
11
|
+
changeValue: { type: Function },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
labelForId: {},
|
|
14
|
+
isValid: { type: Boolean },
|
|
15
|
+
messages: {},
|
|
16
|
+
onRegisterValidation: { type: Function }
|
|
17
|
+
},
|
|
18
|
+
setup(b) {
|
|
19
|
+
var c, p;
|
|
20
|
+
const o = b, a = o.control.schema.pattern;
|
|
21
|
+
if (typeof a == "string") {
|
|
22
|
+
const e = new RegExp(`^(${a})$`), u = (t) => ({
|
|
23
|
+
errors: t === null || typeof t > "u" || !e.test(t) ? [`The value has to match the pattern "${a}"`] : []
|
|
24
|
+
});
|
|
25
|
+
o.onRegisterValidation(u);
|
|
26
|
+
}
|
|
27
|
+
const g = $(
|
|
28
|
+
(c = o.control.uischema.options) == null ? void 0 : c.placeholderProvider,
|
|
29
|
+
((p = o.control.uischema.options) == null ? void 0 : p.placeholder) ?? ""
|
|
30
|
+
), n = v(null), { showCheckbox: V, showControl: C, checkboxProps: y } = N(
|
|
31
|
+
{
|
|
32
|
+
control: m(() => o.control),
|
|
33
|
+
disabled: m(() => o.disabled),
|
|
34
|
+
controlElement: n
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
setDefault: () => o.changeValue(""),
|
|
38
|
+
setNull: () => o.changeValue(null)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
return (e, u) => {
|
|
42
|
+
var t;
|
|
43
|
+
return d(), i(w, {
|
|
44
|
+
label: e.control.label,
|
|
45
|
+
"hide-control-header": (t = e.control.uischema.options) == null ? void 0 : t.hideControlHeader
|
|
46
|
+
}, {
|
|
47
|
+
"before-label": r(() => [
|
|
48
|
+
l(V) ? (d(), i(l(H), P(E({ key: 0 }, l(y))), null, 16)) : h("", !0)
|
|
49
|
+
]),
|
|
50
|
+
default: r(({ labelForId: s }) => [
|
|
51
|
+
l(C) ? (d(), i(B, {
|
|
52
|
+
key: 0,
|
|
53
|
+
errors: e.messages.errors
|
|
54
|
+
}, {
|
|
55
|
+
default: r(() => [
|
|
56
|
+
F(l(I), {
|
|
57
|
+
id: s,
|
|
58
|
+
ref_key: "controlElement",
|
|
59
|
+
ref: n,
|
|
60
|
+
placeholder: l(g),
|
|
61
|
+
"model-value": e.control.data,
|
|
62
|
+
disabled: e.disabled,
|
|
63
|
+
"is-valid": e.isValid,
|
|
64
|
+
compact: "",
|
|
65
|
+
"onUpdate:modelValue": e.changeValue
|
|
66
|
+
}, null, 8, ["id", "placeholder", "model-value", "disabled", "is-valid", "onUpdate:modelValue"])
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1032, ["errors"])) : h("", !0)
|
|
70
|
+
]),
|
|
71
|
+
icon: r(() => [
|
|
72
|
+
f(e.$slots, "icon")
|
|
73
|
+
]),
|
|
74
|
+
buttons: r(({ hover: s }) => [
|
|
75
|
+
f(e.$slots, "buttons", {
|
|
76
|
+
hover: s,
|
|
77
|
+
controlHTMLElement: n.value
|
|
78
|
+
})
|
|
79
|
+
]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, ["label", "hide-control-header"]);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
U as _
|
|
87
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as r, computed as s, openBlock as m, createBlock as u, unref as l } from "vue";
|
|
2
|
+
import { D as p } from "./DateTimeInput-DsWORwg_.js";
|
|
3
|
+
import { l as a } from "./localTimeUtils-Clk_MujE.js";
|
|
4
|
+
const g = /* @__PURE__ */ r({
|
|
5
|
+
__name: "TimeControl",
|
|
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
|
+
},
|
|
15
|
+
setup(t) {
|
|
16
|
+
const i = t, n = s(() => a.fromString(i.control.data));
|
|
17
|
+
return (e, o) => (m(), u(l(p), {
|
|
18
|
+
id: e.labelForId,
|
|
19
|
+
"model-value": n.value,
|
|
20
|
+
required: !0,
|
|
21
|
+
compact: "",
|
|
22
|
+
disabled: e.disabled,
|
|
23
|
+
"show-date": !1,
|
|
24
|
+
"show-time": !0,
|
|
25
|
+
"show-milliseconds": !0,
|
|
26
|
+
"is-valid": e.isValid,
|
|
27
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => e.changeValue(l(a).toString(d)))
|
|
28
|
+
}, null, 8, ["id", "model-value", "disabled", "is-valid"]));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
g as default
|
|
33
|
+
};
|