@ironsource/shared-ui 2.1.9-test.1 → 2.1.9-test.2
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/DropdownV4.vue_vue_type_style_index_0_scoped_cf64ca64_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +165 -158
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +17 -5
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +164 -158
- package/components/dropdown/v4/OptionV4.vue.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +104 -64
- package/index.d.ts +208 -128
- package/index.js +1 -1
- package/package.json +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_360883b1_lang.css +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_cf64ca64_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as U, openBlock as n, createElementBlock as a, mergeProps as c, unref as t, renderSlot as g, createElementVNode as m, createVNode as i, withCtx as u, Transition as me, normalizeClass as L, normalizeStyle as pe, createTextVNode as T, createCommentVNode as d, isRef as ge, toDisplayString as W, withModifiers as M, Fragment as Te, renderList as ke, toRaw as I, createBlock as X, resolveDynamicComponent as be } from "vue";
|
|
2
|
+
import E 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";
|
|
6
6
|
import "./DropdownV4.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import he from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
+
import we from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import Ie from "./ChipDropdownTrigger.vue.js";
|
|
10
|
+
import ve from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
13
13
|
import "./TreeDropdown.vue.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { Dropdown as
|
|
14
|
+
import q from "./OptionV4.vue.js";
|
|
15
|
+
import Ce from "../../search/v4/SearchV4.vue.js";
|
|
16
|
+
import Y from "../../typography/v4/Typography.vue.js";
|
|
17
|
+
import { Dropdown as Se } from "floating-vue";
|
|
18
18
|
import { DropdownTestIdModifiers as y } from "../../../testids/index.js";
|
|
19
|
-
import { dropdownCommon as
|
|
20
|
-
import
|
|
19
|
+
import { dropdownCommon as Ke } from "../common/Dropdown.common.js";
|
|
20
|
+
import S from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
21
21
|
import { useTestIdAttrs as Ae } from "../../../utils/testIds.js";
|
|
22
22
|
import { TRIGGERS as k } from "./Dropdown.types.js";
|
|
23
|
-
import { useElementSize as
|
|
23
|
+
import { useElementSize as Oe } from "@vueuse/core";
|
|
24
24
|
import Le from "../../shared/FieldHelpText.vue.js";
|
|
25
|
-
import
|
|
26
|
-
const
|
|
25
|
+
import Ee from "./GroupOption.vue.js";
|
|
26
|
+
const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve = { key: 1 }, De = { key: 2 }, Pe = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "inline-search-wrapper"
|
|
29
|
-
},
|
|
29
|
+
}, Re = { class: "dropdown-conditions" }, ze = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "no-result-container"
|
|
32
|
-
},
|
|
32
|
+
}, xe = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "loader"
|
|
35
|
-
},
|
|
35
|
+
}, $e = { key: 2 }, He = ["aria-selected", "aria-disabled", "onClick"], Ge = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "actions-wrapper"
|
|
38
|
-
},
|
|
38
|
+
}, Ue = { class: "actions-clear-all" }, We = { class: "actions-apply-cancel" }, Tt = /* @__PURE__ */ fe({
|
|
39
39
|
__name: "DropdownV4",
|
|
40
40
|
props: {
|
|
41
41
|
modelValue: { default: null },
|
|
@@ -81,22 +81,24 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
81
81
|
optionIconType: { default: null },
|
|
82
82
|
optionEndIconKey: { default: "" },
|
|
83
83
|
optionEndIconType: { default: null },
|
|
84
|
+
optionFlagKey: { default: null },
|
|
84
85
|
valueToCopy: { default: null },
|
|
85
86
|
disabledOptionKey: { default: "disabled" },
|
|
86
87
|
optionTwoLinesVariant: { default: void 0 },
|
|
87
88
|
optionTwoLinesKey: { default: void 0 },
|
|
88
89
|
groupedOptions: { type: Boolean, default: !1 },
|
|
90
|
+
comparingKey: { default: null },
|
|
91
|
+
withConditions: { type: Boolean, default: !1 },
|
|
89
92
|
theme: { default: "light-theme-v4" },
|
|
90
93
|
fullWidth: { type: Boolean, default: !0 },
|
|
91
94
|
optionsListWidth: { default: null },
|
|
92
95
|
statusType: { default: null },
|
|
93
96
|
disableVirtualScroll: { type: Boolean, default: !1 },
|
|
94
|
-
overrideOptionCountCalculation: { type: Function, default: null }
|
|
95
|
-
withConditions: { type: Boolean, default: !1 }
|
|
97
|
+
overrideOptionCountCalculation: { type: Function, default: null }
|
|
96
98
|
},
|
|
97
99
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
|
|
98
|
-
setup(e, { expose:
|
|
99
|
-
const r = e,
|
|
100
|
+
setup(e, { expose: j, emit: B }) {
|
|
101
|
+
const r = e, F = {
|
|
100
102
|
MULTILINE_LIST_HEIGHT: 48,
|
|
101
103
|
LIST_HEIGHT: 32 + 4,
|
|
102
104
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -105,53 +107,54 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
105
107
|
VERSION: 4
|
|
106
108
|
}, {
|
|
107
109
|
onKeydown: h,
|
|
108
|
-
open:
|
|
110
|
+
open: s,
|
|
109
111
|
toggleMenu: v,
|
|
110
112
|
onButtonKeydown: N,
|
|
111
113
|
query: C,
|
|
112
|
-
containerProps:
|
|
113
|
-
calculateTableHeight:
|
|
114
|
-
wrapperProps:
|
|
115
|
-
filteredOptions:
|
|
114
|
+
containerProps: J,
|
|
115
|
+
calculateTableHeight: Q,
|
|
116
|
+
wrapperProps: Z,
|
|
117
|
+
filteredOptions: _,
|
|
116
118
|
allSelected: V,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
allSelectedApplied: K,
|
|
120
|
+
isIndeterminate: ee,
|
|
121
|
+
onSelectAll: te,
|
|
122
|
+
virtualOptions: D,
|
|
123
|
+
isSelected: A,
|
|
121
124
|
selectedOption: b,
|
|
122
|
-
selectedOptionPrevious:
|
|
123
|
-
selectedValue:
|
|
124
|
-
onSelect:
|
|
125
|
-
activeIndex:
|
|
126
|
-
onCancel:
|
|
127
|
-
onApply:
|
|
128
|
-
scrollTo:
|
|
129
|
-
listRef:
|
|
130
|
-
buttonRef:
|
|
131
|
-
apply:
|
|
132
|
-
cancel:
|
|
133
|
-
el:
|
|
134
|
-
onClearAllSelections:
|
|
135
|
-
clearAll:
|
|
136
|
-
isGroup:
|
|
137
|
-
} =
|
|
125
|
+
selectedOptionPrevious: O,
|
|
126
|
+
selectedValue: oe,
|
|
127
|
+
onSelect: P,
|
|
128
|
+
activeIndex: R,
|
|
129
|
+
onCancel: le,
|
|
130
|
+
onApply: ie,
|
|
131
|
+
scrollTo: ne,
|
|
132
|
+
listRef: ae,
|
|
133
|
+
buttonRef: z,
|
|
134
|
+
apply: de,
|
|
135
|
+
cancel: re,
|
|
136
|
+
el: se,
|
|
137
|
+
onClearAllSelections: x,
|
|
138
|
+
clearAll: ue,
|
|
139
|
+
isGroup: ce
|
|
140
|
+
} = Ke(r, B, F), f = Ae(r.testId, y), $ = U(() => !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT ? he : r.predefinedTrigger === k.APP ? ve : null), { width: H } = Oe(z), ye = U(() => r.optionsListWidth ? r.optionsListWidth : !r.predefinedTrigger || r.predefinedTrigger === k.DEFAULT || r.predefinedTrigger === k.APP ? H.value - 2 > 240 ? `${H.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto"), G = () => {
|
|
138
141
|
v();
|
|
139
142
|
};
|
|
140
|
-
return
|
|
141
|
-
selectItem:
|
|
142
|
-
scrollTo:
|
|
143
|
-
}), (
|
|
143
|
+
return j({
|
|
144
|
+
selectItem: P,
|
|
145
|
+
scrollTo: ne
|
|
146
|
+
}), (p, l) => (n(), a("div", c({
|
|
144
147
|
ref_key: "el",
|
|
145
|
-
ref:
|
|
148
|
+
ref: se,
|
|
146
149
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
147
150
|
tabindex: e.disabled ? -1 : 0
|
|
148
151
|
}, t(f)[t(y).WRAPPER], {
|
|
149
152
|
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
150
153
|
(...o) => t(h) && t(h)(...o))
|
|
151
154
|
}), [
|
|
152
|
-
|
|
153
|
-
m("div",
|
|
154
|
-
|
|
155
|
+
g(p.$slots, "label", {}, void 0, !0),
|
|
156
|
+
m("div", Fe, [
|
|
157
|
+
i(t(Se), c({
|
|
155
158
|
theme: e.theme,
|
|
156
159
|
"popper-class": [
|
|
157
160
|
e.popperClass,
|
|
@@ -164,46 +167,46 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
164
167
|
distance: e.distance,
|
|
165
168
|
flip: e.flip,
|
|
166
169
|
triggers: [],
|
|
167
|
-
shown: !!t(
|
|
170
|
+
shown: !!t(s),
|
|
168
171
|
"auto-hide": !1,
|
|
169
172
|
container: e.container,
|
|
170
173
|
"auto-size": e.autoSize
|
|
171
174
|
}, t(f)[t(y).TRIGGER]), {
|
|
172
|
-
popper:
|
|
173
|
-
|
|
174
|
-
default:
|
|
175
|
-
t(
|
|
175
|
+
popper: u(() => [
|
|
176
|
+
i(me, null, {
|
|
177
|
+
default: u(() => [
|
|
178
|
+
t(s) ? (n(), a("div", {
|
|
176
179
|
key: 0,
|
|
177
180
|
ref_key: "listRef",
|
|
178
|
-
ref:
|
|
179
|
-
class:
|
|
181
|
+
ref: ae,
|
|
182
|
+
class: L(["light-theme-v4", {
|
|
180
183
|
"dropdown--disabled": e.disabled,
|
|
181
184
|
"inline-search": e.inlineSearch
|
|
182
185
|
}]),
|
|
183
|
-
style:
|
|
186
|
+
style: pe({ width: t(ye) })
|
|
184
187
|
}, [
|
|
185
|
-
t(
|
|
188
|
+
t(s) ? (n(), a("div", {
|
|
186
189
|
key: 0,
|
|
187
|
-
class:
|
|
190
|
+
class: L(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
188
191
|
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
189
192
|
(...o) => t(h) && t(h)(...o))
|
|
190
193
|
}, [
|
|
191
|
-
t(
|
|
192
|
-
e.withConditions ?
|
|
193
|
-
m("div",
|
|
194
|
-
|
|
195
|
-
default:
|
|
196
|
-
|
|
194
|
+
t(s) && (e.inlineSearch || e.withConditions) ? (n(), a("div", Pe, [
|
|
195
|
+
e.withConditions ? g(p.$slots, "dropdown-conditions", { key: 0 }, () => [
|
|
196
|
+
m("div", Re, [
|
|
197
|
+
i(t(Y), { variant: "body2" }, {
|
|
198
|
+
default: u(() => [
|
|
199
|
+
T("Conditions")
|
|
197
200
|
]),
|
|
198
201
|
_: 1
|
|
199
202
|
})
|
|
200
203
|
])
|
|
201
204
|
], !0) : d("", !0),
|
|
202
|
-
|
|
203
|
-
|
|
205
|
+
g(p.$slots, "inline-search", {}, () => [
|
|
206
|
+
i(t(Ce), {
|
|
204
207
|
modelValue: t(C),
|
|
205
208
|
"onUpdate:modelValue": [
|
|
206
|
-
l[4] || (l[4] = (o) =>
|
|
209
|
+
l[4] || (l[4] = (o) => ge(C) ? C.value = o : null),
|
|
207
210
|
e.onClear
|
|
208
211
|
],
|
|
209
212
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -215,80 +218,77 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
215
218
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
216
219
|
], !0)
|
|
217
220
|
])) : d("", !0),
|
|
218
|
-
|
|
221
|
+
g(p.$slots, "input-list", { open: t(s) }, void 0, !0),
|
|
219
222
|
m("div", c({
|
|
220
223
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
221
|
-
style: { height: `${t(
|
|
224
|
+
style: { height: `${t(Q)}rem` }
|
|
222
225
|
}, {
|
|
223
|
-
...t(
|
|
226
|
+
...t(J),
|
|
224
227
|
...t(f)[t(y).LIST_CONTAINER]
|
|
225
228
|
}), [
|
|
226
|
-
m("ul", c(t(
|
|
229
|
+
m("ul", c(t(Z), {
|
|
227
230
|
role: "listbox",
|
|
228
231
|
class: ["list", { "list--multi": e.multi }]
|
|
229
232
|
}), [
|
|
230
|
-
!t(
|
|
231
|
-
|
|
232
|
-
default:
|
|
233
|
-
|
|
233
|
+
!t(_).length && !e.loading ? (n(), a("li", ze, [
|
|
234
|
+
i(t(Y), c({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
|
|
235
|
+
default: u(() => [
|
|
236
|
+
T(W(e.noResultsText), 1)
|
|
234
237
|
]),
|
|
235
238
|
_: 1
|
|
236
239
|
}, 16)
|
|
237
240
|
])) : d("", !0),
|
|
238
|
-
e.loading ? (
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
})
|
|
241
|
+
e.loading ? (n(), a("li", xe, [
|
|
242
|
+
i(t(S), { round: "" }),
|
|
243
|
+
i(t(S), { round: "" }),
|
|
244
|
+
i(t(S), { round: "" }),
|
|
245
|
+
i(t(S), { round: "" })
|
|
246
246
|
])) : d("", !0),
|
|
247
|
-
e.showSelectAll !== !1 && e.multi && !t(C) ? (
|
|
248
|
-
|
|
247
|
+
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading ? (n(), a("li", $e, [
|
|
248
|
+
i(t(q), c(
|
|
249
249
|
{
|
|
250
250
|
"aria-selected": t(V),
|
|
251
251
|
"aria-disabled": !!e.disabled,
|
|
252
252
|
"selected-prop": t(V),
|
|
253
|
-
"is-indeterminate": t(
|
|
253
|
+
"is-indeterminate": t(ee),
|
|
254
254
|
"select-all-option": ""
|
|
255
255
|
},
|
|
256
256
|
t(f)[t(y).SELECT_ALL],
|
|
257
257
|
{
|
|
258
|
-
onClick: l[5] || (l[5] =
|
|
258
|
+
onClick: l[5] || (l[5] = M((o) => t(te)(), ["stop"]))
|
|
259
259
|
}
|
|
260
260
|
), {
|
|
261
|
-
default:
|
|
262
|
-
|
|
261
|
+
default: u(() => [
|
|
262
|
+
T(" Select all ")
|
|
263
263
|
]),
|
|
264
264
|
_: 1
|
|
265
265
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
266
266
|
])) : d("", !0),
|
|
267
|
-
t(
|
|
267
|
+
t(D).length && !e.loading ? (n(!0), a(Te, { key: 3 }, ke(t(D), ({ data: o, index: w }) => (n(), a("li", {
|
|
268
268
|
key: w,
|
|
269
|
-
"aria-selected": t(
|
|
269
|
+
"aria-selected": t(A)(I(t(b)), o),
|
|
270
270
|
"aria-disabled": !!e.disabled,
|
|
271
|
-
onClick:
|
|
271
|
+
onClick: M(() => t(P)(o, w), ["stop"])
|
|
272
272
|
}, [
|
|
273
|
-
e.groupedOptions && t(
|
|
274
|
-
|
|
275
|
-
default:
|
|
276
|
-
|
|
273
|
+
e.groupedOptions && t(ce)(o) ? g(p.$slots, "group-option", { key: 0 }, () => [
|
|
274
|
+
i(Ee, null, {
|
|
275
|
+
default: u(() => [
|
|
276
|
+
T(W(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
277
277
|
]),
|
|
278
278
|
_: 2
|
|
279
279
|
}, 1024)
|
|
280
|
-
], !0) :
|
|
280
|
+
], !0) : g(p.$slots, "default", {
|
|
281
281
|
key: 1,
|
|
282
282
|
option: o,
|
|
283
283
|
index: w,
|
|
284
|
-
selected: t(
|
|
285
|
-
active: I(t(
|
|
284
|
+
selected: t(A)(I(t(b)), o),
|
|
285
|
+
active: I(t(R)) === w,
|
|
286
286
|
disabled: o[r.disabledOptionKey]
|
|
287
287
|
}, () => [
|
|
288
|
-
|
|
288
|
+
i(t(q), {
|
|
289
289
|
option: o,
|
|
290
|
-
"selected-prop": t(
|
|
291
|
-
active: I(t(
|
|
290
|
+
"selected-prop": t(A)(I(t(b)), o),
|
|
291
|
+
active: I(t(R)) === w,
|
|
292
292
|
disabled: o[r.disabledOptionKey],
|
|
293
293
|
"name-key": e.optionNameKey,
|
|
294
294
|
"image-key": e.optionImageKey,
|
|
@@ -296,60 +296,61 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
296
296
|
"icon-type": e.optionIconType,
|
|
297
297
|
"end-icon-key": e.optionEndIconKey,
|
|
298
298
|
"end-icon-type": e.optionEndIconType,
|
|
299
|
+
"option-flag-key": e.optionFlagKey,
|
|
299
300
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
300
301
|
"option-two-lines-key": e.optionTwoLinesKey
|
|
301
|
-
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "option-two-lines-variant", "option-two-lines-key"])
|
|
302
|
+
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "option-flag-key", "option-two-lines-variant", "option-two-lines-key"])
|
|
302
303
|
], !0)
|
|
303
|
-
], 8,
|
|
304
|
+
], 8, He))), 128)) : d("", !0)
|
|
304
305
|
], 16)
|
|
305
306
|
], 16),
|
|
306
|
-
e.multi ? (
|
|
307
|
-
m("div",
|
|
308
|
-
|
|
307
|
+
e.multi ? (n(), a("div", Ge, [
|
|
308
|
+
m("div", Ue, [
|
|
309
|
+
i(t(E), c(
|
|
309
310
|
{
|
|
310
311
|
ref_key: "clearAll",
|
|
311
|
-
ref:
|
|
312
|
+
ref: ue,
|
|
312
313
|
size: "small",
|
|
313
314
|
variant: "text",
|
|
314
315
|
color: "primary"
|
|
315
316
|
},
|
|
316
317
|
t(f)[t(y).ACTION_CLEAR_ALL],
|
|
317
318
|
{
|
|
318
|
-
onClick: l[6] || (l[6] = () => t(
|
|
319
|
+
onClick: l[6] || (l[6] = () => t(x)(!1))
|
|
319
320
|
}
|
|
320
321
|
), {
|
|
321
|
-
default:
|
|
322
|
-
|
|
322
|
+
default: u(() => [
|
|
323
|
+
T(" Clear all ")
|
|
323
324
|
]),
|
|
324
325
|
_: 1
|
|
325
326
|
}, 16)
|
|
326
327
|
]),
|
|
327
|
-
m("div",
|
|
328
|
-
|
|
328
|
+
m("div", We, [
|
|
329
|
+
i(t(E), c(
|
|
329
330
|
{
|
|
330
331
|
ref_key: "cancel",
|
|
331
|
-
ref:
|
|
332
|
+
ref: re,
|
|
332
333
|
size: "small",
|
|
333
334
|
variant: "outlined",
|
|
334
335
|
color: "primary"
|
|
335
336
|
},
|
|
336
337
|
t(f)[t(y).ACTION_CANCEL],
|
|
337
|
-
{ onClick: t(
|
|
338
|
+
{ onClick: t(le) }
|
|
338
339
|
), {
|
|
339
|
-
default:
|
|
340
|
-
|
|
340
|
+
default: u(() => [
|
|
341
|
+
T(" Cancel ")
|
|
341
342
|
]),
|
|
342
343
|
_: 1
|
|
343
344
|
}, 16, ["onClick"]),
|
|
344
|
-
|
|
345
|
+
i(t(E), c({
|
|
345
346
|
ref_key: "apply",
|
|
346
|
-
ref:
|
|
347
|
+
ref: de,
|
|
347
348
|
"data-testid": "mutli-apply",
|
|
348
349
|
size: "small",
|
|
349
350
|
class: "apply-button"
|
|
350
|
-
}, t(f)[t(y).ACTION_APPLY], { onClick: t(
|
|
351
|
-
default:
|
|
352
|
-
|
|
351
|
+
}, t(f)[t(y).ACTION_APPLY], { onClick: t(ie) }), {
|
|
352
|
+
default: u(() => [
|
|
353
|
+
T(" Apply ")
|
|
353
354
|
]),
|
|
354
355
|
_: 1
|
|
355
356
|
}, 16, ["onClick"])
|
|
@@ -361,35 +362,35 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
361
362
|
_: 3
|
|
362
363
|
})
|
|
363
364
|
]),
|
|
364
|
-
default:
|
|
365
|
+
default: u(() => [
|
|
365
366
|
m("div", {
|
|
366
|
-
class:
|
|
367
|
-
"button__container--open": !!t(
|
|
367
|
+
class: L(["button__container", {
|
|
368
|
+
"button__container--open": !!t(s),
|
|
368
369
|
[`button__container--${e.size}`]: !0,
|
|
369
370
|
"button__container--disabled": e.disabled
|
|
370
371
|
}])
|
|
371
372
|
}, [
|
|
372
373
|
m("div", {
|
|
373
374
|
ref_key: "buttonRef",
|
|
374
|
-
ref:
|
|
375
|
+
ref: z
|
|
375
376
|
}, [
|
|
376
|
-
|
|
377
|
+
g(p.$slots, "dropdown-trigger", {
|
|
377
378
|
buttonTriggerProps: {
|
|
378
|
-
open: t(
|
|
379
|
+
open: t(s),
|
|
379
380
|
disabled: e.disabled,
|
|
380
|
-
label: t(
|
|
381
|
+
label: t(oe) || e.placeholder,
|
|
381
382
|
onClick: () => t(v)()
|
|
382
383
|
},
|
|
383
384
|
defaultTriggerProps: {
|
|
384
385
|
placeholder: e.placeholder,
|
|
385
|
-
open: t(
|
|
386
|
+
open: t(s),
|
|
386
387
|
label: e.triggerLabel,
|
|
387
388
|
showFeedbackIcon: e.triggerFeedbackShowIcon,
|
|
388
389
|
mandatory: e.mandatory,
|
|
389
390
|
testId: e.testId,
|
|
390
391
|
multi: e.multi,
|
|
391
392
|
disabled: e.disabled,
|
|
392
|
-
selectedOption: e.multi ? t(
|
|
393
|
+
selectedOption: e.multi ? t(O) : t(b),
|
|
393
394
|
displayValue: e.displayValue,
|
|
394
395
|
options: e.options,
|
|
395
396
|
optionNameKey: e.optionNameKey,
|
|
@@ -398,26 +399,28 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
398
399
|
optionIconType: e.optionIconType,
|
|
399
400
|
optionAndIconKey: e.optionEndIconKey,
|
|
400
401
|
optionEndIconType: e.optionEndIconType,
|
|
402
|
+
optionFlagKey: e.optionFlagKey,
|
|
401
403
|
feedbackVariant: e.triggerFeedbackVariant,
|
|
402
404
|
valueToCopy: e.valueToCopy,
|
|
403
405
|
statusDotType: e.statusType,
|
|
404
406
|
size: e.size,
|
|
405
407
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
408
|
+
allSelected: t(K),
|
|
406
409
|
onKeydown: t(N),
|
|
407
|
-
onClick:
|
|
410
|
+
onClick: G
|
|
408
411
|
}
|
|
409
412
|
}, () => [
|
|
410
|
-
t(
|
|
411
|
-
(
|
|
413
|
+
t($) ? (n(), a("div", Ne, [
|
|
414
|
+
(n(), X(be(t($)), {
|
|
412
415
|
placeholder: e.placeholder,
|
|
413
|
-
open: t(
|
|
416
|
+
open: t(s),
|
|
414
417
|
label: e.triggerLabel,
|
|
415
418
|
"show-feedback-icon": e.triggerFeedbackShowIcon,
|
|
416
419
|
mandatory: e.mandatory,
|
|
417
420
|
"test-id": e.testId,
|
|
418
421
|
multi: e.multi,
|
|
419
422
|
disabled: e.disabled,
|
|
420
|
-
"selected-option": e.multi ? t(
|
|
423
|
+
"selected-option": e.multi ? t(O) : t(b),
|
|
421
424
|
"display-value": e.displayValue,
|
|
422
425
|
options: e.options,
|
|
423
426
|
"option-name-key": e.optionNameKey,
|
|
@@ -426,33 +429,36 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
426
429
|
"option-icon-type": e.optionIconType,
|
|
427
430
|
"option-end-icon-key": e.optionEndIconKey,
|
|
428
431
|
"option-end-icon-type": e.optionEndIconType,
|
|
432
|
+
"option-flag-key": e.optionFlagKey,
|
|
429
433
|
"feedback-variant": e.triggerFeedbackVariant,
|
|
430
434
|
"value-to-copy": e.valueToCopy,
|
|
431
435
|
"status-dot-type": e.statusType,
|
|
432
436
|
size: e.size,
|
|
433
437
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
438
|
+
"all-selected": t(K),
|
|
434
439
|
onKeydown: t(N),
|
|
435
|
-
onClick:
|
|
436
|
-
onCopyToClipboard: l[0] || (l[0] = (o) =>
|
|
437
|
-
}, 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", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "onKeydown"]))
|
|
440
|
+
onClick: G,
|
|
441
|
+
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
442
|
+
}, 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", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
438
443
|
])) : d("", !0),
|
|
439
|
-
e.predefinedTrigger === t(k).ICON_BUTTON ? (
|
|
440
|
-
|
|
444
|
+
e.predefinedTrigger === t(k).ICON_BUTTON ? (n(), a("div", Ve, [
|
|
445
|
+
i(t(we), {
|
|
441
446
|
onClick: l[1] || (l[1] = (o) => t(v)())
|
|
442
447
|
})
|
|
443
448
|
])) : d("", !0),
|
|
444
|
-
e.predefinedTrigger === t(k).CHIP ? (
|
|
445
|
-
|
|
446
|
-
open: t(
|
|
449
|
+
e.predefinedTrigger === t(k).CHIP ? (n(), a("div", De, [
|
|
450
|
+
i(t(Ie), {
|
|
451
|
+
open: t(s),
|
|
447
452
|
label: e.placeholder,
|
|
448
453
|
"test-id": e.testId,
|
|
449
454
|
options: e.options,
|
|
450
|
-
"selected-option": e.multi ? t(
|
|
455
|
+
"selected-option": e.multi ? t(O) : t(b),
|
|
451
456
|
"display-value": e.displayValue,
|
|
452
457
|
multi: e.multi,
|
|
458
|
+
"all-selected": t(K),
|
|
453
459
|
onClick: l[2] || (l[2] = (o) => t(v)()),
|
|
454
|
-
onClear: l[3] || (l[3] = (o) => t(
|
|
455
|
-
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
460
|
+
onClear: l[3] || (l[3] = (o) => t(x)())
|
|
461
|
+
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
|
|
456
462
|
])) : d("", !0)
|
|
457
463
|
], !0)
|
|
458
464
|
], 512)
|
|
@@ -460,7 +466,7 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
460
466
|
]),
|
|
461
467
|
_: 3
|
|
462
468
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
463
|
-
e.triggerFeedbackText ? (
|
|
469
|
+
e.triggerFeedbackText ? (n(), X(Le, {
|
|
464
470
|
key: 0,
|
|
465
471
|
text: e.triggerFeedbackText,
|
|
466
472
|
variant: e.triggerFeedbackVariant,
|
|
@@ -469,9 +475,9 @@ const Ee = ["tabindex"], Be = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
469
475
|
class: "dropdown-field-help-text"
|
|
470
476
|
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : d("", !0)
|
|
471
477
|
])
|
|
472
|
-
], 16,
|
|
478
|
+
], 16, Be));
|
|
473
479
|
}
|
|
474
480
|
});
|
|
475
481
|
export {
|
|
476
|
-
|
|
482
|
+
Tt as default
|
|
477
483
|
};
|
|
@@ -93,10 +93,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
93
93
|
disabled: boolean;
|
|
94
94
|
active: boolean;
|
|
95
95
|
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
96
|
+
optionFlagKey: string;
|
|
96
97
|
optionTwoLinesVariant: "horizontal" | "vertical";
|
|
97
98
|
optionTwoLinesKey: string;
|
|
98
99
|
isIndeterminate: boolean;
|
|
99
|
-
optionFlagKey: string;
|
|
100
100
|
subtitle: string;
|
|
101
101
|
selectAllOption: boolean;
|
|
102
102
|
nameKey: string;
|