@pega/lists-react 8.0.0-build.27.14

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 (720) hide show
  1. package/LICENSE +185 -0
  2. package/README.md +219 -0
  3. package/SECURITY.md +11 -0
  4. package/lib/Core/Components/A11y/RepeatingStructureA11y.d.ts +23 -0
  5. package/lib/Core/Components/A11y/RepeatingStructureA11y.d.ts.map +1 -0
  6. package/lib/Core/Components/A11y/RepeatingStructureA11y.js +30 -0
  7. package/lib/Core/Components/A11y/RepeatingStructureA11y.js.map +1 -0
  8. package/lib/Core/Components/AggregateMenu.d.ts +23 -0
  9. package/lib/Core/Components/AggregateMenu.d.ts.map +1 -0
  10. package/lib/Core/Components/AggregateMenu.js +73 -0
  11. package/lib/Core/Components/AggregateMenu.js.map +1 -0
  12. package/lib/Core/Components/AggregatorCell.d.ts +23 -0
  13. package/lib/Core/Components/AggregatorCell.d.ts.map +1 -0
  14. package/lib/Core/Components/AggregatorCell.js +29 -0
  15. package/lib/Core/Components/AggregatorCell.js.map +1 -0
  16. package/lib/Core/Components/ColumnResizer.d.ts +13 -0
  17. package/lib/Core/Components/ColumnResizer.d.ts.map +1 -0
  18. package/lib/Core/Components/ColumnResizer.js +12 -0
  19. package/lib/Core/Components/ColumnResizer.js.map +1 -0
  20. package/lib/Core/Components/ConfirmationModal.d.ts +27 -0
  21. package/lib/Core/Components/ConfirmationModal.d.ts.map +1 -0
  22. package/lib/Core/Components/ConfirmationModal.js +36 -0
  23. package/lib/Core/Components/ConfirmationModal.js.map +1 -0
  24. package/lib/Core/Components/ContextMenu/ContextMenuContainer.d.ts +17 -0
  25. package/lib/Core/Components/ContextMenu/ContextMenuContainer.d.ts.map +1 -0
  26. package/lib/Core/Components/ContextMenu/ContextMenuContainer.js +209 -0
  27. package/lib/Core/Components/ContextMenu/ContextMenuContainer.js.map +1 -0
  28. package/lib/Core/Components/ContextMenu/CopyPaste.d.ts +3 -0
  29. package/lib/Core/Components/ContextMenu/CopyPaste.d.ts.map +1 -0
  30. package/lib/Core/Components/ContextMenu/CopyPaste.js +22 -0
  31. package/lib/Core/Components/ContextMenu/CopyPaste.js.map +1 -0
  32. package/lib/Core/Components/ContextMenu/QuickFilter.d.ts +4 -0
  33. package/lib/Core/Components/ContextMenu/QuickFilter.d.ts.map +1 -0
  34. package/lib/Core/Components/ContextMenu/QuickFilter.js +82 -0
  35. package/lib/Core/Components/ContextMenu/QuickFilter.js.map +1 -0
  36. package/lib/Core/Components/DateValueDisplay.d.ts +13 -0
  37. package/lib/Core/Components/DateValueDisplay.d.ts.map +1 -0
  38. package/lib/Core/Components/DateValueDisplay.js +71 -0
  39. package/lib/Core/Components/DateValueDisplay.js.map +1 -0
  40. package/lib/Core/Components/DefaultComponents/Badge.d.ts +14 -0
  41. package/lib/Core/Components/DefaultComponents/Badge.d.ts.map +1 -0
  42. package/lib/Core/Components/DefaultComponents/Badge.js +15 -0
  43. package/lib/Core/Components/DefaultComponents/Badge.js.map +1 -0
  44. package/lib/Core/Components/DefaultComponents/CardItem.d.ts +3 -0
  45. package/lib/Core/Components/DefaultComponents/CardItem.d.ts.map +1 -0
  46. package/lib/Core/Components/DefaultComponents/CardItem.js +78 -0
  47. package/lib/Core/Components/DefaultComponents/CardItem.js.map +1 -0
  48. package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.d.ts +15 -0
  49. package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.d.ts.map +1 -0
  50. package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.js +18 -0
  51. package/lib/Core/Components/DefaultComponents/CellRenderers/Cell.js.map +1 -0
  52. package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.d.ts +5 -0
  53. package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.d.ts.map +1 -0
  54. package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.js +25 -0
  55. package/lib/Core/Components/DefaultComponents/CellRenderers/CheckCross.js.map +1 -0
  56. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.d.ts +13 -0
  57. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.d.ts.map +1 -0
  58. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.js +11 -0
  59. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Comma.js.map +1 -0
  60. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.d.ts +3 -0
  61. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.d.ts.map +1 -0
  62. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.js +10 -0
  63. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.js.map +1 -0
  64. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.d.ts +13 -0
  65. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.d.ts.map +1 -0
  66. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.js +11 -0
  67. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/ForwardSlash.js.map +1 -0
  68. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.d.ts +13 -0
  69. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.d.ts.map +1 -0
  70. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.js +15 -0
  71. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/MultiLine.js.map +1 -0
  72. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.d.ts +13 -0
  73. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.d.ts.map +1 -0
  74. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.js +11 -0
  75. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/Space.js.map +1 -0
  76. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.d.ts +12 -0
  77. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.d.ts.map +1 -0
  78. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.js +11 -0
  79. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/index.js.map +1 -0
  80. package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.d.ts +18 -0
  81. package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.d.ts.map +1 -0
  82. package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.js +51 -0
  83. package/lib/Core/Components/DefaultComponents/CellRenderers/CustomCell.js.map +1 -0
  84. package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.d.ts +13 -0
  85. package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.d.ts.map +1 -0
  86. package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.js +25 -0
  87. package/lib/Core/Components/DefaultComponents/CellRenderers/DefaultTextRenderer.js.map +1 -0
  88. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.d.ts +12 -0
  89. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.d.ts.map +1 -0
  90. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.js +35 -0
  91. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.js.map +1 -0
  92. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.d.ts +15 -0
  93. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.d.ts.map +1 -0
  94. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.js +49 -0
  95. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.js.map +1 -0
  96. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.d.ts +12 -0
  97. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.d.ts.map +1 -0
  98. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.js +44 -0
  99. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.js.map +1 -0
  100. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.d.ts +16 -0
  101. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.d.ts.map +1 -0
  102. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.js +64 -0
  103. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.js.map +1 -0
  104. package/lib/Core/Components/DefaultComponents/CellRenderers/Link.d.ts +7 -0
  105. package/lib/Core/Components/DefaultComponents/CellRenderers/Link.d.ts.map +1 -0
  106. package/lib/Core/Components/DefaultComponents/CellRenderers/Link.js +23 -0
  107. package/lib/Core/Components/DefaultComponents/CellRenderers/Link.js.map +1 -0
  108. package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.d.ts +19 -0
  109. package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.d.ts.map +1 -0
  110. package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.js +37 -0
  111. package/lib/Core/Components/DefaultComponents/CellRenderers/Operator.js.map +1 -0
  112. package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.d.ts +17 -0
  113. package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.d.ts.map +1 -0
  114. package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.js +50 -0
  115. package/lib/Core/Components/DefaultComponents/CellRenderers/RichText.js.map +1 -0
  116. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.d.ts +13 -0
  117. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.d.ts.map +1 -0
  118. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.js +67 -0
  119. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.js.map +1 -0
  120. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.d.ts +11 -0
  121. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.d.ts.map +1 -0
  122. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.js +11 -0
  123. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.js.map +1 -0
  124. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.d.ts +11 -0
  125. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.d.ts.map +1 -0
  126. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.js +13 -0
  127. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.js.map +1 -0
  128. package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.d.ts +15 -0
  129. package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.d.ts.map +1 -0
  130. package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.js +57 -0
  131. package/lib/Core/Components/DefaultComponents/CellRenderers/RowSelectHandle.js.map +1 -0
  132. package/lib/Core/Components/DefaultComponents/CellRenderers/index.d.ts +52 -0
  133. package/lib/Core/Components/DefaultComponents/CellRenderers/index.d.ts.map +1 -0
  134. package/lib/Core/Components/DefaultComponents/CellRenderers/index.js +29 -0
  135. package/lib/Core/Components/DefaultComponents/CellRenderers/index.js.map +1 -0
  136. package/lib/Core/Components/DefaultComponents/EmptyContainer.d.ts +3 -0
  137. package/lib/Core/Components/DefaultComponents/EmptyContainer.d.ts.map +1 -0
  138. package/lib/Core/Components/DefaultComponents/EmptyContainer.js +25 -0
  139. package/lib/Core/Components/DefaultComponents/EmptyContainer.js.map +1 -0
  140. package/lib/Core/Components/DefaultComponents/Filter.d.ts +15 -0
  141. package/lib/Core/Components/DefaultComponents/Filter.d.ts.map +1 -0
  142. package/lib/Core/Components/DefaultComponents/Filter.js +18 -0
  143. package/lib/Core/Components/DefaultComponents/Filter.js.map +1 -0
  144. package/lib/Core/Components/DefaultComponents/HeaderCell.d.ts +17 -0
  145. package/lib/Core/Components/DefaultComponents/HeaderCell.d.ts.map +1 -0
  146. package/lib/Core/Components/DefaultComponents/HeaderCell.js +21 -0
  147. package/lib/Core/Components/DefaultComponents/HeaderCell.js.map +1 -0
  148. package/lib/Core/Components/DefaultComponents/LoadingIndicator.d.ts +3 -0
  149. package/lib/Core/Components/DefaultComponents/LoadingIndicator.d.ts.map +1 -0
  150. package/lib/Core/Components/DefaultComponents/LoadingIndicator.js +9 -0
  151. package/lib/Core/Components/DefaultComponents/LoadingIndicator.js.map +1 -0
  152. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.d.ts +24 -0
  153. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.d.ts.map +1 -0
  154. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.js +102 -0
  155. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.js.map +1 -0
  156. package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.d.ts +16 -0
  157. package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.d.ts.map +1 -0
  158. package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.js +26 -0
  159. package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.js.map +1 -0
  160. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.d.ts +25 -0
  161. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.d.ts.map +1 -0
  162. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.js +85 -0
  163. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.js.map +1 -0
  164. package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.d.ts +16 -0
  165. package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.d.ts.map +1 -0
  166. package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.js +26 -0
  167. package/lib/Core/Components/DefaultComponents/PersonalizationUnsavedWarning.js.map +1 -0
  168. package/lib/Core/Components/DefaultComponents/RowHeight.d.ts +13 -0
  169. package/lib/Core/Components/DefaultComponents/RowHeight.d.ts.map +1 -0
  170. package/lib/Core/Components/DefaultComponents/RowHeight.js +20 -0
  171. package/lib/Core/Components/DefaultComponents/RowHeight.js.map +1 -0
  172. package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.d.ts +15 -0
  173. package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.d.ts.map +1 -0
  174. package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.js +40 -0
  175. package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.js.map +1 -0
  176. package/lib/Core/Components/DefaultComponents/Sort.d.ts +15 -0
  177. package/lib/Core/Components/DefaultComponents/Sort.d.ts.map +1 -0
  178. package/lib/Core/Components/DefaultComponents/Sort.js +21 -0
  179. package/lib/Core/Components/DefaultComponents/Sort.js.map +1 -0
  180. package/lib/Core/Components/DefaultComponents/index.d.ts +96 -0
  181. package/lib/Core/Components/DefaultComponents/index.d.ts.map +1 -0
  182. package/lib/Core/Components/DefaultComponents/index.js +53 -0
  183. package/lib/Core/Components/DefaultComponents/index.js.map +1 -0
  184. package/lib/Core/Components/DynamicFieldConfiguration.d.ts +23 -0
  185. package/lib/Core/Components/DynamicFieldConfiguration.d.ts.map +1 -0
  186. package/lib/Core/Components/DynamicFieldConfiguration.js +92 -0
  187. package/lib/Core/Components/DynamicFieldConfiguration.js.map +1 -0
  188. package/lib/Core/Components/EmptyContainer.d.ts +5 -0
  189. package/lib/Core/Components/EmptyContainer.d.ts.map +1 -0
  190. package/lib/Core/Components/EmptyContainer.js +12 -0
  191. package/lib/Core/Components/EmptyContainer.js.map +1 -0
  192. package/lib/Core/Components/FieldTypeIcon.d.ts +13 -0
  193. package/lib/Core/Components/FieldTypeIcon.d.ts.map +1 -0
  194. package/lib/Core/Components/FieldTypeIcon.js +17 -0
  195. package/lib/Core/Components/FieldTypeIcon.js.map +1 -0
  196. package/lib/Core/Components/Filters/AdvanceFilter.d.ts +16 -0
  197. package/lib/Core/Components/Filters/AdvanceFilter.d.ts.map +1 -0
  198. package/lib/Core/Components/Filters/AdvanceFilter.js +29 -0
  199. package/lib/Core/Components/Filters/AdvanceFilter.js.map +1 -0
  200. package/lib/Core/Components/Filters/BooleanFilter.d.ts +17 -0
  201. package/lib/Core/Components/Filters/BooleanFilter.d.ts.map +1 -0
  202. package/lib/Core/Components/Filters/BooleanFilter.js +43 -0
  203. package/lib/Core/Components/Filters/BooleanFilter.js.map +1 -0
  204. package/lib/Core/Components/Filters/CommonFilter.d.ts +17 -0
  205. package/lib/Core/Components/Filters/CommonFilter.d.ts.map +1 -0
  206. package/lib/Core/Components/Filters/CommonFilter.js +67 -0
  207. package/lib/Core/Components/Filters/CommonFilter.js.map +1 -0
  208. package/lib/Core/Components/Filters/Filter.d.ts +18 -0
  209. package/lib/Core/Components/Filters/Filter.d.ts.map +1 -0
  210. package/lib/Core/Components/Filters/Filter.js +20 -0
  211. package/lib/Core/Components/Filters/Filter.js.map +1 -0
  212. package/lib/Core/Components/Filters/FilterMenu.d.ts +15 -0
  213. package/lib/Core/Components/Filters/FilterMenu.d.ts.map +1 -0
  214. package/lib/Core/Components/Filters/FilterMenu.js +32 -0
  215. package/lib/Core/Components/Filters/FilterMenu.js.map +1 -0
  216. package/lib/Core/Components/Filters/FilterType.d.ts +18 -0
  217. package/lib/Core/Components/Filters/FilterType.d.ts.map +1 -0
  218. package/lib/Core/Components/Filters/FilterType.js +35 -0
  219. package/lib/Core/Components/Filters/FilterType.js.map +1 -0
  220. package/lib/Core/Components/Filters/Hooks/useFilterSubmit.d.ts +5 -0
  221. package/lib/Core/Components/Filters/Hooks/useFilterSubmit.d.ts.map +1 -0
  222. package/lib/Core/Components/Filters/Hooks/useFilterSubmit.js +10 -0
  223. package/lib/Core/Components/Filters/Hooks/useFilterSubmit.js.map +1 -0
  224. package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.d.ts +2 -0
  225. package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.d.ts.map +1 -0
  226. package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.js +14 -0
  227. package/lib/Core/Components/Filters/Hooks/useValidRhsTypes.js.map +1 -0
  228. package/lib/Core/Components/Filters/InputWrapper.d.ts +28 -0
  229. package/lib/Core/Components/Filters/InputWrapper.d.ts.map +1 -0
  230. package/lib/Core/Components/Filters/InputWrapper.js +40 -0
  231. package/lib/Core/Components/Filters/InputWrapper.js.map +1 -0
  232. package/lib/Core/Components/Filters/SelectFilter.d.ts +17 -0
  233. package/lib/Core/Components/Filters/SelectFilter.d.ts.map +1 -0
  234. package/lib/Core/Components/Filters/SelectFilter.js +116 -0
  235. package/lib/Core/Components/Filters/SelectFilter.js.map +1 -0
  236. package/lib/Core/Components/Filters/SimpleFilter.d.ts +17 -0
  237. package/lib/Core/Components/Filters/SimpleFilter.d.ts.map +1 -0
  238. package/lib/Core/Components/Filters/SimpleFilter.js +38 -0
  239. package/lib/Core/Components/Filters/SimpleFilter.js.map +1 -0
  240. package/lib/Core/Components/Filters/config.d.ts +75 -0
  241. package/lib/Core/Components/Filters/config.d.ts.map +1 -0
  242. package/lib/Core/Components/Filters/config.js +244 -0
  243. package/lib/Core/Components/Filters/config.js.map +1 -0
  244. package/lib/Core/Components/Filters/styles.d.ts +3 -0
  245. package/lib/Core/Components/Filters/styles.d.ts.map +1 -0
  246. package/lib/Core/Components/Filters/styles.js +30 -0
  247. package/lib/Core/Components/Filters/styles.js.map +1 -0
  248. package/lib/Core/Components/Footer.d.ts +13 -0
  249. package/lib/Core/Components/Footer.d.ts.map +1 -0
  250. package/lib/Core/Components/Footer.js +22 -0
  251. package/lib/Core/Components/Footer.js.map +1 -0
  252. package/lib/Core/Components/FooterAggregators.d.ts +16 -0
  253. package/lib/Core/Components/FooterAggregators.d.ts.map +1 -0
  254. package/lib/Core/Components/FooterAggregators.js +29 -0
  255. package/lib/Core/Components/FooterAggregators.js.map +1 -0
  256. package/lib/Core/Components/FreezeLine.d.ts +13 -0
  257. package/lib/Core/Components/FreezeLine.d.ts.map +1 -0
  258. package/lib/Core/Components/FreezeLine.js +13 -0
  259. package/lib/Core/Components/FreezeLine.js.map +1 -0
  260. package/lib/Core/Components/GroupRenderer.d.ts +15 -0
  261. package/lib/Core/Components/GroupRenderer.d.ts.map +1 -0
  262. package/lib/Core/Components/GroupRenderer.js +212 -0
  263. package/lib/Core/Components/GroupRenderer.js.map +1 -0
  264. package/lib/Core/Components/Grouping/GroupingMenu.d.ts +15 -0
  265. package/lib/Core/Components/Grouping/GroupingMenu.d.ts.map +1 -0
  266. package/lib/Core/Components/Grouping/GroupingMenu.js +66 -0
  267. package/lib/Core/Components/Grouping/GroupingMenu.js.map +1 -0
  268. package/lib/Core/Components/HeaderCell.d.ts +17 -0
  269. package/lib/Core/Components/HeaderCell.d.ts.map +1 -0
  270. package/lib/Core/Components/HeaderCell.js +30 -0
  271. package/lib/Core/Components/HeaderCell.js.map +1 -0
  272. package/lib/Core/Components/HeaderMenu/actions.d.ts +15 -0
  273. package/lib/Core/Components/HeaderMenu/actions.d.ts.map +1 -0
  274. package/lib/Core/Components/HeaderMenu/actions.js +211 -0
  275. package/lib/Core/Components/HeaderMenu/actions.js.map +1 -0
  276. package/lib/Core/Components/HeaderMenu/index.d.ts +23 -0
  277. package/lib/Core/Components/HeaderMenu/index.d.ts.map +1 -0
  278. package/lib/Core/Components/HeaderMenu/index.js +187 -0
  279. package/lib/Core/Components/HeaderMenu/index.js.map +1 -0
  280. package/lib/Core/Components/HierarchicalCell.d.ts +23 -0
  281. package/lib/Core/Components/HierarchicalCell.d.ts.map +1 -0
  282. package/lib/Core/Components/HierarchicalCell.js +30 -0
  283. package/lib/Core/Components/HierarchicalCell.js.map +1 -0
  284. package/lib/Core/Components/HierarchicalGroupFooters.d.ts +32 -0
  285. package/lib/Core/Components/HierarchicalGroupFooters.d.ts.map +1 -0
  286. package/lib/Core/Components/HierarchicalGroupFooters.js +58 -0
  287. package/lib/Core/Components/HierarchicalGroupFooters.js.map +1 -0
  288. package/lib/Core/Components/HierarchicalGroupRenderer.d.ts +31 -0
  289. package/lib/Core/Components/HierarchicalGroupRenderer.d.ts.map +1 -0
  290. package/lib/Core/Components/HierarchicalGroupRenderer.js +230 -0
  291. package/lib/Core/Components/HierarchicalGroupRenderer.js.map +1 -0
  292. package/lib/Core/Components/LoadingIndicator.d.ts +15 -0
  293. package/lib/Core/Components/LoadingIndicator.d.ts.map +1 -0
  294. package/lib/Core/Components/LoadingIndicator.js +15 -0
  295. package/lib/Core/Components/LoadingIndicator.js.map +1 -0
  296. package/lib/Core/Components/NotificationManager.d.ts +13 -0
  297. package/lib/Core/Components/NotificationManager.d.ts.map +1 -0
  298. package/lib/Core/Components/NotificationManager.js +44 -0
  299. package/lib/Core/Components/NotificationManager.js.map +1 -0
  300. package/lib/Core/Components/RFColumnConfigurator.d.ts +19 -0
  301. package/lib/Core/Components/RFColumnConfigurator.d.ts.map +1 -0
  302. package/lib/Core/Components/RFColumnConfigurator.js +90 -0
  303. package/lib/Core/Components/RFColumnConfigurator.js.map +1 -0
  304. package/lib/Core/Components/RSWrapper/HeaderBarGadget.d.ts +13 -0
  305. package/lib/Core/Components/RSWrapper/HeaderBarGadget.d.ts.map +1 -0
  306. package/lib/Core/Components/RSWrapper/HeaderBarGadget.js +52 -0
  307. package/lib/Core/Components/RSWrapper/HeaderBarGadget.js.map +1 -0
  308. package/lib/Core/Components/RSWrapper/Personalization.d.ts +13 -0
  309. package/lib/Core/Components/RSWrapper/Personalization.d.ts.map +1 -0
  310. package/lib/Core/Components/RSWrapper/Personalization.js +61 -0
  311. package/lib/Core/Components/RSWrapper/Personalization.js.map +1 -0
  312. package/lib/Core/Components/RSWrapper/__mocks__/uuid.d.ts +2 -0
  313. package/lib/Core/Components/RSWrapper/__mocks__/uuid.d.ts.map +1 -0
  314. package/lib/Core/Components/RSWrapper/__mocks__/uuid.js +4 -0
  315. package/lib/Core/Components/RSWrapper/__mocks__/uuid.js.map +1 -0
  316. package/lib/Core/Components/RSWrapper/index.d.ts +6 -0
  317. package/lib/Core/Components/RSWrapper/index.d.ts.map +1 -0
  318. package/lib/Core/Components/RSWrapper/index.js +83 -0
  319. package/lib/Core/Components/RSWrapper/index.js.map +1 -0
  320. package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.d.ts +3 -0
  321. package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.d.ts.map +1 -0
  322. package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.js +65 -0
  323. package/lib/Core/Components/RenderingEngine/ComponentResolverFactory.js.map +1 -0
  324. package/lib/Core/Components/RenderingEngine/ErrorHandler.d.ts +2 -0
  325. package/lib/Core/Components/RenderingEngine/ErrorHandler.d.ts.map +1 -0
  326. package/lib/Core/Components/RenderingEngine/ErrorHandler.js +2 -0
  327. package/lib/Core/Components/RenderingEngine/ErrorHandler.js.map +1 -0
  328. package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.d.ts +2 -0
  329. package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.d.ts.map +1 -0
  330. package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.js +2 -0
  331. package/lib/Core/Components/RenderingEngine/ExpresssionEvaluator.js.map +1 -0
  332. package/lib/Core/Components/RenderingEngine/Flasher.d.ts +2 -0
  333. package/lib/Core/Components/RenderingEngine/Flasher.d.ts.map +1 -0
  334. package/lib/Core/Components/RenderingEngine/Flasher.js +2 -0
  335. package/lib/Core/Components/RenderingEngine/Flasher.js.map +1 -0
  336. package/lib/Core/Components/RenderingEngine/Formatter.d.ts +2 -0
  337. package/lib/Core/Components/RenderingEngine/Formatter.d.ts.map +1 -0
  338. package/lib/Core/Components/RenderingEngine/Formatter.js +24 -0
  339. package/lib/Core/Components/RenderingEngine/Formatter.js.map +1 -0
  340. package/lib/Core/Components/RenderingEngine/RenderCell.d.ts +16 -0
  341. package/lib/Core/Components/RenderingEngine/RenderCell.d.ts.map +1 -0
  342. package/lib/Core/Components/RenderingEngine/RenderCell.js +48 -0
  343. package/lib/Core/Components/RenderingEngine/RenderCell.js.map +1 -0
  344. package/lib/Core/Components/RenderingEngine/RenderView.d.ts +8 -0
  345. package/lib/Core/Components/RenderingEngine/RenderView.d.ts.map +1 -0
  346. package/lib/Core/Components/RenderingEngine/RenderView.js +25 -0
  347. package/lib/Core/Components/RenderingEngine/RenderView.js.map +1 -0
  348. package/lib/Core/Components/RenderingEngine/Util.d.ts +2 -0
  349. package/lib/Core/Components/RenderingEngine/Util.d.ts.map +1 -0
  350. package/lib/Core/Components/RenderingEngine/Util.js +36 -0
  351. package/lib/Core/Components/RenderingEngine/Util.js.map +1 -0
  352. package/lib/Core/Components/RenderingEngine/ValueRenderer.d.ts +14 -0
  353. package/lib/Core/Components/RenderingEngine/ValueRenderer.d.ts.map +1 -0
  354. package/lib/Core/Components/RenderingEngine/ValueRenderer.js +12 -0
  355. package/lib/Core/Components/RenderingEngine/ValueRenderer.js.map +1 -0
  356. package/lib/Core/Components/RenderingEngine/useHighlighter.d.ts +5 -0
  357. package/lib/Core/Components/RenderingEngine/useHighlighter.d.ts.map +1 -0
  358. package/lib/Core/Components/RenderingEngine/useHighlighter.js +52 -0
  359. package/lib/Core/Components/RenderingEngine/useHighlighter.js.map +1 -0
  360. package/lib/Core/Components/TestIdConstants.d.ts +15 -0
  361. package/lib/Core/Components/TestIdConstants.d.ts.map +1 -0
  362. package/lib/Core/Components/TestIdConstants.js +14 -0
  363. package/lib/Core/Components/TestIdConstants.js.map +1 -0
  364. package/lib/Core/Components/Toolbar/ActionsMenu.d.ts +15 -0
  365. package/lib/Core/Components/Toolbar/ActionsMenu.d.ts.map +1 -0
  366. package/lib/Core/Components/Toolbar/ActionsMenu.js +58 -0
  367. package/lib/Core/Components/Toolbar/ActionsMenu.js.map +1 -0
  368. package/lib/Core/Components/Toolbar/AdvanceToolbar.d.ts +14 -0
  369. package/lib/Core/Components/Toolbar/AdvanceToolbar.d.ts.map +1 -0
  370. package/lib/Core/Components/Toolbar/AdvanceToolbar.js +59 -0
  371. package/lib/Core/Components/Toolbar/AdvanceToolbar.js.map +1 -0
  372. package/lib/Core/Components/Toolbar/AnnounceRowsCount.d.ts +20 -0
  373. package/lib/Core/Components/Toolbar/AnnounceRowsCount.d.ts.map +1 -0
  374. package/lib/Core/Components/Toolbar/AnnounceRowsCount.js +14 -0
  375. package/lib/Core/Components/Toolbar/AnnounceRowsCount.js.map +1 -0
  376. package/lib/Core/Components/Toolbar/ColumnSelector.d.ts +35 -0
  377. package/lib/Core/Components/Toolbar/ColumnSelector.d.ts.map +1 -0
  378. package/lib/Core/Components/Toolbar/ColumnSelector.js +141 -0
  379. package/lib/Core/Components/Toolbar/ColumnSelector.js.map +1 -0
  380. package/lib/Core/Components/Toolbar/DebugInfo.d.ts +14 -0
  381. package/lib/Core/Components/Toolbar/DebugInfo.d.ts.map +1 -0
  382. package/lib/Core/Components/Toolbar/DebugInfo.js +48 -0
  383. package/lib/Core/Components/Toolbar/DebugInfo.js.map +1 -0
  384. package/lib/Core/Components/Toolbar/FieldSelector.d.ts +19 -0
  385. package/lib/Core/Components/Toolbar/FieldSelector.d.ts.map +1 -0
  386. package/lib/Core/Components/Toolbar/FieldSelector.js +53 -0
  387. package/lib/Core/Components/Toolbar/FieldSelector.js.map +1 -0
  388. package/lib/Core/Components/Toolbar/Grouping.types.d.ts +22 -0
  389. package/lib/Core/Components/Toolbar/Grouping.types.d.ts.map +1 -0
  390. package/lib/Core/Components/Toolbar/Grouping.types.js +2 -0
  391. package/lib/Core/Components/Toolbar/Grouping.types.js.map +1 -0
  392. package/lib/Core/Components/Toolbar/Map/MapToolbar.d.ts +9 -0
  393. package/lib/Core/Components/Toolbar/Map/MapToolbar.d.ts.map +1 -0
  394. package/lib/Core/Components/Toolbar/Map/MapToolbar.js +27 -0
  395. package/lib/Core/Components/Toolbar/Map/MapToolbar.js.map +1 -0
  396. package/lib/Core/Components/Toolbar/RefreshBanner.d.ts +15 -0
  397. package/lib/Core/Components/Toolbar/RefreshBanner.d.ts.map +1 -0
  398. package/lib/Core/Components/Toolbar/RefreshBanner.js +28 -0
  399. package/lib/Core/Components/Toolbar/RefreshBanner.js.map +1 -0
  400. package/lib/Core/Components/Toolbar/SimpleToolbar.d.ts +14 -0
  401. package/lib/Core/Components/Toolbar/SimpleToolbar.d.ts.map +1 -0
  402. package/lib/Core/Components/Toolbar/SimpleToolbar.js +22 -0
  403. package/lib/Core/Components/Toolbar/SimpleToolbar.js.map +1 -0
  404. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.d.ts +8 -0
  405. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.d.ts.map +1 -0
  406. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.js +61 -0
  407. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.js.map +1 -0
  408. package/lib/Core/Components/Toolbar/ToolbarActions.d.ts +20 -0
  409. package/lib/Core/Components/Toolbar/ToolbarActions.d.ts.map +1 -0
  410. package/lib/Core/Components/Toolbar/ToolbarActions.js +28 -0
  411. package/lib/Core/Components/Toolbar/ToolbarActions.js.map +1 -0
  412. package/lib/Core/Components/Toolbar/ValidateMessage.d.ts +17 -0
  413. package/lib/Core/Components/Toolbar/ValidateMessage.d.ts.map +1 -0
  414. package/lib/Core/Components/Toolbar/ValidateMessage.js +44 -0
  415. package/lib/Core/Components/Toolbar/ValidateMessage.js.map +1 -0
  416. package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.d.ts +3 -0
  417. package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.d.ts.map +1 -0
  418. package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.js +37 -0
  419. package/lib/Core/Components/Toolbar/hooks/useAnnounceRowsCount.js.map +1 -0
  420. package/lib/Core/Components/Toolbar/hooks/useFilter.d.ts +10 -0
  421. package/lib/Core/Components/Toolbar/hooks/useFilter.d.ts.map +1 -0
  422. package/lib/Core/Components/Toolbar/hooks/useFilter.js +43 -0
  423. package/lib/Core/Components/Toolbar/hooks/useFilter.js.map +1 -0
  424. package/lib/Core/Components/Toolbar/hooks/useFormControlProps.d.ts +5 -0
  425. package/lib/Core/Components/Toolbar/hooks/useFormControlProps.d.ts.map +1 -0
  426. package/lib/Core/Components/Toolbar/hooks/useFormControlProps.js +18 -0
  427. package/lib/Core/Components/Toolbar/hooks/useFormControlProps.js.map +1 -0
  428. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts +24 -0
  429. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts.map +1 -0
  430. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js +58 -0
  431. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js.map +1 -0
  432. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts +16 -0
  433. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts.map +1 -0
  434. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js +110 -0
  435. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js.map +1 -0
  436. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.d.ts +11 -0
  437. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.d.ts.map +1 -0
  438. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js +75 -0
  439. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js.map +1 -0
  440. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts +11 -0
  441. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts.map +1 -0
  442. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js +61 -0
  443. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js.map +1 -0
  444. package/lib/Core/Components/Toolbar/hooks/useMore.d.ts +9 -0
  445. package/lib/Core/Components/Toolbar/hooks/useMore.d.ts.map +1 -0
  446. package/lib/Core/Components/Toolbar/hooks/useMore.js +317 -0
  447. package/lib/Core/Components/Toolbar/hooks/useMore.js.map +1 -0
  448. package/lib/Core/Components/Toolbar/hooks/usePersonalization.d.ts +13 -0
  449. package/lib/Core/Components/Toolbar/hooks/usePersonalization.d.ts.map +1 -0
  450. package/lib/Core/Components/Toolbar/hooks/usePersonalization.js +17 -0
  451. package/lib/Core/Components/Toolbar/hooks/usePersonalization.js.map +1 -0
  452. package/lib/Core/Components/Toolbar/hooks/useRowFocus.d.ts +6 -0
  453. package/lib/Core/Components/Toolbar/hooks/useRowFocus.d.ts.map +1 -0
  454. package/lib/Core/Components/Toolbar/hooks/useRowFocus.js +13 -0
  455. package/lib/Core/Components/Toolbar/hooks/useRowFocus.js.map +1 -0
  456. package/lib/Core/Components/Toolbar/hooks/useSearch.d.ts +11 -0
  457. package/lib/Core/Components/Toolbar/hooks/useSearch.d.ts.map +1 -0
  458. package/lib/Core/Components/Toolbar/hooks/useSearch.js +38 -0
  459. package/lib/Core/Components/Toolbar/hooks/useSearch.js.map +1 -0
  460. package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts +44 -0
  461. package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts.map +1 -0
  462. package/lib/Core/Components/Toolbar/hooks/useSort/Row.js +54 -0
  463. package/lib/Core/Components/Toolbar/hooks/useSort/Row.js.map +1 -0
  464. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts +13 -0
  465. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts.map +1 -0
  466. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js +81 -0
  467. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js.map +1 -0
  468. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.d.ts +11 -0
  469. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.d.ts.map +1 -0
  470. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js +41 -0
  471. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js.map +1 -0
  472. package/lib/Core/Components/Toolbar/hooks/useSort/utils.d.ts +8 -0
  473. package/lib/Core/Components/Toolbar/hooks/useSort/utils.d.ts.map +1 -0
  474. package/lib/Core/Components/Toolbar/hooks/useSort/utils.js +19 -0
  475. package/lib/Core/Components/Toolbar/hooks/useSort/utils.js.map +1 -0
  476. package/lib/Core/Components/Toolbar/index.d.ts +14 -0
  477. package/lib/Core/Components/Toolbar/index.d.ts.map +1 -0
  478. package/lib/Core/Components/Toolbar/index.js +13 -0
  479. package/lib/Core/Components/Toolbar/index.js.map +1 -0
  480. package/lib/Core/Components/Toolbar/utils/getCount.d.ts +9 -0
  481. package/lib/Core/Components/Toolbar/utils/getCount.d.ts.map +1 -0
  482. package/lib/Core/Components/Toolbar/utils/getCount.js +22 -0
  483. package/lib/Core/Components/Toolbar/utils/getCount.js.map +1 -0
  484. package/lib/Core/Components/Toolbar/utils/utils.d.ts +51 -0
  485. package/lib/Core/Components/Toolbar/utils/utils.d.ts.map +1 -0
  486. package/lib/Core/Components/Toolbar/utils/utils.js +100 -0
  487. package/lib/Core/Components/Toolbar/utils/utils.js.map +1 -0
  488. package/lib/Core/Components/Virtualise/Pagination.d.ts +13 -0
  489. package/lib/Core/Components/Virtualise/Pagination.d.ts.map +1 -0
  490. package/lib/Core/Components/Virtualise/Pagination.js +228 -0
  491. package/lib/Core/Components/Virtualise/Pagination.js.map +1 -0
  492. package/lib/Core/Components/Virtualise/UseResizeObserver.d.ts +2 -0
  493. package/lib/Core/Components/Virtualise/UseResizeObserver.d.ts.map +1 -0
  494. package/lib/Core/Components/Virtualise/UseResizeObserver.js +18 -0
  495. package/lib/Core/Components/Virtualise/UseResizeObserver.js.map +1 -0
  496. package/lib/Core/Components/Virtualise/UseScroll.d.ts +3 -0
  497. package/lib/Core/Components/Virtualise/UseScroll.d.ts.map +1 -0
  498. package/lib/Core/Components/Virtualise/UseScroll.js +92 -0
  499. package/lib/Core/Components/Virtualise/UseScroll.js.map +1 -0
  500. package/lib/Core/Components/Virtualise/VirtualizeInfinite.d.ts +3 -0
  501. package/lib/Core/Components/Virtualise/VirtualizeInfinite.d.ts.map +1 -0
  502. package/lib/Core/Components/Virtualise/VirtualizeInfinite.js +328 -0
  503. package/lib/Core/Components/Virtualise/VirtualizeInfinite.js.map +1 -0
  504. package/lib/Core/Components/Virtualise/index.d.ts +3 -0
  505. package/lib/Core/Components/Virtualise/index.d.ts.map +1 -0
  506. package/lib/Core/Components/Virtualise/index.js +313 -0
  507. package/lib/Core/Components/Virtualise/index.js.map +1 -0
  508. package/lib/Core/Components/Virtualise/utility.d.ts +63 -0
  509. package/lib/Core/Components/Virtualise/utility.d.ts.map +1 -0
  510. package/lib/Core/Components/Virtualise/utility.js +209 -0
  511. package/lib/Core/Components/Virtualise/utility.js.map +1 -0
  512. package/lib/Core/Context/GlobalContext.d.ts +8 -0
  513. package/lib/Core/Context/GlobalContext.d.ts.map +1 -0
  514. package/lib/Core/Context/GlobalContext.js +7 -0
  515. package/lib/Core/Context/GlobalContext.js.map +1 -0
  516. package/lib/Core/Context/LocalizationContext.d.ts +13 -0
  517. package/lib/Core/Context/LocalizationContext.d.ts.map +1 -0
  518. package/lib/Core/Context/LocalizationContext.js +16 -0
  519. package/lib/Core/Context/LocalizationContext.js.map +1 -0
  520. package/lib/Core/Context/ToolbarContext.d.ts +8 -0
  521. package/lib/Core/Context/ToolbarContext.d.ts.map +1 -0
  522. package/lib/Core/Context/ToolbarContext.js +7 -0
  523. package/lib/Core/Context/ToolbarContext.js.map +1 -0
  524. package/lib/Core/Hooks/UseDebounce.d.ts +2 -0
  525. package/lib/Core/Hooks/UseDebounce.d.ts.map +1 -0
  526. package/lib/Core/Hooks/UseDebounce.js +15 -0
  527. package/lib/Core/Hooks/UseDebounce.js.map +1 -0
  528. package/lib/Core/Hooks/UseOuterEvent.d.ts +2 -0
  529. package/lib/Core/Hooks/UseOuterEvent.d.ts.map +1 -0
  530. package/lib/Core/Hooks/UseOuterEvent.js +30 -0
  531. package/lib/Core/Hooks/UseOuterEvent.js.map +1 -0
  532. package/lib/Core/Hooks/UseReactToProps.d.ts +2 -0
  533. package/lib/Core/Hooks/UseReactToProps.d.ts.map +1 -0
  534. package/lib/Core/Hooks/UseReactToProps.js +8 -0
  535. package/lib/Core/Hooks/UseReactToProps.js.map +1 -0
  536. package/lib/Core/Hooks/UseScrollAway.d.ts +2 -0
  537. package/lib/Core/Hooks/UseScrollAway.d.ts.map +1 -0
  538. package/lib/Core/Hooks/UseScrollAway.js +30 -0
  539. package/lib/Core/Hooks/UseScrollAway.js.map +1 -0
  540. package/lib/Core/Hooks/UseSelect.d.ts +2 -0
  541. package/lib/Core/Hooks/UseSelect.d.ts.map +1 -0
  542. package/lib/Core/Hooks/UseSelect.js +17 -0
  543. package/lib/Core/Hooks/UseSelect.js.map +1 -0
  544. package/lib/Core/Hooks/UseThrottle.d.ts +2 -0
  545. package/lib/Core/Hooks/UseThrottle.d.ts.map +1 -0
  546. package/lib/Core/Hooks/UseThrottle.js +14 -0
  547. package/lib/Core/Hooks/UseThrottle.js.map +1 -0
  548. package/lib/Core/Hooks/UseThunkReducer.d.ts +3 -0
  549. package/lib/Core/Hooks/UseThunkReducer.d.ts.map +1 -0
  550. package/lib/Core/Hooks/UseThunkReducer.js +15 -0
  551. package/lib/Core/Hooks/UseThunkReducer.js.map +1 -0
  552. package/lib/Core/Hooks/a11y/index.d.ts +3 -0
  553. package/lib/Core/Hooks/a11y/index.d.ts.map +1 -0
  554. package/lib/Core/Hooks/a11y/index.js +4 -0
  555. package/lib/Core/Hooks/a11y/index.js.map +1 -0
  556. package/lib/Core/Hooks/a11y/useAnnounceGroup.d.ts +3 -0
  557. package/lib/Core/Hooks/a11y/useAnnounceGroup.d.ts.map +1 -0
  558. package/lib/Core/Hooks/a11y/useAnnounceGroup.js +45 -0
  559. package/lib/Core/Hooks/a11y/useAnnounceGroup.js.map +1 -0
  560. package/lib/Core/Hooks/a11y/useKeyboardA11y.d.ts +16 -0
  561. package/lib/Core/Hooks/a11y/useKeyboardA11y.d.ts.map +1 -0
  562. package/lib/Core/Hooks/a11y/useKeyboardA11y.js +147 -0
  563. package/lib/Core/Hooks/a11y/useKeyboardA11y.js.map +1 -0
  564. package/lib/Core/Hooks/useConfirmationModal.d.ts +5 -0
  565. package/lib/Core/Hooks/useConfirmationModal.d.ts.map +1 -0
  566. package/lib/Core/Hooks/useConfirmationModal.js +42 -0
  567. package/lib/Core/Hooks/useConfirmationModal.js.map +1 -0
  568. package/lib/Core/Hooks/useDragDrop.d.ts +25 -0
  569. package/lib/Core/Hooks/useDragDrop.d.ts.map +1 -0
  570. package/lib/Core/Hooks/useDragDrop.js +217 -0
  571. package/lib/Core/Hooks/useDragDrop.js.map +1 -0
  572. package/lib/Core/Hooks/useRepeat.d.ts +18 -0
  573. package/lib/Core/Hooks/useRepeat.d.ts.map +1 -0
  574. package/lib/Core/Hooks/useRepeat.js +174 -0
  575. package/lib/Core/Hooks/useRepeat.js.map +1 -0
  576. package/lib/Core/Hooks/useSingleClick.d.ts +2 -0
  577. package/lib/Core/Hooks/useSingleClick.d.ts.map +1 -0
  578. package/lib/Core/Hooks/useSingleClick.js +17 -0
  579. package/lib/Core/Hooks/useSingleClick.js.map +1 -0
  580. package/lib/Core/Hooks/useSmallScreen.d.ts +4 -0
  581. package/lib/Core/Hooks/useSmallScreen.d.ts.map +1 -0
  582. package/lib/Core/Hooks/useSmallScreen.js +11 -0
  583. package/lib/Core/Hooks/useSmallScreen.js.map +1 -0
  584. package/lib/Core/Hooks/useTranslate.d.ts +2 -0
  585. package/lib/Core/Hooks/useTranslate.d.ts.map +1 -0
  586. package/lib/Core/Hooks/useTranslate.js +7 -0
  587. package/lib/Core/Hooks/useTranslate.js.map +1 -0
  588. package/lib/Core/Localization/defaultTranslations.d.ts +144 -0
  589. package/lib/Core/Localization/defaultTranslations.d.ts.map +1 -0
  590. package/lib/Core/Localization/defaultTranslations.js +145 -0
  591. package/lib/Core/Localization/defaultTranslations.js.map +1 -0
  592. package/lib/Core/Localization/translateCosmosLiteralsUtils.d.ts +6 -0
  593. package/lib/Core/Localization/translateCosmosLiteralsUtils.d.ts.map +1 -0
  594. package/lib/Core/Localization/translateCosmosLiteralsUtils.js +15 -0
  595. package/lib/Core/Localization/translateCosmosLiteralsUtils.js.map +1 -0
  596. package/lib/Core/Test/JUnitMocks.d.ts +1015 -0
  597. package/lib/Core/Test/JUnitMocks.d.ts.map +1 -0
  598. package/lib/Core/Test/JUnitMocks.js +619 -0
  599. package/lib/Core/Test/JUnitMocks.js.map +1 -0
  600. package/lib/Core/Test/TestUtils.d.ts +9 -0
  601. package/lib/Core/Test/TestUtils.d.ts.map +1 -0
  602. package/lib/Core/Test/TestUtils.js +25 -0
  603. package/lib/Core/Test/TestUtils.js.map +1 -0
  604. package/lib/Core/Utils/index.d.ts +19 -0
  605. package/lib/Core/Utils/index.d.ts.map +1 -0
  606. package/lib/Core/Utils/index.js +93 -0
  607. package/lib/Core/Utils/index.js.map +1 -0
  608. package/lib/Core/Views/Gallery/GalleryA11y.d.ts +13 -0
  609. package/lib/Core/Views/Gallery/GalleryA11y.d.ts.map +1 -0
  610. package/lib/Core/Views/Gallery/GalleryA11y.js +57 -0
  611. package/lib/Core/Views/Gallery/GalleryA11y.js.map +1 -0
  612. package/lib/Core/Views/Gallery/ItemWrapper.d.ts +19 -0
  613. package/lib/Core/Views/Gallery/ItemWrapper.d.ts.map +1 -0
  614. package/lib/Core/Views/Gallery/ItemWrapper.js +29 -0
  615. package/lib/Core/Views/Gallery/ItemWrapper.js.map +1 -0
  616. package/lib/Core/Views/Gallery/StyledGalleryContainer.d.ts +3 -0
  617. package/lib/Core/Views/Gallery/StyledGalleryContainer.d.ts.map +1 -0
  618. package/lib/Core/Views/Gallery/StyledGalleryContainer.js +60 -0
  619. package/lib/Core/Views/Gallery/StyledGalleryContainer.js.map +1 -0
  620. package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.d.ts +2 -0
  621. package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.d.ts.map +1 -0
  622. package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.js +8 -0
  623. package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.js.map +1 -0
  624. package/lib/Core/Views/Gallery/index.d.ts +13 -0
  625. package/lib/Core/Views/Gallery/index.d.ts.map +1 -0
  626. package/lib/Core/Views/Gallery/index.js +82 -0
  627. package/lib/Core/Views/Gallery/index.js.map +1 -0
  628. package/lib/Core/Views/Map/Map.styles.d.ts +12 -0
  629. package/lib/Core/Views/Map/Map.styles.d.ts.map +1 -0
  630. package/lib/Core/Views/Map/Map.styles.js +47 -0
  631. package/lib/Core/Views/Map/Map.styles.js.map +1 -0
  632. package/lib/Core/Views/Map/MapItem.d.ts +10 -0
  633. package/lib/Core/Views/Map/MapItem.d.ts.map +1 -0
  634. package/lib/Core/Views/Map/MapItem.js +12 -0
  635. package/lib/Core/Views/Map/MapItem.js.map +1 -0
  636. package/lib/Core/Views/Map/index.d.ts +7 -0
  637. package/lib/Core/Views/Map/index.d.ts.map +1 -0
  638. package/lib/Core/Views/Map/index.js +50 -0
  639. package/lib/Core/Views/Map/index.js.map +1 -0
  640. package/lib/Core/Views/Map/utils.d.ts +14 -0
  641. package/lib/Core/Views/Map/utils.d.ts.map +1 -0
  642. package/lib/Core/Views/Map/utils.js +31 -0
  643. package/lib/Core/Views/Map/utils.js.map +1 -0
  644. package/lib/Core/Views/Table/Body.d.ts +23 -0
  645. package/lib/Core/Views/Table/Body.d.ts.map +1 -0
  646. package/lib/Core/Views/Table/Body.js +44 -0
  647. package/lib/Core/Views/Table/Body.js.map +1 -0
  648. package/lib/Core/Views/Table/CellWrapper.d.ts +23 -0
  649. package/lib/Core/Views/Table/CellWrapper.d.ts.map +1 -0
  650. package/lib/Core/Views/Table/CellWrapper.js +75 -0
  651. package/lib/Core/Views/Table/CellWrapper.js.map +1 -0
  652. package/lib/Core/Views/Table/GroupingHeaderCell.d.ts +22 -0
  653. package/lib/Core/Views/Table/GroupingHeaderCell.d.ts.map +1 -0
  654. package/lib/Core/Views/Table/GroupingHeaderCell.js +26 -0
  655. package/lib/Core/Views/Table/GroupingHeaderCell.js.map +1 -0
  656. package/lib/Core/Views/Table/HeaderWrapper.d.ts +13 -0
  657. package/lib/Core/Views/Table/HeaderWrapper.d.ts.map +1 -0
  658. package/lib/Core/Views/Table/HeaderWrapper.js +33 -0
  659. package/lib/Core/Views/Table/HeaderWrapper.js.map +1 -0
  660. package/lib/Core/Views/Table/Headers.d.ts +3 -0
  661. package/lib/Core/Views/Table/Headers.d.ts.map +1 -0
  662. package/lib/Core/Views/Table/Headers.js +24 -0
  663. package/lib/Core/Views/Table/Headers.js.map +1 -0
  664. package/lib/Core/Views/Table/Row.d.ts +26 -0
  665. package/lib/Core/Views/Table/Row.d.ts.map +1 -0
  666. package/lib/Core/Views/Table/Row.js +24 -0
  667. package/lib/Core/Views/Table/Row.js.map +1 -0
  668. package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.d.ts +8 -0
  669. package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.d.ts.map +1 -0
  670. package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.js +333 -0
  671. package/lib/Core/Views/Table/Samples/a11ySampleWithErrors.js.map +1 -0
  672. package/lib/Core/Views/Table/StyledTableContainer.d.ts +3 -0
  673. package/lib/Core/Views/Table/StyledTableContainer.d.ts.map +1 -0
  674. package/lib/Core/Views/Table/StyledTableContainer.js +861 -0
  675. package/lib/Core/Views/Table/StyledTableContainer.js.map +1 -0
  676. package/lib/Core/Views/Table/TableA11y.d.ts +48 -0
  677. package/lib/Core/Views/Table/TableA11y.d.ts.map +1 -0
  678. package/lib/Core/Views/Table/TableA11y.js +638 -0
  679. package/lib/Core/Views/Table/TableA11y.js.map +1 -0
  680. package/lib/Core/Views/Table/UseSort.d.ts +2 -0
  681. package/lib/Core/Views/Table/UseSort.d.ts.map +1 -0
  682. package/lib/Core/Views/Table/UseSort.js +37 -0
  683. package/lib/Core/Views/Table/UseSort.js.map +1 -0
  684. package/lib/Core/Views/Table/VirtualizeWrapper.d.ts +31 -0
  685. package/lib/Core/Views/Table/VirtualizeWrapper.d.ts.map +1 -0
  686. package/lib/Core/Views/Table/VirtualizeWrapper.js +39 -0
  687. package/lib/Core/Views/Table/VirtualizeWrapper.js.map +1 -0
  688. package/lib/Core/Views/Table/index.d.ts +13 -0
  689. package/lib/Core/Views/Table/index.d.ts.map +1 -0
  690. package/lib/Core/Views/Table/index.js +91 -0
  691. package/lib/Core/Views/Table/index.js.map +1 -0
  692. package/lib/Core/Views/Timeline/index.d.ts +7 -0
  693. package/lib/Core/Views/Timeline/index.d.ts.map +1 -0
  694. package/lib/Core/Views/Timeline/index.js +81 -0
  695. package/lib/Core/Views/Timeline/index.js.map +1 -0
  696. package/lib/Core/Views/Timeline/utility.d.ts +8 -0
  697. package/lib/Core/Views/Timeline/utility.d.ts.map +1 -0
  698. package/lib/Core/Views/Timeline/utility.js +120 -0
  699. package/lib/Core/Views/Timeline/utility.js.map +1 -0
  700. package/lib/Core/Views/rs-styles.d.ts +3 -0
  701. package/lib/Core/Views/rs-styles.d.ts.map +1 -0
  702. package/lib/Core/Views/rs-styles.js +10 -0
  703. package/lib/Core/Views/rs-styles.js.map +1 -0
  704. package/lib/Core/constants.d.ts +73 -0
  705. package/lib/Core/constants.d.ts.map +1 -0
  706. package/lib/Core/constants.js +86 -0
  707. package/lib/Core/constants.js.map +1 -0
  708. package/lib/Core/index.d.ts +5 -0
  709. package/lib/Core/index.d.ts.map +1 -0
  710. package/lib/Core/index.js +40 -0
  711. package/lib/Core/index.js.map +1 -0
  712. package/lib/index.d.ts +6 -0
  713. package/lib/index.d.ts.map +1 -0
  714. package/lib/index.js +7 -0
  715. package/lib/index.js.map +1 -0
  716. package/lib/types.d.ts +231 -0
  717. package/lib/types.d.ts.map +1 -0
  718. package/lib/types.js +2 -0
  719. package/lib/types.js.map +1 -0
  720. package/package.json +51 -0
