@ironsource/shared-ui 2.1.12-test.52 → 2.1.12-test.54

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