@salesforce/design-system-react 11.0.0-alpha.3 → 11.0.0-alpha.5

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 (447) hide show
  1. package/README.md +112 -70
  2. package/dist/cjs/components/accordion/index.cjs +1 -1
  3. package/dist/cjs/components/accordion/index.cjs.map +1 -1
  4. package/dist/cjs/components/alert/index.cjs +1 -1
  5. package/dist/cjs/components/alert/index.cjs.map +1 -1
  6. package/dist/cjs/components/avatar/index.cjs +1 -1
  7. package/dist/cjs/components/avatar/index.cjs.map +1 -1
  8. package/dist/cjs/components/badge/index.cjs +1 -1
  9. package/dist/cjs/components/badge/index.cjs.map +1 -1
  10. package/dist/cjs/components/breadcrumb/index.cjs +1 -1
  11. package/dist/cjs/components/breadcrumb/index.cjs.map +1 -1
  12. package/dist/cjs/components/builder-header/index.cjs +1 -1
  13. package/dist/cjs/components/builder-header/index.cjs.map +1 -1
  14. package/dist/cjs/components/button/index.cjs +1 -1
  15. package/dist/cjs/components/button/index.cjs.map +1 -1
  16. package/dist/cjs/components/button-group/index.cjs +1 -1
  17. package/dist/cjs/components/button-group/index.cjs.map +1 -1
  18. package/dist/cjs/components/button-stateful/index.cjs +1 -1
  19. package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
  20. package/dist/cjs/components/card/index.cjs +1 -1
  21. package/dist/cjs/components/card/index.cjs.map +1 -1
  22. package/dist/cjs/components/carousel/index.cjs +1 -1
  23. package/dist/cjs/components/carousel/index.cjs.map +1 -1
  24. package/dist/cjs/components/checkbox/index.cjs +1 -1
  25. package/dist/cjs/components/checkbox/index.cjs.map +1 -1
  26. package/dist/cjs/components/color-picker/index.cjs +1 -0
  27. package/dist/cjs/components/color-picker.cjs +1 -0
  28. package/dist/cjs/components/combobox/index.cjs +1 -1
  29. package/dist/cjs/components/combobox/index.cjs.map +1 -1
  30. package/dist/cjs/components/date-picker/index.cjs +1 -1
  31. package/dist/cjs/components/date-picker/index.cjs.map +1 -1
  32. package/dist/cjs/components/docked-composer/index.cjs +1 -1
  33. package/dist/cjs/components/docked-composer/index.cjs.map +1 -1
  34. package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
  35. package/dist/cjs/components/dynamic-icon/index.cjs.map +1 -1
  36. package/dist/cjs/components/expandable-section/index.cjs +1 -1
  37. package/dist/cjs/components/expandable-section/index.cjs.map +1 -1
  38. package/dist/cjs/components/files/index.cjs +1 -1
  39. package/dist/cjs/components/files/index.cjs.map +1 -1
  40. package/dist/cjs/components/filter/index.cjs +1 -0
  41. package/dist/cjs/components/filter.cjs +1 -0
  42. package/dist/cjs/components/grid/index.cjs +2 -0
  43. package/dist/cjs/components/grid/index.cjs.map +1 -0
  44. package/dist/cjs/components/grid.cjs +1 -0
  45. package/dist/cjs/components/icon/index.cjs +1 -1
  46. package/dist/cjs/components/icon/index.cjs.map +1 -1
  47. package/dist/cjs/components/icon-settings/index.cjs +1 -1
  48. package/dist/cjs/components/icon-settings/index.cjs.map +1 -1
  49. package/dist/cjs/components/illustration/index.cjs +1 -1
  50. package/dist/cjs/components/illustration/index.cjs.map +1 -1
  51. package/dist/cjs/components/index.cjs +1 -1
  52. package/dist/cjs/components/input/index.cjs +1 -1
  53. package/dist/cjs/components/input/index.cjs.map +1 -1
  54. package/dist/cjs/components/media-object/index.cjs +1 -1
  55. package/dist/cjs/components/media-object/index.cjs.map +1 -1
  56. package/dist/cjs/components/menu-dropdown/index.cjs +1 -1
  57. package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
  58. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
  59. package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
  60. package/dist/cjs/components/modal/index.cjs +1 -1
  61. package/dist/cjs/components/modal/index.cjs.map +1 -1
  62. package/dist/cjs/components/page-header/index.cjs +1 -1
  63. package/dist/cjs/components/page-header/index.cjs.map +1 -1
  64. package/dist/cjs/components/panel/index.cjs +1 -1
  65. package/dist/cjs/components/panel/index.cjs.map +1 -1
  66. package/dist/cjs/components/pill/index.cjs +1 -1
  67. package/dist/cjs/components/pill/index.cjs.map +1 -1
  68. package/dist/cjs/components/pill-container/index.cjs +1 -1
  69. package/dist/cjs/components/pill-container/index.cjs.map +1 -1
  70. package/dist/cjs/components/popover/index.cjs +1 -1
  71. package/dist/cjs/components/popover/index.cjs.map +1 -1
  72. package/dist/cjs/components/popover/popover.cjs +1 -1
  73. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  74. package/dist/cjs/components/portal-settings/index.cjs +1 -1
  75. package/dist/cjs/components/portal-settings/index.cjs.map +1 -1
  76. package/dist/cjs/components/progress-bar/index.cjs +1 -1
  77. package/dist/cjs/components/progress-bar/index.cjs.map +1 -1
  78. package/dist/cjs/components/progress-indicator/check-props.cjs +2 -0
  79. package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -0
  80. package/dist/cjs/components/progress-indicator/index.cjs +1 -1
  81. package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
  82. package/dist/cjs/components/progress-indicator/private/path.cjs +2 -0
  83. package/dist/cjs/components/progress-indicator/private/path.cjs.map +1 -0
  84. package/dist/cjs/components/progress-indicator/private/progress.cjs +1 -1
  85. package/dist/cjs/components/progress-indicator/private/progress.cjs.map +1 -1
  86. package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs +2 -0
  87. package/dist/cjs/components/progress-indicator/private/use-roving-tab-index.cjs.map +1 -0
  88. package/dist/cjs/components/progress-ring/index.cjs +1 -1
  89. package/dist/cjs/components/progress-ring/index.cjs.map +1 -1
  90. package/dist/cjs/components/radio/index.cjs +1 -1
  91. package/dist/cjs/components/radio/index.cjs.map +1 -1
  92. package/dist/cjs/components/radio-button-group/index.cjs +1 -1
  93. package/dist/cjs/components/radio-button-group/index.cjs.map +1 -1
  94. package/dist/cjs/components/radio-group/index.cjs +1 -1
  95. package/dist/cjs/components/radio-group/index.cjs.map +1 -1
  96. package/dist/cjs/components/scoped-notification/index.cjs +1 -1
  97. package/dist/cjs/components/scoped-notification/index.cjs.map +1 -1
  98. package/dist/cjs/components/setup-assistant/index.cjs +1 -1
  99. package/dist/cjs/components/setup-assistant/index.cjs.map +1 -1
  100. package/dist/cjs/components/{data-table → simple-data-table}/cell.cjs +1 -1
  101. package/dist/cjs/components/simple-data-table/cell.cjs.map +1 -0
  102. package/dist/cjs/components/{data-table → simple-data-table}/check-props.cjs +1 -1
  103. package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -0
  104. package/dist/cjs/components/simple-data-table/column-check-props.cjs.map +1 -0
  105. package/dist/cjs/components/simple-data-table/column.cjs +2 -0
  106. package/dist/cjs/components/simple-data-table/column.cjs.map +1 -0
  107. package/dist/cjs/components/simple-data-table/component.cjs +2 -0
  108. package/dist/cjs/components/simple-data-table/component.cjs.map +1 -0
  109. package/dist/cjs/components/{data-table → simple-data-table}/highlight-cell.cjs +1 -1
  110. package/dist/cjs/components/simple-data-table/highlight-cell.cjs.map +1 -0
  111. package/dist/cjs/components/simple-data-table/index.cjs +2 -0
  112. package/dist/cjs/components/simple-data-table/index.cjs.map +1 -0
  113. package/dist/cjs/components/simple-data-table/interactive-element.cjs.map +1 -0
  114. package/dist/cjs/components/simple-data-table/interactive-link.cjs.map +1 -0
  115. package/dist/cjs/components/simple-data-table/private/cell-context.cjs.map +1 -0
  116. package/dist/cjs/components/simple-data-table/private/cell-fixed.cjs.map +1 -0
  117. package/dist/cjs/components/simple-data-table/private/context-helper.cjs.map +1 -0
  118. package/dist/cjs/components/{data-table → simple-data-table}/private/head.cjs +1 -1
  119. package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -0
  120. package/dist/cjs/components/simple-data-table/private/header-cell.cjs +2 -0
  121. package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -0
  122. package/dist/cjs/components/simple-data-table/private/link.cjs.map +1 -0
  123. package/dist/cjs/components/simple-data-table/private/mode.cjs.map +1 -0
  124. package/dist/cjs/components/simple-data-table/private/row.cjs +2 -0
  125. package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -0
  126. package/dist/cjs/components/simple-data-table/private/table-context.cjs.map +1 -0
  127. package/dist/cjs/components/{data-table → simple-data-table}/row-actions.cjs +1 -1
  128. package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -0
  129. package/dist/cjs/components/simple-data-table.cjs +1 -0
  130. package/dist/cjs/components/slider/index.cjs +1 -1
  131. package/dist/cjs/components/slider/index.cjs.map +1 -1
  132. package/dist/cjs/components/spinner/index.cjs +1 -1
  133. package/dist/cjs/components/spinner/index.cjs.map +1 -1
  134. package/dist/cjs/components/split-view/index.cjs +1 -1
  135. package/dist/cjs/components/split-view/index.cjs.map +1 -1
  136. package/dist/cjs/components/tabs/index.cjs +1 -1
  137. package/dist/cjs/components/tabs/index.cjs.map +1 -1
  138. package/dist/cjs/components/textarea/index.cjs +1 -1
  139. package/dist/cjs/components/textarea/index.cjs.map +1 -1
  140. package/dist/cjs/components/toast/index.cjs +1 -1
  141. package/dist/cjs/components/toast/index.cjs.map +1 -1
  142. package/dist/cjs/components/tooltip/index.cjs +2 -2
  143. package/dist/cjs/components/tooltip/index.cjs.map +1 -1
  144. package/dist/cjs/components/tree/index.cjs +1 -0
  145. package/dist/cjs/components/tree.cjs +1 -0
  146. package/dist/cjs/components/trial-bar/index.cjs +1 -1
  147. package/dist/cjs/components/trial-bar/index.cjs.map +1 -1
  148. package/dist/cjs/components/vertical-navigation/index.cjs +1 -1
  149. package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
  150. package/dist/cjs/components/visual-picker/index.cjs +1 -1
  151. package/dist/cjs/components/visual-picker/index.cjs.map +1 -1
  152. package/dist/cjs/components/welcome-mat/index.cjs +1 -1
  153. package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
  154. package/dist/cjs/utilities/constants.cjs +1 -1
  155. package/dist/cjs/utilities/constants.cjs.map +1 -1
  156. package/dist/cjs/utilities/hooks/index.cjs +1 -0
  157. package/dist/cjs/utilities/hooks.cjs +1 -0
  158. package/dist/cjs/utilities/warning/incompatible-props.cjs +2 -0
  159. package/dist/cjs/utilities/warning/incompatible-props.cjs.map +1 -0
  160. package/dist/es/components/accordion/index.js +28 -24
  161. package/dist/es/components/accordion/index.js.map +1 -1
  162. package/dist/es/components/alert/index.js +14 -14
  163. package/dist/es/components/alert/index.js.map +1 -1
  164. package/dist/es/components/badge/index.js +1 -0
  165. package/dist/es/components/badge/index.js.map +1 -1
  166. package/dist/es/components/button/index.js +1 -1
  167. package/dist/es/components/button/index.js.map +1 -1
  168. package/dist/es/components/button-stateful/index.js +3 -2
  169. package/dist/es/components/button-stateful/index.js.map +1 -1
  170. package/dist/es/components/color-picker/index.js +2 -0
  171. package/dist/es/components/color-picker.js +2 -0
  172. package/dist/es/components/filter/index.js +2 -0
  173. package/dist/es/components/filter.js +2 -0
  174. package/dist/es/components/grid/index.js +31 -0
  175. package/dist/es/components/grid/index.js.map +1 -0
  176. package/dist/es/components/grid.js +2 -0
  177. package/dist/es/components/index.js +78 -78
  178. package/dist/es/components/menu-dropdown/index.js +5 -5
  179. package/dist/es/components/menu-dropdown/menu-dropdown.js +47 -40
  180. package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
  181. package/dist/es/components/page-header/index.js +24 -24
  182. package/dist/es/components/page-header/index.js.map +1 -1
  183. package/dist/es/components/popover/index.js +3 -3
  184. package/dist/es/components/popover/popover.js +10 -3
  185. package/dist/es/components/popover/popover.js.map +1 -1
  186. package/dist/es/components/progress-indicator/check-props.js +24 -0
  187. package/dist/es/components/progress-indicator/check-props.js.map +1 -0
  188. package/dist/es/components/progress-indicator/index.js +80 -38
  189. package/dist/es/components/progress-indicator/index.js.map +1 -1
  190. package/dist/es/components/progress-indicator/private/path.js +95 -0
  191. package/dist/es/components/progress-indicator/private/path.js.map +1 -0
  192. package/dist/es/components/progress-indicator/private/progress.js +1 -1
  193. package/dist/es/components/progress-indicator/private/progress.js.map +1 -1
  194. package/dist/es/components/progress-indicator/private/use-roving-tab-index.js +29 -0
  195. package/dist/es/components/progress-indicator/private/use-roving-tab-index.js.map +1 -0
  196. package/dist/es/components/progress-ring/index.js +8 -8
  197. package/dist/es/components/progress-ring/index.js.map +1 -1
  198. package/dist/es/components/{data-table → simple-data-table}/cell.js +2 -2
  199. package/dist/es/components/simple-data-table/cell.js.map +1 -0
  200. package/dist/es/components/{data-table → simple-data-table}/check-props.js +2 -2
  201. package/dist/es/components/simple-data-table/check-props.js.map +1 -0
  202. package/dist/es/components/{data-table → simple-data-table}/column-check-props.js +1 -1
  203. package/dist/es/components/simple-data-table/column-check-props.js.map +1 -0
  204. package/dist/es/components/simple-data-table/column.js +8 -0
  205. package/dist/es/components/simple-data-table/column.js.map +1 -0
  206. package/dist/es/components/{data-table → simple-data-table}/component.js +6 -10
  207. package/dist/es/components/simple-data-table/component.js.map +1 -0
  208. package/dist/es/components/{data-table → simple-data-table}/highlight-cell.js +2 -2
  209. package/dist/es/components/simple-data-table/highlight-cell.js.map +1 -0
  210. package/dist/es/components/{data-table → simple-data-table}/index.js +126 -233
  211. package/dist/es/components/simple-data-table/index.js.map +1 -0
  212. package/dist/es/components/{data-table → simple-data-table}/interactive-element.js +1 -1
  213. package/dist/es/components/simple-data-table/interactive-element.js.map +1 -0
  214. package/dist/es/components/{data-table → simple-data-table}/interactive-link.js +1 -1
  215. package/dist/es/components/simple-data-table/interactive-link.js.map +1 -0
  216. package/dist/es/components/{data-table → simple-data-table}/private/cell-context.js +1 -1
  217. package/dist/es/components/simple-data-table/private/cell-context.js.map +1 -0
  218. package/dist/es/components/{data-table → simple-data-table}/private/cell-fixed.js +1 -1
  219. package/dist/es/components/simple-data-table/private/cell-fixed.js.map +1 -0
  220. package/dist/es/components/{data-table → simple-data-table}/private/context-helper.js +1 -1
  221. package/dist/es/components/simple-data-table/private/context-helper.js.map +1 -0
  222. package/dist/es/components/{data-table → simple-data-table}/private/head.js +2 -2
  223. package/dist/es/components/simple-data-table/private/head.js.map +1 -0
  224. package/dist/es/components/{data-table → simple-data-table}/private/header-cell.js +2 -2
  225. package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -0
  226. package/dist/es/components/{data-table → simple-data-table}/private/link.js +1 -1
  227. package/dist/es/components/simple-data-table/private/link.js.map +1 -0
  228. package/dist/es/components/{data-table → simple-data-table}/private/mode.js +1 -1
  229. package/dist/es/components/simple-data-table/private/mode.js.map +1 -0
  230. package/dist/es/components/{data-table → simple-data-table}/private/row.js +6 -6
  231. package/dist/es/components/simple-data-table/private/row.js.map +1 -0
  232. package/dist/es/components/{data-table → simple-data-table}/private/table-context.js +1 -1
  233. package/dist/es/components/simple-data-table/private/table-context.js.map +1 -0
  234. package/dist/es/components/{data-table → simple-data-table}/row-actions.js +2 -2
  235. package/dist/es/components/simple-data-table/row-actions.js.map +1 -0
  236. package/dist/es/components/simple-data-table.js +2 -0
  237. package/dist/es/components/tooltip/index.js +90 -84
  238. package/dist/es/components/tooltip/index.js.map +1 -1
  239. package/dist/es/components/tree/index.js +2 -0
  240. package/dist/es/components/tree.js +2 -0
  241. package/dist/es/utilities/constants.js +2 -2
  242. package/dist/es/utilities/constants.js.map +1 -1
  243. package/dist/es/utilities/hooks/index.js +2 -0
  244. package/dist/es/utilities/hooks.js +1 -0
  245. package/dist/es/utilities/warning/incompatible-props.js +19 -0
  246. package/dist/es/utilities/warning/incompatible-props.js.map +1 -0
  247. package/dist/types/components/accordion/index.d.ts.map +1 -1
  248. package/dist/types/components/alert/index.d.ts.map +1 -1
  249. package/dist/types/components/badge/index.d.ts +1 -1
  250. package/dist/types/components/badge/index.d.ts.map +1 -1
  251. package/dist/types/components/button/index.d.ts +5 -2
  252. package/dist/types/components/button/index.d.ts.map +1 -1
  253. package/dist/types/components/button-stateful/index.d.ts +2 -2
  254. package/dist/types/components/button-stateful/index.d.ts.map +1 -1
  255. package/dist/types/components/index.d.ts +14 -14
  256. package/dist/types/components/index.d.ts.map +1 -1
  257. package/dist/types/components/page-header/index.d.ts +1 -1
  258. package/dist/types/components/page-header/index.d.ts.map +1 -1
  259. package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -0
  260. package/dist/types/components/progress-indicator/index.d.ts +39 -8
  261. package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
  262. package/dist/types/components/progress-indicator/private/path.d.ts +48 -0
  263. package/dist/types/components/progress-indicator/private/path.d.ts.map +1 -0
  264. package/dist/types/components/progress-indicator/private/progress.d.ts.map +1 -1
  265. package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts +41 -0
  266. package/dist/types/components/progress-indicator/private/use-roving-tab-index.d.ts.map +1 -0
  267. package/dist/types/components/{data-table → simple-data-table}/cell.d.ts +5 -5
  268. package/dist/types/components/simple-data-table/cell.d.ts.map +1 -0
  269. package/dist/types/components/simple-data-table/check-props.d.ts +3 -0
  270. package/dist/types/components/simple-data-table/check-props.d.ts.map +1 -0
  271. package/dist/types/components/simple-data-table/column-check-props.d.ts.map +1 -0
  272. package/dist/types/components/{data-table → simple-data-table}/column.d.ts +6 -6
  273. package/dist/types/components/simple-data-table/column.d.ts.map +1 -0
  274. package/dist/types/components/simple-data-table/highlight-cell.d.ts +14 -0
  275. package/dist/types/components/simple-data-table/highlight-cell.d.ts.map +1 -0
  276. package/dist/types/components/{data-table → simple-data-table}/index.d.ts +13 -40
  277. package/dist/types/components/simple-data-table/index.d.ts.map +1 -0
  278. package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -0
  279. package/dist/types/components/simple-data-table/interactive-link.d.ts.map +1 -0
  280. package/dist/types/components/simple-data-table/private/cell-context.d.ts.map +1 -0
  281. package/dist/types/components/simple-data-table/private/cell-fixed.d.ts.map +1 -0
  282. package/dist/types/components/simple-data-table/private/context-helper.d.ts.map +1 -0
  283. package/dist/types/components/{data-table → simple-data-table}/private/head.d.ts +6 -6
  284. package/dist/types/components/simple-data-table/private/head.d.ts.map +1 -0
  285. package/dist/types/components/{data-table → simple-data-table}/private/header-cell.d.ts +3 -3
  286. package/dist/types/components/simple-data-table/private/header-cell.d.ts.map +1 -0
  287. package/dist/types/components/simple-data-table/private/link.d.ts.map +1 -0
  288. package/dist/types/components/simple-data-table/private/mode.d.ts.map +1 -0
  289. package/dist/types/components/{data-table → simple-data-table}/private/row.d.ts +11 -11
  290. package/dist/types/components/simple-data-table/private/row.d.ts.map +1 -0
  291. package/dist/types/components/simple-data-table/private/table-context.d.ts.map +1 -0
  292. package/dist/types/components/{data-table → simple-data-table}/row-actions.d.ts +5 -5
  293. package/dist/types/components/simple-data-table/row-actions.d.ts.map +1 -0
  294. package/dist/types/components/simple-data-table/simple-data-table.d.ts +15 -0
  295. package/dist/types/components/simple-data-table/simple-data-table.d.ts.map +1 -0
  296. package/dist/types/components/{data-table → simple-data-table}/types.d.ts +56 -71
  297. package/dist/types/components/simple-data-table/types.d.ts.map +1 -0
  298. package/dist/types/components/simple-data-table.d.ts +2 -0
  299. package/dist/types/components/tooltip/index.d.ts +10 -1
  300. package/dist/types/components/tooltip/index.d.ts.map +1 -1
  301. package/dist/types/utilities/constants.d.ts +8 -7
  302. package/dist/types/utilities/constants.d.ts.map +1 -1
  303. package/dist/types/utilities/hooks/index.d.ts +1 -1
  304. package/dist/types/utilities/hooks/index.d.ts.map +1 -1
  305. package/dist/types/utilities/hooks.d.ts +0 -1
  306. package/dist/types/utilities/sample-data/global-navigation-bar.d.ts +0 -1
  307. package/dist/types/utilities/sample-data/vertical-navigation.d.ts +0 -1
  308. package/dist/types/utilities/warning/incompatible-props.d.ts.map +1 -1
  309. package/package.json +6 -4
  310. package/dist/cjs/components/data-table/cell.cjs.map +0 -1
  311. package/dist/cjs/components/data-table/check-props.cjs.map +0 -1
  312. package/dist/cjs/components/data-table/column-check-props.cjs.map +0 -1
  313. package/dist/cjs/components/data-table/column.cjs +0 -2
  314. package/dist/cjs/components/data-table/column.cjs.map +0 -1
  315. package/dist/cjs/components/data-table/component.cjs +0 -2
  316. package/dist/cjs/components/data-table/component.cjs.map +0 -1
  317. package/dist/cjs/components/data-table/highlight-cell.cjs.map +0 -1
  318. package/dist/cjs/components/data-table/index.cjs +0 -2
  319. package/dist/cjs/components/data-table/index.cjs.map +0 -1
  320. package/dist/cjs/components/data-table/interactive-element.cjs.map +0 -1
  321. package/dist/cjs/components/data-table/interactive-link.cjs.map +0 -1
  322. package/dist/cjs/components/data-table/private/cell-context.cjs.map +0 -1
  323. package/dist/cjs/components/data-table/private/cell-fixed.cjs.map +0 -1
  324. package/dist/cjs/components/data-table/private/context-helper.cjs.map +0 -1
  325. package/dist/cjs/components/data-table/private/head.cjs.map +0 -1
  326. package/dist/cjs/components/data-table/private/header-cell.cjs +0 -2
  327. package/dist/cjs/components/data-table/private/header-cell.cjs.map +0 -1
  328. package/dist/cjs/components/data-table/private/link.cjs.map +0 -1
  329. package/dist/cjs/components/data-table/private/mode.cjs.map +0 -1
  330. package/dist/cjs/components/data-table/private/row.cjs +0 -2
  331. package/dist/cjs/components/data-table/private/row.cjs.map +0 -1
  332. package/dist/cjs/components/data-table/private/table-context.cjs.map +0 -1
  333. package/dist/cjs/components/data-table/row-actions.cjs.map +0 -1
  334. package/dist/cjs/components/data-table.cjs +0 -1
  335. package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs +0 -2
  336. package/dist/cjs/utilities/design-tokens/dist/palette-colors.common.cjs.map +0 -1
  337. package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs +0 -2
  338. package/dist/cjs/utilities/design-tokens/dist/salesforce-skin.common.cjs.map +0 -1
  339. package/dist/es/components/data-table/cell.js.map +0 -1
  340. package/dist/es/components/data-table/check-props.js.map +0 -1
  341. package/dist/es/components/data-table/column-check-props.js.map +0 -1
  342. package/dist/es/components/data-table/column.js +0 -8
  343. package/dist/es/components/data-table/column.js.map +0 -1
  344. package/dist/es/components/data-table/component.js.map +0 -1
  345. package/dist/es/components/data-table/highlight-cell.js.map +0 -1
  346. package/dist/es/components/data-table/index.js.map +0 -1
  347. package/dist/es/components/data-table/interactive-element.js.map +0 -1
  348. package/dist/es/components/data-table/interactive-link.js.map +0 -1
  349. package/dist/es/components/data-table/private/cell-context.js.map +0 -1
  350. package/dist/es/components/data-table/private/cell-fixed.js.map +0 -1
  351. package/dist/es/components/data-table/private/context-helper.js.map +0 -1
  352. package/dist/es/components/data-table/private/head.js.map +0 -1
  353. package/dist/es/components/data-table/private/header-cell.js.map +0 -1
  354. package/dist/es/components/data-table/private/link.js.map +0 -1
  355. package/dist/es/components/data-table/private/mode.js.map +0 -1
  356. package/dist/es/components/data-table/private/row.js.map +0 -1
  357. package/dist/es/components/data-table/private/table-context.js.map +0 -1
  358. package/dist/es/components/data-table/row-actions.js.map +0 -1
  359. package/dist/es/components/data-table.js +0 -2
  360. package/dist/es/utilities/design-tokens/dist/palette-colors.common.js +0 -6
  361. package/dist/es/utilities/design-tokens/dist/palette-colors.common.js.map +0 -1
  362. package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js +0 -286
  363. package/dist/es/utilities/design-tokens/dist/salesforce-skin.common.js.map +0 -1
  364. package/dist/types/components/data-table/cell.d.ts.map +0 -1
  365. package/dist/types/components/data-table/check-props.d.ts.map +0 -1
  366. package/dist/types/components/data-table/column-check-props.d.ts.map +0 -1
  367. package/dist/types/components/data-table/column.d.ts.map +0 -1
  368. package/dist/types/components/data-table/data-table.d.ts +0 -15
  369. package/dist/types/components/data-table/data-table.d.ts.map +0 -1
  370. package/dist/types/components/data-table/highlight-cell.d.ts +0 -14
  371. package/dist/types/components/data-table/highlight-cell.d.ts.map +0 -1
  372. package/dist/types/components/data-table/index.d.ts.map +0 -1
  373. package/dist/types/components/data-table/interactive-element.d.ts.map +0 -1
  374. package/dist/types/components/data-table/interactive-link.d.ts.map +0 -1
  375. package/dist/types/components/data-table/private/cell-context.d.ts.map +0 -1
  376. package/dist/types/components/data-table/private/cell-fixed.d.ts.map +0 -1
  377. package/dist/types/components/data-table/private/context-helper.d.ts.map +0 -1
  378. package/dist/types/components/data-table/private/head.d.ts.map +0 -1
  379. package/dist/types/components/data-table/private/header-cell.d.ts.map +0 -1
  380. package/dist/types/components/data-table/private/link.d.ts.map +0 -1
  381. package/dist/types/components/data-table/private/mode.d.ts.map +0 -1
  382. package/dist/types/components/data-table/private/row.d.ts.map +0 -1
  383. package/dist/types/components/data-table/private/table-context.d.ts.map +0 -1
  384. package/dist/types/components/data-table/row-actions.d.ts.map +0 -1
  385. package/dist/types/components/data-table/types.d.ts.map +0 -1
  386. package/dist/types/components/data-table.d.ts +0 -2
  387. package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts +0 -81
  388. package/dist/types/utilities/design-tokens/dist/analytics-cloud.common.d.ts.map +0 -1
  389. package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts +0 -201
  390. package/dist/types/utilities/design-tokens/dist/bg-actions.common.d.ts.map +0 -1
  391. package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts +0 -117
  392. package/dist/types/utilities/design-tokens/dist/bg-custom.common.d.ts.map +0 -1
  393. package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts +0 -5
  394. package/dist/types/utilities/design-tokens/dist/bg-icons.common.d.ts.map +0 -1
  395. package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts +0 -204
  396. package/dist/types/utilities/design-tokens/dist/bg-standard.common.d.ts.map +0 -1
  397. package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts +0 -3
  398. package/dist/types/utilities/design-tokens/dist/color-palettes.common.d.ts.map +0 -1
  399. package/dist/types/utilities/design-tokens/dist/components.common.d.ts +0 -249
  400. package/dist/types/utilities/design-tokens/dist/components.common.d.ts.map +0 -1
  401. package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts +0 -9
  402. package/dist/types/utilities/design-tokens/dist/console-base.common.d.ts.map +0 -1
  403. package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts +0 -647
  404. package/dist/types/utilities/design-tokens/dist/force-base.common.d.ts.map +0 -1
  405. package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts +0 -14
  406. package/dist/types/utilities/design-tokens/dist/force-font-commons.common.d.ts.map +0 -1
  407. package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts +0 -10
  408. package/dist/types/utilities/design-tokens/dist/force-mq-commons.common.d.ts.map +0 -1
  409. package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts +0 -9
  410. package/dist/types/utilities/design-tokens/dist/icon-paths.common.d.ts.map +0 -1
  411. package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts +0 -7
  412. package/dist/types/utilities/design-tokens/dist/illustrations.common.d.ts.map +0 -1
  413. package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts +0 -12
  414. package/dist/types/utilities/design-tokens/dist/image-paths.common.d.ts.map +0 -1
  415. package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts +0 -35
  416. package/dist/types/utilities/design-tokens/dist/marketing-cloud.common.d.ts.map +0 -1
  417. package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts +0 -98
  418. package/dist/types/utilities/design-tokens/dist/palette-colors.common.d.ts.map +0 -1
  419. package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts +0 -15
  420. package/dist/types/utilities/design-tokens/dist/s1-base-large.common.d.ts.map +0 -1
  421. package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts +0 -5
  422. package/dist/types/utilities/design-tokens/dist/s1-base-medium.common.d.ts.map +0 -1
  423. package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts +0 -11
  424. package/dist/types/utilities/design-tokens/dist/s1-base-small.common.d.ts.map +0 -1
  425. package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts +0 -21
  426. package/dist/types/utilities/design-tokens/dist/s1-base.common.d.ts.map +0 -1
  427. package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts +0 -283
  428. package/dist/types/utilities/design-tokens/dist/salesforce-skin.common.d.ts.map +0 -1
  429. /package/dist/cjs/components/{data-table → simple-data-table}/column-check-props.cjs +0 -0
  430. /package/dist/cjs/components/{data-table → simple-data-table}/interactive-element.cjs +0 -0
  431. /package/dist/cjs/components/{data-table → simple-data-table}/interactive-link.cjs +0 -0
  432. /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-context.cjs +0 -0
  433. /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-fixed.cjs +0 -0
  434. /package/dist/cjs/components/{data-table → simple-data-table}/private/context-helper.cjs +0 -0
  435. /package/dist/cjs/components/{data-table → simple-data-table}/private/link.cjs +0 -0
  436. /package/dist/cjs/components/{data-table → simple-data-table}/private/mode.cjs +0 -0
  437. /package/dist/cjs/components/{data-table → simple-data-table}/private/table-context.cjs +0 -0
  438. /package/dist/types/components/{data-table → progress-indicator}/check-props.d.ts +0 -0
  439. /package/dist/types/components/{data-table → simple-data-table}/column-check-props.d.ts +0 -0
  440. /package/dist/types/components/{data-table → simple-data-table}/interactive-element.d.ts +0 -0
  441. /package/dist/types/components/{data-table → simple-data-table}/interactive-link.d.ts +0 -0
  442. /package/dist/types/components/{data-table → simple-data-table}/private/cell-context.d.ts +0 -0
  443. /package/dist/types/components/{data-table → simple-data-table}/private/cell-fixed.d.ts +0 -0
  444. /package/dist/types/components/{data-table → simple-data-table}/private/context-helper.d.ts +0 -0
  445. /package/dist/types/components/{data-table → simple-data-table}/private/link.d.ts +0 -0
  446. /package/dist/types/components/{data-table → simple-data-table}/private/mode.d.ts +0 -0
  447. /package/dist/types/components/{data-table → simple-data-table}/private/table-context.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"salesforce-skin.common.cjs","names":[],"sources":["../../../../../utilities/design-tokens/dist/salesforce-skin.common.js"],"sourcesContent":["export default {\n\t// Used as the background color for the active state on rows or items on list-like components.\n\tcolorBackgroundRowActive: 'rgb(236, 235, 234)',\n\t// Brandable modal header\n\tcolorBackgroundModalBrand: 'rgb(0, 112, 210)',\n\t// Background color for notification list item.\n\tcolorBackgroundNotification: 'rgb(255, 255, 255)',\n\t// Background color for a new notification list item.\n\tcolorBackgroundNotificationNew: 'rgb(243, 242, 242)',\n\t// Notifications badge background color.\n\tcolorBackgroundNotificationBadgeActive: 'rgb(0, 57, 107)',\n\t// Notifications badge background color.\n\tcolorBackgroundNotificationBadgeHover: 'rgb(0, 95, 178)',\n\tcolorContrastPrimary: 'rgb(243, 242, 242)',\n\t// Used as the background color for the hover state on rows or items on list-like components.\n\tcolorBackgroundRowHover: 'rgb(243, 242, 242)',\n\tcolorForegroundPrimary: 'rgb(255, 255, 255)',\n\t// Dark color for UI elements related to errors. Accessible with white text.\n\tcolorBackgroundErrorDark: 'rgb(194, 57, 52)',\n\t// Background color for UI elements related to providing neutral information (not error, success, or warning).\n\tcolorBackgroundInfo: 'rgb(112, 110, 107)',\n\t// The color of the mask overlay that appears when you enter a modal state.\n\tcolorBackgroundTempModalTint: 'rgba(43, 40, 38, 0.6)',\n\t// Background color for reminder notification on hover\n\tcolorBackgroundReminderHover: 'rgb(255, 255, 255)',\n\t// Winter 18 token, this has been deprecated. Please use BRAND_BACKGROUND_DARK_TRANSPARENT instead. These RGBA values need to be updated if BRAND_BAND_COLOR_BACKGROUND_PRIMARY changes, solves webkit bug\n\tbrandBandColorBackgroundSecondaryTransparent: 'rgba(253, 253, 253, 0)',\n\t// Notifications badge background color.\n\tcolorBackgroundNotificationBadge: 'rgb(194, 57, 52)',\n\t// Color of the indicator dot.\n\tcolorBackgroundIndicatorDot: 'rgb(22, 50, 92)',\n\tcardWrapperColorBackground: 'rgb(255, 255, 255)',\n\t// Alternative background color for dark portions of the app.\n\tcolorBackgroundAltInverse: 'rgb(22, 50, 92)',\n\tpopoverWalkthroughHeaderImage: '/assets/images/popovers/popover-header.png',\n\t// Disabled input\n\tcolorBackgroundInputDisabled: 'rgb(236, 235, 234)',\n\t// Used as the background color for the new state on rows or items on list-like components.\n\tcolorBackgroundRowNew: 'rgb(217, 255, 223)',\n\t// Hovered toggle background color.\n\tcolorBackgroundToggleHover: 'rgb(150, 148, 146)',\n\tpopoverWalkthroughColorBackground: 'rgb(3, 46, 97)',\n\t// Dark color for UI elements that have to do with success. Accessible with white text.\n\tcolorBackgroundSuccessDark: 'rgb(4, 132, 75)',\n\t// Background color for reminder notification\n\tcolorBackgroundReminder: 'rgb(244, 246, 249)',\n\t// Used as background for loading stencils on white background.\n\tcolorBackgroundStencil: 'rgb(243, 242, 242)',\n\t// Used when further differentiation is needed because colorBackground and colorBackgroundAlt are both being used in close proximity.\n\tcolorBackgroundAlt2: 'rgb(243, 242, 242)',\n\t// Color for UI elements that have to do with warning.\n\tcolorBackgroundWarning: 'rgb(255, 183, 93)',\n\t// Hovered background color for success buttons\n\tcolorBackgroundButtonSuccessHover: 'rgb(4, 132, 75)',\n\tpopoverWalkthroughAltImage: '/assets/images/popovers/popover-action.png',\n\t// Hover color for utility bar item.\n\tcolorBackgroundUtilityBarHover: 'rgb(236, 235, 234)',\n\tprogressColorBorderShade: 'rgb(243, 242, 242)',\n\t// Background color for highlighting text in search results.\n\tcolorBackgroundHighlightSearch: 'rgb(255, 240, 63)',\n\t// Toggle background color.\n\tcolorBackgroundToggle: 'rgb(176, 173, 171)',\n\t// Use COLOR_BACKGROUND_PAGE_HEADER instead.\n\tcolorBackgroundAnchor: 'rgb(243, 242, 242)',\n\tpopoverWalkthroughAltNubbinColorBackground: 'rgb(33, 92, 160)',\n\t// Hover color for UI elements related to destructive actions.\n\tcolorBackgroundDestructiveHover: 'rgb(166, 26, 20)',\n\tprogressColorBackgroundShade: 'rgb(243, 242, 242)',\n\t// Default background color for the whole app.\n\tcolorBackground: 'rgb(243, 242, 242)',\n\t// Our product brand blue, darkened to meet accessibility color contrast ratios with white text.\n\tcolorBrandDark: 'rgb(0, 112, 210)',\n\t// Background color for success buttons\n\tcolorBackgroundButtonSuccess: 'rgb(75, 202, 129)',\n\t// The color of the mask overlay that appears when you enter a modal state.\n\tcolorBackgroundBackdrop: 'rgba(255, 255, 255, 0.75)',\n\t// Our product brand blue.\n\tcolorBrand: 'rgb(21, 137, 238)',\n\t// Background color for default desktop chrome (ex. global header)\n\tcolorBackgroundChromeDesktop: 'rgb(255, 255, 255)',\n\t// Default Page Header background color\n\tpageHeaderColorBackground: 'rgb(243, 242, 242)',\n\t// Active button backgrounds on modal headers\n\tcolorBackgroundModalButtonActive: 'rgba(0, 0, 0, 0.16)',\n\t// Color for UI elements related to destructive actions.\n\tcolorBackgroundDestructive: 'rgb(194, 57, 52)',\n\t// Selected checkboxes\n\tcolorBackgroundInputCheckboxSelected: 'rgb(21, 137, 238)',\n\t// Default checkboxes\n\tcolorBackgroundInputCheckbox: 'rgb(255, 255, 255)',\n\tcolorBackgroundPrimary: 'rgb(243, 242, 242)',\n\t// Color for UI elements that have to do with success.\n\tcolorBackgroundSuccess: 'rgb(75, 202, 129)',\n\t// Disabled checkboxes\n\tcolorBackgroundInputCheckboxDisabled: 'rgb(221, 219, 218)',\n\t// Background color for pills.\n\tcolorBackgroundPill: 'rgb(255, 255, 255)',\n\t// Color of the spinner dot.\n\tcolorBackgroundSpinnerDot: 'rgb(176, 173, 171)',\n\tcolorBackgroundBrandPrimaryFocus: 'rgb(0, 95, 178)',\n\t// Color for UI elements related to the offline state.\n\tcolorBackgroundOffline: 'rgb(62, 62, 60)',\n\ttableColorBackgroundHeaderHover: 'rgb(255, 255, 255)',\n\t// The color of the mask overlay that provides user feedback on interaction.\n\tcolorBackgroundBackdropTint: 'rgb(250, 250, 249)',\n\tcolorBackgroundBrandPrimaryActive: 'rgb(0, 95, 178)',\n\t// Selected input field (when user has clicked or tabbed into field)\n\tcolorBackgroundInputActive: 'rgb(255, 255, 255)',\n\tpopoverWalkthroughColorBackgroundAlt: 'rgb(22, 74, 133)',\n\t// Winter 18 token, this has been deprecated. Please use BRAND_BACKGROUND_PRIMARY_DARK instead.\n\tbrandBandColorBackgroundSecondary: 'rgb(253, 253, 253)',\n\ttableColorBackgroundHeader: 'rgb(250, 250, 249)',\n\t// Used as an alternate background for loading stencils on gray backgrounds.\n\tcolorBackgroundStencilAlt: 'rgb(236, 235, 234)',\n\t// The background color of an internal scrollbar.\n\tcolorBackgroundScrollbar: 'rgb(236, 235, 234)',\n\t// Disabled toggle background color.\n\tcolorBackgroundToggleDisabled: 'rgb(176, 173, 171)',\n\t// Background color for toast messaging.\n\tcolorBackgroundToast: 'rgb(112, 110, 107)',\n\tcolorBackgroundBrandPrimaryHover: 'rgb(0, 95, 178)',\n\t// Background color for default mobile chrome (ex. global header)\n\tcolorBackgroundChromeMobile: 'rgb(0, 112, 210)',\n\t// Winter 18 token, this has been deprecated. Please use BRAND_BACKGROUND_PRIMARY_TRANSPARENT instead. These RGBA values need to be updated if BRAND_BAND_COLOR_BACKGROUND_PRIMARY changes, solves webkit bug\n\tbrandBandColorBackgroundPrimaryTransparent: 'rgba(253, 253, 253, 0)',\n\t// Background color for UI elements related to the concept of an external user or customer.\n\tcolorBackgroundCustomer: 'rgb(255, 154, 60)',\n\t// Color for UI elements related to errors.\n\tcolorBackgroundError: 'rgb(212, 80, 76)',\n\tcolorContrastSecondary: 'rgb(243, 242, 242)',\n\t// Secondary top bar background color (child browser, file preview, etc.)\n\tcolorBackgroundBrowser: 'rgb(112, 110, 107)',\n\t// Second default background color for the app.\n\tcolorBackgroundAlt: 'rgb(255, 255, 255)',\n\t// Background color of comment posts in the feed.\n\tcolorBackgroundPost: 'rgb(250, 250, 249)',\n\tcolorBackgroundBrandPrimary: 'rgb(0, 112, 210)',\n\t// Used as the background color for selected rows or items on list-like components.\n\tcolorBackgroundRowSelected: 'rgb(236, 235, 234)',\n\t// Default input field\n\tcolorBackgroundInput: 'rgb(255, 255, 255)',\n\t// Background color for success toast messaging.\n\tcolorBackgroundToastSuccess: 'rgb(4, 132, 75)',\n\t// Color of mask overlay that sits on top of an image when text is present.\n\tcolorBackgroundImageOverlay: 'rgba(0, 0, 0, 0.4)',\n\t// Our product brand blue, darkened even further.\n\tcolorBrandDarker: 'rgb(0, 95, 178)',\n\t// Used as the default background color for temporary dialog elements, such as the progress spinner background.\n\tcolorBackgroundTempModal: 'rgb(150, 148, 146)',\n\t// Background color for text selected with a mouse.\n\tcolorBackgroundSelection: 'rgb(216, 237, 255)',\n\t// Used as gray background when more contrast is desired.\n\tcolorBackgroundShade: 'rgb(236, 235, 234)',\n\t// Standard modal header\n\tcolorBackgroundModal: 'rgb(255, 255, 255)',\n\t// Active color for UI elements related to destructive actions.\n\tcolorBackgroundDestructiveActive: 'rgb(135, 5, 0)',\n\t// Hovered active toggle background color.\n\tcolorBackgroundToggleActiveHover: 'rgb(0, 95, 178)',\n\t// Background color for payloads in the feed.\n\tcolorBackgroundPayload: 'rgb(250, 250, 249)',\n\t// Button backgrounds on modal headers\n\tcolorBackgroundModalButton: 'rgba(0, 0, 0, 0.07)',\n\t// Active color for utility bar item.\n\tcolorBackgroundUtilityBarActive: 'rgb(21, 137, 238)',\n\t// Active background color for success buttons\n\tcolorBackgroundButtonSuccessActive: 'rgb(4, 132, 75)',\n\tbuttonColorBackgroundPrimary: 'rgb(255, 255, 255)',\n\t// Background color for error toast messaging.\n\tcolorBackgroundToastError: 'rgb(194, 57, 52)',\n\t// Stage left org switcher dropdown arrow background color.\n\tcolorBackgroundOrgSwitcherArrow: 'rgb(6, 28, 63)',\n\t// Default background color for dark portions of the app (like Stage Left or tooltips).\n\tcolorBackgroundInverse: 'rgb(6, 28, 63)',\n\t// Active toggle background color.\n\tcolorBackgroundToggleActive: 'rgb(0, 112, 210)',\n\tcolorPickerSliderThumbColorBackground: 'rgb(243, 242, 242)',\n\t// Winter 18 token, this has been deprecated. Please use BRAND_BACKGROUND_PRIMARY instead.\n\tpageColorBackgroundPrimary: 'rgb(253, 253, 253)',\n\t// Used as gray background in conjunction with Shade when more contrast is desired.\n\tcolorBackgroundShadeDark: 'rgb(221, 219, 218)',\n\t// Notifications badge background color.\n\tcolorBackgroundNotificationBadgeFocus: 'rgb(0, 95, 178)',\n\t// Background for utility icons that live in the action bar on mobile.\n\tcolorBackgroundActionbarIconUtility: 'rgb(112, 110, 107)',\n\t// The background color of an internal scrollbar track.\n\tcolorBackgroundScrollbarTrack: 'rgb(201, 199, 197)',\n\t// Background color for input field that has encountered an error.\n\tcolorBackgroundInputError: 'rgb(255, 221, 225)',\n\t// Winter 18 token, this has been deprecated. Please use BRAND_BACKGROUND_PRIMARY instead.\n\tbrandBandColorBackgroundPrimary: 'rgb(253, 253, 253)',\n\t// Background color for highlighting UI elements.\n\tcolorBackgroundHighlight: 'rgb(250, 255, 189)',\n\tcolorBackgroundSecondary: 'rgb(255, 255, 255)',\n\tpopoverWalkthroughHeaderColorBackground: 'rgb(22, 74, 133)',\n\tbrandBandDefaultImage:\n\t\t'/assets/images/themes/oneSalesforce/banner-brand-default.png',\n\tbannerUserDefaultImage:\n\t\t'/assets/images/themes/oneSalesforce/banner-user-default.png',\n\tbannerGroupDefaultImage:\n\t\t'/assets/images/themes/oneSalesforce/banner-group-public-default.png',\n\t// The borders to create the checkmark\n\tcolorBorderInputCheckboxSelectedCheckmark: 'rgb(255, 255, 255)',\n\t// Border color for disabled inverse button.\n\tcolorBorderButtonInverseDisabled: 'rgba(255, 255, 255, 0.15)',\n\t// Hovered border color for a button with an icon that has a parent element that has a hover state\n\tcolorBorderIconInverseHintHover: 'rgba(255, 255, 255, 0.75)',\n\t// Dark alternative border color for UI elements related to errors.\n\tcolorBorderErrorDark: 'rgb(234, 130, 136)',\n\t// Border color for a button with an icon that has a parent element that has a hover state\n\tcolorBorderIconInverseHint: 'rgba(255, 255, 255, 0.5)',\n\t// Our product brand blue, darkened to meet accessibility color contrast ratios with white text.\n\tcolorBorderBrandDark: 'rgb(0, 112, 210)',\n\t// Border color for UI elements related to providing neutral information (not error, success, or warning).\n\tcolorBorderInfo: 'rgb(112, 110, 107)',\n\t// Border color for UI elements that have to do with warnings.\n\tcolorBorderWarning: 'rgb(255, 183, 93)',\n\t// Border color for an active tab.\n\tcolorBorderTabActive: 'rgb(255, 255, 255)',\n\t// Disabled stroke color.\n\tcolorStrokeDisabled: 'rgb(236, 235, 234)',\n\t// Hover border color for UI elements that have to do with destructive actions.\n\tcolorBorderDestructiveHover: 'rgb(166, 26, 20)',\n\t// Default border color for UI elements.\n\tcolorBorder: 'rgb(221, 219, 218)',\n\t// Border color on disabled form elements.\n\tcolorBorderInputDisabled: 'rgb(201, 199, 197)',\n\t// Dark alternative border color for UI elements that have to do with success.\n\tcolorBorderSuccessDark: 'rgb(4, 132, 75)',\n\t// Border color on notification reminders.\n\tcolorBorderReminder: 'rgb(236, 235, 234)',\n\t// Active stroke color for our product brand blue.\n\tcolorStrokeBrandActive: 'rgb(22, 50, 92)',\n\t// Border color for brandable primary button - disabled state\n\tcolorBorderButtonBrandDisabled: 'rgba(0, 0, 0, 0)',\n\tpageHeaderColorBorder: 'rgb(221, 219, 218)',\n\t// Border color for UI elements that have to do with destructive actions.\n\tcolorBorderDestructive: 'rgb(194, 57, 52)',\n\tcolorBorderPrimary: 'rgb(221, 219, 218)',\n\t// Border color for default secondary button\n\tcolorBorderButtonDefault: 'rgb(221, 219, 218)',\n\t// Darkest separator color - used as an alternate separator color when more differentiation is desired.\n\tcolorBorderSeparatorAlt2: 'rgb(201, 199, 197)',\n\t// Border color for UI elements related to the offline state.\n\tcolorBorderOffline: 'rgb(62, 62, 60)',\n\tcolorBorderBrandPrimaryFocus: 'rgb(0, 95, 178)',\n\t// Border color for UI elements that have to do with success.\n\tcolorBorderSuccess: 'rgb(75, 202, 129)',\n\t// Lightest separator color - used as default separator on white backgrounds.\n\tcolorBorderSeparator: 'rgb(243, 242, 242)',\n\t// Our product brand blue.\n\tcolorBorderBrand: 'rgb(21, 137, 238)',\n\tcolorBorderBrandPrimaryHover: 'rgb(0, 95, 178)',\n\t// Used to delineate the boundary of a component that is being clicked. Specific to builders.\n\tcolorBorderSelectionActive: 'rgb(243, 242, 242)',\n\t// Border color for brandable primary button\n\tcolorBorderButtonBrand: 'rgb(0, 112, 210)',\n\t// Border color for UI elements that have to do with errors.\n\tcolorBorderError: 'rgb(194, 57, 52)',\n\t// Used to delineate the boundary of a component that is being hovered over. Specific to builders.\n\tcolorBorderSelectionHover: 'rgb(21, 137, 238)',\n\tcolorBorderBrandPrimaryActive: 'rgb(0, 95, 178)',\n\t// Border color on active form elements.\n\tcolorBorderInputActive: 'rgb(21, 137, 238)',\n\t// Border color on form elements.\n\tcolorBorderInput: 'rgb(221, 219, 218)',\n\tcolorBorderBrandPrimary: 'rgb(0, 112, 210)',\n\t// These borders create the faux checkmark when the checkbox toggle is in the checked state.\n\tcolorBorderToggleChecked: 'rgb(255, 255, 255)',\n\t// Used as the border color for the hover state on selected rows or items on list-like components.\n\tcolorBorderRowSelectedHover: 'rgb(21, 137, 238)',\n\t// Border color for UI elements related to the concept of an external user or customer.\n\tcolorBorderCustomer: 'rgb(255, 154, 60)',\n\t// Used to delineate the boundary of a selected component. Specific to builders.\n\tcolorBorderSelection: 'rgb(0, 112, 210)',\n\t// Used to delineate the boundary of a selected canvas element that is being hovered over. Specific to builders.\n\tcolorBorderCanvasElementSelectionHover: 'rgb(0, 95, 178)',\n\tcardColorBorder: 'rgb(221, 219, 218)',\n\t// Used as the border color for selected rows or items on list-like components.\n\tcolorBorderRowSelected: 'rgb(0, 112, 210)',\n\tbuttonColorBorderPrimary: 'rgb(221, 219, 218)',\n\t// Medium separator color - used as default separator on light gray backgrounds.\n\tcolorBorderSeparatorAlt: 'rgb(221, 219, 218)',\n\t// Used to delineate the boundary of a selected canvas element. Specific to builders.\n\tcolorBorderCanvasElementSelection: 'rgb(94, 180, 255)',\n\t// Hover stroke color for our product brand blue.\n\tcolorStrokeBrandHover: 'rgb(0, 112, 210)',\n\t// Border color to match UI elements using color-background-inverse.\n\tcolorBorderInverse: 'rgb(6, 28, 63)',\n\t// Stroke color for our global header buttons.\n\tcolorStrokeHeaderButton: 'rgb(176, 173, 171)',\n\t// Active border color for UI elements that have to do with destructive actions.\n\tcolorBorderDestructiveActive: 'rgb(135, 5, 0)',\n\t// Alternative border color for UI elements related to errors.\n\tcolorBorderErrorAlt: 'rgb(234, 130, 136)',\n\tpageHeaderJoinedColorBorder: 'rgb(221, 219, 218)',\n\t// Our product brand blue.\n\tcolorStrokeBrand: 'rgb(0, 112, 210)',\n\t// Border color for a selected tab in a tab group.\n\tcolorBorderTabSelected: 'rgb(0, 112, 210)',\n\tcardFooterColorBorder: 'rgb(221, 219, 218)',\n\t// Used as a separator on dark backgrounds, such as stage left navigation.\n\tcolorBorderSeparatorInverse: 'rgb(42, 66, 108)',\n\tpageHeaderBorderRadius: '0.25rem',\n\ttableBorderRadius: '0 0 0.25rem 0.25rem',\n\t// Hard dropshadow on page header\n\tpageHeaderShadow: '0 2px 2px 0 rgba(0, 0, 0, 0.1)',\n\tshadowSoftPrimaryHover: 'rgba(0, 0, 0, 0.20) 0 3px 6px',\n\t// Custom glow for focus states on UI elements with explicit containers.\n\tshadowButtonFocus: '0 0 3px #0070D2',\n\t// Shadow for header.\n\tshadowHeader: '0 2px 4px rgba(0, 0, 0, 0.07)',\n\t// Soft dropshadow found on general UI elements such as containers\n\tshadowSoftPrimary: 'rgba(0, 0, 0, 0.1) 0 2px 2px',\n\t// Hard dropshadow found on general UI elements such as containers\n\tshadowHardPrimary: 'rgba(0, 0, 0, 0.1) 0 2px 0',\n\t// Shadow above overflow menu close bar.\n\tshadowActionOverflowFooter: '0 -2px 4px #fafaf9',\n\t// Hard dropshadow found on outer cards\n\tcardShadow: '0 2px 2px 0 rgba(0, 0, 0, 0.1)',\n\t// Shadow for notifications that should be elevated above other components but under modals.\n\tshadowReminder: '0 2px 3px 0 rgba(0, 0, 0, 0.20)',\n\t// Shadow on elements that are docked to the bottom of the viewport.\n\tshadowDocked: '0 -2px 2px 0 rgba(0, 0, 0, 0.16)',\n\t// Shadow to make inline edit card pop out.\n\tshadowInlineEdit: '0 2px 4px 4px rgba(0, 0, 0, 0.16)',\n\t// Shadow for drag-n-drop.\n\tshadowDrag: '0 2px 4px 0 rgba(0, 0, 0, 0.40)',\n\t// Shadow for drop down.\n\tshadowDropDown: '0 2px 3px 0 rgba(0, 0, 0, 0.16)',\n\t// Inset shadow for editable grid\n\tshadowFocusInset: '0 0 2px 2px #1589EE inset',\n\tshadowSoftPrimaryActive: 'rgba(0, 0, 0, 0.20) 0 1px 1px',\n\t// Custom glow for focus states on UI elements with explicit containers on dark or vibrantly colored backgrounds.\n\tshadowButtonFocusInverse: '0 0 3px #ecebea',\n\t// Shadow on images.\n\tshadowImage: '0 1px 1px rgba(0, 0, 0, 0.16)',\n\tformLabelFontSize: '.75rem',\n\tinputStaticFontSize: '0.875rem',\n\tinputStaticFontWeight: '400',\n\t// Use for active tab.\n\ttabsFontWeight: '700',\n\t// Use for active tab.\n\tcardFontWeight: '700',\n\tpageHeaderTitleFontWeight: '700',\n\t//\n\tcomponentSpacingMargin: '0.75rem',\n\t//\n\tcomponentSpacingPadding: '1rem',\n\t//\n\ttemplateGutters: '0.75rem',\n\t//\n\ttemplateProfileGutters: '8rem 0.75rem 0.75rem',\n\t//\n\ttableCellSpacing: '0.25rem 0.5rem',\n\t//\n\tcardSpacingMargin: '0.75rem',\n\t//\n\tcardFooterPadding: '0.75rem 1rem',\n\tcardFooterTextAlign: 'center',\n\t// Icon color on dark background\n\tcolorTextIconInverse: 'rgb(255, 255, 255)',\n\t// Action label text color\n\tcolorTextActionLabel: 'rgb(112, 110, 107)',\n\t// Link color on dark background\n\tcolorTextLinkInverse: 'rgb(255, 255, 255)',\n\t// Text color for a button that has a parent element that has a hover state. This is the default text/icon color for that button before its parent has been hovered over.\n\tcolorTextButtonInverseDisabled: 'rgba(255, 255, 255, 0.15)',\n\t// Hovered icon color for a button that has a parent element that has a hover state\n\tcolorTextIconInverseHintHover: 'rgba(255, 255, 255, 0.75)',\n\t// Input icon\n\tcolorTextInputIcon: 'rgb(176, 173, 171)',\n\t// Link color on dark background - active state\n\tcolorTextLinkInverseActive: 'rgba(255, 255, 255, 0.5)',\n\t// Action label active text color\n\tcolorTextActionLabelActive: 'rgb(62, 62, 60)',\n\t// Icon color on dark background - active state\n\tcolorTextIconInverseActive: 'rgb(255, 255, 255)',\n\t// Color for text on a selected tab in a tab group.\n\tcolorTextTabLabelSelected: 'rgb(0, 112, 210)',\n\t// Color for texts or icons that are related to warnings on a dark background.\n\tcolorTextWarning: 'rgb(255, 183, 93)',\n\t// Icon color for a button that has a parent element that has a hover state on a dark background. This is the default text/icon color for that button before its parent has been hovered over.\n\tcolorTextIconInverseHint: 'rgba(255, 255, 255, 0.5)',\n\t// Color for disabled text in a tab group.\n\tcolorTextTabLabelDisabled: 'rgb(236, 235, 234)',\n\t// Text color for default secondary button - hover state\n\tcolorTextButtonDefaultHover: 'rgb(0, 112, 210)',\n\t// Input disabled text\n\tcolorTextInputDisabled: 'rgb(112, 110, 107)',\n\t// Tertiary body text color\n\tcolorTextTertiary: 'rgb(150, 148, 146)',\n\t// Focus link text\n\tcolorTextLinkFocus: 'rgb(0, 95, 178)',\n\t// Text color for default secondary button\n\tcolorTextButtonDefault: 'rgb(0, 112, 210)',\n\t// Default icon color - disabled state\n\tcolorTextIconDefaultDisabled: 'rgb(221, 219, 218)',\n\t// Disabled link text\n\tcolorTextLinkDisabled: 'rgb(22, 50, 92)',\n\t// Body text color\n\tcolorTextDefault: 'rgb(62, 62, 60)',\n\t// Active state on a standalone link on a dark background.\n\tcolorTextInverseActive: 'rgb(94, 180, 255)',\n\t// Text color for brandable primary button - disabled state\n\tcolorTextButtonBrandDisabled: 'rgb(255, 255, 255)',\n\t// Primary body text color\n\tcolorTextPrimary: 'rgb(62, 62, 60)',\n\tcolorTextLinkPrimaryFocus: 'rgb(0, 95, 178)',\n\t// Text color for brandable primary button - hover state\n\tcolorTextButtonBrandHover: 'rgb(255, 255, 255)',\n\t// Hover link text\n\tcolorTextLinkHover: 'rgb(0, 95, 178)',\n\t// Color for text in focus state in a tab group.\n\tcolorTextTabLabelFocus: 'rgb(0, 95, 178)',\n\t// Text color for success text.\n\tcolorTextSuccess: 'rgb(2, 126, 70)',\n\t// Color for text that is purposefully de-emphasized to create visual hierarchy.\n\tcolorTextWeak: 'rgb(112, 110, 107)',\n\t// Input placeholder text on dark backgrounds.\n\tcolorTextPlaceholderInverse: 'rgb(236, 235, 234)',\n\t// Default icon color - hover state.\n\tcolorTextIconDefaultHover: 'rgb(0, 112, 210)',\n\t// Icon color for a button that has a parent element that has a hover state. This is the default text/icon color for that button before its parent has been hovered over.\n\tcolorTextIconDefaultHintBorderless: 'rgb(236, 235, 234)',\n\t// Text color for pills.\n\tcolorTextPill: 'rgb(0, 112, 210)',\n\tcolorTextLinkPrimaryHover: 'rgb(0, 95, 178)',\n\t// Link text (508)\n\tcolorTextLink: 'rgb(0, 109, 204)',\n\t// Color for texts that are related to warnings on a light background.\n\tcolorTextWarningAlt: 'rgb(132, 72, 0)',\n\t// Text color for brandable primary button\n\tcolorTextButtonBrand: 'rgb(255, 255, 255)',\n\t// Color for text in active state in a tab group.\n\tcolorTextTabLabelActive: 'rgb(0, 57, 107)',\n\t// Default icon color.\n\tcolorTextIconDefault: 'rgb(112, 110, 107)',\n\t// Our product brand blue.\n\tcolorTextBrand: 'rgb(21, 137, 238)',\n\t// Color for text in hover state in a tab group.\n\tcolorTextTabLabelHover: 'rgb(0, 95, 178)',\n\t// Text color for default secondary button - disabled state\n\tcolorTextButtonDefaultDisabled: 'rgb(221, 219, 218)',\n\t// Color for text on toast messages.\n\tcolorTextToast: 'rgb(236, 235, 234)',\n\t// Color for disabled toggles\n\tcolorTextToggleDisabled: 'rgb(221, 219, 218)',\n\t// Top bar icon color\n\tcolorTextBrowser: 'rgb(255, 255, 255)',\n\tcolorTextLinkPrimaryActive: 'rgb(0, 95, 178)',\n\t// Error text for inputs and error misc\n\tcolorTextError: 'rgb(194, 57, 52)',\n\tcolorTextLinkPrimary: 'rgb(0, 112, 210)',\n\t// Top bar active icon color\n\tcolorTextBrowserActive: 'rgba(0, 0, 0, 0.4)',\n\t// Color for default text in a tab group.\n\tcolorTextTabLabel: 'rgb(22, 50, 92)',\n\t// Customer text used in anchor subtitle\n\tcolorTextCustomer: 'rgb(255, 154, 60)',\n\t// Default icon color - active state.\n\tcolorTextIconDefaultActive: 'rgb(0, 57, 107)',\n\t// Text color found on any primary brand color\n\tcolorTextBrandPrimary: 'rgb(255, 255, 255)',\n\t// Active link text\n\tcolorTextLinkActive: 'rgb(0, 57, 107)',\n\t// Icon color for a button that has a parent element that has a hover state. This is the default text/icon color for that button before its parent has been hovered over.\n\tcolorTextIconDefaultHint: 'rgb(176, 173, 171)',\n\t// Text color for brandable primary button - active state\n\tcolorTextButtonBrandActive: 'rgb(255, 255, 255)',\n\t// Color of required field marker.\n\tcolorTextRequired: 'rgb(194, 57, 52)',\n\t// Color for non-interactive icons that represent a selected item in a list\n\tcolorTextIconBrand: 'rgb(0, 112, 210)',\n\t// Hover state on a standalone link on a dark background.\n\tcolorTextInverseHover: 'rgb(176, 173, 171)',\n\t// Modal header title\n\tcolorTextModal: 'rgb(255, 255, 255)',\n\t// Text color for a button that has a parent element that has a hover state. This is the default text/icon color for that button before its parent has been hovered over.\n\tcolorTextButtonInverse: 'rgb(236, 235, 234)',\n\tbuttonColorTextPrimary: 'rgb(255, 255, 255)',\n\t// Modal header button text color\n\tcolorTextModalButton: 'rgb(112, 110, 107)',\n\t// Link color on dark background - disabled state\n\tcolorTextLinkInverseDisabled: 'rgba(255, 255, 255, 0.15)',\n\t// Inverse text color for dark backgrounds\n\tcolorTextInverse: 'rgb(255, 255, 255)',\n\t// Text color for default secondary button - active state\n\tcolorTextButtonDefaultActive: 'rgb(0, 112, 210)',\n\t// Icon color on dark background - disabled state\n\tcolorTextIconInverseDisabled: 'rgba(255, 255, 255, 0.15)',\n\t// Text color for a button that has a parent element that has a hover state. This is the default text/icon color for that button before its parent has been hovered over.\n\tcolorTextButtonDefaultHint: 'rgb(176, 173, 171)',\n\t// Color for interactive utility icons\n\tcolorTextIconUtility: 'rgb(176, 173, 171)',\n\t// Icon color on dark background - hover state\n\tcolorTextIconInverseHover: 'rgb(255, 255, 255)',\n\t// Input placeholder text.\n\tcolorTextPlaceholder: 'rgb(112, 110, 107)',\n\t// Weak inverse text color for dark backgrounds\n\tcolorTextInverseWeak: 'rgb(176, 173, 171)',\n\t// Secondary body text color\n\tcolorTextSecondary: 'rgb(112, 110, 107)',\n\t// Typed input text\n\tcolorTextInputFocusInverse: 'rgb(22, 50, 92)',\n\t// Text in stage left navigation.\n\tcolorTextStageLeft: 'rgb(236, 235, 234)',\n\t// Link color on dark background - hover state\n\tcolorTextLinkInverseHover: 'rgba(255, 255, 255, 0.75)',\n\t// Text color for success text on dark backgrounds.\n\tcolorTextSuccessInverse: 'rgb(75, 202, 129)',\n\t// Text color for field labels.\n\tcolorTextLabel: 'rgb(112, 110, 107)',\n};\n"],"mappings":"AAAA,IAAA,EAAe,CAEd,yBAA0B,qBAE1B,0BAA2B,mBAE3B,4BAA6B,qBAE7B,+BAAgC,qBAEhC,uCAAwC,kBAExC,sCAAuC,kBACvC,qBAAsB,qBAEtB,wBAAyB,qBACzB,uBAAwB,qBAExB,yBAA0B,mBAE1B,oBAAqB,qBAErB,6BAA8B,wBAE9B,6BAA8B,qBAE9B,6CAA8C,yBAE9C,iCAAkC,mBAElC,4BAA6B,kBAC7B,2BAA4B,qBAE5B,0BAA2B,kBAC3B,8BAA+B,6CAE/B,6BAA8B,qBAE9B,sBAAuB,qBAEvB,2BAA4B,qBAC5B,kCAAmC,iBAEnC,2BAA4B,kBAE5B,wBAAyB,qBAEzB,uBAAwB,qBAExB,oBAAqB,qBAErB,uBAAwB,oBAExB,kCAAmC,kBACnC,2BAA4B,6CAE5B,+BAAgC,qBAChC,yBAA0B,qBAE1B,+BAAgC,oBAEhC,sBAAuB,qBAEvB,sBAAuB,qBACvB,2CAA4C,mBAE5C,gCAAiC,mBACjC,6BAA8B,qBAE9B,gBAAiB,qBAEjB,eAAgB,mBAEhB,6BAA8B,oBAE9B,wBAAyB,4BAEzB,WAAY,oBAEZ,6BAA8B,qBAE9B,0BAA2B,qBAE3B,iCAAkC,s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4B,kBAE5B,mBAAoB,qBAEpB,0BAA2B,4BAE3B,wBAAyB,oBAEzB,eAAgB,oBACjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell.js","names":[],"sources":["../../../../components/data-table/cell.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useContext, ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport CellContext from './private/cell-context';\nimport TableContext from './private/table-context';\nimport useContextHelper from './private/context-helper';\n\nimport { DATA_TABLE_CELL } from '../../utilities/constants';\n\nexport interface DataTableCellProps {\n\t/** The contents of the cell */\n\tchildren?: ReactNode;\n\t/** Class names to be added to the cell */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Use this for advanced table (selectable, sortable, or resizable rows) */\n\tfixedLayout?: boolean;\n\t/** The item from the items which represents this row */\n\titem?: Record<string, unknown>;\n\t/** The primary column for a row. This is almost always the first column. */\n\tprimaryColumn?: boolean;\n\t/** The property of this item to display */\n\tproperty?: string;\n\t/** Shows on hover. Useful for truncated cells. */\n\ttitle?: string;\n\t/** Width of column. Required for advanced/fixed layout tables. */\n\twidth?: string;\n\t/** Data label for stacked layout */\n\tlabel?: string;\n\t/** Header ID for accessibility */\n\theaderId?: string;\n}\n\n/**\n * The default Cell renderer for the DataTable. Pass in any React component\n * with the same `displayName` which takes the same props to provide custom rendering.\n */\nconst DataTableCell: React.FC<DataTableCellProps> = (props) => {\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = useContext(CellContext);\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tprops.fixedLayout\n\t);\n\n\tconst childText = React.isValidElement(props.children)\n\t\t? (props.children.props as { children?: string }).children\n\t\t: props.children;\n\n\tconst contents = (\n\t\t<div\n\t\t\tclassName={classNames({\n\t\t\t\t'slds-truncate': props.fixedLayout,\n\t\t\t})}\n\t\t\ttitle={props.title || (typeof childText === 'string' ? childText : undefined)}\n\t\t>\n\t\t\t{props.children}\n\t\t</div>\n\t);\n\n\tconst className = classNames(props.className, {\n\t\t'slds-has-focus': hasFocus,\n\t});\n\n\tconst ref = (node: HTMLTableCellElement | null) => {\n\t\tif (node && hasFocus) {\n\t\t\tnode.focus();\n\t\t}\n\t};\n\n\tif (props.primaryColumn) {\n\t\treturn (\n\t\t\t<th\n\t\t\t\tclassName={className}\n\t\t\t\tref={ref}\n\t\t\t\tdata-label={props.label}\n\t\t\t\trole={props.fixedLayout ? 'gridcell' : undefined}\n\t\t\t\ttabIndex={tabIndex}\n\t\t\t\tstyle={props.width ? { width: props.width } : undefined}\n\t\t\t\tonFocus={handleFocus}\n\t\t\t\tonKeyDown={handleKeyDown}\n\t\t\t>\n\t\t\t\t{contents}\n\t\t\t</th>\n\t\t);\n\t}\n\n\treturn (\n\t\t<td\n\t\t\tclassName={className}\n\t\t\tdata-label={props.label}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\tref={ref}\n\t\t\trole={props.fixedLayout ? 'gridcell' : undefined}\n\t\t\tstyle={props.width ? { width: props.width } : undefined}\n\t\t\ttabIndex={tabIndex}\n\t\t\theaders={props.headerId}\n\t\t>\n\t\t\t{contents}\n\t\t</td>\n\t);\n};\n\nDataTableCell.displayName = DATA_TABLE_CELL;\n\nexport default DataTableCell;\n"],"mappings":";;;;;;;;AAuCA,IAAM,KAA+C,MAAU;CAC9D,IAAM,IAAe,EAAW,CAAY,GACtC,IAAc,EAAW,CAAW,GACpC,EAAE,aAAU,aAAU,gBAAa,qBAAkB,EAC1D,GACA,GACA,EAAM,WACP,GAEM,IAAY,EAAM,eAAe,EAAM,QAAQ,IACjD,EAAM,SAAS,MAAgC,WAChD,EAAM,UAEH,IACL,kBAAC,OAAD;EACC,WAAW,EAAW,EACrB,iBAAiB,EAAM,YACxB,CAAC;EACD,OAAO,EAAM,UAAU,OAAO,KAAc,WAAW,IAAY,KAAA;EAElE,UAAA,EAAM;CACH,CAAA,GAGA,IAAY,EAAW,EAAM,WAAW,EAC7C,kBAAkB,EACnB,CAAC,GAEK,KAAO,MAAsC;EAClD,AAAI,KAAQ,KACX,EAAK,MAAM;CAEb;CAmBA,OAjBI,EAAM,gBAER,kBAAC,MAAD;EACY;EACN;EACL,cAAY,EAAM;EAClB,MAAM,EAAM,cAAc,aAAa,KAAA;EAC7B;EACV,OAAO,EAAM,QAAQ,EAAE,OAAO,EAAM,MAAM,IAAI,KAAA;EAC9C,SAAS;EACT,WAAW;EAEV,UAAA;CACE,CAAA,IAKL,kBAAC,MAAD;EACY;EACX,cAAY,EAAM;EAClB,SAAS;EACT,WAAW;EACN;EACL,MAAM,EAAM,cAAc,aAAa,KAAA;EACvC,OAAO,EAAM,QAAQ,EAAE,OAAO,EAAM,MAAM,IAAI,KAAA;EACpC;EACV,SAAS,EAAM;EAEd,UAAA;CACE,CAAA;AAEN;AAEA,EAAc,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/data-table/check-props.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n/* eslint-disable import/no-mutable-exports */\n\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\nimport sunsetProperty from '../../utilities/warning/sunset-property';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\t\t/* eslint-disable max-len */\n\t\t// Deprecated and changed to another property\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onChange,\n\t\t\t'onChange',\n\t\t\t'onRowChange',\n\t\t\t'The callback parameters have been changed. `onRowChange` passes in `[event, { selection }` in order to align with other components.'\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.compact,\n\t\t\t'compact',\n\t\t\tundefined,\n\t\t\t`compact has been deprecated as non-compact data tables do not exist in SLDS. ${createDocUrl()}`\n\t\t);\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.collection,\n\t\t\t'collection',\n\t\t\t'items',\n\t\t\tcreateDocUrl('items')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onSelect,\n\t\t\t'onSelect',\n\t\t\t'onChange',\n\t\t\tcreateDocUrl('onChange')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.onDeselect,\n\t\t\t'onDeselect',\n\t\t\t'onChange',\n\t\t\tcreateDocUrl('onChange')\n\t\t);\n\t\tsunsetProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.sortable,\n\t\t\t'sortable',\n\t\t\t`The table is sortable if one or more of its columns are sortable. ${createDocUrl()}`\n\t\t);\n\n\t\t// Deprecated and moved to a child\n\t\tsunsetProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.columns,\n\t\t\t'columns',\n\t\t\t`Please provide one or more children of the type <Column /> instead. ${createDocUrl()}`\n\t\t);\n\n\t\tsunsetProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.bordered,\n\t\t\t'bordered',\n\t\t\t`All SLDS DataTables have row borders by default now. If you do not want row borders, please use \\`unborderedRow\\`. ${createDocUrl(\n\t\t\t\t'unborderedRow'\n\t\t\t)}`\n\t\t);\n\t\t/* eslint-enable max-len */\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.assistiveTextForActionsHeader,\n\t\t\t'assistiveTextForActionsHeader',\n\t\t\t\"assistiveText['actionsHeader']\",\n\t\t\tcreateDocUrl('assistiveText')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.assistiveTextForColumnSort,\n\t\t\t'assistiveTextForColumnSort',\n\t\t\t\"assistiveText['columnSort']\",\n\t\t\tcreateDocUrl('assistiveText')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.assistiveTextForColumnSortedAscending,\n\t\t\t'assistiveTextForColumnSortedAscending',\n\t\t\t\"assistiveText['columnSortedAscending']\",\n\t\t\tcreateDocUrl('assistiveText')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.assistiveTextForColumnSortedDescending,\n\t\t\t'assistiveTextForColumnSortedDescending',\n\t\t\t\"assistiveText['columnSortedDescending']\",\n\t\t\tcreateDocUrl('assistiveText')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.assistiveTextForSelectAllRows,\n\t\t\t'assistiveTextForSelectAllRows',\n\t\t\t\"assistiveText['selectAllRows']\",\n\t\t\tcreateDocUrl('assistiveText')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.assistiveTextForSelectRow,\n\t\t\t'assistiveTextForSelectRow',\n\t\t\t\"assistiveText['selectRow']\",\n\t\t\tcreateDocUrl('assistiveText')\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;;AAQA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO,GAAS;CACnE,IAAM,IAAe,EAAkB,CAAO;CAmG9C,AAhGA,EACC,GACA,EAAM,UACN,YACA,eACA,qIACD,GACA,EACC,GACA,EAAM,SACN,WACA,KAAA,GACA,gFAAgF,EAAa,GAC9F,GAEA,EACC,GACA,EAAM,YACN,cACA,SACA,EAAa,OAAO,CACrB,GACA,EACC,GACA,EAAM,UACN,YACA,YACA,EAAa,UAAU,CACxB,GACA,EACC,GACA,EAAM,YACN,cACA,YACA,EAAa,UAAU,CACxB,GACA,EACC,GACA,EAAM,UACN,YACA,qEAAqE,EAAa,GACnF,GAGA,EACC,GACA,EAAM,SACN,WACA,uEAAuE,EAAa,GACrF,GAEA,EACC,GACA,EAAM,UACN,YACA,sHAAsH,EACrH,eACD,GACD,GAGA,EACC,GACA,EAAM,+BACN,iCACA,kCACA,EAAa,eAAe,CAC7B,GACA,EACC,GACA,EAAM,4BACN,8BACA,+BACA,EAAa,eAAe,CAC7B,GACA,EACC,GACA,EAAM,uCACN,yCACA,0CACA,EAAa,eAAe,CAC7B,GACA,EACC,GACA,EAAM,wCACN,0CACA,2CACA,EAAa,eAAe,CAC7B,GACA,EACC,GACA,EAAM,+BACN,iCACA,kCACA,EAAa,eAAe,CAC7B,GACA,EACC,GACA,EAAM,2BACN,6BACA,8BACA,EAAa,eAAe,CAC7B;AACD;AAGD,IAAA,IAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"column-check-props.js","names":[],"sources":["../../../../components/data-table/column-check-props.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n/* eslint-disable import/no-mutable-exports */\n\nimport ifOneThenBothRequiredProperty from '../../utilities/warning/if-one-then-both-required-property';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props) {\n\t\t/* eslint-disable max-len */\n\t\t// Deprecated and changed to another property\n\t\tifOneThenBothRequiredProperty(COMPONENT, props, {\n\t\t\tisSorted: props.isSorted,\n\t\t\tsortDirection: props.sortDirection,\n\t\t});\n\t\t/* eslint-enable max-len */\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;AAMA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO;CAG1D,EAA8B,GAAW,GAAO;EAC/C,UAAU,EAAM;EAChB,eAAe,EAAM;CACtB,CAAC;AAEF;AAGD,IAAA,IAAe"}
@@ -1,8 +0,0 @@
1
- import { DATA_TABLE_COLUMN as e } from "../../utilities/constants.js";
2
- //#region components/data-table/column.tsx
3
- var t = () => null;
4
- t.displayName = e;
5
- //#endregion
6
- export { t as default };
7
-
8
- //# sourceMappingURL=column.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"column.js","names":[],"sources":["../../../../components/data-table/column.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { ReactNode } from 'react';\nimport { DATA_TABLE_COLUMN } from '../../utilities/constants';\n\nexport interface DataTableColumnProps {\n\t/**\n\t * Use a _higher-order component_ to customize a data table cell that will\n\t * override the default cell rendering. `CustomDataTableCell` must have the\n\t * same `displayName` as `DataTableCell` or it will be ignored.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Some columns should sort descending first (e.g., \"date last viewed\").\n\t * If sortable and the parent has not defined sort order, ascending is default.\n\t */\n\tisDefaultSortDescending?: boolean;\n\t/**\n\t * Selects this column as the currently sorted column.\n\t */\n\tisSorted?: boolean;\n\t/**\n\t * The column label. If a `string` is not passed in, no `title` attribute\n\t * will be rendered.\n\t */\n\tlabel?: string | ReactNode;\n\t/**\n\t * The primary column for a row. This is almost always the first column.\n\t */\n\tprimaryColumn?: boolean;\n\t/**\n\t * The property which corresponds to this column.\n\t */\n\tproperty?: string;\n\t/**\n\t * Whether or not the column is sortable.\n\t */\n\tsortable?: boolean;\n\t/**\n\t * The current sort direction. Required if `isSorted` is true.\n\t */\n\tsortDirection?: 'desc' | 'asc';\n\t/**\n\t * Title used for truncation div within the cell.\n\t */\n\ttitle?: string;\n\t/**\n\t * Adds truncate to cell node.\n\t */\n\ttruncate?: boolean;\n\t/**\n\t * Width of column. Required for advanced/fixed layout tables.\n\t * Please provide units (`rems` are recommended).\n\t */\n\twidth?: string;\n}\n\n/**\n * Columns define the structure of the data displayed in the DataTable.\n * This component doesn't render anything - it's used for configuration.\n */\nconst DataTableColumn: React.FC<DataTableColumnProps> = () => {\n\t// This component doesn't render anything.\n\t// It's used as a configuration element parsed by DataTable.\n\treturn null;\n};\n\nDataTableColumn.displayName = DATA_TABLE_COLUMN;\n\nexport default DataTableColumn;\n"],"mappings":";;AA8DA,IAAM,UAGE;AAGR,EAAgB,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.js","names":[],"sources":["../../../../components/data-table/component.json"],"sourcesContent":["{\n\t\"component\": \"data-table\",\n\t\"status\": \"prod\",\n\t\"display-name\": \"Data Tables\",\n\t\"classKey\": \"DataTable\",\n\t\"last-accessibility-review\": {\n\t\t\"date-iso-8601\": \"2017/01/01\",\n\t\t\"deprecated-accessibility\": \"true\",\n\t\t\"commit-sha\": \"ad6b6c6523ee21cada11be5f7ea4d99abc530726\"\n\t},\n\t\"SLDS-component-path\": \"/components/data-tables\",\n\t\"dependencies\": [\n\t\t{\n\t\t\t\"component\": \"cell\",\n\t\t\t\"classKey\": \"DataTableCell\"\n\t\t},\n\t\t{\n\t\t\t\"component\": \"column\",\n\t\t\t\"classKey\": \"DataTableColumn\"\n\t\t},\n\t\t{\n\t\t\t\"component\": \"highlight-cell\",\n\t\t\t\"classKey\": \"DataTableHighlightCell\"\n\t\t},\n\t\t{\n\t\t\t\"component\": \"row-actions\",\n\t\t\t\"classKey\": \"DataTableRowActions\"\n\t\t}\n\t],\n\t\"site-stories\": [\n {\n\t\t\t\"heading\": \"Basic\",\n\t\t\t\"path\": \"/__examples__/basic-fluid.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Basic: Fluid and Striped\",\n\t\t\t\"path\": \"/__examples__/basic-fluid-striped.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Basic: No row hover\",\n\t\t\t\"path\": \"/__examples__/basic-fluid-no-row-hover.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Basic: Columns bordered\",\n\t\t\t\"path\": \"/__examples__/basic-fluid-column-bordered.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Basic: Headless\",\n\t\t\t\"path\": \"/__examples__/basic-fluid-headless.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Fixed Layout\",\n\t\t\t\"path\": \"/__examples__/basic-fixed-layout.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Advanced\",\n\t\t\t\"path\": \"/__examples__/advanced.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Advanced: Single Selection\",\n\t\t\t\"path\": \"/__examples__/advanced-single-select.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Advanced: Fixed Header\",\n\t\t\t\"path\": \"/__examples__/fixed-header.jsx\"\n\t\t},\n\t\t{\n \"heading\": \"Advanced: Joined with Page Header\",\n \"path\": \"/__examples__/joined-with-page-header.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Infinite Scrolling\",\n\t\t\t\"path\": \"/__examples__/infinite-scrolling.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Resizable Columns\",\n\t\t\t\"path\": \"/__examples__/resizable-columns.jsx\"\n\t\t}\n\t],\n\t\"url-slug\": \"data-tables\"\n}\n"],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"highlight-cell.js","names":[],"sources":["../../../../components/data-table/highlight-cell.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { ReactNode } from 'react';\n\nimport DataTableCell, { DataTableCellProps } from './cell';\nimport Highlighter from '../utilities/highlighter';\n\nimport { DATA_TABLE_CELL } from '../../utilities/constants';\n\nexport interface DataTableHighlightCellProps extends DataTableCellProps {\n\t/** The contents of the cell */\n\tchildren?: ReactNode;\n\t/** The string of text (or Regular Expression) to highlight */\n\tsearch?: string | RegExp;\n}\n\n/**\n * A Cell renderer for the DataTable that automatically highlights search text.\n */\nconst DataTableHighlightCell: React.FC<DataTableHighlightCellProps> = (props) => (\n\t<DataTableCell {...props}>\n\t\t<Highlighter search={props.search}>{props.children}</Highlighter>\n\t</DataTableCell>\n);\n\n// The DataTable looks for components with this name\nDataTableHighlightCell.displayName = DATA_TABLE_CELL;\n\nexport default DataTableHighlightCell;\n"],"mappings":";;;;;;AAoBA,IAAM,KAAiE,MACtE,kBAAC,GAAD;CAAe,GAAI;CAClB,UAAA,kBAAC,GAAD;EAAa,QAAQ,EAAM;EAAS,UAAA,EAAM;CAAsB,CAAA;AAClD,CAAA;AAIhB,EAAuB,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../components/data-table/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// # Data Table Component\n\n// Implements the [Data Table design pattern](https://www.lightningdesignsystem.com/components/data-tables) in React.\n\nimport React, { type ReactElement, type ReactNode } from 'react';\n\nimport classNames from 'classnames';\nimport assign from 'lodash.assign';\nimport { dequal as isEqual } from 'dequal';\nimport memoize from 'memoize-one';\nimport reject from 'lodash.reject';\n// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)\nimport ColumnResizer from 'column-resizer';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nimport {\n\tcanUseDOM,\n\tcanUseEventListeners,\n} from '../../utilities/execution-environment';\nimport { colorGray5 } from '../../utilities/design-tokens/dist/palette-colors.common';\nimport salesforceSkin from '../../utilities/design-tokens/dist/salesforce-skin.common';\n\nconst { tableBorderRadius } = salesforceSkin;\n\n// ## Children\nimport DataTableCell from './cell';\nimport DataTableColumn from './column';\nimport DataTableHead from './private/head';\nimport DataTableRow from './private/row';\nimport DataTableRowActions from './row-actions';\nimport TableContext from './private/table-context';\nimport Mode, { type ModeType } from './private/mode';\nimport Spinner from '../spinner';\n\nimport KEYS from '../../utilities/key-code';\nimport generateId from '../../utilities/generate-id';\nimport mapKeyEventCallbacks from '../../utilities/key-callbacks';\n\nimport {\n\tDATA_TABLE,\n\tDATA_TABLE_CELL,\n\tDATA_TABLE_HEAD,\n\tDATA_TABLE_ROW,\n} from '../../utilities/constants';\n\nimport type {\n\tDataTableProps,\n\tDataTableItem,\n\tDataTableColumnConfig,\n\tDataTableColumnProps,\n\tDataTableCellProps,\n\tDataTableAssistiveText,\n} from './types';\n\n// The main DataTable component's state.\ninterface DataTableState {\n\t// Currently selected cell\n\tactiveCell: { rowIndex: number; columnIndex: number };\n\t// Interactive element within a cell that receives focus when in actionable mode\n\tactiveElement: string | null;\n\t// The table can be in navigation or actionable mode\n\tmode: ModeType;\n\t// The table currently has focus\n\ttableHasFocus: boolean;\n\t// Allows for keyboard navigation\n\tallowKeyboardNavigation?: boolean;\n}\n\n// Safely get the length of an array, returning 0 for invalid input.\nconst count = (array: unknown): number =>\n\tArray.isArray(array) ? array.length : 0;\n\nconst defaultProps = {\n\tassistiveText: {\n\t\tactionsHeader: 'Actions',\n\t\tcolumnSort: 'Sort by: ',\n\t\tcolumnSortedAscending: 'Sorted Ascending',\n\t\tcolumnSortedDescending: 'Sorted Descending',\n\t\tselectAllRows: 'Select all rows',\n\t\tselectRow: 'Select row',\n\t\tselectRowGroup: 'Choose a row to select',\n\t\tloadingMore: 'Loading more',\n\t},\n\tselection: [] as DataTableItem[],\n\tdisabledSelection: [] as DataTableItem[],\n\thasMore: false,\n\tloadMoreOffset: 20,\n\tresizable: false,\n\tresizableOptions: {\n\t\tresizeMode: 'fit',\n\t\tdraggingClass: 'slds-table-column-resizer',\n\t},\n};\n\nconst getAssistiveText = memoize(\n\t(\n\t\tassistiveText: DataTableAssistiveText | undefined,\n\t\tactionsHeaderText: string | undefined,\n\t\tcolumnSortText: string | undefined,\n\t\tcolumnSortedAscendingText: string | undefined,\n\t\tcolumnSortedDescendingText: string | undefined,\n\t\tselectAllRowsText: string | undefined,\n\t\tselectRowText: string | undefined\n\t): DataTableAssistiveText => {\n\t\tconst result: DataTableAssistiveText = {\n\t\t\t...defaultProps.assistiveText,\n\t\t\t...assistiveText,\n\t\t};\n\t\tif (actionsHeaderText) {\n\t\t\tresult.actionsHeader = actionsHeaderText;\n\t\t}\n\t\tif (selectAllRowsText) {\n\t\t\tresult.selectAllRows = selectAllRowsText;\n\t\t}\n\t\tif (columnSortedAscendingText) {\n\t\t\tresult.columnSortedAscending = columnSortedAscendingText;\n\t\t}\n\t\tif (columnSortedDescendingText) {\n\t\t\tresult.columnSortedDescending = columnSortedDescendingText;\n\t\t}\n\t\tif (columnSortText) {\n\t\t\tresult.columnSort = columnSortText;\n\t\t}\n\t\tif (selectRowText) {\n\t\t\tresult.selectRow = selectRowText;\n\t\t}\n\t\treturn result;\n\t},\n\tisEqual\n);\n\nconst getColumnsAndRowActions = memoize(\n\t(\n\t\tchildren: ReactNode,\n\t\tid: string | undefined,\n\t\tfixedHeader: boolean | undefined,\n\t\tfixedLayout: boolean | undefined,\n\t\titems: DataTableItem[],\n\t\tsearch: string | undefined\n\t): { columns: DataTableColumnConfig[]; RowActions: ReactElement | null } => {\n\t\tconst columns: DataTableColumnConfig[] = [];\n\t\tlet RowActions: ReactElement | null = null;\n\n\t\tReact.Children.forEach(children, (child) => {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\tconst element = child as ReactElement<any> | null;\n\t\t\tconst elementType = element?.type as { displayName?: string } | undefined;\n\t\t\tif (element && elementType?.displayName === DataTableColumn.displayName) {\n\t\t\t\tconst { children: columnChildren, ...columnProps } = element.props;\n\t\t\t\tconst props: Record<string, unknown> = {\n\t\t\t\t\tfixedLayout,\n\t\t\t\t\tsearch,\n\t\t\t\t\titems,\n\t\t\t\t\t...columnProps,\n\t\t\t\t};\n\t\t\t\tif (id) {\n\t\t\t\t\tprops.id = id;\n\t\t\t\t}\n\n\t\t\t\tlet Cell;\n\t\t\t\tconst cellChild = columnChildren as ReactElement | undefined;\n\t\t\t\tconst cellChildType = cellChild?.type as\n\t\t\t\t\t| { displayName?: string }\n\t\t\t\t\t| undefined;\n\t\t\t\tif (cellChild && cellChildType?.displayName === DATA_TABLE_CELL) {\n\t\t\t\t\tCell = cellChild.type;\n\t\t\t\t\tassign(props, cellChild.props);\n\t\t\t\t} else {\n\t\t\t\t\tCell = DataTableCell;\n\t\t\t\t}\n\n\t\t\t\tcolumns.push({\n\t\t\t\t\tCell: Cell as React.ComponentType<DataTableCellProps>,\n\t\t\t\t\tprops: props as DataTableColumnProps,\n\t\t\t\t});\n\t\t\t} else if (\n\t\t\t\telement &&\n\t\t\t\telementType?.displayName === DataTableRowActions.displayName\n\t\t\t) {\n\t\t\t\tconst { dropdown } = element.props;\n\t\t\t\tconst dropdownPropOverrides: { menuPosition?: string } = {};\n\t\t\t\tif (fixedHeader) {\n\t\t\t\t\tdropdownPropOverrides.menuPosition = 'overflowBoundaryElement';\n\t\t\t\t}\n\t\t\t\tRowActions = React.cloneElement(element, {\n\t\t\t\t\tdropdown: dropdown\n\t\t\t\t\t\t? React.cloneElement(dropdown, dropdownPropOverrides)\n\t\t\t\t\t\t: null,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\treturn { columns, RowActions };\n\t},\n\tisEqual\n);\n\n/**\n * DataTables support the display of structured data in rows and columns with an HTML table. To sort, filter or paginate the table, simply update the data passed in the items to the table and it will re-render itself appropriately. The table will throw a sort event as needed, and helper components for paging and filtering are coming soon.\n *\n * NOTE: for horizontal scrolling with `fixedHeader`-enabled DataTables, see the `style` property description\n */\nclass DataTable extends React.Component<DataTableProps, DataTableState> {\n\t// ### Display Name\n\t// Always use the canonical component name as the React display name.\n\tstatic displayName = DATA_TABLE;\n\n\tstatic defaultProps = defaultProps;\n\n\tgeneratedId: string;\n\n\theaderRefs: {\n\t\taction: (HTMLElement | null)[];\n\t\tcolumn: (HTMLElement | null)[];\n\t\tselect: (HTMLElement | null)[];\n\t};\n\n\tgripRefs: HTMLElement[];\n\n\tscrollerRef: HTMLElement | null;\n\n\tfixedHeaderContainer: HTMLElement | null;\n\n\t// Map of cells to interactive elements within that cell\n\tinteractiveElements: Record<number, Record<number, string[]>>;\n\n\ttableRef?: HTMLTableElement | null;\n\n\tresizer?: { reset: (options: { disable: boolean }) => void };\n\n\tconstructor(props: DataTableProps) {\n\t\tsuper(props);\n\t\tthis.generatedId = generateId();\n\t\tthis.headerRefs = {\n\t\t\taction: [],\n\t\t\tcolumn: [],\n\t\t\tselect: [],\n\t\t};\n\t\tthis.gripRefs = [];\n\t\tthis.scrollerRef = null;\n\t\tthis.fixedHeaderContainer = null;\n\t\tthis.state = {\n\t\t\t// Currently selected cell\n\t\t\tactiveCell: {\n\t\t\t\trowIndex: 1,\n\t\t\t\tcolumnIndex: this.props.selectRows ? 1 : 0,\n\t\t\t},\n\t\t\t// Interactive element within a cell that receives focus when in actionable mode\n\t\t\tactiveElement: null,\n\t\t\t// The table can be in navigation or actionable mode\n\t\t\tmode: Mode.NAVIGATION,\n\t\t\t// The table currently has focus\n\t\t\ttableHasFocus: false,\n\t\t\t// Allows for keyboard navigation. This is useful for temporarily disabling keyboard navigation\n\t\t\t// when another component requires its own focus behavior (e.g. menu dropdown).\n\t\t\tallowKeyboardNavigation: props.keyboardNavigation,\n\t\t};\n\t\t// Map of cells to interactive elements within that cell\n\t\tthis.interactiveElements = {};\n\t\tthis.changeActiveCell = this.changeActiveCell.bind(this);\n\t\tthis.changeActiveElement = this.changeActiveElement.bind(this);\n\t\tthis.handleKeyDown = this.handleKeyDown.bind(this);\n\t\tthis.registerInteractiveElement = this.registerInteractiveElement.bind(\n\t\t\tthis\n\t\t);\n\n\t\t// `checkProps` issues warnings to developers about properties (similar to React's built in development tools)\n\t\t(checkProps as (name: string, props: unknown, doc?: unknown) => void)(\n\t\t\tDATA_TABLE,\n\t\t\tprops,\n\t\t\tcomponentDoc\n\t\t);\n\t}\n\n\tcomponentDidMount() {\n\t\tif (this.getFixedHeader()) {\n\t\t\tthis.toggleFixedHeaderListeners(true);\n\t\t\tthis.resizeFixedHeaders();\n\t\t}\n\t\tif (this.isResizable()) {\n\t\t\tthis.enableResize();\n\t\t}\n\t}\n\n\tcomponentDidUpdate(_prevProps: DataTableProps, prevState: DataTableState) {\n\t\tif (this.getFixedHeader()) {\n\t\t\tthis.resizeFixedHeaders();\n\t\t\t// If the first page of results isn't enough to allow the user to scroll it causes\n\t\t\t// the user to get into a state where they cannot load the second page.\n\t\t\t// Simulating a scroll here will ensure that enough rows are loaded to enable scrolling\n\t\t\tthis.loadMoreIfNeeded();\n\t\t}\n\n\t\tif (\n\t\t\tthis.state.allowKeyboardNavigation &&\n\t\t\t!prevState.allowKeyboardNavigation\n\t\t) {\n\t\t\t// When re-enabling keyboard navigation (e.g. when a dropdown closes), mark that\n\t\t\t// focus has returned to the table. This must wait until after `allowKeyboardNavigation`\n\t\t\t// is set in `onClose` because the callback could focus the incorrect element (e.g. dropdown\n\t\t\t// trigger) when it executes.\n\t\t\t// eslint-disable-next-line react/no-did-update-set-state\n\t\t\tthis.setState({ tableHasFocus: true });\n\t\t}\n\t\tif (this.isResizable()) {\n\t\t\tthis.enableResize();\n\t\t} else if (this.resizer) {\n\t\t\tthis.disableResize();\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.toggleFixedHeaderListeners(false);\n\n\t\tif (this.isResizable()) {\n\t\t\tthis.disableResize();\n\t\t}\n\t}\n\n\tonResize() {\n\t\tconst table = this.tableRef;\n\t\tif (table) {\n\t\t\tconst columns = this.getFixedHeader()\n\t\t\t\t? table.getElementsByClassName('slds-cell-fixed')\n\t\t\t\t: table.getElementsByTagName('th');\n\t\t\tconst columnsWidths = Array.from(columns).map((col, index) => {\n\t\t\t\tconst { id, style } = col as HTMLElement;\n\t\t\t\treturn {\n\t\t\t\t\tid,\n\t\t\t\t\tindex,\n\t\t\t\t\twidth: parseInt(style.width, 10),\n\t\t\t\t};\n\t\t\t});\n\t\t\treturn columnsWidths;\n\t\t}\n\t\treturn [];\n\t}\n\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\tgetFixedHeader() {\n\t\treturn this.props.fixedHeader || this.props.resizable;\n\t}\n\n\tgetKeyboardNavigation() {\n\t\treturn this.props.keyboardNavigation || this.props.resizable;\n\t}\n\n\tgetFixedLayout() {\n\t\treturn this.props.fixedLayout || this.props.resizable;\n\t}\n\n\tgetFirstInteractiveElement(\n\t\trowIndex: number,\n\t\tcolumnIndex: number\n\t): string | null {\n\t\tif (\n\t\t\tthis.state.mode === Mode.ACTIONABLE &&\n\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t) {\n\t\t\treturn this.interactiveElements[rowIndex][columnIndex][0];\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetTableContext = memoize(\n\t\t(state: DataTableState, isKeyboardNavigation: boolean | undefined) => ({\n\t\t\tactiveCell: state.activeCell,\n\t\t\tactiveElement: state.activeElement,\n\t\t\tmode: state.mode,\n\t\t\ttableHasFocus: state.tableHasFocus,\n\t\t\tchangeActiveCell: this.changeActiveCell,\n\t\t\tchangeActiveElement: this.changeActiveElement,\n\t\t\thandleKeyDown: this.handleKeyDown,\n\t\t\tregisterInteractiveElement: this.registerInteractiveElement,\n\t\t\tallowKeyboardNavigation: state.allowKeyboardNavigation ?? false,\n\t\t\tsetAllowKeyboardNavigation: (allowKeyboardNavigation: boolean) => {\n\t\t\t\tif (isKeyboardNavigation) {\n\t\t\t\t\tthis.setState({ allowKeyboardNavigation });\n\t\t\t\t}\n\t\t\t},\n\t\t})\n\t);\n\n\thandleToggleAll = (\n\t\te: React.SyntheticEvent,\n\t\t{ checked }: { checked: boolean }\n\t) => {\n\t\tconst selection = this.props.selection ?? [];\n\t\tconst disabledSelection = this.props.disabledSelection ?? [];\n\t\tconst selectedDisabledItems = selection.filter((item) =>\n\t\t\tdisabledSelection.includes(item)\n\t\t);\n\t\tconst enabledItems = this.props.items.filter(\n\t\t\t(item) => !disabledSelection.includes(item)\n\t\t);\n\n\t\tconst newSelection = (checked\n\t\t\t? [...enabledItems, ...selectedDisabledItems]\n\t\t\t: [...selectedDisabledItems]\n\t\t).filter((item) => item.type !== 'header-row');\n\n\t\t// REMOVE AT NEXT BREAKING CHANGE\n\t\t// `onChange` is deprecated and replaced with `onRowChange`\n\t\tif (typeof this.props.onChange === 'function') {\n\t\t\tthis.props.onChange(newSelection, e);\n\t\t}\n\n\t\tif (typeof this.props.onRowChange === 'function') {\n\t\t\tthis.props.onRowChange(e, { selection: newSelection });\n\t\t}\n\t};\n\n\thandleRowToggle = (\n\t\titem: DataTableItem,\n\t\tselected: boolean,\n\t\te: React.SyntheticEvent\n\t) => {\n\t\t// REMOVE AT NEXT BREAKING CHANGE\n\t\t// `onChange` is deprecated and replaced with `onRowChange`\n\t\tif (typeof this.props.onChange === 'function') {\n\t\t\tlet selection;\n\n\t\t\tif (selected) {\n\t\t\t\tselection =\n\t\t\t\t\tthis.props.selectRows === 'radio'\n\t\t\t\t\t\t? [item]\n\t\t\t\t\t\t: [...(this.props.selection ?? []), item];\n\t\t\t} else {\n\t\t\t\tselection = reject(this.props.selection ?? [], item);\n\t\t\t}\n\n\t\t\tthis.props.onChange(selection, e);\n\t\t}\n\t\t// DEPRECATED CODE ENDS HERE\n\n\t\tif (typeof this.props.onRowChange === 'function') {\n\t\t\tlet selection;\n\n\t\t\tif (selected) {\n\t\t\t\tselection =\n\t\t\t\t\tthis.props.selectRows === 'radio'\n\t\t\t\t\t\t? [item]\n\t\t\t\t\t\t: [...(this.props.selection ?? []), item];\n\t\t\t} else {\n\t\t\t\tselection = reject(this.props.selection ?? [], item);\n\t\t\t}\n\n\t\t\tthis.props.onRowChange(e, { selection });\n\t\t}\n\t};\n\n\trepositionResizers = () => {\n\t\tconst headers = [\n\t\t\t...this.headerRefs.select,\n\t\t\t...this.headerRefs.column,\n\t\t\t...this.headerRefs.action,\n\t\t];\n\n\t\tif (this.gripRefs && this.tableRef) {\n\t\t\tconst tableOffset = this.tableRef.getBoundingClientRect();\n\t\t\tthis.gripRefs.forEach((grip, index) => {\n\t\t\t\tconst headerEl = headers[index];\n\t\t\t\tif (!headerEl) return;\n\t\t\t\tconst header = headerEl.getBoundingClientRect();\n\t\t\t\tconst relativeOffset = header.left - tableOffset.left;\n\t\t\t\tconst newPosition = relativeOffset + header.width;\n\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\tgrip.style.left = `${newPosition}px`;\n\t\t\t});\n\t\t}\n\t};\n\n\tresizeFixedHeaders = (event?: Event) => {\n\t\tconst headerRefs = [\n\t\t\t...this.headerRefs.select,\n\t\t\t...this.headerRefs.column,\n\t\t\t...this.headerRefs.action,\n\t\t];\n\n\t\tif (this.props.onFixedHeaderResize) {\n\t\t\tthis.props.onFixedHeaderResize(event ?? null, {\n\t\t\t\theaderRefs: headerRefs.filter(Boolean) as HTMLElement[],\n\t\t\t\tscrollerRef: this.scrollerRef,\n\t\t\t});\n\t\t} else if (headerRefs.length > 0) {\n\t\t\tlet documentScrollLeft = 0;\n\n\t\t\tif (canUseDOM) {\n\t\t\t\tdocumentScrollLeft = document.documentElement.scrollLeft;\n\t\t\t}\n\n\t\t\theaderRefs.forEach((column) => {\n\t\t\t\tif (column && canUseDOM) {\n\t\t\t\t\tconst columnLeft =\n\t\t\t\t\t\tcolumn.getBoundingClientRect().left + documentScrollLeft;\n\t\t\t\t\tlet wrapperLeft = 0;\n\n\t\t\t\t\tif (this.scrollerRef) {\n\t\t\t\t\t\twrapperLeft =\n\t\t\t\t\t\t\tthis.scrollerRef.getBoundingClientRect().left +\n\t\t\t\t\t\t\tdocumentScrollLeft;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst cellFixed = column.querySelector(\n\t\t\t\t\t\t'.slds-cell-fixed'\n\t\t\t\t\t) as HTMLElement | null;\n\n\t\t\t\t\tif (cellFixed) {\n\t\t\t\t\t\tcellFixed.style.left = `${columnLeft - wrapperLeft}px`;\n\t\t\t\t\t\tcellFixed.style.width = `${column.offsetWidth}px`;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\tloadMoreIfNeeded = () => {\n\t\tif (this.props.hasMore && this.props.onLoadMore && this.scrollerRef) {\n\t\t\tconst { scrollTop, offsetHeight, scrollHeight } = this.scrollerRef;\n\t\t\tif (\n\t\t\t\tscrollTop + offsetHeight >\n\t\t\t\tscrollHeight - (this.props.loadMoreOffset ?? 0)\n\t\t\t) {\n\t\t\t\tthis.props.onLoadMore();\n\t\t\t}\n\t\t}\n\t};\n\n\ttoggleFixedHeaderListeners = (attach: boolean) => {\n\t\tif (this.props.onToggleFixedHeaderListeners) {\n\t\t\tthis.props.onToggleFixedHeaderListeners(\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\tattach,\n\t\t\t\t\tresizeHandler: this.resizeFixedHeaders,\n\t\t\t\t\tscrollerRef: this.scrollerRef,\n\t\t\t\t}\n\t\t\t);\n\t\t} else {\n\t\t\tconst method = attach ? 'addEventListener' : 'removeEventListener';\n\t\t\tif (canUseEventListeners) {\n\t\t\t\twindow[method]('resize', this.resizeFixedHeaders as EventListener);\n\t\t\t\twindow[method]('resize', this.loadMoreIfNeeded as EventListener);\n\t\t\t}\n\t\t\tif (canUseEventListeners && this.scrollerRef) {\n\t\t\t\tthis.scrollerRef[method](\n\t\t\t\t\t'scroll',\n\t\t\t\t\tthis.resizeFixedHeaders as EventListener\n\t\t\t\t);\n\t\t\t\tthis.scrollerRef[method](\n\t\t\t\t\t'scroll',\n\t\t\t\t\tthis.loadMoreIfNeeded as EventListener\n\t\t\t\t);\n\t\t\t\tthis.scrollerRef[method](\n\t\t\t\t\t'scroll',\n\t\t\t\t\tthis.repositionResizers as EventListener\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t};\n\n\t// eslint-disable-next-line camelcase\n\tUNSAFE_componentWillUpdate(nextProps: DataTableProps) {\n\t\tif (this.props.items !== nextProps.items) {\n\t\t\tthis.interactiveElements = {};\n\t\t}\n\t}\n\n\tisResizable() {\n\t\treturn this.props.fixedLayout && this.props.resizable;\n\t}\n\n\tresizeGrips() {\n\t\tconst table = this.fixedHeaderContainer;\n\n\t\tif (table) {\n\t\t\tconst grips = Array.from(\n\t\t\t\ttable.getElementsByClassName('grip-handle')\n\t\t\t) as HTMLElement[];\n\n\t\t\tif (grips.length) {\n\t\t\t\tthis.gripRefs = grips;\n\t\t\t\tthis.gripRefs.forEach((grip) => {\n\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\tgrip.style.height = `${parseInt(grip.style.height, 10) + 33}px`;\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\tenableResize() {\n\t\tif (canUseDOM) {\n\t\t\tconst remoteTable = this.tableRef;\n\t\t\tconst fixedHeader = this.getFixedHeader();\n\t\t\tconst disabledColumns: number[] = [];\n\n\t\t\tif (this.props.selectRows) {\n\t\t\t\tdisabledColumns.push(0);\n\t\t\t}\n\n\t\t\tif (!this.resizer) {\n\t\t\t\tconst options: Record<string, unknown> = {\n\t\t\t\t\t...defaultProps.resizableOptions,\n\t\t\t\t\t...{ disabledColumns },\n\t\t\t\t\t...this.props.resizableOptions,\n\t\t\t\t};\n\n\t\t\t\tconst externalFunction = this.props.resizableOptions?.onResize;\n\t\t\t\toptions.onResize = (e: Event) => {\n\t\t\t\t\tif (fixedHeader) {\n\t\t\t\t\t\tthis.resizeFixedHeaders(e);\n\t\t\t\t\t\tthis.repositionResizers();\n\t\t\t\t\t}\n\n\t\t\t\t\tconst response = this.onResize();\n\n\t\t\t\t\tif (externalFunction) externalFunction(response);\n\t\t\t\t\tthis.resizeGrips();\n\t\t\t\t};\n\n\t\t\t\tif (remoteTable) {\n\t\t\t\t\tthis.resizer = new ColumnResizer(remoteTable, options);\n\t\t\t\t\tremoteTable.classList.remove('grip-padding');\n\n\t\t\t\t\tif (fixedHeader) this.resizeFixedHeaders();\n\n\t\t\t\t\tthis.resizeGrips();\n\t\t\t\t\tthis.repositionResizers();\n\t\t\t\t}\n\t\t\t\tthis.setState({}, () => this.state);\n\t\t\t}\n\t\t}\n\t}\n\n\tdisableResize() {\n\t\tif (this.resizer) this.resizer.reset({ disable: true });\n\t\tthis.gripRefs = [];\n\t}\n\n\tchangeActiveCell(rowIndex: number, columnIndex: number) {\n\t\tthis.setState({\n\t\t\ttableHasFocus: true,\n\t\t\tactiveCell: { rowIndex, columnIndex },\n\t\t});\n\t}\n\n\tchangeActiveElement(activeElement: string | null) {\n\t\tthis.setState({ activeElement, mode: Mode.ACTIONABLE });\n\t}\n\n\thandleKeyDown(event: React.KeyboardEvent) {\n\t\tmapKeyEventCallbacks(event, {\n\t\t\tcallbacks: {\n\t\t\t\t[KEYS.UP]: { callback: () => this.handleKeyDownUp() },\n\t\t\t\t[KEYS.DOWN]: { callback: () => this.handleKeyDownDown() },\n\t\t\t\t[KEYS.LEFT]: { callback: () => this.handleKeyDownLeft() },\n\t\t\t\t[KEYS.RIGHT]: { callback: () => this.handleKeyDownRight() },\n\t\t\t\t[KEYS.ENTER]: { callback: () => this.handleKeyDownEnter() },\n\t\t\t\t[KEYS.ESCAPE]: { callback: () => this.handleKeyDownEscape() },\n\t\t\t\t[KEYS.TAB]:\n\t\t\t\t\tthis.state.mode === Mode.ACTIONABLE\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tcallback: (evt: React.KeyboardEvent) =>\n\t\t\t\t\t\t\t\t\tthis.handleKeyTabPress(evt),\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: null,\n\t\t\t},\n\t\t});\n\t}\n\n\thandleKeyDownUp() {\n\t\tif (\n\t\t\tthis.state.mode === Mode.NAVIGATION ||\n\t\t\tthis.state.activeCell.rowIndex > 0 ||\n\t\t\t!this.isResizable()\n\t\t) {\n\t\t\tconst newRowIndex = Math.max(this.state.activeCell.rowIndex - 1, 0);\n\t\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\t\tnewRowIndex,\n\t\t\t\tthis.state.activeCell.columnIndex\n\t\t\t);\n\t\t\tif (newRowIndex !== this.state.activeCell.rowIndex) {\n\t\t\t\tthis.setState((prevState) => ({\n\t\t\t\t\tactiveCell: {\n\t\t\t\t\t\trowIndex: newRowIndex,\n\t\t\t\t\t\tcolumnIndex: prevState.activeCell.columnIndex,\n\t\t\t\t\t},\n\t\t\t\t\tactiveElement,\n\t\t\t\t}));\n\n\t\t\t\tif (\n\t\t\t\t\tthis.state.mode === Mode.ACTIONABLE &&\n\t\t\t\t\tnewRowIndex === 0 &&\n\t\t\t\t\t!activeElement\n\t\t\t\t) {\n\t\t\t\t\tthis.makeGripVisible(this.state.activeCell.columnIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\thandleKeyDownDown() {\n\t\tif (\n\t\t\tthis.state.mode === Mode.NAVIGATION ||\n\t\t\tthis.state.activeCell.rowIndex > 0 ||\n\t\t\t!this.isResizable()\n\t\t) {\n\t\t\tconst newRowIndex = Math.min(\n\t\t\t\tthis.state.activeCell.rowIndex + 1,\n\t\t\t\tthis.props.items.length\n\t\t\t);\n\t\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\t\tnewRowIndex,\n\t\t\t\tthis.state.activeCell.columnIndex\n\t\t\t);\n\t\t\tif (newRowIndex !== this.state.activeCell.rowIndex) {\n\t\t\t\tthis.setState((prevState) => ({\n\t\t\t\t\tactiveCell: {\n\t\t\t\t\t\trowIndex: newRowIndex,\n\t\t\t\t\t\tcolumnIndex: prevState.activeCell.columnIndex,\n\t\t\t\t\t},\n\t\t\t\t\tactiveElement,\n\t\t\t\t}));\n\t\t\t}\n\t\t}\n\t}\n\n\tdisplaceByArrowKey(factor: number) {\n\t\tif (this.state.mode === Mode.ACTIONABLE) {\n\t\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\n\t\t\tif (rowIndex === 0 && this.tableRef) {\n\t\t\t\tconst table = this.tableRef;\n\t\t\t\tconst headers = table.getElementsByTagName('th');\n\t\t\t\theaders[columnIndex].style.width = `${\n\t\t\t\t\tparseInt(headers[columnIndex].style.width, 10) + factor\n\t\t\t\t}px`;\n\t\t\t\tthis.resizeFixedHeaders();\n\t\t\t\tthis.repositionResizers();\n\t\t\t\tthis.resizeGrips();\n\t\t\t}\n\t\t}\n\t}\n\n\tmakeGripVisible(newIndex: number | null) {\n\t\tthis.gripRefs.forEach((grip, index) => {\n\t\t\tif (index === newIndex) grip.classList.add('grip-handle-active');\n\t\t\telse grip.classList.remove('grip-handle-active');\n\t\t});\n\t}\n\n\thandleKeyDownLeft() {\n\t\tif (\n\t\t\tthis.state.mode === Mode.NAVIGATION ||\n\t\t\tthis.state.activeCell.rowIndex > 0 ||\n\t\t\t!this.isResizable()\n\t\t) {\n\t\t\tconst newColumnIndex = Math.max(this.state.activeCell.columnIndex - 1, 0);\n\t\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\t\tthis.state.activeCell.rowIndex,\n\t\t\t\tnewColumnIndex\n\t\t\t);\n\t\t\tif (newColumnIndex !== this.state.activeCell.columnIndex) {\n\t\t\t\tthis.setState((prevState) => ({\n\t\t\t\t\tactiveCell: {\n\t\t\t\t\t\trowIndex: prevState.activeCell.rowIndex,\n\t\t\t\t\t\tcolumnIndex: newColumnIndex,\n\t\t\t\t\t},\n\t\t\t\t\tactiveElement,\n\t\t\t\t}));\n\t\t\t}\n\t\t} else {\n\t\t\tthis.displaceByArrowKey(-10);\n\t\t}\n\t}\n\n\thandleKeyDownRight() {\n\t\tif (\n\t\t\tthis.state.mode === Mode.NAVIGATION ||\n\t\t\tthis.state.activeCell.rowIndex > 0 ||\n\t\t\t!this.isResizable()\n\t\t) {\n\t\t\tconst newColumnIndex = Math.min(\n\t\t\t\tthis.state.activeCell.columnIndex + 1,\n\t\t\t\tReact.Children.count(this.props.children) -\n\t\t\t\t\t(this.props.selectRows ? 0 : 1)\n\t\t\t);\n\t\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\t\tthis.state.activeCell.rowIndex,\n\t\t\t\tnewColumnIndex\n\t\t\t);\n\t\t\tif (newColumnIndex !== this.state.activeCell.columnIndex) {\n\t\t\t\tthis.setState((prevState) => ({\n\t\t\t\t\tactiveCell: {\n\t\t\t\t\t\trowIndex: prevState.activeCell.rowIndex,\n\t\t\t\t\t\tcolumnIndex: newColumnIndex,\n\t\t\t\t\t},\n\t\t\t\t\tactiveElement,\n\t\t\t\t}));\n\t\t\t}\n\t\t} else {\n\t\t\tthis.displaceByArrowKey(10);\n\t\t}\n\t}\n\n\thandleKeyDownEnter() {\n\t\tif (this.state.mode === Mode.NAVIGATION) {\n\t\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\t\t\tlet activeElement: string | null = null;\n\t\t\tif (\n\t\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t\t) {\n\t\t\t\t[activeElement] = this.interactiveElements[rowIndex][columnIndex];\n\t\t\t}\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\tactiveElement,\n\t\t\t});\n\n\t\t\tif (rowIndex === 0 && !activeElement) {\n\t\t\t\tthis.makeGripVisible(columnIndex);\n\t\t\t}\n\t\t}\n\t}\n\n\thandleKeyDownEscape() {\n\t\tif (this.state.mode === Mode.ACTIONABLE) {\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.NAVIGATION,\n\t\t\t\tactiveElement: null,\n\t\t\t});\n\t\t\tthis.makeGripVisible(null);\n\t\t}\n\t}\n\n\tmoveNext(event: React.KeyboardEvent, rowIndex: number, columnIndex: number) {\n\t\tconst headers = [\n\t\t\t...this.headerRefs.select,\n\t\t\t...this.headerRefs.column,\n\t\t\t...this.headerRefs.action,\n\t\t];\n\t\tlet newRowIndex = 0;\n\t\tlet newColumnIndex = 0;\n\n\t\tif (event.shiftKey) {\n\t\t\tif (columnIndex - 1 >= 0) {\n\t\t\t\tnewColumnIndex = columnIndex - 1;\n\t\t\t\tnewRowIndex = rowIndex;\n\t\t\t} else {\n\t\t\t\tif (rowIndex > 0) newRowIndex = rowIndex - 1;\n\t\t\t\telse newRowIndex = this.props.items.length;\n\n\t\t\t\tnewColumnIndex = headers.length - 1;\n\t\t\t}\n\t\t} else if (columnIndex + 1 < headers.length) {\n\t\t\tnewColumnIndex = columnIndex + 1;\n\t\t\tnewRowIndex = rowIndex;\n\t\t} else {\n\t\t\tif (rowIndex < this.props.items.length) newRowIndex = rowIndex + 1;\n\t\t\telse newRowIndex = 0;\n\n\t\t\tnewColumnIndex = 0;\n\t\t}\n\n\t\tthis.changeActiveCell(newRowIndex, newColumnIndex);\n\t}\n\n\thandleNextActionable(event: React.KeyboardEvent): string | null {\n\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\t\tconst currentActiveElement = this.state.activeElement;\n\t\tconst rowActiveElements =\n\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t\t\t? this.interactiveElements[rowIndex][columnIndex]\n\t\t\t\t: null;\n\n\t\tif (rowActiveElements) {\n\t\t\tif (currentActiveElement) {\n\t\t\t\tconst index = rowActiveElements.indexOf(currentActiveElement);\n\n\t\t\t\tif (event.shiftKey) {\n\t\t\t\t\treturn index > 0 ? rowActiveElements[index - 1] : null;\n\t\t\t\t}\n\t\t\t\treturn index < rowActiveElements.length - 1\n\t\t\t\t\t? rowActiveElements[index + 1]\n\t\t\t\t\t: null;\n\t\t\t}\n\t\t\treturn !event.shiftKey\n\t\t\t\t? rowActiveElements[0]\n\t\t\t\t: rowActiveElements[rowActiveElements.length - 1];\n\t\t}\n\t\treturn null;\n\t}\n\n\thandleKeyTabPress(event: React.KeyboardEvent) {\n\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\n\t\tif (this.state.mode === Mode.ACTIONABLE) {\n\t\t\tconst nextActionable = this.handleNextActionable(event);\n\n\t\t\tif (nextActionable) {\n\t\t\t\tthis.setState({ activeElement: nextActionable });\n\t\t\t\tif (this.isResizable()) this.makeGripVisible(null);\n\t\t\t} else if (rowIndex === 0) {\n\t\t\t\tconst headers = [\n\t\t\t\t\t...this.headerRefs.select,\n\t\t\t\t\t...this.headerRefs.column,\n\t\t\t\t\t...this.headerRefs.action,\n\t\t\t\t];\n\t\t\t\tlet newIndex = 0;\n\n\t\t\t\tif (!event.shiftKey)\n\t\t\t\t\tnewIndex = columnIndex + 1 < headers.length ? columnIndex + 1 : 0;\n\t\t\t\telse\n\t\t\t\t\tnewIndex =\n\t\t\t\t\t\tcolumnIndex - 1 >= 0 ? columnIndex - 1 : headers.length - 1;\n\t\t\t\tthis.setState({\n\t\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\t\tactiveElement: null,\n\t\t\t\t});\n\n\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\theaders.forEach((header, index) => {\n\t\t\t\t\tif (!header) return;\n\t\t\t\t\tif (index === newIndex) {\n\t\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\t\theader.tabIndex = 0;\n\t\t\t\t\t\theader.focus();\n\t\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\t} else header.tabIndex = -1;\n\t\t\t\t});\n\n\t\t\t\tif (this.isResizable()) this.makeGripVisible(newIndex);\n\t\t\t} else {\n\t\t\t\tthis.moveNext(event, rowIndex, columnIndex);\n\t\t\t\tthis.setState({\n\t\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\t\tactiveElement: null,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\tregisterInteractiveElement(\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\telementId: string\n\t) {\n\t\tif (!this.interactiveElements[rowIndex]) {\n\t\t\tthis.interactiveElements[rowIndex] = {};\n\t\t}\n\t\tconst existingElements =\n\t\t\tthis.interactiveElements[rowIndex][columnIndex] || [];\n\n\t\tif (!existingElements.includes(elementId)) {\n\t\t\tthis.interactiveElements[rowIndex][columnIndex] = [\n\t\t\t\t...existingElements,\n\t\t\t\telementId,\n\t\t\t];\n\t\t}\n\t}\n\n\t// ### Render\n\trender() {\n\t\tconst ariaProps: { 'aria-multiselectable'?: 'true' } = {};\n\t\tconst numHeaderRows = 1;\n\t\tconst selection = this.props.selection ?? [];\n\t\tconst disabledSelection = this.props.disabledSelection ?? [];\n\t\tconst numRows = count(this.props.items);\n\t\tconst numSelected = count(\n\t\t\tselection.filter((item) => !disabledSelection.includes(item))\n\t\t);\n\t\tconst numNonHeaderRows = count(\n\t\t\tthis.props.items.filter(\n\t\t\t\t(item) =>\n\t\t\t\t\titem.type !== 'header-row' && !disabledSelection.includes(item)\n\t\t\t)\n\t\t);\n\t\tconst canSelectRows =\n\t\t\tthis.props.selectRows && numNonHeaderRows > 0\n\t\t\t\t? this.props.selectRows\n\t\t\t\t: false;\n\t\tconst allSelected = canSelectRows && numNonHeaderRows === numSelected;\n\t\tconst indeterminateSelected =\n\t\t\tcanSelectRows && numNonHeaderRows !== numSelected && numSelected !== 0;\n\n\t\tconst { columns, RowActions } = getColumnsAndRowActions(\n\t\t\tthis.props.children,\n\t\t\tthis.props.id,\n\t\t\tthis.getFixedHeader(),\n\t\t\tthis.props.fixedLayout,\n\t\t\tthis.props.items,\n\t\t\tthis.props.search\n\t\t);\n\n\t\tconst assistiveText = getAssistiveText(\n\t\t\tthis.props.assistiveText,\n\t\t\tthis.props.assistiveTextForActionsHeader,\n\t\t\tthis.props.assistiveTextForSelectAllRows,\n\t\t\tthis.props.assistiveTextForColumnSortedAscending,\n\t\t\tthis.props.assistiveTextForColumnSortedDescending,\n\t\t\tthis.props.assistiveTextForColumnSort,\n\t\t\tthis.props.assistiveTextForSelectRow\n\t\t);\n\n\t\tif (this.props.selectRows && this.props.selectRows !== 'radio') {\n\t\t\tariaProps['aria-multiselectable'] = 'true';\n\t\t}\n\n\t\t// This guarantees there are never any old header references if props change\n\t\tthis.headerRefs = {\n\t\t\taction: RowActions ? this.headerRefs.action : [],\n\t\t\tcolumn: this.headerRefs.column.slice(0, columns.length),\n\t\t\tselect: canSelectRows ? this.headerRefs.select : [],\n\t\t};\n\n\t\tlet component = (\n\t\t\t<React.Fragment>\n\t\t\t\t<TableContext.Provider\n\t\t\t\t\tvalue={this.getTableContext(this.state, this.getKeyboardNavigation())}\n\t\t\t\t>\n\t\t\t\t\t<table\n\t\t\t\t\t\t{...ariaProps}\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t'slds-table',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t'slds-table_fixed-layout': this.getFixedLayout(),\n\t\t\t\t\t\t\t\t'slds-table_header-fixed': this.getFixedHeader(),\n\t\t\t\t\t\t\t\t'slds-table_resizable-cols': this.getFixedLayout(),\n\t\t\t\t\t\t\t\t'slds-table_bordered': !this.props.unborderedRow,\n\t\t\t\t\t\t\t\t'slds-table_cell-buffer':\n\t\t\t\t\t\t\t\t\t!this.getFixedLayout() && !this.props.unbufferedCell,\n\t\t\t\t\t\t\t\t'slds-max-medium-table_stacked': this.props.stacked,\n\t\t\t\t\t\t\t\t'slds-max-medium-table_stacked-horizontal': this.props\n\t\t\t\t\t\t\t\t\t.stackedHorizontal,\n\t\t\t\t\t\t\t\t'slds-table_striped': this.props.striped,\n\t\t\t\t\t\t\t\t'slds-table_col-bordered': this.props.columnBordered,\n\t\t\t\t\t\t\t\t'slds-no-row-hover': this.props.noRowHover,\n\t\t\t\t\t\t\t\t'slds-table_header-hidden': this.props.isHeadless,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tthis.props.className\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tid={this.getId()}\n\t\t\t\t\t\tref={(node) => {\n\t\t\t\t\t\t\tif (node) {\n\t\t\t\t\t\t\t\tthis.tableRef = node;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\trole={this.getFixedLayout() ? 'grid' : undefined}\n\t\t\t\t\t\tonBlur={(event) => {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tthis.tableRef &&\n\t\t\t\t\t\t\t\t!this.tableRef.contains(event.relatedTarget as Node)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tthis.setState({\n\t\t\t\t\t\t\t\t\ttableHasFocus: false,\n\t\t\t\t\t\t\t\t\tmode: Mode.NAVIGATION,\n\t\t\t\t\t\t\t\t\tactiveElement: null,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tthis.makeGripVisible(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstyle={this.props.style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<DataTableHead\n\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\tallSelected={allSelected}\n\t\t\t\t\t\t\tfixedHeader={this.getFixedHeader()}\n\t\t\t\t\t\t\tfixedLayout={this.getFixedLayout()}\n\t\t\t\t\t\t\theaderRefs={(ref, index) => {\n\t\t\t\t\t\t\t\tif (index === 'action' || index === 'select') {\n\t\t\t\t\t\t\t\t\tif (ref) {\n\t\t\t\t\t\t\t\t\t\tthis.headerRefs[index][0] = ref;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tthis.headerRefs[index] = [];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.headerRefs.column[index] = ref;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tisHidden={this.props.isHeadless}\n\t\t\t\t\t\t\tindeterminateSelected={indeterminateSelected}\n\t\t\t\t\t\t\tcanSelectRows={canSelectRows}\n\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\tid={`${this.getId()}-${DATA_TABLE_HEAD}`}\n\t\t\t\t\t\t\tonToggleAll={this.handleToggleAll}\n\t\t\t\t\t\t\tonSort={this.props.onSort}\n\t\t\t\t\t\t\tshowRowActions={!!RowActions}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t{numRows > 0\n\t\t\t\t\t\t\t\t? this.props.items.map((item, index) => {\n\t\t\t\t\t\t\t\t\t\tconst rowId =\n\t\t\t\t\t\t\t\t\t\t\tthis.getId() && item.id\n\t\t\t\t\t\t\t\t\t\t\t\t? `${this.getId()}-${DATA_TABLE_ROW}-${item.id}`\n\t\t\t\t\t\t\t\t\t\t\t\t: generateId();\n\t\t\t\t\t\t\t\t\t\treturn this.props.onRenderSubHeadingRow &&\n\t\t\t\t\t\t\t\t\t\t\titem.type === 'header-row' ? (\n\t\t\t\t\t\t\t\t\t\t\tthis.props.onRenderSubHeadingRow({\n\t\t\t\t\t\t\t\t\t\t\t\tassistiveText,\n\t\t\t\t\t\t\t\t\t\t\t\tclassNameRow: item.classNameRow,\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\t\tkey: rowId,\n\t\t\t\t\t\t\t\t\t\t\t\tid: rowId,\n\t\t\t\t\t\t\t\t\t\t\t\ttableId: this.getId(),\n\t\t\t\t\t\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t<DataTableRow\n\t\t\t\t\t\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\t\t\t\t\t\tcanSelectRows={canSelectRows}\n\t\t\t\t\t\t\t\t\t\t\t\tclassName={item.classNameRow}\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\t\t\t\t\t\tfixedLayout={this.getFixedLayout()}\n\t\t\t\t\t\t\t\t\t\t\t\tid={rowId}\n\t\t\t\t\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\t\t\t\tkey={rowId}\n\t\t\t\t\t\t\t\t\t\t\t\tonToggle={this.handleRowToggle}\n\t\t\t\t\t\t\t\t\t\t\t\tselection={this.props.selection}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabledSelection={this.props.disabledSelection}\n\t\t\t\t\t\t\t\t\t\t\t\trowActions={RowActions}\n\t\t\t\t\t\t\t\t\t\t\t\ttableId={this.getId()}\n\t\t\t\t\t\t\t\t\t\t\t\trowIndex={index + numHeaderRows}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t })\n\t\t\t\t\t\t\t\t: // Someday this should be an element to render when the table is empty\n\t\t\t\t\t\t\t\t null}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</TableContext.Provider>\n\t\t\t\t{this.getFixedHeader() && this.props.hasMore && (\n\t\t\t\t\t<div className=\"slds-is-relative slds-p-around_large\">\n\t\t\t\t\t\t<Spinner\n\t\t\t\t\t\t\tassistiveText={{ label: this.props.assistiveText?.loadingMore }}\n\t\t\t\t\t\t\thasContainer={false}\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tvariant=\"brand\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</React.Fragment>\n\t\t);\n\n\t\tif (this.getFixedHeader()) {\n\t\t\tconst border = `1px solid ${colorGray5}`;\n\t\t\tconst styles: React.CSSProperties = {\n\t\t\t\tborderTop: border,\n\t\t\t\theight: '100%',\n\t\t\t};\n\n\t\t\tif (this.props.joined) {\n\t\t\t\tstyles.borderBottom = border;\n\t\t\t\tstyles.borderLeft = border;\n\t\t\t\tstyles.borderRight = border;\n\t\t\t\tstyles.borderTop = 'none';\n\t\t\t\tstyles.borderRadius = tableBorderRadius;\n\t\t\t}\n\n\t\t\tconst fixedScrollerStyle: React.CSSProperties = {\n\t\t\t\theight: '100%',\n\t\t\t};\n\n\t\t\tif (this.props.resizable) {\n\t\t\t\tfixedScrollerStyle.overflowY = 'auto';\n\t\t\t\tfixedScrollerStyle.overflowX = 'hidden';\n\t\t\t} else {\n\t\t\t\tfixedScrollerStyle.overflow = 'auto';\n\t\t\t}\n\n\t\t\tcomponent = (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"slds-table_header-fixed_container\"\n\t\t\t\t\tref={(ref) => {\n\t\t\t\t\t\tthis.fixedHeaderContainer = ref;\n\t\t\t\t\t}}\n\t\t\t\t\tstyle={styles}\n\t\t\t\t\tonScroll={(e) => {\n\t\t\t\t\t\tconst containerScrollLeft = (e.target as HTMLElement).scrollLeft;\n\n\t\t\t\t\t\tif (containerScrollLeft > 0) {\n\t\t\t\t\t\t\t(e.target as HTMLElement).scrollLeft = 0;\n\t\t\t\t\t\t\tif (this.scrollerRef) {\n\t\t\t\t\t\t\t\tthis.scrollerRef.scrollLeft = containerScrollLeft;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"slds-table_header-fixed_scroller\"\n\t\t\t\t\t\tref={(ref) => {\n\t\t\t\t\t\t\tthis.scrollerRef = ref;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstyle={fixedScrollerStyle}\n\t\t\t\t\t>\n\t\t\t\t\t\t{component}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn component;\n\t}\n}\n\nexport default DataTable;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAM,EAAE,yBAAsB,GA+CxB,KAAS,MACd,MAAM,QAAQ,CAAK,IAAI,EAAM,SAAS,GAEjC,IAAe;CACpB,eAAe;EACd,eAAe;EACf,YAAY;EACZ,uBAAuB;EACvB,wBAAwB;EACxB,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,aAAa;CACd;CACA,WAAW,CAAC;CACZ,mBAAmB,CAAC;CACp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,aAAa,KACtB,IAA8B;IACnC,WAAW;IACX,QAAQ;GACT;GAEA,AAAI,KAAK,MAAM,WACd,EAAO,eAAe,GACtB,EAAO,aAAa,GACpB,EAAO,cAAc,GACrB,EAAO,YAAY,QACnB,EAAO,eAAe;GAGvB,IAAM,IAA0C,EAC/C,QAAQ,OACT;GASA,AAPI,KAAK,MAAM,aACd,EAAmB,YAAY,QAC/B,EAAmB,YAAY,YAE/B,EAAmB,WAAW,QAG/B,IACC,kBAAC,OAAD;IACC,WAAU;IACV,MAAM,MAAQ;KACb,KAAK,uBAAuB;IAC7B;IACA,OAAO;IACP,WAAW,MAAM;KAChB,IAAM,IAAuB,EAAE,OAAuB;KAEtD,AAAI,IAAsB,MACzB,EAAG,OAAuB,aAAa,GACnC,KAAK,gBACR,KAAK,YAAY,aAAa;IAGjC;IAEA,UAAA,kBAAC,OAAD;KACC,WAAU;KACV,MAAM,MAAQ;MACb,KAAK,cAAc;KACpB;KACA,OAAO;KAEN,UAAA;IACG,CAAA;GACD,CAAA;EAEP;EAEA,OAAO;CACR;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interactive-element.js","names":[],"sources":["../../../../components/data-table/interactive-element.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { Component, ComponentType } from 'react';\nimport Mode from './private/mode';\nimport CellContext from './private/cell-context';\nimport TableContext, { TableContextValue } from './private/table-context';\n\nimport generateId from '../../utilities/generate-id';\n\n/**\n * Wrapper for interactive elements in the table.\n *\n * The Advanced Data Table implements keyboard navigation as described in Data Tables.\n * This wrapper controls an element's focus and `tabIndex` behavior.\n *\n * The wrapped element must accept the props:\n * `onFocus`: Callback for when the element is focused.\n * `onRequestFocus`: Trigger to indicate that this element should be focused.\n * `requestFocus`: This wrapper overrides the `requestFocus` prop and provides its own value.\n * `tabIndex`: This wrapper overrides the `tabIndex` prop and provides its own value.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport default function createInteractiveElement(WrappedElement: ComponentType<any>): any {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tclass InteractiveElement extends Component<any> {\n\t\telementId: string;\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\tconstructor(props: any) {\n\t\t\tsuper(props);\n\t\t\tthis.elementId = generateId();\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\tonFocus(tableContext: TableContextValue, ...args: any[]) {\n\t\t\tif (tableContext.activeElement !== this.elementId) {\n\t\t\t\ttableContext.changeActiveElement(this.elementId);\n\t\t\t}\n\t\t\tif (this.props.onFocus) {\n\t\t\t\tthis.props.onFocus(...args);\n\t\t\t}\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\tonRequestFocus(tableContext: TableContextValue, node: HTMLElement, ...args: any[]) {\n\t\t\tif (tableContext.tableHasFocus) {\n\t\t\t\tnode.focus();\n\t\t\t\tif (this.props.onRequestFocus) {\n\t\t\t\t\tthis.props.onRequestFocus(...args);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\tonOpen(tableContext: TableContextValue, ...args: any[]) {\n\t\t\ttableContext.setAllowKeyboardNavigation(false);\n\t\t\tif (this.props.onOpen) {\n\t\t\t\tthis.props.onOpen(...args);\n\t\t\t}\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\tonClose(tableContext: TableContextValue, ...args: any[]) {\n\t\t\ttableContext.setAllowKeyboardNavigation(true);\n\t\t\tif (this.props.onClose) {\n\t\t\t\tthis.props.onClose(...args);\n\t\t\t}\n\t\t}\n\n\t\toverride render() {\n\t\t\tconst { onFocus, onRequestFocus, onOpen, onClose } = this;\n\t\t\treturn (\n\t\t\t\t<TableContext.Consumer>\n\t\t\t\t\t{(tableContext) => (\n\t\t\t\t\t\t<CellContext.Consumer>\n\t\t\t\t\t\t\t{(cellContext) => {\n\t\t\t\t\t\t\t\ttableContext.registerInteractiveElement(\n\t\t\t\t\t\t\t\t\tcellContext.rowIndex,\n\t\t\t\t\t\t\t\t\tcellContext.columnIndex,\n\t\t\t\t\t\t\t\t\tthis.elementId\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tconst requestFocus =\n\t\t\t\t\t\t\t\t\ttableContext.mode === Mode.ACTIONABLE &&\n\t\t\t\t\t\t\t\t\ttableContext.activeElement === this.elementId;\n\t\t\t\t\t\t\t\tconst tabIndex =\n\t\t\t\t\t\t\t\t\ttableContext.mode === Mode.ACTIONABLE ? 0 : -1;\n\t\t\t\t\t\t\t\tconst keyboardNavProps = tableContext.allowKeyboardNavigation\n\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\tonFocus: onFocus.bind(this, tableContext),\n\t\t\t\t\t\t\t\t\t\t\tonRequestFocus: onRequestFocus.bind(this, tableContext),\n\t\t\t\t\t\t\t\t\t\t\trequestFocus,\n\t\t\t\t\t\t\t\t\t\t\ttabIndex,\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t: {};\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<WrappedElement\n\t\t\t\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\t\t\t\t...this.props,\n\t\t\t\t\t\t\t\t\t\t\t...{\n\t\t\t\t\t\t\t\t\t\t\t\tonOpen: onOpen.bind(this, tableContext),\n\t\t\t\t\t\t\t\t\t\t\t\tonClose: onClose.bind(this, tableContext),\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t...keyboardNavProps,\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t</CellContext.Consumer>\n\t\t\t\t\t)}\n\t\t\t\t</TableContext.Consumer>\n\t\t\t);\n\t\t}\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(InteractiveElement as any).displayName = `InteractiveElement${\n\t\tWrappedElement.displayName || 'Unknown'\n\t}`;\n\n\treturn InteractiveElement;\n}\n"],"mappings":";;;;;;;AAuBA,SAAwB,EAAyB,GAAyC;CAEzF,MAAM,UAA2B,EAAe;EAC/C;EAGA,YAAY,GAAY;GAEvB,AADA,MAAM,CAAK,GACX,KAAK,YAAY,EAAW;EAC7B;EAGA,QAAQ,GAAiC,GAAG,GAAa;GAIxD,AAHI,EAAa,kBAAkB,KAAK,aACvC,EAAa,oBAAoB,KAAK,SAAS,GAE5C,KAAK,MAAM,WACd,KAAK,MAAM,QAAQ,GAAG,CAAI;EAE5B;EAGA,eAAe,GAAiC,GAAmB,GAAG,GAAa;GAClF,AAAI,EAAa,kBAChB,EAAK,MAAM,GACP,KAAK,MAAM,kBACd,KAAK,MAAM,eAAe,GAAG,CAAI;EAGpC;EAGA,OAAO,GAAiC,GAAG,GAAa;GAEvD,AADA,EAAa,2BAA2B,EAAK,GACzC,KAAK,MAAM,UACd,KAAK,MAAM,OAAO,GAAG,CAAI;EAE3B;EAGA,QAAQ,GAAiC,GAAG,GAAa;GAExD,AADA,EAAa,2BAA2B,EAAI,GACxC,KAAK,MAAM,WACd,KAAK,MAAM,QAAQ,GAAG,CAAI;EAE5B;EAEA,SAAkB;GACjB,IAAM,EAAE,YAAS,mBAAgB,WAAQ,eAAY;GACrD,OACC,kBAAC,EAAa,UAAd,EAAA,WACG,MACD,kBAAC,EAAY,UAAb,EAAA,WACG,MAAgB;IACjB,EAAa,2BACZ,EAAY,UACZ,EAAY,aACZ,KAAK,SACN;IACA,IAAM,IACL,EAAa,SAAS,EAAK,cAC3B,EAAa,kBAAkB,KAAK,WAC/B,IACL,EAAa,SAAS,EAAK,aAAa,IAAI,IACvC,IAAmB,EAAa,0BACnC;KACA,SAAS,EAAQ,KAAK,MAAM,CAAY;KACxC,gBAAgB,EAAe,KAAK,MAAM,CAAY;KACtD;KACA;IACA,IACA,CAAC;IACJ,OACC,kBAAC,GAAD;KAEE,GAAG,KAAK;KAEP,QAAQ,EAAO,KAAK,MAAM,CAAY;KACtC,SAAS,EAAQ,KAAK,MAAM,CAAY;KAEzC,GAAG;IAEJ,CAAA;GAEH,EACqB,CAAA,EAED,CAAA;EAEzB;CACD;CAOA,OAJA,EAA4B,cAAc,qBACzC,EAAe,eAAe,aAGxB;AACR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interactive-link.js","names":[],"sources":["../../../../components/data-table/interactive-link.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport InteractiveElement from './interactive-element';\nimport Link from './private/link';\n\nexport default InteractiveElement(Link);\n"],"mappings":";;;AAMA,IAAA,IAAe,EAAmB,CAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell-context.js","names":[],"sources":["../../../../../components/data-table/private/cell-context.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface CellContextValue {\n\trowIndex: number;\n\tcolumnIndex: number;\n}\n\nconst CellContext = React.createContext<CellContextValue>({\n\trowIndex: 0,\n\tcolumnIndex: 0,\n});\n\nexport default CellContext;\n"],"mappings":";;AAOA,IAAM,IAAc,EAAM,cAAgC;CACzD,UAAU;CACV,aAAa;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell-fixed.js","names":[],"sources":["../../../../../components/data-table/private/cell-fixed.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { ReactNode } from 'react';\n\ninterface CellFixedProps {\n\tchildren?: ReactNode;\n}\n\n/**\n * Used internally, provides fixed cell rendering\n */\nconst CellFixed: React.FC<CellFixedProps> = ({ children }) => (\n\t<div\n\t\tclassName=\"slds-cell-fixed\"\n\t\tstyle={{\n\t\t\tdisplay: 'flex',\n\t\t\tflexDirection: 'row',\n\t\t\tflexWrap: 'nowrap',\n\t\t\tlineHeight: '2rem',\n\t\t}}\n\t>\n\t\t{children}\n\t</div>\n);\n\nexport default CellFixed;\n"],"mappings":";;;AAYA,IAAM,KAAuC,EAAE,kBAC9C,kBAAC,OAAD;CACC,WAAU;CACV,OAAO;EACN,SAAS;EACT,eAAe;EACf,UAAU;EACV,YAAY;CACb;CAEC;AACG,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-helper.js","names":[],"sources":["../../../../../components/data-table/private/context-helper.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { useCallback } from 'react';\nimport { TableContextValue } from './table-context';\nimport { CellContextValue } from './cell-context';\n\ninterface ContextHelperResult {\n\ttabIndex: number | undefined;\n\thasFocus: boolean;\n\thandleFocus: () => void;\n\thandleKeyDown: (event: React.KeyboardEvent) => void;\n}\n\n/**\n * Calculates data table keyboard navigation state based on currently selected cell\n */\nexport default function useTableContextHelper(\n\ttableContext: TableContextValue,\n\tcellContext: CellContextValue,\n\tfixedLayout?: boolean\n): ContextHelperResult {\n\tconst isActive =\n\t\ttableContext.activeCell.rowIndex === cellContext.rowIndex &&\n\t\ttableContext.activeCell.columnIndex === cellContext.columnIndex;\n\n\tconst hasFocus = Boolean(fixedLayout && tableContext.tableHasFocus && isActive);\n\tconst { changeActiveCell, handleKeyDown: handleTableKeyDown } = tableContext;\n\n\tconst handleFocus = useCallback(() => {\n\t\tif (fixedLayout && tableContext.allowKeyboardNavigation) {\n\t\t\tchangeActiveCell(cellContext.rowIndex, cellContext.columnIndex);\n\t\t}\n\t}, [\n\t\tfixedLayout,\n\t\ttableContext.allowKeyboardNavigation,\n\t\tchangeActiveCell,\n\t\tcellContext.rowIndex,\n\t\tcellContext.columnIndex,\n\t]);\n\n\tconst handleKeyDown = useCallback(\n\t\t(event: React.KeyboardEvent) => {\n\t\t\tif (fixedLayout && tableContext.allowKeyboardNavigation) {\n\t\t\t\thandleTableKeyDown(event);\n\t\t\t}\n\t\t},\n\t\t[fixedLayout, tableContext.allowKeyboardNavigation, handleTableKeyDown]\n\t);\n\n\tconst tabIndex =\n\t\tfixedLayout &&\n\t\tisActive &&\n\t\t!tableContext.activeElement &&\n\t\ttableContext.allowKeyboardNavigation\n\t\t\t? 0\n\t\t\t: undefined;\n\n\treturn { tabIndex, hasFocus, handleFocus, handleKeyDown };\n}\n"],"mappings":";;AAiBA,SAAwB,EACvB,GACA,GACA,GACsB;CACtB,IAAM,IACL,EAAa,WAAW,aAAa,EAAY,YACjD,EAAa,WAAW,gBAAgB,EAAY,aAE/C,IAAW,GAAQ,KAAe,EAAa,iBAAiB,IAChE,EAAE,qBAAkB,eAAe,MAAuB,GAE1D,IAAc,QAAkB;EACrC,AAAI,KAAe,EAAa,2BAC/B,EAAiB,EAAY,UAAU,EAAY,WAAW;CAEhE,GAAG;EACF;EACA,EAAa;EACb;EACA,EAAY;EACZ,EAAY;CACb,CAAC,GAEK,IAAgB,GACpB,MAA+B;EAC/B,AAAI,KAAe,EAAa,2BAC/B,EAAmB,CAAK;CAE1B,GACA;EAAC;EAAa,EAAa;EAAyB;CAAkB,CACvE;CAUA,OAAO;EAAE,UAPR,KACA,KACA,CAAC,EAAa,iBACd,EAAa,0BACV,IACA,KAAA;EAEe;EAAU;EAAa;CAAc;AACzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"head.js","names":[],"sources":["../../../../../components/data-table/private/head.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useContext, SyntheticEvent, ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport CellFixed from './cell-fixed';\nimport Checkbox from '../../checkbox';\nimport HeaderCell from './header-cell';\nimport InteractiveElement from '../interactive-element';\nimport CellContext from './cell-context';\nimport TableContext from './table-context';\nimport useContextHelper from './context-helper';\n\nimport { DATA_TABLE_HEAD } from '../../../utilities/constants';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst InteractiveCheckbox = InteractiveElement(Checkbox as any) as React.ComponentType<any>;\n\ninterface DataTableColumnConfig {\n\tCell: React.ComponentType<Record<string, unknown>>;\n\tprops: Record<string, unknown>;\n}\n\ninterface AssistiveText {\n\tactionsHeader?: string;\n\tselectAllRows?: string;\n\tselectRowGroup?: string;\n\tcolumnSort?: string;\n\tcolumnSortedAscending?: string;\n\tcolumnSortedDescending?: string;\n}\n\ninterface ActionsHeaderProps {\n\tassistiveText?: string;\n\tcolumnIndex: number;\n\tfixedLayout?: boolean;\n\tfixedHeader?: boolean;\n\theaderRefs?: (ref: HTMLElement | null, index: 'action' | 'select' | number) => void;\n}\n\nconst ActionsHeader: React.FC<ActionsHeaderProps> = (props) => {\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = { columnIndex: props.columnIndex, rowIndex: 0 };\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tprops.fixedLayout\n\t);\n\tconst { fixedHeader } = props;\n\n\tconst getContent = (style?: React.CSSProperties) => (\n\t\t<div className=\"slds-th__action\" style={style}>\n\t\t\t<span className=\"slds-assistive-text\">{props.assistiveText}</span>\n\t\t</div>\n\t);\n\n\treturn (\n\t\t<th\n\t\t\tclassName={classNames({ 'slds-has-focus': hasFocus })}\n\t\t\tref={(ref) => {\n\t\t\t\tif (props.headerRefs) {\n\t\t\t\t\tprops.headerRefs(ref, 'action');\n\t\t\t\t}\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tscope=\"col\"\n\t\t\tstyle={{\n\t\t\t\theight: fixedHeader ? 0 : undefined,\n\t\t\t\tlineHeight: fixedHeader ? 0 : undefined,\n\t\t\t\twidth: '3.25rem',\n\t\t\t}}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t{getContent(\n\t\t\t\tfixedHeader\n\t\t\t\t\t? {\n\t\t\t\t\t\t\theight: 0,\n\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t\tpaddingBottom: 0,\n\t\t\t\t\t\t\tpaddingTop: 0,\n\t\t\t\t\t\t\tvisibility: 'hidden',\n\t\t\t\t\t }\n\t\t\t\t\t: undefined\n\t\t\t)}\n\t\t\t{fixedHeader ? (\n\t\t\t\t<CellFixed>\n\t\t\t\t\t{getContent({\n\t\t\t\t\t\tlineHeight: 1,\n\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t})}\n\t\t\t\t</CellFixed>\n\t\t\t) : null}\n\t\t</th>\n\t);\n};\n\ninterface SelectHeaderProps {\n\tallSelected?: boolean;\n\tassistiveText?: {\n\t\tselectAllRows?: string;\n\t\tselectRowGroup?: string;\n\t};\n\tcanSelectRows?: boolean | 'checkbox' | 'radio';\n\tfixedHeader?: boolean;\n\tfixedLayout?: boolean;\n\theaderRefs?: (ref: HTMLElement | null, index: 'action' | 'select' | number) => void;\n\tid?: string;\n\tindeterminateSelected?: boolean;\n\tonToggleAll?: (event: SyntheticEvent, data: { checked: boolean }) => void;\n}\n\nconst SelectHeader: React.FC<SelectHeaderProps> = (props) => {\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = { columnIndex: 0, rowIndex: 0 };\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tprops.fixedLayout\n\t);\n\tconst { fixedHeader, canSelectRows } = props;\n\n\tconst getContent = (\n\t\tidSuffix: string,\n\t\tstyle?: React.CSSProperties,\n\t\tariaHidden?: boolean\n\t): ReactNode => {\n\t\tif (canSelectRows === 'radio') {\n\t\t\tif (!ariaHidden) {\n\t\t\t\treturn (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"slds-truncate slds-assistive-text\"\n\t\t\t\t\t\tid={`${props.id}-column-group-header-row-select`}\n\t\t\t\t\t\ttitle={props.assistiveText?.selectRowGroup}\n\t\t\t\t\t>\n\t\t\t\t\t\t{props.assistiveText?.selectRowGroup}\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\n\t\tif (canSelectRows === true || canSelectRows === 'checkbox') {\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"slds-th__action slds-th__action_form\"\n\t\t\t\t\taria-hidden={ariaHidden ? true : undefined}\n\t\t\t\t\tstyle={style}\n\t\t\t\t>\n\t\t\t\t\t{!ariaHidden ? (\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tid={`${props.id}-column-group-header-row-select`}\n\t\t\t\t\t\t\tclassName=\"slds-assistive-text\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{props.assistiveText?.selectAllRows}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t) : null}\n\t\t\t\t\t<InteractiveCheckbox\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\tlabel: props.assistiveText?.selectAllRows,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tchecked={props.allSelected}\n\t\t\t\t\t\tindeterminate={props.indeterminateSelected}\n\t\t\t\t\t\tid={`${props.id}-${idSuffix}`}\n\t\t\t\t\t\tname={!ariaHidden ? 'SelectAll' : undefined}\n\t\t\t\t\t\tonChange={props.onToggleAll}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<th\n\t\t\tclassName={classNames('slds-text-align_right', {\n\t\t\t\t'slds-has-focus': hasFocus,\n\t\t\t})}\n\t\t\tref={(ref) => {\n\t\t\t\tif (props.headerRefs) {\n\t\t\t\t\tprops.headerRefs(ref, 'select');\n\t\t\t\t}\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tscope=\"col\"\n\t\t\tstyle={{\n\t\t\t\theight: fixedHeader ? 0 : undefined,\n\t\t\t\tlineHeight: fixedHeader ? 0 : undefined,\n\t\t\t\twidth: '3.25rem',\n\t\t\t}}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t<CellContext.Provider value={cellContext}>\n\t\t\t\t{getContent(\n\t\t\t\t\t'SelectAll-fixed-header',\n\t\t\t\t\tfixedHeader\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\theight: 0,\n\t\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t\t\tpaddingBottom: 0,\n\t\t\t\t\t\t\t\tpaddingTop: 0,\n\t\t\t\t\t\t\t\tvisibility: 'hidden',\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\tfixedHeader\n\t\t\t\t)}\n\t\t\t\t{fixedHeader ? (\n\t\t\t\t\t<CellFixed>\n\t\t\t\t\t\t{getContent('SelectAll', {\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tjustifyContent: 'flex-end',\n\t\t\t\t\t\t\tlineHeight: 1,\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t})}\n\t\t\t\t\t</CellFixed>\n\t\t\t\t) : null}\n\t\t\t</CellContext.Provider>\n\t\t</th>\n\t);\n};\n\nexport interface DataTableHeadProps {\n\tassistiveText?: AssistiveText;\n\tallSelected?: boolean;\n\theaderRefs?: (ref: HTMLElement | null, index: 'action' | 'select' | number) => void;\n\tisHidden?: boolean;\n\tindeterminateSelected?: boolean;\n\tcanSelectRows?: boolean | 'checkbox' | 'radio';\n\tcolumns?: DataTableColumnConfig[];\n\tfixedHeader?: boolean;\n\tfixedLayout?: boolean;\n\tid?: string;\n\tonToggleAll?: (event: SyntheticEvent, data: { checked: boolean }) => void;\n\tonSort?: (\n\t\tdata: { property: string; sortDirection: 'asc' | 'desc' },\n\t\tevent: SyntheticEvent\n\t) => void;\n\tshowRowActions?: boolean;\n}\n\n/**\n * Used internally, provides header row rendering to the DataTable.\n */\nconst DataTableHead: React.FC<DataTableHeadProps> = (props) => {\n\tconst getActionsHeader = () => {\n\t\tif (props.showRowActions) {\n\t\t\treturn (\n\t\t\t\t<ActionsHeader\n\t\t\t\t\tassistiveText={props.assistiveText?.actionsHeader}\n\t\t\t\t\tcolumnIndex={\n\t\t\t\t\t\tprops.canSelectRows\n\t\t\t\t\t\t\t? (props.columns?.length ?? 0) + 1\n\t\t\t\t\t\t\t: props.columns?.length ?? 0\n\t\t\t\t\t}\n\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\tfixedHeader={props.fixedHeader}\n\t\t\t\t\theaderRefs={props.headerRefs}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t};\n\n\tconst getSelectHeader = () => {\n\t\tif (props.canSelectRows) {\n\t\t\treturn (\n\t\t\t\t<SelectHeader\n\t\t\t\t\tallSelected={props.allSelected}\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tselectAllRows: props.assistiveText?.selectAllRows,\n\t\t\t\t\t\tselectRowGroup: props.assistiveText?.selectRowGroup,\n\t\t\t\t\t}}\n\t\t\t\t\tcanSelectRows={props.canSelectRows}\n\t\t\t\t\tfixedHeader={props.fixedHeader}\n\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\theaderRefs={props.headerRefs}\n\t\t\t\t\tid={props.id}\n\t\t\t\t\tindeterminateSelected={props.indeterminateSelected}\n\t\t\t\t\tonToggleAll={props.onToggleAll}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t};\n\n\tconst actionsHeader = getActionsHeader();\n\tconst selectHeader = getSelectHeader();\n\n\treturn (\n\t\t<thead\n\t\t\tclassName={classNames({\n\t\t\t\t'slds-assistive-text': props.isHidden,\n\t\t\t})}\n\t\t>\n\t\t\t<tr className=\"slds-line-height_reset\">\n\t\t\t\t{selectHeader}\n\t\t\t\t{props.columns?.map((column, index) => (\n\t\t\t\t\t<CellContext.Provider\n\t\t\t\t\t\tkey={`${props.id}-${column.props.property}`}\n\t\t\t\t\t\tvalue={{\n\t\t\t\t\t\t\tcolumnIndex: props.canSelectRows ? index + 1 : index,\n\t\t\t\t\t\t\trowIndex: 0,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<HeaderCell\n\t\t\t\t\t\t\tassistiveText={props.assistiveText}\n\t\t\t\t\t\t\tcellRef={(ref) => {\n\t\t\t\t\t\t\t\tif (props.headerRefs) {\n\t\t\t\t\t\t\t\t\tprops.headerRefs(ref, index);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tfixedHeader={props.fixedHeader}\n\t\t\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\t\t\tid={`${props.id}-${column.props.property}`}\n\t\t\t\t\t\t\tonSort={props.onSort}\n\t\t\t\t\t\t\t{...column.props}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t))}\n\t\t\t\t{actionsHeader}\n\t\t\t</tr>\n\t\t</thead>\n\t);\n};\n\nDataTableHead.displayName = DATA_TABLE_HEAD;\n\nexport default DataTableHead;\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAM,IAAsB,EAAmB,CAAe,GAwBxD,KAA+C,MAAU;CAC9D,IAAM,IAAe,EAAW,CAAY,GACtC,IAAc;EAAE,aAAa,EAAM;EAAa,UAAU;CAAE,GAC5D,EAAE,aAAU,aAAU,gBAAa,qBAAkB,EAC1D,GACA,GACA,EAAM,WACP,GACM,EA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,YAAY,EAAM;EAClB,IAAI,EAAM;EACV,uBAAuB,EAAM;EAC7B,aAAa,EAAM;CACnB,CAAA,IAGI,MAGF,IAAgB,EAAiB,GACjC,IAAe,EAAgB;CAErC,OACC,kBAAC,SAAD;EACC,WAAW,EAAW,EACrB,uBAAuB,EAAM,SAC9B,CAAC;EAED,UAAA,kBAAC,MAAD;GAAI,WAAU;GAAd,UAAA;IACE;IACA,EAAM,SAAS,KAAK,GAAQ,MAC5B,kBAAC,EAAY,UAAb;KAEC,OAAO;MACN,aAAa,EAAM,gBAAgB,IAAQ,IAAI;MAC/C,UAAU;KACX;KAEA,UAAA,kBAAC,GAAD;MACC,eAAe,EAAM;MACrB,UAAU,MAAQ;OACjB,AAAI,EAAM,cACT,EAAM,WAAW,GAAK,CAAK;MAE7B;MACA,aAAa,EAAM;MACnB,aAAa,EAAM;MACnB,IAAI,GAAG,EAAM,GAAG,GAAG,EAAO,MAAM;MAChC,QAAQ,EAAM;MACd,GAAI,EAAO;KACX,CAAA;IACoB,GAnBhB,GAAG,EAAM,GAAG,GAAG,EAAO,MAAM,UAmBZ,CACtB;IACA;GACE;;CACE,CAAA;AAET;AAEA,EAAc,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-cell.js","names":[],"sources":["../../../../../components/data-table/private/header-cell.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tSyntheticEvent,\n\tReactNode,\n} from 'react';\nimport classNames from 'classnames';\nimport isFunction from 'lodash.isfunction';\n\nimport CellFixed from './cell-fixed';\nimport Icon from '../../icon';\n\nimport checkProps from '../column-check-props';\n\nimport Link from './link';\nimport InteractiveLink from '../interactive-link';\nimport CellContext from './cell-context';\nimport TableContext from './table-context';\nimport useContextHelper from './context-helper';\n\nimport {\n\tDATA_TABLE_HEADER_CELL,\n\tDATA_TABLE_COLUMN,\n} from '../../../utilities/constants';\n\ninterface AssistiveText {\n\tactionsHeader?: string;\n\tcolumnSort?: string;\n\tcolumnSortedAscending?: string;\n\tcolumnSortedDescending?: string;\n\tselectAllRows?: string;\n\tselectRow?: string;\n}\n\nexport interface DataTableHeaderCellProps {\n\tassistiveText?: AssistiveText;\n\tcellRef?: (ref: HTMLElement | null) => void;\n\tfixedHeader?: boolean;\n\tfixedLayout?: boolean;\n\tid: string;\n\tisDefaultSortDescending?: boolean;\n\tisSorted?: boolean;\n\tlabel?: string | ReactNode;\n\tonSort?: (\n\t\tdata: { property: string; sortDirection: 'asc' | 'desc' },\n\t\tevent: SyntheticEvent\n\t) => void;\n\tproperty?: string;\n\tsortable?: boolean;\n\tsortDirection?: 'desc' | 'asc';\n\twidth?: string;\n\t/** @deprecated */\n\tassistiveTextForColumnSort?: string;\n\t/** @deprecated */\n\tassistiveTextForColumnSortedAscending?: string;\n\t/** @deprecated */\n\tassistiveTextForColumnSortedDescending?: string;\n}\n\n/**\n * Used internally, renders each individual column heading.\n */\nconst DataTableHeaderCell: React.FC<DataTableHeaderCellProps> = (props) => {\n\tconst [sortDirection, setSortDirection] = useState<'asc' | 'desc' | null>(\n\t\tnull\n\t);\n\tconst prevIsSorted = useRef<boolean | null>(null);\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = useContext(CellContext);\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tprops.fixedLayout\n\t);\n\n\tuseEffect(() => {\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(checkProps as any)(DATA_TABLE_COLUMN, props);\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, []);\n\n\tuseEffect(() => {\n\t\tif (prevIsSorted.current === true && props.isSorted === false) {\n\t\t\tsetSortDirection(null);\n\t\t}\n\t\tprevIsSorted.current = props.isSorted ?? null;\n\t}, [props.isSorted]);\n\n\tconst handleSort = (e: SyntheticEvent) => {\n\t\te.preventDefault();\n\n\t\tconst oldSortDirection = props.sortDirection || sortDirection;\n\t\tconst newSortDirection = (function sortDirectionFunction(\n\t\t\tdirection: 'asc' | 'desc' | null,\n\t\t\tisDefaultSortDescending?: boolean\n\t\t): 'asc' | 'desc' {\n\t\t\tswitch (direction) {\n\t\t\t\tcase 'asc':\n\t\t\t\t\treturn 'desc';\n\t\t\t\tcase 'desc':\n\t\t\t\t\treturn 'asc';\n\t\t\t\tcase null:\n\t\t\t\t\treturn isDefaultSortDescending ? 'desc' : 'asc';\n\t\t\t\tdefault:\n\t\t\t\t\treturn 'asc';\n\t\t\t}\n\t\t})(oldSortDirection, props.isDefaultSortDescending);\n\n\t\tconst data = {\n\t\t\tproperty: props.property || '',\n\t\t\tsortDirection: newSortDirection,\n\t\t};\n\n\t\tsetSortDirection(newSortDirection);\n\n\t\tif (isFunction(props.onSort)) {\n\t\t\tprops.onSort(data, e);\n\t\t}\n\t};\n\n\tconst { fixedHeader, isSorted, label, sortable, width, property } = props;\n\n\tconst labelType = typeof label;\n\tconst effectiveSortDirection =\n\t\tprops.sortDirection ||\n\t\tsortDirection ||\n\t\t(props.isDefaultSortDescending ? 'desc' : undefined);\n\tconst expandedSortDirection =\n\t\teffectiveSortDirection === 'desc' ? 'descending' : 'ascending';\n\tconst ariaSort = isSorted ? expandedSortDirection : 'none';\n\n\tconst getFixedLayoutSubRenders = (isHidden?: boolean) => {\n\t\tif (sortable) {\n\t\t\tconst SortLink = isHidden ? Link : InteractiveLink;\n\t\t\treturn (\n\t\t\t\t<SortLink\n\t\t\t\t\thref=\"#\"\n\t\t\t\t\tclassName=\"slds-th__action slds-text-link_reset\"\n\t\t\t\t\tonClick={handleSort}\n\t\t\t\t\trole=\"button\"\n\t\t\t\t>\n\t\t\t\t\t<span className=\"slds-assistive-text\">\n\t\t\t\t\t\t{props.assistiveTextForColumnSort || props.assistiveText?.columnSort}{' '}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\t\ttitle={labelType === 'string' ? (label as string) : undefined}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</span>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tclassName=\"slds-is-sortable__icon\"\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tname={effectiveSortDirection === 'desc' ? 'arrowdown' : 'arrowup'}\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t/>\n\t\t\t\t\t{effectiveSortDirection ? (\n\t\t\t\t\t\t<span className=\"slds-assistive-text\" aria-atomic=\"true\">\n\t\t\t\t\t\t\t{effectiveSortDirection === 'asc'\n\t\t\t\t\t\t\t\t? props.assistiveTextForColumnSortedAscending ||\n\t\t\t\t\t\t\t\t props.assistiveText?.columnSortedAscending\n\t\t\t\t\t\t\t\t: props.assistiveTextForColumnSortedDescending ||\n\t\t\t\t\t\t\t\t props.assistiveText?.columnSortedDescending}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t) : null}\n\t\t\t\t</SortLink>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<span\n\t\t\t\tclassName=\"slds-p-horizontal_x-small slds-th__action\"\n\t\t\t\tstyle={{ display: 'flex' }}\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\ttitle={labelType === 'string' ? (label as string) : undefined}\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</span>\n\t\t\t</span>\n\t\t);\n\t};\n\n\t// `getFixedLayoutSubRenders` already returns a single element (a sort link or a\n\t// span), so return it directly rather than wrapping it in a Fragment. The\n\t// callers below `cloneElement` this result to inject `style`, which React only\n\t// applies to real elements — a Fragment silently drops it (and warns).\n\tconst getHeaderCellContent = (isHidden?: boolean): React.ReactElement =>\n\t\tprops.fixedLayout ? (\n\t\t\tgetFixedLayoutSubRenders(isHidden)\n\t\t) : (\n\t\t\t<div\n\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\ttitle={labelType === 'string' ? (label as string) : undefined}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t</div>\n\t\t);\n\n\treturn (\n\t\t<th\n\t\t\tid={`${props.id}-${property}-th`}\n\t\t\taria-label={labelType === 'string' ? (label as string) : undefined}\n\t\t\taria-sort={ariaSort}\n\t\t\tclassName={classNames({\n\t\t\t\t'slds-is-sortable': sortable,\n\t\t\t\t'slds-is-sorted': isSorted,\n\t\t\t\t[`slds-is-sorted_${effectiveSortDirection}`]: effectiveSortDirection,\n\t\t\t\t'slds-is-sorted_asc': isSorted && !effectiveSortDirection,\n\t\t\t\t'slds-has-focus': hasFocus,\n\t\t\t})}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\tref={(ref) => {\n\t\t\t\tif (props.cellRef) {\n\t\t\t\t\tprops.cellRef(ref);\n\t\t\t\t}\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tscope=\"col\"\n\t\t\tstyle={\n\t\t\t\tfixedHeader || width\n\t\t\t\t\t? {\n\t\t\t\t\t\t\theight: fixedHeader ? 0 : undefined,\n\t\t\t\t\t\t\tlineHeight: fixedHeader ? 0 : undefined,\n\t\t\t\t\t\t\twidth: width || undefined,\n\t\t\t\t\t }\n\t\t\t\t\t: undefined\n\t\t\t}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t{fixedHeader\n\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\tgetHeaderCellContent(true) as React.ReactElement<{ style?: React.CSSProperties }>,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\theight: 0,\n\t\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t\t\tpaddingBottom: 0,\n\t\t\t\t\t\t\t\tpaddingTop: 0,\n\t\t\t\t\t\t\t\tvisibility: 'hidden' as const,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}\n\t\t\t\t )\n\t\t\t\t: getHeaderCellContent()}\n\t\t\t{fixedHeader ? (\n\t\t\t\t<CellFixed>\n\t\t\t\t\t{React.cloneElement(\n\t\t\t\t\t\tgetHeaderCellContent() as React.ReactElement<{\n\t\t\t\t\t\t\tstyle?: React.CSSProperties;\n\t\t\t\t\t\t\ttabIndex?: number;\n\t\t\t\t\t\t}>,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflex: '1 1 auto',\n\t\t\t\t\t\t\t\tlineHeight: 1.25,\n\t\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttabIndex: sortable ? 0 : undefined,\n\t\t\t\t\t\t}\n\t\t\t\t\t)}\n\t\t\t\t</CellFixed>\n\t\t\t) : null}\n\t\t</th>\n\t);\n};\n\nDataTableHeaderCell.displayName = DATA_TABLE_HEADER_CELL;\n\nexport default DataTableHeaderCell;\n"],"mappings":";;;;;;;;;;;;;;AAmEA,IAAM,KAA2D,MAAU;CAC1E,IAAM,CAAC,GAAe,KAAoB,EACzC,IACD,GACM,IAAe,EAAuB,IAAI,GAC1C,IAAe,EAAW,CAAY,GACtC,IAAc,EAAW,CAAW,GACpC,EAAE,aAAU,aAAU,gBAAa,qBAAkB,EAC1D,GACA,GACA,EAAM,WACP;CAQA,AANA,QAAgB;EAEf,EAAoB,GAAmB,CAAK;CAE7C,GAAG,CAAC,CAAC,GAEL,QAAgB;EAIf,AAHI,EAAa,YAAY,MAAQ,EAAM,aAAa,MACvD,EAAiB,IAAI,GAEtB,EAAa,UAAU,EAAM,YAAY;CAC1C,GAAG,CAAC,EAAM,QAAQ,CAAC;CAEnB,I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nD,UAAA;EACI,CAAA;CACD,CAAA,GAQF,KAAwB,MAC7B,EAAM,cACL,EAAyB,CAAQ,IAEjC,kBAAC,OAAD;EACC,WAAU;EACV,OAAO,MAAc,WAAY,IAAmB,KAAA;EAEnD,UAAA;CACG,CAAA;CAGP,OACC,kBAAC,MAAD;EACC,IAAI,GAAG,EAAM,GAAG,GAAG,EAAS;EAC5B,cAAY,MAAc,WAAY,IAAmB,KAAA;EACzD,aAAW;EACX,WAAW,EAAW;GACrB,oBAAoB;GACpB,kBAAkB;IACjB,kBAAkB,MAA2B;GAC9C,sBAAsB,KAAY,CAAC;GACnC,kBAAkB;EACnB,CAAC;EACD,SAAS;EACT,WAAW;EACX,MAAM,MAAQ;GAIb,AAHI,EAAM,WACT,EAAM,QAAQ,CAAG,GAEd,KAAO,KACV,EAAI,MAAM;EAEZ;EACA,OAAM;EACN,OACC,KAAe,IACZ;GACA,QAAQ,IAAc,IAAI,KAAA;GAC1B,YAAY,IAAc,IAAI,KAAA;GAC9B,OAAO,KAAS,KAAA;EAChB,IACA,KAAA;EAEM;EA/BX,UAAA,CAiCE,IACE,EAAM,aACN,EAAqB,EAAI,GACzB,EACC,OAAO;GACN,SAAS;GACT,QAAQ;GACR,UAAU;GACV,eAAe;GACf,YAAY;GACZ,YAAY;EACb,EACD,CACA,IACA,EAAqB,GACvB,IACA,kBAAC,GAAD,EAAA,UACE,EAAM,aACN,EAAqB,GAIrB;GACC,OAAO;IACN,YAAY;IACZ,SAAS;IACT,MAAM;IACN,YAAY;IACZ,OAAO;GACR;GACA,UAAU,IAAW,IAAI,KAAA;EAC1B,CACD,EACU,CAAA,IACR,IACD;;AAEN;AAEA,EAAoB,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.js","names":[],"sources":["../../../../../components/data-table/private/link.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { ReactNode, AnchorHTMLAttributes } from 'react';\nimport KEYS from '../../../utilities/key-code';\n\ninterface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n\tchildren?: ReactNode;\n\tonRequestFocus?: (node: HTMLAnchorElement) => void;\n\tonOpen?: () => void;\n\tonClose?: () => void;\n\trequestFocus?: boolean;\n}\n\nconst Link: React.FC<LinkProps> = (props) => {\n\t// Avoid passing props to <a> that it doesn't understand\n\tconst {\n\t\tonRequestFocus,\n\t\tonOpen,\n\t\tonClose,\n\t\trequestFocus,\n\t\tchildren,\n\t\tonClick,\n\t\t...passThroughProps\n\t} = props;\n\n\treturn (\n\t\t<a\n\t\t\tref={(node) => {\n\t\t\t\tif (node && requestFocus && onRequestFocus) {\n\t\t\t\t\tonRequestFocus(node);\n\t\t\t\t}\n\t\t\t}}\n\t\t\tonKeyDown={(event) => {\n\t\t\t\tif (event.keyCode === KEYS.ENTER && onClick) {\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t\t\tonClick(event as any);\n\t\t\t\t}\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t\t{...passThroughProps}\n\t\t>\n\t\t\t{children}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n"],"mappings":";;;;AAcA,IAAM,KAA6B,MAAU;CAE5C,IAAM,EACL,mBACA,WACA,YACA,iBACA,aACA,YACA,GAAG,MACA;CAEJ,OACC,kBAAC,KAAD;EACC,MAAM,MAAS;GACd,AAAI,KAAQ,KAAgB,KAC3B,EAAe,CAAI;EAErB;EACA,YAAY,MAAU;GACrB,AAAI,EAAM,YAAY,EAAK,SAAS,KAEnC,EAAQ,CAAY;EAEtB;EACS;EACT,GAAI;EAEH;CACC,CAAA;AAEL"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode.js","names":[],"sources":["../../../../../components/data-table/private/mode.ts"],"sourcesContent":["const Mode = Object.freeze({\n\tNAVIGATION: 'navigation' as const,\n\tACTIONABLE: 'actionable' as const,\n});\n\nexport type ModeType = (typeof Mode)[keyof typeof Mode];\n\nexport default Mode;\n"],"mappings":";AAAA,IAAM,IAAO,OAAO,OAAO;CAC1B,YAAY;CACZ,YAAY;AACb,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"row.js","names":[],"sources":["../../../../../components/data-table/private/row.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useCallback, useContext, useMemo, SyntheticEvent, ReactNode } from 'react';\nimport classNames from 'classnames';\nimport find from 'lodash.find';\n\nimport Checkbox from '../../checkbox';\nimport Radio from '../../radio';\n\nimport {\n\tDATA_TABLE_ROW,\n\tDATA_TABLE_ROW_ACTIONS,\n\tDATA_TABLE_CELL,\n} from '../../../utilities/constants';\n\nimport InteractiveElement from '../interactive-element';\nimport CellContext from './cell-context';\nimport TableContext from './table-context';\nimport useContextHelper from './context-helper';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst InteractiveCheckbox = InteractiveElement(Checkbox as any) as React.ComponentType<any>;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst InteractiveRadio = InteractiveElement(Radio as any) as React.ComponentType<any>;\n\ninterface DataTableItem {\n\tid: string;\n\t[key: string]: unknown;\n}\n\ninterface DataTableColumnConfig {\n\tCell: React.ComponentType<Record<string, unknown>>;\n\tprops: {\n\t\tproperty?: string;\n\t\ttruncate?: boolean;\n\t\tprimaryColumn?: boolean;\n\t\twidth?: string;\n\t\t[key: string]: unknown;\n\t};\n}\n\ninterface AssistiveText {\n\tselectRow?: string;\n\t[key: string]: unknown;\n}\n\nexport interface DataTableRowProps {\n\tassistiveText?: AssistiveText;\n\tcanSelectRows?: boolean | 'checkbox' | 'radio';\n\tclassName?: string;\n\tcolumns?: DataTableColumnConfig[];\n\tfixedLayout?: boolean;\n\tid: string;\n\tindex?: number;\n\titem: DataTableItem;\n\tonToggle?: (item: DataTableItem, selected: boolean, event: SyntheticEvent) => void;\n\trowActions?: ReactNode;\n\tselection?: DataTableItem[];\n\tdisabledSelection?: DataTableItem[];\n\ttableId?: string;\n\trowIndex?: number;\n\tstacked?: boolean;\n}\n\n/**\n * Used internally, provides row rendering to the DataTable.\n */\nconst DataTableRow: React.FC<DataTableRowProps> = (props) => {\n\tconst tableContext = useContext(TableContext);\n\tconst selectRowCellContext = useMemo(\n\t\t() => ({\n\t\t\trowIndex: props.rowIndex ?? 0,\n\t\t\tcolumnIndex: 0,\n\t\t}),\n\t\t[props.rowIndex]\n\t);\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tselectRowCellContext,\n\t\tprops.fixedLayout\n\t);\n\n\tconst { item, onToggle } = props;\n\tconst handleToggle = useCallback(\n\t\t(_e: SyntheticEvent, { checked }: { checked: boolean }) => {\n\t\t\tif (onToggle) {\n\t\t\t\tonToggle(item, checked, _e);\n\t\t\t}\n\t\t},\n\t\t[item, onToggle]\n\t);\n\n\tconst isSelected = !!find(props.selection, item);\n\tconst isDisabled =\n\t\tprops.disabledSelection && !!find(props.disabledSelection, item);\n\n\tconst ariaProps = useMemo(() => {\n\t\tconst result: { 'aria-selected'?: 'true' | 'false' } = {};\n\n\t\tif (props.canSelectRows) {\n\t\t\tresult['aria-selected'] = isSelected ? 'true' : 'false';\n\t\t}\n\t\treturn result;\n\t}, [isSelected, props.canSelectRows]);\n\n\tconst radioSelection = useMemo(\n\t\t() =>\n\t\t\tisDisabled ? (\n\t\t\t\t<Radio\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tclassName=\"slds-m-right_x-small\"\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`${props.tableId}-SelectRow`}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<InteractiveRadio\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tclassName=\"slds-m-right_x-small\"\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`${props.tableId}-SelectRow`}\n\t\t\t\t\tonChange={handleToggle}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t),\n\t\t[\n\t\t\thandleToggle,\n\t\t\tisSelected,\n\t\t\tisDisabled,\n\t\t\tprops.assistiveText?.selectRow,\n\t\t\tprops.id,\n\t\t\tprops.index,\n\t\t\tprops.tableId,\n\t\t]\n\t);\n\n\tconst checkboxSelection = useMemo(\n\t\t() =>\n\t\t\tisDisabled ? (\n\t\t\t\t<Checkbox\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`SelectRow${(props.index ?? 0) + 1}`}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<InteractiveCheckbox\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`SelectRow${(props.index ?? 0) + 1}`}\n\t\t\t\t\tonChange={handleToggle}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t),\n\t\t[\n\t\t\thandleToggle,\n\t\t\tisSelected,\n\t\t\tisDisabled,\n\t\t\tprops.assistiveText?.selectRow,\n\t\t\tprops.id,\n\t\t\tprops.index,\n\t\t\tprops.tableId,\n\t\t]\n\t);\n\n\treturn (\n\t\t<tr\n\t\t\t{...ariaProps}\n\t\t\tclassName={classNames(props.className, {\n\t\t\t\t'slds-hint-parent': props.rowActions,\n\t\t\t\t'slds-is-selected': props.canSelectRows && isSelected,\n\t\t\t\t'slds-has-focus': hasFocus,\n\t\t\t})}\n\t\t>\n\t\t\t{useMemo(\n\t\t\t\t() => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{props.canSelectRows ? (\n\t\t\t\t\t\t\t<td\n\t\t\t\t\t\t\t\trole={props.fixedLayout ? 'gridcell' : undefined}\n\t\t\t\t\t\t\t\tclassName=\"slds-text-align_right\"\n\t\t\t\t\t\t\t\tdata-label={props.stacked ? 'Select Row' : undefined}\n\t\t\t\t\t\t\t\tstyle={{ width: '3.25rem' }}\n\t\t\t\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\t\t\t\tonKeyDown={handleKeyDown}\n\t\t\t\t\t\t\t\tref={(ref) => {\n\t\t\t\t\t\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\t\t\t\t\t\tref.focus();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\ttabIndex={tabIndex}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<CellContext.Provider value={selectRowCellContext}>\n\t\t\t\t\t\t\t\t\t{props.canSelectRows === 'radio'\n\t\t\t\t\t\t\t\t\t\t? radioSelection\n\t\t\t\t\t\t\t\t\t\t: checkboxSelection}\n\t\t\t\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t{props.columns?.map((column, index) => {\n\t\t\t\t\t\t\tconst { Cell } = column;\n\t\t\t\t\t\t\tconst cellId = `${props.id}-${DATA_TABLE_CELL}-${column.props.property}`;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<CellContext.Provider\n\t\t\t\t\t\t\t\t\tkey={cellId}\n\t\t\t\t\t\t\t\t\tvalue={{\n\t\t\t\t\t\t\t\t\t\tcolumnIndex: props.canSelectRows ? index + 1 : index,\n\t\t\t\t\t\t\t\t\t\trowIndex: props.rowIndex ?? 0,\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Cell\n\t\t\t\t\t\t\t\t\t\t{...column.props}\n\t\t\t\t\t\t\t\t\t\tclassName={column.props.truncate ? 'slds-truncate' : undefined}\n\t\t\t\t\t\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\t\t\t\t\t\trowHeader={column.props.primaryColumn}\n\t\t\t\t\t\t\t\t\t\tid={cellId}\n\t\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\t\twidth={column.props.width}\n\t\t\t\t\t\t\t\t\t\theaderId={item.headerId}\n\t\t\t\t\t\t\t\t\t\tcolumns={props.columns}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{item[column.props.property || '']}\n\t\t\t\t\t\t\t\t\t</Cell>\n\t\t\t\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t\t<CellContext.Provider\n\t\t\t\t\t\t\tvalue={{\n\t\t\t\t\t\t\t\tcolumnIndex: props.canSelectRows\n\t\t\t\t\t\t\t\t\t? (props.columns?.length ?? 0) + 1\n\t\t\t\t\t\t\t\t\t: props.columns?.length ?? 0,\n\t\t\t\t\t\t\t\trowIndex: props.rowIndex ?? 0,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{props.rowActions\n\t\t\t\t\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\t\t\t\t\tprops.rowActions as React.ReactElement<{\n\t\t\t\t\t\t\t\t\t\t\tid?: string;\n\t\t\t\t\t\t\t\t\t\t\titem?: DataTableItem;\n\t\t\t\t\t\t\t\t\t\t\tfixedLayout?: boolean;\n\t\t\t\t\t\t\t\t\t\t}>,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tid: `${props.id}-${DATA_TABLE_ROW_ACTIONS}`,\n\t\t\t\t\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\t\t\t\t\tfixedLayout: props.fixedLayout,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t: null}\n\t\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t\t</>\n\t\t\t\t),\n\t\t\t\t[\n\t\t\t\t\thandleFocus,\n\t\t\t\t\thandleKeyDown,\n\t\t\t\t\thasFocus,\n\t\t\t\t\titem,\n\t\t\t\t\ttabIndex,\n\t\t\t\t\tprops.canSelectRows,\n\t\t\t\t\tprops.columns,\n\t\t\t\t\tprops.fixedLayout,\n\t\t\t\t\tprops.id,\n\t\t\t\t\tprops.rowActions,\n\t\t\t\t\tprops.rowIndex,\n\t\t\t\t\tprops.stacked,\n\t\t\t\t\tselectRowCellContext,\n\t\t\t\t\tcheckboxSelection,\n\t\t\t\t\tradioSelection,\n\t\t\t\t]\n\t\t\t)}\n\t\t</tr>\n\t);\n};\n\nDataTableRow.displayName = DATA_TABLE_ROW;\n\nexport default DataTableRow;\n"],"mappings":";;;;;;;;;;;;AAsBA,IAAM,IAAsB,EAAmB,CAAe,GAExD,IAAmB,EAAmB,CAAY,GA4ClD,KAA6C,MAAU;CAC5D,IAAM,IAAe,EAAW,CAAY,GACtC,IAAuB,SACrB;EACN,UAAU,EAAM,YAAY;EAC5B,aAAa;CACd,IACA,CAAC,EAAM,QAAQ,CAChB,GACM,EAAE,aAAU,aAAU,gBAAa,qBAAkB,EAC1D,GACA,GACA,EAAM,WACP,GAEM,EAAE,SAAM,gBAAa,GACrB,IAAe,GACnB,GAAoB,EAAE,iBAAoC;EAC1D,AAAI,KACH,EAAS,GAAM,GAAS,CAAE;CAE5B,GACA,CAAC,GAAM,CAAQ,CAChB,GAEM,IAAa,CAAC,CAAC,EAAK,EAAM,WAAW,CAAI,GACzC,IACL,EAAM,qBAAqB,CAAC,CAAC,EAAK,EAAM,mBAAmB,CAAI,GAE1D,IAAY,QAAc;EAC/B,IAAM,IAAiD,CAAC;EAKxD,OAHI,EAAM,kBACT,EAAO,mBAAmB,IAAa,SAAS,UAE1C;CACR,GAAG,CAAC,GAAY,EAAM,aAAa,CAAC,GAE9B,IAAiB,QAErB,IACC,kBAAC,GAAD;EACC,eAAe,EACd,OAAO,GAAG,EAAM,eAAe,UAAU,GACxC,OAAO,EAAM,KAAK,IAAI,IAExB;EACA,mBAAiB,GAAG,EAAM,GAAG,mBAAmB,EAAM,QAAQ;EAC9D,SAAS;EACT,WAAU;EACV,IAAI,GAAG,EAAM,GAAG;EAChB,SAAS,GAAG,EAAM,GAAG;EACrB,MAAM,GAAG,EAAM,QAAQ;EACvB,UAAU;CACV,CAAA,I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,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN;GACA;GACA;EACD,CACD;CACG,CAAA;AAEN;AAEA,EAAa,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"table-context.js","names":[],"sources":["../../../../../components/data-table/private/table-context.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface ActiveCell {\n\trowIndex: number;\n\tcolumnIndex: number;\n}\n\nexport interface TableContextValue {\n\tactiveCell: ActiveCell;\n\tactiveElement: string | null;\n\tmode: 'navigation' | 'actionable' | null;\n\ttableHasFocus: boolean;\n\tchangeActiveCell: (rowIndex: number, columnIndex: number) => void;\n\tchangeActiveElement: (elementId: string | null) => void;\n\thandleKeyDown: (event: React.KeyboardEvent) => void;\n\tregisterInteractiveElement: (\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\telementId: string\n\t) => void;\n\tallowKeyboardNavigation: boolean;\n\tsetAllowKeyboardNavigation: (allow: boolean) => void;\n}\n\nconst defaultValue: TableContextValue = {\n\tactiveCell: { rowIndex: 0, columnIndex: 0 },\n\tactiveElement: null,\n\tmode: null,\n\ttableHasFocus: false,\n\tchangeActiveCell: () => {},\n\tchangeActiveElement: () => {},\n\thandleKeyDown: () => {},\n\tregisterInteractiveElement: () => {},\n\tallowKeyboardNavigation: true,\n\tsetAllowKeyboardNavigation: () => {},\n};\n\nconst TableContext = React.createContext<TableContextValue>(defaultValue);\n\nexport default TableContext;\n"],"mappings":";;AAqCA,IAAM,IAAe,EAAM,cAAiC;CAZ3D,YAAY;EAAE,UAAU;EAAG,aAAa;CAAE;CAC1C,eAAe;CACf,MAAM;CACN,eAAe;CACf,wBAAwB,CAAC;CACzB,2BAA2B,CAAC;CAC5B,qBAAqB,CAAC;CACtB,kCAAkC,CAAC;CACnC,yBAAyB;CACzB,kCAAkC,CAAC;AAGwB,CAAY"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"row-actions.js","names":[],"sources":["../../../../components/data-table/row-actions.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useContext, ReactNode } from 'react';\nimport classNames from 'classnames';\nimport isFunction from 'lodash.isfunction';\n\nimport Dropdown from '../menu-dropdown';\n\nimport EventUtil from '../../utilities/event';\n\nimport InteractiveElement from './interactive-element';\nimport CellContext from './private/cell-context';\nimport TableContext from './private/table-context';\nimport useContextHelper from './private/context-helper';\n\nimport { DATA_TABLE_ROW_ACTIONS } from '../../utilities/constants';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst InteractiveDropdown = InteractiveElement(Dropdown as any) as React.ComponentType<any>;\n\nexport interface DataTableRowActionsProps {\n\t/** Description of the menu for screenreaders */\n\tassistiveText?: { icon?: string };\n\t/** Class names to be added to the actions menu */\n\tclassName?: string;\n\t/** HTML ID to be added to the actions menu */\n\tid?: string;\n\t/** DataTable row item */\n\titem?: Record<string, unknown>;\n\t/** Disable hint styling which changes the color of the dropdown svg on hover */\n\tnoHint?: boolean;\n\t/** Triggered when an item is selected */\n\tonAction?: (item: Record<string, unknown>, selection: unknown) => void;\n\t/** Dropdown options. See Dropdown. */\n\toptions?: unknown[];\n\t/** A Dropdown component. Props from this will be merged and override defaults. */\n\tdropdown?: ReactNode;\n\t/** Fixed layout mode */\n\tfixedLayout?: boolean;\n}\n\n/**\n * RowActions provide a mechanism for defining a menu to display alongside\n * each row in the DataTable.\n */\nconst DataTableRowActions: React.FC<DataTableRowActionsProps> = ({\n\tassistiveText = { icon: 'Actions' },\n\tnoHint = false,\n\toptions = [],\n\tclassName,\n\tid,\n\titem,\n\tonAction,\n\tdropdown,\n\tfixedLayout,\n}) => {\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = useContext(CellContext);\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tfixedLayout\n\t);\n\n\tconst handleClick = (e: React.MouseEvent) => {\n\t\tEventUtil.trap(e);\n\t};\n\n\tconst handleSelect = (selection: unknown) => {\n\t\tif (isFunction(onAction) && item) {\n\t\t\tonAction(item, selection);\n\t\t}\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\tif (dropdown && isFunction((dropdown as any).props?.onSelect)) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t(dropdown as any).props.onSelect(selection);\n\t\t}\n\t};\n\n\tconst defaultDropdownProps = {\n\t\talign: 'right',\n\t\tbuttonClassName: 'slds-button_icon-x-small',\n\t\tbuttonVariant: 'icon',\n\t\ticonCategory: 'utility',\n\t\ticonName: 'down',\n\t\ticonSize: 'small',\n\t\ticonVariant: 'border-filled',\n\t\tassistiveText,\n\t\tclassName,\n\t\toptions,\n\t\thint: !noHint,\n\t\tid,\n\t};\n\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tlet dropdownProps: Record<string, any> = dropdown\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t? (dropdown as any).props\n\t\t: {};\n\tdropdownProps = {\n\t\t...defaultDropdownProps,\n\t\t...dropdownProps,\n\t\tonSelect: handleSelect,\n\t};\n\n\treturn (\n\t\t<td\n\t\t\tclassName={classNames({ 'slds-has-focus': hasFocus })}\n\t\t\tdata-label=\"Actions\"\n\t\t\tonClick={handleClick}\n\t\t\tstyle={{ width: '3.25rem' }}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\tref={(ref) => {\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\trole={fixedLayout ? 'gridcell' : undefined}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t<InteractiveDropdown {...dropdownProps} />\n\t\t</td>\n\t);\n};\n\nDataTableRowActions.displayName = DATA_TABLE_ROW_ACTIONS;\n\nexport default DataTableRowActions;\n"],"mappings":";;;;;;;;;;;;AAmBA,IAAM,IAAsB,EAAmB,CAAe,GA2BxD,KAA2D,EAChE,mBAAgB,EAAE,MAAM,UAAU,GAClC,YAAS,IACT,aAAU,CAAC,GACX,cACA,OACA,SACA,aACA,aACA,qBACK;CACL,IAAM,IAAe,EAAW,CAAY,GACtC,IAAc,EAAW,CAAW,GACpC,EAAE,aAAU,aAAU,gBAAa,qBAAkB,EAC1D,GACA,GACA,CACD,GAEM,KAAe,MAAwB;EAC5C,EAAU,KAAK,CAAC;CACjB,GAEM,KAAgB,MAAuB;EAK5C,AAJI,EAAW,CAAQ,KAAK,KAC3B,EAAS,GAAM,CAAS,GAGrB,KAAY,EAAY,EAAiB,OAAO,QAAQ,KAE3D,EAAkB,MAAM,SAAS,CAAS;CAE5C,GAEM,IAAuB;EAC5B,OAAO;EACP,iBAAiB;EACjB,eAAe;EACf,cAAc;EACd,UAAU;EACV,UAAU;EACV,aAAa;EACb;EACA;EACA;EACA,MAAM,CAAC;EACP;CACD,GAGI,IAAqC,IAErC,EAAiB,QAClB,CAAC;CAOJ,OANA,IAAgB;EACf,GAAG;EACH,GAAG;EACH,UAAU;CACX,GAGC,kBAAC,MAAD;EACC,WAAW,EAAW,EAAE,kBAAkB,EAAS,CAAC;EACpD,cAAW;EACX,SAAS;EACT,OAAO,EAAE,OAAO,UAAU;EAC1B,SAAS;EACT,WAAW;EACX,MAAM,MAAQ;GACb,AAAI,KAAO,KACV,EAAI,MAAM;EAEZ;EACA,MAAM,IAAc,aAAa,KAAA;EACvB;EAEV,UAAA,kBAAC,GAAD,EAAqB,GAAI,EAAgB,CAAA;CACtC,CAAA;AAEN;AAEA,EAAoB,cAAc"}
@@ -1,2 +0,0 @@
1
- export * from './data-table/index.js';
2
- export { default } from './data-table/index.js';
@@ -1,6 +0,0 @@
1
- //#region utilities/design-tokens/dist/palette-colors.common.js
2
- var e = "rgb(221, 219, 218)";
3
- //#endregion
4
- export { e as colorGray5 };
5
-
6
- //# sourceMappingURL=palette-colors.common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"palette-colors.common.js","names":[],"sources":["../../../../../utilities/design-tokens/dist/palette-colors.common.js"],"sourcesContent":["// Disabled state of BRAND_HEADER_CONTRAST_WEAK\nexport const brandHeaderContrastWeakDisabled = 'rgba(166, 166, 166, 0.25)';\n// Gray Color 11\nexport const colorGray11 = 'rgb(62, 62, 60)';\n// Transparent value of BRAND_PRIMARY at 10%\nexport const brandPrimaryTransparent10 = 'rgba(21, 137, 238, 0.1)';\n// Gray Color 12\nexport const colorGray12 = 'rgb(43, 40, 38)';\n// These RGBA values need to be updated if BRAND_BACKGROUND_DARK changes, solves webkit bug\nexport const brandBackgroundDarkTransparent = 'rgba(221, 219, 218, 0)';\n// Background color a branded app header\nexport const brandHeader = 'rgb(255, 255, 255)';\n// Active / Hover state of BRAND_LIGHT\nexport const brandLightActive = 'rgb(227, 229, 237)';\n// Variant of BRAND_HEADER_CONTRAST that provides a warm color\nexport const brandHeaderContrastWarm = 'rgb(191, 2, 1)';\n// Disabled state of BRAND_HEADER_ICON\nexport const brandHeaderIconDisabled = 'rgba(145, 145, 145, 0.25)';\n// Active / Hover state of BRAND_HEADER_CONTRAST\nexport const brandHeaderContrastActive = 'rgb(80, 80, 80)';\n// Primary page background color\nexport const brandBackgroundPrimary = 'rgb(250, 250, 249)';\n// Primary brand color\nexport const brandPrimary = 'rgb(21, 137, 238)';\n// Active / Hover state of BRAND_HEADER_CONTRAST_WEAK\nexport const brandHeaderContrastWeakActive = 'rgb(129, 129, 129)';\n// Active / Hover state of BRAND_CONTRAST\nexport const brandContrastActive = 'rgb(13, 14, 18)';\n// Variant of BRAND_HEADER_CONTRAST that provides a cool color\nexport const brandHeaderContrastCool = 'rgb(0, 85, 131)';\n// Variant of BRAND_HEADER that is accessible with BRAND_HEADER\nexport const brandHeaderContrastInverse = 'rgb(255, 255, 255)';\n// Dark variant of BRAND that is accessible with light colors\nexport const brandDark = 'rgb(24, 35, 55)';\n// Dark variant of BRAND that is accessible with white\nexport const brandAccessible = 'rgb(0, 112, 210)';\n// Dark variant of BRAND_BACKGROUND_PRIMARY, used within gradient of background color\nexport const brandBackgroundDark = 'rgb(232, 232, 232)';\n// Active / Hover state of BRAND_TEXT_LINK\nexport const brandTextLinkActive = 'rgb(0, 95, 178)';\n// Gray Color 1\nexport const colorGray1 = 'rgb(255, 255, 255)';\n// Gray Color 2\nexport const colorGray2 = 'rgb(250, 250, 249)';\n// Active / Hover state of BRAND_HEADER_ICON\nexport const brandHeaderIconActive = 'rgb(129, 129, 129)';\n// Gray Color 3\nexport const colorGray3 = 'rgb(243, 242, 242)';\n// Icons of BRAND_HEADER that is accessible with BRAND_HEADER\nexport const brandHeaderIcon = 'rgb(145, 145, 145)';\n// Disabled state of BRAND_A11Y\nexport const brandDisabled = 'rgb(201, 199, 197)';\n// Primary text link brand color\nexport const brandTextLink = 'rgb(0, 109, 204)';\n// Gray Color 4\nexport const colorGray4 = 'rgb(236, 235, 234)';\n// Gray Color 5\nexport const colorGray5 = 'rgb(221, 219, 218)';\n// Gray Color 6\nexport const colorGray6 = 'rgb(201, 199, 197)';\n// Active / Hover state of BRAND_A11Y\nexport const brandAccessibleActive = 'rgb(0, 95, 178)';\n// Gray Color 7\nexport const colorGray7 = 'rgb(176, 173, 171)';\n// Active / Hover state of BRAND_DARK\nexport const brandDarkActive = 'rgb(37, 48, 69)';\n// Gray Color 8\nexport const colorGray8 = 'rgb(150, 148, 146)';\n// Active / Hover state of BRAND_HEADER_CONTRAST\nexport const brandHeaderContrastInverseActive = 'rgb(238, 238, 238)';\n// Active / Hover state of BRAND_HEADER_CONTRAST_COOL\nexport const brandHeaderContrastCoolActive = 'rgb(0, 85, 131)';\n// Gray Color 9\nexport const colorGray9 = 'rgb(112, 110, 107)';\n// Variant of BRAND that is accessible with BRAND\nexport const brandContrast = 'rgb(26, 27, 30)';\n// Weak contrast ratio, useful for iconography\nexport const brandHeaderContrastWeak = 'rgb(145, 145, 145)';\n// Active / Hover state of BRAND_PRIMARY\nexport const brandPrimaryActive = 'rgb(0, 122, 221)';\n// These RGBA values need to be updated if BRAND_BACKGROUND_PRIMARY changes, solves webkit bug\nexport const brandBackgroundPrimaryTransparent = 'rgba(250, 250, 249, 0)';\n// Variant of BRAND_HEADER that is accessible with BRAND_HEADER\nexport const brandHeaderContrast = 'rgb(94, 94, 94)';\n// Transparent value of BRAND_PRIMARY\nexport const brandPrimaryTransparent = 'rgba(21, 137, 238, 0.1)';\n// Active / Hover state of BRAND_HEADER_CONTRAST_WARM\nexport const brandHeaderContrastWarmActive = 'rgb(172, 0, 0)';\n// Transparent value of BRAND_PRIMARY at 40%\nexport const brandPrimaryTransparent40 = 'rgba(21, 137, 238, 0.4)';\n// Light variant of BRAND that is accessible with dark colors\nexport const brandLight = 'rgb(244, 246, 254)';\n// Gray Color 10\nexport const colorGray10 = 'rgb(81, 79, 77)';\n\n// Default export for backwards compatibility\nexport default {\n\tbrandHeaderContrastWeakDisabled,\n\tcolorGray11,\n\tbrandPrimaryTransparent10,\n\tcolorGray12,\n\tbrandBackgroundDarkTransparent,\n\tbrandHeader,\n\tbrandLightActive,\n\tbrandHeaderContrastWarm,\n\tbrandHeaderIconDisabled,\n\tbrandHeaderContrastActive,\n\tbrandBackgroundPrimary,\n\tbrandPrimary,\n\tbrandHeaderContrastWeakActive,\n\tbrandContrastActive,\n\tbrandHeaderContrastCool,\n\tbrandHeaderContrastInverse,\n\tbrandDark,\n\tbrandAccessible,\n\tbrandBackgroundDark,\n\tbrandTextLinkActive,\n\tcolorGray1,\n\tcolorGray2,\n\tbrandHeaderIconActive,\n\tcolorGray3,\n\tbrandHeaderIcon,\n\tbrandDisabled,\n\tbrandTextLink,\n\tcolorGray4,\n\tcolorGray5,\n\tcolorGray6,\n\tbrandAccessibleActive,\n\tcolorGray7,\n\tbrandDarkActive,\n\tcolorGray8,\n\tbrandHeaderContrastInverseActive,\n\tbrandHeaderContrastCoolActive,\n\tcolorGray9,\n\tbrandContrast,\n\tbrandHeaderContrastWeak,\n\tbrandPrimaryActive,\n\tbrandBackgroundPrimaryTransparent,\n\tbrandHeaderContrast,\n\tbrandPrimaryTransparent,\n\tbrandHeaderContrastWarmActive,\n\tbrandPrimaryTransparent40,\n\tbrandLight,\n\tcolorGray10,\n};\n"],"mappings":";AAyDA,IAAa,IAAa"}