@ironsource/shared-ui 2.1.12-rc.5 → 2.1.12-rc.50

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 (352) hide show
  1. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
  3. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  4. package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
  5. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  6. package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_908ef54f_lang.css +1 -0
  8. package/ChartTooltip.vue_vue_type_style_index_0_scoped_3a6b2681_lang.css +1 -0
  9. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
  10. package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css +1 -0
  11. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +1 -0
  12. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
  13. package/DataGrid.vue_vue_type_style_index_0_scoped_ef67c78e_lang.css +1 -0
  14. package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
  15. package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +1 -0
  16. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_e38c881a_lang.css +1 -0
  17. package/DialogFooter.vue_vue_type_style_index_0_scoped_8b7f64fe_lang.css +1 -0
  18. package/DialogHeader.vue_vue_type_style_index_0_scoped_9a814ec3_lang.css +1 -0
  19. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +1 -0
  20. package/DropdownV4.vue_vue_type_style_index_0_scoped_f9907ea0_lang.css +1 -0
  21. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  22. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  23. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
  24. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
  25. package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
  26. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_3caa1d7b_lang.css +1 -0
  27. package/OptionChip.vue_vue_type_style_index_0_scoped_538e4a21_lang.css +1 -0
  28. package/OptionV4.vue_vue_type_style_index_0_scoped_752a357d_lang.css +1 -0
  29. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  30. package/RemoveButton.vue_vue_type_style_index_0_scoped_ca7fc11d_lang.css +1 -0
  31. package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
  32. package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
  33. package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
  34. package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
  35. package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
  36. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_a534c7af_lang.css +1 -0
  37. package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
  38. package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
  39. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  40. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
  41. package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
  42. package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
  43. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +1 -0
  44. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +1 -0
  45. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  46. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +1 -0
  47. package/TooltipV4.vue_vue_type_style_index_0_scoped_8a451e54_lang.css +1 -0
  48. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  49. package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +1 -0
  50. package/components/appIcon/index.d.ts +3 -3
  51. package/components/banner/Banner.vue.d.ts +3 -3
  52. package/components/banner/index.d.ts +7 -7
  53. package/components/button/common/consts.d.ts +1 -0
  54. package/components/button/v3/Button.vue.d.ts +3 -3
  55. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  56. package/components/button/v3/IconButton.vue.d.ts +3 -3
  57. package/components/button/v3/index.d.ts +14 -14
  58. package/components/button/v4/ButtonV4.vue.d.ts +5 -3
  59. package/components/button/v4/ButtonV4.vue.js +4 -4
  60. package/components/button/v4/ButtonV4.vue2.js +28 -27
  61. package/components/button/v4/ToggleButtonGroupAB.vue.js +3 -3
  62. package/components/button/v4/ToggleButtonGroupAB.vue2.js +40 -44
  63. package/components/chart/Chart.vue.d.ts +123 -10
  64. package/components/chart/Chart.vue.js +3 -3
  65. package/components/chart/Chart.vue2.js +120 -64
  66. package/components/chart/ChartHeader.vue.d.ts +36 -7
  67. package/components/chart/ChartHeader.vue.js +3 -3
  68. package/components/chart/ChartHeader.vue2.js +60 -63
  69. package/components/chart/ChartHeaderTrend.vue.d.ts +19 -5
  70. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  71. package/components/chart/ChartHeaderTrend.vue2.js +83 -18
  72. package/components/chart/ChartLegend.vue.d.ts +24 -0
  73. package/components/chart/ChartLegend.vue.js +3 -3
  74. package/components/chart/ChartLegend.vue2.js +80 -62
  75. package/components/chart/ChartPlane.vue.d.ts +106 -13
  76. package/components/chart/ChartPlane.vue.js +5 -5
  77. package/components/chart/ChartPlane.vue2.js +313 -238
  78. package/components/chart/ChartStoryArgs.d.ts +63 -2
  79. package/components/chart/ChartTooltip.vue.d.ts +22 -2
  80. package/components/chart/ChartTooltip.vue.js +2 -2
  81. package/components/chart/ChartTooltip.vue2.js +52 -58
  82. package/components/chart/LegendSorting.vue.d.ts +37 -0
  83. package/components/chart/LegendSorting.vue.js +45 -0
  84. package/components/chart/LegendSorting.vue2.js +4 -0
  85. package/components/chart/SettingsHeader.vue.d.ts +1 -0
  86. package/components/chart/SettingsHeader.vue.js +3 -3
  87. package/components/chart/SettingsHeader.vue2.js +17 -16
  88. package/components/chart/SubHeader.vue.d.ts +52 -0
  89. package/components/chart/SubHeader.vue.js +7 -0
  90. package/components/chart/SubHeader.vue2.js +61 -0
  91. package/components/chart/TooltipHeader.vue.d.ts +50 -0
  92. package/components/chart/TooltipHeader.vue.js +7 -0
  93. package/components/chart/TooltipHeader.vue2.js +69 -0
  94. package/components/chart/colorPalette.d.ts +5 -0
  95. package/components/chart/colorPalette.js +68 -0
  96. package/components/chart/composables/useChartHeight.d.ts +2 -2
  97. package/components/chart/composables/useChartHeight.js +16 -14
  98. package/components/chart/composables/useColorsMap.d.ts +5 -3
  99. package/components/chart/composables/useColorsMap.js +43 -12
  100. package/components/chart/consts.d.ts +29 -8
  101. package/components/chart/consts.js +45 -26
  102. package/components/chart/index.d.ts +473 -76
  103. package/components/chart/mockData.d.ts +33 -5
  104. package/components/chart/types.d.ts +35 -6
  105. package/components/chart/types.js +5 -2
  106. package/components/chart/utils/highlightUtils.d.ts +3 -0
  107. package/components/chart/utils/highlightUtils.js +18 -0
  108. package/components/chart/utils/utils.d.ts +3 -3
  109. package/components/chart/utils/utils.js +25 -10
  110. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  111. package/components/checkbox/v3/index.d.ts +7 -7
  112. package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
  113. package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
  114. package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
  115. package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
  116. package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
  117. package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
  118. package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
  119. package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
  120. package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
  121. package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
  122. package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
  123. package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
  124. package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
  125. package/components/columnConfigurator/consts.d.ts +1 -0
  126. package/components/columnConfigurator/consts.js +4 -0
  127. package/components/columnConfigurator/index.d.ts +72 -0
  128. package/components/columnConfigurator/index.js +6 -0
  129. package/components/columnConfigurator/mockData.d.ts +30 -0
  130. package/components/columnConfigurator/utils.d.ts +2 -0
  131. package/components/columnConfigurator/utils.js +18 -0
  132. package/components/columnPicker/ColumnPicker.vue.d.ts +119 -0
  133. package/components/columnPicker/ColumnPicker.vue.js +7 -0
  134. package/components/columnPicker/ColumnPicker.vue2.js +322 -0
  135. package/components/columnPicker/OptionChip.vue.d.ts +53 -0
  136. package/components/columnPicker/OptionChip.vue.js +7 -0
  137. package/components/columnPicker/OptionChip.vue2.js +46 -0
  138. package/components/columnPicker/RemoveButton.vue.d.ts +38 -0
  139. package/components/columnPicker/RemoveButton.vue.js +7 -0
  140. package/components/columnPicker/RemoveButton.vue2.js +35 -0
  141. package/components/columnPicker/index.d.ts +388 -0
  142. package/components/columnPicker/index.js +6 -0
  143. package/components/columnPicker/mockData.d.ts +8 -0
  144. package/components/dateRange/common/DateRange.common.js +100 -94
  145. package/components/dateRange/common/DateServices.common.d.ts +7 -1
  146. package/components/dateRange/common/DateServices.common.js +88 -92
  147. package/components/dateRange/common/consts.common.d.ts +5 -0
  148. package/components/dateRange/common/consts.common.js +9 -3
  149. package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
  150. package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
  151. package/components/dateRange/v3/index.d.ts +7 -7
  152. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
  153. package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
  154. package/components/dateRange/v4/index.d.ts +7 -7
  155. package/components/dialog/v3/Dialog.vue.d.ts +3 -3
  156. package/components/dialog/v3/index.d.ts +46 -46
  157. package/components/dialog/v4/DialogFooter.vue.d.ts +78 -0
  158. package/components/dialog/v4/DialogFooter.vue.js +7 -0
  159. package/components/dialog/v4/DialogFooter.vue2.js +60 -0
  160. package/components/dialog/v4/DialogHeader.vue.d.ts +60 -0
  161. package/components/dialog/v4/DialogHeader.vue.js +7 -0
  162. package/components/dialog/v4/DialogHeader.vue2.js +58 -0
  163. package/components/dialog/v4/DialogV4.vue.d.ts +13 -12
  164. package/components/dialog/v4/DialogV4.vue.js +4 -4
  165. package/components/dialog/v4/DialogV4.vue2.js +65 -107
  166. package/components/dialog/v4/index.d.ts +164 -164
  167. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  168. package/components/dropdown/common/Dropdown.common.js +161 -149
  169. package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
  170. package/components/dropdown/v3/index.d.ts +39 -39
  171. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
  172. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
  173. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
  174. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
  175. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  176. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
  177. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +22 -9
  178. package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
  179. package/components/dropdown/v4/ConditionalDropdown.vue2.js +205 -176
  180. package/components/dropdown/v4/DropdownV4.vue.d.ts +35 -1
  181. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  182. package/components/dropdown/v4/DropdownV4.vue2.js +257 -199
  183. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
  184. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
  185. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
  186. package/components/dropdown/v4/OptionV4.vue.d.ts +23 -5
  187. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  188. package/components/dropdown/v4/OptionV4.vue2.js +162 -117
  189. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  190. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  191. package/components/dropdown/v4/TreeDropdown.vue2.js +68 -73
  192. package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
  193. package/components/dropdown/v4/index.d.ts +702 -162
  194. package/components/forms/FormRow.vue.d.ts +9 -2
  195. package/components/forms/FormRow.vue.js +3 -3
  196. package/components/forms/FormRow.vue2.js +25 -14
  197. package/components/forms/index.d.ts +25 -5
  198. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  199. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  200. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  201. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  202. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
  203. package/components/includeExclude/index.d.ts +110 -110
  204. package/components/input/v4/TextField.vue.d.ts +12 -0
  205. package/components/input/v4/TextField.vue.js +3 -3
  206. package/components/input/v4/TextField.vue2.js +129 -105
  207. package/components/input/v4/index.d.ts +46 -2
  208. package/components/link/Link.vue.d.ts +95 -0
  209. package/components/link/Link.vue.js +7 -0
  210. package/components/link/Link.vue2.js +65 -0
  211. package/components/link/index.d.ts +296 -0
  212. package/components/link/index.js +6 -0
  213. package/components/radioButton/v3/RadioButton.vue.d.ts +5 -0
  214. package/components/radioButton/v3/RadioButton.vue.js +3 -3
  215. package/components/radioButton/v3/RadioButton.vue2.js +42 -39
  216. package/components/radioButton/v3/index.d.ts +20 -1
  217. package/components/search/v3/index.d.ts +3 -3
  218. package/components/shared/FieldLabel.vue.d.ts +19 -7
  219. package/components/shared/FieldLabel.vue.js +3 -3
  220. package/components/shared/FieldLabel.vue2.js +50 -37
  221. package/components/sortableList/LoaderBars.vue.d.ts +34 -0
  222. package/components/sortableList/LoaderBars.vue.js +7 -0
  223. package/components/sortableList/LoaderBars.vue2.js +25 -0
  224. package/components/sortableList/SortableItem.vue.d.ts +17 -2
  225. package/components/sortableList/SortableItem.vue.js +5 -5
  226. package/components/sortableList/SortableItem.vue2.js +86 -70
  227. package/components/sortableList/SortableItemLabel.vue.js +3 -3
  228. package/components/sortableList/SortableItemLabel.vue2.js +26 -23
  229. package/components/sortableList/SortableList.types.d.ts +1 -0
  230. package/components/sortableList/SortableList.vue.d.ts +12 -2
  231. package/components/sortableList/SortableList.vue.js +5 -5
  232. package/components/sortableList/SortableList.vue2.js +111 -113
  233. package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
  234. package/components/sortableList/SortableSelectableList.vue.js +7 -0
  235. package/components/sortableList/SortableSelectableList.vue2.js +128 -0
  236. package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
  237. package/components/sortableList/composables/useDraggableHelpers.js +20 -0
  238. package/components/sortableList/composables/useHoverEffect.js +1 -1
  239. package/components/sortableList/consts.d.ts +2 -0
  240. package/components/sortableList/consts.js +4 -2
  241. package/components/sortableList/index.d.ts +77 -39
  242. package/components/switch/v4/SwitchV4.vue.d.ts +16 -0
  243. package/components/switch/v4/SwitchV4.vue.js +3 -3
  244. package/components/switch/v4/SwitchV4.vue2.js +39 -24
  245. package/components/switch/v4/index.d.ts +29 -0
  246. package/components/table/common/Table.common.d.ts +0 -1
  247. package/components/table/common/Table.common.js +38 -39
  248. package/components/table/common/Table.types.d.ts +2 -0
  249. package/components/table/common/consts.d.ts +1 -0
  250. package/components/table/common/consts.js +2 -1
  251. package/components/table/v4/DataGrid.vue.d.ts +19 -7
  252. package/components/table/v4/DataGrid.vue.js +5 -5
  253. package/components/table/v4/DataGrid.vue2.js +375 -307
  254. package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
  255. package/components/table/v4/DataGridContainer.vue.js +7 -0
  256. package/components/table/v4/DataGridContainer.vue2.js +19 -0
  257. package/components/table/v4/DataGridHeader.vue.d.ts +85 -0
  258. package/components/table/v4/DataGridHeader.vue.js +7 -0
  259. package/components/table/v4/DataGridHeader.vue2.js +82 -0
  260. package/components/table/v4/DataGridRowsCounter.vue.js +3 -3
  261. package/components/table/v4/DataGridRowsCounter.vue2.js +12 -12
  262. package/components/table/v4/MultipleDataGrid.vue.d.ts +8 -7
  263. package/components/table/v4/MultipleDataGrid.vue.js +2 -2
  264. package/components/table/v4/MultipleDataGrid.vue2.js +91 -90
  265. package/components/table/v4/index.d.ts +581 -298
  266. package/components/table/v4/index.js +7 -4
  267. package/components/table/v4/storyUtils.d.ts +27 -0
  268. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  269. package/components/tabs/v3/index.d.ts +7 -7
  270. package/components/tagsField/TagsField.types.d.ts +4 -0
  271. package/components/tagsField/TagsField.vue.d.ts +65 -0
  272. package/components/tagsField/TagsField.vue.js +7 -0
  273. package/components/tagsField/TagsField.vue2.js +90 -0
  274. package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
  275. package/components/tagsField/TagsFieldChip.vue.js +7 -0
  276. package/components/tagsField/TagsFieldChip.vue2.js +81 -0
  277. package/components/tagsField/consts.d.ts +1 -0
  278. package/components/tagsField/consts.js +4 -0
  279. package/components/tagsField/index.d.ts +75 -0
  280. package/components/tagsField/index.js +6 -0
  281. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  282. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  283. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  284. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  285. package/components/tooltip/v3/index.d.ts +7 -7
  286. package/components/tooltip/v4/TooltipV4.vue.d.ts +9 -4
  287. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  288. package/components/tooltip/v4/TooltipV4.vue2.js +18 -17
  289. package/components/tooltip/v4/index.d.ts +27 -8
  290. package/components/typography/Text.vue.d.ts +3 -3
  291. package/components/typography/index.d.ts +7 -7
  292. package/composables/useDateService.d.ts +7 -0
  293. package/composables/useDateService.js +10 -0
  294. package/composables/useFormValidation.d.ts +1 -0
  295. package/composables/useFormValidation.js +32 -27
  296. package/consts/common.d.ts +1 -0
  297. package/consts/common.js +4 -0
  298. package/consts/regex.d.ts +1 -0
  299. package/consts/regex.js +2 -1
  300. package/index.d.ts +10373 -8457
  301. package/index.js +158 -134
  302. package/mocks/apps.d.ts +1 -0
  303. package/mocks/optionsWithIcons.d.ts +2 -0
  304. package/package.json +21 -1
  305. package/testids/index.d.ts +24 -1
  306. package/testids/index.js +36 -32
  307. package/utils/date.d.ts +1 -0
  308. package/utils/date.js +9 -0
  309. package/utils/formatNumbers.d.ts +1 -1
  310. package/utils/formatNumbers.js +39 -8
  311. package/utils/index.js +7 -0
  312. package/utils/object.d.ts +2 -0
  313. package/utils/object.js +9 -5
  314. package/utils/search.js +1 -1
  315. package/utils/text.d.ts +3 -0
  316. package/utils/text.js +24 -5
  317. package/utils/totals.d.ts +5 -0
  318. package/utils/totals.js +9 -0
  319. package/utils/utils.d.ts +1 -0
  320. package/utils/utils.js +4 -0
  321. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +0 -1
  322. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  323. package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +0 -1
  324. package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +0 -1
  325. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +0 -1
  326. package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +0 -1
  327. package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +0 -1
  328. package/ChartTooltip.vue_vue_type_style_index_0_scoped_25d0e129_lang.css +0 -1
  329. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
  330. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_96c7507e_lang.css +0 -1
  331. package/DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css +0 -1
  332. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +0 -1
  333. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  334. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  335. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  336. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  337. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
  338. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +0 -1
  339. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  340. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +0 -1
  341. package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
  342. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +0 -1
  343. package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +0 -1
  344. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  345. package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
  346. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +0 -1
  347. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +0 -1
  348. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  349. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
  350. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +0 -1
  351. package/components/chart/composables/useChartValues.d.ts +0 -12
  352. package/components/chart/composables/useChartValues.js +0 -32
