@ironsource/shared-ui 2.1.12-test.98 → 2.1.12

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 (248) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
  4. package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
  6. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
  7. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
  8. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  9. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  10. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +1 -0
  11. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  12. package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
  13. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  14. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  15. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  16. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  17. package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
  18. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  19. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
  20. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  21. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  22. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  23. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  24. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  25. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  26. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  27. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  28. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  29. package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
  30. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  31. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  32. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  33. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  34. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  35. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  36. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  37. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  38. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  39. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  40. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  41. package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
  42. package/components/chart/Chart.vue.d.ts +21 -1
  43. package/components/chart/Chart.vue.js +3 -3
  44. package/components/chart/Chart.vue2.js +130 -114
  45. package/components/chart/ChartHeader.vue.d.ts +5 -0
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +49 -44
  48. package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
  49. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  50. package/components/chart/ChartHeaderTrend.vue2.js +43 -39
  51. package/components/chart/ChartLegend.vue.d.ts +5 -0
  52. package/components/chart/ChartLegend.vue.js +3 -3
  53. package/components/chart/ChartLegend.vue2.js +76 -71
  54. package/components/chart/ChartPlane.vue.d.ts +15 -0
  55. package/components/chart/ChartPlane.vue.js +5 -5
  56. package/components/chart/ChartPlane.vue2.js +173 -156
  57. package/components/chart/ChartStoryArgs.d.ts +17 -0
  58. package/components/chart/ChartTooltip.vue.d.ts +5 -0
  59. package/components/chart/ChartTooltip.vue.js +2 -2
  60. package/components/chart/ChartTooltip.vue2.js +39 -35
  61. package/components/chart/LegendSorting.vue.d.ts +5 -0
  62. package/components/chart/LegendSorting.vue.js +16 -14
  63. package/components/chart/SettingsHeader.vue.d.ts +19 -3
  64. package/components/chart/SettingsHeader.vue.js +3 -3
  65. package/components/chart/SettingsHeader.vue2.js +36 -29
  66. package/components/chart/TooltipHeader.vue.js +3 -3
  67. package/components/chart/TooltipHeader.vue2.js +26 -26
  68. package/components/chart/colorPalette.d.ts +2 -1
  69. package/components/chart/colorPalette.js +47 -33
  70. package/components/chart/composables/useColorsMap.d.ts +3 -1
  71. package/components/chart/composables/useColorsMap.js +32 -30
  72. package/components/chart/consts.d.ts +5 -1
  73. package/components/chart/consts.js +30 -26
  74. package/components/chart/index.d.ts +77 -1
  75. package/components/chart/mockData.d.ts +15 -0
  76. package/components/chart/types.d.ts +3 -1
  77. package/components/chart/types.js +5 -5
  78. package/components/chart/utils/utils.d.ts +1 -1
  79. package/components/chart/utils/utils.js +20 -14
  80. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  81. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  82. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  83. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  84. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  85. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  86. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  87. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  88. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  89. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  90. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  91. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  92. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  93. package/components/columnConfigurator/consts.d.ts +1 -0
  94. package/components/columnConfigurator/consts.js +4 -0
  95. package/components/columnConfigurator/index.d.ts +73 -0
  96. package/components/columnConfigurator/index.js +6 -0
  97. package/components/columnConfigurator/mockData.d.ts +30 -0
  98. package/components/columnConfigurator/utils.d.ts +2 -0
  99. package/components/columnConfigurator/utils.js +18 -0
  100. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  101. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  102. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  103. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  104. package/components/columnPicker/OptionChip.vue.js +7 -0
  105. package/components/columnPicker/OptionChip.vue2.js +46 -0
  106. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  107. package/components/columnPicker/RemoveButton.vue.js +7 -0
  108. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  109. package/components/columnPicker/index.d.ts +388 -0
  110. package/components/columnPicker/index.js +6 -0
  111. package/components/columnPicker/mockData.d.ts +8 -0
  112. package/components/dateRange/common/DateRange.common.js +60 -60
  113. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  114. package/components/dialog/v3/index.d.ts +46 -46
  115. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  116. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  117. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  118. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  119. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  120. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  121. package/components/dialog/v4/DialogV4.vue.d.ts +9 -9
  122. package/components/dialog/v4/DialogV4.vue.js +3 -3
  123. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  124. package/components/dialog/v4/index.d.ts +157 -157
  125. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  126. package/components/dropdown/v3/index.d.ts +20 -20
  127. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  128. package/components/dropdown/v4/ConditionalDropdown.vue2.js +194 -187
  129. package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
  130. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  131. package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
  132. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  133. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  134. package/components/dropdown/v4/OptionV4.vue2.js +83 -70
  135. package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
  136. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  137. package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
  138. package/components/dropdown/v4/index.d.ts +81 -3
  139. package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
  140. package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
  141. package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
  142. package/components/emptyState/v4/index.d.ts +20 -1
  143. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  144. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  145. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  146. package/components/includeExclude/index.d.ts +70 -70
  147. package/components/input/v4/TextField.vue.d.ts +12 -0
  148. package/components/input/v4/TextField.vue.js +3 -3
  149. package/components/input/v4/TextField.vue2.js +129 -105
  150. package/components/input/v4/index.d.ts +46 -2
  151. package/components/link/Link.vue.d.ts +95 -0
  152. package/components/link/Link.vue.js +7 -0
  153. package/components/link/Link.vue2.js +65 -0
  154. package/components/link/index.d.ts +296 -0
  155. package/components/link/index.js +6 -0
  156. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  157. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  158. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  159. package/components/radioButton/v3/index.d.ts +20 -1
  160. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  161. package/components/sortableList/LoaderBars.vue.js +7 -0
  162. package/components/sortableList/LoaderBars.vue2.js +25 -0
  163. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  164. package/components/sortableList/SortableItem.vue.js +5 -5
  165. package/components/sortableList/SortableItem.vue2.js +86 -70
  166. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  167. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  168. package/components/sortableList/SortableList.types.d.ts +1 -0
  169. package/components/sortableList/SortableList.vue.d.ts +12 -2
  170. package/components/sortableList/SortableList.vue.js +5 -5
  171. package/components/sortableList/SortableList.vue2.js +111 -113
  172. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  173. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  174. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  175. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  176. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  177. package/components/sortableList/composables/useHoverEffect.js +1 -1
  178. package/components/sortableList/consts.d.ts +2 -0
  179. package/components/sortableList/consts.js +4 -2
  180. package/components/sortableList/index.d.ts +77 -39
  181. package/components/table/common/consts.d.ts +2 -0
  182. package/components/table/common/consts.js +6 -4
  183. package/components/table/v4/DataGrid.vue.d.ts +12 -7
  184. package/components/table/v4/DataGrid.vue.js +4 -4
  185. package/components/table/v4/DataGrid.vue2.js +273 -268
  186. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  187. package/components/table/v4/DataGridContainer.vue.js +7 -0
  188. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  189. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  190. package/components/table/v4/DataGridHeader.vue.js +7 -0
  191. package/components/table/v4/DataGridHeader.vue2.js +84 -0
  192. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  193. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  194. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  195. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  196. package/components/table/v4/MultipleDataGrid.vue2.js +92 -90
  197. package/components/table/v4/index.d.ts +646 -332
  198. package/components/table/v4/index.js +11 -5
  199. package/components/table/v4/storyUtils.d.ts +25 -0
  200. package/components/tagsField/TagsField.types.d.ts +4 -0
  201. package/components/tagsField/TagsField.vue.d.ts +65 -0
  202. package/components/tagsField/TagsField.vue.js +7 -0
  203. package/components/tagsField/TagsField.vue2.js +90 -0
  204. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  205. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  206. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  207. package/components/tagsField/consts.d.ts +1 -0
  208. package/components/tagsField/consts.js +4 -0
  209. package/components/tagsField/index.d.ts +75 -0
  210. package/components/tagsField/index.js +6 -0
  211. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -0
  212. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  213. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  214. package/components/tooltip/v4/index.d.ts +20 -1
  215. package/index.d.ts +2675 -1649
  216. package/index.js +137 -121
  217. package/package.json +18 -1
  218. package/testids/index.d.ts +47 -1
  219. package/testids/index.js +40 -32
  220. package/utils/date.d.ts +1 -0
  221. package/utils/date.js +9 -0
  222. package/utils/formatNumbers.d.ts +1 -1
  223. package/utils/formatNumbers.js +38 -21
  224. package/utils/object.d.ts +2 -0
  225. package/utils/object.js +9 -5
  226. package/utils/search.js +1 -1
  227. package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +0 -1
  228. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
  229. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  230. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
  231. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  232. package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
  233. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +0 -1
  234. package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +0 -1
  235. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  236. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +0 -1
  237. package/DropdownV4.vue_vue_type_style_index_0_scoped_934163c0_lang.css +0 -1
  238. package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
  239. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  240. package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +0 -1
  241. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  242. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  243. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  244. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  245. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  246. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +0 -1
  247. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +0 -1
  248. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
