@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.50

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 (191) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  5. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  7. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  8. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_27802170_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  11. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  12. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
  13. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  14. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  15. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  16. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  17. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  18. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  19. package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
  20. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
  21. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
  22. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  23. package/README.md +4 -15
  24. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  25. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
  26. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  27. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  28. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  29. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  30. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
  31. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  32. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  33. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  34. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
  35. package/components/autocomplete/Autocomplete.vue2.js +3 -2
  36. package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
  37. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  38. package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
  39. package/components/button/v4/index.d.ts +9 -3
  40. package/components/chart/Chart.vue.d.ts +16 -3
  41. package/components/chart/Chart.vue.js +5 -5
  42. package/components/chart/Chart.vue2.js +127 -110
  43. package/components/chart/ChartHeader.vue.d.ts +13 -6
  44. package/components/chart/ChartHeader.vue.js +2 -2
  45. package/components/chart/ChartHeader.vue2.js +32 -29
  46. package/components/chart/ChartLegend.vue.d.ts +5 -0
  47. package/components/chart/ChartLegend.vue.js +3 -3
  48. package/components/chart/ChartLegend.vue2.js +99 -49
  49. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  50. package/components/chart/ChartTooltip.vue.js +2 -2
  51. package/components/chart/ChartTooltip.vue2.js +64 -43
  52. package/components/chart/SettingsHeader.vue2.js +3 -2
  53. package/components/chart/index.d.ts +55 -16
  54. package/components/chart/mockData.d.ts +15 -2
  55. package/components/chart/types.d.ts +15 -1
  56. package/components/chart/utils/utils.js +5 -5
  57. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  58. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  59. package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
  60. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  61. package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
  62. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  63. package/components/dialog/v4/DialogV4.vue.js +3 -3
  64. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  65. package/components/dialog/v4/index.d.ts +58 -1
  66. package/components/dropdown/common/Dropdown.common.js +200 -189
  67. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  68. package/components/dropdown/v3/index.d.ts +39 -39
  69. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  70. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  71. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  72. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  73. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  74. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
  75. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  76. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  77. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
  78. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +110 -0
  79. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  80. package/components/dropdown/v4/ConditionalDropdown.vue2.js +224 -0
  81. package/components/dropdown/v4/DropdownV4.vue.d.ts +32 -11
  82. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  83. package/components/dropdown/v4/DropdownV4.vue2.js +153 -138
  84. package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
  85. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  86. package/components/dropdown/v4/OptionV4.vue2.js +135 -98
  87. package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
  88. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  89. package/components/dropdown/v4/TreeDropdown.vue2.js +165 -120
  90. package/components/dropdown/v4/index.d.ts +443 -110
  91. package/components/dropdown/v4/index.js +6 -3
  92. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  93. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  94. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  95. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  96. package/components/forms/FormCard.vue.js +3 -3
  97. package/components/forms/FormCard.vue2.js +1 -1
  98. package/components/icon/v4/IconFlag.vue.js +3 -3
  99. package/components/icon/v4/IconFlag.vue2.js +1 -1
  100. package/components/icon/v4/consts.d.ts +1 -1
  101. package/components/icon/v4/consts.js +1 -1
  102. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  103. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  104. package/components/inlineCopy/InlineCopy.vue2.js +24 -22
  105. package/components/inlineCopy/index.d.ts +9 -0
  106. package/components/input/v4/TextField.vue.js +3 -3
  107. package/components/input/v4/TextField.vue2.js +185 -165
  108. package/components/multibar/MultiBarMenu.vue2.js +3 -2
  109. package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
  110. package/components/popover/v4/PopoverV4.vue.js +4 -3
  111. package/components/popover/v4/PopoverV4.vue2.js +40 -24
  112. package/components/popover/v4/index.d.ts +55 -11
  113. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  114. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  115. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  116. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  117. package/components/sortableList/SortableItem.vue.js +2 -2
  118. package/components/sortableList/SortableItem.vue2.js +86 -70
  119. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  120. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  121. package/components/sortableList/SortableList.vue.d.ts +17 -1
  122. package/components/sortableList/SortableList.vue.js +4 -4
  123. package/components/sortableList/SortableList.vue2.js +113 -94
  124. package/components/sortableList/index.d.ts +63 -5
  125. package/components/table/common/Table.common.d.ts +1 -1
  126. package/components/table/common/Table.common.js +83 -77
  127. package/components/table/common/Table.types.d.ts +1 -1
  128. package/components/table/common/consts.d.ts +4 -0
  129. package/components/table/common/consts.js +7 -0
  130. package/components/table/v3/Table.vue.d.ts +1 -1
  131. package/components/table/v3/index.d.ts +5 -5
  132. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  133. package/components/table/v4/DataGrid.vue.js +2 -2
  134. package/components/table/v4/DataGrid.vue2.js +164 -155
  135. package/components/table/v4/DataGridMenu.vue.js +5 -5
  136. package/components/table/v4/DataGridMenu.vue2.js +4 -3
  137. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  138. package/components/table/v4/index.d.ts +84 -46
  139. package/components/table-cells/common/Editable.common.js +29 -23
  140. package/components/table-cells/common/EditableContext.d.ts +1 -0
  141. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  142. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  143. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  144. package/components/table-cells/v4/index.d.ts +20 -1
  145. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  146. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  147. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  148. package/components/tooltip/v4/index.d.ts +39 -1
  149. package/components/typography/v4/Typography.vue.js +3 -3
  150. package/components/typography/v4/Typography.vue2.js +24 -18
  151. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  152. package/index.d.ts +1626 -366
  153. package/index.js +1 -1
  154. package/mocks/options.d.ts +48 -6
  155. package/mocks/words.d.ts +1 -1
  156. package/package.json +2 -1
  157. package/style/v4/grid.css +1 -1
  158. package/style/v4/grid.css.map +1 -1
  159. package/style/v4/spacings.scss +1 -0
  160. package/testids/index.d.ts +2 -0
  161. package/testids/index.js +13 -13
  162. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  163. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
  164. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  165. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  166. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  167. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  168. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  169. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
  170. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  171. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  172. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
  173. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  174. package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
  175. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  176. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  177. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  178. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  179. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  180. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
  181. package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
  182. package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
  183. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  184. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  185. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  186. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  187. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  188. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
  189. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  190. package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
  191. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
