@knime/jsonforms 1.14.3 → 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 (200) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-BxuGKyL5.js → Button-B9RSLVI2.js} +9 -8
  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-Dk02x7sN.js → ComboBoxControl-2r1FWcy-.js} +238 -172
  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-DcwhvMD2.js +11321 -0
  14. package/dist/Dropdown-D49sEHBa.js +663 -0
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-BYxW_-G3.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-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CfdPbcn1.js} +105 -86
  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-DJ38AGiR.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-CXY1ULxR.js → RichTextControl-B1mJMs1e.js} +5462 -4668
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js +15603 -0
  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-cjHvi5iT.js → _baseEach-CWap1NWh.js} +4 -4
  58. package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-D0MXvnuf.js} +27 -27
  59. package/dist/{_getTag-sLUyzSDj.js → _getTag-BvpAzjaz.js} +10 -10
  60. package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-eS-nVNCv.js} +9 -3
  61. package/dist/{arrow-next-CIOU5o42.js → arrow-next-BmOStWql.js} +9 -3
  62. package/dist/{close-BuY4mhXV.js → close-0dYG2oDA.js} +9 -3
  63. package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
  64. package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
  65. package/dist/index-CpKfM262.js +376 -0
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +133 -110
  68. package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-CfchSrLG.js} +179 -181
  69. package/dist/magic-string.es-BQ9KnLz-.js +659 -0
  70. package/dist/navigator-e30QQMkl.js +4 -0
  71. package/dist/popper-LGjf7Wza.js +905 -0
  72. package/dist/reload-57Xc2t-6.js +23 -0
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
  74. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
  75. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
  76. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
  77. package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
  78. package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
  79. package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
  80. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
  81. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
  82. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
  83. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
  84. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
  85. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
  86. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
  87. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
  88. package/dist/src/renderers/defaultRenderers.d.ts +966 -151
  89. package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
  90. package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
  91. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  92. package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
  93. package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
  94. package/dist/src/renderers/sortListRenderer.d.ts +853 -20
  95. package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
  96. package/dist/src/renderers/textRenderer.d.ts +1 -1
  97. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  98. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
  99. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
  100. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  101. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
  106. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  111. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
  112. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
  115. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
  116. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
  119. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
  121. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
  126. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
  127. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
  128. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
  129. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
  132. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  133. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  134. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
  135. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  136. package/dist/testUtils/component.d.ts +18 -18
  137. package/dist/testing.js +8688 -8655
  138. package/dist/{toString-C_MqBj3_.js → toString-C-X8cE7K.js} +1 -1
  139. package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  140. package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
  141. package/dist/usePossibleValues-DTVXBGRC.js +16 -0
  142. package/package.json +14 -14
  143. package/dist/AnyOfTwinlist-Cwxtyt0Q.js +0 -22
  144. package/dist/CheckboxControl-Oe97HhY3.js +0 -40
  145. package/dist/Checkboxes-DIPjJhPO.js +0 -103
  146. package/dist/CheckboxesControl-5QlPmjwv.js +0 -41
  147. package/dist/DateControl-CddCObVg.js +0 -29
  148. package/dist/DateTimeControl-DyXUJBHE.js +0 -54
  149. package/dist/DateTimeFormatInput-bO1zHUyp.js +0 -381
  150. package/dist/DateTimeFormatPickerControl-Dq25_JV2.js +0 -43
  151. package/dist/DateTimeFormatPickerWithTypeControl-DZib_x-B.js +0 -79
  152. package/dist/DateTimeInput-CEYEV8dt.js +0 -11204
  153. package/dist/Dropdown-CJj0CUA8.js +0 -604
  154. package/dist/DropdownControl-BNQKWzTT.js +0 -31
  155. package/dist/HorizontalLayout-6GwurgkR.js +0 -25
  156. package/dist/IntegerControl-DZIY-wb_.js +0 -20
  157. package/dist/IntervalControl-Yts36_MI.js +0 -546
  158. package/dist/LoadingDropdown-Dw-0WQ8x.js +0 -40
  159. package/dist/ManualTwinlistControl-C3NnAug1.js +0 -85
  160. package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
  161. package/dist/MultimodeTwinlistControl-B2Jven29.js +0 -470
  162. package/dist/NameFilter-D0hKO5Fr.js +0 -24
  163. package/dist/NumberControl-DkeQT1iR.js +0 -20
  164. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
  165. package/dist/OneOfDropdown-NAgE-mPP.js +0 -34
  166. package/dist/RadioControl-DjrysNQ_.js +0 -24
  167. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
  168. package/dist/SectionHeading-BU1W5lDr.js +0 -19
  169. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
  170. package/dist/SectionLayout-CJP4sYyB.js +0 -46
  171. package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
  172. package/dist/SettingsSubPanelLayout-YBNVPQOD.js +0 -61
  173. package/dist/SimpleButtonControl-ejyUwJdL.js +0 -61
  174. package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
  175. package/dist/SingleSelectControl-B0JgDv7j.js +0 -58
  176. package/dist/SingleSelectListBoxControl-ClQOxnxW.js +0 -235
  177. package/dist/SortListControl-mvJofiWn.js +0 -375
  178. package/dist/StyledListItem-BXz08pEQ.js +0 -72
  179. package/dist/TextAreaControl-S4aoqAv1.js +0 -111
  180. package/dist/TextControl-rJrjrBw8.js +0 -4
  181. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js +0 -50
  182. package/dist/TimeControl-DfhE8yu9.js +0 -42
  183. package/dist/TwinlistControlBase-D1l9t7Up.js +0 -40
  184. package/dist/TwinlistLoadingInfo-CQRx9cEu.js +0 -963
  185. package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
  186. package/dist/ValueSwitch-CUYV7v67.js +0 -131
  187. package/dist/ValueSwitchControl-IP9SxrUs.js +0 -20
  188. package/dist/VerticalLayout-D2eQSYgv.js +0 -30
  189. package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
  190. package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
  191. package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
  192. package/dist/index-CoRworrE.js +0 -322
  193. package/dist/magic-string.es-D-aKzDFf.js +0 -858
  194. package/dist/navigator-D_R-txCf.js +0 -7
  195. package/dist/popper-CRR--9mA.js +0 -907
  196. package/dist/reload-BVbCGubF.js +0 -17
  197. package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
  198. package/dist/svgWithTitle-Cr3Pu3wr.js +0 -18
  199. package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
  200. package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
