@ironsource/shared-ui 2.0.0 → 2.0.1-test.2
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c48dc06e_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_cca772e9_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e5202bb9_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_4e432056_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_92d83650_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_11c1bb3f_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c6156fa0_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_19f8fedd_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_fb054d88_lang.css +1 -0
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_5764fd61_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2a214b95_lang.css +1 -0
- package/{Skeleton.vue_vue_type_style_index_0_scoped_9837f0ce_lang.css → Skeleton.vue_vue_type_style_index_0_scoped_5ed40068_lang.css} +1 -1
- package/SkeletonV4.vue_vue_type_style_index_0_scoped_2f3b3470_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_76fef9bd_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.js +4 -4
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/dialog/v4/DialogV4.vue.d.ts +34 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +87 -56
- package/components/dialog/v4/index.d.ts +128 -2
- package/components/dropdown/common/Dropdown.common.js +29 -29
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +136 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +7 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +147 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +8 -8
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +39 -11
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +77 -47
- package/components/dropdown/v4/Dropdown.types.d.ts +1 -1
- package/components/dropdown/v4/Dropdown.types.js +2 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +42 -7
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +193 -163
- package/components/dropdown/v4/OptionV4.vue.d.ts +20 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +54 -37
- package/components/dropdown/v4/index.d.ts +824 -70
- package/components/dropdown/v4/index.js +11 -8
- package/components/includeExclude/IncludeExclude.vue.js +3 -3
- package/components/includeExclude/IncludeExclude.vue2.js +2 -2
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
- package/components/includeExclude/index.d.ts +20 -20
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +9 -10
- package/components/input/v4/index.d.ts +20 -20
- package/components/layout/FormCard.vue.d.ts +1 -1
- package/components/layout/index.d.ts +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +7 -6
- package/components/skeleton/v3/Skeleton.vue.js +7 -0
- package/components/skeleton/{Skeleton.vue2.js → v3/Skeleton.vue2.js} +1 -1
- package/components/skeleton/v4/SkeletonV4.vue.d.ts +41 -0
- package/components/skeleton/v4/SkeletonV4.vue.js +7 -0
- package/components/skeleton/v4/SkeletonV4.vue2.js +23 -0
- package/components/skeleton/v4/index.d.ts +94 -0
- package/components/skeleton/v4/index.js +6 -0
- package/components/table/v3/Table.vue.js +5 -5
- package/components/table/v3/Table.vue2.js +3 -3
- package/components/table/v4/DataGrid.vue.d.ts +7 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +175 -169
- package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
- package/components/table/v4/DataGridMenu.vue.js +3 -3
- package/components/table/v4/DataGridMenu.vue2.js +49 -38
- package/components/table/v4/DataGridRowsCounter.vue.d.ts +34 -0
- package/components/table/v4/DataGridRowsCounter.vue.js +7 -0
- package/components/table/v4/DataGridRowsCounter.vue2.js +36 -0
- package/components/table/v4/index.d.ts +56 -6
- package/components/table/v4/index.js +6 -4
- package/components/table/v4/storyUtils.d.ts +1 -0
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +20 -20
- package/index.d.ts +2401 -360
- package/index.js +119 -119
- package/mocks/apps.d.ts +7 -0
- package/package.json +6 -2
- package/testids/index.d.ts +3 -1
- package/testids/index.js +10 -10
- package/utils/array.js +1 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_31e553e8_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_14dcdae5_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_99f1dcca_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c218ef1f_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c0c12287_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_571b7c2f_lang.css +0 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +0 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +0 -1
- package/Table.vue_vue_type_style_index_0_scoped_6b769df2_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_d4dc4582_lang.css +0 -1
- package/components/skeleton/Skeleton.vue.js +0 -7
- /package/components/skeleton/{Skeleton.vue.d.ts → v3/Skeleton.vue.d.ts} +0 -0
- /package/components/skeleton/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/skeleton/{index.js → v3/index.js} +0 -0
|
@@ -17,6 +17,12 @@ declare const DialogTypes: () => ({
|
|
|
17
17
|
closeOnClickOutside: boolean;
|
|
18
18
|
beforeClose: (show: () => void) => void;
|
|
19
19
|
showCloseButton: boolean;
|
|
20
|
+
showFooter: boolean;
|
|
21
|
+
saveButtonLabel: string;
|
|
22
|
+
saveButtonLoading: boolean;
|
|
23
|
+
saveButtonColor: string;
|
|
24
|
+
cancelButtonLabel: string;
|
|
25
|
+
cancelButtonColor: string;
|
|
20
26
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
21
27
|
title: {
|
|
22
28
|
type: import("vue").PropType<string>;
|
|
@@ -74,11 +80,37 @@ declare const DialogTypes: () => ({
|
|
|
74
80
|
type: import("vue").PropType<boolean>;
|
|
75
81
|
default: boolean;
|
|
76
82
|
};
|
|
83
|
+
showFooter: {
|
|
84
|
+
type: import("vue").PropType<boolean>;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
saveButtonLabel: {
|
|
88
|
+
type: import("vue").PropType<string>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
saveButtonLoading: {
|
|
92
|
+
type: import("vue").PropType<boolean>;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
saveButtonColor: {
|
|
96
|
+
type: import("vue").PropType<string>;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
cancelButtonLabel: {
|
|
100
|
+
type: import("vue").PropType<string>;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
cancelButtonColor: {
|
|
104
|
+
type: import("vue").PropType<string>;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
77
107
|
}>> & {
|
|
78
108
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
109
|
+
onCancel?: () => any;
|
|
79
110
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
80
111
|
onOpen?: () => any;
|
|
81
|
-
|
|
112
|
+
onSave?: () => any;
|
|
113
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size" | "testId" | "content" | "subtitle" | "appendToBody" | "closeDelay" | "openDelay" | "escapeToClose" | "showBackdrop" | "closeOnClickOutside" | "beforeClose" | "showCloseButton" | "showFooter" | "saveButtonLabel" | "saveButtonLoading" | "saveButtonColor" | "cancelButtonLabel" | "cancelButtonColor">;
|
|
82
114
|
$attrs: {
|
|
83
115
|
[x: string]: unknown;
|
|
84
116
|
};
|
|
@@ -90,7 +122,7 @@ declare const DialogTypes: () => ({
|
|
|
90
122
|
}>;
|
|
91
123
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
92
124
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
93
|
-
$emit: ((event: "close", reason: import("../v3").Reason) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void);
|
|
125
|
+
$emit: ((event: "cancel") => void) & ((event: "close", reason: import("../v3").Reason) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void) & ((event: "save") => void);
|
|
94
126
|
$el: any;
|
|
95
127
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
96
128
|
title: {
|
|
@@ -149,14 +181,42 @@ declare const DialogTypes: () => ({
|
|
|
149
181
|
type: import("vue").PropType<boolean>;
|
|
150
182
|
default: boolean;
|
|
151
183
|
};
|
|
184
|
+
showFooter: {
|
|
185
|
+
type: import("vue").PropType<boolean>;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
saveButtonLabel: {
|
|
189
|
+
type: import("vue").PropType<string>;
|
|
190
|
+
default: string;
|
|
191
|
+
};
|
|
192
|
+
saveButtonLoading: {
|
|
193
|
+
type: import("vue").PropType<boolean>;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
saveButtonColor: {
|
|
197
|
+
type: import("vue").PropType<string>;
|
|
198
|
+
default: string;
|
|
199
|
+
};
|
|
200
|
+
cancelButtonLabel: {
|
|
201
|
+
type: import("vue").PropType<string>;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
cancelButtonColor: {
|
|
205
|
+
type: import("vue").PropType<string>;
|
|
206
|
+
default: string;
|
|
207
|
+
};
|
|
152
208
|
}>> & {
|
|
153
209
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
210
|
+
onCancel?: () => any;
|
|
154
211
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
155
212
|
onOpen?: () => any;
|
|
213
|
+
onSave?: () => any;
|
|
156
214
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
157
215
|
"update:modelValue": (value: boolean) => void;
|
|
158
216
|
open: () => void;
|
|
159
217
|
close: (reason: import("../v3").Reason) => void;
|
|
218
|
+
save: () => void;
|
|
219
|
+
cancel: () => void;
|
|
160
220
|
}, string, {
|
|
161
221
|
title: string;
|
|
162
222
|
size: "small" | "medium" | "extraSmall";
|
|
@@ -171,6 +231,12 @@ declare const DialogTypes: () => ({
|
|
|
171
231
|
closeOnClickOutside: boolean;
|
|
172
232
|
beforeClose: (show: () => void) => void;
|
|
173
233
|
showCloseButton: boolean;
|
|
234
|
+
showFooter: boolean;
|
|
235
|
+
saveButtonLabel: string;
|
|
236
|
+
saveButtonLoading: boolean;
|
|
237
|
+
saveButtonColor: string;
|
|
238
|
+
cancelButtonLabel: string;
|
|
239
|
+
cancelButtonColor: string;
|
|
174
240
|
}, {}, string> & {
|
|
175
241
|
beforeCreate?: (() => void) | (() => void)[];
|
|
176
242
|
created?: (() => void) | (() => void)[];
|
|
@@ -248,10 +314,36 @@ declare const DialogTypes: () => ({
|
|
|
248
314
|
type: import("vue").PropType<boolean>;
|
|
249
315
|
default: boolean;
|
|
250
316
|
};
|
|
317
|
+
showFooter: {
|
|
318
|
+
type: import("vue").PropType<boolean>;
|
|
319
|
+
default: boolean;
|
|
320
|
+
};
|
|
321
|
+
saveButtonLabel: {
|
|
322
|
+
type: import("vue").PropType<string>;
|
|
323
|
+
default: string;
|
|
324
|
+
};
|
|
325
|
+
saveButtonLoading: {
|
|
326
|
+
type: import("vue").PropType<boolean>;
|
|
327
|
+
default: boolean;
|
|
328
|
+
};
|
|
329
|
+
saveButtonColor: {
|
|
330
|
+
type: import("vue").PropType<string>;
|
|
331
|
+
default: string;
|
|
332
|
+
};
|
|
333
|
+
cancelButtonLabel: {
|
|
334
|
+
type: import("vue").PropType<string>;
|
|
335
|
+
default: string;
|
|
336
|
+
};
|
|
337
|
+
cancelButtonColor: {
|
|
338
|
+
type: import("vue").PropType<string>;
|
|
339
|
+
default: string;
|
|
340
|
+
};
|
|
251
341
|
}>> & {
|
|
252
342
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
343
|
+
onCancel?: () => any;
|
|
253
344
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
254
345
|
onOpen?: () => any;
|
|
346
|
+
onSave?: () => any;
|
|
255
347
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
256
348
|
__isFragment?: never;
|
|
257
349
|
__isTeleport?: never;
|
|
@@ -313,14 +405,42 @@ declare const DialogTypes: () => ({
|
|
|
313
405
|
type: import("vue").PropType<boolean>;
|
|
314
406
|
default: boolean;
|
|
315
407
|
};
|
|
408
|
+
showFooter: {
|
|
409
|
+
type: import("vue").PropType<boolean>;
|
|
410
|
+
default: boolean;
|
|
411
|
+
};
|
|
412
|
+
saveButtonLabel: {
|
|
413
|
+
type: import("vue").PropType<string>;
|
|
414
|
+
default: string;
|
|
415
|
+
};
|
|
416
|
+
saveButtonLoading: {
|
|
417
|
+
type: import("vue").PropType<boolean>;
|
|
418
|
+
default: boolean;
|
|
419
|
+
};
|
|
420
|
+
saveButtonColor: {
|
|
421
|
+
type: import("vue").PropType<string>;
|
|
422
|
+
default: string;
|
|
423
|
+
};
|
|
424
|
+
cancelButtonLabel: {
|
|
425
|
+
type: import("vue").PropType<string>;
|
|
426
|
+
default: string;
|
|
427
|
+
};
|
|
428
|
+
cancelButtonColor: {
|
|
429
|
+
type: import("vue").PropType<string>;
|
|
430
|
+
default: string;
|
|
431
|
+
};
|
|
316
432
|
}>> & {
|
|
317
433
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
434
|
+
onCancel?: () => any;
|
|
318
435
|
onClose?: (reason: import("../v3").Reason) => any;
|
|
319
436
|
onOpen?: () => any;
|
|
437
|
+
onSave?: () => any;
|
|
320
438
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
321
439
|
"update:modelValue": (value: boolean) => void;
|
|
322
440
|
open: () => void;
|
|
323
441
|
close: (reason: import("../v3").Reason) => void;
|
|
442
|
+
save: () => void;
|
|
443
|
+
cancel: () => void;
|
|
324
444
|
}, string, {
|
|
325
445
|
title: string;
|
|
326
446
|
size: "small" | "medium" | "extraSmall";
|
|
@@ -335,6 +455,12 @@ declare const DialogTypes: () => ({
|
|
|
335
455
|
closeOnClickOutside: boolean;
|
|
336
456
|
beforeClose: (show: () => void) => void;
|
|
337
457
|
showCloseButton: boolean;
|
|
458
|
+
showFooter: boolean;
|
|
459
|
+
saveButtonLabel: string;
|
|
460
|
+
saveButtonLoading: boolean;
|
|
461
|
+
saveButtonColor: string;
|
|
462
|
+
cancelButtonLabel: string;
|
|
463
|
+
cancelButtonColor: string;
|
|
338
464
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
339
465
|
$slots: {
|
|
340
466
|
header?(_: {}): any;
|
|
@@ -27,7 +27,7 @@ const Ve = (l, O, A) => {
|
|
|
27
27
|
a.value = l.selected;
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
const W = Ae(), P = n(null),
|
|
30
|
+
const W = Ae(), P = n(null), f = n(null), C = n(null), I = n(null), V = n(null), S = n(null), Y = n(), H = n(null), L = n(null), U = n(null), Z = 8, F = r(() => S.value ? S.value.getBoundingClientRect().height + Z + l.distance : 0), c = n([]), T = n(-1), w = n(""), M = n([]), p = () => S.value?.focus(), [v, ee, le] = Oe({
|
|
31
31
|
disabled: l.disabled,
|
|
32
32
|
initialValue: l.defaultOpen
|
|
33
33
|
});
|
|
@@ -61,9 +61,9 @@ const Ve = (l, O, A) => {
|
|
|
61
61
|
return a.value.length === s.value.length;
|
|
62
62
|
}), re = r(() => !l.multi || !Array.isArray(a.value) ? !1 : a.value.length > 0 && a.value.length < s.value.length), N = (e) => {
|
|
63
63
|
w.value = e;
|
|
64
|
-
}, s = r(
|
|
65
|
-
(
|
|
66
|
-
), oe = r(() => c.value[0]?.hasSubtitle), G = r(() => i.mode === m.Multi), K = r(
|
|
64
|
+
}, s = r(() => l.onSearch ? l.options.filter(
|
|
65
|
+
(e) => l.onSearch(e, w.value)
|
|
66
|
+
) : l.options), oe = r(() => c.value[0]?.hasSubtitle), G = r(() => i.mode === m.Multi), K = r(
|
|
67
67
|
() => oe.value ? A.MULTILINE_LIST_HEIGHT : A.LIST_HEIGHT
|
|
68
68
|
), {
|
|
69
69
|
list: $,
|
|
@@ -90,7 +90,7 @@ const Ve = (l, O, A) => {
|
|
|
90
90
|
}));
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
|
-
const
|
|
93
|
+
const d = (e, t = !1) => {
|
|
94
94
|
l.disabled || (B(e), D(() => {
|
|
95
95
|
v.value && O("opened"), v.value || O("closed"), P.value && t && P.value.focus();
|
|
96
96
|
}));
|
|
@@ -100,7 +100,7 @@ const Ve = (l, O, A) => {
|
|
|
100
100
|
G.value && Array.isArray(u.value) && (M.value = x(u.value).slice());
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
p();
|
|
104
104
|
});
|
|
105
105
|
const ce = () => {
|
|
106
106
|
ve(), u.value = a.value;
|
|
@@ -116,21 +116,21 @@ const Ve = (l, O, A) => {
|
|
|
116
116
|
}
|
|
117
117
|
a.value = s.value;
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, fe = () => {
|
|
120
120
|
a.value = [], u.value = [];
|
|
121
121
|
}, _ = (e, t) => {
|
|
122
122
|
if (e = x(e), c.value[t]?.disabled)
|
|
123
123
|
return;
|
|
124
124
|
if (T.value = t, i.mode !== m.Multi) {
|
|
125
|
-
l.keepOpen ||
|
|
125
|
+
l.keepOpen || d(!1), i.goToOption(
|
|
126
126
|
0
|
|
127
127
|
/* None */
|
|
128
|
-
), u.value = e, N(""),
|
|
128
|
+
), u.value = e, N(""), p(), i.type === k.Search && f.value && (f.value.value = l.displayValue(e));
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
if (!Array.isArray(a.value))
|
|
132
132
|
return;
|
|
133
|
-
|
|
133
|
+
f.value?.focus();
|
|
134
134
|
const g = x(a.value);
|
|
135
135
|
if (z(g, e)) {
|
|
136
136
|
a.value = g.filter(
|
|
@@ -141,7 +141,7 @@ const Ve = (l, O, A) => {
|
|
|
141
141
|
a.value = [...g, e];
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, de = (e) => c.value[e]?.disabled, i = {
|
|
145
145
|
activeIndex: o,
|
|
146
146
|
options: c,
|
|
147
147
|
selectedOption: u,
|
|
@@ -153,7 +153,7 @@ const Ve = (l, O, A) => {
|
|
|
153
153
|
mode: l.multi ? m.Multi : m.Single,
|
|
154
154
|
query: w,
|
|
155
155
|
selectedValue: ue,
|
|
156
|
-
toggle:
|
|
156
|
+
toggle: d,
|
|
157
157
|
disabled: l.disabled,
|
|
158
158
|
open: v,
|
|
159
159
|
mandatory: l.mandatory,
|
|
@@ -161,7 +161,7 @@ const Ve = (l, O, A) => {
|
|
|
161
161
|
placeholder: l.placeholder,
|
|
162
162
|
select: _,
|
|
163
163
|
clearSelection: () => {
|
|
164
|
-
N(""), u.value = i.mode === m.Single ? null : [],
|
|
164
|
+
N(""), u.value = i.mode === m.Single ? null : [], f.value && (f.value.value = "");
|
|
165
165
|
},
|
|
166
166
|
search: N,
|
|
167
167
|
goToOption: async (e) => {
|
|
@@ -176,14 +176,14 @@ const Ve = (l, O, A) => {
|
|
|
176
176
|
I.value = s.value[t], o.value = t;
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!
|
|
179
|
+
if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!de(o.value)) {
|
|
180
180
|
I.value = s.value[t], o.value = t;
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
registerInput: (e) => {
|
|
186
|
-
|
|
186
|
+
f.value = e.value;
|
|
187
187
|
},
|
|
188
188
|
registerOption: (e, t, y) => {
|
|
189
189
|
c.value = [...c.value, { id: e, disabled: t, hasSubtitle: y }];
|
|
@@ -200,16 +200,16 @@ const Ve = (l, O, A) => {
|
|
|
200
200
|
{
|
|
201
201
|
ignore: [
|
|
202
202
|
S,
|
|
203
|
-
p,
|
|
204
203
|
H,
|
|
205
204
|
L,
|
|
206
|
-
|
|
205
|
+
U,
|
|
206
|
+
f,
|
|
207
207
|
X.ref
|
|
208
208
|
]
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
const ge = () => {
|
|
212
|
-
|
|
212
|
+
f.value && (f.value.value = i.query.value = "");
|
|
213
213
|
};
|
|
214
214
|
Se(async () => {
|
|
215
215
|
l.autoFocus && (await D(), setTimeout(() => {
|
|
@@ -217,9 +217,9 @@ const Ve = (l, O, A) => {
|
|
|
217
217
|
})), i.goToOption(0);
|
|
218
218
|
});
|
|
219
219
|
const he = () => {
|
|
220
|
-
u.value = a.value, O("apply", u.value),
|
|
220
|
+
u.value = a.value, O("apply", u.value), d(!1), ge();
|
|
221
221
|
}, j = () => {
|
|
222
|
-
G.value && Array.isArray(M.value) && (u.value = x(M.value).slice()), w.value = "",
|
|
222
|
+
G.value && Array.isArray(M.value) && (u.value = x(M.value).slice()), w.value = "", d(!1);
|
|
223
223
|
}, ye = (e) => {
|
|
224
224
|
if (!l.disableKeyboardEvents)
|
|
225
225
|
switch (e.key) {
|
|
@@ -227,7 +227,7 @@ const Ve = (l, O, A) => {
|
|
|
227
227
|
case "Enter":
|
|
228
228
|
case "ArrowUp":
|
|
229
229
|
case "ArrowDown":
|
|
230
|
-
|
|
230
|
+
d(!0), e.preventDefault();
|
|
231
231
|
}
|
|
232
232
|
}, be = (e) => {
|
|
233
233
|
if (!l.disableKeyboardEvents)
|
|
@@ -247,7 +247,7 @@ const Ve = (l, O, A) => {
|
|
|
247
247
|
break;
|
|
248
248
|
}
|
|
249
249
|
case "Escape": {
|
|
250
|
-
|
|
250
|
+
d(!1), e.preventDefault();
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
253
|
case "PageUp": {
|
|
@@ -266,10 +266,10 @@ const Ve = (l, O, A) => {
|
|
|
266
266
|
}
|
|
267
267
|
case "Enter": {
|
|
268
268
|
if (!v.value) {
|
|
269
|
-
|
|
269
|
+
d(!0);
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
|
-
_(s.value[o.value], o.value), i.mode === m.Single && !l.keepOpen &&
|
|
272
|
+
_(s.value[o.value], o.value), i.mode === m.Single && !l.keepOpen && d(!1), e.preventDefault();
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -284,7 +284,7 @@ const Ve = (l, O, A) => {
|
|
|
284
284
|
onKeydown: be,
|
|
285
285
|
location: F,
|
|
286
286
|
open: v,
|
|
287
|
-
toggleMenu:
|
|
287
|
+
toggleMenu: d,
|
|
288
288
|
onButtonKeydown: ye,
|
|
289
289
|
displayedValue: ie,
|
|
290
290
|
labelRef: V,
|
|
@@ -307,12 +307,12 @@ const Ve = (l, O, A) => {
|
|
|
307
307
|
onClickOutside: J,
|
|
308
308
|
listRef: P,
|
|
309
309
|
buttonRef: S,
|
|
310
|
-
apply:
|
|
311
|
-
cancel:
|
|
310
|
+
apply: H,
|
|
311
|
+
cancel: L,
|
|
312
312
|
el: C,
|
|
313
313
|
triggerRef: Y,
|
|
314
|
-
clearAll:
|
|
315
|
-
onClearAllSelections:
|
|
314
|
+
clearAll: U,
|
|
315
|
+
onClearAllSelections: fe
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
export {
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
selectedOption?: unknown;
|
|
4
|
+
options?: unknown[];
|
|
5
|
+
multi?: boolean;
|
|
6
|
+
size?: "small" | "medium" | "large";
|
|
7
|
+
open: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
testId?: string;
|
|
10
|
+
valueToCopy?: string;
|
|
11
|
+
label: string;
|
|
12
|
+
mandatory?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
singleAppSelection?: boolean;
|
|
15
|
+
brandIconType?: "android" | "ios";
|
|
16
|
+
displayValue: (option: unknown) => string;
|
|
17
|
+
optionNameKey?: string;
|
|
18
|
+
optionImageKey?: string;
|
|
19
|
+
optionIconKey?: string;
|
|
20
|
+
optionIconType?: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
21
|
+
}>, {
|
|
22
|
+
placeholder: string;
|
|
23
|
+
selectedOption: any;
|
|
24
|
+
options: any;
|
|
25
|
+
size: string;
|
|
26
|
+
open: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
testId: string;
|
|
29
|
+
multi: boolean;
|
|
30
|
+
valueToCopy: any;
|
|
31
|
+
label: string;
|
|
32
|
+
mandatory: boolean;
|
|
33
|
+
hoverHelpText: string;
|
|
34
|
+
hoverHelpTextPlacement: string;
|
|
35
|
+
feedbackText: string;
|
|
36
|
+
feedbackVariant: any;
|
|
37
|
+
loading: boolean;
|
|
38
|
+
singleAppSelection: boolean;
|
|
39
|
+
brandIconType: any;
|
|
40
|
+
optionNameKey: any;
|
|
41
|
+
optionImageKey: any;
|
|
42
|
+
optionIconKey: any;
|
|
43
|
+
optionIconType: any;
|
|
44
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
click: () => void;
|
|
46
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
selectedOption?: unknown;
|
|
49
|
+
options?: unknown[];
|
|
50
|
+
multi?: boolean;
|
|
51
|
+
size?: "small" | "medium" | "large";
|
|
52
|
+
open: boolean;
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
testId?: string;
|
|
55
|
+
valueToCopy?: string;
|
|
56
|
+
label: string;
|
|
57
|
+
mandatory?: boolean;
|
|
58
|
+
loading?: boolean;
|
|
59
|
+
singleAppSelection?: boolean;
|
|
60
|
+
brandIconType?: "android" | "ios";
|
|
61
|
+
displayValue: (option: unknown) => string;
|
|
62
|
+
optionNameKey?: string;
|
|
63
|
+
optionImageKey?: string;
|
|
64
|
+
optionIconKey?: string;
|
|
65
|
+
optionIconType?: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
66
|
+
}>, {
|
|
67
|
+
placeholder: string;
|
|
68
|
+
selectedOption: any;
|
|
69
|
+
options: any;
|
|
70
|
+
size: string;
|
|
71
|
+
open: boolean;
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
testId: string;
|
|
74
|
+
multi: boolean;
|
|
75
|
+
valueToCopy: any;
|
|
76
|
+
label: string;
|
|
77
|
+
mandatory: boolean;
|
|
78
|
+
hoverHelpText: string;
|
|
79
|
+
hoverHelpTextPlacement: string;
|
|
80
|
+
feedbackText: string;
|
|
81
|
+
feedbackVariant: any;
|
|
82
|
+
loading: boolean;
|
|
83
|
+
singleAppSelection: boolean;
|
|
84
|
+
brandIconType: any;
|
|
85
|
+
optionNameKey: any;
|
|
86
|
+
optionImageKey: any;
|
|
87
|
+
optionIconKey: any;
|
|
88
|
+
optionIconType: any;
|
|
89
|
+
}>>> & {
|
|
90
|
+
onClick?: () => any;
|
|
91
|
+
}, {
|
|
92
|
+
label: string;
|
|
93
|
+
size: "small" | "medium" | "large";
|
|
94
|
+
testId: string;
|
|
95
|
+
loading: boolean;
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
options: unknown[];
|
|
98
|
+
singleAppSelection: boolean;
|
|
99
|
+
placeholder: string;
|
|
100
|
+
open: boolean;
|
|
101
|
+
mandatory: boolean;
|
|
102
|
+
multi: boolean;
|
|
103
|
+
valueToCopy: string;
|
|
104
|
+
selectedOption: any;
|
|
105
|
+
brandIconType: "android" | "ios";
|
|
106
|
+
optionNameKey: string;
|
|
107
|
+
optionImageKey: string;
|
|
108
|
+
optionIconKey: string;
|
|
109
|
+
optionIconType: "fill" | "bold" | "ab-test" | "regular" | "branded" | "ad-unit";
|
|
110
|
+
}>, {
|
|
111
|
+
image?(_: {}): any;
|
|
112
|
+
"icon-start"?(_: {}): any;
|
|
113
|
+
}>;
|
|
114
|
+
export default _default;
|
|
115
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
116
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
117
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
118
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
119
|
+
} : {
|
|
120
|
+
type: import('vue').PropType<T[K]>;
|
|
121
|
+
required: true;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
type __VLS_WithDefaults<P, D> = {
|
|
125
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
126
|
+
default: D[K];
|
|
127
|
+
}> : P[K];
|
|
128
|
+
};
|
|
129
|
+
type __VLS_Prettify<T> = {
|
|
130
|
+
[K in keyof T]: T[K];
|
|
131
|
+
} & {};
|
|
132
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
133
|
+
new (): {
|
|
134
|
+
$slots: S;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./AppDropdownTrigger.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c48dc06e_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c48dc06e"]]);
|
|
5
|
+
export {
|
|
6
|
+
c as default
|
|
7
|
+
};
|