@ironsource/shared-ui 2.1.11-test.9 → 2.1.11-test.92

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 (170) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
  5. package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
  6. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
  7. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
  8. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css +1 -0
  9. package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
  10. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
  11. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
  12. package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
  13. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  14. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
  15. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
  16. package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
  17. package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
  18. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
  19. package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
  20. package/README.md +4 -15
  21. package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
  22. package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
  23. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
  24. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  25. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  26. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  27. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  28. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  29. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  30. package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
  31. package/components/autocomplete/Autocomplete.vue2.js +1 -1
  32. package/components/chart/Chart.vue.d.ts +16 -3
  33. package/components/chart/Chart.vue.js +5 -5
  34. package/components/chart/Chart.vue2.js +127 -110
  35. package/components/chart/ChartHeader.vue.d.ts +13 -6
  36. package/components/chart/ChartHeader.vue.js +2 -2
  37. package/components/chart/ChartHeader.vue2.js +32 -29
  38. package/components/chart/ChartLegend.vue.d.ts +5 -0
  39. package/components/chart/ChartLegend.vue.js +3 -3
  40. package/components/chart/ChartLegend.vue2.js +99 -49
  41. package/components/chart/ChartTooltip.vue.d.ts +4 -5
  42. package/components/chart/ChartTooltip.vue.js +2 -2
  43. package/components/chart/ChartTooltip.vue2.js +64 -43
  44. package/components/chart/SettingsHeader.vue2.js +1 -1
  45. package/components/chart/index.d.ts +55 -16
  46. package/components/chart/mockData.d.ts +15 -2
  47. package/components/chart/types.d.ts +15 -1
  48. package/components/chart/utils/utils.js +5 -5
  49. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  50. package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
  51. package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
  52. package/components/dateRange/v4/DateRangeV4.vue2.js +1 -1
  53. package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
  54. package/components/dialog/v4/DialogV4.vue.js +3 -3
  55. package/components/dialog/v4/DialogV4.vue2.js +80 -73
  56. package/components/dialog/v4/index.d.ts +58 -1
  57. package/components/dropdown/common/Dropdown.common.js +180 -169
  58. package/components/dropdown/v3/index.d.ts +12 -12
  59. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
  60. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
  61. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
  62. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
  63. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  64. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +59 -40
  65. package/components/dropdown/v4/{ConditionalDroprown.vue.d.ts → ConditionalDropdown.vue.d.ts} +60 -0
  66. package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
  67. package/components/dropdown/v4/ConditionalDropdown.vue2.js +239 -0
  68. package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -5
  69. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  70. package/components/dropdown/v4/DropdownV4.vue2.js +52 -50
  71. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  72. package/components/dropdown/v4/OptionV4.vue2.js +2 -2
  73. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  74. package/components/dropdown/v4/TreeDropdown.vue2.js +87 -87
  75. package/components/dropdown/v4/index.d.ts +205 -35
  76. package/components/dropdown/v4/index.js +3 -3
  77. package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
  78. package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
  79. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
  80. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
  81. package/components/forms/FormCard.vue.js +3 -3
  82. package/components/forms/FormCard.vue2.js +1 -1
  83. package/components/icon/v4/IconFlag.vue.js +3 -3
  84. package/components/icon/v4/IconFlag.vue2.js +1 -1
  85. package/components/icon/v4/consts.d.ts +1 -1
  86. package/components/icon/v4/consts.js +1 -1
  87. package/components/input/v4/TextField.vue.js +3 -3
  88. package/components/input/v4/TextField.vue2.js +185 -165
  89. package/components/multibar/MultiBarMenu.vue2.js +1 -1
  90. package/components/popover/v4/PopoverV4.vue.d.ts +11 -1
  91. package/components/popover/v4/PopoverV4.vue.js +2 -2
  92. package/components/popover/v4/PopoverV4.vue2.js +40 -26
  93. package/components/popover/v4/index.d.ts +46 -8
  94. package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
  95. package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
  96. package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
  97. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  98. package/components/sortableList/SortableItem.vue.js +2 -2
  99. package/components/sortableList/SortableItem.vue2.js +86 -70
  100. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  101. package/components/sortableList/SortableItemLabel.vue2.js +20 -23
  102. package/components/sortableList/SortableList.vue.d.ts +17 -1
  103. package/components/sortableList/SortableList.vue.js +4 -4
  104. package/components/sortableList/SortableList.vue2.js +113 -94
  105. package/components/sortableList/index.d.ts +63 -5
  106. package/components/table/common/Table.common.d.ts +1 -1
  107. package/components/table/common/Table.common.js +82 -74
  108. package/components/table/common/Table.types.d.ts +1 -1
  109. package/components/table/common/consts.d.ts +4 -0
  110. package/components/table/common/consts.js +7 -0
  111. package/components/table/v3/Table.vue.d.ts +1 -1
  112. package/components/table/v3/index.d.ts +5 -5
  113. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  114. package/components/table/v4/DataGrid.vue.js +2 -2
  115. package/components/table/v4/DataGrid.vue2.js +164 -155
  116. package/components/table/v4/DataGridMenu.vue.js +5 -5
  117. package/components/table/v4/DataGridMenu.vue2.js +2 -2
  118. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  119. package/components/table/v4/index.d.ts +84 -46
  120. package/components/table-cells/common/Editable.common.js +29 -23
  121. package/components/table-cells/common/EditableContext.d.ts +1 -0
  122. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  123. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  124. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  125. package/components/table-cells/v4/index.d.ts +20 -1
  126. package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
  127. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  128. package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
  129. package/components/tooltip/v4/index.d.ts +39 -1
  130. package/components/typography/v4/Typography.vue.js +3 -3
  131. package/components/typography/v4/Typography.vue2.js +24 -18
  132. package/design-foundation.stories/icons/iconsData.d.ts +1 -1
  133. package/index.d.ts +1097 -204
  134. package/index.js +1 -1
  135. package/mocks/words.d.ts +1 -1
  136. package/package.json +1 -1
  137. package/style/v4/grid.css +1 -1
  138. package/style/v4/grid.css.map +1 -1
  139. package/style/v4/spacings.scss +1 -0
  140. package/testids/index.d.ts +2 -0
  141. package/testids/index.js +13 -13
  142. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
  143. package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
  144. package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
  145. package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
  146. package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
  147. package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
  148. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +0 -1
  149. package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +0 -1
  150. package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
  151. package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
  152. package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
  153. package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +0 -1
  154. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  155. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
  156. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
  157. package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
  158. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  159. package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +0 -1
  160. package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +0 -1
  161. package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
  162. package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
  163. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
  164. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
  165. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
  166. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
  167. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
  168. package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
  169. package/components/dropdown/v4/ConditionalDroprown.vue.js +0 -7
  170. package/components/dropdown/v4/ConditionalDroprown.vue2.js +0 -157
