@knime/jsonforms 1.18.4 → 1.18.6
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-BAwx6fWr.js → AnyOfTwinlist-gzLO2MKV.js} +1 -1
- package/dist/{Button-CUyJJ5oz.js → Button-Dda5J_Ov.js} +1 -1
- package/dist/{Checkbox-CzMSao8p.js → Checkbox-D2xeiXLu.js} +1 -1
- package/dist/{CheckboxControl-COJ86l-n.js → CheckboxControl-C1d02rTr.js} +9 -9
- package/dist/CheckboxesControl-yMvCHCji.js +37 -0
- package/dist/{ComboBoxControl-BUJQqI4X.js → ComboBoxControl-DqMLJmSS.js} +3 -3
- package/dist/{DateControl-DZ2Vu3Je.js → DateControl-C3KNAi0p.js} +1 -1
- package/dist/{DateTimeControl-jxQPI4dB.js → DateTimeControl-0E9gFDab.js} +1 -1
- package/dist/{DateTimeFormatInput-DVWjGWDG.js → DateTimeFormatInput-BzIbhecB.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-DYxjJjMN.js → DateTimeFormatPickerControl-szgIA4EC.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CeoVA0IL.js → DateTimeFormatPickerWithTypeControl-B1WjDKL6.js} +4 -4
- package/dist/{Dropdown-CbyDcvL5.js → Dropdown-Cjuv07DI.js} +2 -2
- package/dist/{DropdownControl-L1EAb0pj.js → DropdownControl-BngLLAhP.js} +3 -3
- package/dist/{HorizontalLayout-BdWfkVXm.js → HorizontalLayout-I3m1LiGf.js} +3 -3
- package/dist/{InputField-Ds-kKFLj.js → InputField-DWgTvNH5.js} +1 -1
- package/dist/{IntegerControl-B9h6oEtw.js → IntegerControl-BKLFuDQz.js} +1 -1
- package/dist/{IntervalControl-CX2YqRUZ.js → IntervalControl-CymzpG3g.js} +23 -23
- package/dist/{Label-DNOWhc4a.js → Label-D8GzjSce.js} +1 -1
- package/dist/{LoadingDropdown-BJtivb5q.js → LoadingDropdown-BOy8LwzL.js} +8 -8
- package/dist/{LoadingIcon-DpfMnp1Y.js → LoadingIcon-BFhDwjCD.js} +1 -1
- package/dist/{ManualTwinlistControl-C2IVPFQz.js → ManualTwinlistControl-B6X2AOT0.js} +9 -9
- package/dist/{MultiSelectListBoxControl-D-ve0TnH.js → MultiSelectListBoxControl-BPp-6zDR.js} +2 -2
- package/dist/{MultimodeTwinlistControl-piec1IxJ.js → MultimodeTwinlistControl-BD7SneIV.js} +248 -149
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-CalJDSPZ.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_03e29ad9_lang-BhDbFHeU.js} +2 -2
- package/dist/{MultiselectListBox-BJcy4Dqw.js → MultiselectListBox-CD45Rvi6.js} +4 -4
- package/dist/{NameFilter-fQPaQQ-K.js → NameFilter-BGsRj5hM.js} +1 -1
- package/dist/{NumberControl-D3PvSv9N.js → NumberControl-DN8HkUDH.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-D_J7b5uG.js → NumberControlBase.vue_vue_type_script_setup_true_lang-EOqEf4UB.js} +2 -2
- package/dist/{NumberInput-BW8n8mei.js → NumberInput-By1qufZl.js} +1 -1
- package/dist/{OneOfDropdown-BxS8z550.js → OneOfDropdown-n7F_OveO.js} +1 -1
- package/dist/{RadioControl-D0j66cGm.js → RadioControl-BSthzT0k.js} +7 -7
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-D4l2SKa8.js → RadioControlBase.vue_vue_type_script_setup_true_lang-qHfUX6ZV.js} +2 -2
- package/dist/{RichTextControl-D5rrfmtF.js → RichTextControl-1VXTtZjp.js} +8 -8
- package/dist/{SectionHeading-1A2qYqXS.js → SectionHeading-CwDxoevE.js} +2 -2
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-llWni5tV.js → SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js} +6893 -6769
- package/dist/{SectionLayout-DFikyU-W.js → SectionLayout-BNWY9b0J.js} +4 -4
- package/dist/SettingsSubPanel-I2O8Kbpm.js +5 -0
- package/dist/{SettingsSubPanelLayout-CPgboIRG.js → SettingsSubPanelLayout-DI3XOyR8.js} +5 -5
- package/dist/{SimpleButtonControl-CPbHVRRO.js → SimpleButtonControl-DmhTAD4l.js} +2 -2
- package/dist/{SimpleTwinlistControl-JXguJiZW.js → SimpleTwinlistControl-BfLfCaV4.js} +2 -2
- package/dist/{SingleSelectControl-CI7DFlai.js → SingleSelectControl-DeEOElA3.js} +2 -2
- package/dist/{SingleSelectListBoxControl-BUKJdy2E.js → SingleSelectListBoxControl-8IVN9k6K.js} +3 -3
- package/dist/{SortListControl-CW2yBUbn.js → SortListControl-BdhN6wD2.js} +23 -23
- package/dist/{StyledListItem-BMj67bKv.js → StyledListItem-fZvZ3bHQ.js} +1 -1
- package/dist/{TextAreaControl-C2VVMNpr.js → TextAreaControl-Cz51TD5P.js} +10 -10
- package/dist/{TextControl-CYhm8kPo.js → TextControl-BXyiqNIk.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4RO9YQFy.js → TextControl.vue_vue_type_script_setup_true_lang-CX9Ht0uC.js} +3 -3
- package/dist/{TimeControl-CB00mOhn.js → TimeControl-DSfhl_XR.js} +1 -1
- package/dist/{TwinlistControlBase-CiWgQHIA.js → TwinlistControlBase-BVyw1OGw.js} +9 -9
- package/dist/{TwinlistLoadingInfo-DYcRz-dw.js → TwinlistLoadingInfo-osSNnYXw.js} +6 -6
- package/dist/{TypedStringFilter-D5YWGU1h.js → TypedStringFilter-C4hEx8ou.js} +1 -1
- package/dist/{ValueSwitch-C7owbg0E.js → ValueSwitch-BzpZxWnJ.js} +1 -1
- package/dist/{ValueSwitchControl-CTgP7Rpv.js → ValueSwitchControl-BdoxdUxX.js} +1 -1
- package/dist/{VerticalLayout-BZ63G78T.js → VerticalLayout-CzskYqza.js} +2 -2
- package/dist/{VerticalLayoutBase-BaY_sA6C.js → VerticalLayoutBase-CC2RarHk.js} +5 -5
- package/dist/{ZonedDateTimeControl-jwwn17_l.js → ZonedDateTimeControl-BXqfWqhJ.js} +4 -4
- package/dist/{_baseEach-CfZ9x5sM.js → _baseEach-DCDlbM_F.js} +2 -2
- package/dist/{_baseIteratee-IRzVWiYa.js → _baseIteratee-CBJOQflL.js} +3 -3
- package/dist/{_getTag-jzNOkMJ0.js → _getTag-f9WyTXP2.js} +1 -1
- package/dist/add-user-CKh821Ew-BL8fUgBJ.js +22 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +81 -75
- package/dist/{localTimeUtils-BVFJFQ9N.js → localTimeUtils-B5X5KcA6.js} +6 -6
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -0
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +3 -3
- package/dist/team-D1-xShh0-DP8zClGp.js +21 -0
- package/dist/testing.js +2 -2
- package/dist/{toString-DBbUR-sR.js → toString-Cf39i999.js} +1 -1
- package/dist/{useBuiltinValidations-D09sARbZ.js → useBuiltinValidations-PBjYh_0a.js} +1 -1
- package/dist/{usePossibleValues-DW0doQ49.js → usePossibleValues-ChX-uwlg.js} +1 -1
- package/dist/version-B-5dHgvX-DJQ17CCB.js +22 -0
- package/package.json +4 -5
- package/dist/Checkboxes-DiAtNfP2.js +0 -106
- package/dist/CheckboxesControl-CGTNxy3j.js +0 -38
- package/dist/SettingsSubPanel-_NdmpnHl.js +0 -5
|
@@ -1,39 +1,138 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { m as
|
|
4
|
-
import { u as
|
|
5
|
-
import { a as
|
|
6
|
-
import { u as
|
|
7
|
-
import { f as
|
|
8
|
-
import { C as
|
|
9
|
-
import { L as
|
|
10
|
-
import { V as
|
|
11
|
-
const
|
|
1
|
+
import { resolveComponent as f, createElementBlock as S, openBlock as m, normalizeClass as M, Fragment as J, renderList as Q, createBlock as g, withCtx as c, renderSlot as k, createTextVNode as X, toDisplayString as I, createElementVNode as T, toRef as L, createCommentVNode as P, createVNode as b, normalizeProps as _, guardReactiveProps as B, mergeProps as A, defineComponent as Y, ref as Z, computed as y, markRaw as $, unref as V, createSlots as ee } from "vue";
|
|
2
|
+
import { _ as U, V as z } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
3
|
+
import { m as te } from "./index-Blg1O3Fz.js";
|
|
4
|
+
import { u as ae, a as le } from "./usePossibleValues-ChX-uwlg.js";
|
|
5
|
+
import { a as ne, S as se, u as ie, T as oe } from "./TwinlistLoadingInfo-osSNnYXw.js";
|
|
6
|
+
import { u as de } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_03e29ad9_lang-BhDbFHeU.js";
|
|
7
|
+
import { f as D } from "./useSearch-hpyYQ_6y.js";
|
|
8
|
+
import { C as re } from "./Checkbox-D2xeiXLu.js";
|
|
9
|
+
import { L as ue } from "./Label-D8GzjSce.js";
|
|
10
|
+
import { V as ce } from "./ValueSwitch-BzpZxWnJ.js";
|
|
11
|
+
const me = {
|
|
12
|
+
name: "Checkboxes",
|
|
13
|
+
components: {
|
|
14
|
+
Checkbox: re
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
/**
|
|
18
|
+
* List of possible values. Each item must have an `id` and a `text` property.
|
|
19
|
+
* @example
|
|
20
|
+
* [{
|
|
21
|
+
* id: 'pdf',
|
|
22
|
+
* text: 'PDF'
|
|
23
|
+
* }, {
|
|
24
|
+
* id: 'XLS',
|
|
25
|
+
* text: 'Excel',
|
|
26
|
+
* }]
|
|
27
|
+
*/
|
|
28
|
+
possibleValues: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => [],
|
|
31
|
+
validator(e) {
|
|
32
|
+
return Array.isArray(e) ? e.every(
|
|
33
|
+
(a) => a.hasOwnProperty("id") && a.hasOwnProperty("text")
|
|
34
|
+
) : !1;
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Controls the alignment
|
|
39
|
+
*/
|
|
40
|
+
alignment: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "horizontal",
|
|
43
|
+
validator(e) {
|
|
44
|
+
return ["horizontal", "vertical"].includes(e);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
disabled: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
isValid: {
|
|
52
|
+
default: !0,
|
|
53
|
+
type: Boolean
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* selected value (which is a list of ids of entries)
|
|
57
|
+
*/
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: Array,
|
|
60
|
+
default: () => []
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
emits: ["update:modelValue"],
|
|
64
|
+
methods: {
|
|
65
|
+
validate() {
|
|
66
|
+
const e = !this.possibleValues.some((a) => a.invalid);
|
|
67
|
+
return {
|
|
68
|
+
isValid: e,
|
|
69
|
+
errorMessage: e ? null : "One or more of the selected items is invalid."
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
onUpdateModelValue(e, a) {
|
|
73
|
+
let t = Array.from(this.modelValue);
|
|
74
|
+
a ? t.indexOf(e) === -1 && t.push(e) : t = t.filter((o) => o !== e), consola.trace("Checkboxes value changed to", t), this.$emit("update:modelValue", t);
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* Is at least one checkbox checked?
|
|
78
|
+
* @returns {boolean}
|
|
79
|
+
*/
|
|
80
|
+
hasSelection() {
|
|
81
|
+
return this.$refs.boxes.some((e) => e.isChecked());
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
function pe(e, a, t, o, s, n) {
|
|
86
|
+
const p = f("Checkbox");
|
|
87
|
+
return m(), S("div", {
|
|
88
|
+
class: M(["checkboxes", t.alignment])
|
|
89
|
+
}, [
|
|
90
|
+
(m(!0), S(J, null, Q(t.possibleValues, (i) => (m(), g(p, {
|
|
91
|
+
ref_for: !0,
|
|
92
|
+
ref: "boxes",
|
|
93
|
+
key: `checkboxes-${i.id}`,
|
|
94
|
+
"model-value": t.modelValue.indexOf(i.id) > -1,
|
|
95
|
+
title: i.text,
|
|
96
|
+
invalid: i.invalid,
|
|
97
|
+
disabled: t.disabled,
|
|
98
|
+
class: "box",
|
|
99
|
+
"onUpdate:modelValue": (v) => n.onUpdateModelValue(i.id, v)
|
|
100
|
+
}, {
|
|
101
|
+
default: c(() => [
|
|
102
|
+
k(e.$slots, "label", { slotItem: i }, () => [
|
|
103
|
+
X(I(i.text), 1)
|
|
104
|
+
], !0)
|
|
105
|
+
]),
|
|
106
|
+
_: 2
|
|
107
|
+
}, 1032, ["model-value", "title", "invalid", "disabled", "onUpdate:modelValue"]))), 128))
|
|
108
|
+
], 2);
|
|
109
|
+
}
|
|
110
|
+
const he = /* @__PURE__ */ U(me, [["render", pe], ["__scopeId", "data-v-c83ea4f7"]]), ye = {
|
|
12
111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
112
|
fill: "none",
|
|
14
113
|
stroke: "#000",
|
|
15
114
|
"stroke-linejoin": "round",
|
|
16
115
|
viewBox: "0 0 32 32"
|
|
17
116
|
};
|
|
18
|
-
function
|
|
19
|
-
return
|
|
117
|
+
function fe(e, a) {
|
|
118
|
+
return m(), S("svg", ye, [...a[0] || (a[0] = [
|
|
20
119
|
T("path", { d: "m13.31 27.81 5.11-3.19v-9.15L28.95 4.19H3.05l10.26 11.28z" }, null, -1)
|
|
21
120
|
])]);
|
|
22
121
|
}
|
|
23
|
-
const
|
|
122
|
+
const be = { render: fe }, ve = {
|
|
24
123
|
manual: "Manual",
|
|
25
124
|
wildcard: "Wildcard",
|
|
26
125
|
regex: "Regex",
|
|
27
126
|
type: "Type"
|
|
28
|
-
},
|
|
127
|
+
}, we = {
|
|
29
128
|
name: "MultiModeTwinlist",
|
|
30
129
|
components: {
|
|
31
|
-
Label:
|
|
32
|
-
FilterIcon:
|
|
33
|
-
SearchInput:
|
|
34
|
-
Checkboxes:
|
|
35
|
-
ValueSwitch:
|
|
36
|
-
Twinlist:
|
|
130
|
+
Label: ue,
|
|
131
|
+
FilterIcon: be,
|
|
132
|
+
SearchInput: se,
|
|
133
|
+
Checkboxes: he,
|
|
134
|
+
ValueSwitch: ce,
|
|
135
|
+
Twinlist: ne
|
|
37
136
|
},
|
|
38
137
|
props: {
|
|
39
138
|
/**
|
|
@@ -162,10 +261,10 @@ const ce = { render: ue }, me = {
|
|
|
162
261
|
"update:selected"
|
|
163
262
|
],
|
|
164
263
|
setup(e) {
|
|
165
|
-
const { includedValues:
|
|
166
|
-
|
|
264
|
+
const { includedValues: a } = ie(
|
|
265
|
+
L(e, "manualSelection")
|
|
167
266
|
);
|
|
168
|
-
return { manuallySelected:
|
|
267
|
+
return { manuallySelected: a };
|
|
169
268
|
},
|
|
170
269
|
data() {
|
|
171
270
|
return {
|
|
@@ -177,12 +276,12 @@ const ce = { render: ue }, me = {
|
|
|
177
276
|
return this.possibleValues.map(({ id: e }) => e);
|
|
178
277
|
},
|
|
179
278
|
possibleTypes() {
|
|
180
|
-
const e = this.possibleValues.map(({ type:
|
|
279
|
+
const e = this.possibleValues.map(({ type: s }) => s).filter(Boolean), a = e.map((s) => s.id);
|
|
181
280
|
return [...this.additionalPossibleTypes.filter(
|
|
182
|
-
(
|
|
183
|
-
), ...e].filter((
|
|
281
|
+
(s) => s && !a.includes(s.id)
|
|
282
|
+
), ...e].filter((s) => s && s.id !== "").filter(
|
|
184
283
|
// remove duplicates
|
|
185
|
-
(
|
|
284
|
+
(s, n, p) => n === p.findIndex((i) => i.id === s.id && i.text === s.text)
|
|
186
285
|
);
|
|
187
286
|
},
|
|
188
287
|
matchingValueIds() {
|
|
@@ -198,21 +297,21 @@ const ce = { render: ue }, me = {
|
|
|
198
297
|
return this.disabled || this.mode !== "manual";
|
|
199
298
|
},
|
|
200
299
|
normalizedSearchTerm() {
|
|
201
|
-
return this.mode === "manual" ? null :
|
|
300
|
+
return this.mode === "manual" ? null : D[this.mode].normalize(
|
|
202
301
|
this.mode === "type" ? this.selectedTypes : this.pattern,
|
|
203
302
|
this.caseSensitivePattern
|
|
204
303
|
);
|
|
205
304
|
},
|
|
206
305
|
possibleModes() {
|
|
207
|
-
let e = Object.entries(
|
|
208
|
-
return this.withTypes || (e = e.filter((
|
|
306
|
+
let e = Object.entries(ve).map(([a, t]) => ({ id: a, text: t }));
|
|
307
|
+
return this.withTypes || (e = e.filter((a) => a.id !== "type")), e;
|
|
209
308
|
}
|
|
210
309
|
},
|
|
211
310
|
watch: {
|
|
212
311
|
selectedValues: {
|
|
213
312
|
immediate: !0,
|
|
214
|
-
handler(e,
|
|
215
|
-
!
|
|
313
|
+
handler(e, a) {
|
|
314
|
+
!a || e === null || (e.length !== a.length || a.some((t, o) => t !== e[o])) && this.$emit("update:selected", this.selectedValues);
|
|
216
315
|
}
|
|
217
316
|
}
|
|
218
317
|
},
|
|
@@ -242,7 +341,7 @@ const ce = { render: ue }, me = {
|
|
|
242
341
|
return !!this.selectedValues?.length;
|
|
243
342
|
},
|
|
244
343
|
itemMatches(e) {
|
|
245
|
-
return
|
|
344
|
+
return D[this.mode].test(
|
|
246
345
|
this.mode === "type" ? e.type?.id : e.text,
|
|
247
346
|
this.normalizedSearchTerm,
|
|
248
347
|
this.caseSensitivePattern,
|
|
@@ -251,39 +350,39 @@ const ce = { render: ue }, me = {
|
|
|
251
350
|
}
|
|
252
351
|
}
|
|
253
352
|
};
|
|
254
|
-
function
|
|
255
|
-
const
|
|
256
|
-
return
|
|
257
|
-
class:
|
|
353
|
+
function ge(e, a, t, o, s, n) {
|
|
354
|
+
const p = f("ValueSwitch"), i = f("Label"), v = f("FilterIcon"), x = f("SearchInput"), C = f("Checkboxes"), w = f("Twinlist");
|
|
355
|
+
return m(), S("div", {
|
|
356
|
+
class: M(["multi-mode-twinlist", { disabled: t.disabled }])
|
|
258
357
|
}, [
|
|
259
|
-
t.showMode ? (
|
|
358
|
+
t.showMode ? (m(), g(i, {
|
|
260
359
|
key: 0,
|
|
261
360
|
active: t.withModeLabel,
|
|
262
361
|
text: t.modeLabel,
|
|
263
362
|
class: "label"
|
|
264
363
|
}, {
|
|
265
|
-
default: c(({ labelForId:
|
|
266
|
-
|
|
267
|
-
id:
|
|
364
|
+
default: c(({ labelForId: u }) => [
|
|
365
|
+
b(p, {
|
|
366
|
+
id: u,
|
|
268
367
|
ref: "mode",
|
|
269
368
|
compact: t.compact,
|
|
270
369
|
"model-value": t.mode,
|
|
271
370
|
disabled: t.disabled,
|
|
272
|
-
"possible-values":
|
|
273
|
-
"onUpdate:modelValue":
|
|
371
|
+
"possible-values": n.possibleModes,
|
|
372
|
+
"onUpdate:modelValue": n.onModeChange
|
|
274
373
|
}, null, 8, ["id", "compact", "model-value", "disabled", "possible-values", "onUpdate:modelValue"])
|
|
275
374
|
]),
|
|
276
375
|
_: 1
|
|
277
376
|
}, 8, ["active", "text"])) : P("", !0),
|
|
278
|
-
t.mode === "regex" || t.mode === "wildcard" ? (
|
|
377
|
+
t.mode === "regex" || t.mode === "wildcard" ? (m(), g(i, {
|
|
279
378
|
key: 1,
|
|
280
379
|
active: t.withPatternLabel,
|
|
281
380
|
text: t.patternLabel,
|
|
282
381
|
class: "label"
|
|
283
382
|
}, {
|
|
284
|
-
default: c(({ labelForId:
|
|
285
|
-
|
|
286
|
-
id:
|
|
383
|
+
default: c(({ labelForId: u }) => [
|
|
384
|
+
b(x, {
|
|
385
|
+
id: u,
|
|
287
386
|
ref: "search",
|
|
288
387
|
"model-value": t.pattern,
|
|
289
388
|
label: t.patternLabel,
|
|
@@ -297,56 +396,56 @@ function he(e, l, t, d, n, s) {
|
|
|
297
396
|
inverseSearch: "Move matching to other side"
|
|
298
397
|
},
|
|
299
398
|
compact: t.compact,
|
|
300
|
-
"onUpdate:modelValue":
|
|
301
|
-
onToggleCaseSensitiveSearch:
|
|
302
|
-
onToggleInverseSearch:
|
|
399
|
+
"onUpdate:modelValue": n.onPatternInput,
|
|
400
|
+
onToggleCaseSensitiveSearch: n.onToggleCaseSensitivePattern,
|
|
401
|
+
onToggleInverseSearch: n.onToggleInversePattern
|
|
303
402
|
}, {
|
|
304
403
|
icon: c(() => [
|
|
305
|
-
|
|
404
|
+
b(v)
|
|
306
405
|
]),
|
|
307
406
|
_: 1
|
|
308
407
|
}, 8, ["id", "model-value", "label", "initial-case-sensitive-search", "initial-inverse-search", "disabled", "compact", "onUpdate:modelValue", "onToggleCaseSensitiveSearch", "onToggleInverseSearch"])
|
|
309
408
|
]),
|
|
310
409
|
_: 1
|
|
311
410
|
}, 8, ["active", "text"])) : P("", !0),
|
|
312
|
-
t.mode === "type" &&
|
|
411
|
+
t.mode === "type" && n.possibleTypes.length > 0 ? (m(), g(i, {
|
|
313
412
|
key: 2,
|
|
314
413
|
active: t.withTypesLabel,
|
|
315
414
|
text: t.typesLabel,
|
|
316
415
|
class: "label"
|
|
317
416
|
}, {
|
|
318
417
|
default: c(() => [
|
|
319
|
-
|
|
418
|
+
b(C, {
|
|
320
419
|
"model-value": t.selectedTypes,
|
|
321
|
-
"possible-values":
|
|
420
|
+
"possible-values": n.possibleTypes,
|
|
322
421
|
disabled: t.disabled,
|
|
323
|
-
"onUpdate:modelValue":
|
|
422
|
+
"onUpdate:modelValue": n.onTypeInput
|
|
324
423
|
}, {
|
|
325
|
-
label: c((
|
|
326
|
-
|
|
424
|
+
label: c((u) => [
|
|
425
|
+
k(e.$slots, "type", _(B(u)), void 0, !0)
|
|
327
426
|
]),
|
|
328
427
|
_: 3
|
|
329
428
|
}, 8, ["model-value", "possible-values", "disabled", "onUpdate:modelValue"])
|
|
330
429
|
]),
|
|
331
430
|
_: 3
|
|
332
431
|
}, 8, ["active", "text"])) : P("", !0),
|
|
333
|
-
|
|
432
|
+
b(w, A(e.$attrs, {
|
|
334
433
|
ref: "twinlist",
|
|
335
|
-
disabled:
|
|
434
|
+
disabled: n.selectionDisabled,
|
|
336
435
|
"show-search": t.mode === "manual" && t.showSearch,
|
|
337
|
-
"model-value":
|
|
436
|
+
"model-value": n.twinlistModelValue,
|
|
338
437
|
"possible-values": t.possibleValues,
|
|
339
438
|
compact: t.compact,
|
|
340
|
-
"onUpdate:modelValue":
|
|
439
|
+
"onUpdate:modelValue": n.onManualInput
|
|
341
440
|
}), {
|
|
342
|
-
option: c((
|
|
343
|
-
|
|
441
|
+
option: c((u) => [
|
|
442
|
+
k(e.$slots, "option", _(B(u)), void 0, !0)
|
|
344
443
|
]),
|
|
345
444
|
_: 3
|
|
346
445
|
}, 16, ["disabled", "show-search", "model-value", "possible-values", "compact", "onUpdate:modelValue"])
|
|
347
446
|
], 2);
|
|
348
447
|
}
|
|
349
|
-
const
|
|
448
|
+
const Ve = /* @__PURE__ */ U(we, [["render", ge], ["__scopeId", "data-v-a4487686"]]), Te = { class: "data-type-text" }, Se = /* @__PURE__ */ Y({
|
|
350
449
|
__name: "MultimodeTwinlistControl",
|
|
351
450
|
props: {
|
|
352
451
|
control: {},
|
|
@@ -363,138 +462,138 @@ const ye = /* @__PURE__ */ R(pe, [["render", he], ["__scopeId", "data-v-a4487686
|
|
|
363
462
|
showTypeFilter: { type: Boolean, default: !1 }
|
|
364
463
|
},
|
|
365
464
|
setup(e) {
|
|
366
|
-
const
|
|
465
|
+
const a = e;
|
|
367
466
|
let t = () => {
|
|
368
467
|
};
|
|
369
|
-
const
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
if (
|
|
376
|
-
if ("includedValues" in
|
|
377
|
-
const { includedValues:
|
|
378
|
-
if (!
|
|
468
|
+
const o = (l) => {
|
|
469
|
+
const r = te(a.control.data, l);
|
|
470
|
+
a.changeValue(r), t?.(r.manualFilter);
|
|
471
|
+
}, s = (l) => {
|
|
472
|
+
o({ selected: l });
|
|
473
|
+
}, n = (l) => {
|
|
474
|
+
if (l !== null)
|
|
475
|
+
if ("includedValues" in l) {
|
|
476
|
+
const { includedValues: r, excludedValues: d, includeUnknownValues: h } = l;
|
|
477
|
+
if (!r || !d)
|
|
379
478
|
return;
|
|
380
|
-
|
|
479
|
+
o({
|
|
381
480
|
manualFilter: {
|
|
382
|
-
manuallySelected:
|
|
383
|
-
manuallyDeselected:
|
|
384
|
-
includeUnknownColumns:
|
|
481
|
+
manuallySelected: r,
|
|
482
|
+
manuallyDeselected: d,
|
|
483
|
+
includeUnknownColumns: h
|
|
385
484
|
}
|
|
386
485
|
});
|
|
387
486
|
} else
|
|
388
|
-
|
|
389
|
-
},
|
|
390
|
-
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
}, C = (
|
|
398
|
-
|
|
399
|
-
}, { possibleValues:
|
|
400
|
-
|
|
401
|
-
),
|
|
402
|
-
data:
|
|
403
|
-
possibleValueIds:
|
|
404
|
-
() =>
|
|
487
|
+
o({ manualFilter: { manuallySelected: l } });
|
|
488
|
+
}, p = (l) => {
|
|
489
|
+
o({ patternFilter: { pattern: l } });
|
|
490
|
+
}, i = (l) => {
|
|
491
|
+
o({ mode: l.toUpperCase() });
|
|
492
|
+
}, v = (l, r) => {
|
|
493
|
+
o({ typeFilter: { selectedTypes: l, typeDisplays: r } });
|
|
494
|
+
}, x = (l) => {
|
|
495
|
+
o({ patternFilter: { isInverted: l } });
|
|
496
|
+
}, C = (l) => {
|
|
497
|
+
o({ patternFilter: { isCaseSensitive: l } });
|
|
498
|
+
}, { possibleValues: w } = ae(
|
|
499
|
+
L(a, "control")
|
|
500
|
+
), u = Z([]), { selectedAndDeselected: F, setCurrentManualFilter: O } = de({
|
|
501
|
+
data: y(() => a.control.data),
|
|
502
|
+
possibleValueIds: y(
|
|
503
|
+
() => w.value?.map(({ id: l }) => l) ?? null
|
|
405
504
|
)
|
|
406
505
|
});
|
|
407
|
-
t =
|
|
408
|
-
const
|
|
409
|
-
const { selected:
|
|
410
|
-
return
|
|
411
|
-
includedValues:
|
|
412
|
-
excludedValues:
|
|
413
|
-
includeUnknownValues:
|
|
414
|
-
} :
|
|
415
|
-
}),
|
|
416
|
-
() =>
|
|
417
|
-
),
|
|
418
|
-
(
|
|
506
|
+
t = O;
|
|
507
|
+
const R = y(() => {
|
|
508
|
+
const { selected: l, deselected: r } = F.value;
|
|
509
|
+
return a.showUnknownValues ? {
|
|
510
|
+
includedValues: l,
|
|
511
|
+
excludedValues: r,
|
|
512
|
+
includeUnknownValues: a.control.data.manualFilter.includeUnknownColumns
|
|
513
|
+
} : l;
|
|
514
|
+
}), q = y(
|
|
515
|
+
() => F.value.selected === null ? $(oe) : null
|
|
516
|
+
), E = (l) => typeof l > "u" ? {} : l.reduce(
|
|
517
|
+
(r, { id: d, text: h }) => ({ ...r, [d]: h }),
|
|
419
518
|
{}
|
|
420
|
-
),
|
|
421
|
-
const
|
|
422
|
-
if (!
|
|
519
|
+
), N = () => {
|
|
520
|
+
const l = a.control.data.typeFilter;
|
|
521
|
+
if (!l)
|
|
423
522
|
return [];
|
|
424
|
-
const
|
|
425
|
-
|
|
523
|
+
const r = l.selectedTypes, d = E(
|
|
524
|
+
l.typeDisplays
|
|
426
525
|
);
|
|
427
|
-
return
|
|
428
|
-
id:
|
|
429
|
-
text:
|
|
526
|
+
return r.map((h) => ({
|
|
527
|
+
id: h,
|
|
528
|
+
text: d[h] || h
|
|
430
529
|
}));
|
|
431
530
|
};
|
|
432
|
-
|
|
433
|
-
const
|
|
434
|
-
() => !!
|
|
435
|
-
), { excludedLabel: H, includedLabel: K } =
|
|
436
|
-
|
|
437
|
-
), W =
|
|
438
|
-
return (
|
|
531
|
+
u.value = N();
|
|
532
|
+
const j = y(
|
|
533
|
+
() => !!w.value?.[0]?.hasOwnProperty("type")
|
|
534
|
+
), { excludedLabel: H, includedLabel: K } = le(
|
|
535
|
+
L(a, "control")
|
|
536
|
+
), W = y(() => H ?? a.twinlistLeftLabel), G = y(() => K ?? a.twinlistRightLabel);
|
|
537
|
+
return (l, r) => (m(), g(V(Ve), A(l.$attrs, {
|
|
439
538
|
id: e.labelForId,
|
|
440
539
|
disabled: e.disabled,
|
|
441
540
|
"with-types": e.showTypeFilter,
|
|
442
541
|
"selected-types": e.control.data.typeFilter?.selectedTypes,
|
|
443
|
-
"additional-possible-types":
|
|
542
|
+
"additional-possible-types": u.value,
|
|
444
543
|
pattern: e.control.data.patternFilter.pattern,
|
|
445
544
|
mode: e.control.data.mode.toLowerCase(),
|
|
446
545
|
"case-sensitive-pattern": e.control.data.patternFilter.isCaseSensitive,
|
|
447
|
-
"empty-state-component":
|
|
546
|
+
"empty-state-component": q.value,
|
|
448
547
|
"inverse-pattern": e.control.data.patternFilter.isInverted,
|
|
449
|
-
"manual-selection":
|
|
548
|
+
"manual-selection": R.value,
|
|
450
549
|
"include-unknown-values": e.control.data.manualFilter.includeUnknownColumns,
|
|
451
550
|
"mode-label": "Selection mode",
|
|
452
|
-
"possible-values": w
|
|
551
|
+
"possible-values": V(w) ?? [],
|
|
453
552
|
size: e.twinlistSize,
|
|
454
553
|
"left-label": W.value,
|
|
455
554
|
"right-label": G.value,
|
|
456
555
|
"is-valid": e.isValid,
|
|
457
556
|
compact: "",
|
|
458
557
|
"show-resize-handle": "",
|
|
459
|
-
"onUpdate:selected":
|
|
460
|
-
"onUpdate:manualSelection":
|
|
461
|
-
"onUpdate:pattern":
|
|
462
|
-
"onUpdate:mode":
|
|
463
|
-
"onUpdate:selectedTypes":
|
|
464
|
-
"onUpdate:inversePattern":
|
|
558
|
+
"onUpdate:selected": s,
|
|
559
|
+
"onUpdate:manualSelection": n,
|
|
560
|
+
"onUpdate:pattern": p,
|
|
561
|
+
"onUpdate:mode": i,
|
|
562
|
+
"onUpdate:selectedTypes": v,
|
|
563
|
+
"onUpdate:inversePattern": x,
|
|
465
564
|
"onUpdate:caseSensitivePattern": C
|
|
466
|
-
}),
|
|
467
|
-
|
|
565
|
+
}), ee({ _: 2 }, [
|
|
566
|
+
j.value ? {
|
|
468
567
|
name: "option",
|
|
469
|
-
fn: c(({ slotItem:
|
|
568
|
+
fn: c(({ slotItem: d }) => [
|
|
470
569
|
T("div", {
|
|
471
|
-
class:
|
|
570
|
+
class: M(["data-type-entry", { invalid: d.invalid }])
|
|
472
571
|
}, [
|
|
473
|
-
|
|
474
|
-
"icon-name":
|
|
475
|
-
"icon-title":
|
|
572
|
+
b(V(z), {
|
|
573
|
+
"icon-name": d?.type?.id,
|
|
574
|
+
"icon-title": d?.type?.text,
|
|
476
575
|
size: "small"
|
|
477
576
|
}, null, 8, ["icon-name", "icon-title"]),
|
|
478
|
-
T("span", null,
|
|
577
|
+
T("span", null, I(d.text), 1)
|
|
479
578
|
], 2)
|
|
480
579
|
]),
|
|
481
580
|
key: "0"
|
|
482
581
|
} : void 0,
|
|
483
582
|
e.showTypeFilter ? {
|
|
484
583
|
name: "type",
|
|
485
|
-
fn: c(({ slotItem:
|
|
486
|
-
|
|
487
|
-
"icon-name":
|
|
488
|
-
"icon-title":
|
|
584
|
+
fn: c(({ slotItem: d }) => [
|
|
585
|
+
b(V(z), {
|
|
586
|
+
"icon-name": d.id,
|
|
587
|
+
"icon-title": d.text,
|
|
489
588
|
size: "small"
|
|
490
589
|
}, null, 8, ["icon-name", "icon-title"]),
|
|
491
|
-
T("span",
|
|
590
|
+
T("span", Te, I(d.text), 1)
|
|
492
591
|
]),
|
|
493
592
|
key: "1"
|
|
494
593
|
} : void 0
|
|
495
594
|
]), 1040, ["id", "disabled", "with-types", "selected-types", "additional-possible-types", "pattern", "mode", "case-sensitive-pattern", "empty-state-component", "inverse-pattern", "manual-selection", "include-unknown-values", "possible-values", "size", "left-label", "right-label", "is-valid"]));
|
|
496
595
|
}
|
|
497
|
-
}),
|
|
596
|
+
}), Be = /* @__PURE__ */ U(Se, [["__scopeId", "data-v-03e29ad9"]]);
|
|
498
597
|
export {
|
|
499
|
-
|
|
598
|
+
Be as default
|
|
500
599
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as v, watch as m } from "vue";
|
|
2
2
|
import { g as S, a as g } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import "./SectionHeading.
|
|
4
|
-
import "./TwinlistLoadingInfo-
|
|
3
|
+
import "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
4
|
+
import "./TwinlistLoadingInfo-osSNnYXw.js";
|
|
5
5
|
const w = ({
|
|
6
6
|
knownValuesSide: s,
|
|
7
7
|
possibleValueIds: l,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRef as x, watch as S, resolveComponent as p, createElementBlock as u, openBlock as h, normalizeStyle as y, normalizeClass as I, createElementVNode as m, createCommentVNode as g, mergeProps as C, withKeys as a, withModifiers as d, normalizeProps as v, guardReactiveProps as w, Fragment as V, renderList as k, createBlock as b, withCtx as D, renderSlot as H, resolveDynamicComponent as B, toDisplayString as K, createVNode as N } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { S as T } from "./StyledListItem-
|
|
2
|
+
import { X as L, _ as A } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
3
|
+
import { S as T } from "./StyledListItem-fZvZ3bHQ.js";
|
|
4
4
|
import { v as O } from "./v4-CKZ6klMF.js";
|
|
5
5
|
const z = (e, t) => {
|
|
6
6
|
let i, r = 0;
|
|
@@ -512,7 +512,7 @@ function j(e, t, i, r, l, s) {
|
|
|
512
512
|
])
|
|
513
513
|
], 6);
|
|
514
514
|
}
|
|
515
|
-
const
|
|
515
|
+
const G = /* @__PURE__ */ A(P, [["render", j], ["__scopeId", "data-v-4ee62d65"]]);
|
|
516
516
|
export {
|
|
517
|
-
|
|
517
|
+
G as M
|
|
518
518
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, createBlock as o, openBlock as t, mergeProps as l } from "vue";
|
|
2
|
-
import a from "./MultimodeTwinlistControl-
|
|
2
|
+
import a from "./MultimodeTwinlistControl-BD7SneIV.js";
|
|
3
3
|
const u = /* @__PURE__ */ n({
|
|
4
4
|
__name: "NameFilter",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, createBlock as n, openBlock as t, mergeProps as r } from "vue";
|
|
2
|
-
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-EOqEf4UB.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "NumberControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, computed as m, createBlock as V, openBlock as b, unref as x } from "vue";
|
|
2
|
-
import { u as y } from "./useBuiltinValidations-
|
|
3
|
-
import { N as E } from "./NumberInput-
|
|
2
|
+
import { u as y } from "./useBuiltinValidations-PBjYh_0a.js";
|
|
3
|
+
import { N as E } from "./NumberInput-By1qufZl.js";
|
|
4
4
|
const F = 1, h = 0.1, S = /* @__PURE__ */ N({
|
|
5
5
|
__name: "NumberControlBase",
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as h } from "./arrow-dropdown-BHK4j8GT.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { resolveComponent as f, createElementBlock as d, openBlock as m, normalizeClass as r, createElementVNode as u, createCommentVNode as V, withModifiers as n, createVNode as p } from "vue";
|
|
4
|
-
import { _ as c } from "./SectionHeading.
|
|
4
|
+
import { _ as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_4b640144_lang-ofebeuke.js";
|
|
5
5
|
const g = 200, v = 50, E = 0.1, I = 1, b = {
|
|
6
6
|
name: "NumberInput",
|
|
7
7
|
components: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, computed as i, createBlock as r, openBlock as p, unref as n } from "vue";
|
|
2
2
|
import { o as u } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { D as c } from "./Dropdown-
|
|
3
|
+
import { D as c } from "./Dropdown-Cjuv07DI.js";
|
|
4
4
|
const g = /* @__PURE__ */ s({
|
|
5
5
|
__name: "OneOfDropdown",
|
|
6
6
|
props: {
|