@@ -1,4 +1,4 @@
1
- import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css"; import { defineComponent as ne, provide as le, ref as c, computed as K, onMounted as te, watch as E, openBlock as g, createBlock as D, unref as d, withCtx as h, createVNode as C, mergeProps as z, createSlots as oe, renderSlot as ie, createElementVNode as M, withModifiers as S, createTextVNode as de, createElementBlock as B, withDirectives as ae, Fragment as se, renderList as re, vShow as ce, createCommentVNode as ue } from "vue";
1
+ import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css"; import { defineComponent as te, provide as ne, ref as s, computed as m, onMounted as le, watch as b, openBlock as K, createBlock as D, unref as a, withCtx as f, createVNode as k, mergeProps as z, createSlots as ie, renderSlot as oe, createElementVNode as M, withModifiers as E, createTextVNode as ae, createElementBlock as B, withDirectives as de, Fragment as re, renderList as ce, vShow as se, createCommentVNode as ue } from "vue";
2
2
  import pe from "./DropdownV4.vue.js";
3
3
  import ye from "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
@@ -7,16 +7,16 @@ import "./AppDropdownTrigger.vue.js";
7
7
  import "./ButtonDropdownTrigger.vue.js";
8
8
  import "./ButtonFilterDropdownTrigger.vue.js";