@@ -1,36 +1,36 @@
1
- import { useToggle as Ve } from "../../../composables/useToggle.js";
2
- import { inject as ke, ref as i, computed as o, watch as b, useSlots as _e, toRaw as P, nextTick as C, provide as Ge, onMounted as He } from "vue";
3
- import { isObjectInArray as le } from "../../../utils/array.js";
4
- import { objectsEqual as Be } from "../../../utils/object.js";
5
- import { useClamp as Le, useVirtualList as Ue, onClickOutside as te } from "@vueuse/core";
6
- import { Mode as T, Type as _, DropdownContext as qe } from "./DropdownContext.js";
1
+ import { useToggle as _e } from "../../../composables/useToggle.js";
2
+ import { inject as Ve, ref as r, computed as c, watch as b, useSlots as ke, toRaw as P, nextTick as K, provide as Ge, onMounted as Le } from "vue";
3
+ import { isObjectInArray as ae } from "../../../utils/array.js";
4
+ import { objectsEqual as Ue } from "../../../utils/object.js";
5
+ import { useClamp as Be, useVirtualList as He, onClickOutside as ne, useInfiniteScroll as qe } from "@vueuse/core";
6
+ import { Mode as T, Type as L, DropdownContext as Xe } from "./DropdownContext.js";
7
7
  import { pxToRem as $e } from "../../../utils/style.js";
8
8
  import { useEditableContext as je } from "../../table-cells/common/EditableContext.js";
