@knime/jsonforms 1.21.15 → 1.21.17
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-SXwBBRp2.js +23 -0
- package/dist/CheckboxControl-CbWn843V.js +40 -0
- package/dist/CheckboxesControl-BiQOMrsp.js +39 -0
- package/dist/{ColorControl-CpBVJh38.js → ColorControl-B_mQdOCs.js} +10 -8
- package/dist/{ColorPreviewControl-0VK3OqwY.js → ColorPreviewControl-BREwhSO9.js} +28 -28
- package/dist/ComboBoxControl-BIZlnizm.js +39 -0
- package/dist/DateControl-vkwY-8Qy.js +44 -0
- package/dist/DateTimeControl-CtXV6_D2.js +80 -0
- package/dist/DateTimeFormatPickerControl-a7MPaNFN.js +34 -0
- package/dist/{DateTimeFormatPickerWithTypeControl-CodEVQG_.js → DateTimeFormatPickerWithTypeControl-B9Nu0dh1.js} +18 -17
- package/dist/DropdownControl-BUwovb4K.js +32 -0
- package/dist/{ExecutorCoresControl-CvCVcaHM.js → ExecutorCoresControl-DN-1o1XJ.js} +10 -9
- package/dist/{ExecutorMemoryControl-CpbVJNq4.js → ExecutorMemoryControl-UzqzP4hI.js} +9 -8
- package/dist/{FileUploadControl-CNUi9QfR.js → FileUploadControl-WC8TFQHe.js} +46 -45
- package/dist/{GridSelectionControl-HV2yNE4R.js → GridSelectionControl-BgqT1t9d.js} +24 -23
- package/dist/{HorizontalLayout-Cqf3hzxv.js → HorizontalLayout-CESRA3YR.js} +6 -6
- package/dist/{IntegerControl-Ba5QkLCa.js → IntegerControl-DKXN0mcE.js} +5 -4
- package/dist/IntervalControl-BswGPjcV.js +51 -0
- package/dist/LinkControl-DTqOfnTg.js +35 -0
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-Cir2ym2M.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM.js} +1 -1
- package/dist/ManualTwinlistControl-CoZdPu6n.js +74 -0
- package/dist/{MultiSelectListBoxControl-DcWDraNF.js → MultiSelectListBoxControl-CjM94miu.js} +53 -52
- package/dist/{MultimodeTwinlistControl-B-rEhgKQ.js → MultimodeTwinlistControl-NMnPBn6a.js} +1 -1
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-mQFRHgGM.js +159 -0
- package/dist/{NameFilter-BFKNf9cO.js → NameFilter-DuVJG0SF.js} +7 -6
- package/dist/{NumberControl-BAxGZy_4.js → NumberControl-NMJmxuze.js} +7 -6
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8.js +52 -0
- package/dist/{OneOfDropdown-DcetHKT5.js → OneOfDropdown-CwJemyYo.js} +13 -11
- package/dist/{RadioButtonsWithDescriptionControl-pZ0gJ6iz.js → RadioButtonsWithDescriptionControl-BK3UCreL.js} +15 -15
- package/dist/{RadioControl-B8-nxddP.js → RadioControl-ts1-JozG.js} +5 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt.js +57 -0
- package/dist/{ResourceControlBase-ZMTuwwL2.js → ResourceControlBase-FDiyHyQi.js} +18 -15
- package/dist/{RichTextControl-kptCYz2A.js → RichTextControl-DH6GqUeF.js} +4 -3
- package/dist/{SectionHeading-MlqCj5BS.js → SectionHeading-DIAFnjCM.js} +1 -1
- package/dist/{SectionLayout-nV1GnghP.js → SectionLayout-Cb3_L9Te.js} +3 -3
- package/dist/{SettingsSubPanel-Z6urYwz1.js → SettingsSubPanel-BuxORlJO.js} +1 -1
- package/dist/{SettingsSubPanelLayout-BNMJbUsL.js → SettingsSubPanelLayout-DruWJjQA.js} +4 -4
- package/dist/{SimpleButtonControl-DZFYl2H3.js → SimpleButtonControl-BeRnF6lP.js} +13 -13
- package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-zrzBlOHh.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js} +5294 -5346
- package/dist/{SimpleTwinlistControl-Ds2BQOoO.js → SimpleTwinlistControl-CnBe4qsI.js} +6 -5
- package/dist/{SingleSelectControl-CLv_Mah-.js → SingleSelectControl-C4Qzk2Ki.js} +21 -19
- package/dist/{SingleSelectListBoxControl-DM_5t3Nv.js → SingleSelectListBoxControl-sLe2Y67h.js} +16 -15
- package/dist/SortListControl-ChpYm3CZ.js +105 -0
- package/dist/{StyledListItem-D3NbpWl3.js → StyledListItem-BJEJoIzr.js} +1 -1
- package/dist/{TeamAndSpacesControl-A8mWrSE4.js → TeamAndSpacesControl-7ZXPUwBb.js} +12 -11
- package/dist/{TeamResourceControl-CAgwzjRZ.js → TeamResourceControl-BZDXMRLZ.js} +12 -11
- package/dist/{TextAreaControl-DRBGqA7a.js → TextAreaControl-BDGtgWys.js} +10 -8
- package/dist/{TextControl--Tw-AE3y.js → TextControl-8jfyOJKb.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-PdbUWJUv.js → TextControl.vue_vue_type_script_setup_true_lang--8lz3nbO.js} +16 -14
- package/dist/{TimeControl-D_hEPt2Z.js → TimeControl-Dvt5U7xN.js} +28 -26
- package/dist/{TimeframesControl-EKcriaC8.js → TimeframesControl-DcUxC3kX.js} +7 -6
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-BRq0ANwm.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N.js} +14 -11
- package/dist/{TypedStringFilter-UUuSnJNk.js → TypedStringFilter-Cx8OCQcE.js} +5 -4
- package/dist/{ValueSwitchControl-BwERUIyr.js → ValueSwitchControl-1ax1yKbk.js} +6 -5
- package/dist/{VerticalLayout-BET3pZ_K.js → VerticalLayout-DnyoqTeh.js} +2 -2
- package/dist/{VerticalLayoutBase-HYtDwVLA.js → VerticalLayoutBase-BS5IpgON.js} +2 -2
- package/dist/ZonedDateTimeControl-mIIRwaHz.js +79 -0
- package/dist/{_Uint8Array-DJimCh8a.js → _Uint8Array-CsgDtogS.js} +12 -12
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +41 -42
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -2
- package/dist/src/higherOrderComponents/control/util.d.ts +4 -5
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +2 -2
- package/dist/src/higherOrderComponents/control/withLabel.d.ts +1 -1
- package/dist/src/renderers/checkboxRenderer.d.ts +120 -1
- package/dist/src/renderers/defaultRenderers.d.ts +120 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +120 -1
- package/dist/testing.js +3 -3
- package/dist/{toString-B8vqfiDe.js → toString-hCFROtg1.js} +1 -1
- package/dist/{useBuiltinValidations-CzYsm8oq.js → useBuiltinValidations-Cfw3JlJf.js} +1 -1
- package/dist/{usePossibleValues-CGt7yrJ6.js → usePossibleValues-CtPV4Cjp.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-Bez1tY4_.js → useUnknownValuesInTwinlist-BCbqJg7j.js} +1 -1
- package/package.json +1 -1
- package/dist/AnyOfTwinlist-CV39JeCp.js +0 -22
- package/dist/CheckboxControl-CS4nuJTP.js +0 -38
- package/dist/CheckboxesControl-DXJMkZ49.js +0 -37
- package/dist/ComboBoxControl-avfNedsG.js +0 -37
- package/dist/DateControl-B8E0JEIV.js +0 -42
- package/dist/DateTimeControl-DPjGzRqg.js +0 -78
- package/dist/DateTimeFormatPickerControl-Cx3yfT3O.js +0 -32
- package/dist/DropdownControl-DEggcwK1.js +0 -30
- package/dist/IntervalControl-DlLV8RQr.js +0 -48
- package/dist/LinkControl-COH9jvPg.js +0 -35
- package/dist/ManualTwinlistControl-jJGxlq9j.js +0 -72
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-yhmiIg95.js +0 -157
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-Dlxx71hk.js +0 -50
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-8xWE-iQR.js +0 -52
- package/dist/SortListControl-COd0WHwd.js +0 -103
- package/dist/ZonedDateTimeControl-CsbZwGMX.js +0 -77
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +0 -5
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +0 -23
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as s, toRef as l, openBlock as
|
|
2
|
-
import { u as c } from "./usePossibleValues-
|
|
3
|
-
import { _ as u } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as s, toRef as l, openBlock as r, createBlock as a, mergeProps as p, unref as i } from "vue";
|
|
2
|
+
import { u as c } from "./usePossibleValues-CtPV4Cjp.js";
|
|
3
|
+
import { _ as u } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N.js";
|
|
4
4
|
const y = /* @__PURE__ */ s({
|
|
5
5
|
__name: "SimpleTwinlistControl",
|
|
6
6
|
props: {
|
|
@@ -8,13 +8,14 @@ const y = /* @__PURE__ */ s({
|
|
|
8
8
|
handleChange: { type: Function },
|
|
9
9
|
changeValue: { type: Function },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
-
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
12
13
|
onRegisterValidation: { type: Function },
|
|
13
14
|
labelForId: {}
|
|
14
15
|
},
|
|
15
16
|
setup(o) {
|
|
16
17
|
const e = o, n = l(e, "control"), { possibleValues: t } = c(n);
|
|
17
|
-
return (m, f) => (
|
|
18
|
+
return (m, f) => (r(), a(u, p(e, { "possible-values": i(t) }), null, 16, ["possible-values"]));
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
21
|
export {
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
const i = "__special__", a = "__regular__", P = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as I, computed as c, toRef as y, openBlock as v, createBlock as $ } from "vue";
|
|
2
|
+
import { u as F } from "./usePossibleValues-CtPV4Cjp.js";
|
|
3
|
+
import { _ as R } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM.js";
|
|
4
|
+
const i = "__special__", a = "__regular__", P = /* @__PURE__ */ I({
|
|
5
5
|
__name: "SingleSelectControl",
|
|
6
6
|
props: {
|
|
7
7
|
control: {},
|
|
8
8
|
handleChange: { type: Function },
|
|
9
9
|
changeValue: { type: Function },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
-
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
12
13
|
onRegisterValidation: { type: Function },
|
|
13
14
|
labelForId: {}
|
|
14
15
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const t =
|
|
16
|
+
setup(r) {
|
|
17
|
+
const t = r, p = c(
|
|
17
18
|
() => t.control.uischema.options.specialChoices
|
|
18
|
-
), { possibleValues: l } =
|
|
19
|
+
), { possibleValues: l } = F(
|
|
19
20
|
y(t, "control")
|
|
20
21
|
), s = (e) => `${i}${e}`, u = (e) => `${a}${e}`, h = ({
|
|
21
22
|
id: e,
|
|
22
|
-
text:
|
|
23
|
+
text: o
|
|
23
24
|
}) => ({
|
|
24
25
|
id: s(e),
|
|
25
|
-
text:
|
|
26
|
+
text: o,
|
|
26
27
|
isSpecial: !0
|
|
27
28
|
}), f = (e) => ({
|
|
28
29
|
...e,
|
|
@@ -30,25 +31,26 @@ const i = "__special__", a = "__regular__", P = /* @__PURE__ */ x({
|
|
|
30
31
|
}), n = c(() => l.value === null ? null : p.value.map(h).concat(l.value.map(f))), C = (e) => {
|
|
31
32
|
if (!e.startsWith(a) && !e.startsWith(i))
|
|
32
33
|
throw new Error(`Expected id to start with ${a}`);
|
|
33
|
-
}, m = (e) => e ? (C(e), e.startsWith(i) ? { specialChoice: e.slice(i.length) } : { regularChoice: e.slice(a.length) }) : null, b = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? u(e.regularChoice) : "specialChoice" in e && e.specialChoice ? s(e.specialChoice) : "",
|
|
34
|
+
}, m = (e) => e ? (C(e), e.startsWith(i) ? { specialChoice: e.slice(i.length) } : { regularChoice: e.slice(a.length) }) : null, b = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? u(e.regularChoice) : "specialChoice" in e && e.specialChoice ? s(e.specialChoice) : "", x = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? e.regularChoice : "specialChoice" in e && e.specialChoice ? e.specialChoice : "", d = c({
|
|
34
35
|
get: () => {
|
|
35
36
|
const e = b(t.control.data);
|
|
36
|
-
return n.value && !n.value.some((
|
|
37
|
+
return n.value && !n.value.some((o) => o.id === e) ? x(t.control.data) : e;
|
|
37
38
|
},
|
|
38
39
|
set: (e) => {
|
|
39
40
|
t.changeValue(m(e));
|
|
40
41
|
}
|
|
41
42
|
});
|
|
42
|
-
return (e,
|
|
43
|
-
id:
|
|
43
|
+
return (e, o) => (v(), $(R, {
|
|
44
|
+
id: r.labelForId,
|
|
44
45
|
modelValue: d.value,
|
|
45
|
-
"onUpdate:modelValue":
|
|
46
|
+
"onUpdate:modelValue": o[0] || (o[0] = (g) => d.value = g),
|
|
46
47
|
"possible-values": n.value,
|
|
47
|
-
ariaLabel:
|
|
48
|
-
disabled:
|
|
49
|
-
error:
|
|
48
|
+
ariaLabel: r.control.label,
|
|
49
|
+
disabled: r.disabled,
|
|
50
|
+
error: r.error,
|
|
51
|
+
"sub-text": r.subText,
|
|
50
52
|
compact: ""
|
|
51
|
-
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error"]));
|
|
53
|
+
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error", "sub-text"]));
|
|
52
54
|
}
|
|
53
55
|
});
|
|
54
56
|
export {
|
package/dist/{SingleSelectListBoxControl-DM_5t3Nv.js → SingleSelectListBoxControl-sLe2Y67h.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { resolveComponent as x, openBlock as a, createElementBlock as
|
|
2
|
-
import { u as S } from "./usePossibleValues-
|
|
3
|
-
import { S as C } from "./StyledListItem-
|
|
4
|
-
import { _ as L,
|
|
1
|
+
import { resolveComponent as x, openBlock as a, createElementBlock as u, normalizeClass as c, createElementVNode as p, normalizeStyle as h, Fragment as y, renderList as V, createBlock as f, defineComponent as I, toRef as g, unref as r, createCommentVNode as v } from "vue";
|
|
2
|
+
import { u as S } from "./usePossibleValues-CtPV4Cjp.js";
|
|
3
|
+
import { S as C } from "./StyledListItem-BJEJoIzr.js";
|
|
4
|
+
import { _ as L, P as B } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
5
5
|
const w = 40, H = 38, T = 36, K = 35, k = {
|
|
6
6
|
name: "ListBox",
|
|
7
7
|
components: {
|
|
@@ -163,10 +163,10 @@ const w = 40, H = 38, T = 36, K = 35, k = {
|
|
|
163
163
|
}, D = ["id", "tabindex", "aria-label", "aria-activedescendant"];
|
|
164
164
|
function z(e, t, l, n, d, s) {
|
|
165
165
|
const b = x("StyledListItem");
|
|
166
|
-
return a(),
|
|
167
|
-
class:
|
|
166
|
+
return a(), u("div", {
|
|
167
|
+
class: c(["list-box", { invalid: !l.isValid, disabled: l.disabled }])
|
|
168
168
|
}, [
|
|
169
|
-
|
|
169
|
+
p("ul", {
|
|
170
170
|
id: l.id,
|
|
171
171
|
ref: "ul",
|
|
172
172
|
role: "listbox",
|
|
@@ -176,7 +176,7 @@ function z(e, t, l, n, d, s) {
|
|
|
176
176
|
"aria-activedescendant": s.generateOptionId(s.getCurrentItem()),
|
|
177
177
|
onKeydown: t[0] || (t[0] = (...i) => s.handleKeyDown && s.handleKeyDown(...i))
|
|
178
178
|
}, [
|
|
179
|
-
(a(!0),
|
|
179
|
+
(a(!0), u(y, null, V(s.selectableValues, (i, o) => (a(), f(b, {
|
|
180
180
|
id: s.generateOptionId(i),
|
|
181
181
|
key: `listbox-${i.id}`,
|
|
182
182
|
ref_for: !0,
|
|
@@ -184,7 +184,7 @@ function z(e, t, l, n, d, s) {
|
|
|
184
184
|
style: h({ "line-height": `${d.optionLineHeight}px` }),
|
|
185
185
|
text: i.text,
|
|
186
186
|
title: i.text,
|
|
187
|
-
class:
|
|
187
|
+
class: c({
|
|
188
188
|
focused: s.isCurrentValue(i.id),
|
|
189
189
|
noselect: !0,
|
|
190
190
|
empty: i.text.trim() === ""
|
|
@@ -195,8 +195,8 @@ function z(e, t, l, n, d, s) {
|
|
|
195
195
|
invalid: i.invalid,
|
|
196
196
|
special: i.special,
|
|
197
197
|
disabled: l.disabled,
|
|
198
|
-
onClick: (m) => !l.disabled && s.setSelected(i.id,
|
|
199
|
-
onFocus: (m) => !l.disabled && s.setSelected(i.id,
|
|
198
|
+
onClick: (m) => !l.disabled && s.setSelected(i.id, o),
|
|
199
|
+
onFocus: (m) => !l.disabled && s.setSelected(i.id, o)
|
|
200
200
|
}, null, 8, ["id", "style", "text", "title", "class", "aria-selected", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onFocus"]))), 128))
|
|
201
201
|
], 44, D)
|
|
202
202
|
], 2);
|
|
@@ -208,19 +208,20 @@ const A = /* @__PURE__ */ L(k, [["render", z], ["__scopeId", "data-v-a437d16b"]]
|
|
|
208
208
|
handleChange: { type: Function },
|
|
209
209
|
changeValue: { type: Function },
|
|
210
210
|
disabled: { type: Boolean },
|
|
211
|
-
|
|
211
|
+
error: { type: Boolean },
|
|
212
|
+
subText: {},
|
|
212
213
|
onRegisterValidation: { type: Function },
|
|
213
214
|
labelForId: {}
|
|
214
215
|
},
|
|
215
216
|
setup(e) {
|
|
216
217
|
const t = e, { possibleValues: l } = S(g(t, "control"));
|
|
217
|
-
return (n, d) =>
|
|
218
|
+
return (n, d) => r(l) ? (a(), f(r(A), {
|
|
218
219
|
key: 0,
|
|
219
220
|
id: e.labelForId,
|
|
220
|
-
"possible-values":
|
|
221
|
+
"possible-values": r(l),
|
|
221
222
|
disabled: e.disabled,
|
|
222
223
|
"model-value": e.control.data,
|
|
223
|
-
"is-valid": e.
|
|
224
|
+
"is-valid": !e.error,
|
|
224
225
|
ariaLabel: e.control.label,
|
|
225
226
|
size: e.control.uischema.options?.size,
|
|
226
227
|
"onUpdate:modelValue": e.changeValue
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as V, computed as i, onMounted as g, watch as k, openBlock as I, createBlock as U, unref as y } from "vue";
|
|
2
|
+
import { u as L, am as F } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
function S(e, n, t, o) {
|
|
4
|
+
for (var l = e.length, s = t + -1; ++s < l; )
|
|
5
|
+
if (n(e[s], s, e))
|
|
6
|
+
return s;
|
|
7
|
+
return -1;
|
|
8
|
+
}
|
|
9
|
+
function N(e) {
|
|
10
|
+
return e !== e;
|
|
11
|
+
}
|
|
12
|
+
function O(e, n, t) {
|
|
13
|
+
for (var o = t - 1, l = e.length; ++o < l; )
|
|
14
|
+
if (e[o] === n)
|
|
15
|
+
return o;
|
|
16
|
+
return -1;
|
|
17
|
+
}
|
|
18
|
+
function T(e, n, t) {
|
|
19
|
+
return n === n ? O(e, n, t) : S(e, N, t);
|
|
20
|
+
}
|
|
21
|
+
function A(e, n, t) {
|
|
22
|
+
var o = e == null ? 0 : e.length;
|
|
23
|
+
if (!o)
|
|
24
|
+
return -1;
|
|
25
|
+
var l = 0;
|
|
26
|
+
return T(e, n, l);
|
|
27
|
+
}
|
|
28
|
+
const B = "<any unknown new column>", D = /* @__PURE__ */ V({
|
|
29
|
+
__name: "SortListControl",
|
|
30
|
+
props: {
|
|
31
|
+
control: {},
|
|
32
|
+
handleChange: { type: Function },
|
|
33
|
+
changeValue: { type: Function },
|
|
34
|
+
disabled: { type: Boolean },
|
|
35
|
+
error: { type: Boolean },
|
|
36
|
+
subText: {},
|
|
37
|
+
onRegisterValidation: { type: Function },
|
|
38
|
+
labelForId: {}
|
|
39
|
+
},
|
|
40
|
+
setup(e) {
|
|
41
|
+
const n = e, t = i(() => n.control.data), o = i(
|
|
42
|
+
() => n.control.uischema
|
|
43
|
+
), l = i(
|
|
44
|
+
() => o.value.options?.unknownElementId ?? B
|
|
45
|
+
), s = i(
|
|
46
|
+
() => o.value.options?.unknownElementLabel ?? "Any unknown column"
|
|
47
|
+
), c = L(
|
|
48
|
+
o,
|
|
49
|
+
"possibleValues",
|
|
50
|
+
[]
|
|
51
|
+
), d = (a) => {
|
|
52
|
+
const u = {
|
|
53
|
+
id: a.id,
|
|
54
|
+
text: a.text,
|
|
55
|
+
...a.special ? { special: !0 } : {}
|
|
56
|
+
};
|
|
57
|
+
return a.type?.id && (u.accessory = {
|
|
58
|
+
type: "dataType",
|
|
59
|
+
name: a.type.id
|
|
60
|
+
}), u;
|
|
61
|
+
}, h = i(
|
|
62
|
+
() => c.value.map(d).concat(
|
|
63
|
+
d({
|
|
64
|
+
id: l.value,
|
|
65
|
+
text: s.value,
|
|
66
|
+
special: !0
|
|
67
|
+
})
|
|
68
|
+
)
|
|
69
|
+
), f = (a) => {
|
|
70
|
+
if (t.value.length === 0) {
|
|
71
|
+
b();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const u = A(t.value, l.value);
|
|
75
|
+
if (u === -1)
|
|
76
|
+
throw new Error(
|
|
77
|
+
`SortList data have to contain the value "${l.value}"`
|
|
78
|
+
);
|
|
79
|
+
const p = t.value.slice(0, u + 1), x = t.value.slice(u + 1), w = new Set(t.value), v = a.map(({ id: r }) => r).filter((r) => !w.has(r));
|
|
80
|
+
v.length > 0 && n.changeValue(p.concat(v, x));
|
|
81
|
+
};
|
|
82
|
+
g(() => {
|
|
83
|
+
f(c.value);
|
|
84
|
+
}), k(() => c.value, f);
|
|
85
|
+
const b = () => {
|
|
86
|
+
n.changeValue(h.value.map(({ id: a }) => a));
|
|
87
|
+
}, m = (a) => {
|
|
88
|
+
n.changeValue(a);
|
|
89
|
+
};
|
|
90
|
+
return (a, u) => (I(), U(y(F), {
|
|
91
|
+
id: e.labelForId,
|
|
92
|
+
ariaLabel: e.control.label,
|
|
93
|
+
"possible-values": h.value,
|
|
94
|
+
"model-value": t.value,
|
|
95
|
+
disabled: e.disabled,
|
|
96
|
+
error: e.error,
|
|
97
|
+
"sub-text": e.subText,
|
|
98
|
+
"onUpdate:modelValue": m
|
|
99
|
+
}, null, 8, ["id", "ariaLabel", "possible-values", "model-value", "disabled", "error", "sub-text"]));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
B as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
104
|
+
D as default
|
|
105
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as s, createElementBlock as n, mergeProps as d, withModifiers as o, renderSlot as a, createTextVNode as m, toDisplayString as f } from "vue";
|
|
2
|
-
import { _ as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-
|
|
2
|
+
import { _ as u } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
3
|
const r = {
|
|
4
4
|
name: "StyledListItem",
|
|
5
5
|
props: {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as S, ref as r, computed as l, openBlock as I, createElementBlock as y, createElementVNode as m, createVNode as v, unref as b } from "vue";
|
|
2
|
+
import { V, _ as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
const x = { class: "team-and-space" }, B = { class: "team" }, F = { class: "space" }, N = /* @__PURE__ */ S({
|
|
4
4
|
__name: "TeamAndSpacesControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
-
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
11
12
|
onRegisterValidation: { type: Function },
|
|
12
13
|
labelForId: {}
|
|
13
14
|
},
|
|
@@ -16,7 +17,7 @@ const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "spac
|
|
|
16
17
|
() => o.control.uischema
|
|
17
18
|
), u = l(() => f.value.options), i = l(() => u.value?.possibleTeams ?? []), p = l(() => u.value?.possibleSpaces ?? []), c = l(
|
|
18
19
|
() => p.value.find(({ id: s }) => s === n.value)?.spaces ?? []
|
|
19
|
-
), h = l(() => !o.control.enabled || i.value.length === 0), _ = l(() => !o.control.enabled || c.value.length === 0),
|
|
20
|
+
), h = l(() => !o.control.enabled || i.value.length === 0), _ = l(() => !o.control.enabled || c.value.length === 0), T = () => {
|
|
20
21
|
if (o.control.data) {
|
|
21
22
|
a.value = o.control.data;
|
|
22
23
|
const s = p.value.find(
|
|
@@ -24,16 +25,16 @@ const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "spac
|
|
|
24
25
|
);
|
|
25
26
|
s && (n.value = s.id);
|
|
26
27
|
}
|
|
27
|
-
},
|
|
28
|
+
}, g = () => {
|
|
28
29
|
a.value = c.value[0]?.id ?? "", o.changeValue(a.value);
|
|
29
30
|
};
|
|
30
|
-
return
|
|
31
|
-
m("div",
|
|
31
|
+
return T(), (s, e) => (I(), y("div", x, [
|
|
32
|
+
m("div", B, [
|
|
32
33
|
v(b(V), {
|
|
33
34
|
modelValue: n.value,
|
|
34
35
|
"onUpdate:modelValue": [
|
|
35
36
|
e[0] || (e[0] = (t) => n.value = t),
|
|
36
|
-
|
|
37
|
+
g
|
|
37
38
|
],
|
|
38
39
|
label: "Team",
|
|
39
40
|
"aria-label": "account-id",
|
|
@@ -42,7 +43,7 @@ const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "spac
|
|
|
42
43
|
placeholder: "No team selected"
|
|
43
44
|
}, null, 8, ["modelValue", "disabled", "possible-values"])
|
|
44
45
|
]),
|
|
45
|
-
m("div",
|
|
46
|
+
m("div", F, [
|
|
46
47
|
v(b(V), {
|
|
47
48
|
modelValue: a.value,
|
|
48
49
|
"onUpdate:modelValue": [
|
|
@@ -58,7 +59,7 @@ const B = { class: "team-and-space" }, F = { class: "team" }, N = { class: "spac
|
|
|
58
59
|
])
|
|
59
60
|
]));
|
|
60
61
|
}
|
|
61
|
-
}), D = /* @__PURE__ */ C(
|
|
62
|
+
}), D = /* @__PURE__ */ C(N, [["__scopeId", "data-v-c51d9a0e"]]);
|
|
62
63
|
export {
|
|
63
64
|
D as default
|
|
64
65
|
};
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { defineComponent as l, computed as t, openBlock as
|
|
2
|
-
import { R as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as l, computed as t, openBlock as s, createBlock as i, mergeProps as p } from "vue";
|
|
2
|
+
import { R as d } from "./ResourceControlBase-FDiyHyQi.js";
|
|
3
|
+
const g = /* @__PURE__ */ l({
|
|
4
4
|
__name: "TeamResourceControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
-
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
11
12
|
onRegisterValidation: { type: Function },
|
|
12
13
|
labelForId: {}
|
|
13
14
|
},
|
|
14
15
|
setup(e) {
|
|
15
16
|
const o = e, n = t(
|
|
16
17
|
() => o.control.uischema.options?.donutTitle || ""
|
|
17
|
-
),
|
|
18
|
+
), r = t(
|
|
18
19
|
() => o.control.uischema.options?.donutText || ""
|
|
19
20
|
), c = t(
|
|
20
21
|
() => o.control.uischema.options?.currentUsage ?? 0
|
|
21
|
-
),
|
|
22
|
+
), a = t(
|
|
22
23
|
() => o.control.data === -1 ? "unlimited" : o.control.data
|
|
23
|
-
),
|
|
24
|
-
() => `${c.value} of ${
|
|
24
|
+
), u = t(
|
|
25
|
+
() => `${c.value} of ${a.value} ${r.value}`.trim()
|
|
25
26
|
);
|
|
26
|
-
return (m, h) => (
|
|
27
|
+
return (m, h) => (s(), i(d, p(o, {
|
|
27
28
|
"donut-title": n.value,
|
|
28
|
-
"donut-description":
|
|
29
|
+
"donut-description": u.value
|
|
29
30
|
}), null, 16, ["donut-title", "donut-description"]));
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
g as default
|
|
34
35
|
};
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { defineComponent as a, openBlock as o, createBlock as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as a, openBlock as o, createBlock as t, unref as l } from "vue";
|
|
2
|
+
import { an as n } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
const c = /* @__PURE__ */ a({
|
|
4
4
|
__name: "TextAreaControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
-
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
11
12
|
onRegisterValidation: { type: Function },
|
|
12
13
|
labelForId: {}
|
|
13
14
|
},
|
|
14
15
|
setup(e) {
|
|
15
|
-
return (r, d) => (o(), l(n
|
|
16
|
+
return (r, d) => (o(), t(l(n), {
|
|
16
17
|
id: e.labelForId,
|
|
17
18
|
ariaLabel: e.control.label,
|
|
18
19
|
"model-value": e.control.data,
|
|
19
20
|
disabled: e.disabled,
|
|
20
21
|
rows: e.control.uischema.options?.rows,
|
|
21
|
-
error:
|
|
22
|
+
error: e.error,
|
|
23
|
+
"sub-text": e.subText,
|
|
22
24
|
"onUpdate:modelValue": e.changeValue
|
|
23
|
-
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "rows", "error", "onUpdate:modelValue"]));
|
|
25
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "rows", "error", "sub-text", "onUpdate:modelValue"]));
|
|
24
26
|
}
|
|
25
27
|
});
|
|
26
28
|
export {
|
|
27
|
-
|
|
29
|
+
c as default
|
|
28
30
|
};
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u, C as
|
|
3
|
-
import { u as F } from "./useBuiltinValidations-
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as p, computed as i, useTemplateRef as h, openBlock as b, createBlock as x, unref as l } from "vue";
|
|
2
|
+
import { u, C as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
|
+
import { u as F } from "./useBuiltinValidations-Cfw3JlJf.js";
|
|
4
|
+
const V = /* @__PURE__ */ p({
|
|
5
5
|
__name: "TextControl",
|
|
6
6
|
props: {
|
|
7
7
|
control: {},
|
|
8
8
|
handleChange: { type: Function },
|
|
9
9
|
changeValue: { type: Function },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
-
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
12
13
|
onRegisterValidation: { type: Function },
|
|
13
14
|
labelForId: {}
|
|
14
15
|
},
|
|
15
|
-
setup(e, { expose:
|
|
16
|
+
setup(e, { expose: r }) {
|
|
16
17
|
const a = e;
|
|
17
18
|
F(
|
|
18
19
|
{
|
|
19
20
|
pattern: ({ pattern: t }) => {
|
|
20
21
|
const o = new RegExp(`^(${t})$`);
|
|
21
|
-
return (
|
|
22
|
+
return (m) => o.test(m ?? "");
|
|
22
23
|
},
|
|
23
24
|
minLength: ({ minLength: t }) => (o) => (o?.length ?? 0) >= t,
|
|
24
25
|
maxLength: ({ maxLength: t }) => (o) => (o?.length ?? 0) <= t
|
|
25
26
|
},
|
|
26
27
|
a
|
|
27
28
|
);
|
|
28
|
-
const n = i(() => a.control.uischema),
|
|
29
|
+
const n = i(() => a.control.uischema), d = u(n, "placeholder", ""), c = u(n, "suggestions"), g = i(
|
|
29
30
|
() => n.value?.options?.suggestionsTitle || "Suggestions"
|
|
30
31
|
), s = h("inputField");
|
|
31
|
-
return
|
|
32
|
+
return r({
|
|
32
33
|
focus: () => s.value?.focus()
|
|
33
|
-
}), (t, o) => (
|
|
34
|
+
}), (t, o) => (b(), x(l(f), {
|
|
34
35
|
id: e.labelForId,
|
|
35
36
|
ref_key: "inputField",
|
|
36
37
|
ref: s,
|
|
37
38
|
ariaLabel: e.control.label,
|
|
38
|
-
placeholder: l(
|
|
39
|
+
placeholder: l(d),
|
|
39
40
|
"model-value": e.control.data ?? "",
|
|
40
41
|
disabled: e.disabled,
|
|
41
|
-
error:
|
|
42
|
+
error: e.error,
|
|
43
|
+
"sub-text": e.subText,
|
|
42
44
|
suggestions: l(c) ?? void 0,
|
|
43
45
|
"suggestions-headline": g.value,
|
|
44
46
|
"onUpdate:modelValue": e.changeValue
|
|
45
|
-
}, null, 8, ["id", "ariaLabel", "placeholder", "model-value", "disabled", "error", "suggestions", "suggestions-headline", "onUpdate:modelValue"]));
|
|
47
|
+
}, null, 8, ["id", "ariaLabel", "placeholder", "model-value", "disabled", "error", "sub-text", "suggestions", "suggestions-headline", "onUpdate:modelValue"]));
|
|
46
48
|
}
|
|
47
49
|
});
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
V as _
|
|
50
52
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as x, computed as u, ref as U, openBlock as V, createBlock as v, unref as F } from "vue";
|
|
2
|
+
import { T as G } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
3
3
|
import { p as m } from "./plainDateTimeUtils-CR0UhpkD.js";
|
|
4
4
|
import { U as c } from "./classApi-CHpAZrj3.js";
|
|
5
|
-
const I = /* @__PURE__ */
|
|
5
|
+
const I = /* @__PURE__ */ x({
|
|
6
6
|
__name: "TimeControl",
|
|
7
7
|
props: {
|
|
8
8
|
control: {},
|
|
9
9
|
handleChange: { type: Function },
|
|
10
10
|
changeValue: { type: Function },
|
|
11
11
|
disabled: { type: Boolean },
|
|
12
|
-
|
|
12
|
+
error: { type: Boolean },
|
|
13
|
+
subText: {},
|
|
13
14
|
onRegisterValidation: { type: Function },
|
|
14
15
|
labelForId: {}
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
17
|
+
setup(n) {
|
|
18
|
+
const a = n, f = u(() => a.control.uischema.options), p = u(
|
|
18
19
|
() => m.getMaxGranularity(f.value)
|
|
19
20
|
), y = (t) => {
|
|
20
21
|
if (!t)
|
|
@@ -35,33 +36,34 @@ const I = /* @__PURE__ */ b({
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}, g = (t, e) => t === null ? "" : e === "minute" ? t.toString({ smallestUnit: "minute" }) : e === "second" ? t.toString({ smallestUnit: "second" }) : t.toString({ fractionalSecondDigits: 3 }), s = u(
|
|
38
|
-
() => y(
|
|
39
|
-
), o =
|
|
40
|
-
m.detectGranularity(
|
|
39
|
+
() => y(a.control.data)
|
|
40
|
+
), o = U(
|
|
41
|
+
m.detectGranularity(a.control.data)
|
|
41
42
|
);
|
|
42
|
-
let r,
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
const t = r === void 0 ? s.value : r, e =
|
|
46
|
-
r = void 0,
|
|
43
|
+
let r, l, i = !1;
|
|
44
|
+
const T = () => {
|
|
45
|
+
i = !1;
|
|
46
|
+
const t = r === void 0 ? s.value : r, e = l ?? o.value;
|
|
47
|
+
r = void 0, l = void 0, o.value = e, a.changeValue(g(t, e));
|
|
47
48
|
}, d = () => {
|
|
48
|
-
|
|
49
|
-
},
|
|
49
|
+
i || (i = !0, queueMicrotask(T));
|
|
50
|
+
}, b = (t) => {
|
|
50
51
|
r = t, d();
|
|
51
|
-
},
|
|
52
|
-
|
|
52
|
+
}, h = (t) => {
|
|
53
|
+
l = t, d();
|
|
53
54
|
};
|
|
54
|
-
return (t, e) => (
|
|
55
|
-
id:
|
|
55
|
+
return (t, e) => (V(), v(F(G), {
|
|
56
|
+
id: n.labelForId,
|
|
56
57
|
"model-value": s.value,
|
|
57
58
|
granularity: o.value,
|
|
58
|
-
ariaLabel:
|
|
59
|
+
ariaLabel: a.control.label,
|
|
59
60
|
"max-granularity": p.value,
|
|
60
|
-
disabled:
|
|
61
|
-
error:
|
|
62
|
-
"
|
|
63
|
-
"onUpdate:
|
|
64
|
-
|
|
61
|
+
disabled: n.disabled,
|
|
62
|
+
error: n.error,
|
|
63
|
+
"sub-text": n.subText,
|
|
64
|
+
"onUpdate:modelValue": b,
|
|
65
|
+
"onUpdate:granularity": h
|
|
66
|
+
}, null, 8, ["id", "model-value", "granularity", "ariaLabel", "max-granularity", "disabled", "error", "sub-text"]));
|
|
65
67
|
}
|
|
66
68
|
});
|
|
67
69
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { openBlock as g, createElementBlock as V, createElementVNode as d, resolveComponent as
|
|
1
|
+
import { openBlock as g, createElementBlock as V, createElementVNode as d, resolveComponent as w, normalizeClass as f, createCommentVNode as T, withModifiers as h, createVNode as u, defineComponent as M, unref as m, withCtx as I } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { _ as N,
|
|
3
|
+
import { _ as N, al as b } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-DML-OwvR.js";
|
|
4
4
|
const y = {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6
6
|
fill: "none",
|
|
@@ -220,7 +220,7 @@ const A = { render: B }, S = (t) => Math.max(Math.floor(Math.log10(Math.abs(t)))
|
|
|
220
220
|
class: "invalid-marker"
|
|
221
221
|
};
|
|
222
222
|
function L(t, e, n, r, o, l) {
|
|
223
|
-
const s =
|
|
223
|
+
const s = w("ArrowIcon");
|
|
224
224
|
return g(), V("div", {
|
|
225
225
|
class: f(["wrapper", { disabled: n.disabled, compact: n.compact }])
|
|
226
226
|
}, [
|
|
@@ -266,7 +266,8 @@ const v = /* @__PURE__ */ N(R, [["render", L], ["__scopeId", "data-v-bf742de5"]]
|
|
|
266
266
|
handleChange: { type: Function },
|
|
267
267
|
changeValue: { type: Function },
|
|
268
268
|
disabled: { type: Boolean },
|
|
269
|
-
|
|
269
|
+
error: { type: Boolean },
|
|
270
|
+
subText: {},
|
|
270
271
|
onRegisterValidation: { type: Function },
|
|
271
272
|
labelForId: {}
|
|
272
273
|
},
|
|
@@ -276,11 +277,11 @@ const v = /* @__PURE__ */ N(R, [["render", L], ["__scopeId", "data-v-bf742de5"]]
|
|
|
276
277
|
for (; p.length < n; )
|
|
277
278
|
p.push("00");
|
|
278
279
|
p[i] = String(E).padStart(2, "0"), s === "end" && (p[2] = "59");
|
|
279
|
-
const
|
|
280
|
+
const x = {
|
|
280
281
|
...r.control.data,
|
|
281
282
|
[s]: p.slice(0, n).join(":")
|
|
282
283
|
};
|
|
283
|
-
r.changeValue(
|
|
284
|
+
r.changeValue(x);
|
|
284
285
|
};
|
|
285
286
|
return (l, s) => (g(), V("div", H, [
|
|
286
287
|
u(m(b), { text: "Between" }, {
|