@@ -12,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
13
13
  endIconKey?: string;
14
14
  endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
15
+ endTextIconKey?: string;
15
16
  toolTipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
16
17
  treeMainOption?: boolean;
17
18
  treeMainOptionExpanded?: boolean;
@@ -20,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
21
  optionTwoLinesKey?: string;
21
22
  treeChildShown?: boolean;
22
23
  optionFlagKey?: string;
24
+ isMulti?: boolean;
23
25
  }>, {
24
26
  subtitle: string;
25
27
  disabled: boolean;
@@ -33,6 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
33
35
  iconType: string;
34
36
  endIconKey: any;
35
37
  endIconType: string;
38
+ endTextIconKey: any;
36
39
  toolTipPlacement: string;
37
40
  treeMainOption: boolean;
38
41
  treeMainOptionExpanded: boolean;
@@ -41,6 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
41
44
  optionTwoLinesKey: any;
42
45
  treeChildShown: boolean;
43
46
  optionFlagKey: any;
47
+ isMulti: boolean;
44
48
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
49
  toggleTreeCollapse: (option: unknown) => void;
46
50
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -57,6 +61,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
57
61
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
58
62
  endIconKey?: string;
59
63
  endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
64
+ endTextIconKey?: string;
60
65
  toolTipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
61
66
  treeMainOption?: boolean;
62
67
  treeMainOptionExpanded?: boolean;
@@ -65,6 +70,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
70
  optionTwoLinesKey?: string;
66
71
  treeChildShown?: boolean;
67
72
  optionFlagKey?: string;
73
+ isMulti?: boolean;
68
74
  }>, {
69
75
  subtitle: string;
70
76
  disabled: boolean;
@@ -78,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
78
84
  iconType: string;
79
85
  endIconKey: any;
80
86
  endIconType: string;
87
+ endTextIconKey: any;
81
88
  toolTipPlacement: string;
82
89
  treeMainOption: boolean;
83
90
  treeMainOptionExpanded: boolean;
@@ -86,6 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
86
93
  optionTwoLinesKey: any;
87
94
  treeChildShown: boolean;
88
95
  optionFlagKey: any;
96
+ isMulti: boolean;
89
97
  }>>> & {
90
98
  onToggleTreeCollapse?: (option: unknown) => any;
91
99
  }, {
@@ -104,11 +112,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
104
112
  iconKey: string;
105
113
  iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
106
114
  endIconKey: string;
115
+ endTextIconKey: string;
107
116
  toolTipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
108
117
  treeMainOption: boolean;
109
118
  treeMainOptionExpanded: boolean;
110
119
  stopOptionClickEventPropagation: boolean;
111
120
  treeChildShown: boolean;
121
+ isMulti: boolean;
112
122
  }>, {
113
123
  image?(_: {}): any;
114
124
  flag?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./OptionV4.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-4070942a"]]);
3
+ // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2c2947b3"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,32 +1,41 @@
1
- import "../../../OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css"; import { defineComponent as N, ref as I, watch as P, computed as $, openBlock as i, createBlock as y, unref as o, createSlots as V, withCtx as r, createElementVNode as s, normalizeClass as p, createCommentVNode as n, createElementBlock as a, renderSlot as u, createVNode as d, toDisplayString as g, createTextVNode as C, withModifiers as O, Fragment as F, renderList as D } from "vue";
1
+ import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css"; import { defineComponent as N, ref as I, watch as L, computed as w, openBlock as o, createBlock as v, unref as n, createSlots as P, withCtx as d, createElementVNode as c, normalizeClass as k, createCommentVNode as l, createElementBlock as i, renderSlot as m, createVNode as s, toDisplayString as r, createTextVNode as y, withModifiers as $, Fragment as V, renderList as F } from "vue";
2
2
  import "../../typography/Heading.vue.js";
3
- import R from "../../typography/Text.vue.js";
4
- import j from "../../checkbox/v4/CheckboxV4.vue.js";
5
- import T from "../../icon/v4/IconV4.vue.js";
3
+ import D from "../../typography/Text.vue.js";
4
+ import R from "../../checkbox/v4/CheckboxV4.vue.js";
5
+ import f from "../../icon/v4/IconV4.vue.js";
6
6
  import "../../icon/v4/IconFlag.vue.js";
7
- import { NOOP as H } from "@vue/shared";
8
- import { optionCommon as U } from "../common/Option.common.js";
9
- import K from "../../typography/v4/Typography.vue.js";
10
- import q from "../../tooltip/v4/TooltipV4.vue.js";
11
- import { isElementTruncated as G } from "../../../utils/text.js";
12
- import { promiseTimeout as J } from "@vueuse/core";
13
- import { SHARED_ASSETS_CDN_DOMAIN as Q } from "../../../consts/configs.js";
14
- const W = { class: "multiline-tooltip" }, X = {
7
+ import { NOOP as j } from "@vue/shared";
8
+ import { optionCommon as H } from "../common/Option.common.js";
9
+ import T from "../../typography/v4/Typography.vue.js";
10
+ import U from "../../tooltip/v4/TooltipV4.vue.js";
11
+ import { isElementTruncated as q } from "../../../utils/text.js";
12
+ import { promiseTimeout as G } from "@vueuse/core";
13
+ import { SHARED_ASSETS_CDN_DOMAIN as J } from "../../../consts/configs.js";
14
+ const Q = { class: "multiline-tooltip" }, W = {
15
15
  key: 1,
16
16
  class: "image"
17
- }, Y = ["src"], Z = {
17
+ }, X = ["src"], Y = {
18
18
  key: 2,
19
19
  class: "flag"
20
- }, _ = ["src"], ee = {
20
+ }, Z = ["src"], _ = {
21
21
  key: 3,
22
22
  class: "start-icon"
23
- }, te = { class: "main-text" }, oe = {
23
+ }, ee = {
24
24
  key: 0,
25
+ class: "main-text"
26
+ }, te = {
27
+ key: 1,
28
+ class: "main-text"
29
+ }, ne = {
30
+ key: 2,
31
+ class: "end-text-icon"
32
+ }, oe = {
33
+ key: 3,
25
34
  class: "caption-text"
26
35
  }, ie = {
27
36
  key: 4,
28
37
  class: "end-icon"
29
- }, ne = ["onClick"], le = { key: 0 }, ke = /* @__PURE__ */ N({
38
+ }, le = ["onClick"], ae = { key: 0 }, he = /* @__PURE__ */ N({
30
39
  __name: "OptionV4",
31
40
  props: {
32
41
  option: { default: null },
@@ -42,6 +51,7 @@ const W = { class: "multiline-tooltip" }, X = {
42
51
  iconType: { default: "regular" },
43
52
  endIconKey: { default: null },
44
53
  endIconType: { default: "regular" },
54
+ endTextIconKey: { default: null },
45
55
  toolTipPlacement: { default: "right" },
46
56
  treeMainOption: { type: Boolean, default: !1 },
47
57
  treeMainOptionExpanded: { type: Boolean, default: !1 },
@@ -49,161 +59,188 @@ const W = { class: "multiline-tooltip" }, X = {
49
59
  optionTwoLinesVariant: { default: void 0 },
50
60
  optionTwoLinesKey: { default: void 0 },
51
61
  treeChildShown: { type: Boolean, default: !1 },
52
- optionFlagKey: { default: null }
62
+ optionFlagKey: { default: null },
63
+ isMulti: { type: Boolean, default: !1 }
53
64
  },
54
65
  emits: ["toggleTreeCollapse"],
55
- setup(e, { emit: B }) {
56
- const l = e, { selected: v, isMulti: k, id: S, onClick: E, api: x } = U(l), z = (t) => {
57
- l.stopOptionClickEventPropagation && t.stopPropagation(), l.disabled ? H() : E(t);
58
- }, m = I(null), b = I(!1);
59
- P([() => l.treeChildShown, m], async () => {
60
- await J(100), b.value = m.value && G(m.value);
66
+ setup(e, { emit: O }) {
67
+ const a = e, { selected: h, id: B, onClick: S, api: K } = H(a), M = (t) => {
68
+ a.stopOptionClickEventPropagation && t.stopPropagation(), a.disabled ? j() : S(t);
69
+ }, g = I(null), C = I(!1);
70
+ L([() => a.treeChildShown, g], async () => {
71
+ await G(100), C.value = g.value && q(g.value);
61
72
  });
62
- const A = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[l.nameKey] : "", h = $(() => A(l.option)), L = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, M = () => {
63
- B("toggleTreeCollapse", l.option);
64
- }, w = $(() => l.optionFlagKey ? `${Q}/assets/flags/v4/${l.option[l.optionFlagKey]?.toLowerCase()}.svg` : null);
65
- return (t, f) => (i(), y(o(q), {
66
- text: o(h),
67
- "test-id": L(e.option),
73
+ const A = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : C.value ? t[a.nameKey] : "", x = w(() => A(a.option)), E = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, z = () => {
74
+ O("toggleTreeCollapse", a.option);
75
+ }, b = w(() => a.optionFlagKey ? `${J}/assets/flags/v4/${a.option[a.optionFlagKey]?.toLowerCase()}.svg` : null);
76
+ return (t, p) => (o(), v(n(U), {
77
+ text: n(x),
78
+ "test-id": E(e.option),
68
79
  placement: e.toolTipPlacement,
69
80
  class: "tooltip-option"
70
- }, V({
71
- default: r(() => [
72
- s("div", {
81
+ }, P({
82
+ default: d(() => [
83
+ c("div", {
73
84
  ref: "el",
74
- class: p(["item-container", {
85
+ class: k(["item-container", {
75
86
  "item-container--disabled": e.disabled,
76
87
  "item-container--active": e.nameKey ? !1 : e.active,
77
- "item-container--selected": o(v),
78
- "item-container--multi": o(k)
88
+ "item-container--selected": n(h),
89
+ "item-container--multi": e.isMulti
79
90
  }])
80
91
  }, [
81
- s("div", {
82
- class: p(["item", {
83
- "item--multi": o(k),
92
+ c("div", {
93
+ class: k(["item", {
94
+ "item--multi": e.isMulti,
84
95
  "item--with-icon": t.$slots["icon-start"] || t.$slots.image
85
96
  }])
86
97
  }, [
87
- o(k) ? (i(), y(o(j), {
98
+ e.isMulti || e.selectAllOption ? (o(), v(n(R), {
88
99
  key: 0,
89
- id: o(S).toString(),
100
+ id: n(B).toString(),
90
101
  tabindex: "-1",
91
102
  class: "checkbox",
92
- "is-checked": o(v),
103
+ "is-checked": n(h),
93
104
  "is-indeterminate": e.isIndeterminate,
94
- onClick: f[0] || (f[0] = (c) => z(c))
95
- }, null, 8, ["id", "is-checked", "is-indeterminate"])) : n("", !0),
96
- t.$slots.image || e.imageKey ? (i(), a("div", X, [
97
- u(t.$slots, "image", {}, () => [
98
- e.imageKey ? (i(), a("img", {
105
+ onClick: p[0] || (p[0] = (u) => M(u))
106
+ }, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
107
+ t.$slots.image || e.imageKey ? (o(), i("div", W, [
108
+ m(t.$slots, "image", {}, () => [
109
+ e.imageKey ? (o(), i("img", {
99
110
  key: 0,
100
111
  src: e.option[e.imageKey]
101
- }, null, 8, Y)) : n("", !0)
112
+ }, null, 8, X)) : l("", !0)
102
113
  ], !0)
103
- ])) : n("", !0),
104
- t.$slots.flag || e.optionFlagKey ? (i(), a("div", Z, [
105
- u(t.$slots, "flag", {}, () => [
106
- o(w) ? (i(), a("img", {
114
+ ])) : l("", !0),
115
+ t.$slots.flag || e.optionFlagKey ? (o(), i("div", Y, [
116
+ m(t.$slots, "flag", {}, () => [
117
+ n(b) ? (o(), i("img", {
107
118
  key: 0,
108
- src: o(w)
109
- }, null, 8, _)) : n("", !0)
119
+ src: n(b)
120
+ }, null, 8, Z)) : l("", !0)
110
121
  ], !0)
111
- ])) : n("", !0),
112
- t.$slots["icon-start"] || e.iconKey ? (i(), a("div", ee, [
113
- u(t.$slots, "icon-start", {}, () => [
114
- d(o(T), {
122
+ ])) : l("", !0),
123
+ t.$slots["icon-start"] || e.iconKey ? (o(), i("div", _, [
124
+ m(t.$slots, "icon-start", {}, () => [
125
+ s(n(f), {
115
126
  type: e.iconType,
116
127
  name: e.option[e.iconKey],
117
128
  size: e.iconType === "regular" ? "20px" : "16px"
118
129
  }, null, 8, ["type", "name", "size"])
119
130
  ], !0)
120
- ])) : n("", !0),
121
- s("div", {
131
+ ])) : l("", !0),
132
+ c("div", {
122
133
  ref_key: "textContainerRef",
123
- ref: m,
134
+ ref: g,
124
135
  class: "text-container"
125
136
  }, [
126
- d(o(K), {
137
+ s(n(T), {
127
138
  class: "option-text",
128
139
  variant: "body2"
129
140
  }, {
130
- default: r(() => [
131
- u(t.$slots, "default", {}, () => [
132
- s("div", {
133
- class: p(`option-content-${e.optionTwoLinesVariant || "horizontal"}`)
141
+ default: d(() => [
142
+ m(t.$slots, "default", {}, () => [
143
+ c("div", {
144
+ class: k(`option-content-${e.optionTwoLinesVariant} option-content`)
134
145
  }, [
135
- s("div", te, g(e.option[e.nameKey]), 1),
136
- e.optionTwoLinesKey ? (i(), a("div", oe, [
137
- d(o(K), { variant: "caption" }, {
138
- default: r(() => [
139
- C(g(e.option[e.optionTwoLinesKey]), 1)
146
+ e.option.conditionalOptions ? (o(), i("div", te, [
147
+ s(n(T), {
148
+ variant: "body2",
149
+ class: "conditional-option-label"
150
+ }, {
151
+ default: d(() => [
152
+ y(r(e.option.conditionalName) + ": ", 1)
153
+ ]),
154
+ _: 1
155
+ }),
156
+ s(n(T), {
157
+ variant: "h5",
158
+ class: "conditional-option-value"
159
+ }, {
160
+ default: d(() => [
161
+ y('"' + r(e.option[e.nameKey]) + '"', 1)
162
+ ]),
163
+ _: 1
164
+ })
165
+ ])) : (o(), i("div", ee, r(e.option[e.nameKey]), 1)),
166
+ e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), i("span", ne, [
167
+ s(n(f), {
168
+ type: "regular",
169
+ name: e.option[e.endTextIconKey],
170
+ size: "16px"
171
+ }, null, 8, ["name"])
172
+ ])) : l("", !0),
173
+ e.optionTwoLinesKey ? (o(), i("div", oe, [
174
+ s(n(T), { variant: "caption" }, {
175
+ default: d(() => [
176
+ y(r(e.option[e.optionTwoLinesKey]), 1)
140
177
  ]),
141
178
  _: 1
142
179
  })
143
- ])) : n("", !0)
180
+ ])) : l("", !0)
144
181
  ], 2)
145
182
  ], !0)
146
183
  ]),
147
184
  _: 3
148
185
  }),
149
- e.subtitle ? (i(), y(o(R), {
186
+ e.subtitle ? (o(), v(n(D), {
150
187
  key: 0,
151
188
  class: "subtitle",
152
189
  size: "xs"
153
190
  }, {
154
- default: r(() => [
155
- C(g(e.subtitle), 1)
191
+ default: d(() => [
192
+ y(r(e.subtitle), 1)
156
193
  ]),
157
194
  _: 1
158
- })) : n("", !0)
195
+ })) : l("", !0)
159
196
  ], 512),
160
- t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (i(), a("div", ie, [
161
- u(t.$slots, "icon-end", {}, () => [
162
- d(o(T), {
163
- type: e.endIconType,
197
+ t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), i("div", ie, [
198
+ m(t.$slots, "icon-end", {}, () => [
199
+ s(n(f), {
200
+ type: e.endIconType || "regular",
164
201
  name: e.option[e.endIconKey],
165
202
  size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
166
203
  }, null, 8, ["type", "name", "size"])
167
204
  ], !0)
168
- ])) : n("", !0),
169
- e.treeMainOption ? (i(), a("div", {
205
+ ])) : l("", !0),
206
+ e.treeMainOption ? (o(), i("div", {
170
207
  key: 5,
171
208
  class: "tree-main-arrow-wrapper",
172
- onClick: O(M, ["stop"])
209
+ onClick: $(z, ["stop"])
173
210
  }, [
174
- d(o(T), {
211
+ s(n(f), {
175
212
  name: "caret-down",
176
213
  size: "16px",
177
- class: p(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
214
+ class: k(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
178
215
  }, null, 8, ["class"])
179
- ], 8, ne)) : n("", !0)
216
+ ], 8, le)) : l("", !0)
180
217
  ], 2),
181
- o(x).clearable && o(v) ? (i(), a("div", le, [
182
- s("button", {
218
+ n(K).clearable && n(h) ? (o(), i("div", ae, [
219
+ c("button", {
183
220
  class: "clear-button",
184
- onClick: f[1] || (f[1] = O((c) => o(x).clearSelection(), ["prevent", "stop"]))
221
+ onClick: p[1] || (p[1] = $((u) => n(K).clearSelection(), ["prevent", "stop"]))
185
222
  }, [
186
- d(o(T), {
223
+ s(n(f), {
187
224
  name: "close",
188
225
  width: "8",
189
226
  height: "8"
190
227
  })
191
228
  ])
192
- ])) : n("", !0)
229
+ ])) : l("", !0)
193
230
  ], 2)
194
231
  ]),
195
232
  _: 2
196
233
  }, [
197
- Array.isArray(o(h)) ? {
234
+ Array.isArray(n(x)) ? {
198
235
  name: "tooltip",
199
- fn: r(() => [
200
- s("div", W, [
201
- (i(!0), a(F, null, D(o(h), (c) => (i(), y(o(K), {
202
- key: c,
236
+ fn: d(() => [
237
+ c("div", Q, [
238
+ (o(!0), i(V, null, F(n(x), (u) => (o(), v(n(T), {
239
+ key: u,
203
240
  variant: "body2"
204
241
  }, {
205
- default: r(() => [
206
- C(g(c), 1)
242
+ default: d(() => [
243
+ y(r(u), 1)
207
244
  ]),
208
245
  _: 2
209
246
  }, 1024))), 128))
@@ -215,5 +252,5 @@ const W = { class: "multiline-tooltip" }, X = {
215
252
  }
216
253
  });
217
254
  export {
218
- ke as default
255
+ he as default
219
256
  };
@@ -14,6 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
14
  optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
15
15
  optionEndIconKey?: string;
16
16
  optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
17
+ optionEndTextIconKey?: string;
17
18
  valueToCopy?: string;
18
19
  disabledOptionKey?: string;
19
20
  optionChildrenKey: string;
@@ -32,6 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
33
  optionIconType: any;
33
34
  optionEndIconKey: string;
34
35
  optionEndIconType: any;
36
+ optionEndTextIconKey: any;
35
37
  valueToCopy: any;
36
38
  disabledOptionKey: string;
37
39
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -53,6 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
53
55
  optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
54
56
  optionEndIconKey?: string;
55
57
  optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
58
+ optionEndTextIconKey?: string;
56
59
  valueToCopy?: string;
57
60
  disabledOptionKey?: string;
58
61
  optionChildrenKey: string;
@@ -71,6 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
71
74
  optionIconType: any;
72
75
  optionEndIconKey: string;
73
76
  optionEndIconType: any;
77
+ optionEndTextIconKey: any;
74
78
  valueToCopy: any;
75
79
  disabledOptionKey: string;
76
80
  }>>> & {
@@ -81,6 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
81
85
  disabled: boolean;
82
86
  size: "small" | "medium" | "large";
83
87
  selected: unknown[];
88
+ valueToCopy: string;
84
89
  placeholder: string;
85
90
  inlineSearchPlaceholder: string;
86
91
  optionNameKey: string;
@@ -89,8 +94,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
94
  optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
90
95
  optionEndIconKey: string;
91
96
  optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
92
- valueToCopy: string;
93
97
  disabledOptionKey: string;
98
+ optionEndTextIconKey: string;
94
99
  }>, {
95
100
  "trigger-end-icon"?(_: {}): any;
96
101
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./TreeDropdown.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-6ac5f602"]]);
3
+ // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b883d1fa"]]);
5
5
  export {
6
6
  s as default
7
7
  };