@elliemae/ds-data-table 3.50.1-next.8 → 3.51.0-beta.1

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 (233) hide show
  1. package/dist/cjs/DSDataTableDefinitions.js +1 -1
  2. package/dist/cjs/DSDataTableDefinitions.js.map +1 -1
  3. package/dist/cjs/addons/Columns/ColumnExpand/ColumnExpand.js +15 -15
  4. package/dist/cjs/addons/Columns/ColumnExpand/ColumnExpand.js.map +2 -2
  5. package/dist/cjs/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.js +21 -22
  6. package/dist/cjs/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.js.map +2 -2
  7. package/dist/cjs/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.js +5 -5
  8. package/dist/cjs/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.js.map +2 -2
  9. package/dist/cjs/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.js +3 -3
  10. package/dist/cjs/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.js.map +2 -2
  11. package/dist/cjs/addons/Editables/DateEditableCell/DateEditableCell.js +2 -2
  12. package/dist/cjs/addons/Editables/DateEditableCell/DateEditableCell.js.map +2 -2
  13. package/dist/cjs/addons/Editables/TextEditableCell/TextEditableCell.js +3 -3
  14. package/dist/cjs/addons/Editables/TextEditableCell/TextEditableCell.js.map +2 -2
  15. package/dist/cjs/addons/Filters/Components/SelectFilter/BaseSelectFilter.js +2 -2
  16. package/dist/cjs/addons/Filters/Components/SelectFilter/BaseSelectFilter.js.map +2 -2
  17. package/dist/cjs/addons/Pagination/Pagination.js +5 -5
  18. package/dist/cjs/addons/Pagination/Pagination.js.map +2 -2
  19. package/dist/cjs/configs/useStore/createInternalAndPropsContext.js +40 -0
  20. package/dist/cjs/configs/useStore/createInternalAndPropsContext.js.map +7 -0
  21. package/dist/cjs/configs/useStore/index.js +5 -4
  22. package/dist/cjs/configs/useStore/index.js.map +2 -2
  23. package/dist/cjs/configs/useStore/useStore.js +7 -12
  24. package/dist/cjs/configs/useStore/useStore.js.map +2 -2
  25. package/dist/cjs/exported-related/EditableCell.js +4 -4
  26. package/dist/cjs/exported-related/EditableCell.js.map +2 -2
  27. package/dist/cjs/exported-related/FilterBar/FilterBarDropdownMenu.js +2 -2
  28. package/dist/cjs/exported-related/FilterBar/FilterBarDropdownMenu.js.map +2 -2
  29. package/dist/cjs/exported-related/FilterPopover/index.js +7 -7
  30. package/dist/cjs/exported-related/FilterPopover/index.js.map +2 -2
  31. package/dist/cjs/exported-related/FilterPopover/useGetFilterHandlers.js +4 -4
  32. package/dist/cjs/exported-related/FilterPopover/useGetFilterHandlers.js.map +2 -2
  33. package/dist/cjs/exported-related/RowRenderer/DefaultRowContentRenderer.js +11 -10
  34. package/dist/cjs/exported-related/RowRenderer/DefaultRowContentRenderer.js.map +2 -2
  35. package/dist/cjs/exported-related/RowRenderer/index.js +6 -6
  36. package/dist/cjs/exported-related/RowRenderer/index.js.map +2 -2
  37. package/dist/cjs/exported-related/RowRenderer/useRowRendererHandlers.js +12 -12
  38. package/dist/cjs/exported-related/RowRenderer/useRowRendererHandlers.js.map +2 -2
  39. package/dist/cjs/exported-related/RowRenderer/useRowRendererProperties.js +2 -2
  40. package/dist/cjs/exported-related/RowRenderer/useRowRendererProperties.js.map +2 -2
  41. package/dist/cjs/exported-related/RowRenderer/useRowStyle.js +2 -2
  42. package/dist/cjs/exported-related/RowRenderer/useRowStyle.js.map +2 -2
  43. package/dist/cjs/exported-related/Toolbar/Toolbar.js +6 -6
  44. package/dist/cjs/exported-related/Toolbar/Toolbar.js.map +2 -2
  45. package/dist/cjs/parts/Cells/Cell.js +17 -11
  46. package/dist/cjs/parts/Cells/Cell.js.map +2 -2
  47. package/dist/cjs/parts/Cells/CellFactory.js +11 -11
  48. package/dist/cjs/parts/Cells/CellFactory.js.map +2 -2
  49. package/dist/cjs/parts/Cells/index.js +2 -2
  50. package/dist/cjs/parts/Cells/index.js.map +2 -2
  51. package/dist/cjs/parts/Cells/useCellStyle.js +3 -3
  52. package/dist/cjs/parts/Cells/useCellStyle.js.map +2 -2
  53. package/dist/cjs/parts/DnDHandle.js +5 -5
  54. package/dist/cjs/parts/DnDHandle.js.map +2 -2
  55. package/dist/cjs/parts/DropIndicator.js +4 -4
  56. package/dist/cjs/parts/DropIndicator.js.map +2 -2
  57. package/dist/cjs/parts/EmptyContent.js +10 -10
  58. package/dist/cjs/parts/EmptyContent.js.map +2 -2
  59. package/dist/cjs/parts/FilterBar/DeprecatedDropdown.js +6 -1
  60. package/dist/cjs/parts/FilterBar/DeprecatedDropdown.js.map +2 -2
  61. package/dist/cjs/parts/FilterBar/FiltersBar.js +7 -7
  62. package/dist/cjs/parts/FilterBar/FiltersBar.js.map +2 -2
  63. package/dist/cjs/parts/Filters/index.js +5 -5
  64. package/dist/cjs/parts/Filters/index.js.map +2 -2
  65. package/dist/cjs/parts/Headers/EmptyChildrenGroup.js +2 -2
  66. package/dist/cjs/parts/Headers/EmptyChildrenGroup.js.map +2 -2
  67. package/dist/cjs/parts/Headers/HeaderCell.js +13 -13
  68. package/dist/cjs/parts/Headers/HeaderCell.js.map +2 -2
  69. package/dist/cjs/parts/Headers/HeaderCellGroup.js +10 -10
  70. package/dist/cjs/parts/Headers/HeaderCellGroup.js.map +2 -2
  71. package/dist/cjs/parts/Headers/HeaderResizer.js +2 -2
  72. package/dist/cjs/parts/Headers/HeaderResizer.js.map +2 -2
  73. package/dist/cjs/parts/Headers/index.js +8 -8
  74. package/dist/cjs/parts/Headers/index.js.map +2 -2
  75. package/dist/cjs/parts/Headers/useHeaderCellConfig.js +4 -4
  76. package/dist/cjs/parts/Headers/useHeaderCellConfig.js.map +2 -2
  77. package/dist/cjs/parts/Headers/useHeaderCellHandlers.js +7 -7
  78. package/dist/cjs/parts/Headers/useHeaderCellHandlers.js.map +2 -2
  79. package/dist/cjs/parts/Headers/useHeaderResizer.js +8 -8
  80. package/dist/cjs/parts/Headers/useHeaderResizer.js.map +2 -2
  81. package/dist/cjs/parts/HoC/DnDGroupContext.js +39 -0
  82. package/dist/cjs/parts/HoC/DnDGroupContext.js.map +7 -0
  83. package/dist/cjs/parts/HoC/withConditionalDnDColumnContext.js +10 -12
  84. package/dist/cjs/parts/HoC/withConditionalDnDColumnContext.js.map +2 -2
  85. package/dist/cjs/parts/HoC/withConditionalDnDRowContext.js +10 -10
  86. package/dist/cjs/parts/HoC/withConditionalDnDRowContext.js.map +2 -2
  87. package/dist/cjs/parts/HoC/withConditionalDnDSortableContext.js +2 -2
  88. package/dist/cjs/parts/HoC/withConditionalDnDSortableContext.js.map +2 -2
  89. package/dist/cjs/parts/HoC/withDnDSortableColumnContext.js +6 -6
  90. package/dist/cjs/parts/HoC/withDnDSortableColumnContext.js.map +2 -2
  91. package/dist/cjs/parts/HoC/withDnDSortableRowContext.js +3 -3
  92. package/dist/cjs/parts/HoC/withDnDSortableRowContext.js.map +2 -2
  93. package/dist/cjs/parts/Loader.js +4 -4
  94. package/dist/cjs/parts/Loader.js.map +2 -2
  95. package/dist/cjs/parts/MainContent.js +5 -5
  96. package/dist/cjs/parts/MainContent.js.map +2 -2
  97. package/dist/cjs/parts/Row.js +7 -7
  98. package/dist/cjs/parts/Row.js.map +2 -2
  99. package/dist/cjs/parts/RowVariants/RowVariantHeader.js +8 -7
  100. package/dist/cjs/parts/RowVariants/RowVariantHeader.js.map +2 -2
  101. package/dist/cjs/parts/RowVariants/index.js +2 -2
  102. package/dist/cjs/parts/RowVariants/index.js.map +2 -2
  103. package/dist/cjs/parts/Rows.js +10 -10
  104. package/dist/cjs/parts/Rows.js.map +3 -3
  105. package/dist/cjs/parts/TableContent.js +13 -13
  106. package/dist/cjs/parts/TableContent.js.map +2 -2
  107. package/dist/cjs/parts/VirtualRowsList.js +12 -12
  108. package/dist/cjs/parts/VirtualRowsList.js.map +2 -2
  109. package/dist/cjs/types/FunctionalHoC.js.map +1 -1
  110. package/dist/esm/DSDataTableDefinitions.js +1 -1
  111. package/dist/esm/DSDataTableDefinitions.js.map +1 -1
  112. package/dist/esm/addons/Columns/ColumnExpand/ColumnExpand.js +1 -1
  113. package/dist/esm/addons/Columns/ColumnExpand/ColumnExpand.js.map +1 -1
  114. package/dist/esm/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.js +2 -3
  115. package/dist/esm/addons/Columns/ColumnSelectMultiple/ColumnSelectMultiple.js.map +2 -2
  116. package/dist/esm/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.js +1 -1
  117. package/dist/esm/addons/Columns/ColumnSelectSingle/ColumnSelectSingle.js.map +1 -1
  118. package/dist/esm/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.js +1 -1
  119. package/dist/esm/addons/Editables/ComboboxEditableCell/ComboboxEditableCell.js.map +1 -1
  120. package/dist/esm/addons/Editables/DateEditableCell/DateEditableCell.js +1 -1
  121. package/dist/esm/addons/Editables/DateEditableCell/DateEditableCell.js.map +1 -1
  122. package/dist/esm/addons/Editables/TextEditableCell/TextEditableCell.js +1 -1
  123. package/dist/esm/addons/Editables/TextEditableCell/TextEditableCell.js.map +1 -1
  124. package/dist/esm/addons/Filters/Components/SelectFilter/BaseSelectFilter.js +1 -1
  125. package/dist/esm/addons/Filters/Components/SelectFilter/BaseSelectFilter.js.map +1 -1
  126. package/dist/esm/addons/Pagination/Pagination.js +1 -1
  127. package/dist/esm/addons/Pagination/Pagination.js.map +1 -1
  128. package/dist/esm/configs/useStore/createInternalAndPropsContext.js +10 -0
  129. package/dist/esm/configs/useStore/createInternalAndPropsContext.js.map +7 -0
  130. package/dist/esm/configs/useStore/index.js +2 -1
  131. package/dist/esm/configs/useStore/index.js.map +2 -2
  132. package/dist/esm/configs/useStore/useStore.js +1 -6
  133. package/dist/esm/configs/useStore/useStore.js.map +2 -2
  134. package/dist/esm/exported-related/EditableCell.js +3 -3
  135. package/dist/esm/exported-related/EditableCell.js.map +2 -2
  136. package/dist/esm/exported-related/FilterBar/FilterBarDropdownMenu.js +1 -1
  137. package/dist/esm/exported-related/FilterBar/FilterBarDropdownMenu.js.map +1 -1
  138. package/dist/esm/exported-related/FilterPopover/index.js +5 -5
  139. package/dist/esm/exported-related/FilterPopover/index.js.map +2 -2
  140. package/dist/esm/exported-related/FilterPopover/useGetFilterHandlers.js +1 -1
  141. package/dist/esm/exported-related/FilterPopover/useGetFilterHandlers.js.map +2 -2
  142. package/dist/esm/exported-related/RowRenderer/DefaultRowContentRenderer.js +4 -3
  143. package/dist/esm/exported-related/RowRenderer/DefaultRowContentRenderer.js.map +2 -2
  144. package/dist/esm/exported-related/RowRenderer/index.js +4 -4
  145. package/dist/esm/exported-related/RowRenderer/index.js.map +2 -2
  146. package/dist/esm/exported-related/RowRenderer/useRowRendererHandlers.js +1 -1
  147. package/dist/esm/exported-related/RowRenderer/useRowRendererHandlers.js.map +2 -2
  148. package/dist/esm/exported-related/RowRenderer/useRowRendererProperties.js +1 -1
  149. package/dist/esm/exported-related/RowRenderer/useRowRendererProperties.js.map +2 -2
  150. package/dist/esm/exported-related/RowRenderer/useRowStyle.js +1 -1
  151. package/dist/esm/exported-related/RowRenderer/useRowStyle.js.map +2 -2
  152. package/dist/esm/exported-related/Toolbar/Toolbar.js +5 -5
  153. package/dist/esm/exported-related/Toolbar/Toolbar.js.map +2 -2
  154. package/dist/esm/parts/Cells/Cell.js +14 -8
  155. package/dist/esm/parts/Cells/Cell.js.map +2 -2
  156. package/dist/esm/parts/Cells/CellFactory.js +6 -6
  157. package/dist/esm/parts/Cells/CellFactory.js.map +2 -2
  158. package/dist/esm/parts/Cells/index.js +1 -1
  159. package/dist/esm/parts/Cells/index.js.map +2 -2
  160. package/dist/esm/parts/Cells/useCellStyle.js +2 -2
  161. package/dist/esm/parts/Cells/useCellStyle.js.map +2 -2
  162. package/dist/esm/parts/DnDHandle.js +5 -5
  163. package/dist/esm/parts/DnDHandle.js.map +2 -2
  164. package/dist/esm/parts/DropIndicator.js +3 -3
  165. package/dist/esm/parts/DropIndicator.js.map +2 -2
  166. package/dist/esm/parts/EmptyContent.js +4 -4
  167. package/dist/esm/parts/EmptyContent.js.map +2 -2
  168. package/dist/esm/parts/FilterBar/DeprecatedDropdown.js +6 -1
  169. package/dist/esm/parts/FilterBar/DeprecatedDropdown.js.map +2 -2
  170. package/dist/esm/parts/FilterBar/FiltersBar.js +1 -1
  171. package/dist/esm/parts/FilterBar/FiltersBar.js.map +1 -1
  172. package/dist/esm/parts/Filters/index.js +6 -6
  173. package/dist/esm/parts/Filters/index.js.map +2 -2
  174. package/dist/esm/parts/Headers/EmptyChildrenGroup.js +1 -1
  175. package/dist/esm/parts/Headers/EmptyChildrenGroup.js.map +2 -2
  176. package/dist/esm/parts/Headers/HeaderCell.js +1 -1
  177. package/dist/esm/parts/Headers/HeaderCell.js.map +1 -1
  178. package/dist/esm/parts/Headers/HeaderCellGroup.js +7 -7
  179. package/dist/esm/parts/Headers/HeaderCellGroup.js.map +2 -2
  180. package/dist/esm/parts/Headers/HeaderResizer.js +1 -1
  181. package/dist/esm/parts/Headers/HeaderResizer.js.map +1 -1
  182. package/dist/esm/parts/Headers/index.js +1 -1
  183. package/dist/esm/parts/Headers/index.js.map +1 -1
  184. package/dist/esm/parts/Headers/useHeaderCellConfig.js +1 -1
  185. package/dist/esm/parts/Headers/useHeaderCellConfig.js.map +1 -1
  186. package/dist/esm/parts/Headers/useHeaderCellHandlers.js +1 -1
  187. package/dist/esm/parts/Headers/useHeaderCellHandlers.js.map +1 -1
  188. package/dist/esm/parts/Headers/useHeaderResizer.js +5 -5
  189. package/dist/esm/parts/Headers/useHeaderResizer.js.map +2 -2
  190. package/dist/esm/parts/HoC/DnDGroupContext.js +9 -0
  191. package/dist/esm/parts/HoC/DnDGroupContext.js.map +7 -0
  192. package/dist/esm/parts/HoC/withConditionalDnDColumnContext.js +7 -9
  193. package/dist/esm/parts/HoC/withConditionalDnDColumnContext.js.map +2 -2
  194. package/dist/esm/parts/HoC/withConditionalDnDRowContext.js +4 -4
  195. package/dist/esm/parts/HoC/withConditionalDnDRowContext.js.map +2 -2
  196. package/dist/esm/parts/HoC/withConditionalDnDSortableContext.js +1 -1
  197. package/dist/esm/parts/HoC/withConditionalDnDSortableContext.js.map +2 -2
  198. package/dist/esm/parts/HoC/withDnDSortableColumnContext.js +4 -4
  199. package/dist/esm/parts/HoC/withDnDSortableColumnContext.js.map +2 -2
  200. package/dist/esm/parts/HoC/withDnDSortableRowContext.js +2 -2
  201. package/dist/esm/parts/HoC/withDnDSortableRowContext.js.map +2 -2
  202. package/dist/esm/parts/Loader.js +3 -3
  203. package/dist/esm/parts/Loader.js.map +2 -2
  204. package/dist/esm/parts/MainContent.js +1 -1
  205. package/dist/esm/parts/MainContent.js.map +1 -1
  206. package/dist/esm/parts/Row.js +3 -3
  207. package/dist/esm/parts/Row.js.map +2 -2
  208. package/dist/esm/parts/RowVariants/RowVariantHeader.js +5 -4
  209. package/dist/esm/parts/RowVariants/RowVariantHeader.js.map +2 -2
  210. package/dist/esm/parts/RowVariants/index.js +1 -1
  211. package/dist/esm/parts/RowVariants/index.js.map +2 -2
  212. package/dist/esm/parts/Rows.js +6 -6
  213. package/dist/esm/parts/Rows.js.map +2 -2
  214. package/dist/esm/parts/TableContent.js +3 -3
  215. package/dist/esm/parts/TableContent.js.map +2 -2
  216. package/dist/esm/parts/VirtualRowsList.js +5 -5
  217. package/dist/esm/parts/VirtualRowsList.js.map +2 -2
  218. package/dist/types/DSDataTableDefinitions.d.ts +1 -1
  219. package/dist/types/configs/useStore/createInternalAndPropsContext.d.ts +15 -0
  220. package/dist/types/configs/useStore/index.d.ts +2 -1
  221. package/dist/types/configs/useStore/useStore.d.ts +0 -13
  222. package/dist/types/exported-related/RowRenderer/index.d.ts +1 -1
  223. package/dist/types/parts/Cells/useCellStyle.d.ts +1 -1
  224. package/dist/types/parts/Headers/index.d.ts +1 -1
  225. package/dist/types/parts/HoC/DnDGroupContext.d.ts +3 -0
  226. package/dist/types/parts/HoC/withConditionalDnDColumnContext.d.ts +1 -4
  227. package/dist/types/parts/HoC/withConditionalDnDSortableContext.d.ts +1 -1
  228. package/dist/types/parts/Loader.d.ts +2 -2
  229. package/dist/types/parts/MainContent.d.ts +1 -0
  230. package/dist/types/parts/Rows.d.ts +1 -1
  231. package/dist/types/parts/SortableHeaderCell.d.ts +1 -0
  232. package/dist/types/types/FunctionalHoC.d.ts +1 -1
  233. package/package.json +33 -33
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/Row.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback, useContext } from 'react';\nimport { styled, mergeRefs } from '@elliemae/ds-system';\nimport { SortableItemContext } from './HoC/SortableItemContext.js';\nimport { withDnDSortableRowContext } from './HoC/withDnDSortableRowContext.js';\nimport { RowVariantMapItem } from './RowVariants/index.js';\nimport type { DSDataTableT } from '../react-desc-prop-types.js';\nimport { useInternalStore, usePropsStore } from '../configs/useStore/useStore.js';\nimport { DSDataTableName, DSDataTableSlots } from '../DSDataTableDefinitions.js';\n\nconst StyledRow = styled('div', { name: DSDataTableName, slot: DSDataTableSlots.ROW })<{ isDisabled: boolean }>`\n cursor: ${({ isDisabled }) => (isDisabled ? 'not-allowed' : 'normal')};\n`;\n\nexport const Row: React.ComponentType<{\n row: DSDataTableT.InternalRow;\n measureRef?: (el: HTMLElement | null) => void;\n itemWrapperStyle?: React.CSSProperties;\n isDragOverlay: boolean;\n}> = (props) => {\n const { row, measureRef, itemWrapperStyle, isDragOverlay } = props;\n const disabledRows = usePropsStore((state) => state.disabledRows);\n const getOwnerProps = usePropsStore((store) => store.get);\n const getOwnerPropsArguments = useCallback(() => row, [row]);\n const focusedRowId = useInternalStore((state) => state.focusedRowId);\n const drilldownRowId = useInternalStore((state) => state.drilldownRowId);\n\n const { draggableProps } = useContext(SortableItemContext);\n const draggableRef = draggableProps && draggableProps.setNodeRef;\n return (\n <StyledRow\n isDisabled={disabledRows[row.uid]}\n style={!isDragOverlay ? itemWrapperStyle : {}}\n innerRef={mergeRefs(measureRef, draggableRef)}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <RowVariantMapItem\n row={row}\n itemIndex={row.realIndex}\n isDragOverlay={isDragOverlay}\n focusedRowId={focusedRowId}\n drilldownRowId={drilldownRowId}\n />\n </StyledRow>\n );\n};\n\nconst RowWithContext = withDnDSortableRowContext(Row);\nexport { RowWithContext };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACoCjB;AApCN,SAAgB,aAAa,kBAAkB;AAC/C,SAAS,QAAQ,iBAAiB;AAClC,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,SAAS,yBAAyB;AAElC,SAAS,kBAAkB,qBAAqB;AAChD,SAAS,iBAAiB,wBAAwB;AAElD,MAAM,YAAY,OAAO,OAAO,EAAE,MAAM,iBAAiB,MAAM,iBAAiB,IAAI,CAAC;AAAA,YACzE,CAAC,EAAE,WAAW,MAAO,aAAa,gBAAgB,QAAS;AAAA;AAGhE,MAAM,MAKR,CAAC,UAAU;AACd,QAAM,EAAE,KAAK,YAAY,kBAAkB,cAAc,IAAI;AAC7D,QAAM,eAAe,cAAc,CAAC,UAAU,MAAM,YAAY;AAChE,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AACxD,QAAM,yBAAyB,YAAY,MAAM,KAAK,CAAC,GAAG,CAAC;AAC3D,QAAM,eAAe,iBAAiB,CAAC,UAAU,MAAM,YAAY;AACnE,QAAM,iBAAiB,iBAAiB,CAAC,UAAU,MAAM,cAAc;AAEvE,QAAM,EAAE,eAAe,IAAI,WAAW,mBAAmB;AACzD,QAAM,eAAe,kBAAkB,eAAe;AACtD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY,aAAa,IAAI,GAAG;AAAA,MAChC,OAAO,CAAC,gBAAgB,mBAAmB,CAAC;AAAA,MAC5C,UAAU,UAAU,YAAY,YAAY;AAAA,MAC5C;AAAA,MACA;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAW,IAAI;AAAA,UACf;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;AAEA,MAAM,iBAAiB,0BAA0B,GAAG;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { mergeRefs, styled } from '@elliemae/ds-system';\nimport React, { useCallback, useContext } from 'react';\nimport { useInternalStore, usePropsStore } from '../configs/useStore/createInternalAndPropsContext.js';\nimport { DSDataTableName, DSDataTableSlots } from '../DSDataTableDefinitions.js';\nimport type { DSDataTableT } from '../react-desc-prop-types.js';\nimport { SortableItemContext } from './HoC/SortableItemContext.js';\nimport { withDnDSortableRowContext } from './HoC/withDnDSortableRowContext.js';\nimport { RowVariantMapItem } from './RowVariants/index.js';\n\nconst StyledRow = styled('div', { name: DSDataTableName, slot: DSDataTableSlots.ROW })<{ isDisabled: boolean }>`\n cursor: ${({ isDisabled }) => (isDisabled ? 'not-allowed' : 'normal')};\n`;\n\nexport const Row: React.ComponentType<{\n row: DSDataTableT.InternalRow;\n measureRef?: (el: HTMLElement | null) => void;\n itemWrapperStyle?: React.CSSProperties;\n isDragOverlay: boolean;\n}> = (props) => {\n const { row, measureRef, itemWrapperStyle, isDragOverlay } = props;\n const disabledRows = usePropsStore((state) => state.disabledRows);\n const getOwnerProps = usePropsStore((store) => store.get);\n const getOwnerPropsArguments = useCallback(() => row, [row]);\n const focusedRowId = useInternalStore((state) => state.focusedRowId);\n const drilldownRowId = useInternalStore((state) => state.drilldownRowId);\n\n const { draggableProps } = useContext(SortableItemContext);\n const draggableRef = draggableProps && draggableProps.setNodeRef;\n return (\n <StyledRow\n isDisabled={disabledRows[row.uid]}\n style={!isDragOverlay ? itemWrapperStyle : {}}\n innerRef={mergeRefs(measureRef, draggableRef)}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <RowVariantMapItem\n row={row}\n itemIndex={row.realIndex}\n isDragOverlay={isDragOverlay}\n focusedRowId={focusedRowId}\n drilldownRowId={drilldownRowId}\n />\n </StyledRow>\n );\n};\n\nconst RowWithContext = withDnDSortableRowContext(Row);\nexport { RowWithContext };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACoCjB;AApCN,SAAS,WAAW,cAAc;AAClC,SAAgB,aAAa,kBAAkB;AAC/C,SAAS,kBAAkB,qBAAqB;AAChD,SAAS,iBAAiB,wBAAwB;AAElD,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,SAAS,yBAAyB;AAElC,MAAM,YAAY,OAAO,OAAO,EAAE,MAAM,iBAAiB,MAAM,iBAAiB,IAAI,CAAC;AAAA,YACzE,CAAC,EAAE,WAAW,MAAO,aAAa,gBAAgB,QAAS;AAAA;AAGhE,MAAM,MAKR,CAAC,UAAU;AACd,QAAM,EAAE,KAAK,YAAY,kBAAkB,cAAc,IAAI;AAC7D,QAAM,eAAe,cAAc,CAAC,UAAU,MAAM,YAAY;AAChE,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AACxD,QAAM,yBAAyB,YAAY,MAAM,KAAK,CAAC,GAAG,CAAC;AAC3D,QAAM,eAAe,iBAAiB,CAAC,UAAU,MAAM,YAAY;AACnE,QAAM,iBAAiB,iBAAiB,CAAC,UAAU,MAAM,cAAc;AAEvE,QAAM,EAAE,eAAe,IAAI,WAAW,mBAAmB;AACzD,QAAM,eAAe,kBAAkB,eAAe;AACtD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY,aAAa,IAAI,GAAG;AAAA,MAChC,OAAO,CAAC,gBAAgB,mBAAmB,CAAC;AAAA,MAC5C,UAAU,UAAU,YAAY,YAAY;AAAA,MAC5C;AAAA,MACA;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAW,IAAI;AAAA,UACf;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;AAEA,MAAM,iBAAiB,0BAA0B,GAAG;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,11 @@
1
1
  import * as React from "react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useLayoutEffect, useMemo, useRef } from "react";
