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