@ironsource/shared-ui 2.2.0-rc.42 → 2.2.0-rc.48

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.
Files changed (91) hide show
  1. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_5a645cc9_lang.css +1 -0
  2. package/DataGridMenu.vue_vue_type_style_index_0_scoped_b7e65177_lang.css +1 -0
  3. package/DateRangeV4.vue_vue_type_style_index_0_scoped_bb44cdf8_lang.css +1 -0
  4. package/DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css +1 -0
  5. package/FieldLabel.vue_vue_type_style_index_0_scoped_960ea8b1_lang.css +1 -0
  6. package/HelpText.vue_vue_type_style_index_0_scoped_b5caf7cd_lang.css +1 -0
  7. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_2a5345ef_lang.css +1 -0
  8. package/InlineCopy.vue_vue_type_style_index_0_scoped_8cb01c9d_lang.css +1 -0
  9. package/Link.vue_vue_type_style_index_0_scoped_c4345b08_lang.css +1 -0
  10. package/OptionV4.vue_vue_type_style_index_0_scoped_d48a9318_lang.css +1 -0
  11. package/SearchV4.vue_vue_type_style_index_0_scoped_e1a33934_lang.css +1 -0
  12. package/TabsV4.vue_vue_type_style_index_0_scoped_9747c9da_lang.css +1 -0
  13. package/TextField.vue_vue_type_style_index_0_scoped_f4275491_lang.css +1 -0
  14. package/ToggleV4.vue_vue_type_style_index_0_scoped_fbbae882_lang.css +1 -0
  15. package/TooltipV4.vue_vue_type_style_index_0_scoped_22e25f74_lang.css +1 -0
  16. package/components/autocomplete/index.d.ts +16 -16
  17. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  18. package/components/columnPicker/index.d.ts +20 -20
  19. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  20. package/components/dateRange/v4/DateRangeV4.vue2.js +28 -27
  21. package/components/dropdown/common/Dropdown.common.js +351 -274
  22. package/components/dropdown/v3/Dropdown.vue.d.ts +5 -5
  23. package/components/dropdown/v3/index.d.ts +77 -77
  24. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  25. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +38 -32
  26. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +1 -1
  27. package/components/dropdown/v4/DropdownV4.vue.d.ts +50 -41
  28. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  29. package/components/dropdown/v4/DropdownV4.vue2.js +237 -216
  30. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +5 -0
  31. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +3 -3
  32. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -9
  33. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  34. package/components/dropdown/v4/OptionV4.vue2.js +12 -12
  35. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  36. package/components/dropdown/v4/index.d.ts +2377 -2349
  37. package/components/helpText/HelpText.vue.js +3 -3
  38. package/components/helpText/HelpText.vue2.js +11 -10
  39. package/components/includeExclude/IncludeExclude.vue.d.ts +2 -2
  40. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
  41. package/components/includeExclude/index.d.ts +54 -54
  42. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  43. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  44. package/components/inlineCopy/InlineCopy.vue2.js +54 -53
  45. package/components/inlineCopy/index.d.ts +9 -0
  46. package/components/input/v4/TextField.vue.d.ts +5 -0
  47. package/components/input/v4/TextField.vue.js +2 -2
  48. package/components/input/v4/TextField.vue2.js +22 -19
  49. package/components/input/v4/index.d.ts +20 -1
  50. package/components/link/Link.vue.js +5 -5
  51. package/components/link/Link.vue2.js +30 -21
  52. package/components/search/v4/SearchV4.vue.d.ts +5 -0
  53. package/components/search/v4/SearchV4.vue.js +5 -5
  54. package/components/search/v4/SearchV4.vue2.js +23 -18
  55. package/components/search/v4/index.d.ts +9 -0
  56. package/components/shared/FieldLabel.vue.js +3 -3
  57. package/components/shared/FieldLabel.vue2.js +9 -8
  58. package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
  59. package/components/table/v4/DataGridMenu.vue.js +5 -5
  60. package/components/table/v4/DataGridMenu.vue2.js +28 -22
  61. package/components/table/v4/index.d.ts +9 -0
  62. package/components/tabs/v4/TabsV4.vue.d.ts +5 -0
  63. package/components/tabs/v4/TabsV4.vue.js +3 -3
  64. package/components/tabs/v4/TabsV4.vue2.js +74 -43
  65. package/components/tabs/v4/index.d.ts +20 -1
  66. package/components/toggle/v4/ToggleV4.vue.d.ts +5 -0
  67. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  68. package/components/toggle/v4/ToggleV4.vue2.js +50 -41
  69. package/components/toggle/v4/index.d.ts +20 -1
  70. package/components/tooltip/v4/TooltipV4.vue.d.ts +14 -1
  71. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  72. package/components/tooltip/v4/TooltipV4.vue2.js +85 -63
  73. package/components/tooltip/v4/index.d.ts +51 -4
  74. package/index.d.ts +2996 -2678
  75. package/index.js +1 -1
  76. package/package.json +5 -1
  77. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +0 -1
  78. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +0 -1
  79. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +0 -1
  80. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +0 -1
  81. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +0 -1
  82. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +0 -1
  83. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +0 -1
  84. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +0 -1
  85. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +0 -1
  86. package/OptionV4.vue_vue_type_style_index_0_scoped_771e1980_lang.css +0 -1
  87. package/SearchV4.vue_vue_type_style_index_0_scoped_d6c42f4b_lang.css +0 -1
  88. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +0 -1
  89. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +0 -1
  90. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +0 -1
  91. package/TooltipV4.vue_vue_type_style_index_0_scoped_a8aebfee_lang.css +0 -1
