@ironsource/shared-ui 2.1.6-rc.4 → 2.1.6-rc.40

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 (149) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_a9f0dfcc_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
  4. package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
  5. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
  6. package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
  8. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
  9. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
  10. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  11. package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
  12. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
  13. package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
  14. package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
  15. package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
  16. package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
  17. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
  19. package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
  20. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  21. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
  22. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  23. package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
  24. package/components/alert/Alert.vue.d.ts +7 -0
  25. package/components/alert/Alert.vue.js +3 -3
  26. package/components/alert/Alert.vue2.js +44 -40
  27. package/components/alert/index.d.ts +27 -2
  28. package/components/appHeader/AppHeader.vue.d.ts +6 -2
  29. package/components/appHeader/AppHeader.vue.js +2 -2
  30. package/components/appHeader/AppHeader.vue2.js +30 -28
  31. package/components/appHeader/index.d.ts +6 -2
  32. package/components/autocomplete/Autocomplete.vue.d.ts +6 -0
  33. package/components/autocomplete/Autocomplete.vue.js +2 -2
  34. package/components/autocomplete/Autocomplete.vue2.js +45 -37
  35. package/components/autocomplete/index.d.ts +21 -1
  36. package/components/button/v4/ButtonV4.vue.d.ts +7 -7
  37. package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
  38. package/components/button/v4/index.d.ts +61 -61
  39. package/components/chip/v4/Chip.types.d.ts +6 -0
  40. package/components/chip/v4/ChipV4.vue.d.ts +28 -35
  41. package/components/chip/v4/ChipV4.vue.js +3 -3
  42. package/components/chip/v4/ChipV4.vue2.js +28 -59
  43. package/components/chip/v4/index.d.ts +45 -148
  44. package/components/dialog/v3/Dialog.vue.d.ts +1 -1
  45. package/components/dialog/v3/index.d.ts +20 -20
  46. package/components/dialog/v4/DialogV4.vue.js +3 -3
  47. package/components/dialog/v4/DialogV4.vue2.js +67 -62
  48. package/components/dropdown/common/Dropdown.common.js +74 -69
  49. package/components/dropdown/common/Option.common.d.ts +1 -1
  50. package/components/dropdown/common/Option.common.js +9 -9
  51. package/components/dropdown/composables/useChildOptions.d.ts +7 -0
  52. package/components/dropdown/composables/useChildOptions.js +14 -0
  53. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  54. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  55. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  56. package/components/dropdown/v3/index.d.ts +13 -1
  57. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +16 -3
  58. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  59. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
  60. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
  61. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
  62. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
  63. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  64. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
  65. package/components/dropdown/v4/DropdownV4.vue.d.ts +35 -3
  66. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  67. package/components/dropdown/v4/DropdownV4.vue2.js +127 -114
  68. package/components/dropdown/v4/OptionV4.vue.d.ts +14 -3
  69. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  70. package/components/dropdown/v4/OptionV4.vue2.js +79 -56
  71. package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
  72. package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
  73. package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
  74. package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
  75. package/components/dropdown/v4/index.d.ts +422 -38
  76. package/components/dropdown/v4/index.js +7 -4
  77. package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
  78. package/components/emptyState/v3/index.d.ts +47 -47
  79. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
  80. package/components/emptyState/v4/index.d.ts +7 -7
  81. package/components/forms/FormCard.vue.js +2 -2
  82. package/components/forms/FormCard.vue2.js +9 -9
  83. package/components/icon/v4/Icon.types.d.ts +1 -1
  84. package/components/icon/v4/IconV4.vue.d.ts +16 -6
  85. package/components/icon/v4/IconV4.vue.js +4 -4
  86. package/components/icon/v4/IconV4.vue2.js +36 -33
  87. package/components/icon/v4/index.d.ts +53 -15
  88. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  89. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  90. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  91. package/components/inlineCopy/index.d.ts +6 -2
  92. package/components/input/v4/TextField.vue.d.ts +5 -0
  93. package/components/input/v4/TextField.vue.js +3 -3
  94. package/components/input/v4/TextField.vue2.js +24 -21
  95. package/components/input/v4/index.d.ts +20 -1
  96. package/components/layout/FoldableSection.vue.js +5 -5
  97. package/components/layout/FoldableSection.vue2.js +1 -1
  98. package/components/multibar/MultiBarMenu.vue2.js +12 -11
  99. package/components/shared/FieldLabel.vue.js +3 -3
  100. package/components/shared/FieldLabel.vue2.js +9 -9
  101. package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
  102. package/components/table/common/Table.common.d.ts +1 -0
  103. package/components/table/common/Table.common.js +65 -61
  104. package/components/table/v4/DataGrid.vue.d.ts +9 -1
  105. package/components/table/v4/DataGrid.vue.js +3 -3
  106. package/components/table/v4/DataGrid.vue2.js +180 -176
  107. package/components/table/v4/DataGridMenu.vue2.js +3 -2
  108. package/components/table/v4/HelpIcon.vue.js +5 -5
  109. package/components/table/v4/HelpIcon.vue2.js +5 -5
  110. package/components/table/v4/index.d.ts +29 -5
  111. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  112. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  113. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  114. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  115. package/components/toggle/v4/ToggleV4.vue2.js +12 -12
  116. package/components/toggle/v4/index.d.ts +20 -20
  117. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  118. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  119. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  120. package/components/tooltip/v4/index.d.ts +17 -5
  121. package/composables/useFormValidation.js +19 -13
  122. package/design-foundation.stories/icons/iconsData.d.ts +5 -1
  123. package/index.d.ts +1451 -688
  124. package/mocks/apps.d.ts +1 -0
  125. package/mocks/options.d.ts +12 -0
  126. package/package.json +1 -1
  127. package/utils/text.d.ts +1 -0
  128. package/utils/text.js +9 -0
  129. package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
  130. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  131. package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
  132. package/Autocomplete.vue_vue_type_style_index_0_scoped_62faa8e0_lang.css +0 -1
  133. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
  134. package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
  135. package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
  136. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
  137. package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
  138. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  139. package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
  140. package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
  141. package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
  142. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
  143. package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
  144. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  145. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  146. package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
  147. package/TextField.vue_vue_type_style_index_0_scoped_07687bcc_lang.css +0 -1
  148. package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
  149. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
