@ironsource/shared-ui 2.1.12-test.82 → 2.1.12-test.84
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/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_dd86e387_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_8e88292f_lang.css +1 -0
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +17 -17
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +176 -169
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -78
- package/components/dropdown/v4/index.d.ts +20 -1
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +111 -110
- package/components/table/v4/index.d.ts +2 -0
- package/index.d.ts +44 -2
- package/index.js +1 -1
- package/mocks/apps.d.ts +1 -0
- package/package.json +1 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0963bb3c_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_1f7f7f9c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9560a062_lang.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_dd86e387_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ke, computed as x, watch as Te, toRaw as S, openBlock as d, createElementBlock as r, mergeProps as m, unref as t, renderSlot as y, createElementVNode as f, createVNode as a, withCtx as u, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as T, createCommentVNode as s, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as Se, renderList as ve, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
|
|
2
|
+
import N from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
5
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
@@ -11,32 +11,32 @@ import Ee from "./AppDropdownTrigger.vue.js";
|
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import J from "./OptionV4.vue.js";
|
|
15
15
|
import "./ConditionalDropdown.vue.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { Dropdown as
|
|
19
|
-
import { DropdownTestIdModifiers as
|
|
16
|
+
import xe from "../../search/v4/SearchV4.vue.js";
|
|
17
|
+
import Q from "../../typography/v4/Typography.vue.js";
|
|
18
|
+
import { Dropdown as Be } from "floating-vue";
|
|
19
|
+
import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
|
|
20
20
|
import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
|
|
21
|
-
import
|
|
21
|
+
import K from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
22
22
|
import { useTestIdAttrs as Ne } from "../../../utils/testIds.js";
|
|
23
23
|
import { TRIGGERS as w } from "./Dropdown.types.js";
|
|
24
24
|
import { useElementSize as Ve } from "@vueuse/core";
|
|
25
25
|
import De from "../../shared/FieldHelpText.vue.js";
|
|
26
26
|
import Pe from "./GroupOption.vue.js";
|
|
27
|
-
const
|
|
27
|
+
const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze = { key: 1 }, We = { key: 2 }, Ge = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "inline-search-wrapper"
|
|
30
30
|
}, He = { class: "dropdown-conditions" }, Ue = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
},
|
|
33
|
+
}, Ye = ["aria-selected", "aria-disabled", "onClick"], Xe = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, qe = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
}, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" },
|
|
39
|
+
}, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, vt = /* @__PURE__ */ ke({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -108,8 +108,8 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
108
108
|
withConditions: { type: Boolean, default: !1 }
|
|
109
109
|
},
|
|
110
110
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
|
|
111
|
-
setup(e, { expose:
|
|
112
|
-
const o = e,
|
|
111
|
+
setup(e, { expose: Z, emit: V }) {
|
|
112
|
+
const o = e, D = {
|
|
113
113
|
MULTILINE_LIST_HEIGHT: 48,
|
|
114
114
|
LIST_HEIGHT: 32 + 4,
|
|
115
115
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -117,39 +117,39 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
117
117
|
DROPLIST_MIN_WIDTH: 240,
|
|
118
118
|
VERSION: 4
|
|
119
119
|
}, {
|
|
120
|
-
onKeydown:
|
|
120
|
+
onKeydown: I,
|
|
121
121
|
open: c,
|
|
122
122
|
toggleMenu: v,
|
|
123
|
-
onButtonKeydown:
|
|
124
|
-
query:
|
|
125
|
-
containerProps:
|
|
126
|
-
calculateTableHeight:
|
|
127
|
-
wrapperProps:
|
|
128
|
-
filteredOptions:
|
|
129
|
-
allSelected:
|
|
130
|
-
allSelectedApplied:
|
|
131
|
-
isIndeterminate:
|
|
132
|
-
onSelectAll:
|
|
133
|
-
virtualOptions:
|
|
134
|
-
isSelected:
|
|
135
|
-
selectedOption:
|
|
136
|
-
selectedOptionPrevious:
|
|
137
|
-
selectedValue:
|
|
138
|
-
onSelect:
|
|
139
|
-
activeIndex:
|
|
140
|
-
onCancel:
|
|
141
|
-
onApply:
|
|
142
|
-
scrollTo:
|
|
143
|
-
listRef:
|
|
144
|
-
buttonRef:
|
|
145
|
-
apply:
|
|
146
|
-
cancel:
|
|
147
|
-
el:
|
|
148
|
-
onClearAllSelections:
|
|
149
|
-
clearAll:
|
|
150
|
-
isGroup:
|
|
151
|
-
flattenAndMarkGroupOptions:
|
|
152
|
-
} = Fe(o,
|
|
123
|
+
onButtonKeydown: P,
|
|
124
|
+
query: C,
|
|
125
|
+
containerProps: _,
|
|
126
|
+
calculateTableHeight: ee,
|
|
127
|
+
wrapperProps: te,
|
|
128
|
+
filteredOptions: oe,
|
|
129
|
+
allSelected: $,
|
|
130
|
+
allSelectedApplied: A,
|
|
131
|
+
isIndeterminate: ne,
|
|
132
|
+
onSelectAll: le,
|
|
133
|
+
virtualOptions: M,
|
|
134
|
+
isSelected: O,
|
|
135
|
+
selectedOption: h,
|
|
136
|
+
selectedOptionPrevious: L,
|
|
137
|
+
selectedValue: ie,
|
|
138
|
+
onSelect: R,
|
|
139
|
+
activeIndex: z,
|
|
140
|
+
onCancel: ae,
|
|
141
|
+
onApply: de,
|
|
142
|
+
scrollTo: se,
|
|
143
|
+
listRef: re,
|
|
144
|
+
buttonRef: W,
|
|
145
|
+
apply: ue,
|
|
146
|
+
cancel: ce,
|
|
147
|
+
el: ye,
|
|
148
|
+
onClearAllSelections: G,
|
|
149
|
+
clearAll: me,
|
|
150
|
+
isGroup: fe,
|
|
151
|
+
flattenAndMarkGroupOptions: pe
|
|
152
|
+
} = Fe(o, V, D), g = Ne(o.testId, p), H = x(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ae : o.predefinedTrigger === w.APP ? Ee : null), { width: U } = Ve(W), ge = x(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? U.value - 2 > 240 ? `${U.value - 2}px` : `${D.DROPLIST_MIN_WIDTH}px` : "auto");
|
|
153
153
|
Te(
|
|
154
154
|
() => o.optionsListWidth,
|
|
155
155
|
() => {
|
|
@@ -159,47 +159,53 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
161
|
);
|
|
162
|
-
const
|
|
162
|
+
const Y = () => {
|
|
163
163
|
v();
|
|
164
|
-
},
|
|
164
|
+
}, X = x(() => {
|
|
165
|
+
const l = {
|
|
166
|
+
tooltipMessage: null,
|
|
167
|
+
selections: []
|
|
168
|
+
};
|
|
165
169
|
if (o.multi && o.comparingKey) {
|
|
166
|
-
const i =
|
|
170
|
+
const i = S(h.value);
|
|
167
171
|
if (o.minSelections || o.maxSelections) {
|
|
168
172
|
if (Array.isArray(i) && i.length <= o.minSelections)
|
|
169
|
-
return
|
|
173
|
+
return l.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, l.selections = i.map(
|
|
174
|
+
(n) => n[o.comparingKey]
|
|
175
|
+
), l;
|
|
170
176
|
if (o.maxSelections && Array.isArray(i) && i.length >= o.maxSelections) {
|
|
171
|
-
const
|
|
172
|
-
(
|
|
173
|
-
);
|
|
174
|
-
return
|
|
175
|
-
if (!
|
|
176
|
-
return
|
|
177
|
-
});
|
|
177
|
+
const n = i.map(
|
|
178
|
+
(b) => b[o.comparingKey]
|
|
179
|
+
), k = o.groupedOptions ? pe(o.options) : o.options;
|
|
180
|
+
return l.tooltipMessage = `You can only select up to ${o.maxSelections} items`, l.selections = k.map((b) => {
|
|
181
|
+
if (!n.includes(b[o.comparingKey]))
|
|
182
|
+
return b[o.comparingKey];
|
|
183
|
+
}), l;
|
|
178
184
|
}
|
|
179
185
|
}
|
|
180
186
|
}
|
|
181
|
-
return [];
|
|
182
|
-
}),
|
|
187
|
+
return l.tooltipMessage = null, l.selections = [], l;
|
|
188
|
+
}), he = (l) => {
|
|
183
189
|
if ((o.minSelections || o.maxSelections) && o.comparingKey)
|
|
184
|
-
return
|
|
185
|
-
|
|
190
|
+
return X.value.selections.includes(
|
|
191
|
+
l[o.comparingKey]
|
|
186
192
|
);
|
|
187
|
-
},
|
|
188
|
-
return
|
|
189
|
-
selectItem:
|
|
190
|
-
scrollTo:
|
|
191
|
-
}), (
|
|
193
|
+
}, E = (l) => l[o.disabledOptionKey] || he(l);
|
|
194
|
+
return Z({
|
|
195
|
+
selectItem: R,
|
|
196
|
+
scrollTo: se
|
|
197
|
+
}), (l, i) => (d(), r("div", m({
|
|
192
198
|
ref_key: "el",
|
|
193
|
-
ref:
|
|
199
|
+
ref: ye,
|
|
194
200
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
195
201
|
tabindex: e.disabled ? -1 : 0
|
|
196
|
-
}, t(
|
|
197
|
-
onKeydown:
|
|
198
|
-
(...n) => t(
|
|
202
|
+
}, t(g)[t(p).WRAPPER], {
|
|
203
|
+
onKeydown: i[8] || (i[8] = //@ts-ignore
|
|
204
|
+
(...n) => t(I) && t(I)(...n))
|
|
199
205
|
}), [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
a(t(
|
|
206
|
+
y(l.$slots, "label", {}, void 0, !0),
|
|
207
|
+
f("div", Me, [
|
|
208
|
+
a(t(Be), m({
|
|
203
209
|
theme: e.theme,
|
|
204
210
|
"popper-class": [
|
|
205
211
|
e.popperClass,
|
|
@@ -216,30 +222,30 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
216
222
|
"auto-hide": !1,
|
|
217
223
|
container: e.container,
|
|
218
224
|
"auto-size": e.autoSize
|
|
219
|
-
}, t(
|
|
225
|
+
}, t(g)[t(p).TRIGGER]), {
|
|
220
226
|
popper: u(() => [
|
|
221
227
|
a(we, null, {
|
|
222
228
|
default: u(() => [
|
|
223
229
|
t(c) ? (d(), r("div", {
|
|
224
230
|
key: 0,
|
|
225
231
|
ref_key: "listRef",
|
|
226
|
-
ref:
|
|
232
|
+
ref: re,
|
|
227
233
|
class: B(["light-theme-v4", {
|
|
228
234
|
"dropdown--disabled": e.disabled,
|
|
229
235
|
"inline-search": e.inlineSearch
|
|
230
236
|
}]),
|
|
231
|
-
style: be({ width: t(
|
|
237
|
+
style: be({ width: t(ge) })
|
|
232
238
|
}, [
|
|
233
239
|
t(c) ? (d(), r("div", {
|
|
234
240
|
key: 0,
|
|
235
241
|
class: B(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
236
|
-
onKeydown:
|
|
237
|
-
(...n) => t(
|
|
242
|
+
onKeydown: i[7] || (i[7] = //@ts-ignore
|
|
243
|
+
(...n) => t(I) && t(I)(...n))
|
|
238
244
|
}, [
|
|
239
245
|
t(c) && e.inlineSearch ? (d(), r("div", Ge, [
|
|
240
|
-
e.withConditions ?
|
|
241
|
-
|
|
242
|
-
a(t(
|
|
246
|
+
e.withConditions ? y(l.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
247
|
+
f("div", He, [
|
|
248
|
+
a(t(Q), { variant: "body2" }, {
|
|
243
249
|
default: u(() => [
|
|
244
250
|
T("Conditions")
|
|
245
251
|
]),
|
|
@@ -247,11 +253,11 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
247
253
|
})
|
|
248
254
|
])
|
|
249
255
|
], !0) : s("", !0),
|
|
250
|
-
|
|
251
|
-
a(t(
|
|
252
|
-
modelValue: t(
|
|
256
|
+
y(l.$slots, "inline-search", {}, () => [
|
|
257
|
+
a(t(xe), {
|
|
258
|
+
modelValue: t(C),
|
|
253
259
|
"onUpdate:modelValue": [
|
|
254
|
-
|
|
260
|
+
i[4] || (i[4] = (n) => Ie(C) ? C.value = n : null),
|
|
255
261
|
e.onClearSearch
|
|
256
262
|
],
|
|
257
263
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -259,48 +265,48 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
259
265
|
size: "md",
|
|
260
266
|
"auto-focus": e.searchAutoFocus,
|
|
261
267
|
"test-id": e.testId,
|
|
262
|
-
onKeydown: t(
|
|
268
|
+
onKeydown: t(I)
|
|
263
269
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
264
270
|
], !0)
|
|
265
271
|
])) : s("", !0),
|
|
266
|
-
|
|
267
|
-
|
|
272
|
+
y(l.$slots, "input-list", { open: t(c) }, void 0, !0),
|
|
273
|
+
f("div", m({
|
|
268
274
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
269
|
-
style: { height: `${t(
|
|
275
|
+
style: { height: `${t(ee)}rem` }
|
|
270
276
|
}, {
|
|
271
|
-
...t(
|
|
272
|
-
...t(
|
|
277
|
+
...t(_),
|
|
278
|
+
...t(g)[t(p).LIST_CONTAINER]
|
|
273
279
|
}), [
|
|
274
|
-
|
|
275
|
-
|
|
280
|
+
y(l.$slots, "custom-list-area", {}, void 0, !0),
|
|
281
|
+
f("ul", m(t(te), {
|
|
276
282
|
role: "listbox",
|
|
277
283
|
class: ["list", {
|
|
278
284
|
"list--multi": e.multi,
|
|
279
285
|
"list--with-conditions": e.withConditions
|
|
280
286
|
}]
|
|
281
287
|
}), [
|
|
282
|
-
!t(
|
|
283
|
-
a(t(
|
|
288
|
+
!t(oe).length && !e.loading && !e.withConditions ? (d(), r("li", Ue, [
|
|
289
|
+
a(t(Q), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
284
290
|
default: u(() => [
|
|
285
|
-
T(
|
|
291
|
+
T(q(e.noResultsText), 1)
|
|
286
292
|
]),
|
|
287
293
|
_: 1
|
|
288
294
|
}, 16)
|
|
289
295
|
])) : s("", !0),
|
|
290
|
-
e.showSelectAll !== !1 && e.multi && !t(
|
|
291
|
-
|
|
292
|
-
a(t(
|
|
296
|
+
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? y(l.$slots, "select-all", { key: 1 }, () => [
|
|
297
|
+
f("li", null, [
|
|
298
|
+
a(t(J), m(
|
|
293
299
|
{
|
|
294
|
-
"aria-selected": t(
|
|
300
|
+
"aria-selected": t($),
|
|
295
301
|
"aria-disabled": !!e.disabled,
|
|
296
|
-
"selected-prop": t(
|
|
297
|
-
"is-indeterminate": t(
|
|
302
|
+
"selected-prop": t($),
|
|
303
|
+
"is-indeterminate": t(ne),
|
|
298
304
|
"is-multi": e.multi,
|
|
299
305
|
"select-all-option": ""
|
|
300
306
|
},
|
|
301
|
-
t(
|
|
307
|
+
t(g)[t(p).SELECT_ALL],
|
|
302
308
|
{
|
|
303
|
-
onClick:
|
|
309
|
+
onClick: i[5] || (i[5] = j((n) => t(le)(), ["stop"]))
|
|
304
310
|
}
|
|
305
311
|
), {
|
|
306
312
|
default: u(() => [
|
|
@@ -310,35 +316,35 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
310
316
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
311
317
|
])
|
|
312
318
|
], !0) : s("", !0),
|
|
313
|
-
t(
|
|
314
|
-
key:
|
|
315
|
-
"aria-selected": t(
|
|
319
|
+
t(M).length && !e.loading ? (d(!0), r(Se, { key: 2 }, ve(t(M), ({ data: n, index: k }) => (d(), r("li", {
|
|
320
|
+
key: k,
|
|
321
|
+
"aria-selected": t(O)(S(t(h)), n),
|
|
316
322
|
"aria-disabled": !!e.disabled,
|
|
317
|
-
onClick:
|
|
318
|
-
() => !
|
|
323
|
+
onClick: j(
|
|
324
|
+
() => !E(n) && t(R)(n, k),
|
|
319
325
|
["stop"]
|
|
320
326
|
)
|
|
321
327
|
}, [
|
|
322
|
-
e.groupedOptions && t(
|
|
328
|
+
e.groupedOptions && t(fe)(n) ? y(l.$slots, "group-option", { key: 0 }, () => [
|
|
323
329
|
a(Pe, null, {
|
|
324
330
|
default: u(() => [
|
|
325
|
-
T(
|
|
331
|
+
T(q(e.displayValue(n) || n[e.optionNameKey]), 1)
|
|
326
332
|
]),
|
|
327
333
|
_: 2
|
|
328
334
|
}, 1024)
|
|
329
|
-
], !0) :
|
|
335
|
+
], !0) : y(l.$slots, "default", {
|
|
330
336
|
key: 1,
|
|
331
337
|
option: n,
|
|
332
|
-
index:
|
|
333
|
-
selected: t(
|
|
334
|
-
active:
|
|
335
|
-
disabled:
|
|
338
|
+
index: k,
|
|
339
|
+
selected: t(O)(S(t(h)), n),
|
|
340
|
+
active: S(t(z)) === k,
|
|
341
|
+
disabled: E(n)
|
|
336
342
|
}, () => [
|
|
337
|
-
a(t(
|
|
343
|
+
a(t(J), {
|
|
338
344
|
option: n,
|
|
339
|
-
"selected-prop": t(
|
|
340
|
-
active:
|
|
341
|
-
disabled:
|
|
345
|
+
"selected-prop": t(O)(t(h), n),
|
|
346
|
+
active: S(t(z)) === k,
|
|
347
|
+
disabled: E(n),
|
|
342
348
|
"name-key": e.optionNameKey,
|
|
343
349
|
"image-key": e.optionImageKey,
|
|
344
350
|
"icon-key": e.optionIconKey,
|
|
@@ -350,40 +356,41 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
350
356
|
"warning-key": e.optionWarningKey,
|
|
351
357
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
352
358
|
"option-two-lines-key": e.optionTwoLinesKey,
|
|
353
|
-
"is-multi": e.multi
|
|
359
|
+
"is-multi": e.multi,
|
|
360
|
+
"min-max-selection-tooltip-message": t(X)?.tooltipMessage
|
|
354
361
|
}, Ce({ _: 2 }, [
|
|
355
|
-
|
|
362
|
+
l.$slots["option-end"] ? {
|
|
356
363
|
name: "option-end",
|
|
357
|
-
fn: u(({ option:
|
|
358
|
-
|
|
364
|
+
fn: u(({ option: b }) => [
|
|
365
|
+
y(l.$slots, "option-end", { option: b }, void 0, !0)
|
|
359
366
|
]),
|
|
360
367
|
key: "0"
|
|
361
368
|
} : void 0
|
|
362
|
-
]), 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "warning-key", "option-two-lines-variant", "option-two-lines-key", "is-multi"])
|
|
369
|
+
]), 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "warning-key", "option-two-lines-variant", "option-two-lines-key", "is-multi", "min-max-selection-tooltip-message"])
|
|
363
370
|
], !0)
|
|
364
|
-
], 8,
|
|
365
|
-
e.loading || e.loadMoreLoading ? (d(), r("li",
|
|
366
|
-
a(t(
|
|
367
|
-
a(t(
|
|
368
|
-
a(t(
|
|
369
|
-
a(t(
|
|
371
|
+
], 8, Ye))), 128)) : s("", !0),
|
|
372
|
+
e.loading || e.loadMoreLoading ? (d(), r("li", Xe, [
|
|
373
|
+
a(t(K), { round: "" }),
|
|
374
|
+
a(t(K), { round: "" }),
|
|
375
|
+
a(t(K), { round: "" }),
|
|
376
|
+
a(t(K), { round: "" })
|
|
370
377
|
])) : s("", !0)
|
|
371
378
|
], 16)
|
|
372
379
|
], 16),
|
|
373
|
-
e.multi ? (d(), r("div",
|
|
374
|
-
|
|
375
|
-
e.showClearAll ? (d(),
|
|
380
|
+
e.multi ? (d(), r("div", qe, [
|
|
381
|
+
f("div", je, [
|
|
382
|
+
e.showClearAll ? (d(), F(t(N), m(
|
|
376
383
|
{
|
|
377
384
|
key: 0,
|
|
378
385
|
ref_key: "clearAll",
|
|
379
|
-
ref:
|
|
386
|
+
ref: me,
|
|
380
387
|
size: "small",
|
|
381
388
|
variant: "text",
|
|
382
389
|
color: "primary"
|
|
383
390
|
},
|
|
384
|
-
t(
|
|
391
|
+
t(g)[t(p).ACTION_CLEAR_ALL],
|
|
385
392
|
{
|
|
386
|
-
onClick:
|
|
393
|
+
onClick: i[6] || (i[6] = () => t(G)(!1))
|
|
387
394
|
}
|
|
388
395
|
), {
|
|
389
396
|
default: u(() => [
|
|
@@ -392,30 +399,30 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
392
399
|
_: 1
|
|
393
400
|
}, 16)) : s("", !0)
|
|
394
401
|
]),
|
|
395
|
-
|
|
396
|
-
a(t(
|
|
402
|
+
f("div", Je, [
|
|
403
|
+
a(t(N), m(
|
|
397
404
|
{
|
|
398
405
|
ref_key: "cancel",
|
|
399
|
-
ref:
|
|
406
|
+
ref: ce,
|
|
400
407
|
size: "small",
|
|
401
408
|
variant: "outlined",
|
|
402
409
|
color: "primary"
|
|
403
410
|
},
|
|
404
|
-
t(
|
|
405
|
-
{ onClick: t(
|
|
411
|
+
t(g)[t(p).ACTION_CANCEL],
|
|
412
|
+
{ onClick: t(ae) }
|
|
406
413
|
), {
|
|
407
414
|
default: u(() => [
|
|
408
415
|
T(" Cancel ")
|
|
409
416
|
]),
|
|
410
417
|
_: 1
|
|
411
418
|
}, 16, ["onClick"]),
|
|
412
|
-
a(t(
|
|
419
|
+
a(t(N), m({
|
|
413
420
|
ref_key: "apply",
|
|
414
|
-
ref:
|
|
421
|
+
ref: ue,
|
|
415
422
|
"data-testid": "mutli-apply",
|
|
416
423
|
size: "small",
|
|
417
424
|
class: "apply-button"
|
|
418
|
-
}, t(
|
|
425
|
+
}, t(g)[t(p).ACTION_APPLY], { onClick: t(de) }), {
|
|
419
426
|
default: u(() => [
|
|
420
427
|
T(" Apply ")
|
|
421
428
|
]),
|
|
@@ -430,22 +437,22 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
430
437
|
})
|
|
431
438
|
]),
|
|
432
439
|
default: u(() => [
|
|
433
|
-
|
|
440
|
+
f("div", {
|
|
434
441
|
class: B(["button__container", {
|
|
435
442
|
"button__container--open": !!t(c),
|
|
436
443
|
[`button__container--${e.size}`]: !0,
|
|
437
444
|
"button__container--disabled": e.disabled
|
|
438
445
|
}])
|
|
439
446
|
}, [
|
|
440
|
-
|
|
447
|
+
f("div", {
|
|
441
448
|
ref_key: "buttonRef",
|
|
442
|
-
ref:
|
|
449
|
+
ref: W
|
|
443
450
|
}, [
|
|
444
|
-
|
|
451
|
+
y(l.$slots, "dropdown-trigger", {
|
|
445
452
|
buttonTriggerProps: {
|
|
446
453
|
open: t(c),
|
|
447
454
|
disabled: e.disabled,
|
|
448
|
-
label: t(
|
|
455
|
+
label: t(ie) || e.placeholder,
|
|
449
456
|
onClick: () => t(v)()
|
|
450
457
|
},
|
|
451
458
|
defaultTriggerProps: {
|
|
@@ -457,7 +464,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
457
464
|
testId: e.testId,
|
|
458
465
|
multi: e.multi,
|
|
459
466
|
disabled: e.disabled,
|
|
460
|
-
selectedOption: e.multi ? t(
|
|
467
|
+
selectedOption: e.multi ? t(L) : t(h),
|
|
461
468
|
displayValue: e.displayValue,
|
|
462
469
|
options: e.options,
|
|
463
470
|
optionNameKey: e.optionNameKey,
|
|
@@ -473,13 +480,13 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
473
480
|
statusDotType: e.statusType,
|
|
474
481
|
size: e.size,
|
|
475
482
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
476
|
-
allSelected: t(
|
|
477
|
-
onKeydown: t(
|
|
478
|
-
onClick:
|
|
483
|
+
allSelected: t(A),
|
|
484
|
+
onKeydown: t(P),
|
|
485
|
+
onClick: Y
|
|
479
486
|
}
|
|
480
487
|
}, () => [
|
|
481
|
-
t(
|
|
482
|
-
(d(),
|
|
488
|
+
t(H) ? (d(), r("div", Re, [
|
|
489
|
+
(d(), F(Ke(t(H)), {
|
|
483
490
|
placeholder: e.placeholder,
|
|
484
491
|
open: t(c),
|
|
485
492
|
label: e.triggerLabel,
|
|
@@ -488,7 +495,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
488
495
|
"test-id": e.testId,
|
|
489
496
|
multi: e.multi,
|
|
490
497
|
disabled: e.disabled,
|
|
491
|
-
"selected-option": e.multi ? t(
|
|
498
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
492
499
|
"display-value": e.displayValue,
|
|
493
500
|
options: e.options,
|
|
494
501
|
"option-name-key": e.optionNameKey,
|
|
@@ -504,15 +511,15 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
504
511
|
"status-dot-type": e.statusType,
|
|
505
512
|
size: e.size,
|
|
506
513
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
507
|
-
"all-selected": t(
|
|
508
|
-
onKeydown: t(
|
|
509
|
-
onClick:
|
|
510
|
-
onCopyToClipboard:
|
|
514
|
+
"all-selected": t(A),
|
|
515
|
+
onKeydown: t(P),
|
|
516
|
+
onClick: Y,
|
|
517
|
+
onCopyToClipboard: i[0] || (i[0] = (n) => V("copyToClipboard"))
|
|
511
518
|
}, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
512
519
|
])) : s("", !0),
|
|
513
|
-
e.predefinedTrigger === t(w).ICON_BUTTON ? (d(), r("div",
|
|
520
|
+
e.predefinedTrigger === t(w).ICON_BUTTON ? (d(), r("div", ze, [
|
|
514
521
|
a(t(Oe), {
|
|
515
|
-
onClick:
|
|
522
|
+
onClick: i[1] || (i[1] = (n) => t(v)())
|
|
516
523
|
})
|
|
517
524
|
])) : s("", !0),
|
|
518
525
|
e.predefinedTrigger === t(w).CHIP ? (d(), r("div", We, [
|
|
@@ -521,13 +528,13 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
521
528
|
label: e.placeholder,
|
|
522
529
|
"test-id": e.testId,
|
|
523
530
|
options: e.options,
|
|
524
|
-
"selected-option": e.multi ? t(
|
|
531
|
+
"selected-option": e.multi ? t(L) : t(h),
|
|
525
532
|
"display-value": e.displayValue,
|
|
526
533
|
multi: e.multi,
|
|
527
|
-
"all-selected": t(
|
|
534
|
+
"all-selected": t(A),
|
|
528
535
|
"shown-values-count": e.triggerShownValuesCount,
|
|
529
|
-
onClick:
|
|
530
|
-
onClear:
|
|
536
|
+
onClick: i[2] || (i[2] = (n) => t(v)()),
|
|
537
|
+
onClear: i[3] || (i[3] = (n) => t(G)())
|
|
531
538
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
|
|
532
539
|
])) : s("", !0)
|
|
533
540
|
], !0)
|
|
@@ -536,7 +543,7 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
536
543
|
]),
|
|
537
544
|
_: 3
|
|
538
545
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
539
|
-
e.triggerFeedbackText ? (d(),
|
|
546
|
+
e.triggerFeedbackText ? (d(), F(De, {
|
|
540
547
|
key: 0,
|
|
541
548
|
text: e.triggerFeedbackText,
|
|
542
549
|
variant: e.triggerFeedbackVariant,
|
|
@@ -545,9 +552,9 @@ const Re = ["tabindex"], ze = { style: { width: "100%" } }, $e = { key: 0 }, Me
|
|
|
545
552
|
class: "dropdown-field-help-text"
|
|
546
553
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : s("", !0)
|
|
547
554
|
])
|
|
548
|
-
], 16,
|
|
555
|
+
], 16, $e));
|
|
549
556
|
}
|
|
550
557
|
});
|
|
551
558
|
export {
|
|
552
|
-
|
|
559
|
+
vt as default
|
|
553
560
|
};
|