@ironsource/shared-ui 2.1.12-rc.4 → 2.1.12-rc.41

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