@ironsource/shared-ui 2.1.11-rc.2 → 2.1.11-rc.21
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/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_93545ce0_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b1bde483_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c7e688b1_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +34 -26
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dropdown/common/Dropdown.common.js +174 -171
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +66 -44
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +75 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +159 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +20 -6
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +211 -187
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +161 -116
- package/components/dropdown/v4/index.d.ts +313 -86
- package/components/dropdown/v4/index.js +6 -3
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +12 -12
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/sortableList/SortableList.vue.d.ts +1 -1
- package/components/sortableList/index.d.ts +4 -4
- package/components/table/common/Table.common.js +26 -28
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/index.d.ts +2 -2
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/index.d.ts +860 -213
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -2
- package/package.json +3 -2
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_991a7aad_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
|
@@ -22,6 +22,7 @@ declare const DropdownTypes: () => (({
|
|
|
22
22
|
skidding: number;
|
|
23
23
|
modelValue: any;
|
|
24
24
|
selected: any;
|
|
25
|
+
valueToCopy: string;
|
|
25
26
|
placeholder: string;
|
|
26
27
|
autoFocus: boolean;
|
|
27
28
|
multi: boolean;
|
|
@@ -33,9 +34,8 @@ declare const DropdownTypes: () => (({
|
|
|
33
34
|
inlineSearch: boolean;
|
|
34
35
|
onSearch: (option: any, term: string) => boolean;
|
|
35
36
|
noResultsText: string;
|
|
36
|
-
valueToCopy: string;
|
|
37
|
-
helperText: string;
|
|
38
37
|
searchPlaceholder: string;
|
|
38
|
+
helperText: string;
|
|
39
39
|
showButtonOnOpen: boolean;
|
|
40
40
|
clearable: boolean;
|
|
41
41
|
multiOptionsPlaceholderPrefix: string;
|
|
@@ -93,13 +93,13 @@ declare const DropdownTypes: () => (({
|
|
|
93
93
|
type: import("vue").PropType<string>;
|
|
94
94
|
default: string;
|
|
95
95
|
};
|
|
96
|
+
isOpen: {
|
|
97
|
+
type: import("vue").PropType<boolean>;
|
|
98
|
+
};
|
|
96
99
|
skidding: {
|
|
97
100
|
type: import("vue").PropType<number>;
|
|
98
101
|
default: number;
|
|
99
102
|
};
|
|
100
|
-
isOpen: {
|
|
101
|
-
type: import("vue").PropType<boolean>;
|
|
102
|
-
};
|
|
103
103
|
modelValue: {
|
|
104
104
|
type: import("vue").PropType<unknown>;
|
|
105
105
|
default: any;
|
|
@@ -108,6 +108,10 @@ declare const DropdownTypes: () => (({
|
|
|
108
108
|
type: import("vue").PropType<unknown>;
|
|
109
109
|
default: any;
|
|
110
110
|
};
|
|
111
|
+
valueToCopy: {
|
|
112
|
+
type: import("vue").PropType<string>;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
111
115
|
options: {
|
|
112
116
|
type: import("vue").PropType<any[]>;
|
|
113
117
|
required: true;
|
|
@@ -163,7 +167,7 @@ declare const DropdownTypes: () => (({
|
|
|
163
167
|
type: import("vue").PropType<(option: unknown) => string>;
|
|
164
168
|
required: true;
|
|
165
169
|
};
|
|
166
|
-
|
|
170
|
+
searchPlaceholder: {
|
|
167
171
|
type: import("vue").PropType<string>;
|
|
168
172
|
default: string;
|
|
169
173
|
};
|
|
@@ -171,10 +175,6 @@ declare const DropdownTypes: () => (({
|
|
|
171
175
|
type: import("vue").PropType<string>;
|
|
172
176
|
default: string;
|
|
173
177
|
};
|
|
174
|
-
searchPlaceholder: {
|
|
175
|
-
type: import("vue").PropType<string>;
|
|
176
|
-
default: string;
|
|
177
|
-
};
|
|
178
178
|
showButtonOnOpen: {
|
|
179
179
|
type: import("vue").PropType<boolean>;
|
|
180
180
|
default: boolean;
|
|
@@ -203,7 +203,7 @@ declare const DropdownTypes: () => (({
|
|
|
203
203
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
204
204
|
onOpened?: () => any;
|
|
205
205
|
onClosed?: () => any;
|
|
206
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "selected" | "placeholder" | "autoFocus" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "
|
|
206
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "autoFocus" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "clearable" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
|
|
207
207
|
$attrs: {
|
|
208
208
|
[x: string]: unknown;
|
|
209
209
|
};
|
|
@@ -269,13 +269,13 @@ declare const DropdownTypes: () => (({
|
|
|
269
269
|
type: import("vue").PropType<string>;
|
|
270
270
|
default: string;
|
|
271
271
|
};
|
|
272
|
+
isOpen: {
|
|
273
|
+
type: import("vue").PropType<boolean>;
|
|
274
|
+
};
|
|
272
275
|
skidding: {
|
|
273
276
|
type: import("vue").PropType<number>;
|
|
274
277
|
default: number;
|
|
275
278
|
};
|
|
276
|
-
isOpen: {
|
|
277
|
-
type: import("vue").PropType<boolean>;
|
|
278
|
-
};
|
|
279
279
|
modelValue: {
|
|
280
280
|
type: import("vue").PropType<unknown>;
|
|
281
281
|
default: any;
|
|
@@ -284,6 +284,10 @@ declare const DropdownTypes: () => (({
|
|
|
284
284
|
type: import("vue").PropType<unknown>;
|
|
285
285
|
default: any;
|
|
286
286
|
};
|
|
287
|
+
valueToCopy: {
|
|
288
|
+
type: import("vue").PropType<string>;
|
|
289
|
+
default: string;
|
|
290
|
+
};
|
|
287
291
|
options: {
|
|
288
292
|
type: import("vue").PropType<any[]>;
|
|
289
293
|
required: true;
|
|
@@ -339,7 +343,7 @@ declare const DropdownTypes: () => (({
|
|
|
339
343
|
type: import("vue").PropType<(option: unknown) => string>;
|
|
340
344
|
required: true;
|
|
341
345
|
};
|
|
342
|
-
|
|
346
|
+
searchPlaceholder: {
|
|
343
347
|
type: import("vue").PropType<string>;
|
|
344
348
|
default: string;
|
|
345
349
|
};
|
|
@@ -347,10 +351,6 @@ declare const DropdownTypes: () => (({
|
|
|
347
351
|
type: import("vue").PropType<string>;
|
|
348
352
|
default: string;
|
|
349
353
|
};
|
|
350
|
-
searchPlaceholder: {
|
|
351
|
-
type: import("vue").PropType<string>;
|
|
352
|
-
default: string;
|
|
353
|
-
};
|
|
354
354
|
showButtonOnOpen: {
|
|
355
355
|
type: import("vue").PropType<boolean>;
|
|
356
356
|
default: boolean;
|
|
@@ -406,6 +406,7 @@ declare const DropdownTypes: () => (({
|
|
|
406
406
|
skidding: number;
|
|
407
407
|
modelValue: any;
|
|
408
408
|
selected: any;
|
|
409
|
+
valueToCopy: string;
|
|
409
410
|
placeholder: string;
|
|
410
411
|
autoFocus: boolean;
|
|
411
412
|
multi: boolean;
|
|
@@ -417,9 +418,8 @@ declare const DropdownTypes: () => (({
|
|
|
417
418
|
inlineSearch: boolean;
|
|
418
419
|
onSearch: (option: any, term: string) => boolean;
|
|
419
420
|
noResultsText: string;
|
|
420
|
-
valueToCopy: string;
|
|
421
|
-
helperText: string;
|
|
422
421
|
searchPlaceholder: string;
|
|
422
|
+
helperText: string;
|
|
423
423
|
showButtonOnOpen: boolean;
|
|
424
424
|
clearable: boolean;
|
|
425
425
|
multiOptionsPlaceholderPrefix: string;
|
|
@@ -497,13 +497,13 @@ declare const DropdownTypes: () => (({
|
|
|
497
497
|
type: import("vue").PropType<string>;
|
|
498
498
|
default: string;
|
|
499
499
|
};
|
|
500
|
+
isOpen: {
|
|
501
|
+
type: import("vue").PropType<boolean>;
|
|
502
|
+
};
|
|
500
503
|
skidding: {
|
|
501
504
|
type: import("vue").PropType<number>;
|
|
502
505
|
default: number;
|
|
503
506
|
};
|
|
504
|
-
isOpen: {
|
|
505
|
-
type: import("vue").PropType<boolean>;
|
|
506
|
-
};
|
|
507
507
|
modelValue: {
|
|
508
508
|
type: import("vue").PropType<unknown>;
|
|
509
509
|
default: any;
|
|
@@ -512,6 +512,10 @@ declare const DropdownTypes: () => (({
|
|
|
512
512
|
type: import("vue").PropType<unknown>;
|
|
513
513
|
default: any;
|
|
514
514
|
};
|
|
515
|
+
valueToCopy: {
|
|
516
|
+
type: import("vue").PropType<string>;
|
|
517
|
+
default: string;
|
|
518
|
+
};
|
|
515
519
|
options: {
|
|
516
520
|
type: import("vue").PropType<any[]>;
|
|
517
521
|
required: true;
|
|
@@ -567,7 +571,7 @@ declare const DropdownTypes: () => (({
|
|
|
567
571
|
type: import("vue").PropType<(option: unknown) => string>;
|
|
568
572
|
required: true;
|
|
569
573
|
};
|
|
570
|
-
|
|
574
|
+
searchPlaceholder: {
|
|
571
575
|
type: import("vue").PropType<string>;
|
|
572
576
|
default: string;
|
|
573
577
|
};
|
|
@@ -575,10 +579,6 @@ declare const DropdownTypes: () => (({
|
|
|
575
579
|
type: import("vue").PropType<string>;
|
|
576
580
|
default: string;
|
|
577
581
|
};
|
|
578
|
-
searchPlaceholder: {
|
|
579
|
-
type: import("vue").PropType<string>;
|
|
580
|
-
default: string;
|
|
581
|
-
};
|
|
582
582
|
showButtonOnOpen: {
|
|
583
583
|
type: import("vue").PropType<boolean>;
|
|
584
584
|
default: boolean;
|
|
@@ -666,13 +666,13 @@ declare const DropdownTypes: () => (({
|
|
|
666
666
|
type: import("vue").PropType<string>;
|
|
667
667
|
default: string;
|
|
668
668
|
};
|
|
669
|
+
isOpen: {
|
|
670
|
+
type: import("vue").PropType<boolean>;
|
|
671
|
+
};
|
|
669
672
|
skidding: {
|
|
670
673
|
type: import("vue").PropType<number>;
|
|
671
674
|
default: number;
|
|
672
675
|
};
|
|
673
|
-
isOpen: {
|
|
674
|
-
type: import("vue").PropType<boolean>;
|
|
675
|
-
};
|
|
676
676
|
modelValue: {
|
|
677
677
|
type: import("vue").PropType<unknown>;
|
|
678
678
|
default: any;
|
|
@@ -681,6 +681,10 @@ declare const DropdownTypes: () => (({
|
|
|
681
681
|
type: import("vue").PropType<unknown>;
|
|
682
682
|
default: any;
|
|
683
683
|
};
|
|
684
|
+
valueToCopy: {
|
|
685
|
+
type: import("vue").PropType<string>;
|
|
686
|
+
default: string;
|
|
687
|
+
};
|
|
684
688
|
options: {
|
|
685
689
|
type: import("vue").PropType<any[]>;
|
|
686
690
|
required: true;
|
|
@@ -736,7 +740,7 @@ declare const DropdownTypes: () => (({
|
|
|
736
740
|
type: import("vue").PropType<(option: unknown) => string>;
|
|
737
741
|
required: true;
|
|
738
742
|
};
|
|
739
|
-
|
|
743
|
+
searchPlaceholder: {
|
|
740
744
|
type: import("vue").PropType<string>;
|
|
741
745
|
default: string;
|
|
742
746
|
};
|
|
@@ -744,10 +748,6 @@ declare const DropdownTypes: () => (({
|
|
|
744
748
|
type: import("vue").PropType<string>;
|
|
745
749
|
default: string;
|
|
746
750
|
};
|
|
747
|
-
searchPlaceholder: {
|
|
748
|
-
type: import("vue").PropType<string>;
|
|
749
|
-
default: string;
|
|
750
|
-
};
|
|
751
751
|
showButtonOnOpen: {
|
|
752
752
|
type: import("vue").PropType<boolean>;
|
|
753
753
|
default: boolean;
|
|
@@ -803,6 +803,7 @@ declare const DropdownTypes: () => (({
|
|
|
803
803
|
skidding: number;
|
|
804
804
|
modelValue: any;
|
|
805
805
|
selected: any;
|
|
806
|
+
valueToCopy: string;
|
|
806
807
|
placeholder: string;
|
|
807
808
|
autoFocus: boolean;
|
|
808
809
|
multi: boolean;
|
|
@@ -814,9 +815,8 @@ declare const DropdownTypes: () => (({
|
|
|
814
815
|
inlineSearch: boolean;
|
|
815
816
|
onSearch: (option: any, term: string) => boolean;
|
|
816
817
|
noResultsText: string;
|
|
817
|
-
valueToCopy: string;
|
|
818
|
-
helperText: string;
|
|
819
818
|
searchPlaceholder: string;
|
|
819
|
+
helperText: string;
|
|
820
820
|
showButtonOnOpen: boolean;
|
|
821
821
|
clearable: boolean;
|
|
822
822
|
multiOptionsPlaceholderPrefix: string;
|
|
@@ -106,6 +106,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
106
|
open: boolean;
|
|
107
107
|
mandatory: boolean;
|
|
108
108
|
loading: boolean;
|
|
109
|
+
valueToCopy: string;
|
|
109
110
|
options: unknown[];
|
|
110
111
|
singleAppSelection: boolean;
|
|
111
112
|
placeholder: string;
|
|
@@ -116,7 +117,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
116
117
|
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
117
118
|
optionEndIconKey: string;
|
|
118
119
|
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
119
|
-
valueToCopy: string;
|
|
120
120
|
selectedOption: any;
|
|
121
121
|
brandIconType: "android" | "ios";
|
|
122
122
|
}>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonFilterDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../ButtonFilterDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1aa6df01"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../../ButtonFilterDropdownTrigger.
|
|
1
|
+
import "../../../ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css"; import { defineComponent as m, openBlock as o, createElementBlock as u, mergeProps as l, unref as t, createBlock as d, createCommentVNode as i, createVNode as f, withCtx as p, createTextVNode as I, toDisplayString as T } from "vue";
|
|
2
2
|
import y from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import s from "../../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../../icon/v4/IconFlag.vue.js";
|
|
5
5
|
import { useTestIdAttrs as N } from "../../../utils/testIds.js";
|
|
6
|
-
import { DropdownTestIdModifiers as
|
|
7
|
-
const
|
|
6
|
+
import { DropdownTestIdModifiers as n } from "../../../testids/index.js";
|
|
7
|
+
const h = /* @__PURE__ */ m({
|
|
8
8
|
__name: "ButtonFilterDropdownTrigger",
|
|
9
9
|
props: {
|
|
10
10
|
label: null,
|
|
@@ -18,10 +18,10 @@ const E = /* @__PURE__ */ m({
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["click"],
|
|
20
20
|
setup(e, { emit: c }) {
|
|
21
|
-
const
|
|
21
|
+
const a = N(e.testId, n);
|
|
22
22
|
return (g, r) => (o(), u("div", l({
|
|
23
23
|
class: ["button-filter-dropdown-trigger", [e.variant, { disabled: e.disabled, open: e.open }]]
|
|
24
|
-
}, t(
|
|
24
|
+
}, t(a)[t(n).BUTTON], {
|
|
25
25
|
onClick: r[0] || (r[0] = (k) => c("click"))
|
|
26
26
|
}), [
|
|
27
27
|
e.startIconName ? (o(), d(t(s), {
|
|
@@ -31,7 +31,7 @@ const E = /* @__PURE__ */ m({
|
|
|
31
31
|
size: "16px",
|
|
32
32
|
class: "start-icon"
|
|
33
33
|
}, null, 8, ["name", "type"])) : i("", !0),
|
|
34
|
-
f(t(y), l({ variant: "
|
|
34
|
+
f(t(y), l({ variant: "button" }, t(a)[t(n).BUTTON_CONTENT]), {
|
|
35
35
|
default: p(() => [
|
|
36
36
|
I(T(e.label), 1)
|
|
37
37
|
]),
|
|
@@ -47,5 +47,5 @@ const E = /* @__PURE__ */ m({
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
h as default
|
|
51
51
|
};
|
|
@@ -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 s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ba28c717"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import "../../../ChipDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css"; import { defineComponent as w, ref as d, computed as p, watch as _, openBlock as k, createBlock as B, unref as t, withCtx as T, createElementVNode as r, mergeProps as u, createVNode as f, createTextVNode as A, toDisplayString as N, withDirectives as g, vShow as O, withModifiers as I } from "vue";
|
|
2
|
+
import x from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import { DropdownTestIdModifiers as
|
|
6
|
-
import { useTestIdAttrs as
|
|
7
|
-
|
|
4
|
+
import $ from "../../typography/v4/Typography.vue.js";
|
|
5
|
+
import { DropdownTestIdModifiers as n } from "../../../testids/index.js";
|
|
6
|
+
import { useTestIdAttrs as D } from "../../../utils/testIds.js";
|
|
7
|
+
import { isElementTruncated as S } from "../../../utils/text.js";
|
|
8
|
+
import { promiseTimeout as E } from "@vueuse/core";
|
|
9
|
+
import R from "../../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
const U = { class: "chip-trigger--icon" }, z = ["onClick"], K = /* @__PURE__ */ w({
|
|
8
11
|
__name: "ChipDropdownTrigger",
|
|
9
12
|
props: {
|
|
10
13
|
label: { default: "Status" },
|
|
@@ -20,15 +23,15 @@ const N = { class: "chip-trigger--content" }, I = { class: "chip-trigger--icon"
|
|
|
20
23
|
multi: { type: Boolean }
|
|
21
24
|
},
|
|
22
25
|
emits: ["clear"],
|
|
23
|
-
setup(
|
|
24
|
-
const e =
|
|
25
|
-
|
|
26
|
-
}, i =
|
|
26
|
+
setup(s, { emit: V }) {
|
|
27
|
+
const e = s, v = () => {
|
|
28
|
+
V("clear");
|
|
29
|
+
}, o = d(null), i = d(!0), m = d(!1), h = (l) => {
|
|
27
30
|
let a = l;
|
|
28
31
|
return Array.isArray(l) && (l.length > 1 ? a = `${l[0]}, +${l[1]}` : a = l[0] ? `${l[0]}` : ""), i.value = !!a, a ? `${e.label}: ${a}` : e.label;
|
|
29
|
-
},
|
|
32
|
+
}, C = p(
|
|
30
33
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
31
|
-
),
|
|
34
|
+
), c = D(e.testId, n), y = p(() => {
|
|
32
35
|
if (!e.multi)
|
|
33
36
|
return e.selectedOption ? e.displayValue(e.selectedOption) : "";
|
|
34
37
|
if (Array.isArray(e.selectedOption))
|
|
@@ -37,39 +40,58 @@ const N = { class: "chip-trigger--content" }, I = { class: "chip-trigger--icon"
|
|
|
37
40
|
e.selectedOption.length - 1
|
|
38
41
|
] : [];
|
|
39
42
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
43
|
+
_([() => e.selectedOption, o], async () => {
|
|
44
|
+
await E(100), m.value = o.value && S(o.value);
|
|
45
|
+
});
|
|
46
|
+
const b = p(() => m.value ? h(y.value) : "");
|
|
47
|
+
return (l, a) => (k(), B(t(R), {
|
|
48
|
+
text: t(b),
|
|
49
|
+
class: "tooltip-option"
|
|
50
|
+
}, {
|
|
51
|
+
default: T(() => [
|
|
52
|
+
r("div", u({
|
|
53
|
+
class: ["chip-trigger", [t(C), { active: i.value, disabled: s.disabled, open: s.open }]]
|
|
54
|
+
}, t(c)[t(n).BUTTON]), [
|
|
55
|
+
r("div", {
|
|
56
|
+
ref_key: "textContainerRef",
|
|
57
|
+
ref: o,
|
|
58
|
+
class: "chip-trigger--content"
|
|
59
|
+
}, [
|
|
60
|
+
f(t($), u({
|
|
61
|
+
class: "chip-trigger--text",
|
|
62
|
+
variant: "chipLabel"
|
|
63
|
+
}, t(c)[t(n).BUTTON_CONTENT]), {
|
|
64
|
+
default: T(() => [
|
|
65
|
+
A(N(h(t(y))), 1)
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 16),
|
|
69
|
+
g(r("div", U, [
|
|
70
|
+
f(t(x), {
|
|
71
|
+
name: "caret-down",
|
|
72
|
+
size: "16px"
|
|
73
|
+
})
|
|
74
|
+
], 512), [
|
|
75
|
+
[O, !i.value]
|
|
76
|
+
]),
|
|
77
|
+
g(r("div", u({ class: "x-circle-wrapper" }, t(c)[t(n).BUTTON_CLEAR], {
|
|
78
|
+
onClick: I(v, ["stop"])
|
|
79
|
+
}), [
|
|
80
|
+
f(t(x), {
|
|
81
|
+
name: "x-circle",
|
|
82
|
+
size: "16px",
|
|
83
|
+
type: "fill"
|
|
84
|
+
})
|
|
85
|
+
], 16, z), [
|
|
86
|
+
[O, i.value]
|
|
87
|
+
])
|
|
88
|
+
], 512)
|
|
89
|
+
], 16)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["text"]));
|
|
71
93
|
}
|
|
72
94
|
});
|
|
73
95
|
export {
|
|
74
|
-
|
|
96
|
+
K as default
|
|
75
97
|
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
type SelectedCondition = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
multi: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
selectedCondition: SelectedCondition | null;
|
|
8
|
+
appliedSelections: unknown | unknown[];
|
|
9
|
+
conditionalOptions: SelectedCondition[];
|
|
10
|
+
label: string;
|
|
11
|
+
testId?: string;
|
|
12
|
+
comparingKey: string;
|
|
13
|
+
fetchFnCallback: (q: string) => Promise<unknown[]>;
|
|
14
|
+
optionNameKey: string;
|
|
15
|
+
minCharsToStart?: number;
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
}>, {
|
|
18
|
+
label: string;
|
|
19
|
+
testId: string;
|
|
20
|
+
comparingKey: string;
|
|
21
|
+
optionNameKey: string;
|
|
22
|
+
minCharsToStart: number;
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:selectedCondition": (value: SelectedCondition) => void;
|
|
26
|
+
"update:appliedSelections": (value: unknown) => void;
|
|
27
|
+
clear: () => void;
|
|
28
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
selectedCondition: SelectedCondition | null;
|
|
30
|
+
appliedSelections: unknown | unknown[];
|
|
31
|
+
conditionalOptions: SelectedCondition[];
|
|
32
|
+
label: string;
|
|
33
|
+
testId?: string;
|
|
34
|
+
comparingKey: string;
|
|
35
|
+
fetchFnCallback: (q: string) => Promise<unknown[]>;
|
|
36
|
+
optionNameKey: string;
|
|
37
|
+
minCharsToStart?: number;
|
|
38
|
+
isOpen?: boolean;
|
|
39
|
+
}>, {
|
|
40
|
+
label: string;
|
|
41
|
+
testId: string;
|
|
42
|
+
comparingKey: string;
|
|
43
|
+
optionNameKey: string;
|
|
44
|
+
minCharsToStart: number;
|
|
45
|
+
isOpen: boolean;
|
|
46
|
+
}>>> & {
|
|
47
|
+
onClear?: () => any;
|
|
48
|
+
"onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
|
|
49
|
+
"onUpdate:appliedSelections"?: (value: unknown) => any;
|
|
50
|
+
}, {
|
|
51
|
+
label: string;
|
|
52
|
+
testId: string;
|
|
53
|
+
isOpen: boolean;
|
|
54
|
+
optionNameKey: string;
|
|
55
|
+
comparingKey: string;
|
|
56
|
+
minCharsToStart: number;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
60
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
61
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
62
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
63
|
+
} : {
|
|
64
|
+
type: import('vue').PropType<T[K]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
type __VLS_WithDefaults<P, D> = {
|
|
69
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
70
|
+
default: D[K];
|
|
71
|
+
}> : P[K];
|
|
72
|
+
};
|
|
73
|
+
type __VLS_Prettify<T> = {
|
|
74
|
+
[K in keyof T]: T[K];
|
|
75
|
+
} & {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./ConditionalDropdown.vue2.js";
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_93545ce0_lang.css"; //*');
|
|
4
|
+
const n = /* @__PURE__ */ e(o, [["__scopeId", "data-v-93545ce0"]]);
|
|
5
|
+
export {
|
|
6
|
+
n as default
|
|
7
|
+
};
|