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

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_4fe1c7d1_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
@@ -1,21 +1,22 @@
1
- import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css"; import { defineComponent as Z, provide as _, ref as c, computed as E, onMounted as ee, watch as m, openBlock as g, createBlock as V, unref as a, withCtx as h, createVNode as C, normalizeProps as ne, guardReactiveProps as le, createSlots as te, renderSlot as oe, createElementVNode as z, mergeProps as ie, withModifiers as w, createTextVNode as ae, createElementBlock as D, withDirectives as de, Fragment as re, renderList as se, vShow as ce, createCommentVNode as ue } from "vue";
2
- import pe from "./DropdownV4.vue.js";
3
- import ye from "./DefaultDropdownTrigger.vue.js";
1
+ import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css"; import { defineComponent as ee, provide as ne, ref as c, computed as K, onMounted as le, watch as g, openBlock as C, createBlock as D, unref as d, withCtx as f, createVNode as I, mergeProps as z, createSlots as te, renderSlot as oe, createElementVNode as M, withModifiers as S, createTextVNode as ie, createElementBlock as B, withDirectives as de, Fragment as ae, renderList as re, vShow as se, createCommentVNode as ce } from "vue";
2
+ import ue from "./DropdownV4.vue.js";
3
+ import pe from "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
5
5
  import "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
7
  import "./ButtonDropdownTrigger.vue.js";
8
8
  import "./ButtonFilterDropdownTrigger.vue.js";
9
9
  import "./TreeDropdown.vue.js";
10
- import S from "./OptionV4.vue.js";
11
- import { useChildOptions as he } from "../composables/useChildOptions.js";
10
+ import w from "./OptionV4.vue.js";
11
+ import "./ConditionalDropdown.vue.js";
12
+ import { useChildOptions as ye } from "../composables/useChildOptions.js";
12
13
  import fe from "../../search/v4/SearchV4.vue.js";
