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