@knime/jsonforms 1.6.9 → 1.7.0
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-D7gkxtYi.js +22 -0
- package/dist/{BaseButton-B6Z2uYGV.js → BaseButton-nH3iSIOK.js} +1 -1
- package/dist/{Button-B27OsWa6.js → Button-DnQZFkaO.js} +2 -2
- package/dist/{Checkbox-Bl3rvtXe.js → Checkbox-DB9YeQa-.js} +1 -1
- package/dist/{CheckboxControl-BAIwtCZF.js → CheckboxControl-hkHWMBsv.js} +2 -2
- package/dist/{Checkboxes-Cb1lJdBP.js → Checkboxes-C_qM6Iao.js} +2 -2
- package/dist/{CheckboxesControl-CQSzjloD.js → CheckboxesControl-DRNda60A.js} +3 -3
- package/dist/{ComboBoxControl-CmY_qMv_.js → ComboBoxControl-Dd0UZdMx.js} +77 -89
- package/dist/{DateControl-BL2H5BjS.js → DateControl-BmqofCSf.js} +1 -1
- package/dist/{DateTimeControl-BYuJUqBc.js → DateTimeControl-B7uvqC1s.js} +2 -2
- package/dist/{DateTimeFormatInput-BagQnUJb.js → DateTimeFormatInput-CsEAVqAA.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-DmbGr3EH.js → DateTimeFormatPickerControl-BK80kZf0.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CGCdH2_0.js → DateTimeFormatPickerWithTypeControl-CS8APLBp.js} +3 -3
- package/dist/{DateTimeInput-Cbw4cu1f.js → DateTimeInput-DP2yHD9r.js} +14 -13
- package/dist/{Dropdown-xSUsqbQu.js → Dropdown-D8qp_4wZ.js} +30 -29
- package/dist/DropdownControl-B2fs1yBj.js +84 -0
- package/dist/{FunctionButton-BjutjqfY.js → FunctionButton-Bo0NcfGh.js} +2 -2
- package/dist/{HorizontalLayout-HzwqDGLQ.js → HorizontalLayout-Bg5vYcO1.js} +1 -1
- package/dist/{InputField-CWbS01h9.js → InputField-DRLCzzDf.js} +1 -1
- package/dist/{IntegerControl-BNz67bUk.js → IntegerControl-HLRox7w7.js} +1 -1
- package/dist/{IntervalControl-jM22Q0CQ.js → IntervalControl-D-xUIRW3.js} +4 -4
- package/dist/LoadingDropdown-DkxltiwQ.js +40 -0
- package/dist/MultimodeTwinlistControl-CV2v4Y5n.js +526 -0
- package/dist/{MultiselectListBox-D5smzcVZ.js → MultiselectListBox-BFQxtoyR.js} +1 -1
- package/dist/{NameFilter-B9TOgIBA.js → NameFilter-BxfjNVu-.js} +1 -1
- package/dist/{NumberControl-YCMcJfZB.js → NumberControl-Df91UAXl.js} +1 -1
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DLqtcp04.js +53 -0
- package/dist/{NumberInput-DO8rNjya.js → NumberInput-BLlTeOig.js} +1 -1
- package/dist/OneOfDropdown-CLPbmMt7.js +34 -0
- package/dist/{RadioControl-DK_i_SC9.js → RadioControl-CDi8WbsE.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-B_Dxf3fU.js → RadioControlBase.vue_vue_type_script_setup_true_lang-B6clHvd5.js} +3 -3
- package/dist/{RichTextControl-Bp6N-XYM.js → RichTextControl-YMNSyY3O.js} +6 -6
- package/dist/{SectionHeading-wDPgvJNi.js → SectionHeading-D8h1zy67.js} +1 -1
- package/dist/{SectionLayout-DYLzJvJs.js → SectionLayout-DBiG5Ubc.js} +3 -3
- package/dist/{SettingsSubPanel-DTubXv1M.js → SettingsSubPanel--LD_hsgG.js} +2 -2
- package/dist/{SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js → SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js} +1024 -1022
- package/dist/{SettingsSubPanelLayout-CAtNgx_A.js → SettingsSubPanelLayout-By5U2J68.js} +5 -5
- package/dist/{SimpleButtonControl-D2slFPzs.js → SimpleButtonControl-B47jBtrM.js} +6 -6
- package/dist/SimpleTwinlistControl-DoRJkKPs.js +22 -0
- package/dist/SingleSelectControl-zE9ck9JX.js +58 -0
- package/dist/SortListControl-C5DXqqPG.js +372 -0
- package/dist/{TextAreaControl-CxNkzjdq.js → TextAreaControl-D2-nyO1m.js} +1 -1
- package/dist/{TextControl-j8Bk4RzX.js → TextControl-Ss9_5V2f.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-DaEoFVBw.js +93 -0
- package/dist/{TimeControl-vGEtfCEt.js → TimeControl-CblSq-0a.js} +2 -2
- package/dist/TwinlistControlBase-Xe8xQAyG.js +40 -0
- package/dist/{TwinlistLoadingInfo-DnhM2U43.js → TwinlistLoadingInfo-BHhpo_7N.js} +12 -11
- package/dist/TypedNameFilter-N2eeG2VM.js +25 -0
- package/dist/{ValueSwitch-CGXtJV-B.js → ValueSwitch-BI5z5U3F.js} +1 -1
- package/dist/{ValueSwitchControl-dHPRa3vB.js → ValueSwitchControl-CixwDXQs.js} +1 -1
- package/dist/{VerticalLayout-BUWGeKPt.js → VerticalLayout-B8RzC8Vj.js} +2 -2
- package/dist/{VerticalLayoutBase-Tp2IGikj.js → VerticalLayoutBase-Bj_upYbt.js} +1 -1
- package/dist/{ZonedDateTimeControl-Ddjugjzp.js → ZonedDateTimeControl-CZdpjJEK.js} +4 -4
- package/dist/_baseEach-FP8ISlsz.js +31 -0
- package/dist/_baseIteratee-DhaGkQLM.js +518 -0
- package/dist/_getTag-DiktJuv_.js +132 -0
- package/dist/index-Blg1O3Fz.js +15 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/isObjectLike-BatpeCIi.js +29 -0
- package/dist/isSymbol-C3_SC0Qp.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +8 -8
- package/dist/{localTimeUtils-DIFjv2_A.js → localTimeUtils-Dp9bEJDh.js} +1 -1
- package/dist/{magic-string.es-BbItKD7x.js → magic-string.es-CeNBRh1A.js} +1 -1
- package/dist/src/constants/inputFormats.d.ts +2 -2
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +7 -1
- package/dist/src/renderers/defaultRenderers.d.ts +24 -589
- package/dist/src/renderers/dropdownRenderer.d.ts +55 -115
- package/dist/src/renderers/fallbackRenderers.d.ts +1 -241
- package/dist/src/renderers/nameFilterRenderer.d.ts +1 -1
- package/dist/src/renderers/singleSelectRenderer.d.ts +8 -0
- package/dist/src/renderers/sortListRenderer.d.ts +0 -8
- package/dist/src/renderers/twinlistRenderer.d.ts +1 -1
- package/dist/src/renderers/typedNameFilterRenderer.d.ts +1 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +7 -12
- package/dist/src/types/provided.d.ts +0 -2
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -86
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -13
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +20 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +4 -4
- package/dist/src/uiComponents/composables/useBuiltinValidations.d.ts +43 -0
- package/dist/src/uiComponents/composables/usePossibleValues.d.ts +24 -0
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +2 -2
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -99
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +36 -0
- package/dist/src/uiComponents/twinlist/{ColumnFilter.vue.d.ts → TypedNameFilter.vue.d.ts} +1 -1
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +1 -1
- package/dist/src/utils/index.d.ts +0 -2
- package/dist/{svgWithTitle-Cgc-TGWi.js → svgWithTitle-B5FsAPop.js} +1 -1
- package/dist/testUtils/component.d.ts +4 -0
- package/dist/testing.js +80 -63
- package/dist/toString-B9O7P854.js +26 -0
- package/dist/useBuiltinValidations-8VwUv3RT.js +52 -0
- package/dist/usePossibleValues-CrNcBbpN.js +26 -0
- package/package.json +3 -3
- package/dist/AnyOfTwinlist-C3gbWpq1.js +0 -22
- package/dist/ColumnFilter-DOIYetcH.js +0 -24
- package/dist/ColumnSelect-B8IH25EN.js +0 -68
- package/dist/DropdownControl-DGfi9k8S.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BvodaKZi.js +0 -237
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CPj9t6fL.js +0 -60
- package/dist/OneOfDropdown-BoOe32dm.js +0 -35
- package/dist/SimpleTwinlistControl-CrLWO2B2.js +0 -50
- package/dist/SortListControl-v_nVoQsh.js +0 -366
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-qt4UxKcl.js +0 -87
- package/dist/TwinlistControl-Dw5uSnOi.js +0 -554
- package/dist/_baseAssignValue-BPMLYzDH.js +0 -19
- package/dist/_baseEach-B8N_Gx8P.js +0 -31
- package/dist/_baseIsEqual-DmkT9Nkc.js +0 -248
- package/dist/_baseIteratee-DvBmrhnf.js +0 -104
- package/dist/_getTag-DS8v0_uf.js +0 -312
- package/dist/getPossibleValuesFromUiSchema-hQj1TCOR.js +0 -39
- package/dist/index-hm05O8UX.js +0 -16
- package/dist/isSymbol-OFe5xy2f.js +0 -34
- package/dist/src/renderers/columnFilterRenderer.d.ts +0 -1
- package/dist/src/renderers/columnSelectRenderer.d.ts +0 -265
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +0 -26
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +0 -10
- package/dist/toString-DkbNkGT4.js +0 -25
- /package/dist/src/uiComponents/twinlist/{TwinlistControl.vue.d.ts → MultimodeTwinlistControl.vue.d.ts} +0 -0
|
@@ -1,554 +0,0 @@
|
|
|
1
|
-
import { openBlock as f, createElementBlock as k, createElementVNode as H, toRef as W, resolveComponent as y, normalizeClass as G, createBlock as I, withCtx as C, createVNode as g, createCommentVNode as P, mergeProps as x, ref as M, watch as _, defineComponent as J, computed as u, markRaw as K, unref as L } from "vue";
|
|
2
|
-
import { g as U, a as Q, m as X } from "./index-hm05O8UX.js";
|
|
3
|
-
import { w as Y } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
|
|
4
|
-
import { o as Z, _ as B, u as $, k as ee } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js";
|
|
5
|
-
import { S as te, T as le, u as ae, a as ne } from "./TwinlistLoadingInfo-DnhM2U43.js";
|
|
6
|
-
import { f as F } from "./useSearch-hpyYQ_6y.js";
|
|
7
|
-
import { C as se } from "./Checkboxes-Cb1lJdBP.js";
|
|
8
|
-
import { V as oe } from "./ValueSwitch-CGXtJV-B.js";
|
|
9
|
-
const ie = {
|
|
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
|
-
}, de = /* @__PURE__ */ H("path", { d: "m13.31 27.81 5.11-3.19v-9.15L28.95 4.19H3.05l10.26 11.28z" }, null, -1), re = [
|
|
16
|
-
de
|
|
17
|
-
];
|
|
18
|
-
function ce(t, a) {
|
|
19
|
-
return f(), k("svg", ie, [...re]);
|
|
20
|
-
}
|
|
21
|
-
const ue = { render: ce }, me = {
|
|
22
|
-
manual: "Manual",
|
|
23
|
-
wildcard: "Wildcard",
|
|
24
|
-
regex: "Regex",
|
|
25
|
-
type: "Type"
|
|
26
|
-
}, pe = {
|
|
27
|
-
name: "MultiModeTwinlist",
|
|
28
|
-
components: {
|
|
29
|
-
Label: Z,
|
|
30
|
-
FilterIcon: ue,
|
|
31
|
-
SearchInput: te,
|
|
32
|
-
Checkboxes: se,
|
|
33
|
-
ValueSwitch: oe,
|
|
34
|
-
Twinlist: le
|
|
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: !1,
|
|
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(t) {
|
|
163
|
-
const { includedValues: a } = ae(
|
|
164
|
-
W(t, "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: t }) => t);
|
|
176
|
-
},
|
|
177
|
-
possibleTypes() {
|
|
178
|
-
const t = this.possibleValues.map(({ type: o }) => o).filter(Boolean), a = t.map((o) => o.id);
|
|
179
|
-
return [...this.additionalPossibleTypes.filter(
|
|
180
|
-
(o) => o && !a.includes(o.id)
|
|
181
|
-
), ...t].filter((o) => o && o.id !== "").filter(
|
|
182
|
-
// remove duplicates
|
|
183
|
-
(o, s, d) => s === d.findIndex((r) => r.id === o.id && r.text === o.text)
|
|
184
|
-
);
|
|
185
|
-
},
|
|
186
|
-
matchingValueIds() {
|
|
187
|
-
return this.possibleValues.filter((t) => this.itemMatches(t)).map((t) => t.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 t = Object.entries(me).map(([a, l]) => ({ id: a, text: l }));
|
|
206
|
-
return this.withTypes || (t = t.filter((a) => a.id !== "type")), t;
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
watch: {
|
|
210
|
-
selectedValues: {
|
|
211
|
-
immediate: !0,
|
|
212
|
-
handler(t, a) {
|
|
213
|
-
!a || t === null || (t.length !== a.length || a.some((l, n) => l !== t[n])) && this.$emit("update:selected", this.selectedValues);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
methods: {
|
|
218
|
-
onManualInput(t) {
|
|
219
|
-
this.mode === "manual" && this.$emit("update:manualSelection", t);
|
|
220
|
-
},
|
|
221
|
-
onPatternInput(t) {
|
|
222
|
-
this.$emit("update:pattern", t);
|
|
223
|
-
},
|
|
224
|
-
onTypeInput(t) {
|
|
225
|
-
this.$emit("update:selectedTypes", t, this.possibleTypes);
|
|
226
|
-
},
|
|
227
|
-
onModeChange(t) {
|
|
228
|
-
this.$emit("update:mode", t);
|
|
229
|
-
},
|
|
230
|
-
onToggleCaseSensitivePattern(t) {
|
|
231
|
-
this.$emit("update:caseSensitivePattern", t);
|
|
232
|
-
},
|
|
233
|
-
onToggleInversePattern(t) {
|
|
234
|
-
this.$emit("update:inversePattern", t);
|
|
235
|
-
},
|
|
236
|
-
validate() {
|
|
237
|
-
return this.$refs.twinlist.validate();
|
|
238
|
-
},
|
|
239
|
-
hasSelection() {
|
|
240
|
-
var t;
|
|
241
|
-
return !!((t = this.selectedValues) != null && t.length);
|
|
242
|
-
},
|
|
243
|
-
itemMatches(t) {
|
|
244
|
-
var l;
|
|
245
|
-
return F[this.mode].test(
|
|
246
|
-
this.mode === "type" ? (l = t.type) == null ? void 0 : l.id : t.text,
|
|
247
|
-
this.normalizedSearchTerm,
|
|
248
|
-
this.caseSensitivePattern,
|
|
249
|
-
this.inversePattern
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
function he(t, a, l, n, o, s) {
|
|
255
|
-
const d = y("ValueSwitch"), r = y("Label"), b = y("FilterIcon"), w = y("SearchInput"), v = y("Checkboxes"), p = y("Twinlist");
|
|
256
|
-
return f(), k("div", {
|
|
257
|
-
class: G(["multi-mode-twinlist", { disabled: l.disabled }])
|
|
258
|
-
}, [
|
|
259
|
-
l.showMode ? (f(), I(r, {
|
|
260
|
-
key: 0,
|
|
261
|
-
active: l.withModeLabel,
|
|
262
|
-
text: l.modeLabel,
|
|
263
|
-
class: "label"
|
|
264
|
-
}, {
|
|
265
|
-
default: C(({ labelForId: c }) => [
|
|
266
|
-
g(d, {
|
|
267
|
-
id: c,
|
|
268
|
-
ref: "mode",
|
|
269
|
-
compact: l.compact,
|
|
270
|
-
"model-value": l.mode,
|
|
271
|
-
disabled: l.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"])) : P("", !0),
|
|
278
|
-
l.mode === "regex" || l.mode === "wildcard" ? (f(), I(r, {
|
|
279
|
-
key: 1,
|
|
280
|
-
active: l.withPatternLabel,
|
|
281
|
-
text: l.patternLabel,
|
|
282
|
-
class: "label"
|
|
283
|
-
}, {
|
|
284
|
-
default: C(({ labelForId: c }) => [
|
|
285
|
-
g(w, {
|
|
286
|
-
id: c,
|
|
287
|
-
ref: "search",
|
|
288
|
-
"model-value": l.pattern,
|
|
289
|
-
label: l.patternLabel,
|
|
290
|
-
"initial-case-sensitive-search": l.caseSensitivePattern,
|
|
291
|
-
"initial-inverse-search": l.inversePattern,
|
|
292
|
-
placeholder: "Pattern",
|
|
293
|
-
"show-case-sensitive-search-button": "",
|
|
294
|
-
"show-inverse-search-button": "",
|
|
295
|
-
disabled: l.disabled,
|
|
296
|
-
tooltips: {
|
|
297
|
-
inverseSearch: "Move matching to other side"
|
|
298
|
-
},
|
|
299
|
-
compact: l.compact,
|
|
300
|
-
"onUpdate:modelValue": s.onPatternInput,
|
|
301
|
-
onToggleCaseSensitiveSearch: s.onToggleCaseSensitivePattern,
|
|
302
|
-
onToggleInverseSearch: s.onToggleInversePattern
|
|
303
|
-
}, {
|
|
304
|
-
icon: C(() => [
|
|
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"])) : P("", !0),
|
|
312
|
-
l.mode === "type" && s.possibleTypes.length > 0 ? (f(), I(r, {
|
|
313
|
-
key: 2,
|
|
314
|
-
active: l.withTypesLabel,
|
|
315
|
-
text: l.typesLabel,
|
|
316
|
-
class: "label"
|
|
317
|
-
}, {
|
|
318
|
-
default: C(() => [
|
|
319
|
-
g(v, {
|
|
320
|
-
"model-value": l.selectedTypes,
|
|
321
|
-
"possible-values": s.possibleTypes,
|
|
322
|
-
disabled: l.disabled,
|
|
323
|
-
"onUpdate:modelValue": s.onTypeInput
|
|
324
|
-
}, null, 8, ["model-value", "possible-values", "disabled", "onUpdate:modelValue"])
|
|
325
|
-
]),
|
|
326
|
-
_: 1
|
|
327
|
-
}, 8, ["active", "text"])) : P("", !0),
|
|
328
|
-
g(p, x(t.$attrs, {
|
|
329
|
-
ref: "twinlist",
|
|
330
|
-
disabled: s.selectionDisabled,
|
|
331
|
-
"show-search": l.mode === "manual" && l.showSearch,
|
|
332
|
-
"model-value": s.twinlistModelValue,
|
|
333
|
-
"possible-values": l.possibleValues,
|
|
334
|
-
compact: l.compact,
|
|
335
|
-
"onUpdate:modelValue": s.onManualInput
|
|
336
|
-
}), null, 16, ["disabled", "show-search", "model-value", "possible-values", "compact", "onUpdate:modelValue"])
|
|
337
|
-
], 2);
|
|
338
|
-
}
|
|
339
|
-
const ve = /* @__PURE__ */ B(pe, [["render", he], ["__scopeId", "data-v-06592f92"]]), ye = ({
|
|
340
|
-
knownValuesSide: t,
|
|
341
|
-
possibleValueIds: a,
|
|
342
|
-
unknownValuesSide: l
|
|
343
|
-
}) => {
|
|
344
|
-
const n = new Set(t.previous), o = new Set(a), s = (d) => U(d, o);
|
|
345
|
-
l.setNext([
|
|
346
|
-
...s(l.previous),
|
|
347
|
-
...U(a, n)
|
|
348
|
-
]), t.setNext([
|
|
349
|
-
...s(t.previous),
|
|
350
|
-
...Q(a, n)
|
|
351
|
-
]);
|
|
352
|
-
}, fe = ({
|
|
353
|
-
data: t,
|
|
354
|
-
possibleValueIds: a
|
|
355
|
-
}) => {
|
|
356
|
-
const l = M({
|
|
357
|
-
selected: null,
|
|
358
|
-
deselected: null
|
|
359
|
-
}), n = M(null), o = (d) => {
|
|
360
|
-
n.value = d;
|
|
361
|
-
}, s = () => {
|
|
362
|
-
if (!n.value || !a.value)
|
|
363
|
-
return;
|
|
364
|
-
let d, r;
|
|
365
|
-
const { manuallyDeselected: b, manuallySelected: w, includeUnknownColumns: v } = n.value, p = {
|
|
366
|
-
previous: b,
|
|
367
|
-
setNext: (S) => {
|
|
368
|
-
d = S;
|
|
369
|
-
}
|
|
370
|
-
}, c = {
|
|
371
|
-
previous: w,
|
|
372
|
-
setNext: (S) => {
|
|
373
|
-
r = S;
|
|
374
|
-
}
|
|
375
|
-
}, T = v ? p : c, V = v ? c : p;
|
|
376
|
-
ye({
|
|
377
|
-
possibleValueIds: a.value,
|
|
378
|
-
knownValuesSide: T,
|
|
379
|
-
unknownValuesSide: V
|
|
380
|
-
}), l.value = {
|
|
381
|
-
selected: r,
|
|
382
|
-
deselected: d
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
return _(
|
|
386
|
-
() => t.value.manualFilter,
|
|
387
|
-
(d) => {
|
|
388
|
-
Object.is(n.value, d) ? l.value = {
|
|
389
|
-
selected: d.manuallySelected,
|
|
390
|
-
deselected: d.manuallyDeselected
|
|
391
|
-
} : (n.value = d, s());
|
|
392
|
-
},
|
|
393
|
-
{ immediate: !0 }
|
|
394
|
-
), _(() => a.value, s, {
|
|
395
|
-
immediate: !0
|
|
396
|
-
}), { selectedAndDeselected: l, setCurrentManualFilter: o };
|
|
397
|
-
}, be = /* @__PURE__ */ J({
|
|
398
|
-
__name: "TwinlistControl",
|
|
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(t) {
|
|
413
|
-
const a = t;
|
|
414
|
-
let l;
|
|
415
|
-
const n = (e) => {
|
|
416
|
-
const i = X(a.control.data, e);
|
|
417
|
-
a.changeValue(i), l == null || l(i.manualFilter);
|
|
418
|
-
}, o = (e) => {
|
|
419
|
-
n({ selected: e });
|
|
420
|
-
}, s = (e) => {
|
|
421
|
-
if (e !== null)
|
|
422
|
-
if ("includedValues" in e) {
|
|
423
|
-
const { includedValues: i, excludedValues: m, includeUnknownValues: h } = e;
|
|
424
|
-
if (!i || !m)
|
|
425
|
-
return;
|
|
426
|
-
n({
|
|
427
|
-
manualFilter: {
|
|
428
|
-
manuallySelected: i,
|
|
429
|
-
manuallyDeselected: m,
|
|
430
|
-
includeUnknownColumns: h
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
} else
|
|
434
|
-
n({ manualFilter: { manuallySelected: e } });
|
|
435
|
-
}, d = (e) => {
|
|
436
|
-
n({ patternFilter: { pattern: e } });
|
|
437
|
-
}, r = (e) => {
|
|
438
|
-
n({ mode: e.toUpperCase() });
|
|
439
|
-
}, b = (e, i) => {
|
|
440
|
-
n({ typeFilter: { selectedTypes: e, typeDisplays: i } });
|
|
441
|
-
}, w = (e) => {
|
|
442
|
-
n({ patternFilter: { isInverted: e } });
|
|
443
|
-
}, v = (e) => {
|
|
444
|
-
n({ patternFilter: { isCaseSensitive: e } });
|
|
445
|
-
}, p = u(
|
|
446
|
-
() => {
|
|
447
|
-
var e;
|
|
448
|
-
return (e = a.control.uischema.options) == null ? void 0 : e.choicesProvider;
|
|
449
|
-
}
|
|
450
|
-
), c = Y(
|
|
451
|
-
$(p, null),
|
|
452
|
-
a.control
|
|
453
|
-
), T = M([]), { selectedAndDeselected: V, setCurrentManualFilter: S } = fe({
|
|
454
|
-
data: u(() => a.control.data),
|
|
455
|
-
possibleValueIds: u(
|
|
456
|
-
() => {
|
|
457
|
-
var e;
|
|
458
|
-
return ((e = c.value) == null ? void 0 : e.map(({ id: i }) => i)) ?? null;
|
|
459
|
-
}
|
|
460
|
-
)
|
|
461
|
-
});
|
|
462
|
-
l = S;
|
|
463
|
-
const z = u(() => {
|
|
464
|
-
const { selected: e, deselected: i } = V.value;
|
|
465
|
-
return a.showUnknownValues ? {
|
|
466
|
-
includedValues: e,
|
|
467
|
-
excludedValues: i,
|
|
468
|
-
includeUnknownValues: a.control.data.manualFilter.includeUnknownColumns
|
|
469
|
-
} : e;
|
|
470
|
-
}), D = u(
|
|
471
|
-
() => V.value.selected === null ? K(ne) : null
|
|
472
|
-
), N = (e) => typeof e > "u" ? {} : e.reduce(
|
|
473
|
-
(i, { id: m, text: h }) => ({ ...i, [m]: h }),
|
|
474
|
-
{}
|
|
475
|
-
), j = () => {
|
|
476
|
-
const e = a.control.data.typeFilter;
|
|
477
|
-
if (!e)
|
|
478
|
-
return [];
|
|
479
|
-
const i = e.selectedTypes, m = N(
|
|
480
|
-
e.typeDisplays
|
|
481
|
-
);
|
|
482
|
-
return i.map((h) => ({
|
|
483
|
-
id: h,
|
|
484
|
-
text: m[h] || h
|
|
485
|
-
}));
|
|
486
|
-
};
|
|
487
|
-
T.value = j(), p.value || ee("getPossibleValuesFromUiSchema")(a.control).then((e) => {
|
|
488
|
-
c.value = e;
|
|
489
|
-
});
|
|
490
|
-
const A = u(
|
|
491
|
-
() => {
|
|
492
|
-
var e, i;
|
|
493
|
-
return !!((i = (e = c.value) == null ? void 0 : e[0]) != null && i.hasOwnProperty("type"));
|
|
494
|
-
}
|
|
495
|
-
), R = u(
|
|
496
|
-
() => {
|
|
497
|
-
var e;
|
|
498
|
-
return ((e = a.control.uischema.options) == null ? void 0 : e.showMode) ?? !0;
|
|
499
|
-
}
|
|
500
|
-
), q = u(
|
|
501
|
-
() => {
|
|
502
|
-
var e;
|
|
503
|
-
return ((e = a.control.uischema.options) == null ? void 0 : e.showSearch) ?? !0;
|
|
504
|
-
}
|
|
505
|
-
), E = u(
|
|
506
|
-
() => {
|
|
507
|
-
var e;
|
|
508
|
-
return ((e = a.control.uischema.options) == null ? void 0 : e.excludedLabel) ?? a.twinlistLeftLabel;
|
|
509
|
-
}
|
|
510
|
-
), O = u(
|
|
511
|
-
() => {
|
|
512
|
-
var e;
|
|
513
|
-
return ((e = a.control.uischema.options) == null ? void 0 : e.includedLabel) ?? a.twinlistRightLabel;
|
|
514
|
-
}
|
|
515
|
-
);
|
|
516
|
-
return (e, i) => {
|
|
517
|
-
var m;
|
|
518
|
-
return f(), I(L(ve), x(e.$attrs, {
|
|
519
|
-
id: e.labelForId,
|
|
520
|
-
"show-mode": R.value,
|
|
521
|
-
"show-search": q.value,
|
|
522
|
-
disabled: e.disabled,
|
|
523
|
-
"with-types": A.value,
|
|
524
|
-
"selected-types": (m = e.control.data.typeFilter) == null ? void 0 : m.selectedTypes,
|
|
525
|
-
"additional-possible-types": T.value,
|
|
526
|
-
pattern: e.control.data.patternFilter.pattern,
|
|
527
|
-
mode: e.control.data.mode.toLowerCase(),
|
|
528
|
-
"case-sensitive-pattern": e.control.data.patternFilter.isCaseSensitive,
|
|
529
|
-
"empty-state-component": D.value,
|
|
530
|
-
"inverse-pattern": e.control.data.patternFilter.isInverted,
|
|
531
|
-
"manual-selection": z.value,
|
|
532
|
-
"include-unknown-values": e.control.data.manualFilter.includeUnknownColumns,
|
|
533
|
-
"mode-label": "Selection mode",
|
|
534
|
-
"possible-values": L(c) ?? [],
|
|
535
|
-
size: e.twinlistSize,
|
|
536
|
-
"left-label": E.value,
|
|
537
|
-
"right-label": O.value,
|
|
538
|
-
"is-valid": e.isValid,
|
|
539
|
-
compact: "",
|
|
540
|
-
"show-resize-handle": "",
|
|
541
|
-
"onUpdate:selected": o,
|
|
542
|
-
"onUpdate:manualSelection": s,
|
|
543
|
-
"onUpdate:pattern": d,
|
|
544
|
-
"onUpdate:mode": r,
|
|
545
|
-
"onUpdate:selectedTypes": b,
|
|
546
|
-
"onUpdate:inversePattern": w,
|
|
547
|
-
"onUpdate:caseSensitivePattern": v
|
|
548
|
-
}), null, 16, ["id", "show-mode", "show-search", "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"]);
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
}), Me = /* @__PURE__ */ B(be, [["__scopeId", "data-v-b7c06dc7"]]);
|
|
552
|
-
export {
|
|
553
|
-
Me as default
|
|
554
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { g as i } from "./_getTag-DS8v0_uf.js";
|
|
2
|
-
var a = function() {
|
|
3
|
-
try {
|
|
4
|
-
var e = i(Object, "defineProperty");
|
|
5
|
-
return e({}, "", {}), e;
|
|
6
|
-
} catch {
|
|
7
|
-
}
|
|
8
|
-
}();
|
|
9
|
-
function o(e, r, t) {
|
|
10
|
-
r == "__proto__" && a ? a(e, r, {
|
|
11
|
-
configurable: !0,
|
|
12
|
-
enumerable: !0,
|
|
13
|
-
value: t,
|
|
14
|
-
writable: !0
|
|
15
|
-
}) : e[r] = t;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
o as b
|
|
19
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { k as h } from "./_baseIsEqual-DmkT9Nkc.js";
|
|
2
|
-
import { a as b } from "./_getTag-DS8v0_uf.js";
|
|
3
|
-
function g(n) {
|
|
4
|
-
return function(a, r, f) {
|
|
5
|
-
for (var i = -1, e = Object(a), t = f(a), u = t.length; u--; ) {
|
|
6
|
-
var s = t[++i];
|
|
7
|
-
if (r(e[s], s, e) === !1)
|
|
8
|
-
break;
|
|
9
|
-
}
|
|
10
|
-
return a;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
var m = g();
|
|
14
|
-
function p(n, a) {
|
|
15
|
-
return n && m(n, a, h);
|
|
16
|
-
}
|
|
17
|
-
function v(n, a) {
|
|
18
|
-
return function(r, f) {
|
|
19
|
-
if (r == null)
|
|
20
|
-
return r;
|
|
21
|
-
if (!b(r))
|
|
22
|
-
return n(r, f);
|
|
23
|
-
for (var i = r.length, e = -1, t = Object(r); ++e < i && f(t[e], e, t) !== !1; )
|
|
24
|
-
;
|
|
25
|
-
return r;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
var x = v(p);
|
|
29
|
-
export {
|
|
30
|
-
x as b
|
|
31
|
-
};
|