@knime/jsonforms 1.12.0 → 1.12.2

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AnyOfTwinlist-Bm92BxCq.js → AnyOfTwinlist-C2hopPFE.js} +1 -1
  3. package/dist/{Button-BU4AHIik.js → Button-a3DyR88M.js} +1 -1
  4. package/dist/{CheckboxControl-BfHrx05I.js → CheckboxControl-DoQCgnTf.js} +1 -1
  5. package/dist/{Checkboxes-BgwoEGV-.js → Checkboxes-DNbu05C7.js} +1 -1
  6. package/dist/{CheckboxesControl-DeDkOQTP.js → CheckboxesControl-DgwL4BAl.js} +3 -3
  7. package/dist/{ComboBoxControl-CS3HULei.js → ComboBoxControl-DSSfSqIC.js} +5 -5
  8. package/dist/{DateControl-DeuREfXO.js → DateControl-DArS42tY.js} +1 -1
  9. package/dist/{DateTimeControl-Bv15fo80.js → DateTimeControl-BuZ5D5EW.js} +2 -2
  10. package/dist/{DateTimeFormatInput-CTOVceJH.js → DateTimeFormatInput-BJepKEOT.js} +3 -3
  11. package/dist/{DateTimeFormatPickerControl-5fPMIUZs.js → DateTimeFormatPickerControl-YAKOrguY.js} +2 -2
  12. package/dist/{DateTimeFormatPickerWithTypeControl-yyIHxX6-.js → DateTimeFormatPickerWithTypeControl-CM2eu1Bq.js} +3 -3
  13. package/dist/{DateTimeInput-BPaZ_pEv.js → DateTimeInput-B30lQ3sx.js} +6 -6
  14. package/dist/{Dropdown-D6ytFIra.js → Dropdown-Cp5fC5vt.js} +5 -5
  15. package/dist/{DropdownControl-Bl9djFfv.js → DropdownControl-DXtUnm7l.js} +2 -2
  16. package/dist/{HorizontalLayout-BmgysFCG.js → HorizontalLayout-BTxnoo0O.js} +1 -1
  17. package/dist/{InputField-D-drv5NW.js → InputField-B2bBpIrm.js} +1 -1
  18. package/dist/{IntegerControl-CzusffS4.js → IntegerControl-CamhgT4b.js} +1 -1
  19. package/dist/{IntervalControl-DBlPYbLt.js → IntervalControl-Dhz8aY9W.js} +11 -11
  20. package/dist/{LoadingDropdown-xAK7TsDc.js → LoadingDropdown-DFLGXxJe.js} +3 -3
  21. package/dist/ManualTwinlistControl-C1Bk354m.js +85 -0
  22. package/dist/{MultiSelectListBoxControl-D1TD3jNm.js → MultiSelectListBoxControl-DiSPf1p7.js} +2 -2
  23. package/dist/MultimodeTwinlistControl-DnpmvhFB.js +469 -0
  24. package/dist/MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_ca157254_lang-DjGJNwBV.js +65 -0
  25. package/dist/{MultiselectListBox-1nfMHeks.js → MultiselectListBox-DMZvKZT2.js} +2 -2
  26. package/dist/{NameFilter-CUdwbsjT.js → NameFilter-qYooMIRr.js} +1 -1
  27. package/dist/{NumberControl-DEGlKs0O.js → NumberControl-mAvpRa8P.js} +1 -1
  28. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-C0B7QKut.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DsYiLVc0.js} +2 -2
  29. package/dist/{NumberInput-dE-KEe9u.js → NumberInput-DfYpYs35.js} +1 -1
  30. package/dist/{OneOfDropdown-BMcupih8.js → OneOfDropdown-Dx9oWy6Y.js} +1 -1
  31. package/dist/{RadioControl-Cgm2SatI.js → RadioControl-C0sZejgk.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-n6oZHbxa.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BBZFZcBX.js} +3 -3
  33. package/dist/{RichTextControl-YEul6CJZ.js → RichTextControl-ikOmp5Zc.js} +4 -4
  34. package/dist/{SectionHeading-HNpa-JMB.js → SectionHeading-DoKeahJG.js} +1 -1
  35. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DHWwwUrR.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js} +808 -790
  36. package/dist/{SectionLayout-D-_-IdPp.js → SectionLayout-DqhrTk7G.js} +13 -13
  37. package/dist/SettingsSubPanel-BsP2TPpl.js +5 -0
  38. package/dist/{SettingsSubPanelLayout-C84okIEY.js → SettingsSubPanelLayout-QgTIOWrJ.js} +6 -6
  39. package/dist/{SimpleButtonControl-DbJCOykS.js → SimpleButtonControl-DWOwphdQ.js} +2 -2
  40. package/dist/{SimpleTwinlistControl-CAaqVRDo.js → SimpleTwinlistControl-Bm8f15KT.js} +2 -2
  41. package/dist/{SingleSelectControl-Dn5eHuj1.js → SingleSelectControl-DzoiFSGp.js} +2 -2
  42. package/dist/{SingleSelectListBoxControl-DXBVcA1B.js → SingleSelectListBoxControl-COshImPF.js} +24 -23
  43. package/dist/{SortListControl-B_e_Pieg.js → SortListControl-D5jBOA2x.js} +13 -13
  44. package/dist/{StyledListItem-CGCkC79t.js → StyledListItem-DCmVSIus.js} +1 -1
  45. package/dist/{TextAreaControl-DF-7_-DW.js → TextAreaControl-ijQXrkd5.js} +1 -1
  46. package/dist/{TextControl-FEepT6DT.js → TextControl-Di5u3kig.js} +1 -1
  47. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Dd8il0B5.js → TextControl.vue_vue_type_script_setup_true_lang-DWUPaWoR.js} +3 -3
  48. package/dist/{TimeControl-CL1jfXXP.js → TimeControl-oa9oA0c7.js} +2 -2
  49. package/dist/{TwinlistControlBase-DvXv0Vo6.js → TwinlistControlBase-Dm8KSJE0.js} +3 -3
  50. package/dist/{TwinlistLoadingInfo-CcOQiBV3.js → TwinlistLoadingInfo-Dcbz2hUN.js} +12 -12
  51. package/dist/{TypedStringFilter-CjW7XKo7.js → TypedStringFilter-DOox0S1z.js} +1 -1
  52. package/dist/{ValueSwitch-B-yL0b_A.js → ValueSwitch-Ba0d4Jda.js} +1 -1
  53. package/dist/{ValueSwitchControl-DeVtjzwE.js → ValueSwitchControl-BFY2YwjA.js} +1 -1
  54. package/dist/{VerticalLayout-c3McC0j1.js → VerticalLayout-CdmecqY1.js} +5 -5
  55. package/dist/{VerticalLayoutBase-Dgnqavoq.js → VerticalLayoutBase-2Al6mtWQ.js} +1 -1
  56. package/dist/{ZonedDateTimeControl-CkODiVzJ.js → ZonedDateTimeControl-xwK_O0Ue.js} +4 -4
  57. package/dist/{_baseEach-B-g2g11B.js → _baseEach-kS6aH7yJ.js} +2 -2
  58. package/dist/{_baseIteratee-CHW73TMN.js → _baseIteratee-CcwzbMbu.js} +13 -13
  59. package/dist/{_getTag-BWiFGABh.js → _getTag-DpK8q53u.js} +1 -1
  60. package/dist/knime-jsonforms.css +1 -1
  61. package/dist/knime-jsonforms.js +17 -16
  62. package/dist/{localTimeUtils-DrKyGLv2.js → localTimeUtils-4g4u5t7X.js} +1 -1
  63. package/dist/{magic-string.es-DLCZ-p-e.js → magic-string.es-CWjITDzi.js} +1 -1
  64. package/dist/src/constants/inputFormats.d.ts +1 -0
  65. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +2 -0
  66. package/dist/src/higherOrderComponents/control/util.d.ts +2 -0
  67. package/dist/src/renderers/defaultRenderers.d.ts +1 -0
  68. package/dist/src/renderers/twinlistRenderer.d.ts +2 -0
  69. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +8 -0
  70. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +3 -1
  71. package/dist/{svgWithTitle-C1XM8U1L.js → svgWithTitle-DGBkWQrO.js} +1 -1
  72. package/dist/testUtils/component.d.ts +4 -4
  73. package/dist/testing.js +3 -3
  74. package/dist/toString-ByDUn5bZ.js +25 -0
  75. package/dist/{useBuiltinValidations-bc9asSxB.js → useBuiltinValidations-ChTFREt7.js} +1 -1
  76. package/dist/{usePossibleValues-NHPCKPdi.js → usePossibleValues-BB4he0jT.js} +1 -1
  77. package/package.json +5 -5
  78. package/dist/MultimodeTwinlistControl-BrluVu3Y.js +0 -526
  79. package/dist/SettingsSubPanel-CNXzO0_i.js +0 -5
  80. package/dist/toString-DfO6VEzj.js +0 -25
@@ -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-NHPCKPdi.js";
4
- import { S as Z, a as $, u as ee, T as te } from "./TwinlistLoadingInfo-CcOQiBV3.js";
5
- import { f as F } from "./useSearch-hpyYQ_6y.js";
6
- import { C as le } from "./Checkboxes-BgwoEGV-.js";
7
- import { v as ae, _ as z } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DHWwwUrR.js";
8
- import { V as ne } from "./ValueSwitch-B-yL0b_A.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,5 +0,0 @@
1
- import { _ as s, x as a } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DHWwwUrR.js";
2
- const _ = /* @__PURE__ */ s(a, [["__scopeId", "data-v-110037e2"]]);
3
- export {
4
- _ as S
5
- };
@@ -1,25 +0,0 @@
1
- import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DHWwwUrR.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
- };