@ironsource/shared-ui 2.1.3-rc.19 → 2.1.3-rc.20
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/Alert.vue_vue_type_style_index_0_scoped_72bcdcd0_lang.css +1 -0
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +14 -7
- package/components/alert/Alert.vue.js +3 -3
- package/components/alert/Alert.vue2.js +28 -27
- package/components/alert/index.d.ts +176 -38
- package/components/autocomplete/Autocomplete.vue2.js +14 -12
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +34 -33
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
- 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 +124 -114
- package/components/dropdown/v4/index.d.ts +90 -3
- package/components/dropdown/v4/index.js +16 -10
- package/components/multibar/MultiBarMenu.vue2.js +13 -11
- package/components/table/v4/DataGridMenu.vue2.js +13 -11
- package/index.d.ts +262 -3
- package/package.json +1 -1
- package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b9e03c56_lang.css +0 -1
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as de, computed as V, openBlock as i, createElementBlock as n, mergeProps as u, unref as e, renderSlot as w, createElementVNode as p, createVNode as a, withCtx as c, Transition as re, normalizeClass as F, normalizeStyle as se, isRef as ue, createCommentVNode as r, createTextVNode as g, toDisplayString as ce, withModifiers as x, Fragment as fe, renderList as me, toRaw as k, createBlock as pe, resolveDynamicComponent as ye } from "vue";
|
|
2
2
|
import A from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "./DropdownV4.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import ge from "./DefaultDropdownTrigger.vue.js";
|
|
6
|
+
import he from "./IconButtonDropdownTrigger.vue.js";
|
|
7
|
+
import be from "./ChipDropdownTrigger.vue.js";
|
|
8
8
|
import ke from "./AppDropdownTrigger.vue.js";
|
|
9
|
+
import "./ButtonDropdownTrigger.vue.js";
|
|
10
|
+
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
11
|
import $ from "./OptionV4.vue.js";
|
|
10
12
|
import Te from "../../search/v4/SearchV4.vue.js";
|
|
11
13
|
import H from "../../typography/v4/Typography.vue.js";
|
|
12
|
-
import { Dropdown as
|
|
13
|
-
import { DropdownTestIdModifiers as
|
|
14
|
-
import { dropdownCommon as
|
|
15
|
-
import
|
|
16
|
-
import { useTestIdAttrs as
|
|
17
|
-
import { TRIGGERS as
|
|
18
|
-
import { useElementSize as
|
|
19
|
-
const
|
|
14
|
+
import { Dropdown as ve } from "floating-vue";
|
|
15
|
+
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
16
|
+
import { dropdownCommon as Ie } from "../common/Dropdown.common.js";
|
|
17
|
+
import we from "../../loader/v4/Loader.vue.js";
|
|
18
|
+
import { useTestIdAttrs as Ce } from "../../../utils/testIds.js";
|
|
19
|
+
import { TRIGGERS as y } from "./Dropdown.types.js";
|
|
20
|
+
import { useElementSize as Se } from "@vueuse/core";
|
|
21
|
+
const Ae = ["tabindex"], Le = { style: { width: "100%" } }, Oe = { key: 0 }, Be = { key: 1 }, Ne = { key: 2 }, De = {
|
|
20
22
|
key: 0,
|
|
21
23
|
class: "inline-search-wrapper"
|
|
22
|
-
},
|
|
24
|
+
}, Ke = {
|
|
23
25
|
key: 0,
|
|
24
26
|
class: "no-result-container"
|
|
25
|
-
},
|
|
27
|
+
}, Ee = {
|
|
26
28
|
key: 1,
|
|
27
29
|
class: "loader"
|
|
28
|
-
},
|
|
30
|
+
}, Pe = { key: 2 }, Re = ["aria-selected", "aria-disabled", "onClick"], ze = {
|
|
29
31
|
key: 1,
|
|
30
32
|
class: "actions-wrapper"
|
|
31
|
-
},
|
|
33
|
+
}, Ve = { class: "actions-clear-all" }, Fe = { class: "actions-apply-cancel" }, at = /* @__PURE__ */ de({
|
|
32
34
|
__name: "DropdownV4",
|
|
33
35
|
props: {
|
|
34
36
|
modelValue: { default: null },
|
|
@@ -59,7 +61,7 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
59
61
|
triggerFeedbackShowIcon: { type: Boolean, default: !1 },
|
|
60
62
|
size: { default: "medium" },
|
|
61
63
|
mandatory: { type: Boolean, default: !1 },
|
|
62
|
-
predefinedTrigger: { default:
|
|
64
|
+
predefinedTrigger: { default: y.DEFAULT },
|
|
63
65
|
inlineSearch: { type: Boolean, default: !1 },
|
|
64
66
|
inlineSearchPlaceholder: { default: "Search" },
|
|
65
67
|
onSearch: { type: Function, default: null },
|
|
@@ -88,8 +90,8 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
88
90
|
DROPLIST_MIN_WIDTH: 240
|
|
89
91
|
}, {
|
|
90
92
|
onKeydown: h,
|
|
91
|
-
open:
|
|
92
|
-
toggleMenu:
|
|
93
|
+
open: s,
|
|
94
|
+
toggleMenu: T,
|
|
93
95
|
onButtonKeydown: M,
|
|
94
96
|
query: C,
|
|
95
97
|
containerProps: G,
|
|
@@ -101,39 +103,40 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
101
103
|
onSelectAll: j,
|
|
102
104
|
virtualOptions: N,
|
|
103
105
|
isSelected: S,
|
|
104
|
-
selectedOption:
|
|
106
|
+
selectedOption: b,
|
|
107
|
+
selectedValue: J,
|
|
105
108
|
onSelect: D,
|
|
106
109
|
activeIndex: K,
|
|
107
|
-
onCancel:
|
|
108
|
-
onApply:
|
|
109
|
-
scrollTo:
|
|
110
|
-
listRef:
|
|
110
|
+
onCancel: Q,
|
|
111
|
+
onApply: Z,
|
|
112
|
+
scrollTo: _,
|
|
113
|
+
listRef: ee,
|
|
111
114
|
buttonRef: E,
|
|
112
|
-
apply:
|
|
113
|
-
cancel:
|
|
114
|
-
el:
|
|
115
|
-
onClearAllSelections:
|
|
116
|
-
clearAll:
|
|
117
|
-
} =
|
|
115
|
+
apply: te,
|
|
116
|
+
cancel: le,
|
|
117
|
+
el: oe,
|
|
118
|
+
onClearAllSelections: P,
|
|
119
|
+
clearAll: ie
|
|
120
|
+
} = Ie(d, W, L);
|
|
118
121
|
U({
|
|
119
122
|
selectItem: D,
|
|
120
|
-
scrollTo:
|
|
123
|
+
scrollTo: _
|
|
121
124
|
});
|
|
122
|
-
const m =
|
|
123
|
-
|
|
125
|
+
const m = Ce(d.testId, f), R = V(() => !d.predefinedTrigger || d.predefinedTrigger === y.DEFAULT ? ge : d.predefinedTrigger === y.APP ? ke : null), { width: z } = Se(E), ne = V(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === y.DEFAULT || d.predefinedTrigger === y.APP ? z.value - 2 > 240 ? `${z.value - 2}px` : `${L.DROPLIST_MIN_WIDTH}px` : "auto"), ae = () => {
|
|
126
|
+
T();
|
|
124
127
|
};
|
|
125
|
-
return (
|
|
128
|
+
return (v, o) => (i(), n("div", u({
|
|
126
129
|
ref_key: "el",
|
|
127
|
-
ref:
|
|
130
|
+
ref: oe,
|
|
128
131
|
class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": t.disabled, "full-width": t.fullWidth }]],
|
|
129
132
|
tabindex: t.disabled ? -1 : 0
|
|
130
|
-
}, e(m)[e(
|
|
133
|
+
}, e(m)[e(f).WRAPPER], {
|
|
131
134
|
onKeydown: o[6] || (o[6] = //@ts-ignore
|
|
132
135
|
(...l) => e(h) && e(h)(...l))
|
|
133
136
|
}), [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
a(e(
|
|
137
|
+
w(v.$slots, "label", {}, void 0, !0),
|
|
138
|
+
p("div", Le, [
|
|
139
|
+
a(e(ve), u({
|
|
137
140
|
theme: t.theme,
|
|
138
141
|
"popper-class": [
|
|
139
142
|
t.popperClass,
|
|
@@ -146,35 +149,35 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
146
149
|
distance: t.distance,
|
|
147
150
|
flip: t.flip,
|
|
148
151
|
triggers: [],
|
|
149
|
-
shown: !!e(
|
|
152
|
+
shown: !!e(s),
|
|
150
153
|
"auto-hide": !1,
|
|
151
154
|
container: t.container,
|
|
152
155
|
"auto-size": t.autoSize
|
|
153
|
-
}, e(m)[e(
|
|
154
|
-
popper:
|
|
155
|
-
a(
|
|
156
|
-
default:
|
|
157
|
-
e(
|
|
156
|
+
}, e(m)[e(f).TRIGGER]), {
|
|
157
|
+
popper: c(() => [
|
|
158
|
+
a(re, null, {
|
|
159
|
+
default: c(() => [
|
|
160
|
+
e(s) ? (i(), n("div", {
|
|
158
161
|
key: 0,
|
|
159
162
|
ref_key: "listRef",
|
|
160
|
-
ref:
|
|
161
|
-
class:
|
|
163
|
+
ref: ee,
|
|
164
|
+
class: F(["light-theme-v4", {
|
|
162
165
|
"dropdown--disabled": t.disabled,
|
|
163
166
|
"inline-search": t.inlineSearch
|
|
164
167
|
}]),
|
|
165
|
-
style:
|
|
168
|
+
style: se({ width: e(ne) })
|
|
166
169
|
}, [
|
|
167
|
-
e(
|
|
170
|
+
e(s) ? (i(), n("div", {
|
|
168
171
|
key: 0,
|
|
169
172
|
class: "dropdown-list-wrapper",
|
|
170
173
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
171
174
|
(...l) => e(h) && e(h)(...l))
|
|
172
175
|
}, [
|
|
173
|
-
e(
|
|
176
|
+
e(s) && t.inlineSearch ? (i(), n("div", De, [
|
|
174
177
|
a(e(Te), {
|
|
175
178
|
modelValue: e(C),
|
|
176
179
|
"onUpdate:modelValue": [
|
|
177
|
-
o[3] || (o[3] = (l) =>
|
|
180
|
+
o[3] || (o[3] = (l) => ue(C) ? C.value = l : null),
|
|
178
181
|
t.onClear
|
|
179
182
|
],
|
|
180
183
|
placeholder: t.inlineSearchPlaceholder,
|
|
@@ -185,40 +188,40 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
185
188
|
onKeydown: e(h)
|
|
186
189
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
|
|
187
190
|
])) : r("", !0),
|
|
188
|
-
|
|
189
|
-
|
|
191
|
+
w(v.$slots, "input-list", { open: e(s) }, void 0, !0),
|
|
192
|
+
p("div", u({
|
|
190
193
|
class: ["list-container", { "list-container--multi": t.multi }],
|
|
191
194
|
style: { height: `${e(X)}rem` }
|
|
192
195
|
}, {
|
|
193
196
|
...e(G),
|
|
194
|
-
...e(m)[e(
|
|
197
|
+
...e(m)[e(f).LIST_CONTAINER]
|
|
195
198
|
}), [
|
|
196
|
-
|
|
199
|
+
p("ul", u(e(O), {
|
|
197
200
|
style: {
|
|
198
201
|
height: Number(e(O).style.height) - 4
|
|
199
202
|
},
|
|
200
203
|
role: "listbox",
|
|
201
204
|
class: ["list", { "list--multi": t.multi }]
|
|
202
205
|
}), [
|
|
203
|
-
!e(q).length && !t.loading ? (i(), n("li",
|
|
204
|
-
a(e(H),
|
|
205
|
-
default:
|
|
206
|
-
g(
|
|
206
|
+
!e(q).length && !t.loading ? (i(), n("li", Ke, [
|
|
207
|
+
a(e(H), u({ variant: "body2" }, e(m)[e(f).NO_RESULT]), {
|
|
208
|
+
default: c(() => [
|
|
209
|
+
g(ce(t.noResultsText), 1)
|
|
207
210
|
]),
|
|
208
211
|
_: 1
|
|
209
212
|
}, 16)
|
|
210
213
|
])) : r("", !0),
|
|
211
|
-
t.loading ? (i(), n("li",
|
|
212
|
-
a(e(
|
|
214
|
+
t.loading ? (i(), n("li", Ee, [
|
|
215
|
+
a(e(we)),
|
|
213
216
|
a(e(H), null, {
|
|
214
|
-
default:
|
|
217
|
+
default: c(() => [
|
|
215
218
|
g("Loading...")
|
|
216
219
|
]),
|
|
217
220
|
_: 1
|
|
218
221
|
})
|
|
219
222
|
])) : r("", !0),
|
|
220
|
-
t.showSelectAll !== !1 && t.multi ? (i(), n("li",
|
|
221
|
-
a(e($),
|
|
223
|
+
t.showSelectAll !== !1 && t.multi ? (i(), n("li", Pe, [
|
|
224
|
+
a(e($), u(
|
|
222
225
|
{
|
|
223
226
|
"aria-selected": e(B),
|
|
224
227
|
"aria-disabled": !!t.disabled,
|
|
@@ -226,33 +229,33 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
226
229
|
"is-indeterminate": e(Y),
|
|
227
230
|
"select-all-option": ""
|
|
228
231
|
},
|
|
229
|
-
e(m)[e(
|
|
232
|
+
e(m)[e(f).SELECT_ALL],
|
|
230
233
|
{
|
|
231
234
|
onClick: o[4] || (o[4] = x((l) => e(j)(), ["stop"]))
|
|
232
235
|
}
|
|
233
236
|
), {
|
|
234
|
-
default:
|
|
237
|
+
default: c(() => [
|
|
235
238
|
g("Select all ")
|
|
236
239
|
]),
|
|
237
240
|
_: 1
|
|
238
241
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
|
|
239
242
|
])) : r("", !0),
|
|
240
|
-
e(N).length && !t.loading ? (i(!0), n(
|
|
241
|
-
key:
|
|
242
|
-
"aria-selected": e(S)(
|
|
243
|
+
e(N).length && !t.loading ? (i(!0), n(fe, { key: 3 }, me(e(N), ({ data: l, index: I }) => (i(), n("li", {
|
|
244
|
+
key: I,
|
|
245
|
+
"aria-selected": e(S)(k(e(b)), l),
|
|
243
246
|
"aria-disabled": !!t.disabled,
|
|
244
|
-
onClick: x(() => e(D)(l,
|
|
247
|
+
onClick: x(() => e(D)(l, I), ["stop"])
|
|
245
248
|
}, [
|
|
246
|
-
|
|
249
|
+
w(v.$slots, "default", {
|
|
247
250
|
option: l,
|
|
248
|
-
selected: e(S)(
|
|
249
|
-
active:
|
|
251
|
+
selected: e(S)(k(e(b)), l),
|
|
252
|
+
active: k(e(K)) === I,
|
|
250
253
|
disabled: l[d.disabledOptionKey]
|
|
251
254
|
}, () => [
|
|
252
255
|
a(e($), {
|
|
253
256
|
option: l,
|
|
254
|
-
selected: e(S)(
|
|
255
|
-
active:
|
|
257
|
+
selected: e(S)(k(e(b)), l),
|
|
258
|
+
active: k(e(K)) === I,
|
|
256
259
|
disabled: l[d.disabledOptionKey],
|
|
257
260
|
"name-key": t.optionNameKey,
|
|
258
261
|
"image-key": t.optionImageKey,
|
|
@@ -263,50 +266,50 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
263
266
|
], 8, Re))), 128)) : r("", !0)
|
|
264
267
|
], 16)
|
|
265
268
|
], 16),
|
|
266
|
-
t.multi ? (i(), n("div",
|
|
267
|
-
|
|
268
|
-
a(e(A),
|
|
269
|
+
t.multi ? (i(), n("div", ze, [
|
|
270
|
+
p("div", Ve, [
|
|
271
|
+
a(e(A), u(
|
|
269
272
|
{
|
|
270
273
|
ref_key: "clearAll",
|
|
271
|
-
ref:
|
|
274
|
+
ref: ie,
|
|
272
275
|
size: "small",
|
|
273
276
|
variant: "text",
|
|
274
277
|
color: "primary"
|
|
275
278
|
},
|
|
276
|
-
e(m)[e(
|
|
277
|
-
{ onClick: e(
|
|
279
|
+
e(m)[e(f).ACTION_CLEAR_ALL],
|
|
280
|
+
{ onClick: e(P) }
|
|
278
281
|
), {
|
|
279
|
-
default:
|
|
282
|
+
default: c(() => [
|
|
280
283
|
g(" Clear all ")
|
|
281
284
|
]),
|
|
282
285
|
_: 1
|
|
283
286
|
}, 16, ["onClick"])
|
|
284
287
|
]),
|
|
285
|
-
|
|
286
|
-
a(e(A),
|
|
288
|
+
p("div", Fe, [
|
|
289
|
+
a(e(A), u(
|
|
287
290
|
{
|
|
288
291
|
ref_key: "cancel",
|
|
289
|
-
ref:
|
|
292
|
+
ref: le,
|
|
290
293
|
size: "small",
|
|
291
294
|
variant: "outlined",
|
|
292
295
|
color: "primary"
|
|
293
296
|
},
|
|
294
|
-
e(m)[e(
|
|
295
|
-
{ onClick: e(
|
|
297
|
+
e(m)[e(f).ACTION_CANCEL],
|
|
298
|
+
{ onClick: e(Q) }
|
|
296
299
|
), {
|
|
297
|
-
default:
|
|
300
|
+
default: c(() => [
|
|
298
301
|
g(" Cancel ")
|
|
299
302
|
]),
|
|
300
303
|
_: 1
|
|
301
304
|
}, 16, ["onClick"]),
|
|
302
|
-
a(e(A),
|
|
305
|
+
a(e(A), u({
|
|
303
306
|
ref_key: "apply",
|
|
304
|
-
ref:
|
|
307
|
+
ref: te,
|
|
305
308
|
"data-testid": "mutli-apply",
|
|
306
309
|
size: "small",
|
|
307
310
|
class: "apply-button"
|
|
308
|
-
}, e(m)[e(
|
|
309
|
-
default:
|
|
311
|
+
}, e(m)[e(f).ACTION_APPLY], { onClick: e(Z) }), {
|
|
312
|
+
default: c(() => [
|
|
310
313
|
g("Apply ")
|
|
311
314
|
]),
|
|
312
315
|
_: 1
|
|
@@ -319,23 +322,30 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
319
322
|
_: 3
|
|
320
323
|
})
|
|
321
324
|
]),
|
|
322
|
-
default:
|
|
323
|
-
|
|
324
|
-
class:
|
|
325
|
-
"button__container--open": !!e(
|
|
325
|
+
default: c(() => [
|
|
326
|
+
p("div", {
|
|
327
|
+
class: F(["button__container", {
|
|
328
|
+
"button__container--open": !!e(s),
|
|
326
329
|
[`button__container--${t.size}`]: !0,
|
|
327
330
|
"button__container--disabled": t.disabled
|
|
328
331
|
}])
|
|
329
332
|
}, [
|
|
330
|
-
|
|
331
|
-
|
|
333
|
+
w(v.$slots, "dropdown-trigger", {
|
|
334
|
+
buttonTriggerProps: {
|
|
335
|
+
open: e(s),
|
|
336
|
+
disabled: t.disabled,
|
|
337
|
+
label: e(J) || t.placeholder,
|
|
338
|
+
onClick: () => e(T)()
|
|
339
|
+
}
|
|
340
|
+
}, () => [
|
|
341
|
+
p("div", {
|
|
332
342
|
ref_key: "buttonRef",
|
|
333
343
|
ref: E
|
|
334
344
|
}, [
|
|
335
|
-
e(
|
|
336
|
-
(i(),
|
|
345
|
+
e(R) ? (i(), n("div", Oe, [
|
|
346
|
+
(i(), pe(ye(e(R)), {
|
|
337
347
|
placeholder: t.placeholder,
|
|
338
|
-
open: e(
|
|
348
|
+
open: e(s),
|
|
339
349
|
label: t.triggerLabel,
|
|
340
350
|
"hover-help-text": t.triggerHelperText,
|
|
341
351
|
"feedback-text": t.triggerFeedbackText,
|
|
@@ -345,7 +355,7 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
345
355
|
"test-id": t.testId,
|
|
346
356
|
multi: t.multi,
|
|
347
357
|
disabled: t.disabled,
|
|
348
|
-
"selected-option": e(
|
|
358
|
+
"selected-option": e(b),
|
|
349
359
|
"display-value": t.displayValue,
|
|
350
360
|
options: t.options,
|
|
351
361
|
"option-name-key": t.optionNameKey,
|
|
@@ -356,25 +366,25 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
356
366
|
"status-dot-type": t.statusType,
|
|
357
367
|
size: t.size,
|
|
358
368
|
onKeydown: e(M),
|
|
359
|
-
onClick:
|
|
369
|
+
onClick: ae
|
|
360
370
|
}, null, 40, ["placeholder", "open", "label", "hover-help-text", "feedback-text", "feedback-variant", "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", "value-to-copy", "status-dot-type", "size", "onKeydown"]))
|
|
361
371
|
])) : r("", !0),
|
|
362
|
-
t.predefinedTrigger === e(
|
|
363
|
-
a(e(
|
|
364
|
-
onClick: o[0] || (o[0] = (l) => e(
|
|
372
|
+
t.predefinedTrigger === e(y).ICON_BUTTON ? (i(), n("div", Be, [
|
|
373
|
+
a(e(he), {
|
|
374
|
+
onClick: o[0] || (o[0] = (l) => e(T)())
|
|
365
375
|
})
|
|
366
376
|
])) : r("", !0),
|
|
367
|
-
t.predefinedTrigger === e(
|
|
368
|
-
a(e(
|
|
369
|
-
open: e(
|
|
377
|
+
t.predefinedTrigger === e(y).CHIP ? (i(), n("div", Ne, [
|
|
378
|
+
a(e(be), {
|
|
379
|
+
open: e(s),
|
|
370
380
|
label: t.placeholder,
|
|
371
381
|
"test-id": t.testId,
|
|
372
382
|
options: t.options,
|
|
373
|
-
"selected-option": e(
|
|
383
|
+
"selected-option": e(b),
|
|
374
384
|
"display-value": t.displayValue,
|
|
375
385
|
multi: t.multi,
|
|
376
|
-
onClick: o[1] || (o[1] = (l) => e(
|
|
377
|
-
onClear: o[2] || (o[2] = (l) => e(
|
|
386
|
+
onClick: o[1] || (o[1] = (l) => e(T)()),
|
|
387
|
+
onClear: o[2] || (o[2] = (l) => e(P)())
|
|
378
388
|
}, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi"])
|
|
379
389
|
])) : r("", !0)
|
|
380
390
|
], 512)
|
|
@@ -384,9 +394,9 @@ const Se = ["tabindex"], Ae = { style: { width: "100%" } }, Le = { key: 0 }, Oe
|
|
|
384
394
|
_: 3
|
|
385
395
|
}, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"])
|
|
386
396
|
])
|
|
387
|
-
], 16,
|
|
397
|
+
], 16, Ae));
|
|
388
398
|
}
|
|
389
399
|
});
|
|
390
400
|
export {
|
|
391
|
-
|
|
401
|
+
at as default
|
|
392
402
|
};
|
|
@@ -3,6 +3,8 @@ import DefaultDropdownTrigger from './DefaultDropdownTrigger.vue';
|
|
|
3
3
|
import IconButtonDropdownTrigger from './IconButtonDropdownTrigger.vue';
|
|
4
4
|
import ChipDropdownTrigger from './ChipDropdownTrigger.vue';
|
|
5
5
|
import AppDropdownTrigger from './AppDropdownTrigger.vue';
|
|
6
|
+
import ButtonDropdownTrigger from './ButtonDropdownTrigger.vue';
|
|
7
|
+
import ButtonFilterDropdownTrigger from './ButtonFilterDropdownTrigger.vue';
|
|
6
8
|
import Option from './OptionV4.vue';
|
|
7
9
|
declare const DropdownTypes: () => (({
|
|
8
10
|
new (...args: any[]): {
|
|
@@ -2282,7 +2284,14 @@ declare const DropdownTypes: () => (({
|
|
|
2282
2284
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
2283
2285
|
$slots: {
|
|
2284
2286
|
label?(_: {}): any;
|
|
2285
|
-
"dropdown-trigger"?(_: {
|
|
2287
|
+
"dropdown-trigger"?(_: {
|
|
2288
|
+
buttonTriggerProps: {
|
|
2289
|
+
open: boolean;
|
|
2290
|
+
disabled: boolean;
|
|
2291
|
+
label: any;
|
|
2292
|
+
onClick: () => void;
|
|
2293
|
+
};
|
|
2294
|
+
}): any;
|
|
2286
2295
|
"input-list"?(_: {
|
|
2287
2296
|
open: true;
|
|
2288
2297
|
}): any;
|
|
@@ -2293,5 +2302,83 @@ declare const DropdownTypes: () => (({
|
|
|
2293
2302
|
disabled: any;
|
|
2294
2303
|
}): any;
|
|
2295
2304
|
};
|
|
2296
|
-
})))
|
|
2297
|
-
|
|
2305
|
+
})) | import("vue").DefineComponent<{
|
|
2306
|
+
label: {
|
|
2307
|
+
type: import("vue").PropType<string>;
|
|
2308
|
+
required: true;
|
|
2309
|
+
};
|
|
2310
|
+
variant: {
|
|
2311
|
+
type: import("vue").PropType<"text" | "outlined">;
|
|
2312
|
+
default: string;
|
|
2313
|
+
};
|
|
2314
|
+
disabled: {
|
|
2315
|
+
type: import("vue").PropType<boolean>;
|
|
2316
|
+
default: boolean;
|
|
2317
|
+
};
|
|
2318
|
+
open: {
|
|
2319
|
+
type: import("vue").PropType<boolean>;
|
|
2320
|
+
default: boolean;
|
|
2321
|
+
};
|
|
2322
|
+
testId: {
|
|
2323
|
+
type: import("vue").PropType<string>;
|
|
2324
|
+
default: string;
|
|
2325
|
+
};
|
|
2326
|
+
startIconName: {
|
|
2327
|
+
type: import("vue").PropType<string>;
|
|
2328
|
+
default: any;
|
|
2329
|
+
};
|
|
2330
|
+
startIconType: {
|
|
2331
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
2332
|
+
default: string;
|
|
2333
|
+
};
|
|
2334
|
+
hideEndIcon: {
|
|
2335
|
+
type: import("vue").PropType<boolean>;
|
|
2336
|
+
default: boolean;
|
|
2337
|
+
};
|
|
2338
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2339
|
+
click: () => void;
|
|
2340
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2341
|
+
label: {
|
|
2342
|
+
type: import("vue").PropType<string>;
|
|
2343
|
+
required: true;
|
|
2344
|
+
};
|
|
2345
|
+
variant: {
|
|
2346
|
+
type: import("vue").PropType<"text" | "outlined">;
|
|
2347
|
+
default: string;
|
|
2348
|
+
};
|
|
2349
|
+
disabled: {
|
|
2350
|
+
type: import("vue").PropType<boolean>;
|
|
2351
|
+
default: boolean;
|
|
2352
|
+
};
|
|
2353
|
+
open: {
|
|
2354
|
+
type: import("vue").PropType<boolean>;
|
|
2355
|
+
default: boolean;
|
|
2356
|
+
};
|
|
2357
|
+
testId: {
|
|
2358
|
+
type: import("vue").PropType<string>;
|
|
2359
|
+
default: string;
|
|
2360
|
+
};
|
|
2361
|
+
startIconName: {
|
|
2362
|
+
type: import("vue").PropType<string>;
|
|
2363
|
+
default: any;
|
|
2364
|
+
};
|
|
2365
|
+
startIconType: {
|
|
2366
|
+
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test">;
|
|
2367
|
+
default: string;
|
|
2368
|
+
};
|
|
2369
|
+
hideEndIcon: {
|
|
2370
|
+
type: import("vue").PropType<boolean>;
|
|
2371
|
+
default: boolean;
|
|
2372
|
+
};
|
|
2373
|
+
}>> & {
|
|
2374
|
+
onClick?: () => any;
|
|
2375
|
+
}, {
|
|
2376
|
+
variant: "text" | "outlined";
|
|
2377
|
+
disabled: boolean;
|
|
2378
|
+
open: boolean;
|
|
2379
|
+
testId: string;
|
|
2380
|
+
startIconName: string;
|
|
2381
|
+
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
2382
|
+
hideEndIcon: boolean;
|
|
2383
|
+
}>)[];
|
|
2384
|
+
export { Dropdown, DefaultDropdownTrigger, IconButtonDropdownTrigger, ChipDropdownTrigger, ButtonDropdownTrigger, ButtonFilterDropdownTrigger, AppDropdownTrigger, DropdownTypes, Option, };
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue.js";
|
|
2
2
|
import r from "./DefaultDropdownTrigger.vue.js";
|
|
3
3
|
import p from "./IconButtonDropdownTrigger.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
4
|
+
import t from "./ChipDropdownTrigger.vue.js";
|
|
5
|
+
import i from "./AppDropdownTrigger.vue.js";
|
|
6
|
+
import m from "./ButtonDropdownTrigger.vue.js";
|
|
7
|
+
import n from "./ButtonFilterDropdownTrigger.vue.js";
|
|
8
|
+
import g from "./OptionV4.vue.js";
|
|
9
|
+
const c = () => [
|
|
8
10
|
o,
|
|
9
11
|
r,
|
|
10
12
|
p,
|
|
11
|
-
|
|
13
|
+
t,
|
|
12
14
|
m,
|
|
13
|
-
|
|
15
|
+
n,
|
|
16
|
+
i,
|
|
17
|
+
g
|
|
14
18
|
];
|
|
15
19
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
i as AppDropdownTrigger,
|
|
21
|
+
m as ButtonDropdownTrigger,
|
|
22
|
+
n as ButtonFilterDropdownTrigger,
|
|
23
|
+
t as ChipDropdownTrigger,
|
|
18
24
|
r as DefaultDropdownTrigger,
|
|
19
25
|
o as Dropdown,
|
|
20
|
-
|
|
26
|
+
c as DropdownTypes,
|
|
21
27
|
p as IconButtonDropdownTrigger,
|
|
22
|
-
|
|
28
|
+
g as Option
|
|
23
29
|
};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css"; import { defineComponent as
|
|
1
|
+
import "../../MultiBarMenu.vue_vue_type_style_index_0_scoped_e40e5dda_lang.css"; import { defineComponent as m, openBlock as l, createBlock as p, unref as t, withCtx as i, createVNode as s, createSlots as u, createTextVNode as c, toDisplayString as f } from "vue";
|
|
2
2
|
import b from "../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
+
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
|
+
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
7
9
|
import g from "../dropdown/v4/OptionV4.vue.js";
|
|
8
10
|
import x from "../icon/v4/IconV4.vue.js";
|
|
9
|
-
const
|
|
11
|
+
const M = /* @__PURE__ */ m({
|
|
10
12
|
__name: "MultiBarMenu",
|
|
11
13
|
props: {
|
|
12
14
|
menuItems: { default: () => [] },
|
|
13
15
|
testId: { default: "" }
|
|
14
16
|
},
|
|
15
17
|
emits: ["selected"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
return (
|
|
18
|
+
setup(o, { emit: a }) {
|
|
19
|
+
const n = (r) => r.title;
|
|
20
|
+
return (r, d) => (l(), p(t(b), {
|
|
19
21
|
class: "multi-bar-menu",
|
|
20
|
-
options:
|
|
21
|
-
"display-value":
|
|
22
|
+
options: o.menuItems,
|
|
23
|
+
"display-value": n,
|
|
22
24
|
"predefined-trigger": "icon-button",
|
|
23
25
|
placement: "right-end",
|
|
24
26
|
skidding: -20,
|
|
25
|
-
"test-id":
|
|
26
|
-
"onUpdate:selected":
|
|
27
|
+
"test-id": o.testId,
|
|
28
|
+
"onUpdate:selected": d[0] || (d[0] = (e) => a("selected", e))
|
|
27
29
|
}, {
|
|
28
30
|
default: i(({ option: e }) => [
|
|
29
31
|
s(t(g), {
|
|
@@ -31,7 +33,7 @@ const C = /* @__PURE__ */ l({
|
|
|
31
33
|
disabled: e.disabled
|
|
32
34
|
}, u({
|
|
33
35
|
default: i(() => [
|
|
34
|
-
c(" " + f(
|
|
36
|
+
c(" " + f(n(e)), 1)
|
|
35
37
|
]),
|
|
36
38
|
_: 2
|
|
37
39
|
}, [
|
|
@@ -52,5 +54,5 @@ const C = /* @__PURE__ */ l({
|
|
|
52
54
|
}
|
|
53
55
|
});
|
|
54
56
|
export {
|
|
55
|
-
|
|
57
|
+
M as default
|
|
56
58
|
};
|