@@ -165,9 +165,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
165
165
  }>>> & {
166
166
  onClear?: () => any;
167
167
  onApply?: (value: unknown) => any;
168
- onSelectAll?: () => any;
169
168
  "onUpdate:selected"?: (value: unknown) => any;
170
169
  "onUpdate:isOpen"?: (value: unknown) => any;
170
+ onSelectAll?: () => any;
171
171
  onOpened?: () => any;
172
172
  onClosed?: () => any;
173
173
  }, {
@@ -191,14 +191,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
191
191
  autoFocus: boolean;
192
192
  clearable: boolean;
193
193
  multi: boolean;
194
+ inlineSearch: boolean;
195
+ isOnTop: boolean;
196
+ noResultsText: string;
194
197
  defaultOpen: boolean;
198
+ onSearch: (option: any, term: string) => boolean;
195
199
  keepOpen: boolean;
196
200
  autoSize: boolean;
197
201
  disableKeyboardEvents: boolean;
198
- isOnTop: boolean;
199
- inlineSearch: boolean;
200
- onSearch: (option: any, term: string) => boolean;
201
- noResultsText: string;
202
202
  searchPlaceholder: string;
203
203
  helperText: string;
204
204
  showButtonOnOpen: boolean;
@@ -27,14 +27,14 @@ declare const DropdownTypes: () => (({
27
27
  autoFocus: boolean;
28
28
  clearable: boolean;
29
29
  multi: boolean;
30
+ inlineSearch: boolean;
31
+ isOnTop: boolean;
32
+ noResultsText: string;
30
33
  defaultOpen: boolean;
34
+ onSearch: (option: any, term: string) => boolean;
31
35
  keepOpen: boolean;
32
36
  autoSize: boolean;
33
37
  disableKeyboardEvents: boolean;
34
- isOnTop: boolean;
35
- inlineSearch: boolean;
36
- onSearch: (option: any, term: string) => boolean;
37
- noResultsText: string;
38
38
  searchPlaceholder: string;
39
39
  helperText: string;
40
40
  showButtonOnOpen: boolean;
@@ -132,13 +132,26 @@ declare const DropdownTypes: () => (({
132
132
  type: import("vue").PropType<boolean>;
133
133
  default: boolean;
134
134
  };
135
- showSelectAll: {
135
+ inlineSearch: {
136
136
  type: import("vue").PropType<boolean>;
137
+ default: boolean;
138
+ };
139
+ isOnTop: {
140
+ type: import("vue").PropType<boolean>;
141
+ default: boolean;
142
+ };
143
+ noResultsText: {
144
+ type: import("vue").PropType<string>;
145
+ default: string;
137
146
  };
138
147
  defaultOpen: {
139
148
  type: import("vue").PropType<boolean>;
140
149
  default: boolean;
141
150
  };
151
+ onSearch: {
152
+ type: import("vue").PropType<(option: any, term: string) => boolean>;
153
+ default: () => true;
154
+ };
142
155
  keepOpen: {
143
156
  type: import("vue").PropType<boolean>;
144
157
  default: boolean;
@@ -151,21 +164,8 @@ declare const DropdownTypes: () => (({
151
164
  type: import("vue").PropType<boolean>;
152
165
  default: boolean;
153
166
  };
154
- isOnTop: {
155
- type: import("vue").PropType<boolean>;
156
- default: boolean;
157
- };
158
- inlineSearch: {
167
+ showSelectAll: {
159
168
  type: import("vue").PropType<boolean>;
160
- default: boolean;
161
- };
162
- onSearch: {
163
- type: import("vue").PropType<(option: any, term: string) => boolean>;
164
- default: () => true;
165
- };
166
- noResultsText: {
167
- type: import("vue").PropType<string>;
168
- default: string;
169
169
  };
170
170
  displayValue: {
171
171
  type: import("vue").PropType<(option: unknown) => string>;
@@ -198,12 +198,12 @@ declare const DropdownTypes: () => (({
198
198
  }>> & {
199
199
  onClear?: () => any;
200
200
  onApply?: (value: unknown) => any;
201
- onSelectAll?: () => any;
202
201
  "onUpdate:selected"?: (value: unknown) => any;
203
202
  "onUpdate:isOpen"?: (value: unknown) => any;
203
+ onSelectAll?: () => 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" | "valueToCopy" | "selected" | "placeholder" | "autoFocus" | "clearable" | "multi" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "inlineSearch" | "onSearch" | "noResultsText" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
206
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "error" | "skidding" | "modelValue" | "valueToCopy" | "selected" | "placeholder" | "autoFocus" | "clearable" | "multi" | "inlineSearch" | "isOnTop" | "noResultsText" | "defaultOpen" | "onSearch" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "searchPlaceholder" | "helperText" | "showButtonOnOpen" | "multiOptionsPlaceholderPrefix" | "multiOptionsPlaceholderSuffix" | "darkTheme">;
207
207
  $attrs: {
208
208
  [x: string]: unknown;
209
209
  };
@@ -308,13 +308,26 @@ declare const DropdownTypes: () => (({
308
308
  type: import("vue").PropType<boolean>;
309
309
  default: boolean;
310
310
  };
311
- showSelectAll: {
311
+ inlineSearch: {
312
+ type: import("vue").PropType<boolean>;
313
+ default: boolean;
314
+ };
315
+ isOnTop: {
312
316
  type: import("vue").PropType<boolean>;
317
+ default: boolean;
318
+ };
319
+ noResultsText: {
320
+ type: import("vue").PropType<string>;
321
+ default: string;
313
322
  };
314
323
  defaultOpen: {
315
324
  type: import("vue").PropType<boolean>;
316
325
  default: boolean;
317
326
  };
327
+ onSearch: {
328
+ type: import("vue").PropType<(option: any, term: string) => boolean>;
329
+ default: () => true;
330
+ };
318
331
  keepOpen: {
319
332
  type: import("vue").PropType<boolean>;
320
333
  default: boolean;
@@ -327,21 +340,8 @@ declare const DropdownTypes: () => (({
327
340
  type: import("vue").PropType<boolean>;
328
341
  default: boolean;
329
342
  };
330
- isOnTop: {
331
- type: import("vue").PropType<boolean>;
332
- default: boolean;
333
- };
334
- inlineSearch: {
343
+ showSelectAll: {
335
344
  type: import("vue").PropType<boolean>;
336
- default: boolean;
337
- };
338
- onSearch: {
339
- type: import("vue").PropType<(option: any, term: string) => boolean>;
340
- default: () => true;
341
- };
342
- noResultsText: {
343
- type: import("vue").PropType<string>;
344
- default: string;
345
345
  };
346
346
  displayValue: {
347
347
  type: import("vue").PropType<(option: unknown) => string>;
@@ -374,9 +374,9 @@ declare const DropdownTypes: () => (({
374
374
  }>> & {
375
375
  onClear?: () => any;
376
376
  onApply?: (value: unknown) => any;
377
- onSelectAll?: () => any;
378
377
  "onUpdate:selected"?: (value: unknown) => any;
379
378
  "onUpdate:isOpen"?: (value: unknown) => any;
379
+ onSelectAll?: () => any;
380
380
  onOpened?: () => any;
381
381
  onClosed?: () => any;
382
382
  }, {
@@ -411,14 +411,14 @@ declare const DropdownTypes: () => (({
411
411
  autoFocus: boolean;
412
412
  clearable: boolean;
413
413
  multi: boolean;
414
+ inlineSearch: boolean;
415
+ isOnTop: boolean;
416
+ noResultsText: string;
414
417
  defaultOpen: boolean;
418
+ onSearch: (option: any, term: string) => boolean;
415
419
  keepOpen: boolean;
416
420
  autoSize: boolean;
417
421
  disableKeyboardEvents: boolean;
418
- isOnTop: boolean;
419
- inlineSearch: boolean;
420
- onSearch: (option: any, term: string) => boolean;
421
- noResultsText: string;
422
422
  searchPlaceholder: string;
423
423
  helperText: string;
424
424
  showButtonOnOpen: boolean;
@@ -536,13 +536,26 @@ declare const DropdownTypes: () => (({
536
536
  type: import("vue").PropType<boolean>;
537
537
  default: boolean;
538
538
  };
539
- showSelectAll: {
539
+ inlineSearch: {
540
540
  type: import("vue").PropType<boolean>;
541
+ default: boolean;
542
+ };
543
+ isOnTop: {
544
+ type: import("vue").PropType<boolean>;
545
+ default: boolean;
546
+ };
547
+ noResultsText: {
548
+ type: import("vue").PropType<string>;
549
+ default: string;
541
550
  };
542
551
  defaultOpen: {
543
552
  type: import("vue").PropType<boolean>;
544
553
  default: boolean;
545
554
  };
555
+ onSearch: {
556
+ type: import("vue").PropType<(option: any, term: string) => boolean>;
557
+ default: () => true;
558
+ };
546
559
  keepOpen: {
547
560
  type: import("vue").PropType<boolean>;
548
561
  default: boolean;
@@ -555,21 +568,8 @@ declare const DropdownTypes: () => (({
555
568
  type: import("vue").PropType<boolean>;
556
569
  default: boolean;
557
570
  };
558
- isOnTop: {
559
- type: import("vue").PropType<boolean>;
560
- default: boolean;
561
- };
562
- inlineSearch: {
571
+ showSelectAll: {
563
572
  type: import("vue").PropType<boolean>;
564
- default: boolean;
565
- };
566
- onSearch: {
567
- type: import("vue").PropType<(option: any, term: string) => boolean>;
568
- default: () => true;
569
- };
570
- noResultsText: {
571
- type: import("vue").PropType<string>;
572
- default: string;
573
573
  };
574
574
  displayValue: {
575
575
  type: import("vue").PropType<(option: unknown) => string>;
@@ -602,9 +602,9 @@ declare const DropdownTypes: () => (({
602
602
  }>> & {
603
603
  onClear?: () => any;
604
604
  onApply?: (value: unknown) => any;
605
- onSelectAll?: () => any;
606
605
  "onUpdate:selected"?: (value: unknown) => any;
607
606
  "onUpdate:isOpen"?: (value: unknown) => any;
607
+ onSelectAll?: () => any;
608
608
  onOpened?: () => any;
609
609
  onClosed?: () => any;
610
610
  } & import("vue").ShallowUnwrapRef<{
@@ -705,13 +705,26 @@ declare const DropdownTypes: () => (({
705
705
  type: import("vue").PropType<boolean>;
706
706
  default: boolean;
707
707
  };
708
- showSelectAll: {
708
+ inlineSearch: {
709
709
  type: import("vue").PropType<boolean>;
710
+ default: boolean;
711
+ };
712
+ isOnTop: {
713
+ type: import("vue").PropType<boolean>;
714
+ default: boolean;
715
+ };
716
+ noResultsText: {
717
+ type: import("vue").PropType<string>;
718
+ default: string;
710
719
  };
711
720
  defaultOpen: {
712
721
  type: import("vue").PropType<boolean>;
713
722
  default: boolean;
714
723
  };
724
+ onSearch: {
725
+ type: import("vue").PropType<(option: any, term: string) => boolean>;
726
+ default: () => true;
727
+ };
715
728
  keepOpen: {
716
729
  type: import("vue").PropType<boolean>;
717
730
  default: boolean;
@@ -724,21 +737,8 @@ declare const DropdownTypes: () => (({
724
737
  type: import("vue").PropType<boolean>;
725
738
  default: boolean;
726
739
  };
727
- isOnTop: {
728
- type: import("vue").PropType<boolean>;
729
- default: boolean;
730
- };
731
- inlineSearch: {
740
+ showSelectAll: {
732
741
  type: import("vue").PropType<boolean>;
733
- default: boolean;
734
- };
735
- onSearch: {
736
- type: import("vue").PropType<(option: any, term: string) => boolean>;
737
- default: () => true;
738
- };
739
- noResultsText: {
740
- type: import("vue").PropType<string>;
741
- default: string;
742
742
  };
743
743
  displayValue: {
744
744
  type: import("vue").PropType<(option: unknown) => string>;
@@ -771,9 +771,9 @@ declare const DropdownTypes: () => (({
771
771
  }>> & {
772
772
  onClear?: () => any;
773
773
  onApply?: (value: unknown) => any;
774
- onSelectAll?: () => any;
775
774
  "onUpdate:selected"?: (value: unknown) => any;
776
775
  "onUpdate:isOpen"?: (value: unknown) => any;
776
+ onSelectAll?: () => any;
777
777
  onOpened?: () => any;
778
778
  onClosed?: () => any;
779
779
  }, {
@@ -808,14 +808,14 @@ declare const DropdownTypes: () => (({
808
808
  autoFocus: boolean;
809
809
  clearable: boolean;
810
810
  multi: boolean;
811
+ inlineSearch: boolean;
812
+ isOnTop: boolean;
813
+ noResultsText: string;
811
814
  defaultOpen: boolean;
815
+ onSearch: (option: any, term: string) => boolean;
812
816
  keepOpen: boolean;
813
817
  autoSize: boolean;
814
818
  disableKeyboardEvents: boolean;
815
- isOnTop: boolean;
816
- inlineSearch: boolean;
817
- onSearch: (option: any, term: string) => boolean;
818
- noResultsText: string;
819
819
  searchPlaceholder: string;
820
820
  helperText: string;
821
821
  showButtonOnOpen: boolean;
@@ -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.vue_vue_type_style_index_0_scoped_38354f10_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-38354f10"]]);
3
+ // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_5a645cc9_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5a645cc9"]]);
5
5
  export {
6
- s as default
6
+ c as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css"; import { defineComponent as k, ref as m, computed as y, watch as S, openBlock as $, createBlock as D, unref as t, withCtx as h, createElementVNode as p, mergeProps as d, createVNode as u, createTextVNode as O, toDisplayString as C, withDirectives as b, vShow as x, withModifiers as E } from "vue";
2
- import v from "../../icon/v4/IconV4.vue.js";
1
+ import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_5a645cc9_lang.css"; import { defineComponent as k, computed as p, ref as y, watch as S, openBlock as D, createBlock as E, unref as t, withCtx as h, createElementVNode as u, mergeProps as d, createVNode as f, createTextVNode as V, toDisplayString as C, withDirectives as O, vShow as x, withModifiers as U } from "vue";
2
+ import _ from "../../icon/v4/IconV4.vue.js";
3
3
  import "../../icon/v4/IconFlag.vue.js";
4
- import _ from "../../typography/v4/Typography.vue.js";
4
+ import v from "../../typography/v4/Typography.vue.js";
5
5
  import { DropdownTestIdModifiers as i } from "../../../testids/index.js";
6
- import { useTestIdAttrs as U } from "../../../utils/testIds.js";
6
+ import { useTestIdAttrs as L } from "../../../utils/testIds.js";
7
7
  import { isElementTruncated as F } from "../../../utils/text.js";
8
- import { promiseTimeout as L } from "@vueuse/core";
9
- import R from "../../tooltip/v4/TooltipV4.vue.js";
10
- const z = { class: "chip-trigger--icon" }, M = ["onClick"], W = /* @__PURE__ */ k({
8
+ import { promiseTimeout as R } from "@vueuse/core";
9
+ import z from "../../tooltip/v4/TooltipV4.vue.js";
10
+ const M = { class: "chip-trigger--icon" }, Q = ["aria-label", "onClick"], Y = /* @__PURE__ */ k({
11
11
  __name: "ChipDropdownTrigger",
12
12
  props: {
13
13
  label: { default: "Status" },
@@ -26,24 +26,26 @@ const z = { class: "chip-trigger--icon" }, M = ["onClick"], W = /* @__PURE__ */
26
26
  shownValuesCount: { default: 1 }
27
27
  },
28
28
  emits: ["clear"],
29
- setup(f, { emit: w }) {
30
- const e = f, A = () => {
29
+ setup(m, { emit: w }) {
30
+ const e = m, A = () => {
31
31
  w("clear");
32
- }, o = m(null), r = m(!0), T = m(!1), g = (l) => {
32
+ }, B = p(
33
+ () => e.label ? `Clear ${e.label} filter` : "Clear filter"
34
+ ), o = y(null), r = y(!0), T = y(!1), g = (l) => {
33
35
  let a = l;
34
- Array.isArray(l) && (l.length > 1 ? a = `${l.filter((I) => typeof I == "string").join(", ")}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
36
+ Array.isArray(l) && (l.length > 1 ? a = `${l.filter(($) => typeof $ == "string").join(", ")}` : a = l[0] ? `${l[0]}` : ""), r.value = !!a;
35
37
  let c = a;
36
38
  return e.displayValueInQuotes && (c = `"${a}"`), a ? `${e.label}: ${c}` : e.label;
37
- }, V = (l) => {
39
+ }, b = (l) => {
38
40
  if (Array.isArray(l) && l.length > 1) {
39
41
  const a = l[l.length - 1];
40
42
  if (typeof a == "number" && a > 0)
41
43
  return `, +${a}`;
42
44
  }
43
45
  return "";
44
- }, B = y(
46
+ }, N = p(
45
47
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
46
- ), n = U(e.testId, i), s = y(() => {
48
+ ), n = L(e.testId, i), s = p(() => {
47
49
  if (!e.multi)
48
50
  return e.selectedOption ? e.displayValue(e.selectedOption) : "";
49
51
  if (!Array.isArray(e.selectedOption))
@@ -58,60 +60,64 @@ const z = { class: "chip-trigger--icon" }, M = ["onClick"], W = /* @__PURE__ */
58
60
  return [...l, a];
59
61
  });
60
62
  S([() => e.selectedOption, o], async () => {
61
- await L(100), T.value = o.value && F(o.value);
63
+ await R(100), T.value = o.value && F(o.value);
62
64
  });
63
- const N = y(() => T.value ? `${g(s.value)}${V(
65
+ const I = p(() => T.value ? `${g(s.value)}${b(
64
66
  s.value
65
67
  )}` : "");
66
- return (l, a) => ($(), D(t(R), {
67
- text: t(N),
68
+ return (l, a) => (D(), E(t(z), {
69
+ text: t(I),
68
70
  class: "tooltip-option",
69
71
  placement: "top"
70
72
  }, {
71
73
  default: h(() => [
72
- p("div", d({
73
- class: ["chip-trigger", [t(B), { active: r.value, disabled: f.disabled, open: f.open }]]
74
+ u("div", d({
75
+ class: ["chip-trigger", [t(N), { active: r.value, disabled: m.disabled, open: m.open }]]
74
76
  }, t(n)[t(i).BUTTON]), [
75
- p("div", {
77
+ u("div", {
76
78
  ref_key: "textContainerRef",
77
79
  ref: o,
78
80
  class: "chip-trigger--content"
79
81
  }, [
80
- u(t(_), d({
82
+ f(t(v), d({
81
83
  class: "chip-trigger--text",
82
84
  variant: "chipLabel"
83
85
  }, t(n)[t(i).BUTTON_CONTENT]), {
84
86
  default: h(() => [
85
- O(C(g(t(s))), 1)
87
+ V(C(g(t(s))), 1)
86
88
  ]),
87
89
  _: 1
88
90
  }, 16),
89
- u(t(_), d({
91
+ f(t(v), d({
90
92
  class: "chip-trigger--suffix",
91
93
  variant: "chipLabel"
92
94
  }, t(n)[t(i).BUTTON_CONTENT_SUFFIX]), {
93
95
  default: h(() => [
94
- O(C(V(t(s))), 1)
96
+ V(C(b(t(s))), 1)
95
97
  ]),
96
98
  _: 1
97
99
  }, 16),
98
- b(p("div", z, [
99
- u(t(v), {
100
+ O(u("div", M, [
101
+ f(t(_), {
100
102
  name: "caret-down",
101
103
  size: "16px"
102
104
  })
103
105
  ], 512), [
104
106
  [x, !r.value]
105
107
  ]),
106
- b(p("div", d({ class: "x-circle-wrapper" }, t(n)[t(i).BUTTON_CLEAR], {
107
- onClick: E(A, ["stop"])
108
+ O(u("button", d({
109
+ type: "button",
110
+ class: "x-circle-wrapper",
111
+ "aria-label": t(B)
112
+ }, t(n)[t(i).BUTTON_CLEAR], {
113
+ onClick: U(A, ["stop"])
108
114
  }), [
109
- u(t(v), {
115
+ f(t(_), {
110
116
  name: "x-circle",
111
117
  size: "16px",
112
118
  type: "fill"
113
119
  })
114
- ], 16, M), [
120
+ ], 16, Q), [
115
121
  [x, r.value]
116
122
  ])
117
123
  ], 512)
@@ -122,5 +128,5 @@ const z = { class: "chip-trigger--icon" }, M = ["onClick"], W = /* @__PURE__ */
122
128
  }
123
129
  });
124
130
  export {
125
- W as default
131
+ Y as default
126
132
  };
@@ -101,7 +101,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
101
101
  label: string;
102
102
  testId: string;
103
103
  isOpen: boolean;
104
- infiniteLoading: boolean;
105
104
  triggerShownValuesCount: number;
106
105
  optionNameKey: string;
107
106
  optionIconKey: string;
@@ -110,6 +109,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
110
109
  optionFlagKey: string;
111
110
  groupedOptions: boolean;
112
111
  comparingKey: string;
112
+ infiniteLoading: boolean;
113
113
  minCharsToStart: number;
114
114
  searchQuery: string;
115
115
  loadMoreFn: () => Promise<any[]>;