@ironsource/shared-ui 2.1.11-rc.6 → 2.1.11-rc.60

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