@ironsource/shared-ui 2.1.12-rc.9 → 2.1.12-test.100

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