@@ -1,470 +0,0 @@
1
- import { openBlock as h, createElementBlock as M, createElementVNode as j, toRef as I, resolveComponent as m, normalizeClass as N, createBlock as w, withCtx as v, createVNode as f, createCommentVNode as V, mergeProps as _, defineComponent as O, ref as H, computed as c, 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-lz0Rcu_N.js";
4
- import { S as Q, a as X, u as Y, T as Z } from "./TwinlistLoadingInfo-CQRx9cEu.js";
5
- import { u as $ } from "./MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js";
6
- import { f as P } from "./useSearch-hpyYQ_6y.js";
7
- import { C as ee } from "./Checkboxes-DIPjJhPO.js";
8
- import { x as te, _ as U } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
9
- import { V as ae } from "./ValueSwitch-CUYV7v67.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
- j("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: Q,
33
- Checkboxes: ee,
34
- ValueSwitch: ae,
35
- Twinlist: X
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: s }) => s).filter(Boolean), l = t.map((s) => s.id);
180
- return [...this.additionalPossibleTypes.filter(
181
- (s) => s && !l.includes(s.id)
182
- ), ...t].filter((s) => s && s.id !== "").filter(
183
- // remove duplicates
184
- (s, i, b) => i === b.findIndex((r) => r.id === s.id && r.text === s.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
- var t;
242
- return !!((t = this.selectedValues) != null && t.length);
243
- },
244
- itemMatches(t) {
245
- var a;
246
- return P[this.mode].test(
247
- this.mode === "type" ? (a = t.type) == null ? void 0 : a.id : t.text,
248
- this.normalizedSearchTerm,
249
- this.caseSensitivePattern,
250
- this.inversePattern
251
- );
252
- }
253
- }
254
- };
255
- function de(t, l, a, o, s, i) {
256
- const b = m("ValueSwitch"), r = m("Label"), g = m("FilterIcon"), T = m("SearchInput"), S = m("Checkboxes"), y = m("Twinlist");
257
- return h(), M("div", {
258
- class: N(["multi-mode-twinlist", { disabled: a.disabled }])
259
- }, [
260
- a.showMode ? (h(), w(r, {
261
- key: 0,
262
- active: a.withModeLabel,
263
- text: a.modeLabel,
264
- class: "label"
265
- }, {
266
- default: v(({ labelForId: p }) => [
267
- f(b, {
268
- id: p,
269
- ref: "mode",
270
- compact: a.compact,
271
- "model-value": a.mode,
272
- disabled: a.disabled,
273
- "possible-values": i.possibleModes,
274
- "onUpdate:modelValue": i.onModeChange
275
- }, null, 8, ["id", "compact", "model-value", "disabled", "possible-values", "onUpdate:modelValue"])
276
- ]),
277
- _: 1
278
- }, 8, ["active", "text"])) : V("", !0),
279
- a.mode === "regex" || a.mode === "wildcard" ? (h(), w(r, {
280
- key: 1,
281
- active: a.withPatternLabel,
282
- text: a.patternLabel,
283
- class: "label"
284
- }, {
285
- default: v(({ labelForId: p }) => [
286
- f(T, {
287
- id: p,
288
- ref: "search",
289
- "model-value": a.pattern,
290
- label: a.patternLabel,
291
- "initial-case-sensitive-search": a.caseSensitivePattern,
292
- "initial-inverse-search": a.inversePattern,
293
- placeholder: "Pattern",
294
- "show-case-sensitive-search-button": "",
295
- "show-inverse-search-button": "",
296
- disabled: a.disabled,
297
- tooltips: {
298
- inverseSearch: "Move matching to other side"
299
- },
300
- compact: a.compact,
301
- "onUpdate:modelValue": i.onPatternInput,
302
- onToggleCaseSensitiveSearch: i.onToggleCaseSensitivePattern,
303
- onToggleInverseSearch: i.onToggleInversePattern
304
- }, {
305
- icon: v(() => [
306
- f(g)
307
- ]),
308
- _: 2
309
- }, 1032, ["id", "model-value", "label", "initial-case-sensitive-search", "initial-inverse-search", "disabled", "compact", "onUpdate:modelValue", "onToggleCaseSensitiveSearch", "onToggleInverseSearch"])
310
- ]),
311
- _: 1
312
- }, 8, ["active", "text"])) : V("", !0),
313
- a.mode === "type" && i.possibleTypes.length > 0 ? (h(), w(r, {
314
- key: 2,
315
- active: a.withTypesLabel,
316
- text: a.typesLabel,
317
- class: "label"
318
- }, {
319
- default: v(() => [
320
- f(S, {
321
- "model-value": a.selectedTypes,
322
- "possible-values": i.possibleTypes,
323
- disabled: a.disabled,
324
- "onUpdate:modelValue": i.onTypeInput
325
- }, null, 8, ["model-value", "possible-values", "disabled", "onUpdate:modelValue"])
326
- ]),
327
- _: 1
328
- }, 8, ["active", "text"])) : V("", !0),
329
- f(y, _(t.$attrs, {
330
- ref: "twinlist",
331
- disabled: i.selectionDisabled,
332
- "show-search": a.mode === "manual" && a.showSearch,
333
- "model-value": i.twinlistModelValue,
334
- "possible-values": a.possibleValues,
335
- compact: a.compact,
336
- "onUpdate:modelValue": i.onManualInput
337
- }), null, 16, ["disabled", "show-search", "model-value", "possible-values", "compact", "onUpdate:modelValue"])
338
- ], 2);
339
- }
340
- const re = /* @__PURE__ */ U(oe, [["render", de], ["__scopeId", "data-v-09b6454f"]]), ue = /* @__PURE__ */ O({
341
- __name: "MultimodeTwinlistControl",
342
- props: {
343
- control: {},
344
- handleChange: {},
345
- changeValue: {},
346
- disabled: { type: Boolean },
347
- isValid: { type: Boolean },
348
- onRegisterValidation: {},
349
- labelForId: {},
350
- twinlistSize: { default: 10 },
351
- twinlistLeftLabel: { default: "Excludes" },
352
- showUnknownValues: { type: Boolean, default: !1 },
353
- twinlistRightLabel: { default: "Includes" }
354
- },
355
- setup(t) {
356
- const l = t;
357
- let a = () => {
358
- };
359
- const o = (e) => {
360
- const n = G(l.control.data, e);
361
- l.changeValue(n), a == null || a(n.manualFilter);
362
- }, s = (e) => {
363
- o({ selected: e });
364
- }, i = (e) => {
365
- if (e !== null)
366
- if ("includedValues" in e) {
367
- const { includedValues: n, excludedValues: d, includeUnknownValues: u } = e;
368
- if (!n || !d)
369
- return;
370
- o({
371
- manualFilter: {
372
- manuallySelected: n,
373
- manuallyDeselected: d,
374
- includeUnknownColumns: u
375
- }
376
- });
377
- } else
378
- o({ manualFilter: { manuallySelected: e } });
379
- }, b = (e) => {
380
- o({ patternFilter: { pattern: e } });
381
- }, r = (e) => {
382
- o({ mode: e.toUpperCase() });
383
- }, g = (e, n) => {
384
- o({ typeFilter: { selectedTypes: e, typeDisplays: n } });
385
- }, T = (e) => {
386
- o({ patternFilter: { isInverted: e } });
387
- }, S = (e) => {
388
- o({ patternFilter: { isCaseSensitive: e } });
389
- }, { possibleValues: y } = J(
390
- I(l, "control")
391
- ), p = H([]), { selectedAndDeselected: C, setCurrentManualFilter: k } = $({
392
- data: c(() => l.control.data),
393
- possibleValueIds: c(
394
- () => {
395
- var e;
396
- return ((e = y.value) == null ? void 0 : e.map(({ id: n }) => n)) ?? null;
397
- }
398
- )
399
- });
400
- a = k;
401
- const x = c(() => {
402
- const { selected: e, deselected: n } = C.value;
403
- return l.showUnknownValues ? {
404
- includedValues: e,
405
- excludedValues: n,
406
- includeUnknownValues: l.control.data.manualFilter.includeUnknownColumns
407
- } : e;
408
- }), B = c(
409
- () => C.value.selected === null ? W(Z) : null
410
- ), F = (e) => typeof e > "u" ? {} : e.reduce(
411
- (n, { id: d, text: u }) => ({ ...n, [d]: u }),
412
- {}
413
- ), z = () => {
414
- const e = l.control.data.typeFilter;
415
- if (!e)
416
- return [];
417
- const n = e.selectedTypes, d = F(
418
- e.typeDisplays
419
- );
420
- return n.map((u) => ({
421
- id: u,
422
- text: d[u] || u
423
- }));
424
- };
425
- p.value = z();
426
- const D = c(
427
- () => {
428
- var e, n;
429
- return !!((n = (e = y.value) == null ? void 0 : e[0]) != null && n.hasOwnProperty("type"));
430
- }
431
- ), { excludedLabel: R, includedLabel: A } = K(
432
- I(l, "control")
433
- ), q = c(() => R ?? l.twinlistLeftLabel), E = c(() => A ?? l.twinlistRightLabel);
434
- return (e, n) => {
435
- var d;
436
- return h(), w(L(re), _(e.$attrs, {
437
- id: e.labelForId,
438
- disabled: e.disabled,
439
- "with-types": D.value,
440
- "selected-types": (d = e.control.data.typeFilter) == null ? void 0 : d.selectedTypes,
441
- "additional-possible-types": p.value,
442
- pattern: e.control.data.patternFilter.pattern,
443
- mode: e.control.data.mode.toLowerCase(),
444
- "case-sensitive-pattern": e.control.data.patternFilter.isCaseSensitive,
445
- "empty-state-component": B.value,
446
- "inverse-pattern": e.control.data.patternFilter.isInverted,
447
- "manual-selection": x.value,
448
- "include-unknown-values": e.control.data.manualFilter.includeUnknownColumns,
449
- "mode-label": "Selection mode",
450
- "possible-values": L(y) ?? [],
451
- size: e.twinlistSize,
452
- "left-label": q.value,
453
- "right-label": E.value,
454
- "is-valid": e.isValid,
455
- compact: "",
456
- "show-resize-handle": "",
457
- "onUpdate:selected": s,
458
- "onUpdate:manualSelection": i,
459
- "onUpdate:pattern": b,
460
- "onUpdate:mode": r,
461
- "onUpdate:selectedTypes": g,
462
- "onUpdate:inversePattern": T,
463
- "onUpdate:caseSensitivePattern": S
464
- }), 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"]);
465
- };
466
- }
467
- }), ge = /* @__PURE__ */ U(ue, [["__scopeId", "data-v-37fe7036"]]);
468
- export {
469
- ge as default
470
- };
@@ -1,24 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as a } from "vue";
2
- import l from "./MultimodeTwinlistControl-B2Jven29.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) => (o(), t(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, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
- import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.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) => (n(), t(a, r(e.$props, { type: "double" }), null, 16));
16
- }
17
- });
18
- export {
19
- s as default
20
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as v, computed as r, openBlock as V, createBlock as E, unref as f } from "vue";
2
- import { u as y } from "./useBuiltinValidations-DP7OS71z.js";
3
- import { N as b } from "./NumberInput-DJ38AGiR.js";
4
- const g = 1, h = 0.1, _ = /* @__PURE__ */ v({
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(d) {
17
- const o = d, s = o.type === "integer" ? g : h, 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 = y(
18
- {
19
- min: i,
20
- max: u
21
- },
22
- o
23
- ), t = r(() => c.value.min), l = r(() => c.value.max), p = () => {
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) => {
34
- var a, m;
35
- return V(), E(f(b), {
36
- id: e.labelForId,
37
- class: "number-input",
38
- disabled: e.disabled,
39
- "model-value": e.control.data,
40
- type: e.type,
41
- min: (a = t.value) == null ? void 0 : a.min,
42
- max: (m = l.value) == null ? void 0 : m.max,
43
- "is-valid": e.isValid,
44
- compact: "",
45
- "onUpdate:modelValue": e.changeValue,
46
- onFocusout: p
47
- }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]);
48
- };
49
- }
50
- });
51
- export {
52
- _
53
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as i, computed as u, openBlock as c, createBlock as m, unref as s } from "vue";
2
- import { o as b } from "./index-Blg1O3Fz.js";
3
- import { D as f } from "./Dropdown-CJj0CUA8.js";
4
- const F = /* @__PURE__ */ i({
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(p) {
16
- var l, n;
17
- const e = p, r = ((n = (l = e.control.schema) == null ? void 0 : l.oneOf) == null ? void 0 : n.map(b)) ?? [], a = u({
18
- get: () => e.control.data ?? "",
19
- set: e.changeValue
20
- });
21
- return (o, t) => (c(), m(s(f), {
22
- id: o.labelForId,
23
- modelValue: a.value,
24
- "onUpdate:modelValue": t[0] || (t[0] = (d) => a.value = d),
25
- "possible-values": s(r),
26
- ariaLabel: o.control.label,
27
- disabled: o.disabled,
28
- compact: ""
29
- }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled"]));
30
- }
31
- });
32
- export {
33
- F as default
34
- };
@@ -1,24 +0,0 @@
1
- import { defineComponent as e, openBlock as n, createBlock as t, mergeProps as a } from "vue";
2
- import { _ as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js";
3
- import { _ as p } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.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) => (n(), t(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
- };