9
9
  import "./TreeDropdown.vue.js";
10
- import w from "./OptionV4.vue.js";
10
+ import S from "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
12
- import { useChildOptions as he } from "../composables/useChildOptions.js";
13
- import fe from "../../search/v4/SearchV4.vue.js";
12
+ import { useChildOptions as fe } from "../composables/useChildOptions.js";
13
+ import he from "../../search/v4/SearchV4.vue.js";
14
14
  import { useTestIdAttrs as ve } from "../../../utils/testIds.js";
15
- import { DropdownTestIdModifiers as $ } from "../../../testids/index.js";
16
- const me = {
15
+ import { DropdownTestIdModifiers as F } from "../../../testids/index.js";
16
+ const ge = {
17
17
  key: 0,
18
18
  class: "child-options"
19
- }, Ae = /* @__PURE__ */ ne({
19
+ }, Ve = /* @__PURE__ */ te({
20
20
  __name: "TreeDropdown",
21
21
  props: {
22
22
  options: null,
@@ -39,230 +39,234 @@ const me = {
39
39
  disabledOptionKey: { default: "disabled" },
40
40
  optionChildrenKey: null,
41
41
  optionUniqueIdKey: null,
42
- preExpandedOptions: null
42
+ preExpandedOptions: null,
43
+ triggerFeedbackText: { default: "" },
44
+ triggerFeedbackVariant: { default: null }
43
45
  },
44
46
  emits: ["update:selected", "update:isOpen"],
45
- setup(t, { emit: b }) {
46
- const n = t;
47
- le("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(() => {
47
+ setup(l, { emit: w }) {
48
+ const t = l;
49
+ ne("isTreeDropdown", !0);
50
+ const g = s([]), u = s([]), T = s({}), x = s(!1), o = s([...t.selected]), p = s(""), O = s(!0), N = m(() => u.value.reduce((e, i) => (i[t.optionChildrenKey] && i[t.optionChildrenKey].length && i[t.optionChildrenKey].forEach(() => {
49
51
  e = e + 1;
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]
52
+ }), i[t.optionChildrenKey] || (e = e + 1), e), 0)), U = () => {
53
+ t.options.forEach((e) => {
54
+ e[t.optionChildrenKey] && e[t.optionChildrenKey].length && (T.value[e[t.optionUniqueIdKey]] = [
55
+ ...e[t.optionChildrenKey]
54
56
  ]);
55
- }), m.value = [...n.options], u.value = [...n.options];
56
- }, { hasChildren: f, getChildren: v, allChildrenSelected: I, someChildrenSelected: P } = he(i, n.optionChildrenKey), q = (e) => {
57
- if (f(e)) {
58
- I(e) ? i.value = i.value.filter(
59
- (o) => !v(e).includes(o)
60
- ) : i.value = [
61
- ...i.value.filter((o) => !v(e).includes(o)),
57
+ }), g.value = [...t.options], u.value = [...t.options];
58
+ }, { hasChildren: h, getChildren: v, allChildrenSelected: C, someChildrenSelected: $ } = fe(o, t.optionChildrenKey), q = (e) => {
59
+ if (h(e)) {
60
+ C(e) ? o.value = o.value.filter(
61
+ (i) => !v(e).includes(i)
62
+ ) : o.value = [
63
+ ...o.value.filter((i) => !v(e).includes(i)),
62
64
  ...v(e)
63
65
  ];
64
66
  return;
65
67
  }
66
- i.value.includes(e) ? i.value = i.value.filter(
67
- (o) => o !== e
68
- ) : i.value = [...i.value, e];
69
- }, A = (e) => i.value.includes(e), J = (e) => 1 + (f(e) ? v(e).length : 0), j = () => {
70
- b("update:selected", i.value), L.value = y.value;
71
- }, F = () => {
72
- i.value = [];
68
+ o.value.includes(e) ? o.value = o.value.filter(
69
+ (i) => i !== e
70
+ ) : o.value = [...o.value, e];
71
+ }, V = (e) => o.value.includes(e), P = (e) => 1 + (h(e) ? v(e).length : 0), J = () => {
72
+ w("update:selected", o.value), A.value = y.value;
73
+ }, j = () => {
74
+ o.value = [];
73
75
  }, G = () => {
74
76
  const e = /* @__PURE__ */ new Set([]);
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 s of l[n.optionChildrenKey])
80
- if (n.selected?.includes(s)) {
81
- e.add(l);
77
+ u.value.forEach((n) => {
78
+ if (t.selected?.includes(n))
79
+ e.add(n);
80
+ else if (n[t.optionChildrenKey] && n[t.optionChildrenKey].length) {
81
+ for (const r of n[t.optionChildrenKey])
82
+ if (t.selected?.includes(r)) {
83
+ e.add(n);
82
84
  break;
83
85
  }
84
86
  }
85
87
  });
86
- const o = Array.from(e);
87
- return u.value.forEach((l) => {
88
- !n.selected.includes(l) && !e.has(l) && o.push(l);
89
- }), o;
88
+ const i = Array.from(e);
89
+ return u.value.forEach((n) => {
90
+ !t.selected.includes(n) && !e.has(n) && i.push(n);
91
+ }), i;
90
92
  };
91
- te(() => {
92
- O.value || (U(), O.value = !0, n.preExpandedOptions && n.preExpandedOptions.forEach((e) => {
93
- a.value[e] = 1;
93
+ le(() => {
94
+ x.value || (U(), x.value = !0, t.preExpandedOptions && t.preExpandedOptions.forEach((e) => {
95
+ d.value[e] = 1;
94
96
  }));
95
- }), E(
96
- () => n.options,
97
+ }), b(
98
+ () => t.options,
97
99
  () => {
98
100
  U();
99
101
  }
100
- ), E(
101
- () => n.selected,
102
- (e, o) => {
103
- JSON.stringify(e) !== JSON.stringify(o) && (i.value = [...n.selected]);
102
+ ), b(
103
+ () => t.selected,
104
+ (e, i) => {
105
+ JSON.stringify(e) !== JSON.stringify(i) && (o.value = [...t.selected]);
104
106
  }
105
107
  );
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), Q = (e) => {
107
- b("update:isOpen", e), n.isOpen ? m.value = G() : (i.value = [...n.selected], p.value = "");
108
- }, a = c({}), R = (e) => {
109
- a.value[e[n.optionUniqueIdKey]] ? delete a.value[e[n.optionUniqueIdKey]] : a.value[e[n.optionUniqueIdKey]] = 1;
108
+ const y = m(() => o.value.length < N.value ? !1 : o.value.length === N.value), H = m(() => !y.value && o.value.length > 0), A = s(y.value), Q = (e) => {
109
+ w("update:isOpen", e), t.isOpen ? g.value = G() : (o.value = [...t.selected], p.value = "");
110
+ }, d = s({}), R = (e) => {
111
+ d.value[e[t.optionUniqueIdKey]] ? delete d.value[e[t.optionUniqueIdKey]] : d.value[e[t.optionUniqueIdKey]] = 1;
110
112
  };
111
- function W(e, o) {
112
- const l = e.toLowerCase(), s = [];
113
- return o.value.forEach((r) => {
114
- const k = r[n.optionNameKey].toLowerCase().includes(l), V = T.value[r[n.optionUniqueIdKey]]?.filter(
115
- (ee) => ee[n.optionNameKey].toLowerCase().includes(l)
113
+ function W(e, i) {
114
+ const n = e.toLowerCase(), r = [];
115
+ return i.value.forEach((c) => {
116
+ const I = c[t.optionNameKey].toLowerCase().includes(n), L = T.value[c[t.optionUniqueIdKey]]?.filter(
117
+ (ee) => ee[t.optionNameKey].toLowerCase().includes(n)
116
118
  ) || [];
117
- (k || V.length > 0) && (r[n.optionChildrenKey] = V, s.push(r));
118
- }), s;
119
+ (I || L.length > 0) && (c[t.optionChildrenKey] = L, r.push(c));
120
+ }), r;
119
121
  }
120
122
  const X = (e) => {
121
- const o = W(e, u);
122
- e && (Object.keys(a.value).forEach((l) => {
123
- delete a.value[l];
124
- }), o.forEach((l) => {
125
- Array.isArray(l[n.optionChildrenKey]) && l[n.optionChildrenKey].length && (a.value[l[n.optionUniqueIdKey]] = 1);
126
- })), m.value = o;
127
- }, Y = K(() => {
128
- const e = n.options.length, o = n.options.reduce(
129
- (l, s) => (a.value[s[n.optionUniqueIdKey]] && (l = l + s[n.optionChildrenKey].length), l),
123
+ const i = W(e, u);
124
+ e && (Object.keys(d.value).forEach((n) => {
125
+ delete d.value[n];
126
+ }), i.forEach((n) => {
127
+ Array.isArray(n[t.optionChildrenKey]) && n[t.optionChildrenKey].length && (d.value[n[t.optionUniqueIdKey]] = 1);
128
+ })), g.value = i;
129
+ }, Y = m(() => {
130
+ const e = t.options.length, i = t.options.reduce(
131
+ (n, r) => (d.value[r[t.optionUniqueIdKey]] && (n = n + r[t.optionChildrenKey].length), n),
130
132
  0
131
133
  );
132
- return e + o;
134
+ return e + i;
133
135
  });
134
- E(
136
+ b(
135
137
  () => p.value,
136
138
  () => {
137
- X(p.value), x.value = !p.value;
139
+ X(p.value), O.value = !p.value;
138
140
  }
139
141
  );
140
142
  const Z = () => {
141
- y.value ? i.value = [] : (i.value = [], u.value.forEach((e) => {
142
- if (e[n.optionChildrenKey] && e[n.optionChildrenKey].length)
143
- for (const o of e[n.optionChildrenKey])
144
- i.value = [o, ...i.value];
143
+ y.value ? o.value = [] : (o.value = [], u.value.forEach((e) => {
144
+ if (e[t.optionChildrenKey] && e[t.optionChildrenKey].length)
145
+ for (const i of e[t.optionChildrenKey])
146
+ o.value = [i, ...o.value];
145
147
  else
146
- i.value = [e, ...i.value];
148
+ o.value = [e, ...o.value];
147
149
  }));
148
- }, _ = ve(n.testId, $);
149
- return (e, o) => (g(), D(d(pe), {
150
+ }, _ = ve(t.testId, F);
151
+ return (e, i) => (K(), D(a(pe), {
150
152
  multi: "",
151
153
  class: "tree-dropdown",
152
- "show-select-all": x.value,
153
- "is-open": t.isOpen,
154
- options: m.value,
155
- selected: t.selected,
156
- "display-value": t.displayValue,
157
- placeholder: t.placeholder,
154
+ "show-select-all": O.value,
155
+ "is-open": l.isOpen,
156
+ options: g.value,
157
+ selected: l.selected,
158
+ "display-value": l.displayValue,
159
+ placeholder: l.placeholder,
158
160
  "inline-search": "",
159
- "inline-search-placeholder": t.inlineSearchPlaceholder,
160
- "option-name-key": t.optionNameKey,
161
- size: t.size,
162
- "test-id": t.testId,
163
- disabled: t.disabled,
161
+ "inline-search-placeholder": l.inlineSearchPlaceholder,
162
+ "option-name-key": l.optionNameKey,
163
+ size: l.size,
164
+ "test-id": l.testId,
165
+ disabled: l.disabled,
164
166
  "disable-virtual-scroll": "",
165
- "override-option-count-calculation": J,
167
+ "override-option-count-calculation": P,
166
168
  "trigger-show-all-selected-text": !1,
167
169
  "predefined-trigger": "default",
168
- "custom-number-of-displayed-options": d(Y),
170
+ "custom-number-of-displayed-options": a(Y),
171
+ "trigger-feedback-text": l.triggerFeedbackText,
172
+ "trigger-feedback-variant": l.triggerFeedbackVariant,
169
173
  "onUpdate:isOpen": Q,
170
- onApply: j,
171
- onClear: F
174
+ onApply: J,
175
+ onClear: j
172
176
  }, {
173
- "dropdown-trigger": h(({ defaultTriggerProps: l }) => [
174
- C(d(ye), z(l, {
175
- "all-selected": L.value,
177
+ "dropdown-trigger": f(({ defaultTriggerProps: n }) => [
178
+ k(a(ye), z(n, {
179
+ "all-selected": A.value,
176
180
  "show-all-selected-text": ""
177
- }), oe({ _: 2 }, [
181
+ }), ie({ _: 2 }, [
178
182
  e.$slots["trigger-end-icon"] ? {
179
183
  name: "end-icon",
180
- fn: h(() => [
181
- ie(e.$slots, "trigger-end-icon", {}, void 0, !0)
184
+ fn: f(() => [
185
+ oe(e.$slots, "trigger-end-icon", {}, void 0, !0)
182
186
  ]),
183
187
  key: "0"
184
188
  } : void 0
185
189
  ]), 1040, ["all-selected"])
186
190
  ]),
187
- "inline-search": h(() => [
188
- C(d(fe), {
191
+ "inline-search": f(() => [
192
+ k(a(he), {
189
193
  modelValue: p.value,
190
- "onUpdate:modelValue": o[0] || (o[0] = (l) => p.value = l),
194
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => p.value = n),
191
195
  class: "tree-search",
192
- placeholder: t.inlineSearchPlaceholder,
196
+ placeholder: l.inlineSearchPlaceholder,
193
197
  variant: "transparent",
194
198
  size: "md",
195
199
  "auto-focus": "",
196
- "test-id": t.testId
200
+ "test-id": l.testId
197
201
  }, null, 8, ["modelValue", "placeholder", "test-id"])
198
202
  ]),
199
- "select-all": h(() => [
203
+ "select-all": f(() => [
200
204
  M("li", null, [
201
- C(d(w), z({
202
- "aria-selected": d(y),
203
- "aria-disabled": !!t.disabled,
204
- "selected-prop": d(y),
205
- "is-indeterminate": d(H),
205
+ k(a(S), z({
206
+ "aria-selected": a(y),
207
+ "aria-disabled": !!l.disabled,
208
+ "selected-prop": a(y),
209
+ "is-indeterminate": a(H),
206
210
  "is-multi": "",
207
211
  "select-all-option": ""
208
- }, d(_)[d($).SELECT_ALL], {
209
- onClick: o[1] || (o[1] = S((l) => Z(), ["stop"]))
212
+ }, a(_)[a(F).SELECT_ALL], {
213
+ onClick: i[1] || (i[1] = E((n) => Z(), ["stop"]))
210
214
  }), {
211
- default: h(() => [
212
- de(" Select all ")
215
+ default: f(() => [
216
+ ae(" Select all ")
213
217
  ]),
214
218
  _: 1
215
219
  }, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
216
220
  ])
217
221
  ]),
218
- default: h(({ option: l, index: s }) => [
219
- C(d(w), {
220
- option: l,
221
- "selected-prop": d(f)(l) ? d(I)(l) : A(l),
222
- "is-indeterminate": !d(I)(l) && d(P)(l),
223
- disabled: l[t.disabledOptionKey],
224
- "name-key": t.optionNameKey,
225
- "image-key": t.optionImageKey,
226
- "icon-key": t.optionIconKey,
227
- "icon-type": t.optionIconType,
228
- "end-icon-key": t.optionEndIconKey,
229
- "end-icon-type": t.optionEndIconType,
230
- "end-text-icon-key": t.optionEndTextIconKey,
231
- "tree-main-option": d(f)(l),
232
- "tree-main-option-expanded": a.value[l[t.optionUniqueIdKey]],
222
+ default: f(({ option: n, index: r }) => [
223
+ k(a(S), {
224
+ option: n,
225
+ "selected-prop": a(h)(n) ? a(C)(n) : V(n),
226
+ "is-indeterminate": !a(C)(n) && a($)(n),
227
+ disabled: n[l.disabledOptionKey],
228
+ "name-key": l.optionNameKey,
229
+ "image-key": l.optionImageKey,
230
+ "icon-key": l.optionIconKey,
231
+ "icon-type": l.optionIconType,
232
+ "end-icon-key": l.optionEndIconKey,
233
+ "end-icon-type": l.optionEndIconType,
234
+ "end-text-icon-key": l.optionEndTextIconKey,
235
+ "tree-main-option": a(h)(n),
236
+ "tree-main-option-expanded": d.value[n[l.optionUniqueIdKey]],
233
237
  "stop-option-click-event-propagation": "",
234
238
  "is-multi": "",
235
- onClick: S(() => q(l), ["stop"]),
239
+ onClick: E(() => q(n), ["stop"]),
236
240
  onToggleTreeCollapse: R
237
241
  }, 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"]),
238
- d(f)(l) ? (g(), B("div", me, [
239
- ae(M("div", null, [
240
- (g(!0), B(se, null, re(d(v)(l), (r, k) => (g(), D(d(w), {
241
- key: `${s}-${k}`,
242
- option: r,
243
- "selected-prop": A(r),
244
- disabled: r[t.disabledOptionKey],
245
- "name-key": t.optionNameKey,
246
- "image-key": t.optionImageKey,
247
- "icon-key": t.optionIconKey,
248
- "icon-type": t.optionIconType,
249
- "end-icon-key": t.optionEndIconKey,
250
- "end-icon-type": t.optionEndIconType,
251
- "end-text-icon-key": t.optionEndTextIconKey,
252
- "tree-child-shown": a.value[l[t.optionUniqueIdKey]],
242
+ a(h)(n) ? (K(), B("div", ge, [
243
+ de(M("div", null, [
244
+ (K(!0), B(re, null, ce(a(v)(n), (c, I) => (K(), D(a(S), {
245
+ key: `${r}-${I}`,
246
+ option: c,
247
+ "selected-prop": V(c),
248
+ disabled: c[l.disabledOptionKey],
249
+ "name-key": l.optionNameKey,
250
+ "image-key": l.optionImageKey,
251
+ "icon-key": l.optionIconKey,
252
+ "icon-type": l.optionIconType,
253
+ "end-icon-key": l.optionEndIconKey,
254
+ "end-icon-type": l.optionEndIconType,
255
+ "end-text-icon-key": l.optionEndTextIconKey,
256
+ "tree-child-shown": d.value[n[l.optionUniqueIdKey]],
253
257
  "stop-option-click-event-propagation": "",
254
258
  "is-multi": "",
255
- onClick: S(() => q(r), ["stop"])
259
+ onClick: E(() => q(c), ["stop"])
256
260
  }, 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))
257
261
  ], 512), [
258
- [ce, a.value[l[t.optionUniqueIdKey]]]
262
+ [se, d.value[n[l.optionUniqueIdKey]]]
259
263
  ])
260
264
  ])) : ue("", !0)
261
265
  ]),
262
266
  _: 3
263
- }, 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"]));
267
+ }, 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", "trigger-feedback-text", "trigger-feedback-variant"]));
264
268
  }
265
269
  });
266
270
  export {
267
- Ae as default
271
+ Ve as default
268
272
  };