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