@@ -196,7 +196,9 @@ declare const DropdownTypes: () => (({
196
196
  default: boolean;
197
197
  };
198
198
  }>> & {
199
+ onClear?: () => any;
199
200
  onApply?: (value: unknown) => any;
201
+ onSelectAll?: () => any;
200
202
  "onUpdate:selected"?: (value: unknown) => any;
201
203
  "onUpdate:isOpen"?: (value: unknown) => any;
202
204
  onOpened?: () => any;
@@ -213,7 +215,7 @@ declare const DropdownTypes: () => (({
213
215
  }>;
214
216
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
215
217
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
216
- $emit: ((event: "apply", value: unknown) => void) & ((event: "update:selected", value: unknown) => void) & ((event: "update:isOpen", value: unknown) => void) & ((event: "opened") => void) & ((event: "closed") => void);
218
+ $emit: ((event: "clear") => void) & ((event: "apply", value: unknown) => void) & ((event: "update:selected", value: unknown) => void) & ((event: "update:isOpen", value: unknown) => void) & ((event: "selectAll") => void) & ((event: "opened") => void) & ((event: "closed") => void);
217
219
  $el: any;
218
220
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
219
221
  title: {
@@ -370,7 +372,9 @@ declare const DropdownTypes: () => (({
370
372
  default: boolean;
371
373
  };
372
374
  }>> & {
375
+ onClear?: () => any;
373
376
  onApply?: (value: unknown) => any;
377
+ onSelectAll?: () => any;
374
378
  "onUpdate:selected"?: (value: unknown) => any;
375
379
  "onUpdate:isOpen"?: (value: unknown) => any;
376
380
  onOpened?: () => any;
@@ -384,6 +388,8 @@ declare const DropdownTypes: () => (({
384
388
  closed: () => void;
385
389
  opened: () => void;
386
390
  apply: (value: unknown) => void;
391
+ selectAll: () => void;
392
+ clear: () => void;
387
393
  }, string, {
388
394
  title: string;
389
395
  theme: string;
@@ -594,7 +600,9 @@ declare const DropdownTypes: () => (({
594
600
  default: boolean;
595
601
  };
596
602
  }>> & {
603
+ onClear?: () => any;
597
604
  onApply?: (value: unknown) => any;
605
+ onSelectAll?: () => any;
598
606
  "onUpdate:selected"?: (value: unknown) => any;
599
607
  "onUpdate:isOpen"?: (value: unknown) => any;
600
608
  onOpened?: () => any;
@@ -761,7 +769,9 @@ declare const DropdownTypes: () => (({
761
769
  default: boolean;
762
770
  };
763
771
  }>> & {
772
+ onClear?: () => any;
764
773
  onApply?: (value: unknown) => any;
774
+ onSelectAll?: () => any;
765
775
  "onUpdate:selected"?: (value: unknown) => any;
766
776
  "onUpdate:isOpen"?: (value: unknown) => any;
767
777
  onOpened?: () => any;
@@ -775,6 +785,8 @@ declare const DropdownTypes: () => (({
775
785
  closed: () => void;
776
786
  opened: () => void;
777
787
  apply: (value: unknown) => void;
788
+ selectAll: () => void;
789
+ clear: () => void;
778
790
  }, string, {
779
791
  title: string;
780
792
  theme: string;
@@ -17,7 +17,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
17
  optionNameKey?: string;
18
18
  optionImageKey?: string;
19
19
  optionIconKey?: string;
20
- optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
20
+ optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
21
+ optionEndIconKey?: string;
22
+ optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
21
23
  }>, {
22
24
  placeholder: string;
23
25
  selectedOption: any;
@@ -41,8 +43,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
41
43
  optionImageKey: any;
42
44
  optionIconKey: any;
43
45
  optionIconType: any;
46
+ optionEndIconKey: any;
47
+ optionEndIconType: any;
44
48
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
49
  click: () => void;
50
+ copyToClipboard: () => void;
46
51
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
47
52
  placeholder?: string;
48
53
  selectedOption?: unknown;
@@ -62,7 +67,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
62
67
  optionNameKey?: string;
63
68
  optionImageKey?: string;
64
69
  optionIconKey?: string;
65
- optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
70
+ optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
71
+ optionEndIconKey?: string;
72
+ optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
66
73
  }>, {
67
74
  placeholder: string;
68
75
  selectedOption: any;
@@ -86,8 +93,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
86
93
  optionImageKey: any;
87
94
  optionIconKey: any;
88
95
  optionIconType: any;
96
+ optionEndIconKey: any;
97
+ optionEndIconType: any;
89
98
  }>>> & {
90
99
  onClick?: () => any;
100
+ onCopyToClipboard?: () => any;
91
101
  }, {
92
102
  label: string;
93
103
  disabled: boolean;
@@ -103,13 +113,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
103
113
  optionNameKey: string;
104
114
  optionIconKey: string;
105
115
  optionImageKey: string;
106
- optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
116
+ optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
117
+ optionEndIconKey: string;
118
+ optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
107
119
  valueToCopy: string;
108
120
  selectedOption: any;
109
121
  brandIconType: "android" | "ios";
110
122
  }>, {
111
123
  image?(_: {}): any;
112
124
  "icon-start"?(_: {}): any;
125
+ "icon-end"?(_: {}): any;
113
126
  }>;
114
127
  export default _default;
115
128
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./AppDropdownTrigger.vue2.js";
2
- /* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css"; //*');
4
- const s = /* @__PURE__ */ p(o, [["__scopeId", "data-v-0267d003"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-858cefbf"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,21 +1,25 @@
1
- import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css"; import { defineComponent as V, computed as p, openBlock as o, createElementBlock as n, normalizeClass as B, createElementVNode as a, mergeProps as h, unref as l, renderSlot as O, createCommentVNode as i, createVNode as s, withCtx as v, toDisplayString as $ } from "vue";
1
+ import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css"; import { defineComponent as B, computed as y, ref as O, watch as w, nextTick as z, openBlock as a, createElementBlock as i, normalizeClass as N, createElementVNode as d, mergeProps as C, unref as t, renderSlot as f, createCommentVNode as c, createVNode as s, withCtx as m, toDisplayString as S } from "vue";
2
2
  import r from "../../icon/v4/IconV4.vue.js";
3
- import x from "../../typography/v4/Typography.vue.js";
4
- import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
5
- import { useTestIdAttrs as K } from "../../../utils/testIds.js";
6
- import N from "../../tooltip/v4/TooltipV4.vue.js";
7
- import { useClipboard as w } from "@vueuse/core";
8
- import { Snackbar as z } from "../../snackbar/v4/index.js";
9
- const S = { class: "app-trigger--content" }, D = {
3
+ import D from "../../typography/v4/Typography.vue.js";
4
+ import { DropdownTestIdModifiers as g } from "../../../testids/index.js";
5
+ import { useTestIdAttrs as R } from "../../../utils/testIds.js";
6
+ import b from "../../tooltip/v4/TooltipV4.vue.js";
7
+ import { useClipboard as P } from "@vueuse/core";
8
+ import { Snackbar as U } from "../../snackbar/v4/index.js";
9
+ import { isElementTruncated as L } from "../../../utils/text.js";
10
+ const M = { class: "app-trigger--content" }, W = {
10
11
  key: 0,
11
12
  class: "image"
12
- }, E = ["src"], P = {
13
+ }, j = ["src"], q = {
13
14
  key: 1,
14
15
  class: "start-icon"
15
- }, R = { class: "label-text" }, U = { key: 0 }, L = { class: "text-content" }, M = { class: "text-content-value" }, W = {
16
+ }, F = { class: "label-text" }, G = { key: 0 }, H = { class: "text-content" }, J = {
16
17
  key: 0,
17
18
  class: "is-mandatory"
18
- }, j = { class: "app-trigger-key--content" }, _ = /* @__PURE__ */ V({
19
+ }, Q = {
20
+ key: 2,
21
+ class: "end-icon"
22
+ }, X = { class: "app-trigger-key--content" }, se = /* @__PURE__ */ B({
19
23
  __name: "AppDropdownTrigger",
20
24
  props: {
21
25
  placeholder: { default: "Select app" },
@@ -36,97 +40,134 @@ const S = { class: "app-trigger--content" }, D = {
36
40
  optionNameKey: { default: null },
37
41
  optionImageKey: { default: null },
38
42
  optionIconKey: { default: null },
39
- optionIconType: { default: null }
43
+ optionIconType: { default: null },
44
+ optionEndIconKey: { default: null },
45
+ optionEndIconType: { default: null }
40
46
  },
41
- emits: ["click"],
42
- setup(t, { emit: T }) {
43
- const e = t, { copy: k, copied: C } = w({}), I = p(
47
+ emits: ["click", "copyToClipboard"],
48
+ setup(o, { emit: T }) {
49
+ const e = o, { copy: x, copied: K } = P({}), A = y(
44
50
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
45
- ), b = () => {
51
+ ), $ = () => {
46
52
  T("click");
47
- }, y = K(e.testId, u), f = "All apps selected", m = p(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `${f} (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = p(() => {
53
+ }, v = R(e.testId, g), h = "All apps selected", p = y(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `${h} (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), n = y(() => {
48
54
  if (!e.selectedOption)
49
55
  return null;
50
56
  if (!e.multi)
51
57
  return e.selectedOption;
52
58
  if (Array.isArray(e.selectedOption))
53
59
  return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
54
- }), A = async () => {
55
- await k(e.valueToCopy), C.value && z({
60
+ }), E = async () => {
61
+ await x(e.valueToCopy), K.value && (U({
56
62
  title: "Copied successfully",
57
63
  type: "success",
58
64
  duration: 2e3
59
- });
65
+ }), T("copyToClipboard"));
66
+ }, k = O(""), u = O(null);
67
+ w(
68
+ [p, () => e.open],
69
+ async () => {
70
+ await z(), V();
71
+ },
72
+ {
73
+ immediate: !0
74
+ }
75
+ );
76
+ const V = () => {
77
+ const l = u.value && L(u.value);
78
+ k.value = l && !e.open ? p.value : "";
60
79
  };
61
- return (c, g) => (o(), n("div", {
62
- class: B(["app-trigger-wrapper", { "with-copy": !!t.valueToCopy }])
80
+ return (l, I) => (a(), i("div", {
81
+ class: N(["app-trigger-wrapper", { "with-copy": !!o.valueToCopy }])
63
82
  }, [
64
- a("div", h({
65
- class: ["app-trigger", [t.size, l(I), { open: t.open, disabled: t.disabled }]],
83
+ d("div", C({
84
+ class: ["app-trigger", [o.size, t(A), { open: o.open, disabled: o.disabled }]],
66
85
  style: {
67
- paddingLeft: c.$slots.image || l(d) && t.optionImageKey ? "8px" : "12px"
86
+ paddingLeft: l.$slots.image || t(n) && o.optionImageKey ? "8px" : "12px"
68
87
  }
69
- }, l(y)[l(u).BUTTON_WRAPPER], {
70
- onClick: g[0] || (g[0] = (q) => b())
88
+ }, t(v)[t(g).BUTTON_WRAPPER], {
89
+ onClick: I[0] || (I[0] = (Y) => $())
71
90
  }), [
72
- a("div", S, [
73
- c.$slots.image || l(d) && t.optionImageKey ? (o(), n("div", D, [
74
- O(c.$slots, "image", {}, () => [
75
- t.optionImageKey ? (o(), n("img", {
91
+ d("div", M, [
92
+ l.$slots.image || t(n) && o.optionImageKey ? (a(), i("div", W, [
93
+ f(l.$slots, "image", {}, () => [
94
+ o.optionImageKey ? (a(), i("img", {
76
95
  key: 0,
77
- src: l(d)[t.optionImageKey]
78
- }, null, 8, E)) : i("", !0)
96
+ src: t(n)[o.optionImageKey]
97
+ }, null, 8, j)) : c("", !0)
79
98
  ], !0)
80
- ])) : i("", !0),
81
- c.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), n("div", P, [
82
- O(c.$slots, "icon-start", {}, () => [
83
- s(l(r), {
84
- type: t.optionIconType,
85
- name: l(d)[t.optionIconKey],
99
+ ])) : c("", !0),
100
+ l.$slots["icon-start"] || t(n) && o.optionIconKey ? (a(), i("div", q, [
101
+ f(l.$slots, "icon-start", {}, () => [
102
+ s(t(r), {
103
+ type: o.optionIconType,
104
+ name: t(n)[o.optionIconKey],
86
105
  size: "20px"
87
106
  }, null, 8, ["type", "name"])
88
107
  ], !0)
89
- ])) : i("", !0),
90
- s(l(x), h({ variant: "button" }, l(y)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
91
- default: v(() => [
92
- a("div", R, [
93
- l(m) === f ? (o(), n("span", U, [
94
- s(l(r), {
108
+ ])) : c("", !0),
109
+ s(t(D), C({ variant: "button" }, t(v)[t(g).BUTTON_CONTENT], { class: "displayed-value" }), {
110
+ default: m(() => [
111
+ d("div", F, [
112
+ t(p) === h ? (a(), i("span", G, [
113
+ s(t(r), {
95
114
  name: "cube",
96
115
  size: "20px",
97
116
  type: "fill"
98
117
  })
99
- ])) : i("", !0),
100
- a("div", L, [
101
- a("div", M, $(l(m)), 1),
102
- t.mandatory && (Array.isArray(t.selectedOption) ? !t.selectedOption.length : !t.selectedOption) ? (o(), n("span", W, "*")) : i("", !0)
118
+ ])) : c("", !0),
119
+ d("div", H, [
120
+ s(t(b), {
121
+ text: k.value,
122
+ placement: "bottom",
123
+ class: "value-tooltip"
124
+ }, {
125
+ default: m(() => [
126
+ d("div", {
127
+ ref_key: "textContainerRef",
128
+ ref: u,
129
+ class: "text-content-value"
130
+ }, S(t(p)), 513)
131
+ ]),
132
+ _: 1
133
+ }, 8, ["text"]),
134
+ o.mandatory && (Array.isArray(o.selectedOption) ? !o.selectedOption.length : !o.selectedOption) ? (a(), i("span", J, "*")) : c("", !0)
103
135
  ])
104
136
  ])
105
137
  ]),
106
138
  _: 1
107
- }, 16)
139
+ }, 16),
140
+ l.$slots["icon-end"] || t(n) && o.optionEndIconKey && t(n)[o.optionEndIconKey] ? (a(), i("div", Q, [
141
+ f(l.$slots, "icon-end", {}, () => [
142
+ s(t(r), {
143
+ type: o.optionEndIconType,
144
+ name: t(n)[o.optionEndIconKey],
145
+ size: "24px"
146
+ }, null, 8, ["type", "name"])
147
+ ], !0)
148
+ ])) : c("", !0)
108
149
  ]),
109
- a("div", null, [
110
- s(l(r), {
150
+ d("div", null, [
151
+ s(t(r), {
111
152
  name: "caret-down",
112
153
  size: "20px",
113
154
  class: "app-trigger--icon"
114
155
  })
115
156
  ])
116
157
  ], 16),
117
- t.valueToCopy ? (o(), n("div", {
158
+ o.valueToCopy ? (a(), i("div", {
118
159
  key: 0,
119
160
  class: "app-trigger-key",
120
- onClick: A
161
+ onClick: E
121
162
  }, [
122
- s(l(N), {
123
- text: t.valueToCopy,
163
+ s(t(b), {
164
+ text: o.valueToCopy,
124
165
  header: "Copy app key",
125
166
  placement: "bottom"
126
167
  }, {
127
- default: v(() => [
128
- a("div", j, [
129
- s(l(r), {
168
+ default: m(() => [
169
+ d("div", X, [
170
+ s(t(r), {
130
171
  name: "copy",
131
172
  size: "20px"
132
173
  })
@@ -134,10 +175,10 @@ const S = { class: "app-trigger--content" }, D = {
134
175
  ]),
135
176
  _: 1
136
177
  }, 8, ["text"])
137
- ])) : i("", !0)
178
+ ])) : c("", !0)
138
179
  ], 2));
139
180
  }
140
181
  });
141
182
  export {
142
- _ as default
183
+ se as default
143
184
  };
@@ -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_889042cf_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-889042cf"]]);
3
+ // import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a8fdae89"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css"; import { defineComponent as V, ref as b, computed as p, openBlock as _, createElementBlock as C, mergeProps as s, unref as t, createElementVNode as c, createVNode as d, withCtx as w, createTextVNode as k, toDisplayString as v, withDirectives as u, vShow as f, withModifiers as x } from "vue";
1
+ import "../../../ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css"; import { defineComponent as V, ref as b, computed as p, openBlock as _, createElementBlock as C, mergeProps as s, unref as t, createElementVNode as c, createVNode as d, withCtx as w, createTextVNode as k, toDisplayString as v, withDirectives as u, vShow as f, withModifiers as x } from "vue";
2
2
  import m from "../../icon/v4/IconV4.vue.js";
3
3
  import A from "../../typography/v4/Typography.vue.js";
4
4
  import { DropdownTestIdModifiers as o } from "../../../testids/index.js";
@@ -21,7 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
21
  optionNameKey?: string;
22
22
  optionImageKey?: string;
23
23
  optionIconKey?: string;
24
- optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
24
+ optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
25
+ showAllSelectedText?: boolean;
25
26
  statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
26
27
  }>, {
27
28
  placeholder: string;
@@ -46,6 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
46
47
  optionImageKey: any;
47
48
  optionIconKey: any;
48
49
  optionIconType: any;
50
+ showAllSelectedText: boolean;
49
51
  statusDotType: any;
50
52
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
53
  click: () => void;
@@ -72,7 +74,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
72
74
  optionNameKey?: string;
73
75
  optionImageKey?: string;
74
76
  optionIconKey?: string;
75
- optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
77
+ optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
78
+ showAllSelectedText?: boolean;
76
79
  statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
77
80
  }>, {
78
81
  placeholder: string;
@@ -97,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
97
100
  optionImageKey: any;
98
101
  optionIconKey: any;
99
102
  optionIconType: any;
103
+ showAllSelectedText: boolean;
100
104
  statusDotType: any;
101
105
  }>>> & {
102
106
  onClick?: () => any;
@@ -119,10 +123,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
119
123
  optionNameKey: string;
120
124
  optionIconKey: string;
121
125
  optionImageKey: string;
122
- optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
126
+ optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
123
127
  selectedOption: any;
124
128
  showFeedbackIcon: boolean;
125
129
  brandIconType: "android" | "ios";
130
+ showAllSelectedText: boolean;
126
131
  statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
127
132
  }>, {
128
133
  image?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./DefaultDropdownTrigger.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c9783327"]]);
3
+ // import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0345d6b1"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,17 +1,17 @@
1
- import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css"; import { defineComponent as v, computed as r, openBlock as o, createElementBlock as a, createBlock as k, createCommentVNode as n, createElementVNode as c, mergeProps as m, unref as l, renderSlot as y, createVNode as i, withCtx as I, createTextVNode as B, toDisplayString as V } from "vue";
2
- import x from "../../typography/v4/Typography.vue.js";
1
+ import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css"; import { defineComponent as v, computed as r, openBlock as o, createElementBlock as a, createBlock as k, createCommentVNode as n, createElementVNode as c, mergeProps as y, unref as l, renderSlot as m, createVNode as i, withCtx as I, createTextVNode as x, toDisplayString as B } from "vue";
2
+ import w from "../../typography/v4/Typography.vue.js";
3
3
  import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
4
4
  import h from "../../icon/v4/IconV4.vue.js";
5
- import w from "../../shared/FieldLabel.vue.js";
6
- import { useTestIdAttrs as D } from "../../../utils/testIds.js";
7
- import A from "../../statusDot/StatusDot.vue.js";
5
+ import V from "../../shared/FieldLabel.vue.js";
6
+ import { useTestIdAttrs as A } from "../../../utils/testIds.js";
7
+ import D from "../../statusDot/StatusDot.vue.js";
8
8
  const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
9
9
  key: 0,
10
10
  class: "image"
11
- }, C = ["src"], P = {
11
+ }, C = ["src"], S = {
12
12
  key: 1,
13
13
  class: "start-icon"
14
- }, S = {
14
+ }, P = {
15
15
  key: 2,
16
16
  class: "status-dot"
17
17
  }, z = { class: "caret-down" }, j = /* @__PURE__ */ v({
@@ -40,15 +40,16 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
40
40
  optionImageKey: { default: null },
41
41
  optionIconKey: { default: null },
42
42
  optionIconType: { default: null },
43
+ showAllSelectedText: { type: Boolean, default: !0 },
43
44
  statusDotType: { default: null }
44
45
  },
45
46
  emits: ["click"],
46
- setup(t, { emit: g }) {
47
- const e = t, T = r(
47
+ setup(t, { emit: T }) {
48
+ const e = t, g = r(
48
49
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
49
50
  ), b = () => {
50
- g("click");
51
- }, p = D(e.testId, u), O = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = r(() => {
51
+ T("click");
52
+ }, p = A(e.testId, u), O = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.options?.length === e.selectedOption.length ? `All selected (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), d = r(() => {
52
53
  if (!e.selectedOption)
53
54
  return null;
54
55
  if (!e.multi)
@@ -57,7 +58,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
57
58
  return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
58
59
  });
59
60
  return (s, f) => (o(), a("div", N, [
60
- t.label ? (o(), k(w, {
61
+ t.label ? (o(), k(V, {
61
62
  key: 0,
62
63
  label: t.label,
63
64
  mandatory: t.mandatory,
@@ -67,22 +68,22 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
67
68
  "test-id": t.testId,
68
69
  class: "dropdown-field-label"
69
70
  }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
70
- c("div", m({
71
- class: ["dropdown-trigger", [t.size, l(T), { open: t.open, disabled: t.disabled }]]
71
+ c("div", y({
72
+ class: ["dropdown-trigger", [t.size, l(g), { open: t.open, disabled: t.disabled }]]
72
73
  }, l(p)[l(u).BUTTON_WRAPPER], {
73
74
  onClick: f[0] || (f[0] = (E) => b())
74
75
  }), [
75
76
  c("div", K, [
76
77
  s.$slots.image || l(d) && t.optionImageKey ? (o(), a("div", $, [
77
- y(s.$slots, "image", {}, () => [
78
+ m(s.$slots, "image", {}, () => [
78
79
  t.optionImageKey ? (o(), a("img", {
79
80
  key: 0,
80
81
  src: l(d)[t.optionImageKey]
81
82
  }, null, 8, C)) : n("", !0)
82
83
  ], !0)
83
84
  ])) : n("", !0),
84
- s.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), a("div", P, [
85
- y(s.$slots, "icon-start", {}, () => [
85
+ s.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), a("div", S, [
86
+ m(s.$slots, "icon-start", {}, () => [
86
87
  i(l(h), {
87
88
  type: t.optionIconType,
88
89
  name: l(d)[t.optionIconKey],
@@ -90,12 +91,12 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
90
91
  }, null, 8, ["type", "name"])
91
92
  ], !0)
92
93
  ])) : n("", !0),
93
- t.statusDotType ? (o(), a("div", S, [
94
- i(l(A), { type: t.statusDotType }, null, 8, ["type"])
94
+ t.statusDotType ? (o(), a("div", P, [
95
+ i(l(D), { type: t.statusDotType }, null, 8, ["type"])
95
96
  ])) : n("", !0),
96
- i(l(x), m({ variant: "body1" }, l(p)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
97
+ i(l(w), y({ variant: "body1" }, l(p)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
97
98
  default: I(() => [
98
- B(V(l(O)), 1)
99
+ x(B(l(O)), 1)
99
100
  ]),
100
101
  _: 1
101
102
  }, 16)