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