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