@ironsource/shared-ui 2.1.11-rc.5 → 2.1.11-rc.6
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_111642c6_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css +1 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +130 -124
- 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 +5 -0
- 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 +62 -3
- package/index.d.ts +124 -6
- package/index.js +1 -1
- package/mocks/options.d.ts +29 -2
- package/package.json +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_991a7aad_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-111642c6],.v-leave-active[data-v-111642c6]{transition:opacity .25s ease}ol[data-v-111642c6],ul[data-v-111642c6],menu[data-v-111642c6]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-111642c6],.dropdown.full-width .button__container[data-v-111642c6]{width:100%}.dropdown-list-wrapper[data-v-111642c6]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-111642c6]{padding:.5rem}.list-container--multi[data-v-111642c6]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-111642c6]{padding-bottom:.25rem}.inline-search .list-container[data-v-111642c6]{padding-top:0}.no-result-container[data-v-111642c6]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-111642c6]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-111642c6]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-111642c6]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.image-slot[data-v-111642c6]{margin-right:.5rem}.actions-wrapper[data-v-111642c6]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.apply-button[data-v-111642c6]{margin-left:.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.label[data-v-da829544]{color:#41454d}.item-container[data-v-da829544]{width:100%;display:flex;align-items:center;cursor:pointer;border-radius:var(--border-radius-lg);margin-bottom:.25rem;color:var(--text-primary);padding:6px 8px}.item-container--disabled[data-v-da829544]{cursor:initial;color:var(--text-disabled)}.item-container[data-v-da829544]:hover:not(.item-container--disabled){background-color:var(--action-hover)}.item-container--active[data-v-da829544],.item-container[data-v-da829544]:active{background-color:var(--action-selected)}.item-container:not(.item-container--multi).item-container--selected[data-v-da829544]{background-color:var(--action-selected)}.subtitle[data-v-da829544]{color:#7b838c;line-height:1rem}.clear-button[data-v-da829544]{display:flex;padding:0 4px;color:#7b838c;align-items:center;height:auto;background-image:none;min-width:auto;border:none;background-color:transparent}.clear-button[data-v-da829544]:hover{color:#3083ff}.item[data-v-da829544]{width:100%;display:flex;gap:.5rem;align-items:center}.item--with-icon[data-v-da829544],.item--multi[data-v-da829544]{display:flex;flex-direction:row;align-items:center;justify-content:start}.item .image[data-v-da829544]{width:20px;height:20px;flex:none}.item .image img[data-v-da829544]{width:20px;height:20px;border-radius:4px}.item .flag[data-v-da829544]{width:16px;height:16px}.item .flag img[data-v-da829544]{width:16px;height:16px;border-radius:50%}.item .start-icon[data-v-da829544],.item .end-icon[data-v-da829544]{display:flex;color:var(--action-active)}.item .end-text-icon[data-v-da829544]{display:inline-flex}.item .option-text[data-v-da829544]{line-height:1.1875rem}.text-container[data-v-da829544]{width:100%;text-overflow:ellipsis;overflow:hidden}.tooltip-option[data-v-da829544]{display:block}.tooltip-option[data-v-da829544] .container{width:100%}.app-trigger--icon[data-v-da829544]{color:var(--action-active);transform:rotate(-90deg);transition:transform .2s}.app-trigger--icon.expanded[data-v-da829544]{transform:rotate(0)}.option-content[data-v-da829544]{display:flex}.option-content[data-v-da829544]:not(.option-content-vertical){gap:.5rem;align-items:center}.option-content-horizontal[data-v-da829544]{justify-content:space-between;gap:.5rem}.option-content-vertical[data-v-da829544]{flex-direction:column}.option-text .main-text[data-v-da829544]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.option-text .caption-text[data-v-da829544]{color:var(--text-secondary)}.multiline-tooltip[data-v-da829544]{display:flex;flex-direction:column}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.child-options[data-v-985779f7]{padding-left:1rem}
|
|
@@ -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;
|
|
@@ -99,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
99
100
|
optionIconType: any;
|
|
100
101
|
optionEndIconKey: string;
|
|
101
102
|
optionEndIconType: any;
|
|
103
|
+
optionsEndTextIconKey: any;
|
|
102
104
|
optionFlagKey: any;
|
|
103
105
|
valueToCopy: any;
|
|
104
106
|
disabledOptionKey: string;
|
|
@@ -169,6 +171,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
169
171
|
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
170
172
|
optionEndIconKey?: string;
|
|
171
173
|
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
174
|
+
optionsEndTextIconKey?: string;
|
|
172
175
|
optionFlagKey?: string;
|
|
173
176
|
valueToCopy?: string;
|
|
174
177
|
disabledOptionKey?: string;
|
|
@@ -225,6 +228,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
225
228
|
optionIconType: any;
|
|
226
229
|
optionEndIconKey: string;
|
|
227
230
|
optionEndIconType: any;
|
|
231
|
+
optionsEndTextIconKey: any;
|
|
228
232
|
optionFlagKey: any;
|
|
229
233
|
valueToCopy: any;
|
|
230
234
|
disabledOptionKey: string;
|
|
@@ -289,6 +293,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
289
293
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
290
294
|
optionEndIconKey: string;
|
|
291
295
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
296
|
+
optionsEndTextIconKey: string;
|
|
292
297
|
optionFlagKey: string;
|
|
293
298
|
valueToCopy: string;
|
|
294
299
|
disabledOptionKey: string;
|
|
@@ -329,6 +334,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
329
334
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
330
335
|
optionAndIconKey: string;
|
|
331
336
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
337
|
+
optionsEndTextIconKey: string;
|
|
332
338
|
optionFlagKey: string;
|
|
333
339
|
feedbackVariant: "success" | "warning" | "error";
|
|
334
340
|
valueToCopy: string;
|
|
@@ -344,6 +350,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
344
350
|
"input-list"?(_: {
|
|
345
351
|
open: true;
|
|
346
352
|
}): any;
|
|
353
|
+
"select-all"?(_: {}): any;
|
|
347
354
|
"group-option"?(_: {}): any;
|
|
348
355
|
default?(_: {
|
|
349
356
|
option: unknown;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DropdownV4.
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_111642c6_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const
|
|
5
|
+
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-111642c6"]]);
|
|
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_111642c6_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as ye, computed as U, openBlock as i, createElementBlock as d, mergeProps as s, unref as t, renderSlot as g, createElementVNode as m, createVNode as n, withCtx as c, Transition as fe, normalizeClass as O, normalizeStyle as me, isRef as pe, createCommentVNode as r, createTextVNode as b, toDisplayString as W, withModifiers as M, Fragment as ge, renderList as Te, toRaw as w, createBlock as X, resolveDynamicComponent as ke } 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 be from "./DefaultDropdownTrigger.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import Ie from "./IconButtonDropdownTrigger.vue.js";
|
|
9
|
+
import he from "./ChipDropdownTrigger.vue.js";
|
|
10
10
|
import we from "./AppDropdownTrigger.vue.js";
|
|
11
11
|
import "./ButtonDropdownTrigger.vue.js";
|
|
12
12
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
@@ -19,23 +19,23 @@ import { DropdownTestIdModifiers as y } 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
|
-
import { TRIGGERS as
|
|
23
|
-
import { useElementSize as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve = { key: 1 },
|
|
22
|
+
import { TRIGGERS as T } from "./Dropdown.types.js";
|
|
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 Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve = { key: 1 }, xe = { key: 2 }, De = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "inline-search-wrapper"
|
|
29
|
-
},
|
|
29
|
+
}, Pe = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "no-result-container"
|
|
32
|
-
},
|
|
32
|
+
}, Re = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "loader"
|
|
35
|
-
},
|
|
35
|
+
}, ze = ["aria-selected", "aria-disabled", "onClick"], $e = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "actions-wrapper"
|
|
38
|
-
},
|
|
38
|
+
}, He = { class: "actions-clear-all" }, Ge = { class: "actions-apply-cancel" }, pt = /* @__PURE__ */ ye({
|
|
39
39
|
__name: "DropdownV4",
|
|
40
40
|
props: {
|
|
41
41
|
modelValue: { default: null },
|
|
@@ -67,7 +67,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
67
67
|
triggerShowAllSelectedText: { type: Boolean, default: !0 },
|
|
68
68
|
size: { default: "medium" },
|
|
69
69
|
mandatory: { type: Boolean, default: !1 },
|
|
70
|
-
predefinedTrigger: { default:
|
|
70
|
+
predefinedTrigger: { default: T.DEFAULT },
|
|
71
71
|
inlineSearch: { type: Boolean, default: !1 },
|
|
72
72
|
inlineSearchPlaceholder: { default: "Search" },
|
|
73
73
|
onSearch: { type: Function, default: null },
|
|
@@ -81,6 +81,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { 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" },
|
|
@@ -98,7 +99,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
98
99
|
},
|
|
99
100
|
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
|
|
100
101
|
setup(e, { expose: Y, emit: F }) {
|
|
101
|
-
const
|
|
102
|
+
const a = e, N = {
|
|
102
103
|
MULTILINE_LIST_HEIGHT: 48,
|
|
103
104
|
LIST_HEIGHT: 32 + 4,
|
|
104
105
|
MAX_NUMBER_OF_OPTIONS: 7.5,
|
|
@@ -106,7 +107,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
106
107
|
DROPLIST_MIN_WIDTH: 240,
|
|
107
108
|
VERSION: 4
|
|
108
109
|
}, {
|
|
109
|
-
onKeydown:
|
|
110
|
+
onKeydown: I,
|
|
110
111
|
open: u,
|
|
111
112
|
toggleMenu: v,
|
|
112
113
|
onButtonKeydown: B,
|
|
@@ -119,42 +120,42 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
119
120
|
allSelectedApplied: K,
|
|
120
121
|
isIndeterminate: _,
|
|
121
122
|
onSelectAll: ee,
|
|
122
|
-
virtualOptions:
|
|
123
|
+
virtualOptions: x,
|
|
123
124
|
isSelected: A,
|
|
124
|
-
selectedOption:
|
|
125
|
-
selectedOptionPrevious:
|
|
125
|
+
selectedOption: k,
|
|
126
|
+
selectedOptionPrevious: E,
|
|
126
127
|
selectedValue: te,
|
|
127
|
-
onSelect:
|
|
128
|
-
activeIndex:
|
|
129
|
-
onCancel:
|
|
130
|
-
onApply:
|
|
131
|
-
scrollTo:
|
|
132
|
-
listRef:
|
|
133
|
-
buttonRef:
|
|
128
|
+
onSelect: D,
|
|
129
|
+
activeIndex: P,
|
|
130
|
+
onCancel: oe,
|
|
131
|
+
onApply: le,
|
|
132
|
+
scrollTo: ne,
|
|
133
|
+
listRef: ie,
|
|
134
|
+
buttonRef: R,
|
|
134
135
|
apply: ae,
|
|
135
136
|
cancel: de,
|
|
136
137
|
el: re,
|
|
137
|
-
onClearAllSelections:
|
|
138
|
+
onClearAllSelections: z,
|
|
138
139
|
clearAll: ue,
|
|
139
140
|
isGroup: se
|
|
140
|
-
} = Ke(
|
|
141
|
+
} = Ke(a, F, N), f = Ae(a.testId, y), $ = U(() => !a.predefinedTrigger || a.predefinedTrigger === T.DEFAULT ? be : a.predefinedTrigger === T.APP ? we : null), { width: H } = Ee(R), ce = U(() => a.optionsListWidth ? a.optionsListWidth : !a.predefinedTrigger || a.predefinedTrigger === T.DEFAULT || a.predefinedTrigger === T.APP ? H.value - 2 > 240 ? `${H.value - 2}px` : `${N.DROPLIST_MIN_WIDTH}px` : "auto"), G = () => {
|
|
141
142
|
v();
|
|
142
143
|
};
|
|
143
144
|
return Y({
|
|
144
|
-
selectItem:
|
|
145
|
-
scrollTo:
|
|
146
|
-
}), (
|
|
145
|
+
selectItem: D,
|
|
146
|
+
scrollTo: ne
|
|
147
|
+
}), (p, l) => (i(), d("div", s({
|
|
147
148
|
ref_key: "el",
|
|
148
149
|
ref: re,
|
|
149
150
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
|
|
150
151
|
tabindex: e.disabled ? -1 : 0
|
|
151
152
|
}, t(f)[t(y).WRAPPER], {
|
|
152
|
-
onKeydown:
|
|
153
|
-
(...
|
|
153
|
+
onKeydown: l[8] || (l[8] = //@ts-ignore
|
|
154
|
+
(...o) => t(I) && t(I)(...o))
|
|
154
155
|
}), [
|
|
155
|
-
|
|
156
|
+
g(p.$slots, "label", {}, void 0, !0),
|
|
156
157
|
m("div", Ne, [
|
|
157
|
-
|
|
158
|
+
n(t(Se), s({
|
|
158
159
|
theme: e.theme,
|
|
159
160
|
"popper-class": [
|
|
160
161
|
e.popperClass,
|
|
@@ -173,30 +174,30 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
173
174
|
"auto-size": e.autoSize
|
|
174
175
|
}, t(f)[t(y).TRIGGER]), {
|
|
175
176
|
popper: c(() => [
|
|
176
|
-
|
|
177
|
+
n(fe, null, {
|
|
177
178
|
default: c(() => [
|
|
178
|
-
t(u) ? (
|
|
179
|
+
t(u) ? (i(), d("div", {
|
|
179
180
|
key: 0,
|
|
180
181
|
ref_key: "listRef",
|
|
181
|
-
ref:
|
|
182
|
-
class:
|
|
182
|
+
ref: ie,
|
|
183
|
+
class: O(["light-theme-v4", {
|
|
183
184
|
"dropdown--disabled": e.disabled,
|
|
184
185
|
"inline-search": e.inlineSearch
|
|
185
186
|
}]),
|
|
186
187
|
style: me({ width: t(ce) })
|
|
187
188
|
}, [
|
|
188
|
-
t(u) ? (
|
|
189
|
+
t(u) ? (i(), d("div", {
|
|
189
190
|
key: 0,
|
|
190
|
-
class:
|
|
191
|
-
onKeydown:
|
|
192
|
-
(...
|
|
191
|
+
class: O(["dropdown-list-wrapper", { "dropdown-list-wrapper--multi": e.multi }]),
|
|
192
|
+
onKeydown: l[7] || (l[7] = //@ts-ignore
|
|
193
|
+
(...o) => t(I) && t(I)(...o))
|
|
193
194
|
}, [
|
|
194
|
-
t(u) && e.inlineSearch ? (
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
t(u) && e.inlineSearch ? (i(), d("div", De, [
|
|
196
|
+
g(p.$slots, "inline-search", {}, () => [
|
|
197
|
+
n(t(ve), {
|
|
197
198
|
modelValue: t(C),
|
|
198
199
|
"onUpdate:modelValue": [
|
|
199
|
-
|
|
200
|
+
l[4] || (l[4] = (o) => pe(C) ? C.value = o : null),
|
|
200
201
|
e.onClear
|
|
201
202
|
],
|
|
202
203
|
placeholder: e.inlineSearchPlaceholder,
|
|
@@ -204,11 +205,11 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
204
205
|
size: "md",
|
|
205
206
|
"auto-focus": e.searchAutoFocus,
|
|
206
207
|
"test-id": e.testId,
|
|
207
|
-
onKeydown: t(
|
|
208
|
+
onKeydown: t(I)
|
|
208
209
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
209
210
|
], !0)
|
|
210
211
|
])) : r("", !0),
|
|
211
|
-
|
|
212
|
+
g(p.$slots, "input-list", { open: t(u) }, void 0, !0),
|
|
212
213
|
m("div", s({
|
|
213
214
|
class: ["list-container", { "list-container--multi": e.multi }],
|
|
214
215
|
style: { height: `${t(J)}rem` }
|
|
@@ -220,83 +221,86 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
220
221
|
role: "listbox",
|
|
221
222
|
class: ["list", { "list--multi": e.multi }]
|
|
222
223
|
}), [
|
|
223
|
-
!t(Z).length && !e.loading ? (
|
|
224
|
-
|
|
224
|
+
!t(Z).length && !e.loading ? (i(), d("li", Pe, [
|
|
225
|
+
n(t(Ce), s({ variant: "body2" }, t(f)[t(y).NO_RESULT]), {
|
|
225
226
|
default: c(() => [
|
|
226
227
|
b(W(e.noResultsText), 1)
|
|
227
228
|
]),
|
|
228
229
|
_: 1
|
|
229
230
|
}, 16)
|
|
230
231
|
])) : r("", !0),
|
|
231
|
-
e.loading ? (
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
])) : r("", !0),
|
|
237
|
-
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading ? (n(), a("li", xe, [
|
|
238
|
-
i(t(q), s(
|
|
239
|
-
{
|
|
240
|
-
"aria-selected": t(V),
|
|
241
|
-
"aria-disabled": !!e.disabled,
|
|
242
|
-
"selected-prop": t(V),
|
|
243
|
-
"is-indeterminate": t(_),
|
|
244
|
-
"select-all-option": ""
|
|
245
|
-
},
|
|
246
|
-
t(f)[t(y).SELECT_ALL],
|
|
247
|
-
{
|
|
248
|
-
onClick: o[5] || (o[5] = M((l) => t(ee)(), ["stop"]))
|
|
249
|
-
}
|
|
250
|
-
), {
|
|
251
|
-
default: c(() => [
|
|
252
|
-
b(" Select all ")
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
232
|
+
e.loading ? (i(), d("li", Re, [
|
|
233
|
+
n(t(S), { round: "" }),
|
|
234
|
+
n(t(S), { round: "" }),
|
|
235
|
+
n(t(S), { round: "" }),
|
|
236
|
+
n(t(S), { round: "" })
|
|
256
237
|
])) : r("", !0),
|
|
257
|
-
t(
|
|
258
|
-
|
|
259
|
-
|
|
238
|
+
e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading ? g(p.$slots, "select-all", { key: 2 }, () => [
|
|
239
|
+
m("li", null, [
|
|
240
|
+
n(t(q), s(
|
|
241
|
+
{
|
|
242
|
+
"aria-selected": t(V),
|
|
243
|
+
"aria-disabled": !!e.disabled,
|
|
244
|
+
"selected-prop": t(V),
|
|
245
|
+
"is-indeterminate": t(_),
|
|
246
|
+
"select-all-option": ""
|
|
247
|
+
},
|
|
248
|
+
t(f)[t(y).SELECT_ALL],
|
|
249
|
+
{
|
|
250
|
+
onClick: l[5] || (l[5] = M((o) => t(ee)(), ["stop"]))
|
|
251
|
+
}
|
|
252
|
+
), {
|
|
253
|
+
default: c(() => [
|
|
254
|
+
b(" Select all ")
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
258
|
+
])
|
|
259
|
+
], !0) : r("", !0),
|
|
260
|
+
t(x).length && !e.loading ? (i(!0), d(ge, { key: 3 }, Te(t(x), ({ data: o, index: h }) => (i(), d("li", {
|
|
261
|
+
key: h,
|
|
262
|
+
"aria-selected": t(A)(w(t(k)), o),
|
|
260
263
|
"aria-disabled": !!e.disabled,
|
|
261
|
-
onClick: M(() => t(
|
|
264
|
+
onClick: M(() => t(D)(o, h), ["stop"])
|
|
262
265
|
}, [
|
|
263
|
-
e.groupedOptions && t(se)(
|
|
264
|
-
|
|
266
|
+
e.groupedOptions && t(se)(o) ? g(p.$slots, "group-option", { key: 0 }, () => [
|
|
267
|
+
n(Le, null, {
|
|
265
268
|
default: c(() => [
|
|
266
|
-
b(W(e.displayValue(
|
|
269
|
+
b(W(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
267
270
|
]),
|
|
268
271
|
_: 2
|
|
269
272
|
}, 1024)
|
|
270
|
-
], !0) :
|
|
273
|
+
], !0) : g(p.$slots, "default", {
|
|
271
274
|
key: 1,
|
|
272
|
-
option:
|
|
273
|
-
index:
|
|
274
|
-
selected: t(A)(w(t(
|
|
275
|
-
active: w(t(
|
|
276
|
-
disabled:
|
|
275
|
+
option: o,
|
|
276
|
+
index: h,
|
|
277
|
+
selected: t(A)(w(t(k)), o),
|
|
278
|
+
active: w(t(P)) === h,
|
|
279
|
+
disabled: o[a.disabledOptionKey]
|
|
277
280
|
}, () => [
|
|
278
|
-
|
|
279
|
-
option:
|
|
280
|
-
"selected-prop": t(A)(w(t(
|
|
281
|
-
active: w(t(
|
|
282
|
-
disabled:
|
|
281
|
+
n(t(q), {
|
|
282
|
+
option: o,
|
|
283
|
+
"selected-prop": t(A)(w(t(k)), o),
|
|
284
|
+
active: w(t(P)) === h,
|
|
285
|
+
disabled: o[a.disabledOptionKey],
|
|
283
286
|
"name-key": e.optionNameKey,
|
|
284
287
|
"image-key": e.optionImageKey,
|
|
285
288
|
"icon-key": e.optionIconKey,
|
|
286
289
|
"icon-type": e.optionIconType,
|
|
287
290
|
"end-icon-key": e.optionEndIconKey,
|
|
288
291
|
"end-icon-type": e.optionEndIconType,
|
|
292
|
+
"end-text-icon-key": e.optionsEndTextIconKey,
|
|
289
293
|
"option-flag-key": e.optionFlagKey,
|
|
290
294
|
"option-two-lines-variant": e.optionTwoLinesVariant,
|
|
291
295
|
"option-two-lines-key": e.optionTwoLinesKey
|
|
292
|
-
}, 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"])
|
|
296
|
+
}, 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"])
|
|
293
297
|
], !0)
|
|
294
|
-
], 8,
|
|
298
|
+
], 8, ze))), 128)) : r("", !0)
|
|
295
299
|
], 16)
|
|
296
300
|
], 16),
|
|
297
|
-
e.multi ? (
|
|
298
|
-
m("div",
|
|
299
|
-
|
|
301
|
+
e.multi ? (i(), d("div", $e, [
|
|
302
|
+
m("div", He, [
|
|
303
|
+
n(t(L), s(
|
|
300
304
|
{
|
|
301
305
|
ref_key: "clearAll",
|
|
302
306
|
ref: ue,
|
|
@@ -306,7 +310,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
306
310
|
},
|
|
307
311
|
t(f)[t(y).ACTION_CLEAR_ALL],
|
|
308
312
|
{
|
|
309
|
-
onClick:
|
|
313
|
+
onClick: l[6] || (l[6] = () => t(z)(!1))
|
|
310
314
|
}
|
|
311
315
|
), {
|
|
312
316
|
default: c(() => [
|
|
@@ -315,8 +319,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
315
319
|
_: 1
|
|
316
320
|
}, 16)
|
|
317
321
|
]),
|
|
318
|
-
m("div",
|
|
319
|
-
|
|
322
|
+
m("div", Ge, [
|
|
323
|
+
n(t(L), s(
|
|
320
324
|
{
|
|
321
325
|
ref_key: "cancel",
|
|
322
326
|
ref: de,
|
|
@@ -325,20 +329,20 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
325
329
|
color: "primary"
|
|
326
330
|
},
|
|
327
331
|
t(f)[t(y).ACTION_CANCEL],
|
|
328
|
-
{ onClick: t(
|
|
332
|
+
{ onClick: t(oe) }
|
|
329
333
|
), {
|
|
330
334
|
default: c(() => [
|
|
331
335
|
b(" Cancel ")
|
|
332
336
|
]),
|
|
333
337
|
_: 1
|
|
334
338
|
}, 16, ["onClick"]),
|
|
335
|
-
|
|
339
|
+
n(t(L), s({
|
|
336
340
|
ref_key: "apply",
|
|
337
341
|
ref: ae,
|
|
338
342
|
"data-testid": "mutli-apply",
|
|
339
343
|
size: "small",
|
|
340
344
|
class: "apply-button"
|
|
341
|
-
}, t(f)[t(y).ACTION_APPLY], { onClick: t(
|
|
345
|
+
}, t(f)[t(y).ACTION_APPLY], { onClick: t(le) }), {
|
|
342
346
|
default: c(() => [
|
|
343
347
|
b(" Apply ")
|
|
344
348
|
]),
|
|
@@ -354,7 +358,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
354
358
|
]),
|
|
355
359
|
default: c(() => [
|
|
356
360
|
m("div", {
|
|
357
|
-
class:
|
|
361
|
+
class: O(["button__container", {
|
|
358
362
|
"button__container--open": !!t(u),
|
|
359
363
|
[`button__container--${e.size}`]: !0,
|
|
360
364
|
"button__container--disabled": e.disabled
|
|
@@ -362,9 +366,9 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
362
366
|
}, [
|
|
363
367
|
m("div", {
|
|
364
368
|
ref_key: "buttonRef",
|
|
365
|
-
ref:
|
|
369
|
+
ref: R
|
|
366
370
|
}, [
|
|
367
|
-
|
|
371
|
+
g(p.$slots, "dropdown-trigger", {
|
|
368
372
|
buttonTriggerProps: {
|
|
369
373
|
open: t(u),
|
|
370
374
|
disabled: e.disabled,
|
|
@@ -380,7 +384,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
380
384
|
testId: e.testId,
|
|
381
385
|
multi: e.multi,
|
|
382
386
|
disabled: e.disabled,
|
|
383
|
-
selectedOption: e.multi ? t(
|
|
387
|
+
selectedOption: e.multi ? t(E) : t(k),
|
|
384
388
|
displayValue: e.displayValue,
|
|
385
389
|
options: e.options,
|
|
386
390
|
optionNameKey: e.optionNameKey,
|
|
@@ -389,6 +393,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
389
393
|
optionIconType: e.optionIconType,
|
|
390
394
|
optionAndIconKey: e.optionEndIconKey,
|
|
391
395
|
optionEndIconType: e.optionEndIconType,
|
|
396
|
+
optionsEndTextIconKey: e.optionsEndTextIconKey,
|
|
392
397
|
optionFlagKey: e.optionFlagKey,
|
|
393
398
|
feedbackVariant: e.triggerFeedbackVariant,
|
|
394
399
|
valueToCopy: e.valueToCopy,
|
|
@@ -400,8 +405,8 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
400
405
|
onClick: G
|
|
401
406
|
}
|
|
402
407
|
}, () => [
|
|
403
|
-
t($) ? (
|
|
404
|
-
(
|
|
408
|
+
t($) ? (i(), d("div", Be, [
|
|
409
|
+
(i(), X(ke(t($)), {
|
|
405
410
|
placeholder: e.placeholder,
|
|
406
411
|
open: t(u),
|
|
407
412
|
label: e.triggerLabel,
|
|
@@ -410,7 +415,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
410
415
|
"test-id": e.testId,
|
|
411
416
|
multi: e.multi,
|
|
412
417
|
disabled: e.disabled,
|
|
413
|
-
"selected-option": e.multi ? t(
|
|
418
|
+
"selected-option": e.multi ? t(E) : t(k),
|
|
414
419
|
"display-value": e.displayValue,
|
|
415
420
|
options: e.options,
|
|
416
421
|
"option-name-key": e.optionNameKey,
|
|
@@ -419,6 +424,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
419
424
|
"option-icon-type": e.optionIconType,
|
|
420
425
|
"option-end-icon-key": e.optionEndIconKey,
|
|
421
426
|
"option-end-icon-type": e.optionEndIconType,
|
|
427
|
+
"options-end-text-icon-key": e.optionsEndTextIconKey,
|
|
422
428
|
"option-flag-key": e.optionFlagKey,
|
|
423
429
|
"feedback-variant": e.triggerFeedbackVariant,
|
|
424
430
|
"value-to-copy": e.valueToCopy,
|
|
@@ -428,26 +434,26 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
428
434
|
"all-selected": t(K),
|
|
429
435
|
onKeydown: t(B),
|
|
430
436
|
onClick: G,
|
|
431
|
-
onCopyToClipboard:
|
|
432
|
-
}, 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"]))
|
|
437
|
+
onCopyToClipboard: l[0] || (l[0] = (o) => F("copyToClipboard"))
|
|
438
|
+
}, 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"]))
|
|
433
439
|
])) : r("", !0),
|
|
434
|
-
e.predefinedTrigger === t(
|
|
435
|
-
|
|
436
|
-
onClick:
|
|
440
|
+
e.predefinedTrigger === t(T).ICON_BUTTON ? (i(), d("div", Ve, [
|
|
441
|
+
n(t(Ie), {
|
|
442
|
+
onClick: l[1] || (l[1] = (o) => t(v)())
|
|
437
443
|
})
|
|
438
444
|
])) : r("", !0),
|
|
439
|
-
e.predefinedTrigger === t(
|
|
440
|
-
|
|
445
|
+
e.predefinedTrigger === t(T).CHIP ? (i(), d("div", xe, [
|
|
446
|
+
n(t(he), {
|
|
441
447
|
open: t(u),
|
|
442
448
|
label: e.placeholder,
|
|
443
449
|
"test-id": e.testId,
|
|
444
450
|
options: e.options,
|
|
445
|
-
"selected-option": e.multi ? t(
|
|
451
|
+
"selected-option": e.multi ? t(E) : t(k),
|
|
446
452
|
"display-value": e.displayValue,
|
|
447
453
|
multi: e.multi,
|
|
448
454
|
"all-selected": t(K),
|
|
449
|
-
onClick:
|
|
450
|
-
onClear:
|
|
455
|
+
onClick: l[2] || (l[2] = (o) => t(v)()),
|
|
456
|
+
onClear: l[3] || (l[3] = (o) => t(z)())
|
|
451
457
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected"])
|
|
452
458
|
])) : r("", !0)
|
|
453
459
|
], !0)
|
|
@@ -456,7 +462,7 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
456
462
|
]),
|
|
457
463
|
_: 3
|
|
458
464
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
|
|
459
|
-
e.triggerFeedbackText ? (
|
|
465
|
+
e.triggerFeedbackText ? (i(), X(Oe, {
|
|
460
466
|
key: 0,
|
|
461
467
|
text: e.triggerFeedbackText,
|
|
462
468
|
variant: e.triggerFeedbackVariant,
|
|
@@ -469,5 +475,5 @@ const Fe = ["tabindex"], Ne = { style: { width: "100%" } }, Be = { key: 0 }, Ve
|
|
|
469
475
|
}
|
|
470
476
|
});
|
|
471
477
|
export {
|
|
472
|
-
|
|
478
|
+
pt as default
|
|
473
479
|
};
|
|
@@ -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;
|