13
- import { useTestIdAttrs as ve } from "../../../utils/testIds.js";
14
- import { DropdownTestIdModifiers as M } from "../../../testids/index.js";
15
- const me = {
14
+ import { useTestIdAttrs as he } from "../../../utils/testIds.js";
15
+ import { DropdownTestIdModifiers as $ } from "../../../testids/index.js";
16
+ const ve = {
16
17
  key: 0,
17
18
  class: "child-options"
18
- }, qe = /* @__PURE__ */ Z({
19
+ }, qe = /* @__PURE__ */ ee({
19
20
  __name: "TreeDropdown",
20
21
  props: {
21
22
  options: null,
@@ -42,19 +43,19 @@ const me = {
42
43
  },
43
44
  emits: ["update:selected", "update:isOpen"],
44
45
  setup(t, { emit: b }) {
45
- const l = t;
46
- _("isTreeDropdown", !0);
47
- const K = c([]), p = c([]), T = c({}), O = c(!1), i = c([...l.selected]), y = c(""), x = c(!0), u = c(!1), N = E(() => p.value.reduce((e, o) => (e = e + 1, o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
46
+ const n = t;
47
+ ne("isTreeDropdown", !0);
48
+ const m = c([]), u = c([]), T = c({}), O = c(!1), i = c([...n.selected]), p = c(""), x = c(!0), N = K(() => u.value.reduce((e, o) => (o[n.optionChildrenKey] && o[n.optionChildrenKey].length && o[n.optionChildrenKey].forEach(() => {
48
49
  e = e + 1;
49
- }), e), 0)), P = E(() => !u.value && i.value.length > 0), U = () => {
50
- l.options.forEach((e) => {
51
- e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (T.value[e[l.optionUniqueIdKey]] = [
52
- ...e[l.optionChildrenKey]
50
+ }), o[n.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
51
+ n.options.forEach((e) => {
52
+ e[n.optionChildrenKey] && e[n.optionChildrenKey].length && (T.value[e[n.optionUniqueIdKey]] = [
53
+ ...e[n.optionChildrenKey]
53
54
  ]);
54
- }), K.value = [...l.options], p.value = [...l.options];
55
- }, { hasChildren: f, getChildren: v, allChildrenSelected: I, someChildrenSelected: B } = he(i, l.optionChildrenKey), q = (e) => {
56
- if (f(e)) {
57
- I(e) ? i.value = i.value.filter(
55
+ }), m.value = [...n.options], u.value = [...n.options];
56
+ }, { hasChildren: h, getChildren: v, allChildrenSelected: k, someChildrenSelected: P } = ye(i, n.optionChildrenKey), q = (e) => {
57
+ if (h(e)) {
58
+ k(e) ? i.value = i.value.filter(
58
59
  (o) => !v(e).includes(o)
59
60
  ) : i.value = [
60
61
  ...i.value.filter((o) => !v(e).includes(o)),
@@ -65,95 +66,97 @@ const me = {
65
66
  i.value.includes(e) ? i.value = i.value.filter(
66
67
  (o) => o !== e
67
68
  ) : i.value = [...i.value, e];
68
- }, A = (e) => i.value.includes(e), $ = (e) => 1 + (f(e) ? v(e).length : 0), j = () => {
69
- b("update:selected", i.value);
69
+ }, A = (e) => i.value.includes(e), J = (e) => 1 + (h(e) ? v(e).length : 0), j = () => {
70
+ b("update:selected", i.value), L.value = y.value;
70
71
  }, F = () => {
71
72
  i.value = [];
72
- }, R = () => {
73
+ }, G = () => {
73
74
  const e = /* @__PURE__ */ new Set([]);
74
- p.value.forEach((n) => {
75
- if (l.selected?.includes(n))
76
- e.add(n);
77
- else if (n[l.optionChildrenKey] && n[l.optionChildrenKey].length) {
78
- for (const r of n[l.optionChildrenKey])
79
- if (l.selected?.includes(r)) {
80
- e.add(n);
75
+ u.value.forEach((l) => {
76
+ if (n.selected?.includes(l))
77
+ e.add(l);
78
+ else if (l[n.optionChildrenKey] && l[n.optionChildrenKey].length) {
79
+ for (const r of l[n.optionChildrenKey])
80
+ if (n.selected?.includes(r)) {
81
+ e.add(l);
81
82
  break;
82
83
  }
83
84
  }
84
85
  });
85
86
  const o = Array.from(e);
86
- return p.value.forEach((n) => {
87
- !l.selected.includes(n) && !e.has(n) && o.push(n);
87
+ return u.value.forEach((l) => {
88
+ !n.selected.includes(l) && !e.has(l) && o.push(l);
88
89
  }), o;
89
90
  };
90
- ee(() => {
91
- O.value || (U(), O.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
92
- d.value[e] = 1;
91
+ le(() => {
92
+ O.value || (U(), O.value = !0, n.preExpandedOptions && n.preExpandedOptions.forEach((e) => {
93
+ a.value[e] = 1;
93
94
  }));
94
- }), m(
95
- () => l.options,
95
+ }), g(
96
+ () => n.options,
96
97
  () => {
97
98
  U();
98
99
  }
99
- ), m(
100
- () => l.selected,
101
- () => {
102
- i.value = [...l.selected];
100
+ ), g(
101
+ () => n.selected,
102
+ (e, o) => {
103
+ JSON.stringify(e) !== JSON.stringify(o) && (i.value = [...n.selected]);
103
104
  }
104
- ), m(i, () => {
105
- i.value.length < N.value ? u.value = !1 : i.value.length === N.value && (u.value = !0);
106
- }), m(
107
- () => l.isOpen,
105
+ );
106
+ const y = K(() => i.value.length < N.value ? !1 : i.value.length === N.value), H = K(() => !y.value && i.value.length > 0), L = c(y.value);
107
+ g(
108
+ () => n.isOpen,
108
109
  () => {
109
- l.isOpen ? K.value = R() : (i.value = [...l.selected], y.value = "");
110
+ n.isOpen ? m.value = G() : (i.value = [...n.selected], p.value = "");
110
111
  }
111
112
  );
112
- const d = c({}), G = (e) => {
113
- d.value[e[l.optionUniqueIdKey]] ? delete d.value[e[l.optionUniqueIdKey]] : d.value[e[l.optionUniqueIdKey]] = 1;
113
+ const a = c({}), Q = (e) => {
114
+ a.value[e[n.optionUniqueIdKey]] ? delete a.value[e[n.optionUniqueIdKey]] : a.value[e[n.optionUniqueIdKey]] = 1;
114
115
  };
115
- function H(e, o) {
116
- const n = e.toLowerCase(), r = [];
116
+ function R(e, o) {
117
+ const l = e.toLowerCase(), r = [];
117
118
  return o.value.forEach((s) => {
118
- const k = s[l.optionNameKey].toLowerCase().includes(n), L = T.value[s[l.optionUniqueIdKey]]?.filter(
119
- (Y) => Y[l.optionNameKey].toLowerCase().includes(n)
119
+ const E = s[n.optionNameKey].toLowerCase().includes(l), V = T.value[s[n.optionUniqueIdKey]]?.filter(
120
+ (_) => _[n.optionNameKey].toLowerCase().includes(l)
120
121
  ) || [];
121
- (k || L.length > 0) && (s[l.optionChildrenKey] = L, r.push(s));
122
+ (E || V.length > 0) && (s[n.optionChildrenKey] = V, r.push(s));
122
123
  }), r;
123
124
  }
124
- const J = (e) => {
125
- const o = H(e, p);
126
- e && (Object.keys(d.value).forEach((n) => {
127
- delete d.value[n];
128
- }), o.forEach((n) => {
129
- Array.isArray(n[l.optionChildrenKey]) && n[l.optionChildrenKey].length && (d.value[n[l.optionUniqueIdKey]] = 1);
130
- })), K.value = o;
131
- }, Q = E(() => {
132
- const e = l.options.length, o = l.options.reduce(
133
- (n, r) => (d.value[r[l.optionUniqueIdKey]] && (n = n + r[l.optionChildrenKey].length), n),
125
+ const W = (e) => {
126
+ const o = R(e, u);
127
+ e && (Object.keys(a.value).forEach((l) => {
128
+ delete a.value[l];
129
+ }), o.forEach((l) => {
130
+ Array.isArray(l[n.optionChildrenKey]) && l[n.optionChildrenKey].length && (a.value[l[n.optionUniqueIdKey]] = 1);
131
+ })), m.value = o;
132
+ }, X = K(() => {
133
+ const e = n.options.length, o = n.options.reduce(
134
+ (l, r) => (a.value[r[n.optionUniqueIdKey]] && (l = l + r[n.optionChildrenKey].length), l),
134
135
  0
135
136
  );
136
137
  return e + o;
137
138
  });
138
- m(
139
- () => y.value,
139
+ g(
140
+ () => p.value,
140
141
  () => {
141
- J(y.value), x.value = !y.value;
142
+ W(p.value), x.value = !p.value;
142
143
  }
143
144
  );
144
- const W = () => {
145
- u.value ? i.value = [] : (i.value = [], p.value.forEach((e) => {
146
- if (i.value = [e, ...i.value], e[l.optionChildrenKey] && e[l.optionChildrenKey].length)
147
- for (const o of e[l.optionChildrenKey])
145
+ const Y = () => {
146
+ y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
147
+ if (e[n.optionChildrenKey] && e[n.optionChildrenKey].length)
148
+ for (const o of e[n.optionChildrenKey])
148
149
  i.value = [o, ...i.value];
149
- })), u.value = !u.value;
150
- }, X = ve(l.testId, M);
151
- return (e, o) => (g(), V(a(pe), {
150
+ else
151
+ i.value = [e, ...i.value];
152
+ }));
153
+ }, Z = he(n.testId, $);
154
+ return (e, o) => (C(), D(d(ue), {
152
155
  multi: "",
153
156
  class: "tree-dropdown",
154
157
  "show-select-all": x.value,
155
158
  "is-open": t.isOpen,
156
- options: K.value,
159
+ options: m.value,
157
160
  selected: t.selected,
158
161
  "display-value": t.displayValue,
159
162
  placeholder: t.placeholder,
@@ -164,29 +167,33 @@ const me = {
164
167
  "test-id": t.testId,
165
168
  disabled: t.disabled,
166
169
  "disable-virtual-scroll": "",
167
- "override-option-count-calculation": $,
170
+ "override-option-count-calculation": J,
168
171
  "trigger-show-all-selected-text": !1,
169
172
  "predefined-trigger": "default",
170
- "custom-number-of-displayed-options": a(Q),
171
- "onUpdate:isOpen": o[2] || (o[2] = (n) => b("update:isOpen", n)),
173
+ "custom-number-of-displayed-options": d(X),
174
+ "onUpdate:isOpen": o[2] || (o[2] = (l) => b("update:isOpen", l)),
172
175
  onApply: j,
173
176
  onClear: F
174
177
  }, {
175
- "dropdown-trigger": h(({ defaultTriggerProps: n }) => [
176
- C(a(ye), ne(le(n)), te({ _: 2 }, [
178
+ "dropdown-trigger": f(({ defaultTriggerProps: l }) => [
179
+ I(d(pe), z(l, {
180
+ "all-selected": L.value,
181
+ "show-all-selected-text": ""
182
+ }), te({ _: 2 }, [
177
183
  e.$slots["trigger-end-icon"] ? {
178
184
  name: "end-icon",
179
- fn: h(() => [
185
+ fn: f(() => [
180
186
  oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
181
187
  ]),
182
188
  key: "0"
183
189
  } : void 0
184
- ]), 1040)
190
+ ]), 1040, ["all-selected"])
185
191
  ]),
186
- "inline-search": h(() => [
187
- C(a(fe), {
188
- modelValue: y.value,
189
- "onUpdate:modelValue": o[0] || (o[0] = (n) => y.value = n),
192
+ "inline-search": f(() => [
193
+ I(d(fe), {
194
+ modelValue: p.value,
195
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => p.value = l),
196
+ class: "tree-search",
190
197
  placeholder: t.inlineSearchPlaceholder,
191
198
  variant: "transparent",
192
199
  size: "md",
@@ -194,30 +201,31 @@ const me = {
194
201
  "test-id": t.testId
195
202
  }, null, 8, ["modelValue", "placeholder", "test-id"])
196
203
  ]),
197
- "select-all": h(() => [
198
- z("li", null, [
199
- C(a(S), ie({
200
- "aria-selected": u.value,
204
+ "select-all": f(() => [
205
+ M("li", null, [
206
+ I(d(w), z({
207
+ "aria-selected": d(y),
201
208
  "aria-disabled": !!t.disabled,
202
- "selected-prop": u.value,
203
- "is-indeterminate": a(P),
209
+ "selected-prop": d(y),
210
+ "is-indeterminate": d(H),
211
+ "is-multi": "",
204
212
  "select-all-option": ""
205
- }, a(X)[a(M).SELECT_ALL], {
206
- onClick: o[1] || (o[1] = w((n) => W(), ["stop"]))
213
+ }, d(Z)[d($).SELECT_ALL], {
214
+ onClick: o[1] || (o[1] = S((l) => Y(), ["stop"]))
207
215
  }), {
208
- default: h(() => [
209
- ae(" Select all ")
216
+ default: f(() => [
217
+ ie(" Select all ")
210
218
  ]),
211
219
  _: 1
212
220
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
213
221
  ])
214
222
  ]),
215
- default: h(({ option: n, index: r }) => [
216
- C(a(S), {
217
- option: n,
218
- "selected-prop": a(f)(n) ? a(I)(n) : A(n),
219
- "is-indeterminate": !a(I)(n) && a(B)(n),
220
- disabled: n[t.disabledOptionKey],
223
+ default: f(({ option: l, index: r }) => [
224
+ I(d(w), {
225
+ option: l,
226
+ "selected-prop": d(h)(l) ? d(k)(l) : A(l),
227
+ "is-indeterminate": !d(k)(l) && d(P)(l),
228
+ disabled: l[t.disabledOptionKey],
221
229
  "name-key": t.optionNameKey,
222
230
  "image-key": t.optionImageKey,
223
231
  "icon-key": t.optionIconKey,
@@ -225,16 +233,17 @@ const me = {
225
233
  "end-icon-key": t.optionEndIconKey,
226
234
  "end-icon-type": t.optionEndIconType,
227
235
  "end-text-icon-key": t.optionEndTextIconKey,
228
- "tree-main-option": a(f)(n),
229
- "tree-main-option-expanded": d.value[n[t.optionUniqueIdKey]],
236
+ "tree-main-option": d(h)(l),
237
+ "tree-main-option-expanded": a.value[l[t.optionUniqueIdKey]],
230
238
  "stop-option-click-event-propagation": "",
231
- onClick: w(() => q(n), ["stop"]),
232
- onToggleTreeCollapse: G
239
+ "is-multi": "",
240
+ onClick: S(() => q(l), ["stop"]),
241
+ onToggleTreeCollapse: Q
233
242
  }, null, 8, ["option", "selected-prop", "is-indeterminate", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-main-option", "tree-main-option-expanded", "onClick"]),
234
- a(f)(n) ? (g(), D("div", me, [
235
- de(z("div", null, [
236
- (g(!0), D(re, null, se(a(v)(n), (s, k) => (g(), V(a(S), {
237
- key: `${r}-${k}`,
243
+ d(h)(l) ? (C(), B("div", ve, [
244
+ de(M("div", null, [
245
+ (C(!0), B(ae, null, re(d(v)(l), (s, E) => (C(), D(d(w), {
246
+ key: `${r}-${E}`,
238
247
  option: s,
239
248
  "selected-prop": A(s),
240
249
  disabled: s[t.disabledOptionKey],
@@ -245,14 +254,15 @@ const me = {
245
254
  "end-icon-key": t.optionEndIconKey,
246
255
  "end-icon-type": t.optionEndIconType,
247
256
  "end-text-icon-key": t.optionEndTextIconKey,
248
- "tree-child-shown": d.value[n[t.optionUniqueIdKey]],
257
+ "tree-child-shown": a.value[l[t.optionUniqueIdKey]],
249
258
  "stop-option-click-event-propagation": "",
250
- onClick: w(() => q(s), ["stop"])
259
+ "is-multi": "",
260
+ onClick: S(() => q(s), ["stop"])
251
261
  }, null, 8, ["option", "selected-prop", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "tree-child-shown", "onClick"]))), 128))
252
262
  ], 512), [
253
- [ce, d.value[n[t.optionUniqueIdKey]]]
263
+ [se, a.value[l[t.optionUniqueIdKey]]]
254
264
  ])
255
- ])) : ue("", !0)
265
+ ])) : ce("", !0)
256
266
  ]),
257
267
  _: 3
258
268
  }, 8, ["show-select-all", "is-open", "options", "selected", "display-value", "placeholder", "inline-search-placeholder", "option-name-key", "size", "test-id", "disabled", "custom-number-of-displayed-options"]));