@ironsource/shared-ui 2.1.11-test.27 → 2.1.11-test.44
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_a898b632_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +11 -3
- package/components/chart/Chart.vue.js +2 -2
- package/components/chart/Chart.vue2.js +108 -96
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/index.d.ts +36 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +36 -34
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +55 -40
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +20 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +136 -97
- package/components/dropdown/v4/DropdownV4.vue.d.ts +2 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +7 -7
- 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 +165 -158
- package/components/dropdown/v4/index.d.ts +67 -2
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +3 -3
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +1 -1
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.js +3 -3
- package/components/sortableList/SortableItem.vue2.js +57 -56
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +82 -76
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +78 -70
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v4/DataGrid.vue.d.ts +10 -5
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +173 -171
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +1 -1
- package/components/table/v4/index.d.ts +39 -20
- package/components/table-cells/common/Editable.common.js +24 -19
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/index.d.ts +386 -47
- package/index.js +1 -1
- package/package.json +1 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +1 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_f9a13e27_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
|
@@ -17,12 +17,15 @@ declare const DialogTypes: () => ({
|
|
|
17
17
|
closeOnClickOutside: boolean;
|
|
18
18
|
beforeClose: (show: () => void) => void;
|
|
19
19
|
showCloseButton: boolean;
|
|
20
|
+
showCancelButton: boolean;
|
|
21
|
+
showSaveButton: boolean;
|
|
20
22
|
showFooter: boolean;
|
|
21
23
|
saveButtonLabel: string;
|
|
22
24
|
saveButtonLoading: boolean;
|
|
23
25
|
saveButtonColor: string;
|
|
24
26
|
cancelButtonLabel: string;
|
|
25
27
|
cancelButtonColor: string;
|
|
28
|
+
noPadding: boolean;
|
|
26
29
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
27
30
|
title: {
|
|
28
31
|
type: import("vue").PropType<string>;
|
|
@@ -80,6 +83,14 @@ declare const DialogTypes: () => ({
|
|
|
80
83
|
type: import("vue").PropType<boolean>;
|
|
81
84
|
default: boolean;
|
|
82
85
|
};
|
|
86
|
+
showCancelButton: {
|
|
87
|
+
type: import("vue").PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
showSaveButton: {
|
|
91
|
+
type: import("vue").PropType<boolean>;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
83
94
|
showFooter: {
|
|
84
95
|
type: import("vue").PropType<boolean>;
|
|
85
96
|
default: boolean;
|
|
@@ -104,13 +115,17 @@ declare const DialogTypes: () => ({
|
|
|
104
115
|
type: import("vue").PropType<string>;
|
|
105
116
|
default: string;
|
|
106
117
|
};
|
|
118
|
+
noPadding: {
|
|
119
|
+
type: import("vue").PropType<boolean>;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
107
122
|
}>> & {
|
|
108
123
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
109
124
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
110
125
|
onCancel?: () => any;
|
|
111
126
|
onOpen?: () => any;
|
|
112
127
|
onSave?: () => any;
|
|
113
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "testId" | "size" | "content" | "subtitle" | "appendToBody" | "closeDelay" | "openDelay" | "escapeToClose" | "showBackdrop" | "closeOnClickOutside" | "beforeClose" | "showCloseButton" | "showFooter" | "saveButtonLabel" | "saveButtonLoading" | "saveButtonColor" | "cancelButtonLabel" | "cancelButtonColor">;
|
|
128
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "testId" | "size" | "content" | "subtitle" | "appendToBody" | "closeDelay" | "openDelay" | "escapeToClose" | "showBackdrop" | "closeOnClickOutside" | "beforeClose" | "showCloseButton" | "showCancelButton" | "showSaveButton" | "showFooter" | "saveButtonLabel" | "saveButtonLoading" | "saveButtonColor" | "cancelButtonLabel" | "cancelButtonColor" | "noPadding">;
|
|
114
129
|
$attrs: {
|
|
115
130
|
[x: string]: unknown;
|
|
116
131
|
};
|
|
@@ -181,6 +196,14 @@ declare const DialogTypes: () => ({
|
|
|
181
196
|
type: import("vue").PropType<boolean>;
|
|
182
197
|
default: boolean;
|
|
183
198
|
};
|
|
199
|
+
showCancelButton: {
|
|
200
|
+
type: import("vue").PropType<boolean>;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
showSaveButton: {
|
|
204
|
+
type: import("vue").PropType<boolean>;
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
184
207
|
showFooter: {
|
|
185
208
|
type: import("vue").PropType<boolean>;
|
|
186
209
|
default: boolean;
|
|
@@ -205,6 +228,10 @@ declare const DialogTypes: () => ({
|
|
|
205
228
|
type: import("vue").PropType<string>;
|
|
206
229
|
default: string;
|
|
207
230
|
};
|
|
231
|
+
noPadding: {
|
|
232
|
+
type: import("vue").PropType<boolean>;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
208
235
|
}>> & {
|
|
209
236
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
210
237
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
@@ -231,12 +258,15 @@ declare const DialogTypes: () => ({
|
|
|
231
258
|
closeOnClickOutside: boolean;
|
|
232
259
|
beforeClose: (show: () => void) => void;
|
|
233
260
|
showCloseButton: boolean;
|
|
261
|
+
showCancelButton: boolean;
|
|
262
|
+
showSaveButton: boolean;
|
|
234
263
|
showFooter: boolean;
|
|
235
264
|
saveButtonLabel: string;
|
|
236
265
|
saveButtonLoading: boolean;
|
|
237
266
|
saveButtonColor: string;
|
|
238
267
|
cancelButtonLabel: string;
|
|
239
268
|
cancelButtonColor: string;
|
|
269
|
+
noPadding: boolean;
|
|
240
270
|
}, {}, string> & {
|
|
241
271
|
beforeCreate?: (() => void) | (() => void)[];
|
|
242
272
|
created?: (() => void) | (() => void)[];
|
|
@@ -314,6 +344,14 @@ declare const DialogTypes: () => ({
|
|
|
314
344
|
type: import("vue").PropType<boolean>;
|
|
315
345
|
default: boolean;
|
|
316
346
|
};
|
|
347
|
+
showCancelButton: {
|
|
348
|
+
type: import("vue").PropType<boolean>;
|
|
349
|
+
default: boolean;
|
|
350
|
+
};
|
|
351
|
+
showSaveButton: {
|
|
352
|
+
type: import("vue").PropType<boolean>;
|
|
353
|
+
default: boolean;
|
|
354
|
+
};
|
|
317
355
|
showFooter: {
|
|
318
356
|
type: import("vue").PropType<boolean>;
|
|
319
357
|
default: boolean;
|
|
@@ -338,6 +376,10 @@ declare const DialogTypes: () => ({
|
|
|
338
376
|
type: import("vue").PropType<string>;
|
|
339
377
|
default: string;
|
|
340
378
|
};
|
|
379
|
+
noPadding: {
|
|
380
|
+
type: import("vue").PropType<boolean>;
|
|
381
|
+
default: boolean;
|
|
382
|
+
};
|
|
341
383
|
}>> & {
|
|
342
384
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
343
385
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
@@ -405,6 +447,14 @@ declare const DialogTypes: () => ({
|
|
|
405
447
|
type: import("vue").PropType<boolean>;
|
|
406
448
|
default: boolean;
|
|
407
449
|
};
|
|
450
|
+
showCancelButton: {
|
|
451
|
+
type: import("vue").PropType<boolean>;
|
|
452
|
+
default: boolean;
|
|
453
|
+
};
|
|
454
|
+
showSaveButton: {
|
|
455
|
+
type: import("vue").PropType<boolean>;
|
|
456
|
+
default: boolean;
|
|
457
|
+
};
|
|
408
458
|
showFooter: {
|
|
409
459
|
type: import("vue").PropType<boolean>;
|
|
410
460
|
default: boolean;
|
|
@@ -429,6 +479,10 @@ declare const DialogTypes: () => ({
|
|
|
429
479
|
type: import("vue").PropType<string>;
|
|
430
480
|
default: string;
|
|
431
481
|
};
|
|
482
|
+
noPadding: {
|
|
483
|
+
type: import("vue").PropType<boolean>;
|
|
484
|
+
default: boolean;
|
|
485
|
+
};
|
|
432
486
|
}>> & {
|
|
433
487
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
434
488
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
@@ -455,12 +509,15 @@ declare const DialogTypes: () => ({
|
|
|
455
509
|
closeOnClickOutside: boolean;
|
|
456
510
|
beforeClose: (show: () => void) => void;
|
|
457
511
|
showCloseButton: boolean;
|
|
512
|
+
showCancelButton: boolean;
|
|
513
|
+
showSaveButton: boolean;
|
|
458
514
|
showFooter: boolean;
|
|
459
515
|
saveButtonLabel: string;
|
|
460
516
|
saveButtonLoading: boolean;
|
|
461
517
|
saveButtonColor: string;
|
|
462
518
|
cancelButtonLabel: string;
|
|
463
519
|
cancelButtonColor: string;
|
|
520
|
+
noPadding: boolean;
|
|
464
521
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
465
522
|
$slots: {
|
|
466
523
|
header?(_: {}): any;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useToggle as _e } from "../../../composables/useToggle.js";
|
|
2
2
|
import { inject as Ve, ref as r, computed as c, watch as b, useSlots as ke, toRaw as P, nextTick as K, provide as Ge, onMounted as Le } from "vue";
|
|
3
3
|
import { isObjectInArray as ae } from "../../../utils/array.js";
|
|
4
|
-
import { objectsEqual as
|
|
5
|
-
import { useClamp as
|
|
4
|
+
import { objectsEqual as Ue } from "../../../utils/object.js";
|
|
5
|
+
import { useClamp as Be, useVirtualList as He, onClickOutside as ne, useInfiniteScroll as qe } from "@vueuse/core";
|
|
6
6
|
import { Mode as T, Type as L, DropdownContext as Xe } from "./DropdownContext.js";
|
|
7
7
|
import { pxToRem as $e } from "../../../utils/style.js";
|
|
8
8
|
import { useEditableContext as je } from "../../table-cells/common/EditableContext.js";
|
|
9
9
|
import { useGroupedOptions as ze } from "./useGroupedOptions.js";
|
|
10
|
-
const tl = (l,
|
|
11
|
-
const
|
|
12
|
-
sortOutGroups:
|
|
10
|
+
const tl = (l, v, g) => {
|
|
11
|
+
const U = Ve("isTreeDropdown", !1), {
|
|
12
|
+
sortOutGroups: B,
|
|
13
13
|
flattenAndMarkGroupOptions: ue,
|
|
14
|
-
isGroup:
|
|
14
|
+
isGroup: H,
|
|
15
15
|
selectAllWithGroups: ie,
|
|
16
16
|
isIndeterminateGrouped: re,
|
|
17
17
|
allSelectedGrouped: q,
|
|
@@ -30,7 +30,7 @@ const tl = (l, f, g) => {
|
|
|
30
30
|
return R?.value?.value ?? a.value;
|
|
31
31
|
},
|
|
32
32
|
set(e) {
|
|
33
|
-
R.onChange?.(e), R.onClose?.(),
|
|
33
|
+
R.onChange?.(e), R.onClose?.(), v("update:selected", e);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
b(
|
|
@@ -56,9 +56,9 @@ const tl = (l, f, g) => {
|
|
|
56
56
|
return l.isOpen;
|
|
57
57
|
},
|
|
58
58
|
set(e) {
|
|
59
|
-
|
|
59
|
+
v("update:isOpen", e);
|
|
60
60
|
}
|
|
61
|
-
}), Oe = c(() => o.value.length - 1),
|
|
61
|
+
}), Oe = c(() => o.value.length - 1), f = Be(0, 0, Oe), Z = c(() => n.value ? l.displayValue(n.value) : ""), Se = (e) => {
|
|
62
62
|
if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
|
|
63
63
|
return l.placeholder;
|
|
64
64
|
const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
|
|
@@ -92,13 +92,13 @@ const tl = (l, f, g) => {
|
|
|
92
92
|
) > -1 : d.value.includes(i)) ? "selected" : "notSelected";
|
|
93
93
|
e[u].push(i);
|
|
94
94
|
});
|
|
95
|
-
const t = l.groupedOptions ?
|
|
95
|
+
const t = l.groupedOptions ? B(e.notSelected) : e.notSelected;
|
|
96
96
|
return [].concat(e.selected, t);
|
|
97
97
|
}), o = c(() => {
|
|
98
|
-
const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !
|
|
98
|
+
const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !U ? be.value : N.value;
|
|
99
99
|
if (l.onSearch) {
|
|
100
|
-
const t = e.filter((i) => l.groupedOptions &&
|
|
101
|
-
return l.groupedOptions ?
|
|
100
|
+
const t = e.filter((i) => l.groupedOptions && H(i) ? i : l.onSearch(i, h.value));
|
|
101
|
+
return l.groupedOptions ? B(t) : t;
|
|
102
102
|
} else
|
|
103
103
|
return e;
|
|
104
104
|
}), Pe = c(() => y.value[0]?.hasSubtitle), F = c(() => s.mode === T.Multi), p = c(
|
|
@@ -108,7 +108,7 @@ const tl = (l, f, g) => {
|
|
|
108
108
|
containerProps: V,
|
|
109
109
|
wrapperProps: Te,
|
|
110
110
|
scrollTo: C
|
|
111
|
-
} =
|
|
111
|
+
} = He(o, {
|
|
112
112
|
itemHeight: p.value,
|
|
113
113
|
overscan: l.disableVirtualScroll ? 1 / 0 : 2
|
|
114
114
|
});
|
|
@@ -120,20 +120,20 @@ const tl = (l, f, g) => {
|
|
|
120
120
|
), b([x], async () => {
|
|
121
121
|
await K();
|
|
122
122
|
}), b(
|
|
123
|
-
[O,
|
|
123
|
+
[O, f, x],
|
|
124
124
|
async ([e], [t]) => {
|
|
125
125
|
O.value && (await K(), x.value !== -1 && e !== t && setTimeout(() => {
|
|
126
126
|
l.multi && g.VERSION === 4 || C(x.value);
|
|
127
|
-
}),
|
|
128
|
-
C(
|
|
127
|
+
}), f.value && setTimeout(() => {
|
|
128
|
+
C(f.value);
|
|
129
129
|
}));
|
|
130
130
|
}
|
|
131
131
|
), b(h, () => {
|
|
132
|
-
|
|
132
|
+
v("onsearch", h.value), C(0);
|
|
133
133
|
});
|
|
134
134
|
const A = (e, t = !1) => {
|
|
135
135
|
l.disabled || (Y(e), K(() => {
|
|
136
|
-
O.value &&
|
|
136
|
+
O.value && v("opened"), O.value || v("closed"), w.value && t && w.value.focus();
|
|
137
137
|
}));
|
|
138
138
|
};
|
|
139
139
|
b(O, (e) => {
|
|
@@ -158,12 +158,12 @@ const tl = (l, f, g) => {
|
|
|
158
158
|
}
|
|
159
159
|
a.value = o.value;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
v("selectAll");
|
|
162
162
|
}
|
|
163
163
|
}, Ie = () => {
|
|
164
164
|
we(), g.VERSION !== 4 && (n.value = a.value);
|
|
165
165
|
}, xe = (e = !0) => {
|
|
166
|
-
a.value = [], e && (n.value = [], d.value = []),
|
|
166
|
+
a.value = [], e && (n.value = [], d.value = []), v("clear");
|
|
167
167
|
}, k = (e, t) => {
|
|
168
168
|
if (e = P(e), g.VERSION === 4 ? e[l.disabledOptionKey] : y.value[t]?.disabled)
|
|
169
169
|
return;
|
|
@@ -181,14 +181,14 @@ const tl = (l, f, g) => {
|
|
|
181
181
|
if (ae(S, e) || l.comparingKey && S.findIndex(
|
|
182
182
|
(u) => u[l.comparingKey] === e[l.comparingKey]
|
|
183
183
|
) > -1) {
|
|
184
|
-
a.value = S.filter((u) => l.comparingKey ? u[l.comparingKey] !== e[l.comparingKey] : !
|
|
184
|
+
a.value = S.filter((u) => l.comparingKey ? u[l.comparingKey] !== e[l.comparingKey] : !Ue(u, e));
|
|
185
185
|
return;
|
|
186
186
|
} else {
|
|
187
187
|
a.value = [...S, e];
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
}, De = (e) => y.value[e]?.disabled, s = {
|
|
191
|
-
activeIndex:
|
|
191
|
+
activeIndex: f,
|
|
192
192
|
options: y,
|
|
193
193
|
selectedOption: n,
|
|
194
194
|
labelRef: j,
|
|
@@ -213,17 +213,17 @@ const tl = (l, f, g) => {
|
|
|
213
213
|
goToOption: async (e) => {
|
|
214
214
|
if (!O.value)
|
|
215
215
|
return;
|
|
216
|
-
let t =
|
|
216
|
+
let t = f.value + e;
|
|
217
217
|
const i = y.value.filter(
|
|
218
218
|
(u) => u.disabled
|
|
219
219
|
).length, S = o.value.length - i;
|
|
220
220
|
for (t > S && (t = S + 1); ; ) {
|
|
221
221
|
if (!y.value[t]?.disabled) {
|
|
222
|
-
E.value = o.value[t],
|
|
222
|
+
E.value = o.value[t], f.value = t;
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(
|
|
226
|
-
E.value = o.value[t],
|
|
225
|
+
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(f.value)) {
|
|
226
|
+
E.value = o.value[t], f.value = t;
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -260,13 +260,13 @@ const tl = (l, f, g) => {
|
|
|
260
260
|
Le(async () => {
|
|
261
261
|
l.autoFocus && (await K(), setTimeout(() => {
|
|
262
262
|
$.value.focus();
|
|
263
|
-
})), s.goToOption(0), l.multi && !
|
|
263
|
+
})), s.goToOption(0), l.multi && !U && (l.groupedOptions ? D.value = q(
|
|
264
264
|
o,
|
|
265
265
|
a
|
|
266
266
|
) : D.value = l.options.length === l.selected.length);
|
|
267
267
|
});
|
|
268
268
|
const le = () => {
|
|
269
|
-
l.multi && (D.value = M.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())),
|
|
269
|
+
l.multi && (D.value = M.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())), v("apply", n.value), v("allSelectedChanged", M.value), A(!1), Me();
|
|
270
270
|
}, te = () => {
|
|
271
271
|
F.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), h.value = "", A(!1);
|
|
272
272
|
}, Ne = (e) => {
|
|
@@ -318,7 +318,7 @@ const tl = (l, f, g) => {
|
|
|
318
318
|
A(!0);
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
|
-
k(o.value[
|
|
321
|
+
k(o.value[f.value], f.value), s.mode === T.Single && !l.keepOpen && A(!1), e.preventDefault();
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
@@ -337,10 +337,12 @@ const tl = (l, f, g) => {
|
|
|
337
337
|
return qe(
|
|
338
338
|
V.ref,
|
|
339
339
|
() => {
|
|
340
|
-
!l.loadMoreLoading && l.infiniteLoading &&
|
|
340
|
+
!l.loadMoreLoading && l.infiniteLoading && v("loadMore");
|
|
341
341
|
},
|
|
342
342
|
{ distance: l.infiniteScrollThreshold }
|
|
343
|
-
), {
|
|
343
|
+
), b(a, () => {
|
|
344
|
+
v("unsavedSelectionUpdate", a.value);
|
|
345
|
+
}), {
|
|
344
346
|
onKeydown: Ce,
|
|
345
347
|
location: fe,
|
|
346
348
|
open: O,
|
|
@@ -363,7 +365,7 @@ const tl = (l, f, g) => {
|
|
|
363
365
|
selectedOptionPrevious: d,
|
|
364
366
|
selectedValue: Z,
|
|
365
367
|
onSelect: k,
|
|
366
|
-
activeIndex:
|
|
368
|
+
activeIndex: f,
|
|
367
369
|
onCancel: te,
|
|
368
370
|
onApply: le,
|
|
369
371
|
scrollTo: C,
|
|
@@ -376,7 +378,7 @@ const tl = (l, f, g) => {
|
|
|
376
378
|
triggerRef: de,
|
|
377
379
|
clearAll: J,
|
|
378
380
|
onClearAllSelections: xe,
|
|
379
|
-
isGroup:
|
|
381
|
+
isGroup: H
|
|
380
382
|
};
|
|
381
383
|
};
|
|
382
384
|
export {
|
|
@@ -8,6 +8,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
9
9
|
hideEndIcon?: boolean;
|
|
10
10
|
testId?: string;
|
|
11
|
+
maxWidth?: number;
|
|
12
|
+
withTooltip?: boolean;
|
|
13
|
+
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";
|
|
11
14
|
}>, {
|
|
12
15
|
variant: string;
|
|
13
16
|
size: string;
|
|
@@ -17,6 +20,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
20
|
startIconType: string;
|
|
18
21
|
hideEndIcon: boolean;
|
|
19
22
|
testId: string;
|
|
23
|
+
maxWidth: number;
|
|
24
|
+
withTooltip: boolean;
|
|
25
|
+
tooltipPlacement: string;
|
|
20
26
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
27
|
click: () => void;
|
|
22
28
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -29,6 +35,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
35
|
startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
30
36
|
hideEndIcon?: boolean;
|
|
31
37
|
testId?: string;
|
|
38
|
+
maxWidth?: number;
|
|
39
|
+
withTooltip?: boolean;
|
|
40
|
+
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";
|
|
32
41
|
}>, {
|
|
33
42
|
variant: string;
|
|
34
43
|
size: string;
|
|
@@ -38,13 +47,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
47
|
startIconType: string;
|
|
39
48
|
hideEndIcon: boolean;
|
|
40
49
|
testId: string;
|
|
50
|
+
maxWidth: number;
|
|
51
|
+
withTooltip: boolean;
|
|
52
|
+
tooltipPlacement: string;
|
|
41
53
|
}>>> & {
|
|
42
54
|
onClick?: () => any;
|
|
43
55
|
}, {
|
|
44
56
|
testId: string;
|
|
45
57
|
variant: "text" | "outlined";
|
|
58
|
+
withTooltip: boolean;
|
|
59
|
+
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";
|
|
46
60
|
disabled: boolean;
|
|
47
61
|
size: "small" | "medium";
|
|
62
|
+
maxWidth: number;
|
|
48
63
|
open: boolean;
|
|
49
64
|
startIconName: string;
|
|
50
65
|
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonDropdownTrigger.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../ButtonDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-604dfc6f"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "../../../ButtonDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; import { defineComponent as c, openBlock as s, createBlock as u, unref as o, normalizeClass as m, withCtx as n, renderSlot as f, createElementVNode as p, normalizeStyle as y, createVNode as h, createTextVNode as b, toDisplayString as x } from "vue";
|
|
2
|
+
import T 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 B from "../../typography/v4/Typography.vue.js";
|
|
7
|
+
const W = /* @__PURE__ */ c({
|
|
7
8
|
__name: "ButtonDropdownTrigger",
|
|
8
9
|
props: {
|
|
9
10
|
label: null,
|
|
@@ -14,26 +15,47 @@ const b = { class: "label" }, p = /* @__PURE__ */ l({
|
|
|
14
15
|
startIconName: { default: null },
|
|
15
16
|
startIconType: { default: "regular" },
|
|
16
17
|
hideEndIcon: { type: Boolean, default: !1 },
|
|
17
|
-
testId: { default: "" }
|
|
18
|
+
testId: { default: "" },
|
|
19
|
+
maxWidth: { default: 0 },
|
|
20
|
+
withTooltip: { type: Boolean, default: !0 },
|
|
21
|
+
tooltipPlacement: { default: "top" }
|
|
18
22
|
},
|
|
19
23
|
emits: ["click"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
setup(t, { emit: i }) {
|
|
25
|
+
const e = t, a = 40, d = e.maxWidth > a ? { maxWidth: `${e.maxWidth - a}px` } : {};
|
|
26
|
+
return (r, l) => (s(), u(o(T), {
|
|
27
|
+
class: m(["button-trigger", { open: t.open }]),
|
|
28
|
+
disabled: t.disabled,
|
|
24
29
|
color: "default",
|
|
25
|
-
variant:
|
|
26
|
-
size:
|
|
27
|
-
"start-icon-name":
|
|
28
|
-
"start-icon-type":
|
|
29
|
-
"end-icon-name":
|
|
30
|
-
content:
|
|
31
|
-
"test-id":
|
|
32
|
-
onClick:
|
|
30
|
+
variant: t.variant,
|
|
31
|
+
size: t.size,
|
|
32
|
+
"start-icon-name": t.startIconName,
|
|
33
|
+
"start-icon-type": t.startIconType,
|
|
34
|
+
"end-icon-name": t.hideEndIcon ? null : "caret-down",
|
|
35
|
+
content: t.label,
|
|
36
|
+
"test-id": t.testId,
|
|
37
|
+
onClick: l[0] || (l[0] = (g) => i("click"))
|
|
33
38
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
default: n(() => [
|
|
40
|
+
f(r.$slots, "default", {}, () => [
|
|
41
|
+
p("div", {
|
|
42
|
+
style: y(o(d)),
|
|
43
|
+
class: "label-wrapper"
|
|
44
|
+
}, [
|
|
45
|
+
h(B, {
|
|
46
|
+
variant: "button",
|
|
47
|
+
class: "label-text",
|
|
48
|
+
"is-truncated": "",
|
|
49
|
+
"with-tooltip": t.withTooltip,
|
|
50
|
+
"tooltip-text": t.label,
|
|
51
|
+
"tooltip-placement": t.tooltipPlacement
|
|
52
|
+
}, {
|
|
53
|
+
default: n(() => [
|
|
54
|
+
b(x(t.label), 1)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["with-tooltip", "tooltip-text", "tooltip-placement"])
|
|
58
|
+
], 4)
|
|
37
59
|
], !0)
|
|
38
60
|
]),
|
|
39
61
|
_: 3
|
|
@@ -41,5 +63,5 @@ const b = { class: "label" }, p = /* @__PURE__ */ l({
|
|
|
41
63
|
}
|
|
42
64
|
});
|
|
43
65
|
export {
|
|
44
|
-
|
|
66
|
+
W as default
|
|
45
67
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ChipDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ChipDropdownTrigger.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e43ac1c9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|