@@ -1,32 +1,37 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_6b54ac22_lang.css"; import { defineComponent as ce, useCssVars as re, unref as t, useSlots as ue, computed as m, openBlock as i, createElementBlock as o, createElementVNode as u, normalizeStyle as T, normalizeClass as S, renderSlot as c, createVNode as h, withCtx as w, createTextVNode as E, toDisplayString as B, createCommentVNode as r, isRef as he, Fragment as p, renderList as I, mergeProps as M, createBlock as z } from "vue";
2
- import A from "../../typography/v4/Typography.vue.js";
3
- import ye from "../../skeleton/v4/SkeletonV4.vue.js";
4
- import fe from "../../emptyState/v4/EmptyStateV4.vue.js";
5
- import G from "../../checkbox/v4/CheckboxV4.vue.js";
6
- import { TableTestIdModifiers as y } from "../../../testids/index.js";
7
- import { tableCommon as Se } from "../common/Table.common.js";
8
- import ke from "./SortIcon.vue.js";
9
- import me from "./HelpIcon.vue.js";
10
- import ge from "./ExpandRowToggle.vue.js";
11
- import ve from "../../search/v4/SearchV4.vue.js";
12
- import { useVModel as be } from "@vueuse/core";
13
- import { CHECKBOX_COLUMN_ID as $e } from "../common/consts.js";
14
- const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["data-testid"], we = ["data-testid"], Ee = ["data-testid"], Be = { class: "search-wrapper" }, pe = ["data-testid"], Ie = ["data-testid"], Ae = {
1
+ import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ef67c78e_lang.css"; import { defineComponent as ye, useCssVars as fe, unref as t, useSlots as ke, computed as y, openBlock as i, createBlock as C, createSlots as Y, withCtx as u, createElementVNode as g, normalizeStyle as v, normalizeClass as f, isRef as Se, renderSlot as n, createCommentVNode as c, createElementBlock as d, Fragment as x, renderList as $, createVNode as S, createTextVNode as V, toDisplayString as D, mergeProps as I } from "vue";
2
+ import M from "../../typography/v4/Typography.vue.js";
3
+ import ge from "../../skeleton/v4/SkeletonV4.vue.js";
4
+ import me from "../../emptyState/v4/EmptyStateV4.vue.js";
5
+ import Q from "../../checkbox/v4/CheckboxV4.vue.js";
6
+ import be from "../../tooltip/v4/TooltipV4.vue.js";
7
+ import "./DataGrid.vue.js";
8
+ import "./DataGridMenu.vue.js";
9
+ import "./DataGridRowsCounter.vue.js";
10
+ import ve from "./DataGridHeader.vue.js";
11
+ import "./MultipleDataGrid.vue.js";
12
+ import pe from "./DataGridContainer.vue.js";
13
+ import { TableTestIdModifiers as R } from "../../../testids/index.js";
14
+ import { tableCommon as Ce } from "../common/Table.common.js";
15
+ import xe from "./SortIcon.vue.js";
16
+ import $e from "./HelpIcon.vue.js";
17
+ import Re from "./ExpandRowToggle.vue.js";
18
+ import { DEFAULT_ROW_HEIGHT as Te, CHECKBOX_COLUMN_ID as we } from "../common/consts.js";
19
+ const Be = ["data-testid"], He = ["data-testid"], Ee = ["data-testid"], Pe = {
15
20
  key: 1,
16
21
  class: "expand-toggle-cell"
17
- }, He = ["onClick"], Pe = { class: "table-head-container" }, Le = ["data-testid"], Me = ["onMouseenter", "onClick"], Ve = {
18
- key: 1,
19
- class: "expand-toggle-cell"
20
- }, Ne = {
22
+ }, Le = ["onClick"], Ve = { class: "table-head-container" }, Ie = {
23
+ key: 0,
24
+ class: "totals-row"
25
+ }, Me = ["data-testid"], Ae = ["onMouseenter", "onClick"], Fe = {
21
26
  key: 2,
22
27
  class: "expanded-row"
23
- }, Fe = {
28
+ }, Ne = {
24
29
  key: 3,
25
30
  class: "floating-row"
26
31
  }, Oe = { key: 1 }, De = {
27
32
  key: 0,
28
33
  class: "table-footer"
29
- }, et = /* @__PURE__ */ ce({
34
+ }, it = /* @__PURE__ */ ye({
30
35
  __name: "DataGrid",
31
36
  props: {
32
37
  title: { default: "" },
@@ -35,9 +40,9 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
35
40
  sections: { default: null },
36
41
  sort: { default: null },
37
42
  selection: { default: null },
38
- getRowId: { type: Function, default: (s, k) => k },
39
- getRowKey: { type: Function, default: (s, k) => k },
40
- selectedMatcher: { type: Function, default: (s, k) => s === k },
43
+ getRowId: { type: Function, default: (s, m) => m },
44
+ getRowKey: { type: Function, default: (s, m) => m },
45
+ selectedMatcher: { type: Function, default: (s, m) => s === m },
41
46
  isSticky: { type: Boolean, default: !0 },
42
47
  isStickyHeader: { type: Boolean, default: !1 },
43
48
  isLoading: { type: Boolean, default: !1 },
@@ -45,10 +50,12 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
45
50
  emptyStateTitle: { default: "No data to display" },
46
51
  emptyStateSubtitle: { default: "" },
47
52
  isInfiniteScroll: { type: Boolean, default: !1 },
53
+ showTotalsRow: { type: Boolean },
48
54
  infiniteScrollThreshold: { default: 100 },
49
- rowHeight: { type: [Number, Function], default: 48 },
55
+ rowHeight: { type: [Number, Function], default: Te },
50
56
  loadingRowCount: { default: 3 },
51
57
  defaultScrollPosition: { default: null },
58
+ helpTooltipVariant: { default: "icon" },
52
59
  testId: { default: "" },
53
60
  search: { default: null },
54
61
  showSearch: { type: Boolean, default: !1 },
@@ -61,309 +68,370 @@ const Re = ["data-testid"], Ce = ["data-testid"], xe = ["data-testid"], Te = ["d
61
68
  isSelectionBordered: { type: Boolean, default: !1 }
62
69
  },
63
70
  emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
64
- setup(s, { expose: k, emit: f }) {
65
- const l = s;
66
- re((a) => ({
67
- "3041fee8": s.zIndexBase,
68
- "8ac5cc00": t(_),
69
- "4f8aacf9": t(N),
70
- "65a66d41": t(Z)
71
+ setup(s, { expose: m, emit: k }) {
72
+ const a = s;
73
+ fe((l) => ({
74
+ "6539eabc": s.zIndexBase,
75
+ "118a88d4": t(te),
76
+ "49737de2": t(z)
71
77
  }));
72
- const g = ue(), Y = (a) => l.rowCustomClassKey && l.rows[a] ? l.rows[a][l.rowCustomClassKey] : "", {
73
- list: V,
74
- containerProps: Q,
75
- wrapperProps: W,
76
- activeRow: $,
77
- gridColumnTemplate: N,
78
- toggleSortOrder: X,
79
- columnsStickyPositions: H,
80
- hasSearchSlot: j,
81
- containerStyle: q,
82
- onScroll: F,
83
- savingRows: O,
84
- hasExpandSlot: R,
85
- toggleExpandRow: J,
86
- cssRowHeight: Z,
87
- cssExpandGridCol: _,
88
- isRowExpanded: P,
89
- hasCheckboxes: D,
90
- activeMenuRow: ee,
91
- scrollTo: te
92
- } = Se(l, f), K = m(() => !!g.footer), se = m(
93
- () => l.title || g.title || j || g["table-header-actions"] || g["table-header-pre-search"]
94
- ), b = be(l, "search", f), ae = m(() => l.selection.length || 0), L = m(() => {
95
- const a = l.rows.map((d, e) => l.getRowId(d, e));
96
- return !!a.length && a.every((d) => C(d));
97
- }), C = (a) => l.selection.findIndex((d) => l.selectedMatcher(a, d)) !== -1, le = (a) => {
98
- C(a) ? (x(
99
- l.selection.filter(
100
- (d) => !l.selectedMatcher(a, d)
78
+ const b = ke(), X = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
79
+ list: T,
80
+ containerProps: j,
81
+ wrapperProps: q,
82
+ activeRow: w,
83
+ gridColumnTemplate: z,
84
+ toggleSortOrder: J,
85
+ columnsStickyPositions: B,
86
+ hasSearchSlot: Z,
87
+ containerStyle: _,
88
+ onScroll: K,
89
+ savingRows: U,
90
+ hasExpandSlot: H,
91
+ toggleExpandRow: ee,
92
+ cssExpandGridCol: te,
93
+ isRowExpanded: A,
94
+ hasCheckboxes: F,
95
+ activeMenuRow: le,
96
+ scrollTo: se
97
+ } = Ce(a, k), G = y(() => !!b.footer), ae = y(
98
+ () => a.title || b.title || Z.value || b["table-header-actions"] || b["table-header-pre-search"]
99
+ ), p = y({
100
+ get: () => a.search,
101
+ set: (l) => k("update:search", l)
102
+ }), ie = y(() => a.selection.length || 0), N = y(() => {
103
+ const l = a.rows.map((o, e) => a.getRowId(o, e));
104
+ return !!l.length && l.every((o) => E(o));
105
+ }), E = (l) => a.selection.findIndex((o) => a.selectedMatcher(l, o)) !== -1, oe = (l) => {
106
+ E(l) ? (P(
107
+ a.selection.filter(
108
+ (o) => !a.selectedMatcher(l, o)
101
109
  )
102
- ), f("selectRow", !1)) : (x([...l.selection, a]), f("selectRow", !0));
103
- }, ie = () => {
104
- if (L.value)
105
- x([]), f("selectAll", !1);
110
+ ), k("selectRow", !1)) : (P([...a.selection, l]), k("selectRow", !0));
111
+ }, de = () => {
112
+ if (N.value)
113
+ P([]), k("selectAll", !1);
106
114
  else {
107
- const a = l.rows.map((d, e) => l.getRowId(d, e)).filter((d) => !C(d));
108
- x([...l.selection, ...a]), f("selectAll", !0);
115
+ const l = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
116
+ P([...a.selection, ...l]), k("selectAll", !0);
109
117
  }
110
- }, x = (a) => {
111
- f("update:selection", a);
112
- }, oe = (a) => !l.isLoading && $.value === a, de = m(
113
- () => l.emptyStateVariant ?? (b.value ? "no-results" : "no-data")
114
- ), ne = m(
115
- () => l.emptyStateSubtitle ? l.emptyStateSubtitle : b.value ? "Search again with different filters" : void 0
116
- ), U = m(() => ({
118
+ }, P = (l) => {
119
+ k("update:selection", l);
120
+ }, ne = (l) => !a.isLoading && w.value === l, re = y(
121
+ () => a.emptyStateVariant ?? (p.value ? "no-results" : "no-data")
122
+ ), ce = y(
123
+ () => a.emptyStateSubtitle ? a.emptyStateSubtitle : p.value ? "Search again with different filters" : void 0
124
+ ), O = y(() => ({
117
125
  class: {
118
- sticky: l.isSelectionSticky,
119
- bordered: l.isSelectionBordered
126
+ sticky: a.isSelectionSticky,
127
+ bordered: a.isSelectionBordered
120
128
  },
121
- style: l.isSelectionSticky ? H.value[$e] : null
122
- }));
123
- return k({
124
- scrollTo: te
125
- }), (a, d) => (i(), o("div", {
126
- class: "table-container",
127
- "data-testid": `${s.testId}-${t(y).CONTAINER}`,
128
- onMouseleave: d[3] || (d[3] = (e) => $.value = null)
129
- }, [
130
- u("table", {
131
- ref: t(Q).ref,
132
- style: T(t(q)),
133
- class: S({
134
- hasFooter: t(K)
135
- }),
136
- "data-testid": `${s.testId}-${t(y).TABLE}`,
137
- onScrollPassive: d[2] || (d[2] = //@ts-ignore
138
- (...e) => t(F) && t(F)(...e))
139
- }, [
140
- t(se) ? (i(), o("div", {
141
- key: 0,
142
- class: S(["table-header", { isStickyHeader: s.isStickyHeader }]),
143
- "data-testid": `${s.testId}-${t(y).HEADER}`
144
- }, [
145
- u("div", {
146
- class: "table-title",
147
- "data-testid": `${s.testId}-${t(y).TITLE}`
148
- }, [
149
- c(a.$slots, "title", {}, () => [
150
- h(t(A), { variant: "h3" }, {
151
- default: w(() => [
152
- E(B(s.title), 1)
153
- ]),
154
- _: 1
155
- })
156
- ])
157
- ], 8, Te),
158
- t(g)["table-header-pre-search"] ? (i(), o("div", {
159
- key: 0,
160
- class: "table-header-pre-search-content",
161
- "data-testid": `${s.testId}-${t(y).PRE_SEARCH_HEADER}`
162
- }, [
163
- c(a.$slots, "table-header-pre-search")
164
- ], 8, we)) : r("", !0),
165
- u("div", {
166
- class: "table-header-right",
167
- "data-testid": `${s.testId}-${t(y).HEADER_RIGHT}`
168
- }, [
169
- s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
170
- u("div", Be, [
171
- h(t(ve), {
172
- modelValue: t(b),
173
- "onUpdate:modelValue": d[0] || (d[0] = (e) => he(b) ? b.value = e : null),
174
- placeholder: s.searchPlaceholder,
175
- "auto-focus": s.searchAutoFocus,
176
- "test-id": s.testId,
177
- onOnClear: d[1] || (d[1] = (e) => f("onClearSearch"))
178
- }, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
179
- ])
180
- ]) : r("", !0)
181
- ], 8, Ee),
182
- t(g)["table-header-actions"] ? (i(), o("div", {
183
- key: 1,
184
- class: "table-header-actions",
185
- "data-testid": `${s.testId}-${t(y).ACTIONS}`
186
- }, [
187
- c(a.$slots, "table-header-actions")
188
- ], 8, pe)) : r("", !0)
189
- ], 10, xe)) : r("", !0),
190
- u("thead", {
191
- class: S({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
129
+ style: a.isSelectionSticky ? B.value[we] : null
130
+ })), ue = (l) => ({
131
+ sticky: l.isSticky,
132
+ isStickyRight: l.isStickyRight,
133
+ bordered: l.isBordered,
134
+ isTextRight: l.isTextRight
135
+ }), W = y(
136
+ () => a.columns.map((l) => ue(l))
137
+ ), he = (l) => ({
138
+ minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(l) : a.rowHeight) + "px"
139
+ }), L = y(() => T.value.reduce((l, o) => (l[o.index] = he(o.index), l), {}));
140
+ return m({
141
+ scrollTo: se
142
+ }), (l, o) => (i(), C(pe, null, Y({
143
+ default: u(() => [
144
+ g("div", {
145
+ class: "table-container",
146
+ "data-testid": `${s.testId}-${t(R).CONTAINER}`,
147
+ onMouseleave: o[3] || (o[3] = (e) => w.value = null)
192
148
  }, [
193
- u("div", {
194
- class: "sections",
195
- "data-testid": `${s.testId}-${t(y).SECTIONS}`
149
+ g("table", {
150
+ ref: t(j).ref,
151
+ style: v(t(_)),
152
+ class: f({
153
+ hasFooter: t(G)
154
+ }),
155
+ "data-testid": `${s.testId}-${t(R).TABLE}`,
156
+ onScrollPassive: o[2] || (o[2] = //@ts-ignore
157
+ (...e) => t(K) && t(K)(...e))
196
158
  }, [
197
- (i(!0), o(p, null, I(s.sections, (e) => (i(), o("div", {
198
- key: e.id,
199
- class: S(["section-container", { sticky: e.isSticky }])
200
- }, [
201
- c(a.$slots, `section-${e.id}`, {}, () => [
202
- u("div", {
203
- style: T({ width: e.width + "px" }),
204
- class: S({ section: !0 })
205
- }, [
206
- h(t(A), { variant: "body2" }, {
207
- default: w(() => [
208
- E(B(e.title), 1)
209
- ]),
210
- _: 2
211
- }, 1024)
212
- ], 4)
213
- ])
214
- ], 2))), 128))
215
- ], 8, Ie),
216
- u("tr", null, [
217
- t(D) ? (i(), o("th", M({
159
+ t(ae) ? (i(), C(t(ve), {
218
160
  key: 0,
219
- class: "checkbox-cell"
220
- }, t(U)), [
221
- c(a.$slots, "select-all-checkbox", {}, () => [
222
- h(t(G), {
223
- disabled: s.isLoading,
224
- "is-checked": t(L),
225
- "is-indeterminate": !t(L) && t(ae) > 0,
226
- "onUpdate:isChecked": ie
227
- }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
228
- ])
229
- ], 16)) : r("", !0),
230
- t(R) ? (i(), o("th", Ae)) : r("", !0),
231
- (i(!0), o(p, null, I(s.columns, (e) => (i(), o("th", {
232
- key: e.id,
233
- class: S({
234
- sticky: e.isSticky,
235
- isStickyRight: e.isStickyRight,
236
- bordered: e.isBordered,
237
- isTextRight: e.isTextRight,
238
- isSortable: e.isSortable,
239
- [`column-${e.id}`]: !0
240
- }),
241
- style: T(e.isSticky ? t(H)[e.id] : null),
242
- onClick: (v) => e.isSortable ? t(X)(e) : null
161
+ search: t(p),
162
+ "onUpdate:search": o[0] || (o[0] = (e) => Se(p) ? p.value = e : null),
163
+ title: s.title,
164
+ "is-sticky": s.isStickyHeader,
165
+ "show-search": s.showSearch,
166
+ "search-placeholder": s.searchPlaceholder,
167
+ "search-auto-focus": s.searchAutoFocus,
168
+ "z-index-base": s.zIndexBase,
169
+ "test-id": s.testId,
170
+ onOnClearSearch: o[1] || (o[1] = (e) => k("onClearSearch"))
171
+ }, Y({
172
+ title: u(() => [
173
+ n(l.$slots, "title")
174
+ ]),
175
+ search: u(() => [
176
+ n(l.$slots, "search")
177
+ ]),
178
+ _: 2
243
179
  }, [
244
- u("div", Pe, [
245
- c(a.$slots, `header-${e.id}`, { column: e }, () => [
246
- h(t(A), { variant: "tableLabel" }, {
247
- default: w(() => [
248
- E(B(e.title), 1)
249
- ]),
250
- _: 2
251
- }, 1024)
180
+ t(b)["table-header-pre-search"] ? {
181
+ name: "table-header-pre-search",
182
+ fn: u(() => [
183
+ n(l.$slots, "table-header-pre-search")
252
184
  ]),
253
- e.helpText ? (i(), z(me, {
254
- key: 0,
255
- "hover-help-text": e.helpText,
256
- "hover-help-text-placement": e.helpTextPlacement
257
- }, null, 8, ["hover-help-text", "hover-help-text-placement"])) : r("", !0),
258
- e.isSortable && e.id === s.sort?.sortBy ? (i(), z(ke, {
259
- key: 1,
260
- "sort-order": s.sort.sortOrder
261
- }, null, 8, ["sort-order"])) : r("", !0)
262
- ])
263
- ], 14, He))), 128))
264
- ])
265
- ], 2),
266
- u("tbody", null, [
267
- t(V).length > 0 ? (i(), o("div", M({
268
- key: 0,
269
- class: "table-body-wrapper",
270
- "data-testid": `${s.testId}-${t(y).BODY_WRAPPER}`
271
- }, t(W)), [
272
- (i(!0), o(p, null, I(t(V), (e) => (i(), o("tr", {
273
- key: s.getRowKey(e.data, e.index),
274
- class: S(["table-row", {
275
- loading: s.isLoading || s.isLoading && !e.data || t(O).includes(e.index),
276
- active: t($) === e.index,
277
- activeMenu: t(ee) === e.index,
278
- expanded: t(R) && t(P)(e.index),
279
- [Y(e.index)]: !0
280
- }]),
281
- onMouseenter: (v) => $.value = e.index,
282
- onClick: (v) => f("clickRow", e.index)
185
+ key: "0"
186
+ } : void 0,
187
+ t(b)["table-header-actions"] ? {
188
+ name: "table-header-actions",
189
+ fn: u(() => [
190
+ n(l.$slots, "table-header-actions")
191
+ ]),
192
+ key: "1"
193
+ } : void 0
194
+ ]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
195
+ g("thead", {
196
+ class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
283
197
  }, [
284
- t(D) ? (i(), o("td", M({
285
- key: 0,
286
- class: "checkbox-cell"
287
- }, t(U)), [
288
- h(t(G), {
289
- "is-checked": C(s.getRowId(e.data, e.index)),
290
- "onUpdate:isChecked": (v) => le(s.getRowId(e.data, e.index))
291
- }, null, 8, ["is-checked", "onUpdate:isChecked"])
292
- ], 16)) : r("", !0),
293
- t(R) ? (i(), o("td", Ve, [
294
- h(ge, {
295
- expanded: t(P)(e.index),
296
- onClick: (v) => t(J)(e.index, v)
297
- }, null, 8, ["expanded", "onClick"])
298
- ])) : r("", !0),
299
- (i(!0), o(p, null, I(s.columns, (v, n) => (i(), o("td", {
300
- key: n,
301
- class: S({
302
- sticky: s.columns[n].isSticky,
303
- isStickyRight: s.columns[n].isStickyRight,
304
- bordered: s.columns[n].isBordered,
305
- isTextRight: s.columns[n].isTextRight,
306
- [`column-${s.columns[n].id}`]: !0
307
- }),
308
- style: T(
309
- s.columns[n].isSticky ? t(H)[s.columns[n].id] : null
310
- )
198
+ g("div", {
199
+ class: "sections",
200
+ "data-testid": `${s.testId}-${t(R).SECTIONS}`
311
201
  }, [
312
- !s.isLoading || s.isLoading && e.data[n] ? (i(), o("div", {
202
+ (i(!0), d(x, null, $(s.sections, (e) => (i(), d("div", {
203
+ key: e.id,
204
+ class: f(["section-container", { sticky: e.isSticky }])
205
+ }, [
206
+ n(l.$slots, `section-${e.id}`, {}, () => [
207
+ g("div", {
208
+ style: v({ width: e.width + "px" }),
209
+ class: f({ section: !0 })
210
+ }, [
211
+ S(t(M), { variant: "body2" }, {
212
+ default: u(() => [
213
+ V(D(e.title), 1)
214
+ ]),
215
+ _: 2
216
+ }, 1024)
217
+ ], 4)
218
+ ])
219
+ ], 2))), 128))
220
+ ], 8, Ee),
221
+ g("tr", null, [
222
+ t(F) ? (i(), d("th", I({
313
223
  key: 0,
314
- class: S(["table-cell", { last: n === e.data.length - 1 }])
224
+ class: "checkbox-cell"
225
+ }, t(O)), [
226
+ n(l.$slots, "select-all-checkbox", {}, () => [
227
+ S(t(Q), {
228
+ disabled: s.isLoading,
229
+ "is-checked": t(N),
230
+ "is-indeterminate": !t(N) && t(ie) > 0,
231
+ "onUpdate:isChecked": de
232
+ }, null, 8, ["disabled", "is-checked", "is-indeterminate"])
233
+ ])
234
+ ], 16)) : c("", !0),
235
+ t(H) ? (i(), d("th", Pe)) : c("", !0),
236
+ (i(!0), d(x, null, $(s.columns, (e, h) => (i(), d("th", {
237
+ key: e.id,
238
+ class: f({
239
+ ...t(W)[h],
240
+ isSortable: e.isSortable,
241
+ [`column-${e.id}`]: !0
242
+ }),
243
+ style: v(
244
+ e.isSticky ? t(B)[e.id] : null
245
+ ),
246
+ onClick: (r) => e.isSortable ? t(J)(e) : null
315
247
  }, [
316
- c(a.$slots, `cell-${s.columns[n].id}`, {
317
- cell: e.data[n],
318
- isLoading: t(O).includes(e.index),
319
- cellIndex: n,
320
- row: e,
321
- rowIndex: e.index
322
- }, () => [
323
- h(t(A), { variant: "body1" }, {
324
- default: w(() => [
325
- E(B(e.data[n]), 1)
248
+ g("div", Ve, [
249
+ n(l.$slots, `header-${e.id}`, { column: e }, () => [
250
+ S(t(be), {
251
+ text: e.helpText,
252
+ disabled: !e.helpText || s.helpTooltipVariant === "icon",
253
+ placement: e.helpTextPlacement || "top",
254
+ "test-id": `help-tooltip-underlined-${e.id}`
255
+ }, {
256
+ default: u(() => [
257
+ S(t(M), {
258
+ variant: "tableLabel",
259
+ class: f({
260
+ underlined: e.helpText && s.helpTooltipVariant === "underline"
261
+ })
262
+ }, {
263
+ default: u(() => [
264
+ V(D(e.title), 1)
265
+ ]),
266
+ _: 2
267
+ }, 1032, ["class"])
268
+ ]),
269
+ _: 2
270
+ }, 1032, ["text", "disabled", "placement", "test-id"])
271
+ ]),
272
+ e.helpText && s.helpTooltipVariant === "icon" ? (i(), C($e, {
273
+ key: 0,
274
+ "hover-help-text": e.helpText,
275
+ "hover-help-text-placement": e.helpTextPlacement,
276
+ "test-id": `help-tooltip-${e.id}`
277
+ }, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
278
+ n(l.$slots, `after-header-${e.id}`, { column: e }),
279
+ e.isSortable && e.id === s.sort?.sortBy ? (i(), C(xe, {
280
+ key: 1,
281
+ "sort-order": s.sort.sortOrder
282
+ }, null, 8, ["sort-order"])) : c("", !0)
283
+ ])
284
+ ], 14, Le))), 128))
285
+ ]),
286
+ s.showTotalsRow && t(T).length > 0 ? (i(), d("tr", Ie, [
287
+ t(F) ? (i(), d("td", I({
288
+ key: 0,
289
+ class: "bg"
290
+ }, t(O)), null, 16)) : c("", !0),
291
+ (i(!0), d(x, null, $(s.columns, (e, h) => (i(), d("td", {
292
+ key: e.id,
293
+ class: f({
294
+ ...t(W)[h],
295
+ [`total-${e.id}`]: !0
296
+ }),
297
+ style: v(
298
+ e.isSticky ? t(B)[e.id] : null
299
+ )
300
+ }, [
301
+ n(l.$slots, `total-${e.id}`, { column: e }, () => [
302
+ h === 0 ? (i(), C(t(M), {
303
+ key: 0,
304
+ variant: "h6"
305
+ }, {
306
+ default: u(() => [
307
+ V("Totals")
326
308
  ]),
327
- _: 2
328
- }, 1024)
309
+ _: 1
310
+ })) : c("", !0)
329
311
  ])
330
- ], 2)) : c(a.$slots, "loader", { key: 1 }, () => [
331
- h(t(ye), { round: "" })
312
+ ], 6))), 128))
313
+ ])) : c("", !0)
314
+ ], 2),
315
+ g("tbody", null, [
316
+ t(T).length > 0 ? (i(), d("div", I({
317
+ key: 0,
318
+ class: "table-body-wrapper",
319
+ "data-testid": `${s.testId}-${t(R).BODY_WRAPPER}`
320
+ }, t(q)), [
321
+ (i(!0), d(x, null, $(t(T), (e) => (i(), d("tr", {
322
+ key: s.getRowKey(e.data, e.index),
323
+ class: f(["table-row", {
324
+ loading: s.isLoading || s.isLoading && !e.data || t(U).includes(e.index),
325
+ active: t(w) === e.index,
326
+ activeMenu: t(le) === e.index,
327
+ expanded: t(H) && t(A)(e.index),
328
+ [X(e.index)]: !0
329
+ }]),
330
+ style: v(t(L)[e.index]),
331
+ onMouseenter: (h) => w.value = e.index,
332
+ onClick: (h) => k("clickRow", e.index)
333
+ }, [
334
+ t(F) ? (i(), d("td", I({
335
+ key: 0,
336
+ class: "checkbox-cell"
337
+ }, t(O), {
338
+ style: t(L)[e.index]
339
+ }), [
340
+ S(t(Q), {
341
+ "is-checked": E(s.getRowId(e.data, e.index)),
342
+ "onUpdate:isChecked": (h) => oe(s.getRowId(e.data, e.index))
343
+ }, null, 8, ["is-checked", "onUpdate:isChecked"])
344
+ ], 16)) : c("", !0),
345
+ t(H) ? (i(), d("td", {
346
+ key: 1,
347
+ class: "expand-toggle-cell",
348
+ style: v(t(L)[e.index])
349
+ }, [
350
+ S(Re, {
351
+ expanded: t(A)(e.index),
352
+ onClick: (h) => t(ee)(e.index, h)
353
+ }, null, 8, ["expanded", "onClick"])
354
+ ], 4)) : c("", !0),
355
+ (i(!0), d(x, null, $(s.columns, (h, r) => (i(), d("td", {
356
+ key: r,
357
+ class: f({
358
+ sticky: s.columns[r].isSticky,
359
+ isStickyRight: s.columns[r].isStickyRight,
360
+ bordered: s.columns[r].isBordered,
361
+ isTextRight: s.columns[r].isTextRight,
362
+ [`column-${s.columns[r].id}`]: !0
363
+ }),
364
+ style: v([
365
+ s.columns[r].isSticky ? t(B)[s.columns[r].id] : null,
366
+ t(L)[e.index]
367
+ ])
368
+ }, [
369
+ !s.isLoading || s.isLoading && e.data[r] ? (i(), d("div", {
370
+ key: 0,
371
+ class: f(["table-cell", { last: r === e.data.length - 1 }])
372
+ }, [
373
+ n(l.$slots, `cell-${s.columns[r].id}`, {
374
+ cell: e.data[r],
375
+ isLoading: t(U).includes(e.index),
376
+ cellIndex: r,
377
+ row: e,
378
+ rowIndex: e.index
379
+ }, () => [
380
+ S(t(M), { variant: "body1" }, {
381
+ default: u(() => [
382
+ V(D(e.data[r]), 1)
383
+ ]),
384
+ _: 2
385
+ }, 1024)
386
+ ])
387
+ ], 2)) : n(l.$slots, "loader", { key: 1 }, () => [
388
+ S(t(ge), { round: "" })
389
+ ])
390
+ ], 6))), 128)),
391
+ t(H) && t(A)(e.index) ? (i(), d("div", Fe, [
392
+ n(l.$slots, "expanded", {
393
+ row: e,
394
+ gridColumnTemplate: t(z)
395
+ })
396
+ ])) : c("", !0),
397
+ ne(e.index) ? (i(), d("div", Ne, [
398
+ n(l.$slots, "floating-row", {
399
+ row: e,
400
+ rowIndex: e.index
401
+ })
402
+ ])) : c("", !0)
403
+ ], 46, Ae))), 128))
404
+ ], 16, Me)) : (i(), d("div", Oe, [
405
+ n(l.$slots, "empty-state", {}, () => [
406
+ S(t(me), {
407
+ class: "empty-state",
408
+ title: s.emptyStateTitle,
409
+ subtitle: t(ce),
410
+ variant: t(re),
411
+ "icon-name": "file-search",
412
+ "test-id": `${s.testId}-${t(R).EMPTY_STATE}`
413
+ }, null, 8, ["title", "subtitle", "variant", "test-id"])
332
414
  ])
333
- ], 6))), 128)),
334
- t(R) && t(P)(e.index) ? (i(), o("div", Ne, [
335
- c(a.$slots, "expanded", {
336
- row: e,
337
- gridColumnTemplate: t(N)
338
- })
339
- ])) : r("", !0),
340
- oe(e.index) ? (i(), o("div", Fe, [
341
- c(a.$slots, "floating-row", {
342
- row: e,
343
- rowIndex: e.index
344
- })
345
- ])) : r("", !0)
346
- ], 42, Me))), 128))
347
- ], 16, Le)) : (i(), o("div", Oe, [
348
- c(a.$slots, "empty-state", {}, () => [
349
- h(t(fe), {
350
- class: "empty-state",
351
- title: s.emptyStateTitle,
352
- subtitle: t(ne),
353
- variant: t(de),
354
- "icon-name": "file-search",
355
- "test-id": `${s.testId}-${t(y).EMPTY_STATE}`
356
- }, null, 8, ["title", "subtitle", "variant", "test-id"])
415
+ ]))
357
416
  ])
358
- ]))
359
- ])
360
- ], 46, Ce),
361
- t(K) ? (i(), o("div", De, [
362
- c(a.$slots, "footer")
363
- ])) : r("", !0)
364
- ], 40, Re));
417
+ ], 46, He),
418
+ t(G) ? (i(), d("div", De, [
419
+ n(l.$slots, "footer")
420
+ ])) : c("", !0)
421
+ ], 40, Be)
422
+ ]),
423
+ _: 2
424
+ }, [
425
+ t(b)["side-panel"] ? {
426
+ name: "side-panel",
427
+ fn: u(() => [
428
+ n(l.$slots, "side-panel")
429
+ ]),
430
+ key: "0"
431
+ } : void 0
432
+ ]), 1024));
365
433
  }
366
434
  });
367
435
  export {
368
- et as default
436
+ it as default
369
437
  };