4
- import { RowRenderer } from "../../exported-related/RowRenderer/index.js";
5
- import { GroupHeaderContainer, GroupHeaderTitle, StyledCellContainer } from "../../styled.js";
6
4
  import { expandRowColumn } from "../../addons/Columns/index.js";
7
5
  import { DATA_TESTID } from "../../configs/constants.js";
8
- import { usePropsStore } from "../../configs/useStore/useStore.js";
6
+ import { usePropsStore } from "../../configs/useStore/createInternalAndPropsContext.js";
7
+ import { RowRenderer } from "../../exported-related/RowRenderer/index.js";
8
+ import { GroupHeaderContainer, GroupHeaderTitle, StyledCellContainer } from "../../styled.js";
9
9
  const RowContent = (props) => {
10
10
  const { row, backgroundColor = "neutral-000", focusedRowId, drilldownRowId } = props;
11
11
  const groupedRowsRenderHeader = usePropsStore((state) => state.groupedRowsRenderHeader);
@@ -50,7 +50,8 @@ const RowContent = (props) => {
50
50
  role: "cell",
51
51
  getOwnerProps,
52
52
  children: [
53
- hasExpandCell && expandRowColumn.Cell && /* @__PURE__ */ jsx(
53
+ hasExpandCell && expandRowColumn.Cell && // @ts-expect-error - typescript for data-table is basically broken
54
+ /* @__PURE__ */ jsx(
54
55
  expandRowColumn.Cell,
55
56
  {
56
57
  row,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/RowVariants/RowVariantHeader.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useLayoutEffect, useMemo, useRef } from 'react';\nimport { RowRenderer } from '../../exported-related/RowRenderer/index.js';\nimport { GroupHeaderContainer, GroupHeaderTitle, StyledCellContainer } from '../../styled.js';\nimport type { RowVariantProps } from './types.js';\nimport { expandRowColumn } from '../../addons/Columns/index.js';\nimport { DATA_TESTID } from '../../configs/constants.js';\nimport type { DSDataTableT } from '../../react-desc-prop-types.js';\nimport { usePropsStore } from '../../configs/useStore/useStore.js';\n\nconst RowContent: React.ComponentType<RowVariantProps> = (props) => {\n const { row, backgroundColor = 'neutral-000', focusedRowId, drilldownRowId } = props;\n\n const groupedRowsRenderHeader = usePropsStore((state) => state.groupedRowsRenderHeader);\n const disabledRows = usePropsStore((state) => state.disabledRows);\n const getOwnerProps = usePropsStore((store) => store.get);\n\n const rowRef = useRef<HTMLDivElement>(null);\n\n const hasExpandCell = useMemo(\n () => row.original.subRows && row.cells.find((cell) => cell.column.accessor === 'expandRowColumn'),\n [row],\n );\n\n const titleContent = useMemo(() => {\n if (typeof groupedRowsRenderHeader === 'function') {\n return groupedRowsRenderHeader(row.original.dimsumHeaderValue, row.original.subRows);\n }\n return row.original.dimsumHeaderValue;\n }, [groupedRowsRenderHeader, row]);\n\n useLayoutEffect(() => {\n if (row.uid === focusedRowId) {\n rowRef.current?.focus();\n }\n }, [focusedRowId, row.uid]);\n\n const isDisabled = useMemo(() => disabledRows[row.uid] !== undefined, [disabledRows, row]);\n return (\n <StyledCellContainer\n innerRef={rowRef}\n minHeight=\"0px\"\n tabIndex={0}\n role=\"row\"\n backgroundColor={backgroundColor}\n aria-disabled={isDisabled ? 'true' : 'false'}\n isDisabled={isDisabled}\n data-testid={DATA_TESTID.DATA_TABLE_ROW_HEADER_CONTENT}\n gridTemplateColumns=\"auto\"\n getOwnerProps={getOwnerProps}\n >\n <GroupHeaderContainer\n data-testid={DATA_TESTID.DATA_TABLE_ROW_GROUP_HEADER}\n cols={hasExpandCell ? ['min-content', 'auto'] : ['auto']}\n paddingLeft={hasExpandCell ? '2px' : '8px'}\n role=\"cell\"\n getOwnerProps={getOwnerProps}\n >\n {hasExpandCell && expandRowColumn.Cell && (\n <expandRowColumn.Cell\n row={row}\n cell={row.cells[0]}\n column={row.cells[0].column}\n isRowSelected={drilldownRowId === row.uid}\n />\n )}\n <GroupHeaderTitle getOwnerProps={getOwnerProps}>{titleContent}</GroupHeaderTitle>\n </GroupHeaderContainer>\n </StyledCellContainer>\n );\n};\n\nexport const RowVariantHeader: React.ComponentType<DSDataTableT.RowVariantProps> = ({\n row,\n itemIndex,\n isDragOverlay,\n focusedRowId,\n drilldownRowId,\n}) => (\n <RowRenderer\n row={row}\n itemIndex={itemIndex}\n isDragOverlay={isDragOverlay}\n minHeight=\"0px\"\n height=\"24px\"\n CustomRowContentRenderer={RowContent}\n focusedRowId={focusedRowId}\n drilldownRowId={drilldownRowId}\n />\n);\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACkDjB,SAQI,KARJ;AAlDN,SAAgB,iBAAiB,SAAS,cAAc;AACxD,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB,kBAAkB,2BAA2B;AAE5E,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAE5B,SAAS,qBAAqB;AAE9B,MAAM,aAAmD,CAAC,UAAU;AAClE,QAAM,EAAE,KAAK,kBAAkB,eAAe,cAAc,eAAe,IAAI;AAE/E,QAAM,0BAA0B,cAAc,CAAC,UAAU,MAAM,uBAAuB;AACtF,QAAM,eAAe,cAAc,CAAC,UAAU,MAAM,YAAY;AAChE,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AAExD,QAAM,SAAS,OAAuB,IAAI;AAE1C,QAAM,gBAAgB;AAAA,IACpB,MAAM,IAAI,SAAS,WAAW,IAAI,MAAM,KAAK,CAAC,SAAS,KAAK,OAAO,aAAa,iBAAiB;AAAA,IACjG,CAAC,GAAG;AAAA,EACN;AAEA,QAAM,eAAe,QAAQ,MAAM;AACjC,QAAI,OAAO,4BAA4B,YAAY;AACjD,aAAO,wBAAwB,IAAI,SAAS,mBAAmB,IAAI,SAAS,OAAO;AAAA,IACrF;AACA,WAAO,IAAI,SAAS;AAAA,EACtB,GAAG,CAAC,yBAAyB,GAAG,CAAC;AAEjC,kBAAgB,MAAM;AACpB,QAAI,IAAI,QAAQ,cAAc;AAC5B,aAAO,SAAS,MAAM;AAAA,IACxB;AAAA,EACF,GAAG,CAAC,cAAc,IAAI,GAAG,CAAC;AAE1B,QAAM,aAAa,QAAQ,MAAM,aAAa,IAAI,GAAG,MAAM,QAAW,CAAC,cAAc,GAAG,CAAC;AACzF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,WAAU;AAAA,MACV,UAAU;AAAA,MACV,MAAK;AAAA,MACL;AAAA,MACA,iBAAe,aAAa,SAAS;AAAA,MACrC;AAAA,MACA,eAAa,YAAY;AAAA,MACzB,qBAAoB;AAAA,MACpB;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,eAAa,YAAY;AAAA,UACzB,MAAM,gBAAgB,CAAC,eAAe,MAAM,IAAI,CAAC,MAAM;AAAA,UACvD,aAAa,gBAAgB,QAAQ;AAAA,UACrC,MAAK;AAAA,UACL;AAAA,UAEC;AAAA,6BAAiB,gBAAgB,QAChC;AAAA,cAAC,gBAAgB;AAAA,cAAhB;AAAA,gBACC;AAAA,gBACA,MAAM,IAAI,MAAM,CAAC;AAAA,gBACjB,QAAQ,IAAI,MAAM,CAAC,EAAE;AAAA,gBACrB,eAAe,mBAAmB,IAAI;AAAA;AAAA,YACxC;AAAA,YAEF,oBAAC,oBAAiB,eAA+B,wBAAa;AAAA;AAAA;AAAA,MAChE;AAAA;AAAA,EACF;AAEJ;AAEO,MAAM,mBAAsE,CAAC;AAAA,EAClF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAU;AAAA,IACV,QAAO;AAAA,IACP,0BAA0B;AAAA,IAC1B;AAAA,IACA;AAAA;AACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useLayoutEffect, useMemo, useRef } from 'react';\nimport { expandRowColumn } from '../../addons/Columns/index.js';\nimport { DATA_TESTID } from '../../configs/constants.js';\nimport { usePropsStore } from '../../configs/useStore/createInternalAndPropsContext.js';\nimport { RowRenderer } from '../../exported-related/RowRenderer/index.js';\nimport type { DSDataTableT } from '../../react-desc-prop-types.js';\nimport { GroupHeaderContainer, GroupHeaderTitle, StyledCellContainer } from '../../styled.js';\nimport type { RowVariantProps } from './types.js';\n\nconst RowContent: React.ComponentType<RowVariantProps> = (props) => {\n const { row, backgroundColor = 'neutral-000', focusedRowId, drilldownRowId } = props;\n\n const groupedRowsRenderHeader = usePropsStore((state) => state.groupedRowsRenderHeader);\n const disabledRows = usePropsStore((state) => state.disabledRows);\n const getOwnerProps = usePropsStore((store) => store.get);\n\n const rowRef = useRef<HTMLDivElement>(null);\n\n const hasExpandCell = useMemo(\n () => row.original.subRows && row.cells.find((cell) => cell.column.accessor === 'expandRowColumn'),\n [row],\n );\n\n const titleContent = useMemo(() => {\n if (typeof groupedRowsRenderHeader === 'function') {\n return groupedRowsRenderHeader(row.original.dimsumHeaderValue, row.original.subRows);\n }\n return row.original.dimsumHeaderValue;\n }, [groupedRowsRenderHeader, row]);\n\n useLayoutEffect(() => {\n if (row.uid === focusedRowId) {\n rowRef.current?.focus();\n }\n }, [focusedRowId, row.uid]);\n\n const isDisabled = useMemo(() => disabledRows[row.uid] !== undefined, [disabledRows, row]);\n return (\n <StyledCellContainer\n innerRef={rowRef}\n minHeight=\"0px\"\n tabIndex={0}\n role=\"row\"\n backgroundColor={backgroundColor}\n aria-disabled={isDisabled ? 'true' : 'false'}\n isDisabled={isDisabled}\n data-testid={DATA_TESTID.DATA_TABLE_ROW_HEADER_CONTENT}\n gridTemplateColumns=\"auto\"\n getOwnerProps={getOwnerProps}\n >\n <GroupHeaderContainer\n data-testid={DATA_TESTID.DATA_TABLE_ROW_GROUP_HEADER}\n cols={hasExpandCell ? ['min-content', 'auto'] : ['auto']}\n paddingLeft={hasExpandCell ? '2px' : '8px'}\n role=\"cell\"\n getOwnerProps={getOwnerProps}\n >\n {hasExpandCell && expandRowColumn.Cell && (\n // @ts-expect-error - typescript for data-table is basically broken\n <expandRowColumn.Cell\n row={row}\n cell={row.cells[0]}\n column={row.cells[0].column}\n isRowSelected={drilldownRowId === row.uid}\n />\n )}\n <GroupHeaderTitle getOwnerProps={getOwnerProps}>{titleContent}</GroupHeaderTitle>\n </GroupHeaderContainer>\n </StyledCellContainer>\n );\n};\n\nexport const RowVariantHeader: React.ComponentType<DSDataTableT.RowVariantProps> = ({\n row,\n itemIndex,\n isDragOverlay,\n focusedRowId,\n drilldownRowId,\n}) => (\n <RowRenderer\n row={row}\n itemIndex={itemIndex}\n isDragOverlay={isDragOverlay}\n minHeight=\"0px\"\n height=\"24px\"\n CustomRowContentRenderer={RowContent}\n focusedRowId={focusedRowId}\n drilldownRowId={drilldownRowId}\n />\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACkDjB,SASI,KATJ;AAlDN,SAAgB,iBAAiB,SAAS,cAAc;AACxD,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;AAE5B,SAAS,sBAAsB,kBAAkB,2BAA2B;AAG5E,MAAM,aAAmD,CAAC,UAAU;AAClE,QAAM,EAAE,KAAK,kBAAkB,eAAe,cAAc,eAAe,IAAI;AAE/E,QAAM,0BAA0B,cAAc,CAAC,UAAU,MAAM,uBAAuB;AACtF,QAAM,eAAe,cAAc,CAAC,UAAU,MAAM,YAAY;AAChE,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AAExD,QAAM,SAAS,OAAuB,IAAI;AAE1C,QAAM,gBAAgB;AAAA,IACpB,MAAM,IAAI,SAAS,WAAW,IAAI,MAAM,KAAK,CAAC,SAAS,KAAK,OAAO,aAAa,iBAAiB;AAAA,IACjG,CAAC,GAAG;AAAA,EACN;AAEA,QAAM,eAAe,QAAQ,MAAM;AACjC,QAAI,OAAO,4BAA4B,YAAY;AACjD,aAAO,wBAAwB,IAAI,SAAS,mBAAmB,IAAI,SAAS,OAAO;AAAA,IACrF;AACA,WAAO,IAAI,SAAS;AAAA,EACtB,GAAG,CAAC,yBAAyB,GAAG,CAAC;AAEjC,kBAAgB,MAAM;AACpB,QAAI,IAAI,QAAQ,cAAc;AAC5B,aAAO,SAAS,MAAM;AAAA,IACxB;AAAA,EACF,GAAG,CAAC,cAAc,IAAI,GAAG,CAAC;AAE1B,QAAM,aAAa,QAAQ,MAAM,aAAa,IAAI,GAAG,MAAM,QAAW,CAAC,cAAc,GAAG,CAAC;AACzF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,WAAU;AAAA,MACV,UAAU;AAAA,MACV,MAAK;AAAA,MACL;AAAA,MACA,iBAAe,aAAa,SAAS;AAAA,MACrC;AAAA,MACA,eAAa,YAAY;AAAA,MACzB,qBAAoB;AAAA,MACpB;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,eAAa,YAAY;AAAA,UACzB,MAAM,gBAAgB,CAAC,eAAe,MAAM,IAAI,CAAC,MAAM;AAAA,UACvD,aAAa,gBAAgB,QAAQ;AAAA,UACrC,MAAK;AAAA,UACL;AAAA,UAEC;AAAA,6BAAiB,gBAAgB;AAAA,YAEhC;AAAA,cAAC,gBAAgB;AAAA,cAAhB;AAAA,gBACC;AAAA,gBACA,MAAM,IAAI,MAAM,CAAC;AAAA,gBACjB,QAAQ,IAAI,MAAM,CAAC,EAAE;AAAA,gBACrB,eAAe,mBAAmB,IAAI;AAAA;AAAA,YACxC;AAAA,YAEF,oBAAC,oBAAiB,eAA+B,wBAAa;AAAA;AAAA;AAAA,MAChE;AAAA;AAAA,EACF;AAEJ;AAEO,MAAM,mBAAsE,CAAC;AAAA,EAClF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAU;AAAA,IACV,QAAO;AAAA,IACP,0BAA0B;AAAA,IAC1B;AAAA,IACA;AAAA;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,12 +1,12 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { usePropsStore } from "../../configs/useStore/createInternalAndPropsContext.js";
3
4
  import { ROW_VARIANTS } from "../../exported-related/index.js";
4
5
  import { Cells } from "../Cells/index.js";
5
6
  import { RowVariantHeader } from "./RowVariantHeader.js";
6
7
  import { RowVariantPrimary } from "./RowVariantPrimary.js";
7
8
  import { RowVariantSecondary } from "./RowVariantSecondary.js";
8
9
  import { RowVariantSkeleton } from "./RowVariantSkeleton.js";
9
- import { usePropsStore } from "../../configs/useStore/useStore.js";
10
10
  const RowVariantMapper = {
11
11
  [ROW_VARIANTS.HEADER_GROUP]: RowVariantHeader,
12
12
  [ROW_VARIANTS.PRIMARY]: RowVariantPrimary,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/RowVariants/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { ROW_VARIANTS } from '../../exported-related/index.js';\nimport type { DSDataTableT } from '../../react-desc-prop-types.js';\nimport { Cells } from '../Cells/index.js';\nimport { RowVariantHeader } from './RowVariantHeader.js';\nimport { RowVariantPrimary } from './RowVariantPrimary.js';\nimport { RowVariantSecondary } from './RowVariantSecondary.js';\nimport { RowVariantSkeleton } from './RowVariantSkeleton.js';\nimport { usePropsStore } from '../../configs/useStore/useStore.js';\n\nconst RowVariantMapper: Record<string, React.ComponentType<DSDataTableT.RowVariantProps>> = {\n [ROW_VARIANTS.HEADER_GROUP]: RowVariantHeader,\n [ROW_VARIANTS.PRIMARY]: RowVariantPrimary,\n [ROW_VARIANTS.SECONDARY]: RowVariantSecondary,\n [ROW_VARIANTS.COMPACT_PRIMARY]: (props) => <RowVariantPrimary compact {...props} />,\n [ROW_VARIANTS.COMPACT_SECONDARY]: (props) => <RowVariantSecondary compact {...props} />,\n [ROW_VARIANTS.SKELETON]: RowVariantSkeleton,\n};\n\nexport const RowVariantMapItem: React.ComponentType<DSDataTableT.RowVariantProps> = (props) => {\n const { row } = props;\n\n const getRowVariant = usePropsStore((state) => state.getRowVariant);\n const variant = getRowVariant(row, Cells);\n\n let Component: React.ComponentType<DSDataTableT.RowVariantProps>;\n\n if (typeof variant === 'string') {\n if (!(variant in RowVariantMapper)) {\n throw new Error(`${variant} is not an out-of-the-box row variant`);\n }\n Component = RowVariantMapper[variant];\n } else {\n Component = variant;\n }\n\n return <Component {...props} />;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACcsB;AAb7C,SAAS,oBAAoB;AAE7B,SAAS,aAAa;AACtB,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,qBAAqB;AAE9B,MAAM,mBAAsF;AAAA,EAC1F,CAAC,aAAa,YAAY,GAAG;AAAA,EAC7B,CAAC,aAAa,OAAO,GAAG;AAAA,EACxB,CAAC,aAAa,SAAS,GAAG;AAAA,EAC1B,CAAC,aAAa,eAAe,GAAG,CAAC,UAAU,oBAAC,qBAAkB,SAAO,MAAE,GAAG,OAAO;AAAA,EACjF,CAAC,aAAa,iBAAiB,GAAG,CAAC,UAAU,oBAAC,uBAAoB,SAAO,MAAE,GAAG,OAAO;AAAA,EACrF,CAAC,aAAa,QAAQ,GAAG;AAC3B;AAEO,MAAM,oBAAuE,CAAC,UAAU;AAC7F,QAAM,EAAE,IAAI,IAAI;AAEhB,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,aAAa;AAClE,QAAM,UAAU,cAAc,KAAK,KAAK;AAExC,MAAI;AAEJ,MAAI,OAAO,YAAY,UAAU;AAC/B,QAAI,EAAE,WAAW,mBAAmB;AAClC,YAAM,IAAI,MAAM,GAAG,OAAO,uCAAuC;AAAA,IACnE;AACA,gBAAY,iBAAiB,OAAO;AAAA,EACtC,OAAO;AACL,gBAAY;AAAA,EACd;AAEA,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { usePropsStore } from '../../configs/useStore/createInternalAndPropsContext.js';\nimport { ROW_VARIANTS } from '../../exported-related/index.js';\nimport type { DSDataTableT } from '../../react-desc-prop-types.js';\nimport { Cells } from '../Cells/index.js';\nimport { RowVariantHeader } from './RowVariantHeader.js';\nimport { RowVariantPrimary } from './RowVariantPrimary.js';\nimport { RowVariantSecondary } from './RowVariantSecondary.js';\nimport { RowVariantSkeleton } from './RowVariantSkeleton.js';\n\nconst RowVariantMapper: Record<string, React.ComponentType<DSDataTableT.RowVariantProps>> = {\n [ROW_VARIANTS.HEADER_GROUP]: RowVariantHeader,\n [ROW_VARIANTS.PRIMARY]: RowVariantPrimary,\n [ROW_VARIANTS.SECONDARY]: RowVariantSecondary,\n [ROW_VARIANTS.COMPACT_PRIMARY]: (props) => <RowVariantPrimary compact {...props} />,\n [ROW_VARIANTS.COMPACT_SECONDARY]: (props) => <RowVariantSecondary compact {...props} />,\n [ROW_VARIANTS.SKELETON]: RowVariantSkeleton,\n};\n\nexport const RowVariantMapItem: React.ComponentType<DSDataTableT.RowVariantProps> = (props) => {\n const { row } = props;\n\n const getRowVariant = usePropsStore((state) => state.getRowVariant);\n const variant = getRowVariant(row, Cells);\n\n let Component: React.ComponentType<DSDataTableT.RowVariantProps>;\n\n if (typeof variant === 'string') {\n if (!(variant in RowVariantMapper)) {\n throw new Error(`${variant} is not an out-of-the-box row variant`);\n }\n Component = RowVariantMapper[variant];\n } else {\n Component = variant;\n }\n\n return <Component {...props} />;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACcsB;AAb7C,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAE7B,SAAS,aAAa;AACtB,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AAEnC,MAAM,mBAAsF;AAAA,EAC1F,CAAC,aAAa,YAAY,GAAG;AAAA,EAC7B,CAAC,aAAa,OAAO,GAAG;AAAA,EACxB,CAAC,aAAa,SAAS,GAAG;AAAA,EAC1B,CAAC,aAAa,eAAe,GAAG,CAAC,UAAU,oBAAC,qBAAkB,SAAO,MAAE,GAAG,OAAO;AAAA,EACjF,CAAC,aAAa,iBAAiB,GAAG,CAAC,UAAU,oBAAC,uBAAoB,SAAO,MAAE,GAAG,OAAO;AAAA,EACrF,CAAC,aAAa,QAAQ,GAAG;AAC3B;AAEO,MAAM,oBAAuE,CAAC,UAAU;AAC7F,QAAM,EAAE,IAAI,IAAI;AAEhB,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,aAAa;AAClE,QAAM,UAAU,cAAc,KAAK,KAAK;AAExC,MAAI;AAEJ,MAAI,OAAO,YAAY,UAAU;AAC/B,QAAI,EAAE,WAAW,mBAAmB;AAClC,YAAM,IAAI,MAAM,GAAG,OAAO,uCAAuC;AAAA,IACnE;AACA,gBAAY,iBAAiB,OAAO;AAAA,EACtC,OAAO;AACL,gBAAY;AAAA,EACd;AAEA,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,12 @@
1
1
  import * as React from "react";
2
2
  import { Fragment, jsx } from "react/jsx-runtime";
3
+ import { createElement } from "react";
3
4
  import { useContext } from "react";
4
- import { RowWithContext as Row } from "./Row.js";
5
- import { withConditionalDnDRowContext } from "./HoC/withConditionalDnDRowContext.js";
6
- import { DnDTreeContext } from "./HoC/DnDTreeContext.js";
5
+ import { usePropsStore } from "../configs/useStore/createInternalAndPropsContext.js";
7
6
  import { addCellData } from "../helpers/index.js";
8
- import { usePropsStore } from "../configs/useStore/useStore.js";
7
+ import { DnDTreeContext } from "./HoC/DnDTreeContext.js";
8
+ import { withConditionalDnDRowContext } from "./HoC/withConditionalDnDRowContext.js";
9
+ import { RowWithContext as Row } from "./Row.js";
9
10
  const Rows = () => {
10
11
  const { virtualItems } = usePropsStore((state) => state.virtualListHelpers);
11
12
  const flattenedData = usePropsStore((state) => state.flattenedData);
@@ -24,7 +25,6 @@ const Rows = () => {
24
25
  width: "100%"
25
26
  };
26
27
  const rowProps = {
27
- key: `ds-table-row-${row.uid}`,
28
28
  row,
29
29
  measureRef,
30
30
  index,
@@ -33,7 +33,7 @@ const Rows = () => {
33
33
  itemWrapperStyle: style,
34
34
  isDragOverlay: false
35
35
  };
36
- return /* @__PURE__ */ jsx(Row, { ...rowProps });
36
+ return /* @__PURE__ */ createElement(Row, { ...rowProps, key: `ds-table-row-${row.uid}` });
37
37
  }) });
38
38
  };
39
39
  Rows.propTypes = {};
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/Rows.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { RowWithContext as Row } from './Row.js';\nimport { withConditionalDnDRowContext } from './HoC/withConditionalDnDRowContext.js';\nimport { DnDTreeContext } from './HoC/DnDTreeContext.js';\nimport { addCellData } from '../helpers/index.js';\nimport { usePropsStore } from '../configs/useStore/useStore.js';\n\nconst Rows = (): JSX.Element => {\n const { virtualItems } = usePropsStore((state) => state.virtualListHelpers);\n const flattenedData = usePropsStore((state) => state.flattenedData);\n const visibleColumns = usePropsStore((state) => state.visibleColumns);\n\n const ctx = useContext(DnDTreeContext);\n\n const items = ctx?.visibleItems || flattenedData;\n\n return (\n <>\n {virtualItems.map((virtualItem) => {\n const { index, measureRef, start } = virtualItem;\n const row = items[index];\n if (!row) return null;\n addCellData(row, visibleColumns);\n const style: React.CSSProperties = {\n position: 'absolute',\n top: `${start}px`,\n left: 0,\n width: '100%',\n };\n const rowProps = {\n key: `ds-table-row-${row.uid}`,\n row,\n measureRef,\n index, // this is consumed by the DnD HOC\n itemIndex: index,\n itemWrapperStyle: style,\n isDragOverlay: false,\n };\n return <Row {...rowProps} />;\n })}\n </>\n );\n};\n\nRows.propTypes = {};\n\nexport const RowsWithContext = withConditionalDnDRowContext(Rows);\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACiBnB,mBAqBW,WArBX;AAjBJ,SAAgB,kBAAkB;AAClC,SAAS,kBAAkB,WAAW;AACtC,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAE9B,MAAM,OAAO,MAAmB;AAC9B,QAAM,EAAE,aAAa,IAAI,cAAc,CAAC,UAAU,MAAM,kBAAkB;AAC1E,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,aAAa;AAClE,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AAEpE,QAAM,MAAM,WAAW,cAAc;AAErC,QAAM,QAAQ,KAAK,gBAAgB;AAEnC,SACE,gCACG,uBAAa,IAAI,CAAC,gBAAgB;AACjC,UAAM,EAAE,OAAO,YAAY,MAAM,IAAI;AACrC,UAAM,MAAM,MAAM,KAAK;AACvB,QAAI,CAAC,IAAK,QAAO;AACjB,gBAAY,KAAK,cAAc;AAC/B,UAAM,QAA6B;AAAA,MACjC,UAAU;AAAA,MACV,KAAK,GAAG,KAAK;AAAA,MACb,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AACA,UAAM,WAAW;AAAA,MACf,KAAK,gBAAgB,IAAI,GAAG;AAAA,MAC5B;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA,WAAW;AAAA,MACX,kBAAkB;AAAA,MAClB,eAAe;AAAA,IACjB;AACA,WAAO,oBAAC,OAAK,GAAG,UAAU;AAAA,EAC5B,CAAC,GACH;AAEJ;AAEA,KAAK,YAAY,CAAC;AAEX,MAAM,kBAAkB,6BAA6B,IAAI;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { usePropsStore } from '../configs/useStore/createInternalAndPropsContext.js';\nimport { addCellData } from '../helpers/index.js';\nimport { DnDTreeContext } from './HoC/DnDTreeContext.js';\nimport { withConditionalDnDRowContext } from './HoC/withConditionalDnDRowContext.js';\nimport { RowWithContext as Row } from './Row.js';\n\nconst Rows = (): JSX.Element => {\n const { virtualItems } = usePropsStore((state) => state.virtualListHelpers);\n const flattenedData = usePropsStore((state) => state.flattenedData);\n const visibleColumns = usePropsStore((state) => state.visibleColumns);\n\n const ctx = useContext(DnDTreeContext);\n\n const items = ctx?.visibleItems || flattenedData;\n\n return (\n <>\n {virtualItems.map((virtualItem) => {\n const { index, measureRef, start } = virtualItem;\n const row = items[index];\n if (!row) return null;\n addCellData(row, visibleColumns);\n const style: React.CSSProperties = {\n position: 'absolute',\n top: `${start}px`,\n left: 0,\n width: '100%',\n };\n const rowProps = {\n row,\n measureRef,\n index, // this is consumed by the DnD HOC\n itemIndex: index,\n itemWrapperStyle: style,\n isDragOverlay: false,\n };\n return <Row {...rowProps} key={`ds-table-row-${row.uid}`} />;\n })}\n </>\n );\n};\n\nRows.propTypes = {};\n\nexport const RowsWithContext = withConditionalDnDRowContext(Rows);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACiBnB;AAoBW;AArCf,SAAgB,kBAAkB;AAClC,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAC/B,SAAS,oCAAoC;AAC7C,SAAS,kBAAkB,WAAW;AAEtC,MAAM,OAAO,MAAmB;AAC9B,QAAM,EAAE,aAAa,IAAI,cAAc,CAAC,UAAU,MAAM,kBAAkB;AAC1E,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,aAAa;AAClE,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AAEpE,QAAM,MAAM,WAAW,cAAc;AAErC,QAAM,QAAQ,KAAK,gBAAgB;AAEnC,SACE,gCACG,uBAAa,IAAI,CAAC,gBAAgB;AACjC,UAAM,EAAE,OAAO,YAAY,MAAM,IAAI;AACrC,UAAM,MAAM,MAAM,KAAK;AACvB,QAAI,CAAC,IAAK,QAAO;AACjB,gBAAY,KAAK,cAAc;AAC/B,UAAM,QAA6B;AAAA,MACjC,UAAU;AAAA,MACV,KAAK,GAAG,KAAK;AAAA,MACb,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AACA,UAAM,WAAW;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA,WAAW;AAAA,MACX,kBAAkB;AAAA,MAClB,eAAe;AAAA,IACjB;AACA,WAAO,8BAAC,OAAK,GAAG,UAAU,KAAK,gBAAgB,IAAI,GAAG,IAAI;AAAA,EAC5D,CAAC,GACH;AAEJ;AAEA,KAAK,YAAY,CAAC;AAEX,MAAM,kBAAkB,6BAA6B,IAAI;",
6
6
  "names": []
7
7
  }
@@ -1,12 +1,12 @@
1
1
  import * as React from "react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useCallback } from "react";
4
- import { StyledTableWrapper, StyledDataTableContentWrapper, StyledPaginationWrapper } from "../styled.js";
5
4
  import { Pagination } from "../addons/Pagination/index.js";
6
- import { VirtualRowsList } from "./VirtualRowsList.js";
7
5
  import { DATA_TESTID } from "../configs/constants.js";
6
+ import { useInternalStore, usePropsStore } from "../configs/useStore/createInternalAndPropsContext.js";
7
+ import { StyledDataTableContentWrapper, StyledPaginationWrapper, StyledTableWrapper } from "../styled.js";
8
8
  import { SkeletonTable } from "./SkeletonTable.js";
9
- import { useInternalStore, usePropsStore } from "../configs/useStore/useStore.js";
9
+ import { VirtualRowsList } from "./VirtualRowsList.js";
10
10
  const TableContent = () => {
11
11
  const allDataFlattened = usePropsStore((state) => state.allDataFlattened);
12
12
  const visibleColumns = usePropsStore((state) => state.visibleColumns);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/TableContent.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\n\nimport { StyledTableWrapper, StyledDataTableContentWrapper, StyledPaginationWrapper } from '../styled.js';\nimport { Pagination } from '../addons/Pagination/index.js';\nimport { VirtualRowsList } from './VirtualRowsList.js';\nimport { DATA_TESTID } from '../configs/constants.js';\nimport { SkeletonTable } from './SkeletonTable.js';\nimport { useInternalStore, usePropsStore } from '../configs/useStore/useStore.js';\nexport const TableContent = () => {\n const allDataFlattened = usePropsStore((state) => state.allDataFlattened);\n const visibleColumns = usePropsStore((state) => state.visibleColumns);\n const { hasPagination } = usePropsStore((state) => state.paginationHelpers);\n const isLoading = usePropsStore((state) => state.isLoading);\n const isSkeleton = usePropsStore((state) => state.isSkeleton);\n const height = usePropsStore((state) => state.height);\n const getOwnerProps = usePropsStore((store) => store.get);\n\n const isShiftPressed = useInternalStore((state) => state.isShiftPressed);\n const setIsShiftPressed = useInternalStore((state) => state.setIsShiftPressed);\n const setFocusedRowId = useInternalStore((state) => state.setFocusedRowId);\n\n const handleOnKeyDown: React.KeyboardEventHandler = useCallback(\n (e) => {\n setIsShiftPressed(e.shiftKey);\n },\n [setIsShiftPressed],\n );\n\n const handleOnKeyUp = useCallback(() => setIsShiftPressed(false), [setIsShiftPressed]);\n\n return (\n <StyledDataTableContentWrapper\n data-testid={DATA_TESTID.DATA_TABLE_CONTENT_WRAPPER}\n noSelectionAllowed={isShiftPressed}\n onKeyDown={handleOnKeyDown}\n onKeyUp={handleOnKeyUp}\n rows={hasPagination ? ['1fr', 'auto'] : ['auto']}\n cols={['100%']}\n getOwnerProps={getOwnerProps}\n >\n <StyledTableWrapper\n role=\"table\"\n aria-rowcount={allDataFlattened.length}\n aria-colcount={visibleColumns.length}\n data-testid={DATA_TESTID.DATA_TABLE_TABLE}\n aria-busy={isLoading || isSkeleton}\n getOwnerProps={getOwnerProps}\n >\n {isSkeleton ? <SkeletonTable height={height} /> : <VirtualRowsList />}\n </StyledTableWrapper>\n {hasPagination ? (\n <StyledPaginationWrapper onFocus={() => setFocusedRowId(null)} getOwnerProps={getOwnerProps}>\n <Pagination />\n </StyledPaginationWrapper>\n ) : null}\n </StyledDataTableContentWrapper>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC+BnB,SAiBkB,KAjBlB;AA/BJ,SAAgB,mBAAmB;AAEnC,SAAS,oBAAoB,+BAA+B,+BAA+B;AAC3F,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB,qBAAqB;AACzC,MAAM,eAAe,MAAM;AAChC,QAAM,mBAAmB,cAAc,CAAC,UAAU,MAAM,gBAAgB;AACxE,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AACpE,QAAM,EAAE,cAAc,IAAI,cAAc,CAAC,UAAU,MAAM,iBAAiB;AAC1E,QAAM,YAAY,cAAc,CAAC,UAAU,MAAM,SAAS;AAC1D,QAAM,aAAa,cAAc,CAAC,UAAU,MAAM,UAAU;AAC5D,QAAM,SAAS,cAAc,CAAC,UAAU,MAAM,MAAM;AACpD,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AAExD,QAAM,iBAAiB,iBAAiB,CAAC,UAAU,MAAM,cAAc;AACvE,QAAM,oBAAoB,iBAAiB,CAAC,UAAU,MAAM,iBAAiB;AAC7E,QAAM,kBAAkB,iBAAiB,CAAC,UAAU,MAAM,eAAe;AAEzE,QAAM,kBAA8C;AAAA,IAClD,CAAC,MAAM;AACL,wBAAkB,EAAE,QAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,iBAAiB;AAAA,EACpB;AAEA,QAAM,gBAAgB,YAAY,MAAM,kBAAkB,KAAK,GAAG,CAAC,iBAAiB,CAAC;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,YAAY;AAAA,MACzB,oBAAoB;AAAA,MACpB,WAAW;AAAA,MACX,SAAS;AAAA,MACT,MAAM,gBAAgB,CAAC,OAAO,MAAM,IAAI,CAAC,MAAM;AAAA,MAC/C,MAAM,CAAC,MAAM;AAAA,MACb;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,iBAAe,iBAAiB;AAAA,YAChC,iBAAe,eAAe;AAAA,YAC9B,eAAa,YAAY;AAAA,YACzB,aAAW,aAAa;AAAA,YACxB;AAAA,YAEC,uBAAa,oBAAC,iBAAc,QAAgB,IAAK,oBAAC,mBAAgB;AAAA;AAAA,QACrE;AAAA,QACC,gBACC,oBAAC,2BAAwB,SAAS,MAAM,gBAAgB,IAAI,GAAG,eAC7D,8BAAC,cAAW,GACd,IACE;AAAA;AAAA;AAAA,EACN;AAEJ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\n\nimport { Pagination } from '../addons/Pagination/index.js';\nimport { DATA_TESTID } from '../configs/constants.js';\nimport { useInternalStore, usePropsStore } from '../configs/useStore/createInternalAndPropsContext.js';\nimport { StyledDataTableContentWrapper, StyledPaginationWrapper, StyledTableWrapper } from '../styled.js';\nimport { SkeletonTable } from './SkeletonTable.js';\nimport { VirtualRowsList } from './VirtualRowsList.js';\n\nexport const TableContent = () => {\n const allDataFlattened = usePropsStore((state) => state.allDataFlattened);\n const visibleColumns = usePropsStore((state) => state.visibleColumns);\n const { hasPagination } = usePropsStore((state) => state.paginationHelpers);\n const isLoading = usePropsStore((state) => state.isLoading);\n const isSkeleton = usePropsStore((state) => state.isSkeleton);\n const height = usePropsStore((state) => state.height);\n const getOwnerProps = usePropsStore((store) => store.get);\n\n const isShiftPressed = useInternalStore((state) => state.isShiftPressed);\n const setIsShiftPressed = useInternalStore((state) => state.setIsShiftPressed);\n const setFocusedRowId = useInternalStore((state) => state.setFocusedRowId);\n\n const handleOnKeyDown: React.KeyboardEventHandler = useCallback(\n (e) => {\n setIsShiftPressed(e.shiftKey);\n },\n [setIsShiftPressed],\n );\n\n const handleOnKeyUp = useCallback(() => setIsShiftPressed(false), [setIsShiftPressed]);\n\n return (\n <StyledDataTableContentWrapper\n data-testid={DATA_TESTID.DATA_TABLE_CONTENT_WRAPPER}\n noSelectionAllowed={isShiftPressed}\n onKeyDown={handleOnKeyDown}\n onKeyUp={handleOnKeyUp}\n rows={hasPagination ? ['1fr', 'auto'] : ['auto']}\n cols={['100%']}\n getOwnerProps={getOwnerProps}\n >\n <StyledTableWrapper\n role=\"table\"\n aria-rowcount={allDataFlattened.length}\n aria-colcount={visibleColumns.length}\n data-testid={DATA_TESTID.DATA_TABLE_TABLE}\n aria-busy={isLoading || isSkeleton}\n getOwnerProps={getOwnerProps}\n >\n {isSkeleton ? <SkeletonTable height={height} /> : <VirtualRowsList />}\n </StyledTableWrapper>\n {hasPagination ? (\n <StyledPaginationWrapper onFocus={() => setFocusedRowId(null)} getOwnerProps={getOwnerProps}>\n <Pagination />\n </StyledPaginationWrapper>\n ) : null}\n </StyledDataTableContentWrapper>\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACgCnB,SAiBkB,KAjBlB;AAhCJ,SAAgB,mBAAmB;AAEnC,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB,qBAAqB;AAChD,SAAS,+BAA+B,yBAAyB,0BAA0B;AAC3F,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAEzB,MAAM,eAAe,MAAM;AAChC,QAAM,mBAAmB,cAAc,CAAC,UAAU,MAAM,gBAAgB;AACxE,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AACpE,QAAM,EAAE,cAAc,IAAI,cAAc,CAAC,UAAU,MAAM,iBAAiB;AAC1E,QAAM,YAAY,cAAc,CAAC,UAAU,MAAM,SAAS;AAC1D,QAAM,aAAa,cAAc,CAAC,UAAU,MAAM,UAAU;AAC5D,QAAM,SAAS,cAAc,CAAC,UAAU,MAAM,MAAM;AACpD,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AAExD,QAAM,iBAAiB,iBAAiB,CAAC,UAAU,MAAM,cAAc;AACvE,QAAM,oBAAoB,iBAAiB,CAAC,UAAU,MAAM,iBAAiB;AAC7E,QAAM,kBAAkB,iBAAiB,CAAC,UAAU,MAAM,eAAe;AAEzE,QAAM,kBAA8C;AAAA,IAClD,CAAC,MAAM;AACL,wBAAkB,EAAE,QAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,iBAAiB;AAAA,EACpB;AAEA,QAAM,gBAAgB,YAAY,MAAM,kBAAkB,KAAK,GAAG,CAAC,iBAAiB,CAAC;AAErF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,YAAY;AAAA,MACzB,oBAAoB;AAAA,MACpB,WAAW;AAAA,MACX,SAAS;AAAA,MACT,MAAM,gBAAgB,CAAC,OAAO,MAAM,IAAI,CAAC,MAAM;AAAA,MAC/C,MAAM,CAAC,MAAM;AAAA,MACb;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,iBAAe,iBAAiB;AAAA,YAChC,iBAAe,eAAe;AAAA,YAC9B,eAAa,YAAY;AAAA,YACzB,aAAW,aAAa;AAAA,YACxB;AAAA,YAEC,uBAAa,oBAAC,iBAAc,QAAgB,IAAK,oBAAC,mBAAgB;AAAA;AAAA,QACrE;AAAA,QACC,gBACC,oBAAC,2BAAwB,SAAS,MAAM,gBAAgB,IAAI,GAAG,eAC7D,8BAAC,cAAW,GACd,IACE;AAAA;AAAA;AAAA,EACN;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -1,13 +1,13 @@
1
1
  import * as React from "react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { useMemo, useCallback } from "react";
3
+ import { useCallback, useMemo } from "react";
4
+ import { useInternalStore, usePropsStore } from "../configs/useStore/createInternalAndPropsContext.js";
5
+ import { DATA_TESTID } from "../configs/constants.js";
6
+ import { StyledTableContentWrapper, StyledVirtualListWrapper } from "../styled.js";
4
7
  import { EmptyContent } from "./EmptyContent.js";
5
- import { RowsWithContext as Rows } from "./Rows.js";
6
8
  import { Headers } from "./Headers/index.js";
7
- import { StyledVirtualListWrapper, StyledTableContentWrapper } from "../styled.js";
8
9
  import { MemoizedLoader as Loader } from "./Loader.js";
9
- import { DATA_TESTID } from "../configs/constants.js";
10
- import { useInternalStore, usePropsStore } from "../configs/useStore/useStore.js";
10
+ import { RowsWithContext as Rows } from "./Rows.js";
11
11
  const VirtualRowsList = () => {
12
12
  const isLoading = usePropsStore((state) => state.isLoading);
13
13
  const virtualListRef = usePropsStore((state) => state.virtualListRef);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/VirtualRowsList.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useMemo, useCallback } from 'react';\nimport { EmptyContent } from './EmptyContent.js'; // imported this way to avoid circular dependencies\nimport { RowsWithContext as Rows } from './Rows.js'; // imported this way to avoid circular dependencies\nimport { Headers } from './Headers/index.js'; // imported this way to avoid circular dependencies\nimport { StyledVirtualListWrapper, StyledTableContentWrapper } from '../styled.js';\nimport { MemoizedLoader as Loader } from './Loader.js';\nimport { DATA_TESTID } from '../configs/constants.js';\nimport { useInternalStore, usePropsStore } from '../configs/useStore/useStore.js';\n\nexport const VirtualRowsList = () => {\n const isLoading = usePropsStore((state) => state.isLoading);\n const virtualListRef = usePropsStore((state) => state.virtualListRef);\n const flattenedData = usePropsStore((state) => state.flattenedData);\n const isEmptyContent = usePropsStore((state) => state.isEmptyContent);\n const { totalColumnsWidth, gridLayout } = usePropsStore((state) => state.layoutHelpers);\n const { totalSize, scrollToIndex } = usePropsStore((state) => state.virtualListHelpers);\n const getOwnerProps = usePropsStore((store) => store.get);\n\n const setFocusedRowId = useInternalStore((state) => state.setFocusedRowId);\n\n const onKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n if (e.ctrlKey && e.code === 'End') {\n scrollToIndex(flattenedData.length - 1);\n setFocusedRowId(flattenedData[flattenedData.length - 1].uid);\n } else if (e.ctrlKey && e.code === 'Home') {\n scrollToIndex(0, { align: 'center' });\n setFocusedRowId(flattenedData[0].uid);\n }\n },\n [scrollToIndex, setFocusedRowId, flattenedData],\n );\n\n const tableContentWrapperHeight = useMemo(\n () => (isEmptyContent || isLoading ? '100%' : totalSize),\n [isEmptyContent, isLoading, totalSize],\n );\n\n return (\n <StyledVirtualListWrapper\n innerRef={virtualListRef}\n data-testid={DATA_TESTID.DATA_TABLE_SCROLLABLE_CONTAINER}\n onKeyDown={onKeyDown}\n tabIndex={-1}\n role=\"rowgroup\"\n gridLayout={gridLayout}\n totalColumnsWidth={totalColumnsWidth}\n aria-busy={isLoading}\n getOwnerProps={getOwnerProps}\n >\n <StyledTableContentWrapper\n height={tableContentWrapperHeight}\n rows={['min-content', 'auto']}\n cols={['100%']}\n getOwnerProps={getOwnerProps}\n >\n <Headers />\n {isEmptyContent && <EmptyContent />}\n {isLoading ? <Loader /> : null}\n {!isLoading && !isEmptyContent && <Rows />}\n </StyledTableContentWrapper>\n </StyledVirtualListWrapper>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACkDjB,SAME,KANF;AAlDN,SAAgB,SAAS,mBAAmB;AAC5C,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB,YAAY;AACxC,SAAS,eAAe;AACxB,SAAS,0BAA0B,iCAAiC;AACpE,SAAS,kBAAkB,cAAc;AACzC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB,qBAAqB;AAEzC,MAAM,kBAAkB,MAAM;AACnC,QAAM,YAAY,cAAc,CAAC,UAAU,MAAM,SAAS;AAC1D,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AACpE,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,aAAa;AAClE,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AACpE,QAAM,EAAE,mBAAmB,WAAW,IAAI,cAAc,CAAC,UAAU,MAAM,aAAa;AACtF,QAAM,EAAE,WAAW,cAAc,IAAI,cAAc,CAAC,UAAU,MAAM,kBAAkB;AACtF,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AAExD,QAAM,kBAAkB,iBAAiB,CAAC,UAAU,MAAM,eAAe;AAEzE,QAAM,YAAY;AAAA,IAChB,CAAC,MAA2B;AAC1B,UAAI,EAAE,WAAW,EAAE,SAAS,OAAO;AACjC,sBAAc,cAAc,SAAS,CAAC;AACtC,wBAAgB,cAAc,cAAc,SAAS,CAAC,EAAE,GAAG;AAAA,MAC7D,WAAW,EAAE,WAAW,EAAE,SAAS,QAAQ;AACzC,sBAAc,GAAG,EAAE,OAAO,SAAS,CAAC;AACpC,wBAAgB,cAAc,CAAC,EAAE,GAAG;AAAA,MACtC;AAAA,IACF;AAAA,IACA,CAAC,eAAe,iBAAiB,aAAa;AAAA,EAChD;AAEA,QAAM,4BAA4B;AAAA,IAChC,MAAO,kBAAkB,YAAY,SAAS;AAAA,IAC9C,CAAC,gBAAgB,WAAW,SAAS;AAAA,EACvC;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,eAAa,YAAY;AAAA,MACzB;AAAA,MACA,UAAU;AAAA,MACV,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,aAAW;AAAA,MACX;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,QAAQ;AAAA,UACR,MAAM,CAAC,eAAe,MAAM;AAAA,UAC5B,MAAM,CAAC,MAAM;AAAA,UACb;AAAA,UAEA;AAAA,gCAAC,WAAQ;AAAA,YACR,kBAAkB,oBAAC,gBAAa;AAAA,YAChC,YAAY,oBAAC,UAAO,IAAK;AAAA,YACzB,CAAC,aAAa,CAAC,kBAAkB,oBAAC,QAAK;AAAA;AAAA;AAAA,MAC1C;AAAA;AAAA,EACF;AAEJ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback, useMemo } from 'react';\nimport { useInternalStore, usePropsStore } from '../configs/useStore/createInternalAndPropsContext.js';\nimport { DATA_TESTID } from '../configs/constants.js';\nimport { StyledTableContentWrapper, StyledVirtualListWrapper } from '../styled.js';\nimport { EmptyContent } from './EmptyContent.js'; // imported this way to avoid circular dependencies\nimport { Headers } from './Headers/index.js'; // imported this way to avoid circular dependencies\nimport { MemoizedLoader as Loader } from './Loader.js';\nimport { RowsWithContext as Rows } from './Rows.js'; // imported this way to avoid circular dependencies\n\nexport const VirtualRowsList = () => {\n const isLoading = usePropsStore((state) => state.isLoading);\n const virtualListRef = usePropsStore((state) => state.virtualListRef);\n const flattenedData = usePropsStore((state) => state.flattenedData);\n const isEmptyContent = usePropsStore((state) => state.isEmptyContent);\n const { totalColumnsWidth, gridLayout } = usePropsStore((state) => state.layoutHelpers);\n const { totalSize, scrollToIndex } = usePropsStore((state) => state.virtualListHelpers);\n const getOwnerProps = usePropsStore((store) => store.get);\n\n const setFocusedRowId = useInternalStore((state) => state.setFocusedRowId);\n\n const onKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n if (e.ctrlKey && e.code === 'End') {\n scrollToIndex(flattenedData.length - 1);\n setFocusedRowId(flattenedData[flattenedData.length - 1].uid);\n } else if (e.ctrlKey && e.code === 'Home') {\n scrollToIndex(0, { align: 'center' });\n setFocusedRowId(flattenedData[0].uid);\n }\n },\n [scrollToIndex, setFocusedRowId, flattenedData],\n );\n\n const tableContentWrapperHeight = useMemo(\n () => (isEmptyContent || isLoading ? '100%' : totalSize),\n [isEmptyContent, isLoading, totalSize],\n );\n\n return (\n <StyledVirtualListWrapper\n innerRef={virtualListRef}\n data-testid={DATA_TESTID.DATA_TABLE_SCROLLABLE_CONTAINER}\n onKeyDown={onKeyDown}\n tabIndex={-1}\n role=\"rowgroup\"\n gridLayout={gridLayout}\n totalColumnsWidth={totalColumnsWidth}\n aria-busy={isLoading}\n getOwnerProps={getOwnerProps}\n >\n <StyledTableContentWrapper\n height={tableContentWrapperHeight}\n rows={['min-content', 'auto']}\n cols={['100%']}\n getOwnerProps={getOwnerProps}\n >\n <Headers />\n {isEmptyContent && <EmptyContent />}\n {isLoading ? <Loader /> : null}\n {!isLoading && !isEmptyContent && <Rows />}\n </StyledTableContentWrapper>\n </StyledVirtualListWrapper>\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACkDjB,SAME,KANF;AAlDN,SAAgB,aAAa,eAAe;AAC5C,SAAS,kBAAkB,qBAAqB;AAChD,SAAS,mBAAmB;AAC5B,SAAS,2BAA2B,gCAAgC;AACpE,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,kBAAkB,cAAc;AACzC,SAAS,mBAAmB,YAAY;AAEjC,MAAM,kBAAkB,MAAM;AACnC,QAAM,YAAY,cAAc,CAAC,UAAU,MAAM,SAAS;AAC1D,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AACpE,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,aAAa;AAClE,QAAM,iBAAiB,cAAc,CAAC,UAAU,MAAM,cAAc;AACpE,QAAM,EAAE,mBAAmB,WAAW,IAAI,cAAc,CAAC,UAAU,MAAM,aAAa;AACtF,QAAM,EAAE,WAAW,cAAc,IAAI,cAAc,CAAC,UAAU,MAAM,kBAAkB;AACtF,QAAM,gBAAgB,cAAc,CAAC,UAAU,MAAM,GAAG;AAExD,QAAM,kBAAkB,iBAAiB,CAAC,UAAU,MAAM,eAAe;AAEzE,QAAM,YAAY;AAAA,IAChB,CAAC,MAA2B;AAC1B,UAAI,EAAE,WAAW,EAAE,SAAS,OAAO;AACjC,sBAAc,cAAc,SAAS,CAAC;AACtC,wBAAgB,cAAc,cAAc,SAAS,CAAC,EAAE,GAAG;AAAA,MAC7D,WAAW,EAAE,WAAW,EAAE,SAAS,QAAQ;AACzC,sBAAc,GAAG,EAAE,OAAO,SAAS,CAAC;AACpC,wBAAgB,cAAc,CAAC,EAAE,GAAG;AAAA,MACtC;AAAA,IACF;AAAA,IACA,CAAC,eAAe,iBAAiB,aAAa;AAAA,EAChD;AAEA,QAAM,4BAA4B;AAAA,IAChC,MAAO,kBAAkB,YAAY,SAAS;AAAA,IAC9C,CAAC,gBAAgB,WAAW,SAAS;AAAA,EACvC;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,eAAa,YAAY;AAAA,MACzB;AAAA,MACA,UAAU;AAAA,MACV,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,aAAW;AAAA,MACX;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,QAAQ;AAAA,UACR,MAAM,CAAC,eAAe,MAAM;AAAA,UAC5B,MAAM,CAAC,MAAM;AAAA,UACb;AAAA,UAEA;AAAA,gCAAC,WAAQ;AAAA,YACR,kBAAkB,oBAAC,gBAAa;AAAA,YAChC,YAAY,oBAAC,UAAO,IAAK;AAAA,YACzB,CAAC,aAAa,CAAC,kBAAkB,oBAAC,QAAK;AAAA;AAAA;AAAA,MAC1C;AAAA;AAAA,EACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- export declare const DSDataTableName = "DSDataTable";
1
+ export declare const DSDataTableName = "DSDatatable";
2
2
  export declare const DSDataTableSlots: {
3
3
  ROOT: string;
4
4
  CONTENT_WRAPPER: string;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { type DSDataTableT } from '../../react-desc-prop-types.js';
3
+ export declare const PropsProvider: ({ createStore, children, }: {
4
+ createStore: () => import("@elliemae/ds-zustand-helpers").ZustandT.ZustandStore<import("@elliemae/ds-zustand-helpers").ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>>;
5
+ children: import("react").ReactNode;
6
+ }) => import("react").FunctionComponentElement<import("react").ProviderProps<import("@elliemae/ds-zustand-helpers").ZustandT.ZustandStore<import("@elliemae/ds-zustand-helpers").ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>> | undefined>>, usePropsStore: {
7
+ (): import("@elliemae/ds-zustand-helpers").ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>;
8
+ <U>(selector: (state: import("@elliemae/ds-zustand-helpers").ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined): U;
9
+ }, InternalProvider: ({ createStore, children, }: {
10
+ createStore: () => import("@elliemae/ds-zustand-helpers").ZustandT.ZustandStore<import("@elliemae/ds-zustand-helpers").ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>>;
11
+ children: import("react").ReactNode;
12
+ }) => import("react").FunctionComponentElement<import("react").ProviderProps<import("@elliemae/ds-zustand-helpers").ZustandT.ZustandStore<import("@elliemae/ds-zustand-helpers").ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>> | undefined>>, useInternalStore: {
13
+ (): import("@elliemae/ds-zustand-helpers").ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>;
14
+ <U_1>(selector: (state: import("@elliemae/ds-zustand-helpers").ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>) => U_1, equalityFn?: ((a: U_1, b: U_1) => boolean) | undefined): U_1;
15
+ };
@@ -1 +1,2 @@
1
- export { PropsProvider, usePropsStore, InternalProvider, useInternalStore, useWholeStore, config } from './useStore.js';
1
+ export { useWholeStore, config } from './useStore.js';
2
+ export { PropsProvider, usePropsStore, InternalProvider, useInternalStore } from './createInternalAndPropsContext.js';
@@ -1,19 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type ZustandT } from '@elliemae/ds-zustand-helpers';
3
3
  import { type DSDataTableT } from '../../react-desc-prop-types.js';
4
- export declare const PropsProvider: ({ createStore, children, }: {
5
- createStore: () => ZustandT.ZustandStore<ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>>;
6
- children: import("react").ReactNode;
7
- }) => import("react").FunctionComponentElement<import("react").ProviderProps<ZustandT.ZustandStore<ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>> | undefined>>, usePropsStore: {
8
- (): ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>;
9
- <U>(selector: (state: ZustandT.PropsStore<DSDataTableT.DefaultProps & DSDataTableT.RequiredProps & DSDataTableT.OptionalProps & DSDataTableT.UseAutoCalculatedT>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined): U;
10
- }, InternalProvider: ({ createStore, children, }: {
11
- createStore: () => ZustandT.ZustandStore<ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>>;
12
- children: import("react").ReactNode;
13
- }) => import("react").FunctionComponentElement<import("react").ProviderProps<ZustandT.ZustandStore<ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>> | undefined>>, useInternalStore: {
14
- (): ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>;
15
- <U_1>(selector: (state: ZustandT.InternalStore<DSDataTableT.InternalAtoms, DSDataTableT.Selectors, DSDataTableT.Reducers>) => U_1, equalityFn?: ((a: U_1, b: U_1) => boolean) | undefined): U_1;
16
- };
17
4
  export declare const useWholeStore: () => DSDataTableT.Context;
18
5
  export declare const config: {
19
6
  defaultProps: () => DSDataTableT.InternalProps;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { XstyledProps } from '@elliemae/ds-props-helpers';
2
+ import React from 'react';
3
3
  import type { RowVariantProps } from '../../parts/RowVariants/types.js';
4
4
  import type { DSDataTableT } from '../../react-desc-prop-types.js';
5
5
  interface RowRendererProps {
@@ -1,3 +1,3 @@
1
1
  import { type CSSProperties } from 'react';
2
2
  import type { DSDataTableT } from '../../react-desc-prop-types.js';
3
- export declare const useCellStyle: (column: DSDataTableT.InternalColumn, shouldAddExpandCell: boolean, cellIsNextToExpander: boolean, row: DSDataTableT.InternalRow) => [string, CSSProperties];
3
+ export declare const useCellStyle: (column: DSDataTableT.InternalColumn, shouldAddExpandCell: boolean, cellIsNextToExpander?: boolean, row?: DSDataTableT.InternalRow) => [string, CSSProperties];
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const Headers: React.ComponentType<JSX.IntrinsicAttributes>;
2
+ export declare const Headers: React.ComponentType<React.JSX.IntrinsicAttributes>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { DnDGroupContextType } from './withConditionalDnDColumnContext.js';
3
+ export declare const DnDGroupContext: import("react").Context<DnDGroupContextType>;
@@ -1,8 +1,5 @@
1
- import React from 'react';
2
1
  import type { FunctionalHOC } from '../../types/FunctionalHoC.js';
3
- type DnDGroupContextType = {
2
+ export type DnDGroupContextType = {
4
3
  activeIndex: number | null;
5
4
  };
6
- export declare const DnDGroupContext: React.Context<DnDGroupContextType>;
7
5
  export declare const withConditionalDnDColumnContext: FunctionalHOC;
8
- export {};
@@ -4,5 +4,5 @@ interface Props {
4
4
  items: DSDataTableT.InternalColumn[];
5
5
  isDragOverlay: boolean;
6
6
  }
7
- export declare const withConditionalDnDSortableContext: <T>(Component: React.ComponentType<T>) => (props: T & JSX.IntrinsicAttributes & Props) => import("react/jsx-runtime.js").JSX.Element;
7
+ export declare const withConditionalDnDSortableContext: <T>(Component: React.ComponentType<T>) => (props: T & React.JSX.IntrinsicAttributes & Props) => import("react/jsx-runtime.js").JSX.Element;
8
8
  export {};
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const MemoizedLoader: React.MemoExoticComponent<() => import("react/jsx-runtime.js").JSX.Element>;
1
+ /// <reference types="react" />
2
+ export declare const MemoizedLoader: import("react").MemoExoticComponent<() => import("react/jsx-runtime.js").JSX.Element>;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const MainContent: () => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const RowsWithContext: React.ComponentType<JSX.IntrinsicAttributes>;
2
+ export declare const RowsWithContext: React.ComponentType<React.JSX.IntrinsicAttributes>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DSDataTableT } from '../react-desc-prop-types.js';
2
3
  export declare const SortableHeaderCell: ({ items, isDragOverlay, isGroup, colId, ...rest }: {
3
4
  items: DSDataTableT.InternalColumn[];
@@ -1,2 +1,2 @@
1
1
  import type React from 'react';
2
- export type FunctionalHOC = <T = unknown>(Component: React.ComponentType<T>, ...other: unknown[]) => React.ComponentType<T & JSX.IntrinsicAttributes>;
2
+ export type FunctionalHOC = <T = unknown>(Component: React.ComponentType<T>, ...other: unknown[]) => React.ComponentType<T & React.JSX.IntrinsicAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-data-table",
3
- "version": "3.50.1-next.8",
3
+ "version": "3.51.0-beta.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Table",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
26
26
  },
27
27
  "engines": {
28
- "pnpm": ">=6",
29
- "node": ">=16"
28
+ "pnpm": ">=9",
29
+ "node": ">=22"
30
30
  },
31
31
  "author": "ICE MT",
32
32
  "jestSonar": {
@@ -39,44 +39,44 @@
39
39
  "react-virtual": "~2.10.4",
40
40
  "uid": "~2.0.1",
41
41
  "use-onclickoutside": "0.4.1",
42
- "@elliemae/ds-button": "3.50.1-next.8",
43
- "@elliemae/ds-button-v2": "3.50.1-next.8",
44
- "@elliemae/ds-drag-and-drop": "3.50.1-next.8",
45
- "@elliemae/ds-circular-progress-indicator": "3.50.1-next.8",
46
- "@elliemae/ds-dropdownmenu": "3.50.1-next.8",
47
- "@elliemae/ds-form-checkbox": "3.50.1-next.8",
48
- "@elliemae/ds-form-combobox": "3.50.1-next.8",
49
- "@elliemae/ds-dropdownmenu-v2": "3.50.1-next.8",
50
- "@elliemae/ds-form-date-range-picker": "3.50.1-next.8",
51
- "@elliemae/ds-form-date-time-picker": "3.50.1-next.8",
52
- "@elliemae/ds-form-helpers-mask-hooks": "3.50.1-next.8",
53
- "@elliemae/ds-form-input-text": "3.50.1-next.8",
54
- "@elliemae/ds-form-layout-blocks": "3.50.1-next.8",
55
- "@elliemae/ds-grid": "3.50.1-next.8",
56
- "@elliemae/ds-form-radio": "3.50.1-next.8",
57
- "@elliemae/ds-pagination": "3.50.1-next.8",
58
- "@elliemae/ds-icons": "3.50.1-next.8",
59
- "@elliemae/ds-pills-v2": "3.50.1-next.8",
60
- "@elliemae/ds-popperjs": "3.50.1-next.8",
61
- "@elliemae/ds-props-helpers": "3.50.1-next.8",
62
- "@elliemae/ds-skeleton": "3.50.1-next.8",
63
- "@elliemae/ds-system": "3.50.1-next.8",
64
- "@elliemae/ds-truncated-tooltip-text": "3.50.1-next.8",
65
- "@elliemae/ds-typescript-helpers": "3.50.1-next.8",
66
- "@elliemae/ds-zustand-helpers": "3.50.1-next.8"
42
+ "@elliemae/ds-button-v2": "3.51.0-beta.1",
43
+ "@elliemae/ds-circular-progress-indicator": "3.51.0-beta.1",
44
+ "@elliemae/ds-drag-and-drop": "3.51.0-beta.1",
45
+ "@elliemae/ds-dropdownmenu": "3.51.0-beta.1",
46
+ "@elliemae/ds-dropdownmenu-v2": "3.51.0-beta.1",
47
+ "@elliemae/ds-form-combobox": "3.51.0-beta.1",
48
+ "@elliemae/ds-form-checkbox": "3.51.0-beta.1",
49
+ "@elliemae/ds-form-date-time-picker": "3.51.0-beta.1",
50
+ "@elliemae/ds-form-helpers-mask-hooks": "3.51.0-beta.1",
51
+ "@elliemae/ds-form-input-text": "3.51.0-beta.1",
52
+ "@elliemae/ds-form-date-range-picker": "3.51.0-beta.1",
53
+ "@elliemae/ds-form-layout-blocks": "3.51.0-beta.1",
54
+ "@elliemae/ds-form-radio": "3.51.0-beta.1",
55
+ "@elliemae/ds-pagination": "3.51.0-beta.1",
56
+ "@elliemae/ds-grid": "3.51.0-beta.1",
57
+ "@elliemae/ds-icons": "3.51.0-beta.1",
58
+ "@elliemae/ds-pills-v2": "3.51.0-beta.1",
59
+ "@elliemae/ds-props-helpers": "3.51.0-beta.1",
60
+ "@elliemae/ds-skeleton": "3.51.0-beta.1",
61
+ "@elliemae/ds-system": "3.51.0-beta.1",
62
+ "@elliemae/ds-truncated-tooltip-text": "3.51.0-beta.1",
63
+ "@elliemae/ds-typescript-helpers": "3.51.0-beta.1",
64
+ "@elliemae/ds-popperjs": "3.51.0-beta.1",
65
+ "@elliemae/ds-zustand-helpers": "3.51.0-beta.1",
66
+ "@elliemae/ds-button": "3.51.0-beta.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@elliemae/pui-cli": "9.0.0-next.31",
69
+ "@elliemae/pui-cli": "9.0.0-next.55",
70
70
  "jest": "~29.7.0",
71
71
  "styled-components": "~5.3.9",
72
72
  "styled-system": "^5.1.5",
73
- "@elliemae/ds-monorepo-devops": "3.50.1-next.8",
74
- "@elliemae/ds-toolbar-v2": "3.50.1-next.8"
73
+ "@elliemae/ds-monorepo-devops": "3.51.0-beta.1",
74
+ "@elliemae/ds-toolbar-v2": "3.51.0-beta.1"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "lodash": "^4.17.21",
78
- "react": "^17.0.2",
79
- "react-dom": "^17.0.2",
78
+ "react": "^18.3.1",
79
+ "react-dom": "^18.3.1",
80
80
  "styled-components": "~5.3.9",
81
81
  "styled-system": "^5.1.5"
82
82
  },