@@ -0,0 +1,228 @@
1
+ const RowIndexAttribute = 'data-index';
2
+ export const StickyGroupHeader = 'sticky-group-header';
3
+ function getKeyWithMaxValueFromMap(map) {
4
+ if (!map)
5
+ return;
6
+ return [...map.entries()].reduce((a, b) => (b[1] > a[1] ? b : a))[0];
7
+ }
8
+ // Find nearest element to view.
9
+ // It always find nearest element from top left of container.
10
+ function getNearestElementTo(rContainer, targetBoundingBox) {
11
+ const elements = Array.from(rContainer.childNodes);
12
+ const itemCoords = [];
13
+ const items = [];
14
+ const overlappingGroupHeadersCountMap = new Map();
15
+ elements.forEach(item => {
16
+ const rect = item.getBoundingClientRect();
17
+ const inHorizontalBoundaries = rect.right >= targetBoundingBox.left && rect.left <= targetBoundingBox.right;
18
+ // considering only those items which are in view area.
19
+ if ((rect.top >= targetBoundingBox.top &&
20
+ rect.top <= targetBoundingBox.bottom &&
21
+ inHorizontalBoundaries) ||
22
+ (rect.bottom >= targetBoundingBox.top &&
23
+ rect.bottom <= targetBoundingBox.bottom &&
24
+ inHorizontalBoundaries)) {
25
+ itemCoords.push([rect.left, rect.bottom]);
26
+ items.push(item);
27
+ }
28
+ });
29
+ const distances = [];
30
+ itemCoords.forEach((itemCoord, index) => {
31
+ const distance = Math.hypot(itemCoord[0] - targetBoundingBox.left, itemCoord[1] - targetBoundingBox.top);
32
+ const parsedDistance = parseInt(distance, 10);
33
+ distances.push(parsedDistance);
34
+ // Keeping track of group header distances to identify the overlap due to sticky position.
35
+ // The distance with max count will represent the sub-group user is actually seeing.
36
+ if (items[index]?.classList?.contains(StickyGroupHeader)) {
37
+ overlappingGroupHeadersCountMap.set(parsedDistance, (overlappingGroupHeadersCountMap.get(parsedDistance) || 0) + 1);
38
+ }
39
+ });
40
+ if (distances.length) {
41
+ // BUG-740809 The closest item to view in case of sticky-group-header is first visible sticky-group-header
42
+ const closestItemIndexFromTop = distances.lastIndexOf(Math.min(...distances));
43
+ let closestItemFromTop = items[closestItemIndexFromTop];
44
+ /**
45
+ * BUG-81875: Considering sticky sub-group headers
46
+ * When nested grouping is applied and groups have sticky position, the parent group will always be on the top and nested group headers will come after that.
47
+ * Due to this, the nearest element will always be the parent group header even though user might have scrolled down some sub-group header.
48
+ * Actual nearest element should be the sub-group visible to the user.
49
+ */
50
+ if (closestItemFromTop.classList?.contains(StickyGroupHeader)) {
51
+ const topVisibleGroupKey = getKeyWithMaxValueFromMap(overlappingGroupHeadersCountMap);
52
+ closestItemFromTop = items[distances.lastIndexOf(topVisibleGroupKey)];
53
+ }
54
+ const closestItemIndexFromBottom = distances.lastIndexOf(Math.max(...distances));
55
+ if (targetBoundingBox.height === 0) {
56
+ closestItemFromTop = elements[0];
57
+ }
58
+ return [closestItemFromTop, items[closestItemIndexFromBottom]];
59
+ }
60
+ return [];
61
+ }
62
+ // When element is present in view , find which direction has
63
+ // enough count as we need to get record in another direction.
64
+ // direction 1 - up, -1 - down
65
+ // Nearest element is one which lies in view boundary.
66
+ function getDirectionWhereCountIsEnough(nearestViewElement, currentRowIndex, targetBoundingBox) {
67
+ let previousSiblingsCountAboveView = 0;
68
+ let nextSiblingsCountBelowView = 0;
69
+ let startElement = nearestViewElement;
70
+ let dir = 1;
71
+ if (currentRowIndex !== 0 && !startElement.previousElementSibling)
72
+ dir = -1;
73
+ else {
74
+ while (startElement.previousElementSibling) {
75
+ // BUG-740809 in case of overlapped sticky-group-header the previousElementSibling are at same 'top' location
76
+ if (startElement.previousElementSibling.classList.contains(StickyGroupHeader)) {
77
+ previousSiblingsCountAboveView += 1;
78
+ }
79
+ else {
80
+ const itemCoords = startElement.previousElementSibling.getBoundingClientRect();
81
+ if (itemCoords.bottom < targetBoundingBox.top)
82
+ previousSiblingsCountAboveView += 1;
83
+ }
84
+ startElement = startElement.previousElementSibling;
85
+ }
86
+ if (nearestViewElement.classList.contains(StickyGroupHeader))
87
+ previousSiblingsCountAboveView -= 1;
88
+ if (parseInt(startElement.getAttribute(RowIndexAttribute), 10) === 0)
89
+ dir = 1;
90
+ else {
91
+ startElement = nearestViewElement;
92
+ while (startElement.nextElementSibling) {
93
+ const itemCoords = startElement.nextElementSibling.getBoundingClientRect();
94
+ if (itemCoords.top > targetBoundingBox.bottom)
95
+ nextSiblingsCountBelowView += 1;
96
+ startElement = startElement.nextElementSibling;
97
+ }
98
+ // iterate in either direction where count is more
99
+ // until you find top element whose left match with nearest view element match.
100
+ // and matched index will be either top or bottom buffer index.
101
+ if (currentRowIndex !== 0 && nextSiblingsCountBelowView >= previousSiblingsCountAboveView)
102
+ dir = -1;
103
+ }
104
+ }
105
+ return dir;
106
+ }
107
+ // Get start and end index which view represent at any monument.
108
+ // Add extra information as well to adjust virtualiser position.
109
+ function getOptimalInfo(target, rowHeight, rContainer, bufferContainer, oldElementCount, heightComposingOldElementCount, totalRecords, bufferMultiplier, isRefresh, isInfiniteScroll) {
110
+ let currentRowIndex;
111
+ let topRowIndex = 0;
112
+ let topBufferIndex = -1;
113
+ let bottomBufferIndex = -1;
114
+ let existingItemBoundingBox;
115
+ // Estimated buffer count based on view height and row container count.
116
+ // Increase in buffer count can improve performance.
117
+ // A safeguard value which will apply on initial load.
118
+ const INITIAL_BUFFER = 10;
119
+ const buffer = INITIAL_BUFFER * bufferMultiplier;
120
+ const scrollDirectionBuffer = buffer * 2;
121
+ const scrollOppositeDirectionBuffer = buffer;
122
+ let rowsInView = heightComposingOldElementCount
123
+ ? Math.floor((oldElementCount / heightComposingOldElementCount) * target.offsetHeight)
124
+ : 0;
125
+ rowsInView = Number.isNaN(rowsInView) ? 0 : rowsInView;
126
+ if (totalRecords > 0) {
127
+ const targetBoundingBox = target.getBoundingClientRect();
128
+ const rowConBoundingBox = rContainer.getBoundingClientRect();
129
+ // Check if any element exist in current view. Calculation will change the required index
130
+ // As we have to fix the container to not show any flicker.
131
+ const [nearestViewElementFromTop, nearestViewElementFromBottom] = getNearestElementTo(rContainer, targetBoundingBox);
132
+ if (nearestViewElementFromTop) {
133
+ currentRowIndex = parseInt(nearestViewElementFromTop.getAttribute(RowIndexAttribute), 10);
134
+ existingItemBoundingBox = nearestViewElementFromTop.getBoundingClientRect();
135
+ // check how long this nearest item is from top of view.
136
+ // to estimate top row index ( What could be possible index on view top.)
137
+ const spaceInMid = existingItemBoundingBox.top - targetBoundingBox.top;
138
+ const elementsInMid = Math.floor((oldElementCount / heightComposingOldElementCount) * spaceInMid);
139
+ topRowIndex = elementsInMid < 0 ? currentRowIndex : currentRowIndex - elementsInMid;
140
+ }
141
+ else {
142
+ currentRowIndex =
143
+ Math.floor((target.scrollTop / heightComposingOldElementCount) * oldElementCount) || 0;
144
+ topRowIndex = currentRowIndex;
145
+ }
146
+ // If element exist in current view, traverse dom elements
147
+ // to find top buffer index or bottom buffer index
148
+ // where left match to not change layout.
149
+ if (existingItemBoundingBox) {
150
+ let dir = 1;
151
+ // We will consider direction 1 always in case of refresh as item count might have been changed.
152
+ // change in item count is always from downside.
153
+ if (!isRefresh)
154
+ dir = getDirectionWhereCountIsEnough(nearestViewElementFromTop, currentRowIndex, targetBoundingBox);
155
+ // We will iterate either upside or downside and pick that element
156
+ // which we can select as either top buffer or botton buffer and don't
157
+ // change layout as well and go for max iteration of buffer.
158
+ let maxIteration = buffer;
159
+ let startElement = dir === 1 ? nearestViewElementFromTop : nearestViewElementFromBottom;
160
+ while (startElement && maxIteration > 0) {
161
+ const e = dir === 1 ? startElement.previousElementSibling : startElement.nextElementSibling;
162
+ if (e &&
163
+ rowConBoundingBox.left ===
164
+ e.getBoundingClientRect().left - parseInt(window.getComputedStyle(e).marginLeft, 10)) {
165
+ if (dir === 1)
166
+ topBufferIndex = parseInt(e.getAttribute(RowIndexAttribute), 10);
167
+ else
168
+ bottomBufferIndex = parseInt(e.getAttribute(RowIndexAttribute), 10);
169
+ }
170
+ startElement = e;
171
+ maxIteration -= 1;
172
+ }
173
+ if (dir === 1)
174
+ bottomBufferIndex = currentRowIndex + rowsInView + scrollDirectionBuffer;
175
+ else
176
+ topBufferIndex = topRowIndex - scrollDirectionBuffer;
177
+ }
178
+ else {
179
+ // if user jumps the scroll and there is no overlapping with the previous records
180
+ topBufferIndex = currentRowIndex - scrollOppositeDirectionBuffer;
181
+ bottomBufferIndex = currentRowIndex + rowsInView + scrollDirectionBuffer;
182
+ }
183
+ }
184
+ else if (!totalRecords && totalRecords !== 0) {
185
+ // A safe check when count is not known in advance.
186
+ topBufferIndex = 0;
187
+ currentRowIndex = 0;
188
+ bottomBufferIndex = buffer * 4;
189
+ }
190
+ // Safe edge check when indexes goes out of range.
191
+ if (topBufferIndex < 0)
192
+ topBufferIndex = 0;
193
+ // As safari does elastic scroll, so currentRowIndex and topRowIndex can go negative , fallback these to zero.
194
+ if (currentRowIndex < 0)
195
+ currentRowIndex = 0;
196
+ if (topRowIndex < 0)
197
+ topRowIndex = 0;
198
+ if (!isInfiniteScroll &&
199
+ bottomBufferIndex > totalRecords &&
200
+ totalRecords !== null &&
201
+ totalRecords !== undefined)
202
+ bottomBufferIndex = totalRecords - 1;
203
+ // When we get start index 0 from scrolling then , on edge case we might get whitespace
204
+ // As we always adjust row container top to show previous item in place.
205
+ // To solve this, make sure top index is also 0 when start index is zero to avoid white space
206
+ // otherwise we will make start index to 1 if it is zero.
207
+ // if (topBufferIndex === 0 && topRowIndex !== 0) topBufferIndex = 1;
208
+ // before pagination is in progress, put scroll node coords here
209
+ // to track how much user scrolled while pagination is in progress.
210
+ const bufferOldCords = bufferContainer.getBoundingClientRect();
211
+ return {
212
+ existingItemBoundingBox, // coordinates of current row index.
213
+ currentRowIndex, // common visible item in view before and after paint (previous and next paint)
214
+ topRowIndex, // What could be possible index on view top.
215
+ bufferOldCords, // buffer coordinates while pagination.
216
+ bufferNewCords: bufferOldCords, // buffer coordinates while pagination is in progress and user scroll.
217
+ view: {
218
+ startIndex: Math.floor(topBufferIndex),
219
+ endIndex: Math.floor(bottomBufferIndex)
220
+ }
221
+ };
222
+ }
223
+ export default function getPaginationInfo(target, totalRecords, vi, isRefresh = false, isInfiniteScroll = false) {
224
+ const oldElementCount = vi.itemCount === undefined ? 0 : vi.itemCount;
225
+ const heightComposingOldElementCount = vi.rowContainerHeight === undefined ? 0 : vi.rowContainerHeight;
226
+ return getOptimalInfo(target, vi.itemHeight, vi.rContainer, vi.bContainer, oldElementCount, heightComposingOldElementCount, totalRecords, vi.bufferMultiplier, isRefresh, isInfiniteScroll);
227
+ }
228
+ //# sourceMappingURL=Pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../../Core/Components/Virtualise/Pagination.js"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,YAAY,CAAC;AACvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAEvD,SAAS,yBAAyB,CAAC,GAAG;IACpC,IAAI,CAAC,GAAG;QAAE,OAAO;IACjB,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,gCAAgC;AAChC,6DAA6D;AAC7D,SAAS,mBAAmB,CAAC,UAAU,EAAE,iBAAiB;IACxD,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,MAAM,+BAA+B,GAAG,IAAI,GAAG,EAAE,CAAC;IAElD,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACtB,M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AY;QAChC,YAAY,KAAK,IAAI;QACrB,YAAY,KAAK,SAAS;QAE1B,iBAAiB,GAAG,YAAY,GAAG,CAAC,CAAC;IAEvC,uFAAuF;IACvF,wEAAwE;IACxE,6FAA6F;IAC7F,yDAAyD;IACzD,qEAAqE;IAErE,gEAAgE;IAChE,mEAAmE;IACnE,MAAM,cAAc,GAAG,eAAe,CAAC,qBAAqB,EAAE,CAAC;IAC/D,OAAO;QACL,uBAAuB,EAAE,oCAAoC;QAC7D,eAAe,EAAE,+EAA+E;QAChG,WAAW,EAAE,4CAA4C;QACzD,cAAc,EAAE,uCAAuC;QACvD,cAAc,EAAE,cAAc,EAAE,sEAAsE;QACtG,IAAI,EAAE;YACJ,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;YACtC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC;SACxC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,MAAM,EACN,YAAY,EACZ,EAAE,EACF,SAAS,GAAG,KAAK,EACjB,gBAAgB,GAAG,KAAK;IAExB,MAAM,eAAe,GAAG,EAAE,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC;IACtE,MAAM,8BAA8B,GAClC,EAAE,CAAC,kBAAkB,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC;IAClE,OAAO,cAAc,CACnB,MAAM,EACN,EAAE,CAAC,UAAU,EACb,EAAE,CAAC,UAAU,EACb,EAAE,CAAC,UAAU,EACb,eAAe,EACf,8BAA8B,EAC9B,YAAY,EACZ,EAAE,CAAC,gBAAgB,EACnB,SAAS,EACT,gBAAgB,CACjB,CAAC;AACJ,CAAC","sourcesContent":["const RowIndexAttribute = 'data-index';\nexport const StickyGroupHeader = 'sticky-group-header';\n\nfunction getKeyWithMaxValueFromMap(map) {\n if (!map) return;\n return [...map.entries()].reduce((a, b) => (b[1] > a[1] ? b : a))[0];\n}\n\n// Find nearest element to view.\n// It always find nearest element from top left of container.\nfunction getNearestElementTo(rContainer, targetBoundingBox) {\n const elements = Array.from(rContainer.childNodes);\n const itemCoords = [];\n const items = [];\n const overlappingGroupHeadersCountMap = new Map();\n\n elements.forEach(item => {\n const rect = item.getBoundingClientRect();\n const inHorizontalBoundaries =\n rect.right >= targetBoundingBox.left && rect.left <= targetBoundingBox.right;\n // considering only those items which are in view area.\n if (\n (rect.top >= targetBoundingBox.top &&\n rect.top <= targetBoundingBox.bottom &&\n inHorizontalBoundaries) ||\n (rect.bottom >= targetBoundingBox.top &&\n rect.bottom <= targetBoundingBox.bottom &&\n inHorizontalBoundaries)\n ) {\n itemCoords.push([rect.left, rect.bottom]);\n items.push(item);\n }\n });\n const distances = [];\n itemCoords.forEach((itemCoord, index) => {\n const distance = Math.hypot(\n itemCoord[0] - targetBoundingBox.left,\n itemCoord[1] - targetBoundingBox.top\n );\n const parsedDistance = parseInt(distance, 10);\n distances.push(parsedDistance);\n\n // Keeping track of group header distances to identify the overlap due to sticky position.\n // The distance with max count will represent the sub-group user is actually seeing.\n if (items[index]?.classList?.contains(StickyGroupHeader)) {\n overlappingGroupHeadersCountMap.set(\n parsedDistance,\n (overlappingGroupHeadersCountMap.get(parsedDistance) || 0) + 1\n );\n }\n });\n\n if (distances.length) {\n // BUG-740809 The closest item to view in case of sticky-group-header is first visible sticky-group-header\n const closestItemIndexFromTop = distances.lastIndexOf(Math.min(...distances));\n\n let closestItemFromTop = items[closestItemIndexFromTop];\n /**\n * BUG-81875: Considering sticky sub-group headers\n * When nested grouping is applied and groups have sticky position, the parent group will always be on the top and nested group headers will come after that.\n * Due to this, the nearest element will always be the parent group header even though user might have scrolled down some sub-group header.\n * Actual nearest element should be the sub-group visible to the user.\n */\n if (closestItemFromTop.classList?.contains(StickyGroupHeader)) {\n const topVisibleGroupKey = getKeyWithMaxValueFromMap(overlappingGroupHeadersCountMap);\n closestItemFromTop = items[distances.lastIndexOf(topVisibleGroupKey)];\n }\n const closestItemIndexFromBottom = distances.lastIndexOf(Math.max(...distances));\n\n if (targetBoundingBox.height === 0) {\n closestItemFromTop = elements[0];\n }\n return [closestItemFromTop, items[closestItemIndexFromBottom]];\n }\n return [];\n}\n\n// When element is present in view , find which direction has\n// enough count as we need to get record in another direction.\n// direction 1 - up, -1 - down\n// Nearest element is one which lies in view boundary.\n\nfunction getDirectionWhereCountIsEnough(nearestViewElement, currentRowIndex, targetBoundingBox) {\n let previousSiblingsCountAboveView = 0;\n let nextSiblingsCountBelowView = 0;\n let startElement = nearestViewElement;\n let dir = 1;\n if (currentRowIndex !== 0 && !startElement.previousElementSibling) dir = -1;\n else {\n while (startElement.previousElementSibling) {\n // BUG-740809 in case of overlapped sticky-group-header the previousElementSibling are at same 'top' location\n if (startElement.previousElementSibling.classList.contains(StickyGroupHeader)) {\n previousSiblingsCountAboveView += 1;\n } else {\n const itemCoords = startElement.previousElementSibling.getBoundingClientRect();\n if (itemCoords.bottom < targetBoundingBox.top) previousSiblingsCountAboveView += 1;\n }\n startElement = startElement.previousElementSibling;\n }\n if (nearestViewElement.classList.contains(StickyGroupHeader))\n previousSiblingsCountAboveView -= 1;\n if (parseInt(startElement.getAttribute(RowIndexAttribute), 10) === 0) dir = 1;\n else {\n startElement = nearestViewElement;\n while (startElement.nextElementSibling) {\n const itemCoords = startElement.nextElementSibling.getBoundingClientRect();\n if (itemCoords.top > targetBoundingBox.bottom) nextSiblingsCountBelowView += 1;\n startElement = startElement.nextElementSibling;\n }\n // iterate in either direction where count is more\n // until you find top element whose left match with nearest view element match.\n // and matched index will be either top or bottom buffer index.\n if (currentRowIndex !== 0 && nextSiblingsCountBelowView >= previousSiblingsCountAboveView)\n dir = -1;\n }\n }\n return dir;\n}\n\n// Get start and end index which view represent at any monument.\n// Add extra information as well to adjust virtualiser position.\n\nfunction getOptimalInfo(\n target,\n rowHeight,\n rContainer,\n bufferContainer,\n oldElementCount,\n heightComposingOldElementCount,\n totalRecords,\n bufferMultiplier,\n isRefresh,\n isInfiniteScroll\n) {\n let currentRowIndex;\n let topRowIndex = 0;\n let topBufferIndex = -1;\n let bottomBufferIndex = -1;\n let existingItemBoundingBox;\n\n // Estimated buffer count based on view height and row container count.\n // Increase in buffer count can improve performance.\n // A safeguard value which will apply on initial load.\n const INITIAL_BUFFER = 10;\n const buffer = INITIAL_BUFFER * bufferMultiplier;\n const scrollDirectionBuffer = buffer * 2;\n const scrollOppositeDirectionBuffer = buffer;\n\n let rowsInView = heightComposingOldElementCount\n ? Math.floor((oldElementCount / heightComposingOldElementCount) * target.offsetHeight)\n : 0;\n rowsInView = Number.isNaN(rowsInView) ? 0 : rowsInView;\n\n if (totalRecords > 0) {\n const targetBoundingBox = target.getBoundingClientRect();\n const rowConBoundingBox = rContainer.getBoundingClientRect();\n\n // Check if any element exist in current view. Calculation will change the required index\n // As we have to fix the container to not show any flicker.\n const [nearestViewElementFromTop, nearestViewElementFromBottom] = getNearestElementTo(\n rContainer,\n targetBoundingBox\n );\n if (nearestViewElementFromTop) {\n currentRowIndex = parseInt(nearestViewElementFromTop.getAttribute(RowIndexAttribute), 10);\n existingItemBoundingBox = nearestViewElementFromTop.getBoundingClientRect();\n\n // check how long this nearest item is from top of view.\n // to estimate top row index ( What could be possible index on view top.)\n const spaceInMid = existingItemBoundingBox.top - targetBoundingBox.top;\n const elementsInMid = Math.floor(\n (oldElementCount / heightComposingOldElementCount) * spaceInMid\n );\n topRowIndex = elementsInMid < 0 ? currentRowIndex : currentRowIndex - elementsInMid;\n } else {\n currentRowIndex =\n Math.floor((target.scrollTop / heightComposingOldElementCount) * oldElementCount) || 0;\n topRowIndex = currentRowIndex;\n }\n\n // If element exist in current view, traverse dom elements\n // to find top buffer index or bottom buffer index\n // where left match to not change layout.\n if (existingItemBoundingBox) {\n let dir = 1;\n\n // We will consider direction 1 always in case of refresh as item count might have been changed.\n // change in item count is always from downside.\n if (!isRefresh)\n dir = getDirectionWhereCountIsEnough(\n nearestViewElementFromTop,\n currentRowIndex,\n targetBoundingBox\n );\n\n // We will iterate either upside or downside and pick that element\n // which we can select as either top buffer or botton buffer and don't\n // change layout as well and go for max iteration of buffer.\n let maxIteration = buffer;\n let startElement = dir === 1 ? nearestViewElementFromTop : nearestViewElementFromBottom;\n while (startElement && maxIteration > 0) {\n const e = dir === 1 ? startElement.previousElementSibling : startElement.nextElementSibling;\n if (\n e &&\n rowConBoundingBox.left ===\n e.getBoundingClientRect().left - parseInt(window.getComputedStyle(e).marginLeft, 10)\n ) {\n if (dir === 1) topBufferIndex = parseInt(e.getAttribute(RowIndexAttribute), 10);\n else bottomBufferIndex = parseInt(e.getAttribute(RowIndexAttribute), 10);\n }\n startElement = e;\n maxIteration -= 1;\n }\n\n if (dir === 1) bottomBufferIndex = currentRowIndex + rowsInView + scrollDirectionBuffer;\n else topBufferIndex = topRowIndex - scrollDirectionBuffer;\n } else {\n // if user jumps the scroll and there is no overlapping with the previous records\n topBufferIndex = currentRowIndex - scrollOppositeDirectionBuffer;\n bottomBufferIndex = currentRowIndex + rowsInView + scrollDirectionBuffer;\n }\n } else if (!totalRecords && totalRecords !== 0) {\n // A safe check when count is not known in advance.\n topBufferIndex = 0;\n currentRowIndex = 0;\n bottomBufferIndex = buffer * 4;\n }\n\n // Safe edge check when indexes goes out of range.\n if (topBufferIndex < 0) topBufferIndex = 0;\n // As safari does elastic scroll, so currentRowIndex and topRowIndex can go negative , fallback these to zero.\n if (currentRowIndex < 0) currentRowIndex = 0;\n if (topRowIndex < 0) topRowIndex = 0;\n if (\n !isInfiniteScroll &&\n bottomBufferIndex > totalRecords &&\n totalRecords !== null &&\n totalRecords !== undefined\n )\n bottomBufferIndex = totalRecords - 1;\n\n // When we get start index 0 from scrolling then , on edge case we might get whitespace\n // As we always adjust row container top to show previous item in place.\n // To solve this, make sure top index is also 0 when start index is zero to avoid white space\n // otherwise we will make start index to 1 if it is zero.\n // if (topBufferIndex === 0 && topRowIndex !== 0) topBufferIndex = 1;\n\n // before pagination is in progress, put scroll node coords here\n // to track how much user scrolled while pagination is in progress.\n const bufferOldCords = bufferContainer.getBoundingClientRect();\n return {\n existingItemBoundingBox, // coordinates of current row index.\n currentRowIndex, // common visible item in view before and after paint (previous and next paint)\n topRowIndex, // What could be possible index on view top.\n bufferOldCords, // buffer coordinates while pagination.\n bufferNewCords: bufferOldCords, // buffer coordinates while pagination is in progress and user scroll.\n view: {\n startIndex: Math.floor(topBufferIndex),\n endIndex: Math.floor(bottomBufferIndex)\n }\n };\n}\n\nexport default function getPaginationInfo(\n target,\n totalRecords,\n vi,\n isRefresh = false,\n isInfiniteScroll = false\n) {\n const oldElementCount = vi.itemCount === undefined ? 0 : vi.itemCount;\n const heightComposingOldElementCount =\n vi.rowContainerHeight === undefined ? 0 : vi.rowContainerHeight;\n return getOptimalInfo(\n target,\n vi.itemHeight,\n vi.rContainer,\n vi.bContainer,\n oldElementCount,\n heightComposingOldElementCount,\n totalRecords,\n vi.bufferMultiplier,\n isRefresh,\n isInfiniteScroll\n );\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export default function useResizeObserver(getTarget: any, callback: any, delay?: number): void;
2
+ //# sourceMappingURL=UseResizeObserver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UseResizeObserver.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Virtualise/UseResizeObserver.js"],"names":[],"mappings":"AAIA,+FAmBC"}
@@ -0,0 +1,18 @@
1
+ import { useEffect, useMemo } from 'react';
2
+ import { debounced } from '../../Utils';
3
+ export default function useResizeObserver(getTarget, callback, delay = 100) {
4
+ const observer = useMemo(() => typeof ResizeObserver !== 'undefined'
5
+ ? new ResizeObserver(debounced(delay, callback))
6
+ : undefined, [callback, delay]);
7
+ useEffect(() => {
8
+ const target = getTarget();
9
+ if (target && observer) {
10
+ observer.observe(target);
11
+ return () => {
12
+ observer.disconnect();
13
+ };
14
+ }
15
+ return undefined;
16
+ }, [getTarget, observer]);
17
+ }
18
+ //# sourceMappingURL=UseResizeObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UseResizeObserver.js","sourceRoot":"","sources":["../../../../Core/Components/Virtualise/UseResizeObserver.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAG,GAAG;IACxE,MAAM,QAAQ,GAAG,OAAO,CACtB,GAAG,EAAE,CACH,OAAO,cAAc,KAAK,WAAW;QACnC,CAAC,CAAC,IAAI,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC,CAAC,SAAS,EACf,CAAC,QAAQ,EAAE,KAAK,CAAC,CAClB,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,IAAI,MAAM,IAAI,QAAQ,EAAE,CAAC;YACvB,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACzB,OAAO,GAAG,EAAE;gBACV,QAAQ,CAAC,UAAU,EAAE,CAAC;YACxB,CAAC,CAAC;QACJ,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC5B,CAAC","sourcesContent":["import { useEffect, useMemo } from 'react';\n\nimport { debounced } from '../../Utils';\n\nexport default function useResizeObserver(getTarget, callback, delay = 100) {\n const observer = useMemo(\n () =>\n typeof ResizeObserver !== 'undefined'\n ? new ResizeObserver(debounced(delay, callback))\n : undefined,\n [callback, delay]\n );\n\n useEffect(() => {\n const target = getTarget();\n if (target && observer) {\n observer.observe(target);\n return () => {\n observer.disconnect();\n };\n }\n return undefined;\n }, [getTarget, observer]);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export default function useScroll(callback: any, getContext: any, vi: any, totalRecordCount: any, header: any, isFetching: any, viewHeight: any): ((top: any) => void)[];
2
+ export function useApplyStyleOnScroll(vi: any): () => void;
3
+ //# sourceMappingURL=UseScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UseScroll.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Virtualise/UseScroll.js"],"names":[],"mappings":"AA0BA,yKA2FC;AA9GM,2DAiBN"}
@@ -0,0 +1,92 @@
1
+ import { useState, useEffect, useRef, useCallback } from 'react';
2
+ import useThrottle from '../../Hooks/UseThrottle';
3
+ import { getRecordCountForLayoutPaint, isViewNotFilled } from './utility';
4
+ // import useDebounce from '../../Hooks/UseDebounce';
5
+ export const useApplyStyleOnScroll = vi => {
6
+ const footerElement = vi.pContainer?.querySelector('.footer > .row');
7
+ return useCallback(() => {
8
+ // Calculate the difference between bottom co-ordinates of p and r Containers
9
+ // along with the row height of footer element to check if the bottom of the table is reached.
10
+ if (Math.abs(vi.pContainer.getBoundingClientRect().bottom -
11
+ vi.rContainer.getBoundingClientRect().bottom -
12
+ (footerElement?.hasChildNodes() ? footerElement.offsetHeight : 0)) < 1) {
13
+ vi.rContainer.classList.add('scroll-end');
14
+ }
15
+ else {
16
+ vi.rContainer.classList.remove('scroll-end');
17
+ }
18
+ }, [vi.pContainer, vi.rContainer, vi.pContainer?.offsetHeight, footerElement]);
19
+ };
20
+ export default function useScroll(callback, getContext, vi, totalRecordCount, header, isFetching, viewHeight) {
21
+ const applyScrollEndStyle = useApplyStyleOnScroll(vi);
22
+ const [vScroll, setVScroll] = useState();
23
+ const ref = useRef({
24
+ oldScrollTop: 0
25
+ }).current;
26
+ const updateScrollTop = useCallback(top => {
27
+ ref.oldScrollTop = top;
28
+ }, [ref]);
29
+ // const deBouncedVScroll = useDebounce(vScroll, 100);
30
+ const getDirection = useCallback(() => {
31
+ const context = getContext();
32
+ let dir;
33
+ if (ref.oldScrollTop > context.scrollTop)
34
+ dir = -1;
35
+ else if (ref.oldScrollTop < context.scrollTop)
36
+ dir = 1;
37
+ ref.oldScrollTop = context.scrollTop;
38
+ return dir;
39
+ }, [getContext, ref.oldScrollTop]);
40
+ const onScroll = useCallback(e => {
41
+ setVScroll(e.target.scrollTop);
42
+ vi.pInfo.bufferNewCords = vi.bContainer.getBoundingClientRect();
43
+ // Style is to be applied upon scroll after successful
44
+ // check of bottom position of containers
45
+ applyScrollEndStyle(vi.rContainer, vi.pContainer);
46
+ }, [
47
+ isFetching,
48
+ vi.pInfo.bufferNewCords,
49
+ vi.bContainer,
50
+ vi.pContainer,
51
+ vi.rContainer,
52
+ applyScrollEndStyle
53
+ ]);
54
+ const handleScroll = useCallback(() => {
55
+ const context = getContext();
56
+ const direction = getDirection();
57
+ const distance = direction === 1 ? 0.8 : 0.2;
58
+ const eleIndex = Math.floor(vi.rContainer.childElementCount * distance);
59
+ const boundaryEle = vi.rContainer.childNodes[eleIndex];
60
+ const boundaryElePos = boundaryEle?.getBoundingClientRect();
61
+ const { bottom, top } = context?.getBoundingClientRect() || {};
62
+ if ((direction === 1 &&
63
+ boundaryElePos?.bottom < bottom &&
64
+ // eslint-disable-next-line no-unsafe-optional-chaining
65
+ vi.pInfo?.view?.endIndex + 1 < totalRecordCount) ||
66
+ (direction === -1 && boundaryElePos?.top > top && vi.pInfo?.view?.startIndex > 0) ||
67
+ isViewNotFilled(getRecordCountForLayoutPaint(totalRecordCount), vi, context, header)) {
68
+ vi.direction = direction;
69
+ callback();
70
+ }
71
+ }, [getDirection, vi, getContext, isFetching, totalRecordCount, header, callback]);
72
+ useThrottle(vScroll, handleScroll);
73
+ useEffect(() => {
74
+ const context = getContext();
75
+ if (context)
76
+ context.addEventListener('scroll', onScroll);
77
+ return () => {
78
+ if (context)
79
+ context.removeEventListener('scroll', onScroll);
80
+ };
81
+ }, [getContext, onScroll, vi.rContainer, vi.pContainer, applyScrollEndStyle]);
82
+ // useEffect for scrollEndStyle hook
83
+ useEffect(() => {
84
+ applyScrollEndStyle(vi.rContainer, vi.pContainer);
85
+ }, [vi.rContainer, vi.pContainer, applyScrollEndStyle, totalRecordCount, viewHeight]);
86
+ // useEffect(() => {
87
+ // if (deBouncedVScroll !== undefined)
88
+ // handleScroll();
89
+ // }, [deBouncedVScroll]);
90
+ return [updateScrollTop];
91
+ }
92
+ //# sourceMappingURL=UseScroll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UseScroll.js","sourceRoot":"","sources":["../../../../Core/Components/Virtualise/UseScroll.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,4BAA4B,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC1E,qDAAqD;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAC,EAAE;IACxC,MAAM,aAAa,GAAG,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACrE,OAAO,WAAW,CAAC,GAAG,EAAE;QACtB,6EAA6E;QAC7E,8FAA8F;QAC9F,IACE,IAAI,CAAC,GAAG,CACN,EAAE,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC,MAAM;YAC1C,EAAE,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC,MAAM;YAC5C,CAAC,aAAa,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CACpE,GAAG,CAAC,EACL,CAAC;YACD,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC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AAC,gBAAgB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,EACpF,CAAC;YACD,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;YACzB,QAAQ,EAAE,CAAC;QACb,CAAC;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEnF,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;QAC7B,IAAI,OAAO;YAAE,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC1D,OAAO,GAAG,EAAE;YACV,IAAI,OAAO;gBAAE,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC/D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAE9E,oCAAoC;IACpC,SAAS,CAAC,GAAG,EAAE;QACb,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,UAAU,CAAC,CAAC,CAAC;IACtF,oBAAoB;IACpB,wCAAwC;IACxC,sBAAsB;IACtB,0BAA0B;IAE1B,OAAO,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import { useState, useEffect, useRef, useCallback } from 'react';\n\nimport useThrottle from '../../Hooks/UseThrottle';\n\nimport { getRecordCountForLayoutPaint, isViewNotFilled } from './utility';\n// import useDebounce from '../../Hooks/UseDebounce';\n\nexport const useApplyStyleOnScroll = vi => {\n const footerElement = vi.pContainer?.querySelector('.footer > .row');\n return useCallback(() => {\n // Calculate the difference between bottom co-ordinates of p and r Containers\n // along with the row height of footer element to check if the bottom of the table is reached.\n if (\n Math.abs(\n vi.pContainer.getBoundingClientRect().bottom -\n vi.rContainer.getBoundingClientRect().bottom -\n (footerElement?.hasChildNodes() ? footerElement.offsetHeight : 0)\n ) < 1\n ) {\n vi.rContainer.classList.add('scroll-end');\n } else {\n vi.rContainer.classList.remove('scroll-end');\n }\n }, [vi.pContainer, vi.rContainer, vi.pContainer?.offsetHeight, footerElement]);\n};\n\nexport default function useScroll(\n callback,\n getContext,\n vi,\n totalRecordCount,\n header,\n isFetching,\n viewHeight\n) {\n const applyScrollEndStyle = useApplyStyleOnScroll(vi);\n const [vScroll, setVScroll] = useState();\n const ref = useRef({\n oldScrollTop: 0\n }).current;\n const updateScrollTop = useCallback(\n top => {\n ref.oldScrollTop = top;\n },\n [ref]\n );\n // const deBouncedVScroll = useDebounce(vScroll, 100);\n\n const getDirection = useCallback(() => {\n const context = getContext();\n let dir;\n if (ref.oldScrollTop > context.scrollTop) dir = -1;\n else if (ref.oldScrollTop < context.scrollTop) dir = 1;\n ref.oldScrollTop = context.scrollTop;\n return dir;\n }, [getContext, ref.oldScrollTop]);\n\n const onScroll = useCallback(\n e => {\n setVScroll(e.target.scrollTop);\n vi.pInfo.bufferNewCords = vi.bContainer.getBoundingClientRect();\n\n // Style is to be applied upon scroll after successful\n // check of bottom position of containers\n applyScrollEndStyle(vi.rContainer, vi.pContainer);\n },\n [\n isFetching,\n vi.pInfo.bufferNewCords,\n vi.bContainer,\n vi.pContainer,\n vi.rContainer,\n applyScrollEndStyle\n ]\n );\n\n const handleScroll = useCallback(() => {\n const context = getContext();\n const direction = getDirection();\n const distance = direction === 1 ? 0.8 : 0.2;\n const eleIndex = Math.floor(vi.rContainer.childElementCount * distance);\n const boundaryEle = vi.rContainer.childNodes[eleIndex];\n const boundaryElePos = boundaryEle?.getBoundingClientRect();\n const { bottom, top } = context?.getBoundingClientRect() || {};\n if (\n (direction === 1 &&\n boundaryElePos?.bottom < bottom &&\n // eslint-disable-next-line no-unsafe-optional-chaining\n vi.pInfo?.view?.endIndex + 1 < totalRecordCount) ||\n (direction === -1 && boundaryElePos?.top > top && vi.pInfo?.view?.startIndex > 0) ||\n isViewNotFilled(getRecordCountForLayoutPaint(totalRecordCount), vi, context, header)\n ) {\n vi.direction = direction;\n callback();\n }\n }, [getDirection, vi, getContext, isFetching, totalRecordCount, header, callback]);\n\n useThrottle(vScroll, handleScroll);\n\n useEffect(() => {\n const context = getContext();\n if (context) context.addEventListener('scroll', onScroll);\n return () => {\n if (context) context.removeEventListener('scroll', onScroll);\n };\n }, [getContext, onScroll, vi.rContainer, vi.pContainer, applyScrollEndStyle]);\n\n // useEffect for scrollEndStyle hook\n useEffect(() => {\n applyScrollEndStyle(vi.rContainer, vi.pContainer);\n }, [vi.rContainer, vi.pContainer, applyScrollEndStyle, totalRecordCount, viewHeight]);\n // useEffect(() => {\n // if (deBouncedVScroll !== undefined)\n // handleScroll();\n // }, [deBouncedVScroll]);\n\n return [updateScrollTop];\n}\n"]}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>>;
2
+ export default _default;
3
+ //# sourceMappingURL=VirtualizeInfinite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualizeInfinite.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Virtualise/VirtualizeInfinite.jsx"],"names":[],"mappings":""}