@knime/jsonforms 1.11.4 → 1.12.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 +18 -0
- package/dist/{AnyOfTwinlist-B8IWCQfI.js → AnyOfTwinlist-C2hopPFE.js} +1 -1
- package/dist/{Button-BIMifH4J.js → Button-a3DyR88M.js} +1 -1
- package/dist/{CheckboxControl-mUTfjUik.js → CheckboxControl-DoQCgnTf.js} +1 -1
- package/dist/{Checkboxes-C8MYjELb.js → Checkboxes-DNbu05C7.js} +1 -1
- package/dist/{CheckboxesControl-PnQ9Adbm.js → CheckboxesControl-DgwL4BAl.js} +3 -3
- package/dist/{ComboBoxControl-Bx9k_xcF.js → ComboBoxControl-DSSfSqIC.js} +5 -5
- package/dist/{DateControl-CFDyvByp.js → DateControl-DArS42tY.js} +1 -1
- package/dist/{DateTimeControl-6xLdTDKD.js → DateTimeControl-BuZ5D5EW.js} +2 -2
- package/dist/{DateTimeFormatInput-DN13KoIx.js → DateTimeFormatInput-BJepKEOT.js} +3 -3
- package/dist/DateTimeFormatPickerControl-YAKOrguY.js +43 -0
- package/dist/{DateTimeFormatPickerWithTypeControl-CK9zH_Pb.js → DateTimeFormatPickerWithTypeControl-CM2eu1Bq.js} +19 -23
- package/dist/{DateTimeInput-CDUSsfXW.js → DateTimeInput-B30lQ3sx.js} +6 -6
- package/dist/{Dropdown-VTgudgLJ.js → Dropdown-Cp5fC5vt.js} +5 -5
- package/dist/{DropdownControl-B8hshDBE.js → DropdownControl-DXtUnm7l.js} +2 -2
- package/dist/{HorizontalLayout-MsL7PmH3.js → HorizontalLayout-BTxnoo0O.js} +1 -1
- package/dist/{InputField-fNsY8a05.js → InputField-B2bBpIrm.js} +1 -1
- package/dist/{IntegerControl-ZSV_1jks.js → IntegerControl-CamhgT4b.js} +1 -1
- package/dist/{IntervalControl-BedfdbyZ.js → IntervalControl-Dhz8aY9W.js} +134 -135
- package/dist/{LoadingDropdown-DRC0PUle.js → LoadingDropdown-DFLGXxJe.js} +3 -3
- package/dist/ManualTwinlistControl-C1Bk354m.js +85 -0
- package/dist/{MultiSelectListBoxControl-lf35kyRi.js → MultiSelectListBoxControl-DiSPf1p7.js} +2 -2
- package/dist/MultimodeTwinlistControl-DnpmvhFB.js +469 -0
- package/dist/MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_ca157254_lang-DjGJNwBV.js +65 -0
- package/dist/{MultiselectListBox-DXD5CLCh.js → MultiselectListBox-DMZvKZT2.js} +2 -2
- package/dist/{NameFilter-ClFwXeRF.js → NameFilter-qYooMIRr.js} +1 -1
- package/dist/{NumberControl-Cr7IXjEm.js → NumberControl-mAvpRa8P.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-ILIV8gqr.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DsYiLVc0.js} +2 -2
- package/dist/{NumberInput-A5_w5ol4.js → NumberInput-DfYpYs35.js} +1 -1
- package/dist/{OneOfDropdown-DlhjZGFa.js → OneOfDropdown-Dx9oWy6Y.js} +1 -1
- package/dist/{RadioControl-ClX2lEwk.js → RadioControl-C0sZejgk.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Bv6jDZzK.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BBZFZcBX.js} +3 -3
- package/dist/{RichTextControl-KJQSmoKv.js → RichTextControl-ikOmp5Zc.js} +4 -4
- package/dist/{SectionHeading-D1h8Hr3u.js → SectionHeading-DoKeahJG.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js} +1310 -1299
- package/dist/{SectionLayout-CVyuhnR5.js → SectionLayout-DqhrTk7G.js} +13 -13
- package/dist/SettingsSubPanel-BsP2TPpl.js +5 -0
- package/dist/{SettingsSubPanelLayout-DGhJS__O.js → SettingsSubPanelLayout-QgTIOWrJ.js} +6 -6
- package/dist/{SimpleButtonControl-CiUUyw8s.js → SimpleButtonControl-DWOwphdQ.js} +2 -2
- package/dist/{SimpleTwinlistControl-D22uc8-j.js → SimpleTwinlistControl-Bm8f15KT.js} +2 -2
- package/dist/SingleSelectControl-DzoiFSGp.js +55 -0
- package/dist/{SingleSelectListBoxControl-mafA0Or_.js → SingleSelectListBoxControl-COshImPF.js} +24 -23
- package/dist/{SortListControl-CjaScQzv.js → SortListControl-D5jBOA2x.js} +54 -50
- package/dist/{StyledListItem-BoF85YFQ.js → StyledListItem-DCmVSIus.js} +1 -1
- package/dist/{TextAreaControl-C5eo1xkd.js → TextAreaControl-ijQXrkd5.js} +1 -1
- package/dist/{TextControl-CcC2bMdB.js → TextControl-Di5u3kig.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-JuMgL8lA.js → TextControl.vue_vue_type_script_setup_true_lang-DWUPaWoR.js} +12 -16
- package/dist/{TimeControl-CZIiQ1Iq.js → TimeControl-oa9oA0c7.js} +2 -2
- package/dist/{TwinlistControlBase-mEUGRSXm.js → TwinlistControlBase-Dm8KSJE0.js} +3 -3
- package/dist/{TwinlistLoadingInfo-D6z3t2c9.js → TwinlistLoadingInfo-Dcbz2hUN.js} +12 -12
- package/dist/{TypedStringFilter-LQdmf8v7.js → TypedStringFilter-DOox0S1z.js} +1 -1
- package/dist/{ValueSwitch-D6Wu1NDa.js → ValueSwitch-Ba0d4Jda.js} +1 -1
- package/dist/{ValueSwitchControl-BbarTqJt.js → ValueSwitchControl-BFY2YwjA.js} +1 -1
- package/dist/{VerticalLayout-KMe-3TA0.js → VerticalLayout-CdmecqY1.js} +5 -5
- package/dist/{VerticalLayoutBase-Bd2TMmEZ.js → VerticalLayoutBase-2Al6mtWQ.js} +1 -1
- package/dist/{ZonedDateTimeControl-Bs_bnndF.js → ZonedDateTimeControl-xwK_O0Ue.js} +4 -4
- package/dist/{_baseEach-CABMvL7j.js → _baseEach-kS6aH7yJ.js} +2 -2
- package/dist/{_baseIteratee-DItkztCj.js → _baseIteratee-CcwzbMbu.js} +13 -13
- package/dist/{_getTag-4mJMm5F3.js → _getTag-DpK8q53u.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +36 -34
- package/dist/{localTimeUtils-DWYnLAB-.js → localTimeUtils-4g4u5t7X.js} +1 -1
- package/dist/{magic-string.es-Iz0jmxfz.js → magic-string.es-CWjITDzi.js} +1 -1
- package/dist/src/JsonFormsDialog.vue.d.ts +7 -2
- package/dist/src/constants/inputFormats.d.ts +1 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +2 -0
- package/dist/src/higherOrderComponents/control/types.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/util.d.ts +6 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/renderers/defaultRenderers.d.ts +25 -0
- package/dist/src/renderers/simpleButtonRenderer.d.ts +12 -0
- package/dist/src/renderers/sortListRenderer.d.ts +12 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +2 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +8 -4
- package/dist/src/types/provided.d.ts +10 -1
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +8 -0
- package/dist/src/uiComponents/composables/useBuiltinValidations.d.ts +3 -6
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +1 -1
- package/dist/src/uiComponents/composables/usePossibleValues.d.ts +2 -2
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +17 -2
- package/dist/src/uiComponents/index.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +8 -0
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +3 -1
- package/dist/{svgWithTitle-CJzZ_AF0.js → svgWithTitle-DGBkWQrO.js} +1 -1
- package/dist/testUtils/component.d.ts +20 -4
- package/dist/testing.js +3 -3
- package/dist/toString-ByDUn5bZ.js +25 -0
- package/dist/useBuiltinValidations-ChTFREt7.js +73 -0
- package/dist/usePossibleValues-BB4he0jT.js +17 -0
- package/package.json +3 -3
- package/dist/DateTimeFormatPickerControl-BEnoRr2q.js +0 -47
- package/dist/MultimodeTwinlistControl-CwPCFa9I.js +0 -526
- package/dist/SettingsSubPanel-CjuhpEr4.js +0 -5
- package/dist/SingleSelectControl-LrEUX41i.js +0 -58
- package/dist/toString-DzEZi8fD.js +0 -25
- package/dist/useBuiltinValidations-hN9BsKJH.js +0 -52
- package/dist/usePossibleValues-DY3q9YuR.js +0 -26
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
import { openBlock as f, createElementBlock as k, createElementVNode as H, toRef as P, resolveComponent as y, normalizeClass as W, createBlock as I, withCtx as V, createVNode as g, createCommentVNode as M, mergeProps as B, ref as L, watch as U, defineComponent as G, computed as h, markRaw as J, unref as _ } from "vue";
|
|
2
|
-
import { g as x, a as K, m as Q } from "./index-Blg1O3Fz.js";
|
|
3
|
-
import { u as X, a as Y } from "./usePossibleValues-DY3q9YuR.js";
|
|
4
|
-
import { S as Z, a as $, u as ee, T as te } from "./TwinlistLoadingInfo-D6z3t2c9.js";
|
|
5
|
-
import { f as F } from "./useSearch-hpyYQ_6y.js";
|
|
6
|
-
import { C as le } from "./Checkboxes-C8MYjELb.js";
|
|
7
|
-
import { v as ae, _ as z } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
|
|
8
|
-
import { V as ne } from "./ValueSwitch-D6Wu1NDa.js";
|
|
9
|
-
const se = {
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
-
fill: "none",
|
|
12
|
-
stroke: "#000",
|
|
13
|
-
"stroke-linejoin": "round",
|
|
14
|
-
viewBox: "0 0 32 32"
|
|
15
|
-
};
|
|
16
|
-
function ie(e, a) {
|
|
17
|
-
return f(), k("svg", se, a[0] || (a[0] = [
|
|
18
|
-
H("path", { d: "m13.31 27.81 5.11-3.19v-9.15L28.95 4.19H3.05l10.26 11.28z" }, null, -1)
|
|
19
|
-
]));
|
|
20
|
-
}
|
|
21
|
-
const oe = { render: ie }, de = {
|
|
22
|
-
manual: "Manual",
|
|
23
|
-
wildcard: "Wildcard",
|
|
24
|
-
regex: "Regex",
|
|
25
|
-
type: "Type"
|
|
26
|
-
}, ue = {
|
|
27
|
-
name: "MultiModeTwinlist",
|
|
28
|
-
components: {
|
|
29
|
-
Label: ae,
|
|
30
|
-
FilterIcon: oe,
|
|
31
|
-
SearchInput: Z,
|
|
32
|
-
Checkboxes: le,
|
|
33
|
-
ValueSwitch: ne,
|
|
34
|
-
Twinlist: $
|
|
35
|
-
},
|
|
36
|
-
props: {
|
|
37
|
-
/**
|
|
38
|
-
* initial values
|
|
39
|
-
*/
|
|
40
|
-
mode: {
|
|
41
|
-
type: String,
|
|
42
|
-
required: !1,
|
|
43
|
-
default: "manual"
|
|
44
|
-
},
|
|
45
|
-
manualSelection: {
|
|
46
|
-
type: [Object, Array, null],
|
|
47
|
-
default: () => []
|
|
48
|
-
},
|
|
49
|
-
pattern: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: ""
|
|
52
|
-
},
|
|
53
|
-
caseSensitivePattern: {
|
|
54
|
-
default: !1,
|
|
55
|
-
type: Boolean
|
|
56
|
-
},
|
|
57
|
-
inversePattern: {
|
|
58
|
-
default: !1,
|
|
59
|
-
type: Boolean
|
|
60
|
-
},
|
|
61
|
-
withTypes: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: !0
|
|
64
|
-
},
|
|
65
|
-
selectedTypes: {
|
|
66
|
-
type: Array,
|
|
67
|
-
default: () => []
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* Hiding and disabling
|
|
71
|
-
*/
|
|
72
|
-
showMode: {
|
|
73
|
-
default: !0,
|
|
74
|
-
type: Boolean
|
|
75
|
-
},
|
|
76
|
-
// enable search in case of manual selection
|
|
77
|
-
showSearch: {
|
|
78
|
-
default: !0,
|
|
79
|
-
type: Boolean
|
|
80
|
-
},
|
|
81
|
-
disabled: {
|
|
82
|
-
default: !1,
|
|
83
|
-
type: Boolean
|
|
84
|
-
},
|
|
85
|
-
/**
|
|
86
|
-
* Labels
|
|
87
|
-
*/
|
|
88
|
-
withModeLabel: {
|
|
89
|
-
default: !1,
|
|
90
|
-
type: Boolean
|
|
91
|
-
},
|
|
92
|
-
modeLabel: {
|
|
93
|
-
type: String,
|
|
94
|
-
required: !1,
|
|
95
|
-
default: "Selection mode"
|
|
96
|
-
},
|
|
97
|
-
withPatternLabel: {
|
|
98
|
-
default: !1,
|
|
99
|
-
type: Boolean
|
|
100
|
-
},
|
|
101
|
-
patternLabel: {
|
|
102
|
-
type: String,
|
|
103
|
-
required: !1,
|
|
104
|
-
default: "Pattern"
|
|
105
|
-
},
|
|
106
|
-
withTypesLabel: {
|
|
107
|
-
default: !1,
|
|
108
|
-
type: Boolean
|
|
109
|
-
},
|
|
110
|
-
typesLabel: {
|
|
111
|
-
type: String,
|
|
112
|
-
required: !1,
|
|
113
|
-
default: "Selected types"
|
|
114
|
-
},
|
|
115
|
-
/**
|
|
116
|
-
* List of possible values. Each item must have an `id` and a `text` property
|
|
117
|
-
* @example
|
|
118
|
-
* [{
|
|
119
|
-
* id: 'pdf',
|
|
120
|
-
* text: 'PDF'
|
|
121
|
-
* }, {
|
|
122
|
-
* id: 'XLS',
|
|
123
|
-
* text: 'Excel',
|
|
124
|
-
* }]
|
|
125
|
-
* For type selection, additionally, an element has to have a property `type` wich itself has properties
|
|
126
|
-
* `id` and `text`, e.g.
|
|
127
|
-
* [{
|
|
128
|
-
* id: 'pdf',
|
|
129
|
-
* text: 'PDF',
|
|
130
|
-
* type: {
|
|
131
|
-
* id: 'StringValue',
|
|
132
|
-
* text: 'String'
|
|
133
|
-
* }]
|
|
134
|
-
*/
|
|
135
|
-
possibleValues: {
|
|
136
|
-
type: Array,
|
|
137
|
-
default: () => []
|
|
138
|
-
},
|
|
139
|
-
/**
|
|
140
|
-
* List of possible types which should be selectable but are not necessarily present in the possible values.
|
|
141
|
-
*/
|
|
142
|
-
additionalPossibleTypes: {
|
|
143
|
-
type: Array,
|
|
144
|
-
default: () => []
|
|
145
|
-
},
|
|
146
|
-
compact: {
|
|
147
|
-
type: Boolean,
|
|
148
|
-
default: !1
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
emits: [
|
|
152
|
-
// Prop updates
|
|
153
|
-
"update:manualSelection",
|
|
154
|
-
"update:pattern",
|
|
155
|
-
"update:selectedTypes",
|
|
156
|
-
"update:mode",
|
|
157
|
-
"update:caseSensitivePattern",
|
|
158
|
-
"update:inversePattern",
|
|
159
|
-
// Non-prop update
|
|
160
|
-
"update:selected"
|
|
161
|
-
],
|
|
162
|
-
setup(e) {
|
|
163
|
-
const { includedValues: a } = ee(
|
|
164
|
-
P(e, "manualSelection")
|
|
165
|
-
);
|
|
166
|
-
return { manuallySelected: a };
|
|
167
|
-
},
|
|
168
|
-
data() {
|
|
169
|
-
return {
|
|
170
|
-
invalidPossibleValueIds: /* @__PURE__ */ new Set()
|
|
171
|
-
};
|
|
172
|
-
},
|
|
173
|
-
computed: {
|
|
174
|
-
possibleValueIds() {
|
|
175
|
-
return this.possibleValues.map(({ id: e }) => e);
|
|
176
|
-
},
|
|
177
|
-
possibleTypes() {
|
|
178
|
-
const e = this.possibleValues.map(({ type: i }) => i).filter(Boolean), a = e.map((i) => i.id);
|
|
179
|
-
return [...this.additionalPossibleTypes.filter(
|
|
180
|
-
(i) => i && !a.includes(i.id)
|
|
181
|
-
), ...e].filter((i) => i && i.id !== "").filter(
|
|
182
|
-
// remove duplicates
|
|
183
|
-
(i, s, d) => s === d.findIndex((u) => u.id === i.id && u.text === i.text)
|
|
184
|
-
);
|
|
185
|
-
},
|
|
186
|
-
matchingValueIds() {
|
|
187
|
-
return this.possibleValues.filter((e) => this.itemMatches(e)).map((e) => e.id);
|
|
188
|
-
},
|
|
189
|
-
twinlistModelValue() {
|
|
190
|
-
return this.mode === "manual" ? this.manualSelection : this.matchingValueIds;
|
|
191
|
-
},
|
|
192
|
-
selectedValues() {
|
|
193
|
-
return this.mode === "manual" ? this.manuallySelected : this.matchingValueIds;
|
|
194
|
-
},
|
|
195
|
-
selectionDisabled() {
|
|
196
|
-
return this.disabled || this.mode !== "manual";
|
|
197
|
-
},
|
|
198
|
-
normalizedSearchTerm() {
|
|
199
|
-
return this.mode === "manual" ? null : F[this.mode].normalize(
|
|
200
|
-
this.mode === "type" ? this.selectedTypes : this.pattern,
|
|
201
|
-
this.caseSensitivePattern
|
|
202
|
-
);
|
|
203
|
-
},
|
|
204
|
-
possibleModes() {
|
|
205
|
-
let e = Object.entries(de).map(([a, t]) => ({ id: a, text: t }));
|
|
206
|
-
return this.withTypes || (e = e.filter((a) => a.id !== "type")), e;
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
watch: {
|
|
210
|
-
selectedValues: {
|
|
211
|
-
immediate: !0,
|
|
212
|
-
handler(e, a) {
|
|
213
|
-
!a || e === null || (e.length !== a.length || a.some((t, n) => t !== e[n])) && this.$emit("update:selected", this.selectedValues);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
methods: {
|
|
218
|
-
onManualInput(e) {
|
|
219
|
-
this.mode === "manual" && this.$emit("update:manualSelection", e);
|
|
220
|
-
},
|
|
221
|
-
onPatternInput(e) {
|
|
222
|
-
this.$emit("update:pattern", e);
|
|
223
|
-
},
|
|
224
|
-
onTypeInput(e) {
|
|
225
|
-
this.$emit("update:selectedTypes", e, this.possibleTypes);
|
|
226
|
-
},
|
|
227
|
-
onModeChange(e) {
|
|
228
|
-
this.$emit("update:mode", e);
|
|
229
|
-
},
|
|
230
|
-
onToggleCaseSensitivePattern(e) {
|
|
231
|
-
this.$emit("update:caseSensitivePattern", e);
|
|
232
|
-
},
|
|
233
|
-
onToggleInversePattern(e) {
|
|
234
|
-
this.$emit("update:inversePattern", e);
|
|
235
|
-
},
|
|
236
|
-
validate() {
|
|
237
|
-
return this.$refs.twinlist.validate();
|
|
238
|
-
},
|
|
239
|
-
hasSelection() {
|
|
240
|
-
var e;
|
|
241
|
-
return !!((e = this.selectedValues) != null && e.length);
|
|
242
|
-
},
|
|
243
|
-
itemMatches(e) {
|
|
244
|
-
var t;
|
|
245
|
-
return F[this.mode].test(
|
|
246
|
-
this.mode === "type" ? (t = e.type) == null ? void 0 : t.id : e.text,
|
|
247
|
-
this.normalizedSearchTerm,
|
|
248
|
-
this.caseSensitivePattern,
|
|
249
|
-
this.inversePattern
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
function re(e, a, t, n, i, s) {
|
|
255
|
-
const d = y("ValueSwitch"), u = y("Label"), b = y("FilterIcon"), w = y("SearchInput"), v = y("Checkboxes"), p = y("Twinlist");
|
|
256
|
-
return f(), k("div", {
|
|
257
|
-
class: W(["multi-mode-twinlist", { disabled: t.disabled }])
|
|
258
|
-
}, [
|
|
259
|
-
t.showMode ? (f(), I(u, {
|
|
260
|
-
key: 0,
|
|
261
|
-
active: t.withModeLabel,
|
|
262
|
-
text: t.modeLabel,
|
|
263
|
-
class: "label"
|
|
264
|
-
}, {
|
|
265
|
-
default: V(({ labelForId: r }) => [
|
|
266
|
-
g(d, {
|
|
267
|
-
id: r,
|
|
268
|
-
ref: "mode",
|
|
269
|
-
compact: t.compact,
|
|
270
|
-
"model-value": t.mode,
|
|
271
|
-
disabled: t.disabled,
|
|
272
|
-
"possible-values": s.possibleModes,
|
|
273
|
-
"onUpdate:modelValue": s.onModeChange
|
|
274
|
-
}, null, 8, ["id", "compact", "model-value", "disabled", "possible-values", "onUpdate:modelValue"])
|
|
275
|
-
]),
|
|
276
|
-
_: 1
|
|
277
|
-
}, 8, ["active", "text"])) : M("", !0),
|
|
278
|
-
t.mode === "regex" || t.mode === "wildcard" ? (f(), I(u, {
|
|
279
|
-
key: 1,
|
|
280
|
-
active: t.withPatternLabel,
|
|
281
|
-
text: t.patternLabel,
|
|
282
|
-
class: "label"
|
|
283
|
-
}, {
|
|
284
|
-
default: V(({ labelForId: r }) => [
|
|
285
|
-
g(w, {
|
|
286
|
-
id: r,
|
|
287
|
-
ref: "search",
|
|
288
|
-
"model-value": t.pattern,
|
|
289
|
-
label: t.patternLabel,
|
|
290
|
-
"initial-case-sensitive-search": t.caseSensitivePattern,
|
|
291
|
-
"initial-inverse-search": t.inversePattern,
|
|
292
|
-
placeholder: "Pattern",
|
|
293
|
-
"show-case-sensitive-search-button": "",
|
|
294
|
-
"show-inverse-search-button": "",
|
|
295
|
-
disabled: t.disabled,
|
|
296
|
-
tooltips: {
|
|
297
|
-
inverseSearch: "Move matching to other side"
|
|
298
|
-
},
|
|
299
|
-
compact: t.compact,
|
|
300
|
-
"onUpdate:modelValue": s.onPatternInput,
|
|
301
|
-
onToggleCaseSensitiveSearch: s.onToggleCaseSensitivePattern,
|
|
302
|
-
onToggleInverseSearch: s.onToggleInversePattern
|
|
303
|
-
}, {
|
|
304
|
-
icon: V(() => [
|
|
305
|
-
g(b)
|
|
306
|
-
]),
|
|
307
|
-
_: 2
|
|
308
|
-
}, 1032, ["id", "model-value", "label", "initial-case-sensitive-search", "initial-inverse-search", "disabled", "compact", "onUpdate:modelValue", "onToggleCaseSensitiveSearch", "onToggleInverseSearch"])
|
|
309
|
-
]),
|
|
310
|
-
_: 1
|
|
311
|
-
}, 8, ["active", "text"])) : M("", !0),
|
|
312
|
-
t.mode === "type" && s.possibleTypes.length > 0 ? (f(), I(u, {
|
|
313
|
-
key: 2,
|
|
314
|
-
active: t.withTypesLabel,
|
|
315
|
-
text: t.typesLabel,
|
|
316
|
-
class: "label"
|
|
317
|
-
}, {
|
|
318
|
-
default: V(() => [
|
|
319
|
-
g(v, {
|
|
320
|
-
"model-value": t.selectedTypes,
|
|
321
|
-
"possible-values": s.possibleTypes,
|
|
322
|
-
disabled: t.disabled,
|
|
323
|
-
"onUpdate:modelValue": s.onTypeInput
|
|
324
|
-
}, null, 8, ["model-value", "possible-values", "disabled", "onUpdate:modelValue"])
|
|
325
|
-
]),
|
|
326
|
-
_: 1
|
|
327
|
-
}, 8, ["active", "text"])) : M("", !0),
|
|
328
|
-
g(p, B(e.$attrs, {
|
|
329
|
-
ref: "twinlist",
|
|
330
|
-
disabled: s.selectionDisabled,
|
|
331
|
-
"show-search": t.mode === "manual" && t.showSearch,
|
|
332
|
-
"model-value": s.twinlistModelValue,
|
|
333
|
-
"possible-values": t.possibleValues,
|
|
334
|
-
compact: t.compact,
|
|
335
|
-
"onUpdate:modelValue": s.onManualInput
|
|
336
|
-
}), null, 16, ["disabled", "show-search", "model-value", "possible-values", "compact", "onUpdate:modelValue"])
|
|
337
|
-
], 2);
|
|
338
|
-
}
|
|
339
|
-
const ce = /* @__PURE__ */ z(ue, [["render", re], ["__scopeId", "data-v-e5a6658e"]]), pe = ({
|
|
340
|
-
knownValuesSide: e,
|
|
341
|
-
possibleValueIds: a,
|
|
342
|
-
unknownValuesSide: t
|
|
343
|
-
}) => {
|
|
344
|
-
const n = new Set(e.previous), i = new Set(a), s = (d) => x(d, i);
|
|
345
|
-
t.setNext([
|
|
346
|
-
...s(t.previous),
|
|
347
|
-
...x(a, n)
|
|
348
|
-
]), e.setNext([
|
|
349
|
-
...s(e.previous),
|
|
350
|
-
...K(a, n)
|
|
351
|
-
]);
|
|
352
|
-
}, me = ({
|
|
353
|
-
data: e,
|
|
354
|
-
possibleValueIds: a
|
|
355
|
-
}) => {
|
|
356
|
-
const t = L({
|
|
357
|
-
selected: null,
|
|
358
|
-
deselected: null
|
|
359
|
-
}), n = L(null), i = (d) => {
|
|
360
|
-
n.value = d;
|
|
361
|
-
}, s = () => {
|
|
362
|
-
if (!n.value || !a.value)
|
|
363
|
-
return;
|
|
364
|
-
let d, u;
|
|
365
|
-
const { manuallyDeselected: b, manuallySelected: w, includeUnknownColumns: v } = n.value, p = {
|
|
366
|
-
previous: b,
|
|
367
|
-
setNext: (S) => {
|
|
368
|
-
d = S;
|
|
369
|
-
}
|
|
370
|
-
}, r = {
|
|
371
|
-
previous: w,
|
|
372
|
-
setNext: (S) => {
|
|
373
|
-
u = S;
|
|
374
|
-
}
|
|
375
|
-
}, T = v ? p : r, C = v ? r : p;
|
|
376
|
-
pe({
|
|
377
|
-
possibleValueIds: a.value,
|
|
378
|
-
knownValuesSide: T,
|
|
379
|
-
unknownValuesSide: C
|
|
380
|
-
}), t.value = {
|
|
381
|
-
selected: u,
|
|
382
|
-
deselected: d
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
return U(
|
|
386
|
-
() => e.value.manualFilter,
|
|
387
|
-
(d) => {
|
|
388
|
-
Object.is(n.value, d) ? t.value = {
|
|
389
|
-
selected: d.manuallySelected,
|
|
390
|
-
deselected: d.manuallyDeselected
|
|
391
|
-
} : (n.value = d, s());
|
|
392
|
-
},
|
|
393
|
-
{ immediate: !0 }
|
|
394
|
-
), U(() => a.value, s, {
|
|
395
|
-
immediate: !0
|
|
396
|
-
}), { selectedAndDeselected: t, setCurrentManualFilter: i };
|
|
397
|
-
}, he = /* @__PURE__ */ G({
|
|
398
|
-
__name: "MultimodeTwinlistControl",
|
|
399
|
-
props: {
|
|
400
|
-
control: {},
|
|
401
|
-
handleChange: {},
|
|
402
|
-
changeValue: {},
|
|
403
|
-
disabled: { type: Boolean },
|
|
404
|
-
isValid: { type: Boolean },
|
|
405
|
-
onRegisterValidation: {},
|
|
406
|
-
labelForId: {},
|
|
407
|
-
twinlistSize: { default: 10 },
|
|
408
|
-
twinlistLeftLabel: { default: "Excludes" },
|
|
409
|
-
showUnknownValues: { type: Boolean, default: !1 },
|
|
410
|
-
twinlistRightLabel: { default: "Includes" }
|
|
411
|
-
},
|
|
412
|
-
setup(e) {
|
|
413
|
-
const a = e;
|
|
414
|
-
let t;
|
|
415
|
-
const n = (l) => {
|
|
416
|
-
const o = Q(a.control.data, l);
|
|
417
|
-
a.changeValue(o), t == null || t(o.manualFilter);
|
|
418
|
-
}, i = (l) => {
|
|
419
|
-
n({ selected: l });
|
|
420
|
-
}, s = (l) => {
|
|
421
|
-
if (l !== null)
|
|
422
|
-
if ("includedValues" in l) {
|
|
423
|
-
const { includedValues: o, excludedValues: c, includeUnknownValues: m } = l;
|
|
424
|
-
if (!o || !c)
|
|
425
|
-
return;
|
|
426
|
-
n({
|
|
427
|
-
manualFilter: {
|
|
428
|
-
manuallySelected: o,
|
|
429
|
-
manuallyDeselected: c,
|
|
430
|
-
includeUnknownColumns: m
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
} else
|
|
434
|
-
n({ manualFilter: { manuallySelected: l } });
|
|
435
|
-
}, d = (l) => {
|
|
436
|
-
n({ patternFilter: { pattern: l } });
|
|
437
|
-
}, u = (l) => {
|
|
438
|
-
n({ mode: l.toUpperCase() });
|
|
439
|
-
}, b = (l, o) => {
|
|
440
|
-
n({ typeFilter: { selectedTypes: l, typeDisplays: o } });
|
|
441
|
-
}, w = (l) => {
|
|
442
|
-
n({ patternFilter: { isInverted: l } });
|
|
443
|
-
}, v = (l) => {
|
|
444
|
-
n({ patternFilter: { isCaseSensitive: l } });
|
|
445
|
-
}, { possibleValues: p } = X(
|
|
446
|
-
P(a, "control")
|
|
447
|
-
), r = L([]), { selectedAndDeselected: T, setCurrentManualFilter: C } = me({
|
|
448
|
-
data: h(() => a.control.data),
|
|
449
|
-
possibleValueIds: h(
|
|
450
|
-
() => {
|
|
451
|
-
var l;
|
|
452
|
-
return ((l = p.value) == null ? void 0 : l.map(({ id: o }) => o)) ?? null;
|
|
453
|
-
}
|
|
454
|
-
)
|
|
455
|
-
});
|
|
456
|
-
t = C;
|
|
457
|
-
const S = h(() => {
|
|
458
|
-
const { selected: l, deselected: o } = T.value;
|
|
459
|
-
return a.showUnknownValues ? {
|
|
460
|
-
includedValues: l,
|
|
461
|
-
excludedValues: o,
|
|
462
|
-
includeUnknownValues: a.control.data.manualFilter.includeUnknownColumns
|
|
463
|
-
} : l;
|
|
464
|
-
}), D = h(
|
|
465
|
-
() => T.value.selected === null ? J(te) : null
|
|
466
|
-
), N = (l) => typeof l > "u" ? {} : l.reduce(
|
|
467
|
-
(o, { id: c, text: m }) => ({ ...o, [c]: m }),
|
|
468
|
-
{}
|
|
469
|
-
), A = () => {
|
|
470
|
-
const l = a.control.data.typeFilter;
|
|
471
|
-
if (!l)
|
|
472
|
-
return [];
|
|
473
|
-
const o = l.selectedTypes, c = N(
|
|
474
|
-
l.typeDisplays
|
|
475
|
-
);
|
|
476
|
-
return o.map((m) => ({
|
|
477
|
-
id: m,
|
|
478
|
-
text: c[m] || m
|
|
479
|
-
}));
|
|
480
|
-
};
|
|
481
|
-
r.value = A();
|
|
482
|
-
const R = h(
|
|
483
|
-
() => {
|
|
484
|
-
var l, o;
|
|
485
|
-
return !!((o = (l = p.value) == null ? void 0 : l[0]) != null && o.hasOwnProperty("type"));
|
|
486
|
-
}
|
|
487
|
-
), { excludedLabel: j, includedLabel: q } = Y(
|
|
488
|
-
P(a, "control")
|
|
489
|
-
), E = h(() => j ?? a.twinlistLeftLabel), O = h(() => q ?? a.twinlistRightLabel);
|
|
490
|
-
return (l, o) => {
|
|
491
|
-
var c;
|
|
492
|
-
return f(), I(_(ce), B(l.$attrs, {
|
|
493
|
-
id: l.labelForId,
|
|
494
|
-
disabled: l.disabled,
|
|
495
|
-
"with-types": R.value,
|
|
496
|
-
"selected-types": (c = l.control.data.typeFilter) == null ? void 0 : c.selectedTypes,
|
|
497
|
-
"additional-possible-types": r.value,
|
|
498
|
-
pattern: l.control.data.patternFilter.pattern,
|
|
499
|
-
mode: l.control.data.mode.toLowerCase(),
|
|
500
|
-
"case-sensitive-pattern": l.control.data.patternFilter.isCaseSensitive,
|
|
501
|
-
"empty-state-component": D.value,
|
|
502
|
-
"inverse-pattern": l.control.data.patternFilter.isInverted,
|
|
503
|
-
"manual-selection": S.value,
|
|
504
|
-
"include-unknown-values": l.control.data.manualFilter.includeUnknownColumns,
|
|
505
|
-
"mode-label": "Selection mode",
|
|
506
|
-
"possible-values": _(p) ?? [],
|
|
507
|
-
size: l.twinlistSize,
|
|
508
|
-
"left-label": E.value,
|
|
509
|
-
"right-label": O.value,
|
|
510
|
-
"is-valid": l.isValid,
|
|
511
|
-
compact: "",
|
|
512
|
-
"show-resize-handle": "",
|
|
513
|
-
"onUpdate:selected": i,
|
|
514
|
-
"onUpdate:manualSelection": s,
|
|
515
|
-
"onUpdate:pattern": d,
|
|
516
|
-
"onUpdate:mode": u,
|
|
517
|
-
"onUpdate:selectedTypes": b,
|
|
518
|
-
"onUpdate:inversePattern": w,
|
|
519
|
-
"onUpdate:caseSensitivePattern": v
|
|
520
|
-
}), null, 16, ["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"]);
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
}), Ve = /* @__PURE__ */ z(he, [["__scopeId", "data-v-52473411"]]);
|
|
524
|
-
export {
|
|
525
|
-
Ve as default
|
|
526
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, computed as r, openBlock as I, createBlock as y } from "vue";
|
|
2
|
-
import { u as F } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
|
|
3
|
-
import { L as P } from "./LoadingDropdown-DRC0PUle.js";
|
|
4
|
-
const i = "__special__", a = "__regular__", B = /* @__PURE__ */ v({
|
|
5
|
-
__name: "SingleSelectControl",
|
|
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(u) {
|
|
16
|
-
const t = u, d = r(
|
|
17
|
-
() => t.control.uischema.options.choicesProvider
|
|
18
|
-
), p = r(
|
|
19
|
-
() => t.control.uischema.options.specialChoices
|
|
20
|
-
), n = F(
|
|
21
|
-
d,
|
|
22
|
-
null
|
|
23
|
-
), l = (e) => `${i}${e}`, c = (e) => `${a}${e}`, h = ({
|
|
24
|
-
id: e,
|
|
25
|
-
text: o
|
|
26
|
-
}) => ({
|
|
27
|
-
id: l(e),
|
|
28
|
-
text: o,
|
|
29
|
-
isSpecial: !0
|
|
30
|
-
}), m = ({
|
|
31
|
-
id: e,
|
|
32
|
-
text: o
|
|
33
|
-
}) => ({
|
|
34
|
-
id: c(e),
|
|
35
|
-
text: o
|
|
36
|
-
}), f = r(() => n.value === null ? null : p.value.map(h).concat(n.value.map(m))), C = (e) => {
|
|
37
|
-
if (!e.startsWith(a) && !e.startsWith(i))
|
|
38
|
-
throw new Error(`Expected id to start with ${a}`);
|
|
39
|
-
}, g = (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 ? c(e.regularChoice) : "specialChoice" in e && e.specialChoice ? l(e.specialChoice) : "", s = r({
|
|
40
|
-
get: () => b(t.control.data),
|
|
41
|
-
set: (e) => {
|
|
42
|
-
t.changeValue(g(e));
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
return (e, o) => (I(), y(P, {
|
|
46
|
-
id: e.labelForId,
|
|
47
|
-
modelValue: s.value,
|
|
48
|
-
"onUpdate:modelValue": o[0] || (o[0] = (_) => s.value = _),
|
|
49
|
-
"possible-values": f.value,
|
|
50
|
-
ariaLabel: e.control.label,
|
|
51
|
-
disabled: e.disabled,
|
|
52
|
-
compact: ""
|
|
53
|
-
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled"]));
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
B as default
|
|
58
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
|
|
2
|
-
import { i as l } from "./isArray-WzO_os3q.js";
|
|
3
|
-
function p(n, r) {
|
|
4
|
-
for (var t = -1, i = n == null ? 0 : n.length, o = Array(i); ++t < i; )
|
|
5
|
-
o[t] = r(n[t], t, n);
|
|
6
|
-
return o;
|
|
7
|
-
}
|
|
8
|
-
var e = s ? s.prototype : void 0, f = e ? e.toString : void 0;
|
|
9
|
-
function m(n) {
|
|
10
|
-
if (typeof n == "string")
|
|
11
|
-
return n;
|
|
12
|
-
if (l(n))
|
|
13
|
-
return p(n, m) + "";
|
|
14
|
-
if (g(n))
|
|
15
|
-
return f ? f.call(n) : "";
|
|
16
|
-
var r = n + "";
|
|
17
|
-
return r == "0" && 1 / n == -1 / 0 ? "-0" : r;
|
|
18
|
-
}
|
|
19
|
-
function S(n) {
|
|
20
|
-
return n == null ? "" : m(n);
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
p as a,
|
|
24
|
-
S as t
|
|
25
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { computed as r } from "vue";
|
|
2
|
-
import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
|
|
3
|
-
const l = (e = {}) => e.validations ?? [], c = (e = {}) => (e.validationProviders ?? []).map(
|
|
4
|
-
(i) => d(i, null)
|
|
5
|
-
), s = (e, i) => {
|
|
6
|
-
const n = e.map(
|
|
7
|
-
({ id: t, parameters: o, errorMessage: a }) => ({
|
|
8
|
-
validate: i[t](o),
|
|
9
|
-
errorMessage: a
|
|
10
|
-
})
|
|
11
|
-
);
|
|
12
|
-
return (t) => ({
|
|
13
|
-
errors: n.filter(({ validate: o }) => !o(t)).map(({ errorMessage: o }) => o)
|
|
14
|
-
});
|
|
15
|
-
}, u = (e, i) => e === null ? null : s([e], i), m = (e, i, n, t) => {
|
|
16
|
-
if (e.length) {
|
|
17
|
-
const o = s(e, n);
|
|
18
|
-
t(o);
|
|
19
|
-
}
|
|
20
|
-
i.length && i.map(
|
|
21
|
-
(a) => r(() => u(a.value, n))
|
|
22
|
-
).forEach(t);
|
|
23
|
-
}, h = ({
|
|
24
|
-
validations: e,
|
|
25
|
-
providedValidations: i
|
|
26
|
-
}) => {
|
|
27
|
-
const n = e.reduce(
|
|
28
|
-
(t, o) => ({ ...t, [o.id]: o.parameters }),
|
|
29
|
-
{}
|
|
30
|
-
);
|
|
31
|
-
return r(
|
|
32
|
-
() => i.map((t) => t.value).filter((t) => t !== null).reduce(
|
|
33
|
-
(t, o) => ({
|
|
34
|
-
...t,
|
|
35
|
-
// @ts-expect-error - we know that validation is not null here
|
|
36
|
-
[o.id]: o.parameters
|
|
37
|
-
}),
|
|
38
|
-
n
|
|
39
|
-
)
|
|
40
|
-
);
|
|
41
|
-
}, f = (e, i) => {
|
|
42
|
-
const n = i.control.uischema.options, t = l(n), o = c(n);
|
|
43
|
-
return m(
|
|
44
|
-
t,
|
|
45
|
-
o,
|
|
46
|
-
e,
|
|
47
|
-
i.onRegisterValidation
|
|
48
|
-
), h({ validations: t, providedValidations: o });
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
f as u
|
|
52
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { computed as a } from "vue";
|
|
2
|
-
import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CLPIgtdX.js";
|
|
3
|
-
const t = (s) => {
|
|
4
|
-
var e;
|
|
5
|
-
const u = a(
|
|
6
|
-
() => {
|
|
7
|
-
var o;
|
|
8
|
-
return (o = s.value.uischema.options) == null ? void 0 : o.choicesProvider;
|
|
9
|
-
}
|
|
10
|
-
);
|
|
11
|
-
return { possibleValues: c(
|
|
12
|
-
u,
|
|
13
|
-
((e = s.value.uischema.options) == null ? void 0 : e.possibleValues) ?? null
|
|
14
|
-
) };
|
|
15
|
-
}, n = (s) => {
|
|
16
|
-
var l, e;
|
|
17
|
-
const u = a(() => s.value.uischema.options);
|
|
18
|
-
return {
|
|
19
|
-
includedLabel: ((l = u.value) == null ? void 0 : l.includedLabel) ?? "Includes",
|
|
20
|
-
excludedLabel: ((e = u.value) == null ? void 0 : e.excludedLabel) ?? "Excludes"
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
n as a,
|
|
25
|
-
t as u
|
|
26
|
-
};
|