@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 @@
1
+ {"version":3,"file":"useHighlighter.d.ts","sourceRoot":"","sources":["../../../../Core/Components/RenderingEngine/useHighlighter.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,OAAO,EAAE,GAAG,EACZ,EAAE,aAAqB,EAAE,eAAuB,EAAE;;;CAAK,QA8CxD"}
@@ -0,0 +1,52 @@
1
+ import { useEffect } from 'react';
2
+ const SPECIAL_CHARS_REGEX = /(\[|\\|\^|\$|\.|\||\?|\*|\+|\(|\))/g;
3
+ function sanitizeRegex(regex) {
4
+ return regex?.replace(SPECIAL_CHARS_REGEX, '\\$1');
5
+ }
6
+ export default function useHighlighter(context, { caseSensitive = false, shouldHighlight = false } = {}) {
7
+ // Context is executional context and wont be available in asynchronous method.
8
+ // We have to keep reference of used objects in closure.
9
+ const getElement = context?.getElement;
10
+ const getSearchKeyword = context?.getSearchKeyword;
11
+ useEffect(() => {
12
+ const flags = caseSensitive ? 'g' : 'gi';
13
+ const keyword = [sanitizeRegex(getSearchKeyword?.()?.trim())].filter((_) => _);
14
+ const keywordRegex = new RegExp(keyword[0], flags);
15
+ function highlight(element) {
16
+ if (!element?.textContent || !keywordRegex.test(element.textContent)) {
17
+ // in case there is no match
18
+ return;
19
+ }
20
+ // Sort longer matches first to avoid
21
+ // highlighting keywords within keywords.
22
+ Array.from(element?.childNodes || []).forEach(child => {
23
+ keywordRegex.lastIndex = 0;
24
+ if (child.nodeType !== 3) {
25
+ // not a text node
26
+ if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE') {
27
+ highlight(child);
28
+ }
29
+ }
30
+ else if (child.textContent && keywordRegex.test(child.textContent)) {
31
+ const frag = document.createDocumentFragment();
32
+ let lastIdx = 0;
33
+ child.textContent.replace(keywordRegex, (match, idx) => {
34
+ const part = document.createTextNode(child.textContent.slice(lastIdx, idx));
35
+ const highlighted = document.createElement('mark');
36
+ highlighted.style.background = '#fffc65';
37
+ highlighted.textContent = match;
38
+ frag.appendChild(part);
39
+ frag.appendChild(highlighted);
40
+ lastIdx = idx + match.length;
41
+ });
42
+ const end = document.createTextNode(child.textContent.slice(lastIdx));
43
+ frag.appendChild(end);
44
+ child.parentNode?.replaceChild(frag, child);
45
+ }
46
+ });
47
+ }
48
+ if (shouldHighlight && keyword.length)
49
+ highlight(getElement?.());
50
+ });
51
+ }
52
+ //# sourceMappingURL=useHighlighter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHighlighter.js","sourceRoot":"","sources":["../../../../Core/Components/RenderingEngine/useHighlighter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,mBAAmB,GAAG,qCAAqC,CAAC;AAClE,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,KAAK,EAAE,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,OAAY,EACZ,EAAE,aAAa,GAAG,KAAK,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,EAAE;IAEvD,+EAA+E;IAC/E,wDAAwD;IACxD,MAAM,UAAU,GAAG,OAAO,EAAE,UAAU,CAAC;IACvC,MAAM,gBAAgB,GAAG,OAAO,EAAE,gBAAgB,CAAC;IAEnD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;QACzC,MAAM,OAAO,GAAG,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QAEv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,GAAG,KAAK,CAAC;wBAChC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;wBACvB,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;wBAC9B,OAAO,GAAG,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;oBAC/B,CAAC,CAAC,CAAC;oBACH,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;oBACtE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;oBACtB,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC9C,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAI,eAAe,IAAI,OAAO,CAAC,MAAM;YAAE,SAAS,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { useEffect } from 'react';\n\nconst SPECIAL_CHARS_REGEX = /(\\[|\\\\|\\^|\\$|\\.|\\||\\?|\\*|\\+|\\(|\\))/g;\nfunction sanitizeRegex(regex: string) {\n return regex?.replace(SPECIAL_CHARS_REGEX, '\\\\$1');\n}\n\nexport default function useHighlighter(\n context: any,\n { caseSensitive = false, shouldHighlight = false } = {}\n) {\n // Context is executional context and wont be available in asynchronous method.\n // We have to keep reference of used objects in closure.\n const getElement = context?.getElement;\n const getSearchKeyword = context?.getSearchKeyword;\n\n useEffect(() => {\n const flags = caseSensitive ? 'g' : 'gi';\n const keyword = [sanitizeRegex(getSearchKeyword?.()?.trim())].filter((_: string) => _);\n\n const keywordRegex = new RegExp(keyword[0], flags);\n function highlight(element: Node) {\n if (!element?.textContent || !keywordRegex.test(element.textContent)) {\n // in case there is no match\n return;\n }\n // Sort longer matches first to avoid\n // highlighting keywords within keywords.\n Array.from(element?.childNodes || []).forEach(child => {\n keywordRegex.lastIndex = 0;\n if (child.nodeType !== 3) {\n // not a text node\n if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE') {\n highlight(child);\n }\n } else if (child.textContent && keywordRegex.test(child.textContent)) {\n const frag = document.createDocumentFragment();\n let lastIdx = 0;\n child.textContent.replace(keywordRegex, (match: string, idx: number): any => {\n const part = document.createTextNode(child.textContent!.slice(lastIdx, idx));\n const highlighted = document.createElement('mark');\n highlighted.style.background = '#fffc65';\n highlighted.textContent = match;\n frag.appendChild(part);\n frag.appendChild(highlighted);\n lastIdx = idx + match.length;\n });\n const end = document.createTextNode(child.textContent.slice(lastIdx));\n frag.appendChild(end);\n child.parentNode?.replaceChild(frag, child);\n }\n });\n }\n if (shouldHighlight && keyword.length) highlight(getElement?.());\n });\n}\n"]}
@@ -0,0 +1,15 @@
1
+ declare namespace _default {
2
+ let filterButton: string;
3
+ let groupButton: string;
4
+ let sortButton: string;
5
+ let moreOptionsButton: string;
6
+ let noRecords: string;
7
+ let aggregateDisplayValue: string;
8
+ let columnFilterIcon: string;
9
+ let groupHeader: string;
10
+ let groupHeaderCount: string;
11
+ let groupHeaderGroupBy: string;
12
+ let hierarchicalCell: string;
13
+ }
14
+ export default _default;
15
+ //# sourceMappingURL=TestIdConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestIdConstants.d.ts","sourceRoot":"","sources":["../../../Core/Components/TestIdConstants.js"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export default {
2
+ filterButton: 'repeat-filter-button',
3
+ groupButton: 'repeat-group-button',
4
+ sortButton: 'repeat-sort-button',
5
+ moreOptionsButton: 'repeat-more-options-button',
6
+ noRecords: 'repeat-no-records',
7
+ aggregateDisplayValue: 'aggregate-display-value',
8
+ columnFilterIcon: 'column-filter-icon',
9
+ groupHeader: 'group-header',
10
+ groupHeaderCount: 'group-header-count',
11
+ groupHeaderGroupBy: 'group-header-group-by',
12
+ hierarchicalCell: 'hierarchical-cell'
13
+ };
14
+ //# sourceMappingURL=TestIdConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestIdConstants.js","sourceRoot":"","sources":["../../../Core/Components/TestIdConstants.js"],"names":[],"mappings":"AAAA,eAAe;IACb,YAAY,EAAE,sBAAsB;IACpC,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,oBAAoB;IAChC,iBAAiB,EAAE,4BAA4B;IAC/C,SAAS,EAAE,mBAAmB;IAC9B,qBAAqB,EAAE,yBAAyB;IAChD,gBAAgB,EAAE,oBAAoB;IACtC,WAAW,EAAE,cAAc;IAC3B,gBAAgB,EAAE,oBAAoB;IACtC,kBAAkB,EAAE,uBAAuB;IAC3C,gBAAgB,EAAE,mBAAmB;CACtC,CAAC","sourcesContent":["export default {\n filterButton: 'repeat-filter-button',\n groupButton: 'repeat-group-button',\n sortButton: 'repeat-sort-button',\n moreOptionsButton: 'repeat-more-options-button',\n noRecords: 'repeat-no-records',\n aggregateDisplayValue: 'aggregate-display-value',\n columnFilterIcon: 'column-filter-icon',\n groupHeader: 'group-header',\n groupHeaderCount: 'group-header-count',\n groupHeaderGroupBy: 'group-header-group-by',\n hierarchicalCell: 'hierarchical-cell'\n};\n"]}
@@ -0,0 +1,15 @@
1
+ export default ActionsMenu;
2
+ declare function ActionsMenu({ view, enableActionsMenu }: {
3
+ view: any;
4
+ enableActionsMenu: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace ActionsMenu {
7
+ namespace propTypes {
8
+ let view: PropTypes.Validator<{
9
+ [x: string]: any;
10
+ }>;
11
+ let enableActionsMenu: PropTypes.Validator<boolean>;
12
+ }
13
+ }
14
+ import PropTypes from 'prop-types';
15
+ //# sourceMappingURL=ActionsMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/ActionsMenu.jsx"],"names":[],"mappings":";AAOA;;;4CAoEC;;;;;;;;;sBA3EqB,YAAY"}
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import PropTypes from 'prop-types';
3
+ import { useState, useEffect } from 'react';
4
+ import { MenuButton } from '@pega/cosmos-react-core';
5
+ import useTranslate from '../../Hooks/useTranslate';
6
+ function ActionsMenu({ view, enableActionsMenu }) {
7
+ const { state: { selectedRows } } = view;
8
+ const [actions, setActions] = useState([]);
9
+ const [actionsFetched, setActionsFetched] = useState(false);
10
+ const [translate] = useTranslate();
11
+ useEffect(() => {
12
+ setActions([]);
13
+ setActionsFetched(false);
14
+ }, [selectedRows]);
15
+ const fetchActions = () => {
16
+ if (!actionsFetched) {
17
+ view.type.fetchActions(selectedRows).then(response => {
18
+ const actionsArray = response.map(action => ({
19
+ ...action,
20
+ primary: action.text,
21
+ onClick: () => {
22
+ // cb to refresh only selected rows
23
+ action.onClick(selectedRows, view.type.clearSelectionAndRefreshRows.bind(null, selectedRows));
24
+ }
25
+ }));
26
+ setActions(actionsArray);
27
+ setActionsFetched(true);
28
+ });
29
+ }
30
+ };
31
+ // enableActionsMenu is false
32
+ let wrapperDivProps = {
33
+ 'aria-label': translate('Select two or more items to enable bulk actions'),
34
+ role: 'button',
35
+ 'aria-disabled': true,
36
+ tabIndex: 0
37
+ };
38
+ // enableActionsMenu is true
39
+ if (enableActionsMenu) {
40
+ wrapperDivProps = {
41
+ tabIndex: -1,
42
+ 'aria-disabled': false
43
+ };
44
+ }
45
+ return (_jsx("div", { ...wrapperDivProps, children: _jsx(MenuButton, { menu: {
46
+ items: actions.flat(),
47
+ emptyText: translate('No actions available'),
48
+ loading: !actionsFetched
49
+ }, popover: {
50
+ portal: true
51
+ }, onClick: fetchActions, variant: 'secondary', text: translate('Bulk actions'), iconOnly: false, disabled: !enableActionsMenu }) }));
52
+ }
53
+ ActionsMenu.propTypes = {
54
+ view: PropTypes.objectOf(PropTypes.any).isRequired,
55
+ enableActionsMenu: PropTypes.bool.isRequired
56
+ };
57
+ export default ActionsMenu;
58
+ //# sourceMappingURL=ActionsMenu.js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AAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAChE,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC,CAAC;gBACJ,UAAU,CAAC,YAAY,CAAC,CAAC;gBACzB,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAC1B,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC;IAEF,6BAA6B;IAC7B,IAAI,eAAe,GAAG;QACpB,YAAY,EAAE,SAAS,CAAC,iDAAiD,CAAC;QAC1E,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,IAAI;QACrB,QAAQ,EAAE,CAAC;KACZ,CAAC;IAEF,4BAA4B;IAC5B,IAAI,iBAAiB,EAAE,CAAC;QACtB,eAAe,GAAG;YAChB,QAAQ,EAAE,CAAC,CAAC;YACZ,eAAe,EAAE,KAAK;SACvB,CAAC;IACJ,CAAC;IAED,OAAO,CACL,iBAAS,eAAe,YACtB,KAAC,UAAU,IACT,IAAI,EAAE;gBACJ,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE;gBACrB,SAAS,EAAE,SAAS,CAAC,sBAAsB,CAAC;gBAC5C,OAAO,EAAE,CAAC,cAAc;aACzB,EACD,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI;aACb,EACD,OAAO,EAAE,YAAY,EACrB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,EAC/B,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,iBAAiB,GAC5B,GACE,CACP,CAAC;AACJ,CAAC;AAED,WAAW,CAAC,SAAS,GAAG;IACtB,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;IAClD,iBAAiB,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CAC7C,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import PropTypes from 'prop-types';\nimport { useState, useEffect } from 'react';\n\nimport { MenuButton } from '@pega/cosmos-react-core';\n\nimport useTranslate from '../../Hooks/useTranslate';\n\nfunction ActionsMenu({ view, enableActionsMenu }) {\n const {\n state: { selectedRows }\n } = view;\n\n const [actions, setActions] = useState([]);\n const [actionsFetched, setActionsFetched] = useState(false);\n const [translate] = useTranslate();\n useEffect(() => {\n setActions([]);\n setActionsFetched(false);\n }, [selectedRows]);\n\n const fetchActions = () => {\n if (!actionsFetched) {\n view.type.fetchActions(selectedRows).then(response => {\n const actionsArray = response.map(action => ({\n ...action,\n primary: action.text,\n onClick: () => {\n // cb to refresh only selected rows\n action.onClick(\n selectedRows,\n view.type.clearSelectionAndRefreshRows.bind(null, selectedRows)\n );\n }\n }));\n setActions(actionsArray);\n setActionsFetched(true);\n });\n }\n };\n\n // enableActionsMenu is false\n let wrapperDivProps = {\n 'aria-label': translate('Select two or more items to enable bulk actions'),\n role: 'button',\n 'aria-disabled': true,\n tabIndex: 0\n };\n\n // enableActionsMenu is true\n if (enableActionsMenu) {\n wrapperDivProps = {\n tabIndex: -1,\n 'aria-disabled': false\n };\n }\n\n return (\n <div {...wrapperDivProps}>\n <MenuButton\n menu={{\n items: actions.flat(),\n emptyText: translate('No actions available'),\n loading: !actionsFetched\n }}\n popover={{\n portal: true\n }}\n onClick={fetchActions}\n variant='secondary'\n text={translate('Bulk actions')}\n iconOnly={false}\n disabled={!enableActionsMenu}\n />\n </div>\n );\n}\n\nActionsMenu.propTypes = {\n view: PropTypes.objectOf(PropTypes.any).isRequired,\n enableActionsMenu: PropTypes.bool.isRequired\n};\n\nexport default ActionsMenu;\n"]}
@@ -0,0 +1,14 @@
1
+ declare function AdvanceToolbar({ view }: {
2
+ view: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AdvanceToolbar {
5
+ namespace propTypes {
6
+ let view: PropTypes.Validator<{
7
+ [x: string]: any;
8
+ }>;
9
+ }
10
+ let defaultProps: {};
11
+ }
12
+ export default AdvanceToolbar;
13
+ import PropTypes from 'prop-types';
14
+ //# sourceMappingURL=AdvanceToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdvanceToolbar.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/AdvanceToolbar.jsx"],"names":[],"mappings":"AAsBA;;4CAwHC;;;;;;;;;;sBA9IqB,YAAY"}
@@ -0,0 +1,59 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import PropTypes from 'prop-types';
3
+ import { ListToolbar } from '@pega/cosmos-react-core';
4
+ import { SELECTION_MODES } from '../../constants';
5
+ import ActionsMenu from './ActionsMenu';
6
+ import MapToolbar from './Map/MapToolbar';
7
+ import ToolbarActions from './ToolbarActions';
8
+ import TimelineToolbar from './Timeline/TimelineToolbar';
9
+ import useSearch from './hooks/useSearch';
10
+ import useFilter from './hooks/useFilter';
11
+ import usePersonalization from './hooks/usePersonalization';
12
+ import useMore from './hooks/useMore';
13
+ import useGroup from './hooks/useGroup/useGroup';
14
+ import useSort from './hooks/useSort/useSort';
15
+ import getCount from './utils/getCount';
16
+ import RefreshBanner from './RefreshBanner';
17
+ import AnnounceRowsCount from './AnnounceRowsCount';
18
+ import ValidateMessage from './ValidateMessage';
19
+ import useFormControlProps from './hooks/useFormControlProps';
20
+ export default function AdvanceToolbar({ view }) {
21
+ const { selectedRecordsCount, meta: { basicMode, selectionMode, title, toolbarActions, template, refreshAction, allowBulkActions, mapFieldIds } = {}, rows, state, getContext, isLoading, showCount } = view;
22
+ const { pendingRefresh } = state;
23
+ const { getRequiredDef } = getContext();
24
+ const { validatemessage } = getRequiredDef() || {};
25
+ const { viewSelector } = usePersonalization({ view });
26
+ const search = useSearch({ view });
27
+ const count = showCount ? getCount({ view }) : {};
28
+ const filter = useFilter({ view });
29
+ const group = useGroup({ view });
30
+ const sort = useSort({ view });
31
+ const { actions, actionsButtonRef, popover } = useMore({ view });
32
+ const enableActionsMenu = selectionMode === SELECTION_MODES.multi && selectedRecordsCount !== 0;
33
+ const formControlProps = useFormControlProps(view);
34
+ const additionalActions = (_jsxs(_Fragment, { children: [basicMode && (_jsx(ToolbarActions, { toolbarActions: toolbarActions?.filter(action => !action.id.startsWith('Add')) })), allowBulkActions && _jsx(ActionsMenu, { enableActionsMenu: enableActionsMenu, view: view })] }));
35
+ const createNewAction = toolbarActions?.find(action => action.id.startsWith('Add'));
36
+ const createNew = createNewAction && basicMode
37
+ ? {
38
+ label: createNewAction?.text,
39
+ onClick: createNewAction.onClick
40
+ }
41
+ : undefined;
42
+ let Toolbar;
43
+ switch (template) {
44
+ case 'Timeline':
45
+ Toolbar = (_jsxs(_Fragment, { children: [_jsx(TimelineToolbar, { name: title, formControlProps: formControlProps, viewSelector: viewSelector, search: search, count: count, additionalActions: additionalActions, filter: filter, createNew: createNew, view: view, actions: actions, actionsButtonRef: actionsButtonRef }), popover] }));
46
+ break;
47
+ case 'Map':
48
+ Toolbar = (_jsx(MapToolbar, { locationFieldId: mapFieldIds?.location, name: title, formControlProps: formControlProps, rows: rows, count: count, createNew: createNew, additionalActions: additionalActions }));
49
+ break;
50
+ default:
51
+ Toolbar = (_jsxs(_Fragment, { children: [_jsx(ListToolbar, { name: title, formControlProps: formControlProps, viewSelector: viewSelector, search: search, count: count, additionalActions: additionalActions, filter: filter, group: group, sort: sort, actions: actions, actionsButtonRef: actionsButtonRef, createNew: createNew }), popover] }));
52
+ }
53
+ return (_jsxs(AnnounceRowsCount, { state: state, count: count, isLoading: isLoading, children: [_jsx(ValidateMessage, { message: validatemessage, children: Toolbar }), refreshAction && pendingRefresh && (_jsx(RefreshBanner, { pendingRefresh: pendingRefresh, view: view }))] }));
54
+ }
55
+ AdvanceToolbar.propTypes = {
56
+ view: PropTypes.objectOf(PropTypes.any).isRequired
57
+ };
58
+ AdvanceToolbar.defaultProps = {};
59
+ //# sourceMappingURL=AdvanceToolbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdvanceToolbar.js","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/AdvanceToolbar.jsx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EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,aACjE,KAAC,eAAe,IAAC,OAAO,EAAE,eAAe,YACtC,OAAO,GAEQ,EACjB,aAAa,IAAI,cAAc,IAAI,CAClC,KAAC,aAAa,IAAC,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,GAAI,CAC9D,IACiB,CACrB,CAAC;AACJ,CAAC;AAED,cAAc,CAAC,SAAS,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;CACnD,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG,EAAE,CAAC","sourcesContent":["import PropTypes from 'prop-types';\n\nimport { ListToolbar } from '@pega/cosmos-react-core';\n\nimport { SELECTION_MODES } from '../../constants';\n\nimport ActionsMenu from './ActionsMenu';\nimport MapToolbar from './Map/MapToolbar';\nimport ToolbarActions from './ToolbarActions';\nimport TimelineToolbar from './Timeline/TimelineToolbar';\nimport useSearch from './hooks/useSearch';\nimport useFilter from './hooks/useFilter';\nimport usePersonalization from './hooks/usePersonalization';\nimport useMore from './hooks/useMore';\nimport useGroup from './hooks/useGroup/useGroup';\nimport useSort from './hooks/useSort/useSort';\nimport getCount from './utils/getCount';\nimport RefreshBanner from './RefreshBanner';\nimport AnnounceRowsCount from './AnnounceRowsCount';\nimport ValidateMessage from './ValidateMessage';\nimport useFormControlProps from './hooks/useFormControlProps';\n\nexport default function AdvanceToolbar({ view }) {\n const {\n selectedRecordsCount,\n meta: {\n basicMode,\n selectionMode,\n title,\n toolbarActions,\n template,\n refreshAction,\n allowBulkActions,\n mapFieldIds\n } = {},\n rows,\n state,\n getContext,\n isLoading,\n showCount\n } = view;\n const { pendingRefresh } = state;\n const { getRequiredDef } = getContext();\n const { validatemessage } = getRequiredDef() || {};\n const { viewSelector } = usePersonalization({ view });\n const search = useSearch({ view });\n const count = showCount ? getCount({ view }) : {};\n const filter = useFilter({ view });\n const group = useGroup({ view });\n const sort = useSort({ view });\n const { actions, actionsButtonRef, popover } = useMore({ view });\n const enableActionsMenu = selectionMode === SELECTION_MODES.multi && selectedRecordsCount !== 0;\n const formControlProps = useFormControlProps(view);\n\n const additionalActions = (\n <>\n {basicMode && (\n <ToolbarActions\n toolbarActions={toolbarActions?.filter(action => !action.id.startsWith('Add'))}\n />\n )}\n {allowBulkActions && <ActionsMenu enableActionsMenu={enableActionsMenu} view={view} />}\n </>\n );\n\n const createNewAction = toolbarActions?.find(action => action.id.startsWith('Add'));\n const createNew =\n createNewAction && basicMode\n ? {\n label: createNewAction?.text,\n onClick: createNewAction.onClick\n }\n : undefined;\n\n let Toolbar;\n switch (template) {\n case 'Timeline':\n Toolbar = (\n <>\n <TimelineToolbar\n name={title}\n formControlProps={formControlProps}\n viewSelector={viewSelector}\n search={search}\n count={count}\n additionalActions={additionalActions}\n filter={filter}\n createNew={createNew}\n view={view}\n actions={actions}\n actionsButtonRef={actionsButtonRef}\n />\n {popover}\n </>\n );\n break;\n case 'Map':\n Toolbar = (\n <MapToolbar\n locationFieldId={mapFieldIds?.location}\n name={title}\n formControlProps={formControlProps}\n rows={rows}\n count={count}\n createNew={createNew}\n additionalActions={additionalActions}\n />\n );\n break;\n default:\n Toolbar = (\n <>\n <ListToolbar\n name={title}\n formControlProps={formControlProps}\n viewSelector={viewSelector}\n search={search}\n count={count}\n additionalActions={additionalActions}\n filter={filter}\n group={group}\n sort={sort}\n actions={actions}\n actionsButtonRef={actionsButtonRef}\n createNew={createNew}\n />\n {popover}\n </>\n );\n }\n\n return (\n <AnnounceRowsCount state={state} count={count} isLoading={isLoading}>\n <ValidateMessage message={validatemessage}>\n {Toolbar}\n {/* FIXME: This implementation of error status should be considered temporary until an official, and properly accessible, spec is determined. */}\n </ValidateMessage>\n {refreshAction && pendingRefresh && (\n <RefreshBanner pendingRefresh={pendingRefresh} view={view} />\n )}\n </AnnounceRowsCount>\n );\n}\n\nAdvanceToolbar.propTypes = {\n view: PropTypes.objectOf(PropTypes.any).isRequired\n};\n\nAdvanceToolbar.defaultProps = {};\n"]}
@@ -0,0 +1,20 @@
1
+ export default AnnounceRowsCount;
2
+ declare function AnnounceRowsCount({ state, count, isLoading, children }: {
3
+ state: any;
4
+ count: any;
5
+ isLoading: any;
6
+ children: any;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare namespace AnnounceRowsCount {
9
+ namespace propTypes {
10
+ let state: PropTypes.Validator<{
11
+ [x: string]: any;
12
+ }>;
13
+ let count: PropTypes.Validator<{
14
+ [x: string]: any;
15
+ }>;
16
+ let children: PropTypes.Validator<object>;
17
+ }
18
+ }
19
+ import PropTypes from 'prop-types';
20
+ //# sourceMappingURL=AnnounceRowsCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnounceRowsCount.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/AnnounceRowsCount.jsx"],"names":[],"mappings":";AAIA;;;;;4CAGC;;;;;;;;;;;;sBAPqB,YAAY"}
@@ -0,0 +1,14 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import PropTypes from 'prop-types';
3
+ import useAnnounceRowsCount from './hooks/useAnnounceRowsCount';
4
+ const AnnounceRowsCount = ({ state, count, isLoading, children }) => {
5
+ useAnnounceRowsCount(state, count, isLoading);
6
+ return _jsx(_Fragment, { children: children });
7
+ };
8
+ AnnounceRowsCount.propTypes = {
9
+ state: PropTypes.objectOf(PropTypes.any).isRequired,
10
+ count: PropTypes.objectOf(PropTypes.any).isRequired,
11
+ children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]).isRequired
12
+ };
13
+ export default AnnounceRowsCount;
14
+ //# sourceMappingURL=AnnounceRowsCount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnounceRowsCount.js","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/AnnounceRowsCount.jsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAEhE,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClE,oBAAoB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAC9C,OAAO,4BAAG,QAAQ,GAAI,CAAC;AACzB,CAAC,CAAC;AAEF,iBAAiB,CAAC,SAAS,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;IACnD,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,UAAU;IACnD,QAAQ,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU;CAC9E,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import PropTypes from 'prop-types';\n\nimport useAnnounceRowsCount from './hooks/useAnnounceRowsCount';\n\nconst AnnounceRowsCount = ({ state, count, isLoading, children }) => {\n useAnnounceRowsCount(state, count, isLoading);\n return <>{children}</>;\n};\n\nAnnounceRowsCount.propTypes = {\n state: PropTypes.objectOf(PropTypes.any).isRequired,\n count: PropTypes.objectOf(PropTypes.any).isRequired,\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]).isRequired\n};\n\nexport default AnnounceRowsCount;\n"]}
@@ -0,0 +1,35 @@
1
+ export function getIconByFieldType(type: any): import("react/jsx-runtime").JSX.Element;
2
+ /**
3
+ * Transforms the columns array into array of columns grouped by category
4
+ * @param {Array} columns : ;
5
+ * @returns Arrays of columns nested by category
6
+ */
7
+ export function transformData(columns: any[], action: any): any[];
8
+ export function ColumnSelectorControl(props: any): import("react/jsx-runtime").JSX.Element;
9
+ export namespace ColumnSelectorControl {
10
+ namespace propTypes {
11
+ let data: PropTypes.Validator<(object | null | undefined)[]>;
12
+ let onSelect: PropTypes.Validator<(...args: any[]) => any>;
13
+ let forceShowPopup: PropTypes.Validator<boolean>;
14
+ }
15
+ }
16
+ export const colsVisibility: "Show/hide columns";
17
+ export const pinning: "Freeze columns";
18
+ declare const _default: import("react").MemoExoticComponent<typeof ColumnSelector>;
19
+ export default _default;
20
+ import PropTypes from 'prop-types';
21
+ declare function ColumnSelector({ dispatch, columns, action }: {
22
+ dispatch: any;
23
+ columns: any;
24
+ action: any;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ declare namespace ColumnSelector {
27
+ export namespace propTypes_1 {
28
+ let dispatch: PropTypes.Validator<(...args: any[]) => any>;
29
+ let columns: PropTypes.Validator<(object | null | undefined)[]>;
30
+ let action: PropTypes.Validator<string>;
31
+ }
32
+ export { propTypes_1 as propTypes };
33
+ export let defaultProps: {};
34
+ }
35
+ //# sourceMappingURL=ColumnSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnSelector.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/ColumnSelector.jsx"],"names":[],"mappings":"AAWA,uFAGC;AACD;;;;GAIG;AACH,kEA4DC;AAED,2FA8DC;;;;;;;;AAxID,iDAAkD;AAClD,uCAAwC;;;sBARlB,YAAY;AAuJlC;;;;4CAwBC"}
@@ -0,0 +1,141 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { memo, useCallback, useEffect, useRef, useState, useMemo } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { Icon, SearchInput, Menu, menuHelpers, useElement } from '@pega/cosmos-react-core';
5
+ import useSelect from '../../Hooks/UseSelect';
6
+ import { allowToggle, getFieldIcon } from '../../Utils';
7
+ export const colsVisibility = 'Show/hide columns';
8
+ export const pinning = 'Freeze columns';
9
+ export function getIconByFieldType(type) {
10
+ const iconName = getFieldIcon(type);
11
+ return _jsx(Icon, { "data-test-id": iconName, "data-testid": iconName, name: iconName });
12
+ }
13
+ /**
14
+ * Transforms the columns array into array of columns grouped by category
15
+ * @param {Array} columns : ;
16
+ * @returns Arrays of columns nested by category
17
+ */
18
+ export function transformData(columns, action) {
19
+ const result = [];
20
+ if (!columns?.length)
21
+ return result;
22
+ const categoryObj = {};
23
+ const allowColumnToggle = allowToggle(columns[0].parent.getVisibleColumns());
24
+ columns
25
+ ?.filter(c => c.field.toggle)
26
+ .forEach(column => {
27
+ const { field: { id, category = [], type }, label, hidden, frozen } = column;
28
+ const lastCategoryLabel = category.length ? category[category.length - 1].label : undefined;
29
+ let selectAction;
30
+ let disabled;
31
+ if (action === colsVisibility) {
32
+ selectAction = !hidden;
33
+ disabled = !allowColumnToggle && !hidden;
34
+ }
35
+ else if (action === pinning)
36
+ selectAction = frozen;
37
+ if (categoryObj[lastCategoryLabel])
38
+ categoryObj[lastCategoryLabel].items.push({
39
+ id,
40
+ primary: label,
41
+ label,
42
+ selected: selectAction,
43
+ type,
44
+ disabled
45
+ });
46
+ else {
47
+ categoryObj[lastCategoryLabel] = {
48
+ id: lastCategoryLabel,
49
+ label: lastCategoryLabel,
50
+ items: [
51
+ {
52
+ id,
53
+ primary: label,
54
+ selected: selectAction,
55
+ label,
56
+ type,
57
+ disabled
58
+ }
59
+ ]
60
+ };
61
+ }
62
+ });
63
+ // Items with no category attribute are set in the root of returned array
64
+ if (categoryObj[undefined] && categoryObj[undefined].items) {
65
+ result.push(...categoryObj[undefined].items);
66
+ delete categoryObj[undefined];
67
+ }
68
+ const keys = Object.keys(categoryObj);
69
+ // Items with category attribute are grouped inside the nested category object
70
+ keys.forEach(key => {
71
+ result.push(categoryObj[key]);
72
+ });
73
+ return result;
74
+ }
75
+ export function ColumnSelectorControl(props) {
76
+ const { data, onSelect, forceShowPopup } = props;
77
+ const flatData = menuHelpers.flatten(data);
78
+ data.forEach(d => {
79
+ if (d.items)
80
+ d.items.forEach(item => {
81
+ item.visual = getIconByFieldType(item.type);
82
+ });
83
+ else {
84
+ d.visual = getIconByFieldType(d.type);
85
+ }
86
+ });
87
+ const selectedData = flatData.filter(o => o.selected).map(obj => obj.id);
88
+ const [visibleColumns, onChecked] = useSelect(selectedData);
89
+ const onChange = useCallback(id => onChecked(id), [onChecked]);
90
+ const [searchQuery, onSearch] = useState('');
91
+ const [searchEl, setSearchEl] = useElement(null);
92
+ const hasMountedRef = useRef(false);
93
+ const onSearchTriggered = useCallback(searchString => {
94
+ onSearch(searchString);
95
+ }, [onSearch]);
96
+ useEffect(() => {
97
+ if (forceShowPopup && searchEl)
98
+ searchEl.focus();
99
+ }, [forceShowPopup, searchEl]);
100
+ useEffect(() => {
101
+ if (hasMountedRef.current) {
102
+ const previousVisibleColumns = flatData.filter(o => o.selected).map(o => o.id);
103
+ const currentVisibleColumns = [...visibleColumns];
104
+ const toggledColumns = [
105
+ ...currentVisibleColumns.filter(id => !previousVisibleColumns.includes(id)),
106
+ ...previousVisibleColumns.filter(id => !visibleColumns.has(id))
107
+ ];
108
+ onSelect(toggledColumns);
109
+ }
110
+ hasMountedRef.current = true;
111
+ }, [visibleColumns]);
112
+ const itemsToRender = searchQuery
113
+ ? flatData.filter(item => item.label.toLowerCase().includes(searchQuery.toLowerCase()))
114
+ : data;
115
+ return (_jsx(Menu, { items: itemsToRender, mode: 'multi-select', onItemClick: onChange, role: 'listbox', focusControlEl: searchEl || undefined, header: _jsx(SearchInput, { value: searchQuery, onSearchChange: onSearchTriggered, ref: setSearchEl }) }));
116
+ }
117
+ ColumnSelectorControl.propTypes = {
118
+ data: PropTypes.arrayOf(PropTypes.object).isRequired,
119
+ onSelect: PropTypes.func.isRequired,
120
+ forceShowPopup: PropTypes.bool.isRequired
121
+ };
122
+ function ColumnSelector({ dispatch, columns, action }) {
123
+ const data = useMemo(() => transformData(columns, action), [columns, action]);
124
+ const [forceShowPopup, setForceShowPopup] = useState(true);
125
+ const onSelectHandler = useCallback(cols => {
126
+ if (columns.length > 100) {
127
+ setForceShowPopup(false);
128
+ }
129
+ if (cols.length > 0)
130
+ dispatch(cols);
131
+ }, [dispatch, columns.length]);
132
+ return (_jsx(_Fragment, { children: forceShowPopup && (_jsx(ColumnSelectorControl, { data: data, onSelect: onSelectHandler, forceShowPopup: forceShowPopup })) }));
133
+ }
134
+ ColumnSelector.propTypes = {
135
+ dispatch: PropTypes.func.isRequired,
136
+ columns: PropTypes.arrayOf(PropTypes.object).isRequired,
137
+ action: PropTypes.string.isRequired
138
+ };
139
+ ColumnSelector.defaultProps = {};
140
+ export default memo(ColumnSelector);
141
+ //# sourceMappingURL=ColumnSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnSelector.js","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/ColumnSelector.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE3F,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAClD,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,MAAM,UAAU,kBAAkB,CAAC,IAAI;IACrC,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACpC,OAAO,KAAC,IAAI,oBAAe,QAAQ,iBAAe,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAI,CAAC;AACjF,CAAC;AACD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,OAAO,EAAE,MAAM;IAC3C,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,CAAC,OAAO,EAAE,MAAM;QAAE,OAAO,MAAM,CAAC;IAEpC,MA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CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3D,MAAM,eAAe,GAAG,WAAW,CACjC,IAAI,CAAC,EAAE;QACL,IAAI,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;YACzB,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;YAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,EACD,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,4BACG,cAAc,IAAI,CACjB,KAAC,qBAAqB,IACpB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,eAAe,EACzB,cAAc,EAAE,cAAc,GAC9B,CACH,GACA,CACJ,CAAC;AACJ,CAAC;AAED,cAAc,CAAC,SAAS,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,UAAU;IACvD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;CACpC,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG,EAAE,CAAC;AAEjC,eAAe,IAAI,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import { memo, useCallback, useEffect, useRef, useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Icon, SearchInput, Menu, menuHelpers, useElement } from '@pega/cosmos-react-core';\n\nimport useSelect from '../../Hooks/UseSelect';\nimport { allowToggle, getFieldIcon } from '../../Utils';\n\nexport const colsVisibility = 'Show/hide columns';\nexport const pinning = 'Freeze columns';\n\nexport function getIconByFieldType(type) {\n const iconName = getFieldIcon(type);\n return <Icon data-test-id={iconName} data-testid={iconName} name={iconName} />;\n}\n/**\n * Transforms the columns array into array of columns grouped by category\n * @param {Array} columns : ;\n * @returns Arrays of columns nested by category\n */\nexport function transformData(columns, action) {\n const result = [];\n if (!columns?.length) return result;\n\n const categoryObj = {};\n const allowColumnToggle = allowToggle(columns[0].parent.getVisibleColumns());\n\n columns\n ?.filter(c => c.field.toggle)\n .forEach(column => {\n const {\n field: { id, category = [], type },\n label,\n hidden,\n frozen\n } = column;\n const lastCategoryLabel = category.length ? category[category.length - 1].label : undefined;\n let selectAction;\n let disabled;\n if (action === colsVisibility) {\n selectAction = !hidden;\n disabled = !allowColumnToggle && !hidden;\n } else if (action === pinning) selectAction = frozen;\n if (categoryObj[lastCategoryLabel])\n categoryObj[lastCategoryLabel].items.push({\n id,\n primary: label,\n label,\n selected: selectAction,\n type,\n disabled\n });\n else {\n categoryObj[lastCategoryLabel] = {\n id: lastCategoryLabel,\n label: lastCategoryLabel,\n items: [\n {\n id,\n primary: label,\n selected: selectAction,\n label,\n type,\n disabled\n }\n ]\n };\n }\n });\n // Items with no category attribute are set in the root of returned array\n if (categoryObj[undefined] && categoryObj[undefined].items) {\n result.push(...categoryObj[undefined].items);\n delete categoryObj[undefined];\n }\n const keys = Object.keys(categoryObj);\n // Items with category attribute are grouped inside the nested category object\n keys.forEach(key => {\n result.push(categoryObj[key]);\n });\n return result;\n}\n\nexport function ColumnSelectorControl(props) {\n const { data, onSelect, forceShowPopup } = props;\n const flatData = menuHelpers.flatten(data);\n\n data.forEach(d => {\n if (d.items)\n d.items.forEach(item => {\n item.visual = getIconByFieldType(item.type);\n });\n else {\n d.visual = getIconByFieldType(d.type);\n }\n });\n\n const selectedData = flatData.filter(o => o.selected).map(obj => obj.id);\n const [visibleColumns, onChecked] = useSelect(selectedData);\n const onChange = useCallback(id => onChecked(id), [onChecked]);\n const [searchQuery, onSearch] = useState('');\n const [searchEl, setSearchEl] = useElement(null);\n\n const hasMountedRef = useRef(false);\n\n const onSearchTriggered = useCallback(\n searchString => {\n onSearch(searchString);\n },\n [onSearch]\n );\n\n useEffect(() => {\n if (forceShowPopup && searchEl) searchEl.focus();\n }, [forceShowPopup, searchEl]);\n\n useEffect(() => {\n if (hasMountedRef.current) {\n const previousVisibleColumns = flatData.filter(o => o.selected).map(o => o.id);\n const currentVisibleColumns = [...visibleColumns];\n const toggledColumns = [\n ...currentVisibleColumns.filter(id => !previousVisibleColumns.includes(id)),\n ...previousVisibleColumns.filter(id => !visibleColumns.has(id))\n ];\n onSelect(toggledColumns);\n }\n hasMountedRef.current = true;\n }, [visibleColumns]);\n\n const itemsToRender = searchQuery\n ? flatData.filter(item => item.label.toLowerCase().includes(searchQuery.toLowerCase()))\n : data;\n\n return (\n <Menu\n items={itemsToRender}\n mode='multi-select'\n onItemClick={onChange}\n role='listbox'\n focusControlEl={searchEl || undefined}\n header={\n <SearchInput value={searchQuery} onSearchChange={onSearchTriggered} ref={setSearchEl} />\n }\n />\n );\n}\n\nColumnSelectorControl.propTypes = {\n data: PropTypes.arrayOf(PropTypes.object).isRequired,\n onSelect: PropTypes.func.isRequired,\n forceShowPopup: PropTypes.bool.isRequired\n};\n\nfunction ColumnSelector({ dispatch, columns, action }) {\n const data = useMemo(() => transformData(columns, action), [columns, action]);\n const [forceShowPopup, setForceShowPopup] = useState(true);\n const onSelectHandler = useCallback(\n cols => {\n if (columns.length > 100) {\n setForceShowPopup(false);\n }\n if (cols.length > 0) dispatch(cols);\n },\n [dispatch, columns.length]\n );\n\n return (\n <>\n {forceShowPopup && (\n <ColumnSelectorControl\n data={data}\n onSelect={onSelectHandler}\n forceShowPopup={forceShowPopup}\n />\n )}\n </>\n );\n}\n\nColumnSelector.propTypes = {\n dispatch: PropTypes.func.isRequired,\n columns: PropTypes.arrayOf(PropTypes.object).isRequired,\n action: PropTypes.string.isRequired\n};\n\nColumnSelector.defaultProps = {};\n\nexport default memo(ColumnSelector);\n"]}
@@ -0,0 +1,14 @@
1
+ declare const _default: import("react").MemoExoticComponent<typeof DebugInfo>;
2
+ export default _default;
3
+ declare function DebugInfo({ view }: {
4
+ view: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace DebugInfo {
7
+ namespace propTypes {
8
+ let view: PropTypes.Validator<{
9
+ [x: string]: any;
10
+ }>;
11
+ }
12
+ }
13
+ import PropTypes from 'prop-types';
14
+ //# sourceMappingURL=DebugInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugInfo.d.ts","sourceRoot":"","sources":["../../../../Core/Components/Toolbar/DebugInfo.jsx"],"names":[],"mappings":";;AA0BA;;4CAiDC;;;;;;;;sBA1EqB,YAAY"}
@@ -0,0 +1,48 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo, useRef, useEffect } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import styled, { css } from 'styled-components';
5
+ import { Card, CardContent, CardHeader, FieldValueList, Text } from '@pega/cosmos-react-core';
6
+ import useTranslate from '../../Hooks/useTranslate';
7
+ import { debugInfoFields } from '../../constants';
8
+ const fieldsConfiguration = [
9
+ { field: debugInfoFields.className, defaultLabel: 'Class' },
10
+ { field: debugInfoFields.dataPage, defaultLabel: 'Data page' },
11
+ { field: debugInfoFields.dataSource, defaultLabel: 'Data source' },
12
+ { field: debugInfoFields.timeTaken, defaultLabel: 'Time taken' },
13
+ { field: debugInfoFields.insightId, defaultLabel: 'Insight ID', hideIfNotAvailable: true }
14
+ ];
15
+ const StyledDebugInfo = styled.div(() => {
16
+ return css `
17
+ .debug-record {
18
+ /* stylelint-disable unit-allowed-list */
19
+ padding: 5px;
20
+ }
21
+ `;
22
+ });
23
+ function DebugInfo({ view }) {
24
+ const [translate] = useTranslate();
25
+ const debugInfoList = view.debugInfo.length === 0 ? [{}] : view.debugInfo;
26
+ const headingRef = useRef(null);
27
+ useEffect(() => {
28
+ if (headingRef.current)
29
+ headingRef.current.focus();
30
+ }, []);
31
+ const formattedData = debugInfoList.map(debugInfoEntry => fieldsConfiguration.reduce((result, { field, defaultLabel, hideIfNotAvailable }) => {
32
+ if (hideIfNotAvailable && !debugInfoEntry[field]) {
33
+ return result;
34
+ }
35
+ result.push({
36
+ id: field,
37
+ name: translate(defaultLabel),
38
+ value: debugInfoEntry[field] ? (_jsx(Text, { variant: 'h5', "data-testid": `field-${field}`, children: debugInfoEntry[field] })) : undefined
39
+ });
40
+ return result;
41
+ }, []));
42
+ return (_jsx(StyledDebugInfo, { children: _jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(Text, { tabIndex: 0, ref: headingRef, variant: 'h2', children: translate('Query info') }) }), _jsx(CardContent, { children: formattedData.map((debugInfoEntry, index) => (_jsx(FieldValueList, { className: 'debug-record', variant: 'inline', fields: debugInfoEntry }, index))) })] }) }));
43
+ }
44
+ DebugInfo.propTypes = {
45
+ view: PropTypes.objectOf(PropTypes.any).isRequired
46
+ };
47
+ export default memo(DebugInfo);
48
+ //# sourceMappingURL=DebugInfo.js.map