9
- import { useGroupedOptions as Xe } from "./useGroupedOptions.js";
10
- const ll = (l, A, O) => {
11
- const ae = ke("isTreeDropdown", !1), {
12
- sortOutGroups: G,
13
- flattenAndMarkGroupOptions: ne,
9
+ import { useGroupedOptions as ze } from "./useGroupedOptions.js";
10
+ const tl = (l, v, g) => {
11
+ const U = Ve("isTreeDropdown", !1), {
12
+ sortOutGroups: B,
13
+ flattenAndMarkGroupOptions: ue,
14
14
  isGroup: H,
15
- selectAllWithGroups: ue,
16
- isIndeterminateGrouped: ie,
17
- allSelectedGrouped: re,
15
+ selectAllWithGroups: ie,
16
+ isIndeterminateGrouped: re,
17
+ allSelectedGrouped: q,
18
18
  areAllPreviousSelected: oe
19
- } = Xe(l), ce = (e, t) => l.multi && Array.isArray(e) ? l.comparingKey ? e?.findIndex(
20
- (u) => u[l.comparingKey] === t[l.comparingKey]
21
- ) > -1 : le(e, t) : l.comparingKey ? e?.[l.comparingKey] === t[l.comparingKey] : P(e) === t;
22
- let B;
19
+ } = ze(l), ce = (e, t) => l.multi && Array.isArray(e) ? l.comparingKey ? e?.findIndex(
20
+ (i) => i[l.comparingKey] === t[l.comparingKey]
21
+ ) > -1 : ae(e, t) : l.comparingKey ? e?.[l.comparingKey] === t[l.comparingKey] : e === t;
22
+ let X;
23
23
  ((e) => {
24
24
  e[e.None = 0] = "None", e[e.Next = 1] = "Next", e[e.Previous = -1] = "Previous", e[e.NextPage = 10] = "NextPage", e[e.PrevPage = -10] = "PrevPage";
25
- })(B || (B = {}));
26
- const a = i(
25
+ })(X || (X = {}));
26
+ const a = r(
27
27
  l.selected
28
- ), N = je(), n = o({
28
+ ), R = je(), n = c({
29
29
  get() {
30
- return N?.value?.value ?? a.value;
30
+ return R?.value?.value ?? a.value;
31
31
  },
32
32
  set(e) {
33
- N.onChange?.(e), N.onClose?.(), A("update:selected", e);
33
+ R.onChange?.(e), R.onClose?.(), v("update:selected", e);
34
34
  }
35
35
  });
36
36
  b(
@@ -39,7 +39,7 @@ const ll = (l, A, O) => {
39
39
  a.value = l.selected, d.value = l.selected;
40
40
  }
41
41
  );
42
- const se = _e(), w = i(null), m = i(null), L = i(null), R = i(null), U = i(null), I = i(null), de = i(), q = i(null), $ = i(null), j = i(null), ve = 8, fe = o(() => I.value ? I.value.getBoundingClientRect().height + ve + l.distance : 0), X = i(!1), f = i([]), x = i(-1), g = i(""), d = i(l.selected || []), z = () => I.value?.focus(), [y, ge, ye] = Ve({
42
+ const se = ke(), w = r(null), m = r(null), $ = r(null), E = r(null), j = r(null), I = r(null), de = r(), z = r(null), W = r(null), J = r(null), ve = 8, fe = c(() => I.value ? I.value.getBoundingClientRect().height + ve + l.distance : 0), D = r(!1), y = r([]), x = r(-1), h = r(""), d = r(l.selected || []), Q = () => I.value?.focus(), [O, ge, ye] = _e({
43
43
  disabled: l.disabled,
44
44
  initialValue: l.defaultOpen
45
45
  });
@@ -49,181 +49,181 @@ const ll = (l, A, O) => {
49
49
  e !== void 0 && ye(e);
50
50
  }
51
51
  );
52
- const W = (e) => {
52
+ const Y = (e) => {
53
53
  he.value = ge(e);
54
- }, he = o({
54
+ }, he = c({
55
55
  get() {
56
56
  return l.isOpen;
57
57
  },
58
58
  set(e) {
59
- A("update:isOpen", e);
59
+ v("update:isOpen", e);
60
60
  }
61
- }), Oe = o(() => c.value.length - 1), v = Le(0, 0, Oe), J = o(() => n.value ? l.displayValue(n.value) : ""), me = (e) => {
61
+ }), Oe = c(() => o.value.length - 1), f = Be(0, 0, Oe), Z = c(() => n.value ? l.displayValue(n.value) : ""), Se = (e) => {
62
62
  if (!e.value.length && !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix)
63
63
  return l.placeholder;
64
64
  const t = !l.multiOptionsPlaceholderPrefix && !l.multiOptionsPlaceholderSuffix ? `${e.value.length} selected` : `${l.multiOptionsPlaceholderPrefix ?? ""}${e.value.length ?? "0"}${l.multiOptionsPlaceholderSuffix ?? ""}`;
65
65
  return e.value.length == 1 && l.displayValue ? l.displayValue(e.value[0]) : t;
66
- }, Se = o(() => {
66
+ }, me = c(() => {
67
67
  if (!l.multi)
68
68
  return n.value ? l.displayValue(n.value) : l.placeholder;
69
69
  if (Array.isArray(a.value))
70
- return me(a);
71
- }), E = o(() => {
70
+ return Se(a);
71
+ }), M = c(() => {
72
72
  if (Array.isArray(a.value))
73
- return l.groupedOptions ? re(c, a) : a.value.length === c.value.length;
74
- }), Ae = o(() => !l.multi || !Array.isArray(a.value) ? !1 : l.groupedOptions ? ie(
75
- c,
73
+ return l.groupedOptions ? q(o, a) : a.value.length === o.value.length;
74
+ }), Ae = c(() => !l.multi || !Array.isArray(a.value) ? !1 : l.groupedOptions ? re(
75
+ o,
76
76
  a
77
- ) : a.value.length > 0 && a.value.length < c.value.length), M = (e) => {
78
- g.value = e;
79
- }, D = o(() => l.groupedOptions ? ne(l.options) : l.options), be = o(() => {
77
+ ) : a.value.length > 0 && a.value.length < o.value.length), _ = (e) => {
78
+ h.value = e;
79
+ }, N = c(() => l.groupedOptions ? ue(l.options) : l.options), be = c(() => {
80
80
  if (oe(
81
- D,
81
+ N,
82
82
  d
83
83
  ))
84
- return D.value;
84
+ return N.value;
85
85
  const e = {
86
86
  selected: [],
87
87
  notSelected: []
88
88
  };
89
- P(D).value.forEach((u) => {
90
- const r = (l.comparingKey ? d.value.findIndex(
91
- (k) => k[l.comparingKey] === u[l.comparingKey]
92
- ) > -1 : d.value.includes(u)) ? "selected" : "notSelected";
93
- e[r].push(u);
89
+ P(N).value.forEach((i) => {
90
+ const u = (l.comparingKey ? d.value.findIndex(
91
+ (G) => G[l.comparingKey] === i[l.comparingKey]
92
+ ) > -1 : d.value.includes(i)) ? "selected" : "notSelected";
93
+ e[u].push(i);
94
94
  });
95
- const t = l.groupedOptions ? G(e.notSelected) : e.notSelected;
95
+ const t = l.groupedOptions ? B(e.notSelected) : e.notSelected;
96
96
  return [].concat(e.selected, t);
97
- }), c = o(() => {
98
- const e = Array.isArray(d.value) && l.multi && O.VERSION === 4 && !ae ? be.value : D.value;
97
+ }), o = c(() => {
98
+ const e = Array.isArray(d.value) && l.multi && g.VERSION === 4 && !U ? be.value : N.value;
99
99
  if (l.onSearch) {
100
- const t = e.filter((u) => l.groupedOptions && H(u) ? u : l.onSearch(u, g.value));
101
- return l.groupedOptions ? G(t) : t;
100
+ const t = e.filter((i) => l.groupedOptions && H(i) ? i : l.onSearch(i, h.value));
101
+ return l.groupedOptions ? B(t) : t;
102
102
  } else
103
103
  return e;
104
- }), Pe = o(() => f.value[0]?.hasSubtitle), Q = o(() => s.mode === T.Multi), Y = o(
105
- () => Pe.value ? O.MULTILINE_LIST_HEIGHT : O.LIST_HEIGHT
104
+ }), Pe = c(() => y.value[0]?.hasSubtitle), F = c(() => s.mode === T.Multi), p = c(
105
+ () => Pe.value ? g.MULTILINE_LIST_HEIGHT : g.LIST_HEIGHT
106
106
  ), {
107
- list: Z,
108
- containerProps: F,
107
+ list: ee,
108
+ containerProps: V,
109
109
  wrapperProps: Te,
110
- scrollTo: K
111
- } = Ue(c, {
112
- itemHeight: Y.value,
110
+ scrollTo: C
111
+ } = He(o, {
112
+ itemHeight: p.value,
113
113
  overscan: l.disableVirtualScroll ? 1 / 0 : 2
114
114
  });
115
115
  b(
116
116
  () => l.isOpen,
117
117
  (e) => {
118
- W(e);
118
+ Y(e);
119
119
  }
120
120
  ), b([x], async () => {
121
- await C();
121
+ await K();
122
122
  }), b(
123
- [y, v, x],
123
+ [O, f, x],
124
124
  async ([e], [t]) => {
125
- y.value && (await C(), x.value !== -1 && e !== t && setTimeout(() => {
126
- l.multi && O.VERSION === 4 || K(x.value);
127
- }), v.value && setTimeout(() => {
128
- K(v.value);
125
+ O.value && (await K(), x.value !== -1 && e !== t && setTimeout(() => {
126
+ l.multi && g.VERSION === 4 || C(x.value);
127
+ }), f.value && setTimeout(() => {
128
+ C(f.value);
129
129
  }));
130
130
  }
131
- ), b(g, () => {
132
- A("onsearch", g.value), K(0);
131
+ ), b(h, () => {
132
+ v("onsearch", h.value), C(0);
133
133
  });
134
- const S = (e, t = !1) => {
135
- l.disabled || (W(e), C(() => {
136
- y.value && A("opened"), y.value || A("closed"), w.value && t && w.value.focus();
134
+ const A = (e, t = !1) => {
135
+ l.disabled || (Y(e), K(() => {
136
+ O.value && v("opened"), O.value || v("closed"), w.value && t && w.value.focus();
137
137
  }));
138
138
  };
139
- b(y, (e) => {
139
+ b(O, (e) => {
140
140
  if (e) {
141
- g.value = "", Q.value && Array.isArray(n.value) && (d.value = P(n.value).slice());
141
+ h.value = "", F.value && Array.isArray(n.value) && (d.value = P(n.value).slice());
142
142
  return;
143
143
  }
144
- z();
144
+ Q();
145
145
  });
146
146
  const we = () => {
147
- if (E.value) {
147
+ if (M.value) {
148
148
  a.value = [];
149
149
  return;
150
150
  }
151
151
  if (Array.isArray(a.value)) {
152
152
  if (l.groupedOptions)
153
- ue(c, a);
153
+ ie(o, a);
154
154
  else {
155
- if (a.value.length === c.value.length) {
155
+ if (a.value.length === o.value.length) {
156
156
  a.value = [];
157
157
  return;
158
158
  }
159
- a.value = c.value;
159
+ a.value = o.value;
160
160
  }
161
- A("selectAll");
161
+ v("selectAll");
162
162
  }
163
163
  }, Ie = () => {
164
- we(), O.VERSION !== 4 && (n.value = a.value);
164
+ we(), g.VERSION !== 4 && (n.value = a.value);
165
165
  }, xe = (e = !0) => {
166
- a.value = [], e && (n.value = [], d.value = []), A("clear");
167
- }, V = (e, t) => {
168
- if (e = P(e), O.VERSION === 4 ? e[l.disabledOptionKey] : f.value[t]?.disabled)
166
+ a.value = [], e && (n.value = [], d.value = []), v("clear");
167
+ }, k = (e, t) => {
168
+ if (e = P(e), g.VERSION === 4 ? e[l.disabledOptionKey] : y.value[t]?.disabled)
169
169
  return;
170
170
  if (x.value = t, !l.multi) {
171
- l.keepOpen || S(!1), s.goToOption(
171
+ l.keepOpen || A(!1), s.goToOption(
172
172
  0
173
173
  /* None */
174
- ), n.value = e, M(""), z(), s.type === _.Search && m.value && (m.value.value = l.displayValue(e)), p();
174
+ ), n.value = e, _(""), Q(), s.type === L.Search && m.value && (m.value.value = l.displayValue(e)), le();
175
175
  return;
176
176
  }
177
177
  if (!Array.isArray(a.value))
178
178
  return;
179
179
  m.value?.focus();
180
- const h = P(a.value);
181
- if (le(h, e) || l.comparingKey && h.findIndex(
182
- (r) => r[l.comparingKey] === e[l.comparingKey]
180
+ const S = P(a.value);
181
+ if (ae(S, e) || l.comparingKey && S.findIndex(
182
+ (u) => u[l.comparingKey] === e[l.comparingKey]
183
183
  ) > -1) {
184
- a.value = h.filter((r) => l.comparingKey ? r[l.comparingKey] !== e[l.comparingKey] : !Be(r, e));
184
+ a.value = S.filter((u) => l.comparingKey ? u[l.comparingKey] !== e[l.comparingKey] : !Ue(u, e));
185
185
  return;
186
186
  } else {
187
- a.value = [...h, e];
187
+ a.value = [...S, e];
188
188
  return;
189
189
  }
190
- }, De = (e) => f.value[e]?.disabled, s = {
191
- activeIndex: v,
192
- options: f,
190
+ }, De = (e) => y.value[e]?.disabled, s = {
191
+ activeIndex: f,
192
+ options: y,
193
193
  selectedOption: n,
194
- labelRef: U,
195
- activeOption: R,
194
+ labelRef: j,
195
+ activeOption: E,
196
196
  listRef: w,
197
197
  clearable: l.clearable,
198
- type: se.input ? _.Search : _.Dropdown,
198
+ type: se.input ? L.Search : L.Dropdown,
199
199
  mode: l.multi ? T.Multi : T.Single,
200
- query: g,
201
- selectedValue: J,
202
- toggle: S,
200
+ query: h,
201
+ selectedValue: Z,
202
+ toggle: A,
203
203
  disabled: l.disabled,
204
- open: y,
204
+ open: O,
205
205
  mandatory: l.mandatory,
206
206
  size: l.size,
207
207
  placeholder: l.placeholder,
208
- select: V,
208
+ select: k,
209
209
  clearSelection: () => {
210
- M(""), n.value = s.mode === T.Single ? null : [], d.value = s.mode === T.Single ? null : [], m.value && (m.value.value = "");
210
+ _(""), n.value = s.mode === T.Single ? null : [], d.value = s.mode === T.Single ? null : [], m.value && (m.value.value = "");
211
211
  },
212
- search: M,
212
+ search: _,
213
213
  goToOption: async (e) => {
214
- if (!y.value)
214
+ if (!O.value)
215
215
  return;
216
- let t = v.value + e;
217
- const u = f.value.filter(
218
- (r) => r.disabled
219
- ).length, h = c.value.length - u;
220
- for (t > h && (t = h + 1); ; ) {
221
- if (!f.value[t]?.disabled) {
222
- R.value = c.value[t], v.value = t;
216
+ let t = f.value + e;
217
+ const i = y.value.filter(
218
+ (u) => u.disabled
219
+ ).length, S = o.value.length - i;
220
+ for (t > S && (t = S + 1); ; ) {
221
+ if (!y.value[t]?.disabled) {
222
+ E.value = o.value[t], f.value = t;
223
223
  return;
224
224
  }
225
- if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(v.value)) {
226
- R.value = c.value[t], v.value = t;
225
+ if ((e === 1 || e === 10) && (t = t + 1), (e === -1 || e === -10) && (t = t + -1), !!De(f.value)) {
226
+ E.value = o.value[t], f.value = t;
227
227
  return;
228
228
  }
229
229
  }
@@ -231,51 +231,54 @@ const ll = (l, A, O) => {
231
231
  registerInput: (e) => {
232
232
  m.value = e.value;
233
233
  },
234
- registerOption: (e, t, u) => {
235
- f.value = [...f.value, { id: e, disabled: t, hasSubtitle: u }];
234
+ registerOption: (e, t, i) => {
235
+ y.value = [...y.value, { id: e, disabled: t, hasSubtitle: i }];
236
236
  },
237
237
  unRegisterOption(e) {
238
- f.value = f.value.filter((t) => t.id !== e);
238
+ y.value = y.value.filter((t) => t.id !== e);
239
239
  }
240
240
  };
241
- Ge(qe, s), te(
241
+ Ge(Xe, s), ne(
242
242
  w,
243
243
  () => {
244
- y.value && ee();
244
+ O.value && te();
245
245
  },
246
246
  {
247
247
  ignore: [
248
248
  I,
249
- q,
250
- $,
251
- j,
249
+ z,
250
+ W,
251
+ J,
252
252
  m,
253
- F.ref
253
+ V.ref
254
254
  ]
255
255
  }
256
256
  );
257
- const Ke = () => {
257
+ const Me = () => {
258
258
  m.value && (m.value.value = s.query.value = "");
259
259
  };
260
- He(async () => {
261
- l.autoFocus && (await C(), setTimeout(() => {
262
- L.value.focus();
263
- })), s.goToOption(0);
260
+ Le(async () => {
261
+ l.autoFocus && (await K(), setTimeout(() => {
262
+ $.value.focus();
263
+ })), s.goToOption(0), l.multi && !U && (l.groupedOptions ? D.value = q(
264
+ o,
265
+ a
266
+ ) : D.value = l.options.length === l.selected.length);
264
267
  });
265
- const p = () => {
266
- l.multi && (X.value = E.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())), A("apply", n.value), S(!1), Ke();
267
- }, ee = () => {
268
- Q.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), g.value = "", S(!1);
269
- }, Ce = (e) => {
268
+ const le = () => {
269
+ l.multi && (D.value = M.value, n.value = a.value, Array.isArray(n.value) && (d.value = P(n.value).slice())), v("apply", n.value), v("allSelectedChanged", M.value), A(!1), Me();
270
+ }, te = () => {
271
+ F.value && Array.isArray(d.value) && (n.value = P(d.value).slice()), h.value = "", A(!1);
272
+ }, Ne = (e) => {
270
273
  if (!l.disableKeyboardEvents)
271
274
  switch (e.key) {
272
275
  case "Space":
273
276
  case "Enter":
274
277
  case "ArrowUp":
275
278
  case "ArrowDown":
276
- S(!0), e.preventDefault();
279
+ A(!0), e.preventDefault();
277
280
  }
278
- }, Ne = (e) => {
281
+ }, Ce = (e) => {
279
282
  if (!l.disableKeyboardEvents)
280
283
  switch (e.key) {
281
284
  case "ArrowUp": {
@@ -293,7 +296,7 @@ const ll = (l, A, O) => {
293
296
  break;
294
297
  }
295
298
  case "Escape": {
296
- S(!1), e.preventDefault();
299
+ A(!1), e.preventDefault();
297
300
  break;
298
301
  }
299
302
  case "PageUp": {
@@ -311,65 +314,73 @@ const ll = (l, A, O) => {
311
314
  break;
312
315
  }
313
316
  case "Enter": {
314
- if (!y.value) {
315
- S(!0);
317
+ if (!O.value) {
318
+ A(!0);
316
319
  return;
317
320
  }
318
- V(c.value[v.value], v.value), s.mode === T.Single && !l.keepOpen && S(!1), e.preventDefault();
321
+ k(o.value[f.value], f.value), s.mode === T.Single && !l.keepOpen && A(!1), e.preventDefault();
319
322
  break;
320
323
  }
321
324
  }
322
- }, Re = o(() => {
325
+ }, Ke = c(() => {
323
326
  if (l.loading)
324
327
  return 8.5;
325
- const e = l.customNumberOfDisplayedOptions || Z.value.reduce((k, Ee) => {
326
- const Me = l.overrideOptionCountCalculation ? l.overrideOptionCountCalculation(Ee.data) : 1;
327
- return k + Me;
328
- }, 0), t = l.multi && l.showSelectAll && !g.value ? 1 : 0, u = e > O.MAX_NUMBER_OF_OPTIONS, h = e + t;
329
- let r = u ? O.MAX_NUMBER_OF_OPTIONS + 0.1 : h;
330
- return l.noResultsText && r === 0 && (r = r + 1), l.withConditions && g.value && (r = r + 1), $e(
331
- r * Y.value + O.PADDING_PX
328
+ const e = l.loadMoreLoading && g.MAX_NUMBER_OF_OPTIONS || l.customNumberOfDisplayedOptions || ee.value.reduce((G, Re) => {
329
+ const Ee = l.overrideOptionCountCalculation ? l.overrideOptionCountCalculation(Re.data) : 1;
330
+ return G + Ee;
331
+ }, 0), t = l.multi && l.showSelectAll && !h.value ? 1 : 0, i = e > g.MAX_NUMBER_OF_OPTIONS, S = e + t;
332
+ let u = i ? g.MAX_NUMBER_OF_OPTIONS + 0.1 : S;
333
+ return l.loadMoreLoading && l.multi && (u = u - 0.9), l.noResultsText && u === 0 && (u = u + 1), l.withConditions && h.value && (u = u + 1), $e(
334
+ u * p.value + g.PADDING_PX
332
335
  );
333
336
  });
334
- return {
335
- onKeydown: Ne,
337
+ return qe(
338
+ V.ref,
339
+ () => {
340
+ !l.loadMoreLoading && l.infiniteLoading && v("loadMore");
341
+ },
342
+ { distance: l.infiniteScrollThreshold }
343
+ ), b(a, () => {
344
+ v("unsavedSelectionUpdate", a.value);
345
+ }), {
346
+ onKeydown: Ce,
336
347
  location: fe,
337
- open: y,
338
- toggleMenu: S,
339
- onButtonKeydown: Ce,
340
- displayedValue: Se,
341
- labelRef: U,
342
- query: g,
343
- containerProps: F,
344
- calculateTableHeight: Re,
348
+ open: O,
349
+ toggleMenu: A,
350
+ onButtonKeydown: Ne,
351
+ displayedValue: me,
352
+ labelRef: j,
353
+ query: h,
354
+ containerProps: V,
355
+ calculateTableHeight: Ke,
345
356
  wrapperProps: Te,
346
- filteredOptions: c,
347
- allSelected: E,
348
- allSelectedApplied: X,
357
+ filteredOptions: o,
358
+ allSelected: M,
359
+ allSelectedApplied: D,
349
360
  isIndeterminate: Ae,
350
361
  onSelectAll: Ie,
351
- virtualOptions: Z,
362
+ virtualOptions: ee,
352
363
  isSelected: ce,
353
364
  selectedOption: n,
354
365
  selectedOptionPrevious: d,
355
- selectedValue: J,
356
- onSelect: V,
357
- activeIndex: v,
358
- onCancel: ee,
359
- onApply: p,
360
- scrollTo: K,
361
- onClickOutside: te,
366
+ selectedValue: Z,
367
+ onSelect: k,
368
+ activeIndex: f,
369
+ onCancel: te,
370
+ onApply: le,
371
+ scrollTo: C,
372
+ onClickOutside: ne,
362
373
  listRef: w,
363
374
  buttonRef: I,
364
- apply: q,
365
- cancel: $,
366
- el: L,
375
+ apply: z,
376
+ cancel: W,
377
+ el: $,
367
378
  triggerRef: de,
368
- clearAll: j,
379
+ clearAll: J,
369
380
  onClearAllSelections: xe,
370
381
  isGroup: H
371
382
  };
372
383
  };
373
384
  export {
374
- ll as dropdownCommon
385
+ tl as dropdownCommon
375
386
  };
@@ -93,13 +93,13 @@ declare const DropdownTypes: () => (({
93
93
  type: import("vue").PropType<string>;
94
94
  default: string;
95
95
  };
96
+ isOpen: {
97
+ type: import("vue").PropType<boolean>;
98
+ };
96
99
  skidding: {
97
100
  type: import("vue").PropType<number>;
98
101
  default: number;
99
102
  };
100
- isOpen: {
101
- type: import("vue").PropType<boolean>;
102
- };
103
103
  modelValue: {
104
104
  type: import("vue").PropType<unknown>;
105
105
  default: any;
@@ -269,13 +269,13 @@ declare const DropdownTypes: () => (({
269
269
  type: import("vue").PropType<string>;
270
270
  default: string;
271
271
  };
272
+ isOpen: {
273
+ type: import("vue").PropType<boolean>;
274
+ };
272
275
  skidding: {
273
276
  type: import("vue").PropType<number>;
274
277
  default: number;
275
278
  };
276
- isOpen: {
277
- type: import("vue").PropType<boolean>;
278
- };
279
279
  modelValue: {
280
280
  type: import("vue").PropType<unknown>;
281
281
  default: any;
@@ -497,13 +497,13 @@ declare const DropdownTypes: () => (({
497
497
  type: import("vue").PropType<string>;
498
498
  default: string;
499
499
  };
500
+ isOpen: {
501
+ type: import("vue").PropType<boolean>;
502
+ };
500
503
  skidding: {
501
504
  type: import("vue").PropType<number>;
502
505
  default: number;
503
506
  };
504
- isOpen: {
505
- type: import("vue").PropType<boolean>;
506
- };
507
507
  modelValue: {
508
508
  type: import("vue").PropType<unknown>;
509
509
  default: any;
@@ -666,13 +666,13 @@ declare const DropdownTypes: () => (({
666
666
  type: import("vue").PropType<string>;
667
667
  default: string;
668
668
  };
669
+ isOpen: {
670
+ type: import("vue").PropType<boolean>;
671
+ };
669
672
  skidding: {
670
673
  type: import("vue").PropType<number>;
671
674
  default: number;
672
675
  };
673
- isOpen: {
674
- type: import("vue").PropType<boolean>;
675
- };
676
676
  modelValue: {
677
677
  type: import("vue").PropType<unknown>;
678
678
  default: any;
@@ -8,6 +8,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
8
  startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
9
9
  hideEndIcon?: boolean;
10
10
  testId?: string;
11
+ maxWidth?: number;
12
+ withTooltip?: boolean;
13
+ 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";
11
14
  }>, {
12
15
  variant: string;
13
16
  size: string;
@@ -17,6 +20,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
20
  startIconType: string;
18
21
  hideEndIcon: boolean;
19
22
  testId: string;
23
+ maxWidth: number;
24
+ withTooltip: boolean;
25
+ tooltipPlacement: string;
20
26
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
27
  click: () => void;
22
28
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -29,6 +35,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
35
  startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
30
36
  hideEndIcon?: boolean;
31
37
  testId?: string;
38
+ maxWidth?: number;
39
+ withTooltip?: boolean;
40
+ 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";
32
41
  }>, {
33
42
  variant: string;
34
43
  size: string;
@@ -38,13 +47,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
38
47
  startIconType: string;
39
48
  hideEndIcon: boolean;
40
49
  testId: string;
50
+ maxWidth: number;
51
+ withTooltip: boolean;
52
+ tooltipPlacement: string;
41
53
  }>>> & {
42
54
  onClick?: () => any;
43
55
  }, {
44
56
  testId: string;
45
57
  variant: "text" | "outlined";
58
+ withTooltip: boolean;
59
+ 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";
46
60
  disabled: boolean;
47
61
  size: "small" | "medium";
62
+ maxWidth: number;
48
63
  open: boolean;
49
64
  startIconName: string;
50
65
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -1,7 +1,7 @@
1
1
  import o from "./ButtonDropdownTrigger.vue2.js";
2
2
  /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css"; //*');
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-76c74f58"]]);
3
+ // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; //*');
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-604dfc6f"]]);
5
5
  export {
6
6
  p as default
7
7
  };