@knime/jsonforms 1.15.0 → 1.15.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.
Files changed (117) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-Cqwayw73.js → Button-B9RSLVI2.js} +8 -7
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-R0DlbAdT.js → ComboBoxControl-2r1FWcy-.js} +234 -165
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/{DateTimeInput-Cs0KqlOS.js → DateTimeInput-DcwhvMD2.js} +421 -377
  14. package/dist/{Dropdown-BEx-cvXH.js → Dropdown-D49sEHBa.js} +140 -85
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-OkFB9VHZ.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CMTJnAWr.js → MultiselectListBox-CfdPbcn1.js} +96 -72
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-BepS3tAK.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CE6whfV5.js → RichTextControl-B1mJMs1e.js} +4126 -3777
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js → SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js} +5456 -5284
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-DdH9cM67.js → _baseEach-CWap1NWh.js} +2 -2
  58. package/dist/{_baseIteratee-BGt-t7Os.js → _baseIteratee-D0MXvnuf.js} +3 -3
  59. package/dist/{_getTag-DAFySze4.js → _getTag-BvpAzjaz.js} +1 -1
  60. package/dist/{arrow-dropdown-BAFsD8Su.js → arrow-dropdown-eS-nVNCv.js} +7 -1
  61. package/dist/{arrow-next-BQVCxGb8.js → arrow-next-BmOStWql.js} +7 -1
  62. package/dist/{close-DGt8x-x_.js → close-0dYG2oDA.js} +7 -1
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.js +134 -108
  65. package/dist/{localTimeUtils-NIKgHnIr.js → localTimeUtils-CfchSrLG.js} +1 -1
  66. package/dist/{reload-DCdbNLa2.js → reload-57Xc2t-6.js} +7 -1
  67. package/dist/testing.js +2 -2
  68. package/dist/{toString-BhubvA3m.js → toString-C-X8cE7K.js} +1 -1
  69. package/dist/{useBuiltinValidations-Boxrm71q.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  70. package/dist/{usePossibleValues-DXuWWBh_.js → usePossibleValues-DTVXBGRC.js} +1 -1
  71. package/package.json +4 -4
  72. package/dist/AnyOfTwinlist-Co_sJAsc.js +0 -22
  73. package/dist/CheckboxControl-C10_DX1N.js +0 -40
  74. package/dist/Checkboxes-DWOxHiUX.js +0 -103
  75. package/dist/CheckboxesControl-BMRFgmO_.js +0 -38
  76. package/dist/DateControl-DAGAM92B.js +0 -29
  77. package/dist/DateTimeControl-DJhIb_U4.js +0 -45
  78. package/dist/DateTimeFormatInput-BhLQzC-P.js +0 -373
  79. package/dist/DateTimeFormatPickerControl-V7pxRYaW.js +0 -40
  80. package/dist/DateTimeFormatPickerWithTypeControl-3fa75rGw.js +0 -76
  81. package/dist/DropdownControl-DEIA5VD4.js +0 -31
  82. package/dist/HorizontalLayout-DCfhMNq4.js +0 -25
  83. package/dist/IntegerControl-Om8J7hch.js +0 -20
  84. package/dist/IntervalControl-B7UbyyD-.js +0 -545
  85. package/dist/LoadingDropdown-CINkq_Sw.js +0 -40
  86. package/dist/ManualTwinlistControl-BLTfr2gT.js +0 -79
  87. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +0 -31
  88. package/dist/MultimodeTwinlistControl-BsFqHRFM.js +0 -459
  89. package/dist/NameFilter-d5k6rDVY.js +0 -24
  90. package/dist/NumberControl-Kc3hvVef.js +0 -20
  91. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +0 -50
  92. package/dist/OneOfDropdown-CLwVXrbC.js +0 -33
  93. package/dist/RadioControl-DpziR8nA.js +0 -24
  94. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +0 -104
  95. package/dist/SectionHeading-D7znCZXu.js +0 -19
  96. package/dist/SectionLayout-BhXDOzqB.js +0 -46
  97. package/dist/SettingsSubPanel-x9uWGoiu.js +0 -5
  98. package/dist/SettingsSubPanelLayout-BPHBM5n5.js +0 -62
  99. package/dist/SimpleButtonControl-DfCSlgZS.js +0 -61
  100. package/dist/SimpleTwinlistControl-CBalniCf.js +0 -25
  101. package/dist/SingleSelectControl-DC4w0ata.js +0 -58
  102. package/dist/SingleSelectListBoxControl-CKj-p8jZ.js +0 -232
  103. package/dist/SortListControl-BIUyPjCi.js +0 -377
  104. package/dist/StyledListItem-D-HJWfo5.js +0 -72
  105. package/dist/TextAreaControl-D28TQZEY.js +0 -108
  106. package/dist/TextControl-DUDBWcHy.js +0 -4
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js +0 -47
  108. package/dist/TimeControl-HRooO_z3.js +0 -36
  109. package/dist/TwinlistControlBase-Brfh5pqZ.js +0 -40
  110. package/dist/TwinlistLoadingInfo-C4Tta00d.js +0 -946
  111. package/dist/TypedStringFilter-CdvgPKhD.js +0 -26
  112. package/dist/ValueSwitch-W4y1YvNM.js +0 -131
  113. package/dist/ValueSwitchControl-BaXH8Cjx.js +0 -20
  114. package/dist/VerticalLayout-ChAmRKNj.js +0 -30
  115. package/dist/VerticalLayoutBase-DAk4vfH5.js +0 -20
  116. package/dist/ZonedDateTimeControl-Qb57KmMT.js +0 -69
  117. package/dist/svgWithTitle-CnTmPYAB.js +0 -18
@@ -1,459 +0,0 @@
1
- import { createElementBlock as M, openBlock as h, createElementVNode as O, toRef as I, resolveComponent as m, normalizeClass as j, createBlock as w, createCommentVNode as V, createVNode as f, withCtx as v, mergeProps as _, defineComponent as N, ref as H, computed as u, markRaw as W, unref as L } from "vue";
2
- import { m as G } from "./index-Blg1O3Fz.js";
3
- import { u as J, a as K } from "./usePossibleValues-DXuWWBh_.js";
4
- import { a as Q, S as X, u as Y, T as Z } from "./TwinlistLoadingInfo-C4Tta00d.js";
5
- import { u as $ } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js";
6
- import { f as P } from "./useSearch-hpyYQ_6y.js";
7
- import { C as ee } from "./Checkboxes-DWOxHiUX.js";
8
- import { y as te, _ as U } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
9
- import { V as ae } from "./ValueSwitch-W4y1YvNM.js";
10
- const le = {
11
- xmlns: "http://www.w3.org/2000/svg",
12
- fill: "none",
13
- stroke: "#000",
14
- "stroke-linejoin": "round",
15
- viewBox: "0 0 32 32"
16
- };
17
- function ne(t, l) {
18
- return h(), M("svg", le, l[0] || (l[0] = [
19
- O("path", { d: "m13.31 27.81 5.11-3.19v-9.15L28.95 4.19H3.05l10.26 11.28z" }, null, -1)
20
- ]));
21
- }
22
- const se = { render: ne }, ie = {
23
- manual: "Manual",
24
- wildcard: "Wildcard",
25
- regex: "Regex",
26
- type: "Type"
27
- }, oe = {
28
- name: "MultiModeTwinlist",
29
- components: {
30
- Label: te,
31
- FilterIcon: se,
32
- SearchInput: X,
33
- Checkboxes: ee,
34
- ValueSwitch: ae,
35
- Twinlist: Q
36
- },
37
- props: {
38
- /**
39
- * initial values
40
- */
41
- mode: {
42
- type: String,
43
- required: !1,
44
- default: "manual"
45
- },
46
- manualSelection: {
47
- type: [Object, Array, null],
48
- default: () => []
49
- },
50
- pattern: {
51
- type: String,
52
- default: ""
53
- },
54
- caseSensitivePattern: {
55
- default: !1,
56
- type: Boolean
57
- },
58
- inversePattern: {
59
- default: !1,
60
- type: Boolean
61
- },
62
- withTypes: {
63
- type: Boolean,
64
- default: !0
65
- },
66
- selectedTypes: {
67
- type: Array,
68
- default: () => []
69
- },
70
- /**
71
- * Hiding and disabling
72
- */
73
- showMode: {
74
- default: !0,
75
- type: Boolean
76
- },
77
- // enable search in case of manual selection
78
- showSearch: {
79
- default: !0,
80
- type: Boolean
81
- },
82
- disabled: {
83
- default: !1,
84
- type: Boolean
85
- },
86
- /**
87
- * Labels
88
- */
89
- withModeLabel: {
90
- default: !1,
91
- type: Boolean
92
- },
93
- modeLabel: {
94
- type: String,
95
- required: !1,
96
- default: "Selection mode"
97
- },
98
- withPatternLabel: {
99
- default: !1,
100
- type: Boolean
101
- },
102
- patternLabel: {
103
- type: String,
104
- required: !1,
105
- default: "Pattern"
106
- },
107
- withTypesLabel: {
108
- default: !1,
109
- type: Boolean
110
- },
111
- typesLabel: {
112
- type: String,
113
- required: !1,
114
- default: "Selected types"
115
- },
116
- /**
117
- * List of possible values. Each item must have an `id` and a `text` property
118
- * @example
119
- * [{
120
- * id: 'pdf',
121
- * text: 'PDF'
122
- * }, {
123
- * id: 'XLS',
124
- * text: 'Excel',
125
- * }]
126
- * For type selection, additionally, an element has to have a property `type` wich itself has properties
127
- * `id` and `text`, e.g.
128
- * [{
129
- * id: 'pdf',
130
- * text: 'PDF',
131
- * type: {
132
- * id: 'StringValue',
133
- * text: 'String'
134
- * }]
135
- */
136
- possibleValues: {
137
- type: Array,
138
- default: () => []
139
- },
140
- /**
141
- * List of possible types which should be selectable but are not necessarily present in the possible values.
142
- */
143
- additionalPossibleTypes: {
144
- type: Array,
145
- default: () => []
146
- },
147
- compact: {
148
- type: Boolean,
149
- default: !1
150
- }
151
- },
152
- emits: [
153
- // Prop updates
154
- "update:manualSelection",
155
- "update:pattern",
156
- "update:selectedTypes",
157
- "update:mode",
158
- "update:caseSensitivePattern",
159
- "update:inversePattern",
160
- // Non-prop update
161
- "update:selected"
162
- ],
163
- setup(t) {
164
- const { includedValues: l } = Y(
165
- I(t, "manualSelection")
166
- );
167
- return { manuallySelected: l };
168
- },
169
- data() {
170
- return {
171
- invalidPossibleValueIds: /* @__PURE__ */ new Set()
172
- };
173
- },
174
- computed: {
175
- possibleValueIds() {
176
- return this.possibleValues.map(({ id: t }) => t);
177
- },
178
- possibleTypes() {
179
- const t = this.possibleValues.map(({ type: n }) => n).filter(Boolean), l = t.map((n) => n.id);
180
- return [...this.additionalPossibleTypes.filter(
181
- (n) => n && !l.includes(n.id)
182
- ), ...t].filter((n) => n && n.id !== "").filter(
183
- // remove duplicates
184
- (n, s, b) => s === b.findIndex((d) => d.id === n.id && d.text === n.text)
185
- );
186
- },
187
- matchingValueIds() {
188
- return this.possibleValues.filter((t) => this.itemMatches(t)).map((t) => t.id);
189
- },
190
- twinlistModelValue() {
191
- return this.mode === "manual" ? this.manualSelection : this.matchingValueIds;
192
- },
193
- selectedValues() {
194
- return this.mode === "manual" ? this.manuallySelected : this.matchingValueIds;
195
- },
196
- selectionDisabled() {
197
- return this.disabled || this.mode !== "manual";
198
- },
199
- normalizedSearchTerm() {
200
- return this.mode === "manual" ? null : P[this.mode].normalize(
201
- this.mode === "type" ? this.selectedTypes : this.pattern,
202
- this.caseSensitivePattern
203
- );
204
- },
205
- possibleModes() {
206
- let t = Object.entries(ie).map(([l, a]) => ({ id: l, text: a }));
207
- return this.withTypes || (t = t.filter((l) => l.id !== "type")), t;
208
- }
209
- },
210
- watch: {
211
- selectedValues: {
212
- immediate: !0,
213
- handler(t, l) {
214
- !l || t === null || (t.length !== l.length || l.some((a, o) => a !== t[o])) && this.$emit("update:selected", this.selectedValues);
215
- }
216
- }
217
- },
218
- methods: {
219
- onManualInput(t) {
220
- this.mode === "manual" && this.$emit("update:manualSelection", t);
221
- },
222
- onPatternInput(t) {
223
- this.$emit("update:pattern", t);
224
- },
225
- onTypeInput(t) {
226
- this.$emit("update:selectedTypes", t, this.possibleTypes);
227
- },
228
- onModeChange(t) {
229
- this.$emit("update:mode", t);
230
- },
231
- onToggleCaseSensitivePattern(t) {
232
- this.$emit("update:caseSensitivePattern", t);
233
- },
234
- onToggleInversePattern(t) {
235
- this.$emit("update:inversePattern", t);
236
- },
237
- validate() {
238
- return this.$refs.twinlist.validate();
239
- },
240
- hasSelection() {
241
- return !!this.selectedValues?.length;
242
- },
243
- itemMatches(t) {
244
- return P[this.mode].test(
245
- this.mode === "type" ? t.type?.id : t.text,
246
- this.normalizedSearchTerm,
247
- this.caseSensitivePattern,
248
- this.inversePattern
249
- );
250
- }
251
- }
252
- };
253
- function de(t, l, a, o, n, s) {
254
- const b = m("ValueSwitch"), d = m("Label"), g = m("FilterIcon"), T = m("SearchInput"), S = m("Checkboxes"), y = m("Twinlist");
255
- return h(), M("div", {
256
- class: j(["multi-mode-twinlist", { disabled: a.disabled }])
257
- }, [
258
- a.showMode ? (h(), w(d, {
259
- key: 0,
260
- active: a.withModeLabel,
261
- text: a.modeLabel,
262
- class: "label"
263
- }, {
264
- default: v(({ labelForId: c }) => [
265
- f(b, {
266
- id: c,
267
- ref: "mode",
268
- compact: a.compact,
269
- "model-value": a.mode,
270
- disabled: a.disabled,
271
- "possible-values": s.possibleModes,
272
- "onUpdate:modelValue": s.onModeChange
273
- }, null, 8, ["id", "compact", "model-value", "disabled", "possible-values", "onUpdate:modelValue"])
274
- ]),
275
- _: 1
276
- }, 8, ["active", "text"])) : V("", !0),
277
- a.mode === "regex" || a.mode === "wildcard" ? (h(), w(d, {
278
- key: 1,
279
- active: a.withPatternLabel,
280
- text: a.patternLabel,
281
- class: "label"
282
- }, {
283
- default: v(({ labelForId: c }) => [
284
- f(T, {
285
- id: c,
286
- ref: "search",
287
- "model-value": a.pattern,
288
- label: a.patternLabel,
289
- "initial-case-sensitive-search": a.caseSensitivePattern,
290
- "initial-inverse-search": a.inversePattern,
291
- placeholder: "Pattern",
292
- "show-case-sensitive-search-button": "",
293
- "show-inverse-search-button": "",
294
- disabled: a.disabled,
295
- tooltips: {
296
- inverseSearch: "Move matching to other side"
297
- },
298
- compact: a.compact,
299
- "onUpdate:modelValue": s.onPatternInput,
300
- onToggleCaseSensitiveSearch: s.onToggleCaseSensitivePattern,
301
- onToggleInverseSearch: s.onToggleInversePattern
302
- }, {
303
- icon: v(() => [
304
- f(g)
305
- ]),
306
- _: 2
307
- }, 1032, ["id", "model-value", "label", "initial-case-sensitive-search", "initial-inverse-search", "disabled", "compact", "onUpdate:modelValue", "onToggleCaseSensitiveSearch", "onToggleInverseSearch"])
308
- ]),
309
- _: 1
310
- }, 8, ["active", "text"])) : V("", !0),
311
- a.mode === "type" && s.possibleTypes.length > 0 ? (h(), w(d, {
312
- key: 2,
313
- active: a.withTypesLabel,
314
- text: a.typesLabel,
315
- class: "label"
316
- }, {
317
- default: v(() => [
318
- f(S, {
319
- "model-value": a.selectedTypes,
320
- "possible-values": s.possibleTypes,
321
- disabled: a.disabled,
322
- "onUpdate:modelValue": s.onTypeInput
323
- }, null, 8, ["model-value", "possible-values", "disabled", "onUpdate:modelValue"])
324
- ]),
325
- _: 1
326
- }, 8, ["active", "text"])) : V("", !0),
327
- f(y, _(t.$attrs, {
328
- ref: "twinlist",
329
- disabled: s.selectionDisabled,
330
- "show-search": a.mode === "manual" && a.showSearch,
331
- "model-value": s.twinlistModelValue,
332
- "possible-values": a.possibleValues,
333
- compact: a.compact,
334
- "onUpdate:modelValue": s.onManualInput
335
- }), null, 16, ["disabled", "show-search", "model-value", "possible-values", "compact", "onUpdate:modelValue"])
336
- ], 2);
337
- }
338
- const re = /* @__PURE__ */ U(oe, [["render", de], ["__scopeId", "data-v-09b6454f"]]), ue = /* @__PURE__ */ N({
339
- __name: "MultimodeTwinlistControl",
340
- props: {
341
- control: {},
342
- handleChange: {},
343
- changeValue: {},
344
- disabled: { type: Boolean },
345
- isValid: { type: Boolean },
346
- onRegisterValidation: {},
347
- labelForId: {},
348
- twinlistSize: { default: 10 },
349
- twinlistLeftLabel: { default: "Excludes" },
350
- showUnknownValues: { type: Boolean, default: !1 },
351
- twinlistRightLabel: { default: "Includes" }
352
- },
353
- setup(t) {
354
- const l = t;
355
- let a = () => {
356
- };
357
- const o = (e) => {
358
- const i = G(l.control.data, e);
359
- l.changeValue(i), a?.(i.manualFilter);
360
- }, n = (e) => {
361
- o({ selected: e });
362
- }, s = (e) => {
363
- if (e !== null)
364
- if ("includedValues" in e) {
365
- const { includedValues: i, excludedValues: p, includeUnknownValues: r } = e;
366
- if (!i || !p)
367
- return;
368
- o({
369
- manualFilter: {
370
- manuallySelected: i,
371
- manuallyDeselected: p,
372
- includeUnknownColumns: r
373
- }
374
- });
375
- } else
376
- o({ manualFilter: { manuallySelected: e } });
377
- }, b = (e) => {
378
- o({ patternFilter: { pattern: e } });
379
- }, d = (e) => {
380
- o({ mode: e.toUpperCase() });
381
- }, g = (e, i) => {
382
- o({ typeFilter: { selectedTypes: e, typeDisplays: i } });
383
- }, T = (e) => {
384
- o({ patternFilter: { isInverted: e } });
385
- }, S = (e) => {
386
- o({ patternFilter: { isCaseSensitive: e } });
387
- }, { possibleValues: y } = J(
388
- I(l, "control")
389
- ), c = H([]), { selectedAndDeselected: C, setCurrentManualFilter: F } = $({
390
- data: u(() => l.control.data),
391
- possibleValueIds: u(
392
- () => y.value?.map(({ id: e }) => e) ?? null
393
- )
394
- });
395
- a = F;
396
- const k = u(() => {
397
- const { selected: e, deselected: i } = C.value;
398
- return l.showUnknownValues ? {
399
- includedValues: e,
400
- excludedValues: i,
401
- includeUnknownValues: l.control.data.manualFilter.includeUnknownColumns
402
- } : e;
403
- }), B = u(
404
- () => C.value.selected === null ? W(Z) : null
405
- ), x = (e) => typeof e > "u" ? {} : e.reduce(
406
- (i, { id: p, text: r }) => ({ ...i, [p]: r }),
407
- {}
408
- ), z = () => {
409
- const e = l.control.data.typeFilter;
410
- if (!e)
411
- return [];
412
- const i = e.selectedTypes, p = x(
413
- e.typeDisplays
414
- );
415
- return i.map((r) => ({
416
- id: r,
417
- text: p[r] || r
418
- }));
419
- };
420
- c.value = z();
421
- const D = u(
422
- () => !!y.value?.[0]?.hasOwnProperty("type")
423
- ), { excludedLabel: R, includedLabel: A } = K(
424
- I(l, "control")
425
- ), q = u(() => R ?? l.twinlistLeftLabel), E = u(() => A ?? l.twinlistRightLabel);
426
- return (e, i) => (h(), w(L(re), _(e.$attrs, {
427
- id: e.labelForId,
428
- disabled: e.disabled,
429
- "with-types": D.value,
430
- "selected-types": e.control.data.typeFilter?.selectedTypes,
431
- "additional-possible-types": c.value,
432
- pattern: e.control.data.patternFilter.pattern,
433
- mode: e.control.data.mode.toLowerCase(),
434
- "case-sensitive-pattern": e.control.data.patternFilter.isCaseSensitive,
435
- "empty-state-component": B.value,
436
- "inverse-pattern": e.control.data.patternFilter.isInverted,
437
- "manual-selection": k.value,
438
- "include-unknown-values": e.control.data.manualFilter.includeUnknownColumns,
439
- "mode-label": "Selection mode",
440
- "possible-values": L(y) ?? [],
441
- size: e.twinlistSize,
442
- "left-label": q.value,
443
- "right-label": E.value,
444
- "is-valid": e.isValid,
445
- compact: "",
446
- "show-resize-handle": "",
447
- "onUpdate:selected": n,
448
- "onUpdate:manualSelection": s,
449
- "onUpdate:pattern": b,
450
- "onUpdate:mode": d,
451
- "onUpdate:selectedTypes": g,
452
- "onUpdate:inversePattern": T,
453
- "onUpdate:caseSensitivePattern": S
454
- }), 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"]));
455
- }
456
- }), ge = /* @__PURE__ */ U(ue, [["__scopeId", "data-v-37fe7036"]]);
457
- export {
458
- ge as default
459
- };
@@ -1,24 +0,0 @@
1
- import { defineComponent as n, createBlock as o, openBlock as t, mergeProps as a } from "vue";
2
- import l from "./MultimodeTwinlistControl-BsFqHRFM.js";
3
- const u = /* @__PURE__ */ n({
4
- __name: "NameFilter",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- isValid: { type: Boolean },
11
- onRegisterValidation: { type: Function },
12
- labelForId: {}
13
- },
14
- setup(r) {
15
- return (e, s) => (t(), o(l, a({ ...e.$props, ...e.$attrs }, {
16
- "unknown-values-text": "Any unknown value",
17
- "show-unknown-values": "",
18
- "empty-state-label": "No values in this list"
19
- }), null, 16));
20
- }
21
- });
22
- export {
23
- u as default
24
- };
@@ -1,20 +0,0 @@
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-BOCR1qXG.js";
3
- const s = /* @__PURE__ */ o({
4
- __name: "NumberControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- isValid: { type: Boolean },
11
- onRegisterValidation: { type: Function },
12
- labelForId: {}
13
- },
14
- setup(p) {
15
- return (e, l) => (t(), n(a, r(e.$props, { type: "double" }), null, 16));
16
- }
17
- });
18
- export {
19
- s as default
20
- };
@@ -1,50 +0,0 @@
1
- import { defineComponent as p, computed as m, createBlock as v, openBlock as V, unref as E } from "vue";
2
- import { u as f } from "./useBuiltinValidations-Boxrm71q.js";
3
- import { N as y } from "./NumberInput-BepS3tAK.js";
4
- const b = 1, g = 0.1, B = /* @__PURE__ */ p({
5
- __name: "NumberControlBase",
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
- type: {}
15
- },
16
- setup(r) {
17
- const o = r, s = o.type === "integer" ? b : g, i = ({ min: e, isExclusive: n }) => (a) => isNaN(a) || (n ? a > e : a >= e), u = ({ max: e, isExclusive: n }) => (a) => isNaN(a) || (n ? a < e : a <= e), c = f(
18
- {
19
- min: i,
20
- max: u
21
- },
22
- o
23
- ), t = m(() => c.value.min), l = m(() => c.value.max), d = () => {
24
- const e = o.control.data;
25
- if (t.value && !i(t.value)(e)) {
26
- const { min: n, isExclusive: a } = t.value;
27
- a ? o.changeValue(n + s) : o.changeValue(n);
28
- } else if (l.value && !u(l.value)(e)) {
29
- const { max: n, isExclusive: a } = l.value;
30
- a ? o.changeValue(n - s) : o.changeValue(n);
31
- }
32
- };
33
- return (e, n) => (V(), v(E(y), {
34
- id: e.labelForId,
35
- class: "number-input",
36
- disabled: e.disabled,
37
- "model-value": e.control.data,
38
- type: e.type,
39
- min: t.value?.min,
40
- max: l.value?.max,
41
- "is-valid": e.isValid,
42
- compact: "",
43
- "onUpdate:modelValue": e.changeValue,
44
- onFocusout: d
45
- }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]));
46
- }
47
- });
48
- export {
49
- B as _
50
- };
@@ -1,33 +0,0 @@
1
- import { defineComponent as r, computed as d, createBlock as i, openBlock as u, unref as n } from "vue";
2
- import { o as c } from "./index-Blg1O3Fz.js";
3
- import { D as m } from "./Dropdown-BEx-cvXH.js";
4
- const g = /* @__PURE__ */ r({
5
- __name: "OneOfDropdown",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(t) {
16
- const e = t, s = e.control.schema?.oneOf?.map(c) ?? [], a = d({
17
- get: () => e.control.data ?? "",
18
- set: e.changeValue
19
- });
20
- return (o, l) => (u(), i(n(m), {
21
- id: o.labelForId,
22
- modelValue: a.value,
23
- "onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p),
24
- "possible-values": n(s),
25
- ariaLabel: o.control.label,
26
- disabled: o.disabled,
27
- compact: ""
28
- }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled"]));
29
- }
30
- });
31
- export {
32
- g as default
33
- };
@@ -1,24 +0,0 @@
1
- import { defineComponent as e, createBlock as n, openBlock as t, mergeProps as a } from "vue";
2
- import { _ as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js";
3
- import { _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
4
- const i = /* @__PURE__ */ e({
5
- __name: "RadioControl",
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(s) {
16
- return (o, l) => (t(), n(r, a(o.$props, {
17
- type: "radio",
18
- class: "radio"
19
- }), null, 16));
20
- }
21
- }), m = /* @__PURE__ */ p(i, [["__scopeId", "data-v-6720fee0"]]);
22
- export {
23
- m as default
24
- };