@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
@@ -0,0 +1,322 @@
1
+ import "../../ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css"; import { defineComponent as ie, ref as K, watch as ne, computed as c, provide as se, openBlock as d, createElementBlock as m, Fragment as S, renderSlot as oe, createVNode as r, unref as s, withCtx as p, createElementVNode as u, mergeProps as ae, renderList as R, withModifiers as U, createTextVNode as k, toDisplayString as V, withDirectives as de, createBlock as W, vShow as re, createCommentVNode as q, isRef as ue } from "vue";
2
+ import ce from "./OptionChip.vue.js";
3
+ import "../dropdown/v4/DropdownV4.vue.js";
4
+ import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
5
+ import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
6
+ import "../dropdown/v4/ChipDropdownTrigger.vue.js";
7
+ import "../dropdown/v4/AppDropdownTrigger.vue.js";
8
+ import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
9
+ import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
10
+ import "../dropdown/v4/TreeDropdown.vue.js";
11
+ import Q from "../dropdown/v4/OptionV4.vue.js";
12
+ import "../dropdown/v4/ConditionalDropdown.vue.js";
13
+ import { DropdownContext as me } from "../dropdown/common/DropdownContext.js";
14
+ import w from "../typography/v4/Typography.vue.js";
15
+ import pe from "../dialog/v4/DialogV4.vue.js";
16
+ import fe from "../sortableList/SortableList.vue.js";
17
+ import ye from "../link/Link.vue.js";
18
+ import ve from "../search/v4/SearchV4.vue.js";
19
+ import { matchString as he } from "../../utils/search.js";
20
+ import "../button/v4/ButtonV4.vue.js";
21
+ import ge from "../button/v4/IconButtonV4.vue.js";
22
+ import "../button/v4/ButtonGroup.vue.js";
23
+ import "../button/v4/ToggleButtonGroupAB.vue.js";
24
+ import { useTestIdAttrs as Ke } from "../../utils/testIds.js";
25
+ import { ColumnPickerTestIdModifiers as B } from "../../testids/index.js";
26
+ import Se from "./RemoveButton.vue.js";
27
+ const ke = { class: "content" }, be = { class: "options-list-wrapper" }, Ce = { class: "search-wrapper" }, xe = { class: "options-list scrollable-list" }, Te = {
28
+ key: 0,
29
+ class: "inline-group"
30
+ }, Ie = ["onClick"], Oe = {
31
+ key: 0,
32
+ class: "no-result-container"
33
+ }, Re = { class: "selected-list-header" }, Ve = { class: "selected-list-wrapper scrollable-list" }, lt = /* @__PURE__ */ ie({
34
+ __name: "ColumnPicker",
35
+ props: {
36
+ selected: { default: () => [] },
37
+ options: { default: () => [] },
38
+ defaultSelection: { default: null },
39
+ inlineGroupIds: { default: () => [] },
40
+ headerText: { default: "Customize columns" },
41
+ noResultsText: { default: "No results" },
42
+ searchPlaceholder: { default: "Search" },
43
+ searchAutoFocus: { type: Boolean, default: !0 },
44
+ idKey: { default: "id" },
45
+ displayKey: { default: "label" },
46
+ childrenKey: { default: "options" },
47
+ disabledKey: { default: "disabled" },
48
+ minSelections: { default: 1 },
49
+ minSelectionsTooltipMessage: { default: "Select at least %count% options" },
50
+ appendToBody: { type: Boolean, default: !0 },
51
+ testId: { default: "" }
52
+ },
53
+ emits: ["update:selected"],
54
+ setup(n, { emit: j }) {
55
+ const t = n, a = K([]), f = K([]), v = K(""), y = K(!1), G = () => {
56
+ t.selected?.length ? a.value = [...t.selected] : t.defaultSelection?.length ? a.value = [...t.defaultSelection] : a.value = [];
57
+ }, b = () => {
58
+ y.value = !1, f.value = [], v.value = "", G();
59
+ };
60
+ ne(
61
+ [() => t.selected, () => t.defaultSelection],
62
+ () => {
63
+ G();
64
+ },
65
+ {
66
+ immediate: !0
67
+ }
68
+ );
69
+ const P = () => {
70
+ y.value = !y.value;
71
+ }, C = c({
72
+ get() {
73
+ return a.value.map((e) => {
74
+ const i = Z(e) ? A(e)?.[t.displayKey] + " " : "";
75
+ return {
76
+ id: e[t.idKey],
77
+ displayText: i + e[t.displayKey],
78
+ isDisabled: I(e)
79
+ };
80
+ });
81
+ },
82
+ set(e) {
83
+ const i = e.map((l) => l.id);
84
+ a.value = i.map(
85
+ (l) => a.value.find((o) => o[t.idKey] === l)
86
+ );
87
+ }
88
+ }), x = c(
89
+ () => a.value?.length <= t.minSelections
90
+ ), T = c(() => {
91
+ if (!t.minSelections)
92
+ return "";
93
+ const e = t.minSelections, i = t.minSelectionsTooltipMessage;
94
+ return i ? i.replace("%count%", e.toString()) : "";
95
+ }), D = (e) => g(e) && x.value, I = (e) => e[t.disabledKey] || D(e), g = (e) => a.value.some(
96
+ (i) => i[t.idKey] === e[t.idKey]
97
+ ), H = (e) => {
98
+ g(e) ? L(e[t.idKey]) : J(e);
99
+ }, O = (e) => {
100
+ t.disabledKey && e[t.disabledKey] || H(e);
101
+ }, J = (e) => {
102
+ a.value.push(e);
103
+ }, L = (e) => {
104
+ a.value = a.value.filter(
105
+ (i) => i[t.idKey] !== e
106
+ );
107
+ }, F = c(() => {
108
+ if (!t.defaultSelection?.length)
109
+ return !1;
110
+ const e = a.value.map((l) => l[t.idKey]), i = t.defaultSelection.map((l) => l[t.idKey]);
111
+ return e.length !== i.length ? !0 : !i.every((l) => e.includes(l));
112
+ }), X = () => {
113
+ F.value && (a.value = [...t.defaultSelection]);
114
+ }, $ = (e) => E.value ? !0 : !f.value.includes(e), Y = (e) => t.inlineGroupIds?.includes(e), A = (e) => t.options.find(
115
+ (i) => h(i).map((l) => l[t.idKey]).includes(e[t.idKey])
116
+ ), Z = (e) => {
117
+ const i = A(e);
118
+ return i ? t.inlineGroupIds?.includes(i[t.idKey]) : !1;
119
+ }, M = (e) => {
120
+ f.value.includes(e) ? f.value = f.value.filter(
121
+ (i) => i !== e
122
+ ) : f.value.push(e);
123
+ }, h = (e) => e[t.childrenKey] || [], _ = c(() => a.value.length), N = c(() => v.value?.trim()), E = c(() => !!N.value), z = c(() => E.value ? t.options.map((i) => ({
124
+ ...i,
125
+ [t.childrenKey]: h(i).filter(
126
+ (l) => he(l[t.displayKey], N.value)
127
+ )
128
+ })).filter(
129
+ (i) => h(i).length > 0
130
+ ) : t.options), ee = Ke(t.testId, B), te = () => {
131
+ j("update:selected", a.value), b();
132
+ };
133
+ return se(me, {
134
+ activeIndex: null,
135
+ activeOption: null,
136
+ clearSelection: () => {
137
+ },
138
+ selectedOption: null,
139
+ clearable: !1,
140
+ listRef: null,
141
+ options: null,
142
+ mode: null,
143
+ type: null,
144
+ open: y,
145
+ disabled: !1,
146
+ mandatory: !1,
147
+ labelRef: null,
148
+ size: null,
149
+ search: () => {
150
+ },
151
+ toggle: () => {
152
+ },
153
+ placeholder: "",
154
+ select: O,
155
+ query: v,
156
+ selectedValue: null,
157
+ goToOption: () => {
158
+ },
159
+ registerInput: () => {
160
+ },
161
+ registerOption: () => {
162
+ },
163
+ unRegisterOption: () => {
164
+ }
165
+ }), (e, i) => (d(), m(S, null, [
166
+ oe(e.$slots, "trigger", {
167
+ triggerProps: { onClick: P }
168
+ }, () => [
169
+ r(s(ge), {
170
+ "icon-name": "layout",
171
+ variant: "outlined",
172
+ "test-id": `${n.testId}-${s(B).TRIGGER}`,
173
+ onClick: P
174
+ }, null, 8, ["test-id"])
175
+ ], !0),
176
+ r(s(pe), {
177
+ modelValue: y.value,
178
+ "onUpdate:modelValue": i[2] || (i[2] = (l) => y.value = l),
179
+ title: n.headerText,
180
+ "no-padding": "",
181
+ "save-button-label": "Save view",
182
+ "close-on-click-outside": "",
183
+ "append-to-body": n.appendToBody,
184
+ "test-id": n.testId,
185
+ onSave: te,
186
+ onClose: b,
187
+ onCancel: b
188
+ }, {
189
+ default: p(() => [
190
+ u("div", ae({ class: "column-picker" }, s(ee)[s(B).WRAPPER]), [
191
+ u("div", ke, [
192
+ u("div", be, [
193
+ u("header", Ce, [
194
+ r(s(ve), {
195
+ modelValue: v.value,
196
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => v.value = l),
197
+ placeholder: n.searchPlaceholder,
198
+ variant: "transparent",
199
+ size: "md",
200
+ "auto-focus": n.searchAutoFocus,
201
+ "test-id": n.testId
202
+ }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
203
+ ]),
204
+ u("ul", xe, [
205
+ (d(!0), m(S, null, R(s(z), (l) => (d(), m("li", {
206
+ key: String(l[n.idKey]),
207
+ class: "options-list__item"
208
+ }, [
209
+ r(s(Q), {
210
+ option: l,
211
+ "tree-main-option": "",
212
+ "tree-main-option-expanded": $(l[n.idKey]),
213
+ onClick: U((o) => M(l[n.idKey]), ["stop"]),
214
+ onToggleTreeCollapse: (o) => M(l[n.idKey])
215
+ }, {
216
+ default: p(() => [
217
+ r(s(w), {
218
+ variant: "h5",
219
+ class: "group-name"
220
+ }, {
221
+ default: p(() => [
222
+ k(V(l[n.displayKey]), 1)
223
+ ]),
224
+ _: 2
225
+ }, 1024)
226
+ ]),
227
+ _: 2
228
+ }, 1032, ["option", "tree-main-option-expanded", "onClick", "onToggleTreeCollapse"]),
229
+ de(u("div", null, [
230
+ Y(l[n.idKey]) ? (d(), m("div", Te, [
231
+ (d(!0), m(S, null, R(h(l), (o) => (d(), W(ce, {
232
+ key: o[n.idKey],
233
+ option: o,
234
+ "name-key": n.displayKey,
235
+ selected: g(o),
236
+ disabled: I(o),
237
+ "tooltip-text": D(o) ? s(T) : null,
238
+ onClick: (le) => O(o)
239
+ }, null, 8, ["option", "name-key", "selected", "disabled", "tooltip-text", "onClick"]))), 128))
240
+ ])) : (d(!0), m(S, { key: 1 }, R(h(l), (o) => (d(), m("div", {
241
+ key: o[n.idKey],
242
+ onClick: U((le) => O(o), ["stop"])
243
+ }, [
244
+ r(s(Q), {
245
+ option: o,
246
+ "selected-prop": g(o),
247
+ "name-key": n.displayKey,
248
+ disabled: I(o),
249
+ "min-max-selection-tooltip-message": s(T),
250
+ "tooltip-attached-to-text": "",
251
+ "is-multi": ""
252
+ }, null, 8, ["option", "selected-prop", "name-key", "disabled", "min-max-selection-tooltip-message"])
253
+ ], 8, Ie))), 128))
254
+ ], 512), [
255
+ [re, $(l[n.idKey])]
256
+ ])
257
+ ]))), 128)),
258
+ s(z).length ? q("", !0) : (d(), m("li", Oe, [
259
+ r(s(w), { variant: "body2" }, {
260
+ default: p(() => [
261
+ k(V(n.noResultsText), 1)
262
+ ]),
263
+ _: 1
264
+ })
265
+ ]))
266
+ ])
267
+ ]),
268
+ u("div", null, [
269
+ u("header", Re, [
270
+ r(s(w), {
271
+ variant: "h5",
272
+ class: "selected-count-text"
273
+ }, {
274
+ default: p(() => [
275
+ k(V(s(_)) + " selected ", 1)
276
+ ]),
277
+ _: 1
278
+ }),
279
+ n.defaultSelection?.length ? (d(), W(s(ye), {
280
+ key: 0,
281
+ variant: "subtitle2",
282
+ disabled: !s(F),
283
+ "test-id": n.testId,
284
+ onClick: X
285
+ }, {
286
+ default: p(() => [
287
+ k(" Reset to default ")
288
+ ]),
289
+ _: 1
290
+ }, 8, ["disabled", "test-id"])) : q("", !0)
291
+ ]),
292
+ u("div", Ve, [
293
+ r(s(fe), {
294
+ items: s(C),
295
+ "onUpdate:items": i[1] || (i[1] = (l) => ue(C) ? C.value = l : null),
296
+ "display-value": (l) => l.displayText,
297
+ variant: "compact",
298
+ "draggable-area": "full",
299
+ "test-id": n.testId
300
+ }, {
301
+ menu: p(({ item: l }) => [
302
+ r(Se, {
303
+ disabled: s(x),
304
+ "tooltip-text": s(x) ? s(T) : null,
305
+ onClick: (o) => L(l.id)
306
+ }, null, 8, ["disabled", "tooltip-text", "onClick"])
307
+ ]),
308
+ _: 1
309
+ }, 8, ["items", "display-value", "test-id"])
310
+ ])
311
+ ])
312
+ ])
313
+ ], 16)
314
+ ]),
315
+ _: 1
316
+ }, 8, ["modelValue", "title", "append-to-body", "test-id"])
317
+ ], 64));
318
+ }
319
+ });
320
+ export {
321
+ lt as default
322
+ };
@@ -0,0 +1,53 @@
1
+ import { TooltipPositions } from '@/components/tooltip/common/Tooltip.types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ option: unknown;
4
+ nameKey: string;
5
+ selected?: boolean;
6
+ disabled?: boolean;
7
+ tooltipText?: string;
8
+ tooltipPlacement?: TooltipPositions;
9
+ }>, {
10
+ selected: boolean;
11
+ disabled: boolean;
12
+ tooltipText: any;
13
+ tooltipPlacement: string;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ click: () => void;
16
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ option: unknown;
18
+ nameKey: string;
19
+ selected?: boolean;
20
+ disabled?: boolean;
21
+ tooltipText?: string;
22
+ tooltipPlacement?: TooltipPositions;
23
+ }>, {
24
+ selected: boolean;
25
+ disabled: boolean;
26
+ tooltipText: any;
27
+ tooltipPlacement: string;
28
+ }>>> & {
29
+ onClick?: () => any;
30
+ }, {
31
+ tooltipText: string;
32
+ tooltipPlacement: TooltipPositions;
33
+ disabled: boolean;
34
+ selected: boolean;
35
+ }>;
36
+ export default _default;
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToRuntimeProps<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: import('vue').PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
+ default: D[K];
49
+ }> : P[K];
50
+ };
51
+ type __VLS_Prettify<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./OptionChip.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-538e4a21"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,46 @@
1
+ import "../../OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css"; import { defineComponent as n, openBlock as c, createBlock as d, unref as t, withCtx as o, createElementVNode as p, normalizeClass as s, withModifiers as r, createVNode as m, createTextVNode as f, toDisplayString as u } from "vue";
2
+ import h from "../typography/v4/Typography.vue.js";
3
+ import x from "../tooltip/v4/TooltipV4.vue.js";
4
+ const k = ["onClick"], g = /* @__PURE__ */ n({
5
+ __name: "OptionChip",
6
+ props: {
7
+ option: null,
8
+ nameKey: null,
9
+ selected: { type: Boolean, default: !1 },
10
+ disabled: { type: Boolean, default: !1 },
11
+ tooltipText: { default: null },
12
+ tooltipPlacement: { default: "right" }
13
+ },
14
+ emits: ["click"],
15
+ setup(e, { emit: l }) {
16
+ const i = e, a = () => {
17
+ i.disabled || l("click");
18
+ };
19
+ return (y, C) => (c(), d(t(x), {
20
+ text: e.tooltipText,
21
+ disabled: !e.tooltipText,
22
+ placement: e.tooltipPlacement
23
+ }, {
24
+ default: o(() => [
25
+ p("div", {
26
+ class: s(["option-chip", {
27
+ "option-chip--disabled": e.disabled,
28
+ "option-chip--selected": e.selected
29
+ }]),
30
+ onClick: r(a, ["stop"])
31
+ }, [
32
+ m(t(h), { variant: "h6" }, {
33
+ default: o(() => [
34
+ f(u(e.option[e.nameKey]), 1)
35
+ ]),
36
+ _: 1
37
+ })
38
+ ], 10, k)
39
+ ]),
40
+ _: 1
41
+ }, 8, ["text", "disabled", "placement"]));
42
+ }
43
+ });
44
+ export {
45
+ g as default
46
+ };
@@ -0,0 +1,38 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ disabled?: boolean;
3
+ tooltipText?: string;
4
+ }>, {
5
+ disabled: boolean;
6
+ tooltipText: string;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ click: () => void;
9
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ disabled?: boolean;
11
+ tooltipText?: string;
12
+ }>, {
13
+ disabled: boolean;
14
+ tooltipText: string;
15
+ }>>> & {
16
+ onClick?: () => any;
17
+ }, {
18
+ tooltipText: string;
19
+ disabled: boolean;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1,7 @@
1
+ import o from "./RemoveButton.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ca7fc11d"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,35 @@
1
+ import "../../RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css"; import { defineComponent as i, openBlock as a, createBlock as n, unref as o, withCtx as d, createVNode as m, normalizeClass as r } from "vue";
2
+ import "../button/v4/ButtonV4.vue.js";
3
+ import s from "../button/v4/IconButtonV4.vue.js";
4
+ import "../button/v4/ButtonGroup.vue.js";
5
+ import "../button/v4/ToggleButtonGroupAB.vue.js";
6
+ import c from "../tooltip/v4/TooltipV4.vue.js";
7
+ const C = /* @__PURE__ */ i({
8
+ __name: "RemoveButton",
9
+ props: {
10
+ disabled: { type: Boolean, default: !1 },
11
+ tooltipText: { default: "" }
12
+ },
13
+ emits: ["click"],
14
+ setup(e, { emit: l }) {
15
+ return (u, t) => (a(), n(o(c), {
16
+ text: e.tooltipText,
17
+ disabled: !e.tooltipText,
18
+ placement: "bottom-end"
19
+ }, {
20
+ default: d(() => [
21
+ m(o(s), {
22
+ class: r(["remove-button", { "remove-button--disabled": e.disabled }]),
23
+ "icon-name": "x",
24
+ size: "extraSmall",
25
+ disabled: e.disabled,
26
+ onClick: t[0] || (t[0] = (p) => l("click"))
27
+ }, null, 8, ["class", "disabled"])
28
+ ]),
29
+ _: 1
30
+ }, 8, ["text", "disabled"]));
31
+ }
32
+ });
33
+ export {
34
+ C as default
35
+ };