@ironsource/shared-ui 2.2.0-rc.22 → 2.2.0-rc.23

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.
@@ -1,583 +1 @@
1
- import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as he, computed as L, watch as ke, toRaw as S, openBlock as a, createElementBlock as s, mergeProps as m, unref as t, renderSlot as u, createElementVNode as f, createVNode as d, withCtx as c, Transition as we, normalizeClass as B, normalizeStyle as be, createTextVNode as k, createCommentVNode as r, isRef as Ie, toDisplayString as q, withModifiers as j, Fragment as Se, renderList as ve, createSlots as Ce, createBlock as F, resolveDynamicComponent as Ke } from "vue";
2
- import P from "../../button/v4/ButtonV4.vue.js";
3
- import "../../button/v4/IconButtonV4.vue.js";
4
- import "../../button/v4/ButtonGroup.vue.js";
5
- import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
- import "./DropdownV4.vue.js";
7
- import Ee from "./DefaultDropdownTrigger.vue.js";
8
- import Ae from "./IconButtonDropdownTrigger.vue.js";
9
- import xe from "./ChipDropdownTrigger.vue.js";
10
- import Oe from "./AppDropdownTrigger.vue.js";
11
- import "./ButtonDropdownTrigger.vue.js";
12
- import "./ButtonFilterDropdownTrigger.vue.js";
13
- import "./TreeDropdown.vue.js";
14
- import J from "./OptionV4.vue.js";
15
- import "./ConditionalDropdown.vue.js";
16
- import Le from "../../search/v4/SearchV4.vue.js";
17
- import Q from "../../typography/v4/Typography.vue.js";
18
- import { Dropdown as Be } from "floating-vue";
19
- import { DropdownTestIdModifiers as p } from "../../../testids/index.js";
20
- import { dropdownCommon as Fe } from "../common/Dropdown.common.js";
21
- import K from "../../skeleton/v4/SkeletonV4.vue.js";
22
- import { useTestIdAttrs as Pe } from "../../../utils/testIds.js";
23
- import { TRIGGERS as w } from "./Dropdown.types.js";
24
- import { useElementSize as Ne } from "@vueuse/core";
25
- import Ve from "../../shared/FieldHelpText.vue.js";
26
- import De from "./GroupOption.vue.js";
27
- const $e = ["tabindex"], Me = { style: { width: "100%" } }, Re = { key: 0 }, ze = { key: 1 }, We = { key: 2 }, Ge = {
28
- key: 0,
29
- class: "inline-search-wrapper"
30
- }, He = { class: "dropdown-conditions" }, Ue = {
31
- key: 0,
32
- class: "no-result-container"
33
- }, Ye = ["aria-selected", "aria-disabled", "onClick"], Xe = {
34
- key: 3,
35
- class: "loader"
36
- }, qe = {
37
- key: 1,
38
- class: "actions-wrapper"
39
- }, je = { class: "actions-clear-all" }, Je = { class: "actions-apply-cancel" }, Qe = {
40
- key: 2,
41
- class: "dropdown-footer"
42
- }, Ct = /* @__PURE__ */ he({
43
- __name: "DropdownV4",
44
- props: {
45
- modelValue: { default: null },
46
- selected: { default: null },
47
- multi: { type: Boolean, default: !1 },
48
- placeholder: { default: "Select" },
49
- disabled: { type: Boolean, default: !1 },
50
- popperClass: { default: "" },
51
- loading: { type: Boolean },
52
- loadMoreLoading: { type: Boolean },
53
- infiniteLoading: { type: Boolean, default: !1 },
54
- testId: { default: "" },
55
- isOpen: { type: Boolean },
56
- options: null,
57
- showSelectAll: { type: Boolean, default: !0 },
58
- showClearAll: { type: Boolean, default: !0 },
59
- defaultOpen: { type: Boolean, default: !1 },
60
- keepOpen: { type: Boolean, default: !1 },
61
- autoSize: { type: Boolean, default: !1 },
62
- disableKeyboardEvents: { type: Boolean, default: !1 },
63
- dynamicFilterMode: { type: Boolean, default: !1 },
64
- minSelections: { default: 0 },
65
- maxSelections: { default: null },
66
- alwaysShowScroll: { type: Boolean, default: !0 },
67
- inlineError: { type: Boolean, default: !1 },
68
- inlineErrorText: { default: "" },
69
- inlineErrorTextPlacement: { default: "top" },
70
- isOnTop: { type: Boolean, default: !1 },
71
- distance: { default: 0 },
72
- container: { default: "body" },
73
- flip: { type: Boolean, default: !0 },
74
- skidding: { default: 0 },
75
- placement: { default: "bottom-start" },
76
- triggerLabel: { default: "" },
77
- triggerHelperText: { default: "" },
78
- triggerFeedbackText: { default: "" },
79
- triggerFeedbackVariant: { default: null },
80
- triggerFeedbackShowIcon: { type: Boolean, default: !1 },
81
- triggerShowAllSelectedText: { type: Boolean, default: !0 },
82
- triggerShownValuesCount: { default: 1 },
83
- size: { default: "medium" },
84
- mandatory: { type: Boolean, default: !1 },
85
- predefinedTrigger: { default: w.DEFAULT },
86
- inlineSearch: { type: Boolean, default: !1 },
87
- inlineSearchPlaceholder: { default: "Search" },
88
- onSearch: { type: Function, default: null },
89
- noResultsText: { default: "No results found" },
90
- searchAutoFocus: { type: Boolean, default: !0 },
91
- onClearSearch: { type: Function, default: () => !0 },
92
- displayValue: null,
93
- optionNameKey: { default: "" },
94
- optionIconKey: { default: "" },
95
- optionImageKey: { default: "" },
96
- optionIconType: { default: null },
97
- optionEndIconKey: { default: "" },
98
- optionEndIconType: { default: null },
99
- optionsEndTextIconKey: { default: null },
100
- optionFlagKey: { default: null },
101
- optionWarningKey: { default: null },
102
- valueToCopy: { default: null },
103
- disabledOptionKey: { default: "disabled" },
104
- optionTwoLinesVariant: { default: void 0 },
105
- optionTwoLinesKey: { default: void 0 },
106
- groupedOptions: { type: Boolean, default: !1 },
107
- resortGroupedOptions: { type: Boolean, default: !0 },
108
- comparingKey: { default: null },
109
- customNumberOfDisplayedOptions: { default: null },
110
- optionTooltipPosition: { default: "right" },
111
- theme: { default: "light-theme-v4" },
112
- fullWidth: { type: Boolean, default: !0 },
113
- optionsListWidth: { default: null },
114
- statusType: { default: null },
115
- disableVirtualScroll: { type: Boolean, default: !1 },
116
- overrideOptionCountCalculation: { type: Function, default: null },
117
- withConditions: { type: Boolean, default: !1 }
118
- },
119
- emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged", "unsavedSelectionUpdate"],
120
- setup(e, { expose: Z, emit: N }) {
121
- const o = e, V = {
122
- MULTILINE_LIST_HEIGHT: 48,
123
- LIST_HEIGHT: 32 + 4,
124
- MAX_NUMBER_OF_OPTIONS: 7.5,
125
- PADDING_PX: 0,
126
- DROPLIST_MIN_WIDTH: 240,
127
- VERSION: 4
128
- }, {
129
- onKeydown: I,
130
- open: y,
131
- toggleMenu: v,
132
- onButtonKeydown: D,
133
- query: C,
134
- containerProps: _,
135
- calculateTableHeight: ee,
136
- wrapperProps: te,
137
- filteredOptions: oe,
138
- allSelected: $,
139
- allSelectedApplied: E,
140
- isIndeterminate: ne,
141
- onSelectAll: le,
142
- virtualOptions: M,
143
- isSelected: A,
144
- selectedOption: T,
145
- selectedOptionPrevious: x,
146
- selectedValue: ie,
147
- onSelect: R,
148
- activeIndex: z,
149
- onCancel: ae,
150
- onApply: de,
151
- scrollTo: re,
152
- listRef: se,
153
- buttonRef: W,
154
- apply: ue,
155
- cancel: ce,
156
- el: ye,
157
- onClearAllSelections: G,
158
- clearAll: me,
159
- isGroup: fe,
160
- flattenAndMarkGroupOptions: pe
161
- } = Fe(o, N, V), g = Pe(o.testId, p), H = L(() => !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT ? Ee : o.predefinedTrigger === w.APP ? Oe : null), { width: U } = Ne(W), ge = L(() => o.optionsListWidth ? o.optionsListWidth : !o.predefinedTrigger || o.predefinedTrigger === w.DEFAULT || o.predefinedTrigger === w.APP ? U.value - 2 > 240 ? `${U.value - 2}px` : `${V.DROPLIST_MIN_WIDTH}px` : "auto");
162
- ke(
163
- () => o.optionsListWidth,
164
- () => {
165
- o.optionsListWidth && document.documentElement.style.setProperty(
166
- "--options-list-width",
167
- o.optionsListWidth
168
- );
169
- }
170
- );
171
- const Y = () => {
172
- v();
173
- }, X = L(() => {
174
- const n = {
175
- tooltipMessage: null,
176
- selections: []
177
- };
178
- if (o.multi && o.comparingKey) {
179
- const i = S(T.value);
180
- if (o.minSelections || o.maxSelections) {
181
- if (Array.isArray(i) && i.length <= o.minSelections)
182
- return n.tooltipMessage = `You need to select at least ${o.minSelections} item${o.minSelections > 1 ? "s" : ""}`, n.selections = i.map(
183
- (l) => l[o.comparingKey]
184
- ), n;
185
- if (o.maxSelections && Array.isArray(i) && i.length >= o.maxSelections) {
186
- const l = i.map(
187
- (b) => b[o.comparingKey]
188
- ), h = o.groupedOptions ? pe(o.options) : o.options;
189
- return n.tooltipMessage = `You can only select up to ${o.maxSelections} items`, n.selections = h.map((b) => {
190
- if (!l.includes(b[o.comparingKey]))
191
- return b[o.comparingKey];
192
- }), n;
193
- }
194
- }
195
- }
196
- return n.tooltipMessage = null, n.selections = [], n;
197
- }), Te = (n) => {
198
- if ((o.minSelections || o.maxSelections) && o.comparingKey)
199
- return X.value.selections.includes(
200
- n[o.comparingKey]
201
- );
202
- }, O = (n) => n[o.disabledOptionKey] || Te(n);
203
- return Z({
204
- selectItem: R,
205
- scrollTo: re
206
- }), (n, i) => (a(), s("div", m({
207
- ref_key: "el",
208
- ref: ye,
209
- class: ["dropdown dropdown--main-wrapper", [{ "dropdown--disabled": e.disabled, "full-width": e.fullWidth }]],
210
- tabindex: e.disabled ? -1 : 0
211
- }, t(g)[t(p).WRAPPER], {
212
- onKeydown: i[8] || (i[8] = //@ts-ignore
213
- (...l) => t(I) && t(I)(...l))
214
- }), [
215
- u(n.$slots, "label", {}, void 0, !0),
216
- f("div", Me, [
217
- d(t(Be), m({
218
- theme: e.theme,
219
- "popper-class": [
220
- e.popperClass,
221
- e.theme,
222
- e.autoSize ? "v-popper--theme-is-dropdown--auto-size" : null,
223
- "v4-dropdown"
224
- ],
225
- placement: e.placement,
226
- skidding: e.isOnTop ? 0 : e.skidding,
227
- distance: e.distance,
228
- flip: e.flip,
229
- triggers: [],
230
- shown: !!t(y),
231
- "auto-hide": !1,
232
- container: e.container,
233
- "auto-size": e.autoSize
234
- }, t(g)[t(p).TRIGGER]), {
235
- popper: c(() => [
236
- d(we, null, {
237
- default: c(() => [
238
- t(y) ? (a(), s("div", {
239
- key: 0,
240
- ref_key: "listRef",
241
- ref: se,
242
- class: B(["light-theme-v4", {
243
- "dropdown--disabled": e.disabled,
244
- "inline-search": e.inlineSearch
245
- }]),
246
- style: be({ width: t(ge) })
247
- }, [
248
- t(y) ? (a(), s("div", {
249
- key: 0,
250
- class: B(["dropdown-list-wrapper", {
251
- "dropdown-list-wrapper--multi": e.multi,
252
- "dropdown-list-wrapper-always-show-scroll": e.alwaysShowScroll
253
- }]),
254
- onKeydown: i[7] || (i[7] = //@ts-ignore
255
- (...l) => t(I) && t(I)(...l))
256
- }, [
257
- t(y) && e.inlineSearch ? (a(), s("div", Ge, [
258
- e.withConditions ? u(n.$slots, "dropdown-conditions", { key: 0 }, () => [
259
- f("div", He, [
260
- d(t(Q), { variant: "body2" }, {
261
- default: c(() => [
262
- k("Conditions")
263
- ]),
264
- _: 1
265
- })
266
- ])
267
- ], !0) : r("", !0),
268
- u(n.$slots, "inline-search", {}, () => [
269
- d(t(Le), {
270
- modelValue: t(C),
271
- "onUpdate:modelValue": [
272
- i[4] || (i[4] = (l) => Ie(C) ? C.value = l : null),
273
- e.onClearSearch
274
- ],
275
- placeholder: e.inlineSearchPlaceholder,
276
- variant: "transparent",
277
- size: "md",
278
- "auto-focus": e.searchAutoFocus,
279
- "test-id": e.testId,
280
- onKeydown: t(I)
281
- }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id", "onUpdate:modelValue", "onKeydown"])
282
- ], !0)
283
- ])) : r("", !0),
284
- u(n.$slots, "input-list", { open: t(y) }, void 0, !0),
285
- f("div", m({
286
- class: ["list-container", { "list-container--multi": e.multi }],
287
- style: { height: `${t(ee)}rem` }
288
- }, {
289
- ...t(_),
290
- ...t(g)[t(p).LIST_CONTAINER]
291
- }), [
292
- u(n.$slots, "custom-list-area", {}, void 0, !0),
293
- f("ul", m(t(te), {
294
- role: "listbox",
295
- class: ["list", {
296
- "list--multi": e.multi,
297
- "list--with-conditions": e.withConditions
298
- }]
299
- }), [
300
- !t(oe).length && !e.loading && !e.withConditions ? (a(), s("li", Ue, [
301
- d(t(Q), m({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
302
- default: c(() => [
303
- k(q(e.noResultsText), 1)
304
- ]),
305
- _: 1
306
- }, 16)
307
- ])) : r("", !0),
308
- e.showSelectAll !== !1 && e.multi && !t(C) && !e.loading && e.options.length && !(e.minSelections || e.maxSelections) ? u(n.$slots, "select-all", { key: 1 }, () => [
309
- f("li", null, [
310
- d(t(J), m(
311
- {
312
- "aria-selected": t($),
313
- "aria-disabled": !!e.disabled,
314
- "selected-prop": t($),
315
- "is-indeterminate": t(ne),
316
- "is-multi": e.multi,
317
- "select-all-option": ""
318
- },
319
- t(g)[t(p).SELECT_ALL],
320
- {
321
- onClick: i[5] || (i[5] = j((l) => t(le)(), ["stop"]))
322
- }
323
- ), {
324
- default: c(() => [
325
- k(" Select all ")
326
- ]),
327
- _: 1
328
- }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
329
- ])
330
- ], !0) : r("", !0),
331
- t(M).length && !e.loading ? (a(!0), s(Se, { key: 2 }, ve(t(M), ({ data: l, index: h }) => (a(), s("li", {
332
- key: h,
333
- "aria-selected": t(A)(S(t(T)), l),
334
- "aria-disabled": !!e.disabled,
335
- onClick: j(
336
- () => !O(l) && t(R)(l, h),
337
- ["stop"]
338
- )
339
- }, [
340
- e.groupedOptions && t(fe)(l) ? u(n.$slots, "group-option", { key: 0 }, () => [
341
- d(De, null, {
342
- default: c(() => [
343
- k(q(e.displayValue(l) || l[e.optionNameKey]), 1)
344
- ]),
345
- _: 2
346
- }, 1024)
347
- ], !0) : u(n.$slots, "default", {
348
- key: 1,
349
- option: l,
350
- index: h,
351
- selected: t(A)(S(t(T)), l),
352
- active: S(t(z)) === h,
353
- disabled: O(l)
354
- }, () => [
355
- d(t(J), {
356
- option: l,
357
- "selected-prop": t(A)(t(T), l),
358
- active: S(t(z)) === h,
359
- disabled: O(l),
360
- "name-key": e.optionNameKey,
361
- "image-key": e.optionImageKey,
362
- "icon-key": e.optionIconKey,
363
- "icon-type": e.optionIconType,
364
- "end-icon-key": e.optionEndIconKey,
365
- "end-icon-type": e.optionEndIconType,
366
- "end-text-icon-key": e.optionsEndTextIconKey,
367
- "option-flag-key": e.optionFlagKey,
368
- "warning-key": e.optionWarningKey,
369
- "option-two-lines-variant": e.optionTwoLinesVariant,
370
- "option-two-lines-key": e.optionTwoLinesKey,
371
- "tooltip-placement": e.optionTooltipPosition,
372
- "is-multi": e.multi,
373
- "min-max-selection-tooltip-message": t(X)?.tooltipMessage
374
- }, Ce({ _: 2 }, [
375
- n.$slots["option-end"] ? {
376
- name: "option-end",
377
- fn: c(({ option: b }) => [
378
- u(n.$slots, "option-end", { option: b }, void 0, !0)
379
- ]),
380
- key: "0"
381
- } : void 0
382
- ]), 1032, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "warning-key", "option-two-lines-variant", "option-two-lines-key", "tooltip-placement", "is-multi", "min-max-selection-tooltip-message"])
383
- ], !0)
384
- ], 8, Ye))), 128)) : r("", !0),
385
- e.loading || e.loadMoreLoading ? (a(), s("li", Xe, [
386
- d(t(K), { round: "" }),
387
- d(t(K), { round: "" }),
388
- d(t(K), { round: "" }),
389
- d(t(K), { round: "" })
390
- ])) : r("", !0)
391
- ], 16)
392
- ], 16),
393
- e.multi ? (a(), s("div", qe, [
394
- f("div", je, [
395
- e.showClearAll ? (a(), F(t(P), m(
396
- {
397
- key: 0,
398
- ref_key: "clearAll",
399
- ref: me,
400
- size: "small",
401
- variant: "text",
402
- color: "primary"
403
- },
404
- t(g)[t(p).ACTION_CLEAR_ALL],
405
- {
406
- onClick: i[6] || (i[6] = () => t(G)(!1))
407
- }
408
- ), {
409
- default: c(() => [
410
- k(" Clear all ")
411
- ]),
412
- _: 1
413
- }, 16)) : r("", !0)
414
- ]),
415
- f("div", Je, [
416
- d(t(P), m(
417
- {
418
- ref_key: "cancel",
419
- ref: ce,
420
- size: "small",
421
- variant: "outlined",
422
- color: "default"
423
- },
424
- t(g)[t(p).ACTION_CANCEL],
425
- { onClick: t(ae) }
426
- ), {
427
- default: c(() => [
428
- k(" Cancel ")
429
- ]),
430
- _: 1
431
- }, 16, ["onClick"]),
432
- d(t(P), m({
433
- ref_key: "apply",
434
- ref: ue,
435
- "data-testid": "mutli-apply",
436
- size: "small",
437
- class: "apply-button"
438
- }, t(g)[t(p).ACTION_APPLY], { onClick: t(de) }), {
439
- default: c(() => [
440
- k(" Apply ")
441
- ]),
442
- _: 1
443
- }, 16, ["onClick"])
444
- ])
445
- ])) : r("", !0),
446
- n.$slots.footer ? (a(), s("div", Qe, [
447
- u(n.$slots, "footer", {}, void 0, !0)
448
- ])) : r("", !0)
449
- ], 34)) : r("", !0)
450
- ], 6)) : r("", !0)
451
- ]),
452
- _: 3
453
- })
454
- ]),
455
- default: c(() => [
456
- f("div", {
457
- class: B(["button__container", {
458
- "button__container--open": !!t(y),
459
- [`button__container--${e.size}`]: !0,
460
- "button__container--disabled": e.disabled
461
- }])
462
- }, [
463
- f("div", {
464
- ref_key: "buttonRef",
465
- ref: W
466
- }, [
467
- u(n.$slots, "dropdown-trigger", {
468
- buttonTriggerProps: {
469
- open: t(y),
470
- disabled: e.disabled,
471
- label: t(ie) || e.placeholder,
472
- onClick: () => t(v)(),
473
- testId: e.testId
474
- },
475
- defaultTriggerProps: {
476
- placeholder: e.placeholder,
477
- open: t(y),
478
- label: e.triggerLabel,
479
- showFeedbackIcon: e.triggerFeedbackShowIcon,
480
- mandatory: e.mandatory,
481
- testId: e.testId,
482
- multi: e.multi,
483
- disabled: e.disabled,
484
- selectedOption: e.multi ? t(x) : t(T),
485
- displayValue: e.displayValue,
486
- options: e.options,
487
- optionNameKey: e.optionNameKey,
488
- optionImageKey: e.optionImageKey,
489
- optionIconKey: e.optionIconKey,
490
- optionIconType: e.optionIconType,
491
- optionAndIconKey: e.optionEndIconKey,
492
- optionEndIconType: e.optionEndIconType,
493
- optionsEndTextIconKey: e.optionsEndTextIconKey,
494
- optionFlagKey: e.optionFlagKey,
495
- feedbackVariant: e.triggerFeedbackVariant,
496
- valueToCopy: e.valueToCopy,
497
- statusDotType: e.statusType,
498
- size: e.size,
499
- showAllSelectedText: e.triggerShowAllSelectedText,
500
- allSelected: t(E),
501
- inlineError: e.inlineError,
502
- inlineErrorText: e.inlineErrorText,
503
- inlineErrorTextPlacement: e.inlineErrorTextPlacement,
504
- onKeydown: t(D),
505
- onClick: Y
506
- }
507
- }, () => [
508
- t(H) ? (a(), s("div", Re, [
509
- (a(), F(Ke(t(H)), {
510
- placeholder: e.placeholder,
511
- open: t(y),
512
- label: e.triggerLabel,
513
- "show-feedback-icon": e.triggerFeedbackShowIcon,
514
- mandatory: e.mandatory,
515
- "test-id": e.testId,
516
- multi: e.multi,
517
- disabled: e.disabled,
518
- "selected-option": e.multi ? t(x) : t(T),
519
- "display-value": e.displayValue,
520
- options: e.options,
521
- "option-name-key": e.optionNameKey,
522
- "option-image-key": e.optionImageKey,
523
- "option-icon-key": e.optionIconKey,
524
- "option-icon-type": e.optionIconType,
525
- "option-end-icon-key": e.optionEndIconKey,
526
- "option-end-icon-type": e.optionEndIconType,
527
- "options-end-text-icon-key": e.optionsEndTextIconKey,
528
- "option-flag-key": e.optionFlagKey,
529
- "feedback-variant": e.triggerFeedbackVariant,
530
- "value-to-copy": e.valueToCopy,
531
- "status-dot-type": e.statusType,
532
- size: e.size,
533
- "show-all-selected-text": e.triggerShowAllSelectedText,
534
- "all-selected": t(E),
535
- "inline-error": e.inlineError,
536
- "inline-error-text": e.inlineErrorText,
537
- "inline-error-text-placement": e.inlineErrorTextPlacement,
538
- onKeydown: t(D),
539
- onClick: Y,
540
- onCopyToClipboard: i[0] || (i[0] = (l) => N("copyToClipboard"))
541
- }, 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", "inline-error", "inline-error-text", "inline-error-text-placement", "onKeydown"]))
542
- ])) : r("", !0),
543
- e.predefinedTrigger === t(w).ICON_BUTTON ? (a(), s("div", ze, [
544
- d(t(Ae), {
545
- onClick: i[1] || (i[1] = (l) => t(v)())
546
- })
547
- ])) : r("", !0),
548
- e.predefinedTrigger === t(w).CHIP ? (a(), s("div", We, [
549
- d(t(xe), {
550
- open: t(y),
551
- label: e.placeholder,
552
- "test-id": e.testId,
553
- options: e.options,
554
- "selected-option": e.multi ? t(x) : t(T),
555
- "display-value": e.displayValue,
556
- multi: e.multi,
557
- "all-selected": t(E),
558
- "shown-values-count": e.triggerShownValuesCount,
559
- onClick: i[2] || (i[2] = (l) => t(v)()),
560
- onClear: i[3] || (i[3] = (l) => t(G)())
561
- }, null, 8, ["open", "label", "test-id", "options", "selected-option", "display-value", "multi", "all-selected", "shown-values-count"])
562
- ])) : r("", !0)
563
- ], !0)
564
- ], 512)
565
- ], 2)
566
- ]),
567
- _: 3
568
- }, 16, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
569
- e.triggerFeedbackText ? (a(), F(Ve, {
570
- key: 0,
571
- text: e.triggerFeedbackText,
572
- variant: e.triggerFeedbackVariant,
573
- "show-icon": e.triggerFeedbackShowIcon,
574
- "test-id": e.testId,
575
- class: "dropdown-field-help-text"
576
- }, null, 8, ["text", "variant", "show-icon", "test-id"])) : r("", !0)
577
- ])
578
- ], 16, $e));
579
- }
580
- });
581
- export {
582
- Ct as default
583
- };
1
+ import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css";
@@ -1,29 +1 @@
1
- import "../../../GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css"; import { defineComponent as i, ref as l, openBlock as f, createElementBlock as s, withModifiers as a, unref as o, createVNode as u, withCtx as m, renderSlot as d } from "vue";
2
- import { NOOP as r } from "@vue/shared";
3
- import c from "../../typography/v4/Typography.vue.js";
4
- const y = /* @__PURE__ */ i({
5
- __name: "GroupOption",
6
- setup(_) {
7
- const t = l(null);
8
- return (n, e) => (f(), s("div", {
9
- ref_key: "el",
10
- ref: t,
11
- class: "group-option",
12
- onClick: e[0] || (e[0] = a(
13
- //@ts-ignore
14
- (...p) => o(r) && o(r)(...p),
15
- ["stop"]
16
- ))
17
- }, [
18
- u(c, { variant: "h5" }, {
19
- default: m(() => [
20
- d(n.$slots, "default", {}, void 0, !0)
21
- ]),
22
- _: 3
23
- })
24
- ], 512));
25
- }
26
- });
27
- export {
28
- y as default
29
- };
1
+ import "../../../GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css";
@@ -1,23 +1 @@
1
- import "../../../IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css"; import { defineComponent as t, openBlock as n, createBlock as r, unref as c, mergeProps as m } from "vue";
2
- import "../../button/v4/ButtonV4.vue.js";
3
- import p from "../../button/v4/IconButtonV4.vue.js";
4
- import "../../button/v4/ButtonGroup.vue.js";
5
- import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
- const y = /* @__PURE__ */ t({
7
- __name: "IconButtonDropdownTrigger",
8
- props: {
9
- iconName: { default: "dots-three" },
10
- iconType: { default: "bold" },
11
- testId: { default: "" }
12
- },
13
- setup(e) {
14
- const o = e;
15
- return (i, a) => (n(), r(c(p), m({
16
- "icon-name": e.iconName,
17
- type: e.iconType
18
- }, o), null, 16, ["icon-name", "type"]));
19
- }
20
- });
21
- export {
22
- y as default
23
- };
1
+ import "../../../IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css";