@pega/lists-react 9.0.0-build.2.9 → 9.0.0-build.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/README.md +1 -4
  2. package/lib/Core/Components/A11y/RepeatingStructureA11y.d.ts +10 -5
  3. package/lib/Core/Components/A11y/RepeatingStructureA11y.d.ts.map +1 -1
  4. package/lib/Core/Components/A11y/RepeatingStructureA11y.js +27 -2
  5. package/lib/Core/Components/A11y/RepeatingStructureA11y.js.map +1 -1
  6. package/lib/Core/Components/AggregateMenu.d.ts +1 -0
  7. package/lib/Core/Components/AggregateMenu.d.ts.map +1 -1
  8. package/lib/Core/Components/AggregateMenu.js +32 -18
  9. package/lib/Core/Components/AggregateMenu.js.map +1 -1
  10. package/lib/Core/Components/ContextMenu/ContextMenuContainer.d.ts +6 -15
  11. package/lib/Core/Components/ContextMenu/ContextMenuContainer.d.ts.map +1 -1
  12. package/lib/Core/Components/ContextMenu/ContextMenuContainer.js +91 -163
  13. package/lib/Core/Components/ContextMenu/ContextMenuContainer.js.map +1 -1
  14. package/lib/Core/Components/ContextMenu/QuickFilter.js +7 -7
  15. package/lib/Core/Components/ContextMenu/QuickFilter.js.map +1 -1
  16. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.d.ts +1 -1
  17. package/lib/Core/Components/DefaultComponents/CellRenderers/ColumnMergeTemplates/CustomCellWrapper.d.ts.map +1 -1
  18. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.d.ts +2 -1
  19. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.d.ts.map +1 -1
  20. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.js +9 -21
  21. package/lib/Core/Components/DefaultComponents/CellRenderers/RowActionMenu.js.map +1 -1
  22. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.d.ts +2 -1
  23. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.d.ts.map +1 -1
  24. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.js +4 -3
  25. package/lib/Core/Components/DefaultComponents/CellRenderers/RowDragDropHandle.js.map +1 -1
  26. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.d.ts +2 -1
  27. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.d.ts.map +1 -1
  28. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.js +4 -3
  29. package/lib/Core/Components/DefaultComponents/CellRenderers/RowError.js.map +1 -1
  30. package/lib/Core/Components/DefaultComponents/CellRenderers/index.d.ts +0 -2
  31. package/lib/Core/Components/DefaultComponents/CellRenderers/index.d.ts.map +1 -1
  32. package/lib/Core/Components/DefaultComponents/CellRenderers/index.js +0 -2
  33. package/lib/Core/Components/DefaultComponents/CellRenderers/index.js.map +1 -1
  34. package/lib/Core/Components/DefaultComponents/EmptyContainer.d.ts +5 -1
  35. package/lib/Core/Components/DefaultComponents/EmptyContainer.d.ts.map +1 -1
  36. package/lib/Core/Components/DefaultComponents/EmptyContainer.js +12 -5
  37. package/lib/Core/Components/DefaultComponents/EmptyContainer.js.map +1 -1
  38. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.d.ts +3 -2
  39. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.d.ts.map +1 -1
  40. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.js +13 -26
  41. package/lib/Core/Components/DefaultComponents/PersonalizationCreateEdit.js.map +1 -1
  42. package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.js +2 -2
  43. package/lib/Core/Components/DefaultComponents/PersonalizationDeleteConfirmation.js.map +1 -1
  44. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.d.ts +0 -2
  45. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.d.ts.map +1 -1
  46. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.js +11 -9
  47. package/lib/Core/Components/DefaultComponents/PersonalizationSelector.js.map +1 -1
  48. package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.d.ts.map +1 -1
  49. package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.js +5 -0
  50. package/lib/Core/Components/DefaultComponents/SelectAllCheckbox.js.map +1 -1
  51. package/lib/Core/Components/DefaultComponents/index.d.ts +5 -3
  52. package/lib/Core/Components/DefaultComponents/index.d.ts.map +1 -1
  53. package/lib/Core/Components/DefaultComponents/index.js +0 -2
  54. package/lib/Core/Components/DefaultComponents/index.js.map +1 -1
  55. package/lib/Core/Components/Filters/CommonFilter.d.ts.map +1 -1
  56. package/lib/Core/Components/Filters/CommonFilter.js +2 -2
  57. package/lib/Core/Components/Filters/CommonFilter.js.map +1 -1
  58. package/lib/Core/Components/Filters/FilterType.js +5 -5
  59. package/lib/Core/Components/Filters/FilterType.js.map +1 -1
  60. package/lib/Core/Components/Filters/SelectFilter.d.ts.map +1 -1
  61. package/lib/Core/Components/Filters/SelectFilter.js +2 -2
  62. package/lib/Core/Components/Filters/SelectFilter.js.map +1 -1
  63. package/lib/Core/Components/Filters/styles.d.ts +1 -1
  64. package/lib/Core/Components/FooterAggregators.d.ts.map +1 -1
  65. package/lib/Core/Components/FooterAggregators.js +3 -2
  66. package/lib/Core/Components/FooterAggregators.js.map +1 -1
  67. package/lib/Core/Components/GroupRenderer/GroupAdditionalFieldDataModal.d.ts +12 -0
  68. package/lib/Core/Components/GroupRenderer/GroupAdditionalFieldDataModal.d.ts.map +1 -0
  69. package/lib/Core/Components/GroupRenderer/GroupAdditionalFieldDataModal.js +62 -0
  70. package/lib/Core/Components/GroupRenderer/GroupAdditionalFieldDataModal.js.map +1 -0
  71. package/lib/Core/Components/GroupRenderer/GroupAdditionalInfo.d.ts +33 -0
  72. package/lib/Core/Components/GroupRenderer/GroupAdditionalInfo.d.ts.map +1 -0
  73. package/lib/Core/Components/GroupRenderer/GroupAdditionalInfo.js +106 -0
  74. package/lib/Core/Components/GroupRenderer/GroupAdditionalInfo.js.map +1 -0
  75. package/lib/Core/Components/{GroupRenderer.d.ts → GroupRenderer/index.d.ts} +8 -1
  76. package/lib/Core/Components/GroupRenderer/index.d.ts.map +1 -0
  77. package/lib/Core/Components/GroupRenderer/index.js +367 -0
  78. package/lib/Core/Components/GroupRenderer/index.js.map +1 -0
  79. package/lib/Core/Components/Grouping/GroupingMenu.d.ts.map +1 -1
  80. package/lib/Core/Components/Grouping/GroupingMenu.js +6 -5
  81. package/lib/Core/Components/Grouping/GroupingMenu.js.map +1 -1
  82. package/lib/Core/Components/HeaderCell.d.ts.map +1 -1
  83. package/lib/Core/Components/HeaderCell.js +8 -5
  84. package/lib/Core/Components/HeaderCell.js.map +1 -1
  85. package/lib/Core/Components/HeaderMenu/actions.d.ts +1 -1
  86. package/lib/Core/Components/HeaderMenu/actions.d.ts.map +1 -1
  87. package/lib/Core/Components/HeaderMenu/actions.js +6 -6
  88. package/lib/Core/Components/HeaderMenu/actions.js.map +1 -1
  89. package/lib/Core/Components/HeaderMenu/index.d.ts.map +1 -1
  90. package/lib/Core/Components/HeaderMenu/index.js +4 -4
  91. package/lib/Core/Components/HeaderMenu/index.js.map +1 -1
  92. package/lib/Core/Components/NotificationManager.js +1 -1
  93. package/lib/Core/Components/NotificationManager.js.map +1 -1
  94. package/lib/Core/Components/RFColumnConfigurator.d.ts.map +1 -1
  95. package/lib/Core/Components/RFColumnConfigurator.js +32 -9
  96. package/lib/Core/Components/RFColumnConfigurator.js.map +1 -1
  97. package/lib/Core/Components/RSWrapper/HeaderBarGadget.d.ts.map +1 -1
  98. package/lib/Core/Components/RSWrapper/HeaderBarGadget.js +2 -1
  99. package/lib/Core/Components/RSWrapper/HeaderBarGadget.js.map +1 -1
  100. package/lib/Core/Components/RenderingEngine/Formatter.d.ts.map +1 -1
  101. package/lib/Core/Components/RenderingEngine/Formatter.js +4 -1
  102. package/lib/Core/Components/RenderingEngine/Formatter.js.map +1 -1
  103. package/lib/Core/Components/RenderingEngine/RenderCell.d.ts +1 -1
  104. package/lib/Core/Components/RenderingEngine/RenderCell.d.ts.map +1 -1
  105. package/lib/Core/Components/RenderingEngine/RenderCell.js +4 -2
  106. package/lib/Core/Components/RenderingEngine/RenderCell.js.map +1 -1
  107. package/lib/Core/Components/TestIdConstants.d.ts +1 -0
  108. package/lib/Core/Components/TestIdConstants.js +2 -1
  109. package/lib/Core/Components/TestIdConstants.js.map +1 -1
  110. package/lib/Core/Components/Toolbar/AdvanceToolbar.d.ts.map +1 -1
  111. package/lib/Core/Components/Toolbar/AdvanceToolbar.js +9 -33
  112. package/lib/Core/Components/Toolbar/AdvanceToolbar.js.map +1 -1
  113. package/lib/Core/Components/Toolbar/AnnounceRowsCount.d.ts +1 -1
  114. package/lib/Core/Components/Toolbar/AnnounceRowsCount.js +1 -1
  115. package/lib/Core/Components/Toolbar/AnnounceRowsCount.js.map +1 -1
  116. package/lib/Core/Components/Toolbar/ColumnSelector.d.ts +20 -9
  117. package/lib/Core/Components/Toolbar/ColumnSelector.d.ts.map +1 -1
  118. package/lib/Core/Components/Toolbar/ColumnSelector.js +89 -65
  119. package/lib/Core/Components/Toolbar/ColumnSelector.js.map +1 -1
  120. package/lib/Core/Components/Toolbar/DebugInfo.d.ts +3 -5
  121. package/lib/Core/Components/Toolbar/DebugInfo.d.ts.map +1 -1
  122. package/lib/Core/Components/Toolbar/DebugInfo.js +3 -3
  123. package/lib/Core/Components/Toolbar/DebugInfo.js.map +1 -1
  124. package/lib/Core/Components/Toolbar/FieldSelector.d.ts +1 -0
  125. package/lib/Core/Components/Toolbar/FieldSelector.d.ts.map +1 -1
  126. package/lib/Core/Components/Toolbar/FieldSelector.js +3 -2
  127. package/lib/Core/Components/Toolbar/FieldSelector.js.map +1 -1
  128. package/lib/Core/Components/Toolbar/Grouping.types.d.ts +0 -6
  129. package/lib/Core/Components/Toolbar/Grouping.types.d.ts.map +1 -1
  130. package/lib/Core/Components/Toolbar/Grouping.types.js.map +1 -1
  131. package/lib/Core/Components/Toolbar/SimpleToolbar.d.ts.map +1 -1
  132. package/lib/Core/Components/Toolbar/SimpleToolbar.js +4 -3
  133. package/lib/Core/Components/Toolbar/SimpleToolbar.js.map +1 -1
  134. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts +14 -18
  135. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.d.ts.map +1 -1
  136. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js +15 -16
  137. package/lib/Core/Components/Toolbar/hooks/useGroup/DateFunctionSelector.js.map +1 -1
  138. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts +2 -1
  139. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.d.ts.map +1 -1
  140. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js +10 -7
  141. package/lib/Core/Components/Toolbar/hooks/useGroup/GroupRenderer.js.map +1 -1
  142. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.d.ts.map +1 -1
  143. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js +6 -3
  144. package/lib/Core/Components/Toolbar/hooks/useGroup/useGroup.js.map +1 -1
  145. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts +7 -2
  146. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.d.ts.map +1 -1
  147. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js +11 -3
  148. package/lib/Core/Components/Toolbar/hooks/useGroup/utils.js.map +1 -1
  149. package/lib/Core/Components/Toolbar/hooks/useMore.d.ts +1 -1
  150. package/lib/Core/Components/Toolbar/hooks/useMore.d.ts.map +1 -1
  151. package/lib/Core/Components/Toolbar/hooks/useMore.js +81 -79
  152. package/lib/Core/Components/Toolbar/hooks/useMore.js.map +1 -1
  153. package/lib/Core/Components/Toolbar/hooks/usePersonalization.d.ts +8 -6
  154. package/lib/Core/Components/Toolbar/hooks/usePersonalization.d.ts.map +1 -1
  155. package/lib/Core/Components/Toolbar/hooks/usePersonalization.js +18 -3
  156. package/lib/Core/Components/Toolbar/hooks/usePersonalization.js.map +1 -1
  157. package/lib/Core/Components/Toolbar/hooks/useSearch.d.ts.map +1 -1
  158. package/lib/Core/Components/Toolbar/hooks/useSearch.js +6 -9
  159. package/lib/Core/Components/Toolbar/hooks/useSearch.js.map +1 -1
  160. package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts +4 -4
  161. package/lib/Core/Components/Toolbar/hooks/useSort/Row.d.ts.map +1 -1
  162. package/lib/Core/Components/Toolbar/hooks/useSort/Row.js +6 -6
  163. package/lib/Core/Components/Toolbar/hooks/useSort/Row.js.map +1 -1
  164. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts +2 -1
  165. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.d.ts.map +1 -1
  166. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js +8 -2
  167. package/lib/Core/Components/Toolbar/hooks/useSort/SortRenderer.js.map +1 -1
  168. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.d.ts.map +1 -1
  169. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js +2 -2
  170. package/lib/Core/Components/Toolbar/hooks/useSort/useSort.js.map +1 -1
  171. package/lib/Core/Components/Toolbar/hooks/useWrapAction.d.ts +6 -0
  172. package/lib/Core/Components/Toolbar/hooks/useWrapAction.d.ts.map +1 -0
  173. package/lib/Core/Components/Toolbar/hooks/useWrapAction.js +17 -0
  174. package/lib/Core/Components/Toolbar/hooks/useWrapAction.js.map +1 -0
  175. package/lib/Core/Components/Toolbar/utils/utils.d.ts +1 -1
  176. package/lib/Core/Components/Toolbar/utils/utils.d.ts.map +1 -1
  177. package/lib/Core/Components/Toolbar/utils/utils.js +2 -1
  178. package/lib/Core/Components/Toolbar/utils/utils.js.map +1 -1
  179. package/lib/Core/Components/Virtualise/Pagination.d.ts.map +1 -1
  180. package/lib/Core/Components/Virtualise/Pagination.js +2 -1
  181. package/lib/Core/Components/Virtualise/Pagination.js.map +1 -1
  182. package/lib/Core/Components/Virtualise/UseScroll.d.ts +4 -1
  183. package/lib/Core/Components/Virtualise/UseScroll.d.ts.map +1 -1
  184. package/lib/Core/Components/Virtualise/UseScroll.js +16 -3
  185. package/lib/Core/Components/Virtualise/UseScroll.js.map +1 -1
  186. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/VariableHeightVirtualizer.d.ts +97 -0
  187. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/VariableHeightVirtualizer.d.ts.map +1 -0
  188. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/VariableHeightVirtualizer.js +251 -0
  189. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/VariableHeightVirtualizer.js.map +1 -0
  190. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useChildrenHeightResizeObserver.d.ts +22 -0
  191. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useChildrenHeightResizeObserver.d.ts.map +1 -0
  192. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useChildrenHeightResizeObserver.js +38 -0
  193. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useChildrenHeightResizeObserver.js.map +1 -0
  194. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useLoaderPositioning.d.ts +22 -0
  195. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useLoaderPositioning.d.ts.map +1 -0
  196. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useLoaderPositioning.js +45 -0
  197. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useLoaderPositioning.js.map +1 -0
  198. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/usePagination.d.ts +49 -0
  199. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/usePagination.d.ts.map +1 -0
  200. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/usePagination.js +55 -0
  201. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/usePagination.js.map +1 -0
  202. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useScroll.d.ts +21 -0
  203. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useScroll.d.ts.map +1 -0
  204. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useScroll.js +39 -0
  205. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useScroll.js.map +1 -0
  206. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useVirtualizerItemCount.d.ts +38 -0
  207. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useVirtualizerItemCount.d.ts.map +1 -0
  208. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useVirtualizerItemCount.js +62 -0
  209. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/useVirtualizerItemCount.js.map +1 -0
  210. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/utils.d.ts +112 -0
  211. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/utils.d.ts.map +1 -0
  212. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/utils.js +214 -0
  213. package/lib/Core/Components/Virtualise/VariableHeightVirtualizer/utils.js.map +1 -0
  214. package/lib/Core/Components/Virtualise/VirtualizeInfinite.js +21 -8
  215. package/lib/Core/Components/Virtualise/VirtualizeInfinite.js.map +1 -1
  216. package/lib/Core/Components/Virtualise/index.js +21 -13
  217. package/lib/Core/Components/Virtualise/index.js.map +1 -1
  218. package/lib/Core/Components/Virtualise/utility.d.ts +1 -1
  219. package/lib/Core/Components/Virtualise/utility.d.ts.map +1 -1
  220. package/lib/Core/Components/Virtualise/utility.js +3 -2
  221. package/lib/Core/Components/Virtualise/utility.js.map +1 -1
  222. package/lib/Core/Context/LocalizationContext.d.ts +1 -1
  223. package/lib/Core/Context/LocalizationContext.d.ts.map +1 -1
  224. package/lib/Core/Context/LocalizationContext.js.map +1 -1
  225. package/lib/Core/Hooks/a11y/useAnnounce.d.ts +19 -0
  226. package/lib/Core/Hooks/a11y/useAnnounce.d.ts.map +1 -0
  227. package/lib/Core/Hooks/a11y/useAnnounce.js +49 -0
  228. package/lib/Core/Hooks/a11y/useAnnounce.js.map +1 -0
  229. package/lib/Core/Hooks/useDragDrop.d.ts.map +1 -1
  230. package/lib/Core/Hooks/useDragDrop.js +2 -0
  231. package/lib/Core/Hooks/useDragDrop.js.map +1 -1
  232. package/lib/Core/Hooks/useRepeat.d.ts.map +1 -1
  233. package/lib/Core/Hooks/useRepeat.js +20 -1
  234. package/lib/Core/Hooks/useRepeat.js.map +1 -1
  235. package/lib/Core/Localization/defaultTranslations.d.ts +16 -13
  236. package/lib/Core/Localization/defaultTranslations.d.ts.map +1 -1
  237. package/lib/Core/Localization/defaultTranslations.js +17 -14
  238. package/lib/Core/Localization/defaultTranslations.js.map +1 -1
  239. package/lib/Core/Test/JUnitMocks.d.ts +6 -617
  240. package/lib/Core/Test/JUnitMocks.d.ts.map +1 -1
  241. package/lib/Core/Test/JUnitMocks.js +5 -4
  242. package/lib/Core/Test/JUnitMocks.js.map +1 -1
  243. package/lib/Core/Utils/index.d.ts +11 -0
  244. package/lib/Core/Utils/index.d.ts.map +1 -1
  245. package/lib/Core/Utils/index.js +22 -8
  246. package/lib/Core/Utils/index.js.map +1 -1
  247. package/lib/Core/Utils/styles.d.ts +2 -2
  248. package/lib/Core/Utils/styles.d.ts.map +1 -1
  249. package/lib/Core/Views/Gallery/Components/GalleryCard.d.ts +4 -0
  250. package/lib/Core/Views/Gallery/Components/GalleryCard.d.ts.map +1 -0
  251. package/lib/Core/Views/Gallery/Components/GalleryCard.js +18 -0
  252. package/lib/Core/Views/Gallery/Components/GalleryCard.js.map +1 -0
  253. package/lib/Core/Views/Gallery/Components/GalleryCheckboxCard.d.ts +8 -0
  254. package/lib/Core/Views/Gallery/Components/GalleryCheckboxCard.d.ts.map +1 -0
  255. package/lib/Core/Views/Gallery/Components/GalleryCheckboxCard.js +25 -0
  256. package/lib/Core/Views/Gallery/Components/GalleryCheckboxCard.js.map +1 -0
  257. package/lib/Core/Views/Gallery/Components/GalleryFieldValue.d.ts +8 -0
  258. package/lib/Core/Views/Gallery/Components/GalleryFieldValue.d.ts.map +1 -0
  259. package/lib/Core/Views/Gallery/Components/GalleryFieldValue.js +8 -0
  260. package/lib/Core/Views/Gallery/Components/GalleryFieldValue.js.map +1 -0
  261. package/lib/Core/Views/Gallery/Components/GalleryHeader.d.ts +8 -0
  262. package/lib/Core/Views/Gallery/Components/GalleryHeader.d.ts.map +1 -0
  263. package/lib/Core/Views/Gallery/Components/GalleryHeader.js +15 -0
  264. package/lib/Core/Views/Gallery/Components/GalleryHeader.js.map +1 -0
  265. package/lib/Core/Views/Gallery/Gallery.types.d.ts +8 -0
  266. package/lib/Core/Views/Gallery/Gallery.types.d.ts.map +1 -0
  267. package/lib/Core/Views/Gallery/Gallery.types.js +2 -0
  268. package/lib/Core/Views/Gallery/Gallery.types.js.map +1 -0
  269. package/lib/Core/Views/Gallery/StyledGalleryContainer.d.ts +13 -1
  270. package/lib/Core/Views/Gallery/StyledGalleryContainer.d.ts.map +1 -1
  271. package/lib/Core/Views/Gallery/StyledGalleryContainer.js +30 -40
  272. package/lib/Core/Views/Gallery/StyledGalleryContainer.js.map +1 -1
  273. package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.js +1 -1
  274. package/lib/Core/Views/Gallery/_tests_/Samples/GalleryA11ySample.js.map +1 -1
  275. package/lib/Core/Views/Gallery/hooks/useRowActions.d.ts +9 -0
  276. package/lib/Core/Views/Gallery/hooks/useRowActions.d.ts.map +1 -0
  277. package/lib/Core/Views/Gallery/hooks/useRowActions.js +25 -0
  278. package/lib/Core/Views/Gallery/hooks/useRowActions.js.map +1 -0
  279. package/lib/Core/Views/Gallery/index.d.ts +4 -8
  280. package/lib/Core/Views/Gallery/index.d.ts.map +1 -1
  281. package/lib/Core/Views/Gallery/index.js +22 -62
  282. package/lib/Core/Views/Gallery/index.js.map +1 -1
  283. package/lib/Core/Views/Gallery/utils.d.ts +36 -0
  284. package/lib/Core/Views/Gallery/utils.d.ts.map +1 -0
  285. package/lib/Core/Views/Gallery/utils.js +91 -0
  286. package/lib/Core/Views/Gallery/utils.js.map +1 -0
  287. package/lib/Core/Views/Map/Map.styles.d.ts +190 -6
  288. package/lib/Core/Views/Map/Map.styles.d.ts.map +1 -1
  289. package/lib/Core/Views/Map/Map.styles.js.map +1 -1
  290. package/lib/Core/Views/Map/index.d.ts.map +1 -1
  291. package/lib/Core/Views/Map/index.js +10 -4
  292. package/lib/Core/Views/Map/index.js.map +1 -1
  293. package/lib/Core/Views/RsCardWrapper.js.map +1 -1
  294. package/lib/Core/Views/Table/CellWrapper.d.ts +1 -1
  295. package/lib/Core/Views/Table/CellWrapper.d.ts.map +1 -1
  296. package/lib/Core/Views/Table/CellWrapper.js +4 -2
  297. package/lib/Core/Views/Table/CellWrapper.js.map +1 -1
  298. package/lib/Core/Views/Table/HeaderWrapper.d.ts.map +1 -1
  299. package/lib/Core/Views/Table/HeaderWrapper.js +5 -5
  300. package/lib/Core/Views/Table/HeaderWrapper.js.map +1 -1
  301. package/lib/Core/Views/Table/Row.d.ts +3 -1
  302. package/lib/Core/Views/Table/Row.d.ts.map +1 -1
  303. package/lib/Core/Views/Table/Row.js +5 -3
  304. package/lib/Core/Views/Table/Row.js.map +1 -1
  305. package/lib/Core/Views/Table/SkeletonRows.d.ts +1 -1
  306. package/lib/Core/Views/Table/SkeletonRows.d.ts.map +1 -1
  307. package/lib/Core/Views/Table/StyledTableContainer.d.ts +3 -1
  308. package/lib/Core/Views/Table/StyledTableContainer.d.ts.map +1 -1
  309. package/lib/Core/Views/Table/StyledTableContainer.js +269 -158
  310. package/lib/Core/Views/Table/StyledTableContainer.js.map +1 -1
  311. package/lib/Core/Views/Table/TableA11y.d.ts +11 -0
  312. package/lib/Core/Views/Table/TableA11y.d.ts.map +1 -1
  313. package/lib/Core/Views/Table/TableA11y.js +207 -2
  314. package/lib/Core/Views/Table/TableA11y.js.map +1 -1
  315. package/lib/Core/Views/Table/VirtualizeWrapper.d.ts +5 -1
  316. package/lib/Core/Views/Table/VirtualizeWrapper.d.ts.map +1 -1
  317. package/lib/Core/Views/Table/VirtualizeWrapper.js +38 -15
  318. package/lib/Core/Views/Table/VirtualizeWrapper.js.map +1 -1
  319. package/lib/Core/Views/Table/index.d.ts.map +1 -1
  320. package/lib/Core/Views/Table/index.js +6 -4
  321. package/lib/Core/Views/Table/index.js.map +1 -1
  322. package/lib/Core/Views/Table/useCountChange.d.ts +10 -0
  323. package/lib/Core/Views/Table/useCountChange.d.ts.map +1 -0
  324. package/lib/Core/Views/Table/useCountChange.js +39 -0
  325. package/lib/Core/Views/Table/useCountChange.js.map +1 -0
  326. package/lib/Core/Views/Timeline/Timeline.d.ts +5 -0
  327. package/lib/Core/Views/Timeline/Timeline.d.ts.map +1 -0
  328. package/lib/Core/Views/Timeline/Timeline.js +28 -0
  329. package/lib/Core/Views/Timeline/Timeline.js.map +1 -0
  330. package/lib/Core/Views/Timeline/Timeline.styles.d.ts +393 -0
  331. package/lib/Core/Views/Timeline/Timeline.styles.d.ts.map +1 -0
  332. package/lib/Core/Views/Timeline/Timeline.styles.js +175 -0
  333. package/lib/Core/Views/Timeline/Timeline.styles.js.map +1 -0
  334. package/lib/Core/Views/Timeline/Timeline.types.d.ts +48 -0
  335. package/lib/Core/Views/Timeline/Timeline.types.d.ts.map +1 -0
  336. package/lib/Core/Views/Timeline/Timeline.types.js +2 -0
  337. package/lib/Core/Views/Timeline/Timeline.types.js.map +1 -0
  338. package/lib/Core/Views/Timeline/TimelineItem.d.ts +12 -0
  339. package/lib/Core/Views/Timeline/TimelineItem.d.ts.map +1 -0
  340. package/lib/Core/Views/Timeline/TimelineItem.js +43 -0
  341. package/lib/Core/Views/Timeline/TimelineItem.js.map +1 -0
  342. package/lib/Core/Views/Timeline/__tests__/Timeline.mocks.d.ts +4 -0
  343. package/lib/Core/Views/Timeline/__tests__/Timeline.mocks.d.ts.map +1 -0
  344. package/lib/Core/Views/Timeline/__tests__/Timeline.mocks.js +141 -0
  345. package/lib/Core/Views/Timeline/__tests__/Timeline.mocks.js.map +1 -0
  346. package/lib/Core/Views/Timeline/index.d.ts.map +1 -1
  347. package/lib/Core/Views/Timeline/index.js +14 -8
  348. package/lib/Core/Views/Timeline/index.js.map +1 -1
  349. package/lib/Core/Views/Timeline/utils.d.ts +10 -0
  350. package/lib/Core/Views/Timeline/utils.d.ts.map +1 -0
  351. package/lib/Core/Views/Timeline/utils.js +144 -0
  352. package/lib/Core/Views/Timeline/utils.js.map +1 -0
  353. package/lib/Core/Views/rs-styles.d.ts +1 -1
  354. package/lib/Core/constants.d.ts.map +1 -1
  355. package/lib/Core/constants.js +1 -0
  356. package/lib/Core/constants.js.map +1 -1
  357. package/lib/Core/templateFeatureSupport.d.ts +17 -0
  358. package/lib/Core/templateFeatureSupport.d.ts.map +1 -0
  359. package/lib/Core/templateFeatureSupport.js +30 -0
  360. package/lib/Core/templateFeatureSupport.js.map +1 -0
  361. package/lib/types/RepeatingStructuresBoot.types.d.ts +12 -2
  362. package/lib/types/RepeatingStructuresBoot.types.d.ts.map +1 -1
  363. package/lib/types/RepeatingStructuresBoot.types.js.map +1 -1
  364. package/lib/types.d.ts +2 -0
  365. package/lib/types.d.ts.map +1 -1
  366. package/lib/types.js.map +1 -1
  367. package/package.json +11 -12
  368. package/lib/Core/Components/DefaultComponents/CardItem.d.ts +0 -3
  369. package/lib/Core/Components/DefaultComponents/CardItem.d.ts.map +0 -1
  370. package/lib/Core/Components/DefaultComponents/CardItem.js +0 -78
  371. package/lib/Core/Components/DefaultComponents/CardItem.js.map +0 -1
  372. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.d.ts +0 -12
  373. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.d.ts.map +0 -1
  374. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.js +0 -35
  375. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.js.map +0 -1
  376. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.d.ts +0 -15
  377. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.d.ts.map +0 -1
  378. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.js +0 -49
  379. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.js.map +0 -1
  380. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.d.ts +0 -12
  381. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.d.ts.map +0 -1
  382. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.js +0 -44
  383. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.js.map +0 -1
  384. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.d.ts +0 -16
  385. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.d.ts.map +0 -1
  386. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.js +0 -63
  387. package/lib/Core/Components/DefaultComponents/CellRenderers/EditComponents/index.js.map +0 -1
  388. package/lib/Core/Components/EmptyContainer.d.ts +0 -5
  389. package/lib/Core/Components/EmptyContainer.d.ts.map +0 -1
  390. package/lib/Core/Components/EmptyContainer.js +0 -12
  391. package/lib/Core/Components/EmptyContainer.js.map +0 -1
  392. package/lib/Core/Components/GroupRenderer.d.ts.map +0 -1
  393. package/lib/Core/Components/GroupRenderer.js +0 -240
  394. package/lib/Core/Components/GroupRenderer.js.map +0 -1
  395. package/lib/Core/Components/Toolbar/KeyboardInstructions.d.ts +0 -6
  396. package/lib/Core/Components/Toolbar/KeyboardInstructions.d.ts.map +0 -1
  397. package/lib/Core/Components/Toolbar/KeyboardInstructions.js +0 -32
  398. package/lib/Core/Components/Toolbar/KeyboardInstructions.js.map +0 -1
  399. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.d.ts +0 -8
  400. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.d.ts.map +0 -1
  401. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.js +0 -61
  402. package/lib/Core/Components/Toolbar/Timeline/TimelineToolbar.js.map +0 -1
  403. package/lib/Core/Hooks/useSelect.d.ts +0 -9
  404. package/lib/Core/Hooks/useSelect.d.ts.map +0 -1
  405. package/lib/Core/Hooks/useSelect.js +0 -24
  406. package/lib/Core/Hooks/useSelect.js.map +0 -1
  407. package/lib/Core/Views/Gallery/ItemWrapper.d.ts +0 -19
  408. package/lib/Core/Views/Gallery/ItemWrapper.d.ts.map +0 -1
  409. package/lib/Core/Views/Gallery/ItemWrapper.js +0 -34
  410. package/lib/Core/Views/Gallery/ItemWrapper.js.map +0 -1
  411. package/lib/Core/Views/Timeline/utility.d.ts +0 -8
  412. package/lib/Core/Views/Timeline/utility.d.ts.map +0 -1
  413. package/lib/Core/Views/Timeline/utility.js +0 -120
  414. package/lib/Core/Views/Timeline/utility.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardItem.js","sourceRoot":"","sources":["../../../../Core/Components/DefaultComponents/CardItem.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,MAAM,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;gCAUM,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;;CAEhE,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE;IACvC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,CACL,KAAC,QAAQ,I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AAC,OAAO,aACzB,MAAC,gBAAgB,IAAC,SAAS,EAAC,YAAY,aACrC,YAAY,IAAI,CACf,KAAC,cAAc,IAAC,OAAO,EAAC,IAAI,YAC1B,KAAC,eAAe,IAAC,WAAW,WAAK,YAAY,CAAC,uBAAuB,EAAE,GAAI,GAC5D,CAClB,EACA,mBAAmB,IAAI,CACtB,KAAC,cAAc,IAAC,OAAO,EAAC,IAAI,YAC1B,KAAC,eAAe,IAAC,WAAW,WAAK,mBAAmB,CAAC,uBAAuB,EAAE,GAAI,GACnE,CAClB,EACA,mBAAmB,IAAI,CACtB,cAAK,SAAS,EAAC,eAAe,YAC5B,KAAC,eAAe,IAAC,WAAW,WAAK,mBAAmB,CAAC,uBAAuB,EAAE,GAAI,GAC9E,CACP,IACgB,EACnB,KAAC,iBAAiB,IAAC,SAAS,EAAC,aAAa,YACvC,WAAW,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,GAC7B,IACT,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACtB,GAAG,EAAE,EAAE;IACP,OAAO,EAAE,EAAE;CACZ,CAAC;AAEF,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACtC,OAAO,EAAE,QAAQ,CAAC,OAAO;CAC1B,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { memo, Fragment } from 'react';\nimport styled from 'styled-components';\n\nimport { CardContent, Card, Text, CardHeader, useTheme } from '@pega/cosmos-react-core';\n\nimport RenderingEngine from '../RenderingEngine/RenderCell';\n\nconst StyledUL = styled.ul`\n & > li > span {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n word-break: break-word;\n }\n & > li {\n list-style-type: none;\n padding-block-start: calc(${props => props.theme.base.spacing} / 2);\n }\n`;\n\nconst FieldValues = ({ row, columns }) => {\n const theme = useTheme();\n return (\n <StyledUL theme={theme}>\n {columns.map(column => {\n if (column.hidden) return null;\n column.setExecutionContext(row);\n const { id } = column.field;\n return (\n <Fragment key={id}>\n <li>\n <RenderingEngine highlighter {...column.getRenderingEngineProps()} />\n </li>\n </Fragment>\n );\n })}\n </StyledUL>\n );\n};\nconst CardHeaderText = styled(Text)`\n white-space: nowrap;\n max-width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n`;\nconst StyledCard = styled(Card)`\n padding: 0.625rem;\n min-width: 6.25rem;\n`;\nconst StyledCardContent = styled(CardContent)`\n && {\n padding-bottom: 0.5rem;\n }\n &.cardContent {\n padding-left: 0.5rem;\n }\n`;\nconst StyledCardHeader = styled(CardHeader)`\n &.cardHeader {\n padding: 0.5rem;\n flex-direction: column;\n align-items: flex-start;\n }\n .cardRowAction {\n position: absolute;\n right: 0.5rem;\n }\n`;\nconst CardItem = memo(\n ({ row, headerColumn, secondaryTextColumn, filteredColumns, rowActionMenuColumn }) => {\n const data = row.getContext().getValue();\n if (!data) return null;\n if (headerColumn) headerColumn.setExecutionContext(row);\n if (secondaryTextColumn) secondaryTextColumn.setExecutionContext(row);\n if (rowActionMenuColumn) rowActionMenuColumn.setExecutionContext(row);\n return (\n <StyledCard variant='cover'>\n <StyledCardHeader className='cardHeader'>\n {headerColumn && (\n <CardHeaderText variant='h4'>\n <RenderingEngine highlighter {...headerColumn.getRenderingEngineProps()} />\n </CardHeaderText>\n )}\n {secondaryTextColumn && (\n <CardHeaderText variant='h4'>\n <RenderingEngine highlighter {...secondaryTextColumn.getRenderingEngineProps()} />\n </CardHeaderText>\n )}\n {rowActionMenuColumn && (\n <div className='cardRowAction'>\n <RenderingEngine highlighter {...rowActionMenuColumn.getRenderingEngineProps()} />\n </div>\n )}\n </StyledCardHeader>\n <StyledCardContent className='cardContent'>\n {FieldValues({ row, columns: filteredColumns })}\n </StyledCardContent>\n </StyledCard>\n );\n }\n);\n\nCardItem.defaultProps = {\n row: {},\n columns: []\n};\n\nCardItem.mapStateToProps = instance => ({\n columns: instance.columns\n});\n\nexport default CardItem;\n"]}
@@ -1,12 +0,0 @@
1
- export default DateTime;
2
- declare function DateTime(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace DateTime {
4
- namespace propTypes {
5
- let onCancel: PropTypes.Validator<(...args: any[]) => any>;
6
- let onSubmit: PropTypes.Validator<(...args: any[]) => any>;
7
- let getField: PropTypes.Validator<(...args: any[]) => any>;
8
- let getValue: PropTypes.Validator<(...args: any[]) => any>;
9
- }
10
- }
11
- import PropTypes from 'prop-types';
12
- //# sourceMappingURL=DateTime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.jsx"],"names":[],"mappings":";AASA,+EAkCC;;;;;;;;;sBA1CqB,YAAY"}
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState, useRef, useEffect } from 'react';
3
- import PropTypes from 'prop-types';
4
- import { Input } from '@pega/cosmos-react-core';
5
- const styles = {
6
- input: { width: '100%' }
7
- };
8
- function DateTime(props) {
9
- const { getField, getValue } = props;
10
- const { type } = getField();
11
- const oldValue = getValue();
12
- const [value, setValue] = useState(type === 'datetime' ? oldValue?.slice(0, -1) : oldValue);
13
- const inputRef = useRef(null);
14
- const onChange = event => setValue(event.target.value);
15
- const onEscape = event => {
16
- if (event.key === 'Escape') {
17
- props.onCancel();
18
- }
19
- };
20
- const onBlur = () => props.onSubmit({ oldValue, newValue: value });
21
- useEffect(() => {
22
- inputRef.current?.focus();
23
- }, [inputRef]);
24
- return (_jsx(Input, { ...props, type: type === 'datetime' ? 'datetime-local' : type, value: value, style: styles.input, ref: ref => {
25
- inputRef.current = ref;
26
- }, onChange: onChange, onBlur: onBlur, onKeyDown: onEscape }));
27
- }
28
- DateTime.propTypes = {
29
- onCancel: PropTypes.func.isRequired,
30
- onSubmit: PropTypes.func.isRequired,
31
- getField: PropTypes.func.isRequired,
32
- getValue: PropTypes.func.isRequired
33
- };
34
- export default DateTime;
35
- //# sourceMappingURL=DateTime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/DateTime.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;CACzB,CAAC;AAEF,SAAS,QAAQ,CAAC,KAAK;IACrB,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC5B,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC5F,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAE9B,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEvD,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE;QACvB,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;YAC3B,KAAK,CAAC,QAAQ,EAAE,CAAC;QACnB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACnE,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,KAAC,KAAK,OACA,KAAK,EACT,IAAI,EAAE,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EACnD,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,GAAG,EAAE,GAAG,CAAC,EAAE;YACT,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC;QACzB,CAAC,EACD,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,GACnB,CACH,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,SAAS,GAAG;IACnB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CACpC,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Input } from '@pega/cosmos-react-core';\n\nconst styles = {\n input: { width: '100%' }\n};\n\nfunction DateTime(props) {\n const { getField, getValue } = props;\n const { type } = getField();\n const oldValue = getValue();\n const [value, setValue] = useState(type === 'datetime' ? oldValue?.slice(0, -1) : oldValue);\n const inputRef = useRef(null);\n\n const onChange = event => setValue(event.target.value);\n\n const onEscape = event => {\n if (event.key === 'Escape') {\n props.onCancel();\n }\n };\n\n const onBlur = () => props.onSubmit({ oldValue, newValue: value });\n useEffect(() => {\n inputRef.current?.focus();\n }, [inputRef]);\n\n return (\n <Input\n {...props}\n type={type === 'datetime' ? 'datetime-local' : type}\n value={value}\n style={styles.input}\n ref={ref => {\n inputRef.current = ref;\n }}\n onChange={onChange}\n onBlur={onBlur}\n onKeyDown={onEscape}\n />\n );\n}\n\nDateTime.propTypes = {\n onCancel: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n getField: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired\n};\n\nexport default DateTime;\n"]}
@@ -1,15 +0,0 @@
1
- export default RadioGroup;
2
- declare function RadioGroup(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace RadioGroup {
4
- namespace propTypes {
5
- let onCancel: PropTypes.Validator<(...args: any[]) => any>;
6
- let onSubmit: PropTypes.Validator<(...args: any[]) => any>;
7
- let getField: PropTypes.Validator<(...args: any[]) => any>;
8
- let getValue: PropTypes.Validator<(...args: any[]) => any>;
9
- let getFormatter: PropTypes.Validator<(...args: any[]) => any>;
10
- let renderFactory: PropTypes.Validator<(...args: any[]) => any>;
11
- let resolveCellComponent: PropTypes.Validator<(...args: any[]) => any>;
12
- }
13
- }
14
- import PropTypes from 'prop-types';
15
- //# sourceMappingURL=Radio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.jsx"],"names":[],"mappings":";AAQA,iFA+CC;;;;;;;;;;;;sBAtDqB,YAAY"}
@@ -1,49 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import PropTypes from 'prop-types';
4
- import styled from 'styled-components';
5
- import { RadioButton, RadioCheckGroup } from '@pega/cosmos-react-core';
6
- const StyledRadioGroup = styled.div ``;
7
- function RadioGroup(props) {
8
- const { getField, getValue, getFormatter, renderFactory, resolveCellComponent } = props;
9
- const field = getField();
10
- const { id } = field;
11
- const oldValue = getValue();
12
- const translatedValue = oldValue === 'null' || oldValue === '' || oldValue === null || typeof oldValue === 'undefined'
13
- ? 'Empty'
14
- : oldValue;
15
- const [value, setValue] = useState(translatedValue);
16
- const radioOptions = field.type === 'boolean' ? [true, false, 'Empty'] : field.filterPickListOptions;
17
- const onChange = event => {
18
- setValue(event.target.id);
19
- let newValue = event.target.id;
20
- if (field.type === 'boolean') {
21
- if (event.target.id === 'Empty')
22
- newValue = null;
23
- else
24
- newValue = event.target.id === 'true';
25
- }
26
- props.onSubmit({ oldValue, newValue });
27
- };
28
- return (_jsx(StyledRadioGroup, { children: _jsx(RadioCheckGroup, { name: id, children: radioOptions.map(item => {
29
- const checkedProp = {};
30
- if (item === value)
31
- checkedProp.defaultChecked = true;
32
- return (_jsx(RadioButton, { id: `${item}`, name: `${item}`, onClick: onChange, label: resolveCellComponent('cellRenderer', renderFactory, {
33
- ...props,
34
- getValue: () => item.toString(),
35
- getFormattedValue: () => getFormatter?.()?.(item) || item.toString()
36
- }), ...checkedProp }, `${item}`));
37
- }) }) }));
38
- }
39
- RadioGroup.propTypes = {
40
- onCancel: PropTypes.func.isRequired,
41
- onSubmit: PropTypes.func.isRequired,
42
- getField: PropTypes.func.isRequired,
43
- getValue: PropTypes.func.isRequired,
44
- getFormatter: PropTypes.func.isRequired,
45
- renderFactory: PropTypes.func.isRequired,
46
- resolveCellComponent: PropTypes.func.isRequired
47
- };
48
- export default RadioGroup;
49
- //# sourceMappingURL=Radio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/Radio.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEvE,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA,EA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,IAAC,IAAI,EAAE,EAAE,YACtB,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBACvB,MAAM,WAAW,GAAG,EAAE,CAAC;gBACvB,IAAI,IAAI,KAAK,KAAK;oBAAE,WAAW,CAAC,cAAc,GAAG,IAAI,CAAC;gBAEtD,OAAO,CACL,KAAC,WAAW,IAEV,EAAE,EAAE,GAAG,IAAI,EAAE,EACb,IAAI,EAAE,GAAG,IAAI,EAAE,EACf,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAAE,aAAa,EAAE;wBACzD,GAAG,KAAK;wBACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;wBAC/B,iBAAiB,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE;qBACrE,CAAC,KACE,WAAW,IATV,GAAG,IAAI,EAAE,CAUd,CACH,CAAC;YACJ,CAAC,CAAC,GACc,GACD,CACpB,CAAC;AACJ,CAAC;AAED,UAAU,CAAC,SAAS,GAAG;IACrB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACvC,aAAa,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACxC,oBAAoB,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CAChD,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { RadioButton, RadioCheckGroup } from '@pega/cosmos-react-core';\n\nconst StyledRadioGroup = styled.div``;\n\nfunction RadioGroup(props) {\n const { getField, getValue, getFormatter, renderFactory, resolveCellComponent } = props;\n const field = getField();\n const { id } = field;\n const oldValue = getValue();\n const translatedValue =\n oldValue === 'null' || oldValue === '' || oldValue === null || typeof oldValue === 'undefined'\n ? 'Empty'\n : oldValue;\n const [value, setValue] = useState(translatedValue);\n const radioOptions =\n field.type === 'boolean' ? [true, false, 'Empty'] : field.filterPickListOptions;\n const onChange = event => {\n setValue(event.target.id);\n let newValue = event.target.id;\n if (field.type === 'boolean') {\n if (event.target.id === 'Empty') newValue = null;\n else newValue = event.target.id === 'true';\n }\n props.onSubmit({ oldValue, newValue });\n };\n\n return (\n <StyledRadioGroup>\n <RadioCheckGroup name={id}>\n {radioOptions.map(item => {\n const checkedProp = {};\n if (item === value) checkedProp.defaultChecked = true;\n\n return (\n <RadioButton\n key={`${item}`}\n id={`${item}`}\n name={`${item}`}\n onClick={onChange}\n label={resolveCellComponent('cellRenderer', renderFactory, {\n ...props,\n getValue: () => item.toString(),\n getFormattedValue: () => getFormatter?.()?.(item) || item.toString()\n })}\n {...checkedProp}\n />\n );\n })}\n </RadioCheckGroup>\n </StyledRadioGroup>\n );\n}\n\nRadioGroup.propTypes = {\n onCancel: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n getField: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired,\n getFormatter: PropTypes.func.isRequired,\n renderFactory: PropTypes.func.isRequired,\n resolveCellComponent: PropTypes.func.isRequired\n};\n\nexport default RadioGroup;\n"]}
@@ -1,12 +0,0 @@
1
- export default TextInput;
2
- declare function TextInput(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace TextInput {
4
- namespace propTypes {
5
- let onCancel: PropTypes.Validator<(...args: any[]) => any>;
6
- let onSubmit: PropTypes.Validator<(...args: any[]) => any>;
7
- let getField: PropTypes.Validator<(...args: any[]) => any>;
8
- let getValue: PropTypes.Validator<(...args: any[]) => any>;
9
- }
10
- }
11
- import PropTypes from 'prop-types';
12
- //# sourceMappingURL=TextInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.jsx"],"names":[],"mappings":";AASA,gFA2CC;;;;;;;;;sBAnDqB,YAAY"}
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState, useRef, useEffect } from 'react';
3
- import PropTypes from 'prop-types';
4
- import { Input } from '@pega/cosmos-react-core';
5
- const styles = {
6
- input: { width: '100%', outline: 'none', border: 'none', boxShadow: 'none' }
7
- };
8
- function TextInput(props) {
9
- const { getField, getValue } = props;
10
- const { type } = getField();
11
- const oldValue = getValue();
12
- const [value, setValue] = useState(oldValue);
13
- const inputRef = useRef(null);
14
- const onChange = event => {
15
- let { value: val } = event.target;
16
- if (type?.toLowerCase() === 'number') {
17
- val = parseInt(val, 10);
18
- }
19
- setValue(val);
20
- };
21
- const onKeyDown = event => {
22
- if (event.key === 'Enter') {
23
- props.onSubmit({ oldValue, newValue: value });
24
- }
25
- else if (event.key === 'Escape') {
26
- props.onCancel();
27
- }
28
- };
29
- const onBlur = () => props.onSubmit({ oldValue, newValue: value });
30
- useEffect(() => {
31
- inputRef.current?.focus();
32
- }, [inputRef]);
33
- return (_jsx(Input, { ...props, value: value, type: type, style: styles.input, ref: ref => {
34
- inputRef.current = ref;
35
- }, onChange: onChange, onBlur: onBlur, onKeyDown: onKeyDown }));
36
- }
37
- TextInput.propTypes = {
38
- onCancel: PropTypes.func.isRequired,
39
- onSubmit: PropTypes.func.isRequired,
40
- getField: PropTypes.func.isRequired,
41
- getValue: PropTypes.func.isRequired
42
- };
43
- export default TextInput;
44
- //# sourceMappingURL=TextInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/TextInput.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ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CAAC;IACH,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAEnE,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,KAAC,KAAK,OACA,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,GAAG,EAAE,GAAG,CAAC,EAAE;YACT,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC;QACzB,CAAC,EACD,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,GACpB,CACH,CAAC;AACJ,CAAC;AAED,SAAS,CAAC,SAAS,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CACpC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Input } from '@pega/cosmos-react-core';\n\nconst styles = {\n input: { width: '100%', outline: 'none', border: 'none', boxShadow: 'none' }\n};\n\nfunction TextInput(props) {\n const { getField, getValue } = props;\n const { type } = getField();\n const oldValue = getValue();\n const [value, setValue] = useState(oldValue);\n const inputRef = useRef(null);\n\n const onChange = event => {\n let { value: val } = event.target;\n if (type?.toLowerCase() === 'number') {\n val = parseInt(val, 10);\n }\n setValue(val);\n };\n\n const onKeyDown = event => {\n if (event.key === 'Enter') {\n props.onSubmit({ oldValue, newValue: value });\n } else if (event.key === 'Escape') {\n props.onCancel();\n }\n };\n\n const onBlur = () => props.onSubmit({ oldValue, newValue: value });\n\n useEffect(() => {\n inputRef.current?.focus();\n }, [inputRef]);\n\n return (\n <Input\n {...props}\n value={value}\n type={type}\n style={styles.input}\n ref={ref => {\n inputRef.current = ref;\n }}\n onChange={onChange}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n />\n );\n}\n\nTextInput.propTypes = {\n onCancel: PropTypes.func.isRequired,\n onSubmit: PropTypes.func.isRequired,\n getField: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired\n};\n\nexport default TextInput;\n"]}
@@ -1,16 +0,0 @@
1
- export default Editor;
2
- declare function Editor(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace Editor {
4
- namespace propTypes {
5
- let getField: PropTypes.Validator<(...args: any[]) => any>;
6
- let onCancel: PropTypes.Validator<(...args: any[]) => any>;
7
- let getElement: PropTypes.Validator<(...args: any[]) => any>;
8
- let setEditContext: PropTypes.Validator<(...args: any[]) => any>;
9
- let getFormatter: PropTypes.Validator<(...args: any[]) => any>;
10
- let getValue: PropTypes.Validator<(...args: any[]) => any>;
11
- let renderFactory: PropTypes.Validator<(...args: any[]) => any>;
12
- let resolveCellComponent: PropTypes.Validator<(...args: any[]) => any>;
13
- }
14
- }
15
- import PropTypes from 'prop-types';
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultComponents/CellRenderers/EditComponents/index.jsx"],"names":[],"mappings":";AAaA,6EA8DC;;;;;;;;;;;;;sBA3EqB,YAAY"}
@@ -1,63 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import PropTypes from 'prop-types';
3
- import styled from 'styled-components';
4
- import { Popover, useElement, useOuterEvent } from '@pega/cosmos-react-core';
5
- import TextInput from './TextInput';
6
- import DateTime from './DateTime';
7
- import Radio from './Radio';
8
- const StyledPopover = styled.div `
9
- padding: 1rem;
10
- min-width: 7rem;
11
- `;
12
- function Editor(props) {
13
- const { getField, onCancel, getElement, setEditContext, getFormatter, getValue, renderFactory, resolveCellComponent } = props;
14
- setEditContext();
15
- const { type, filterPickList, filterPickListOptions } = getField();
16
- const showInPopOver = type === 'boolean' || (filterPickList && filterPickListOptions);
17
- const [popperRef, setPopperRef] = useElement();
18
- const [popperTarget, setPopperTarget] = useElement(getElement());
19
- useOuterEvent('mousedown', [popperRef], () => {
20
- setPopperTarget(null);
21
- if (showInPopOver)
22
- onCancel();
23
- });
24
- let Component = null;
25
- switch (type) {
26
- case 'text':
27
- case 'number':
28
- Component = TextInput;
29
- break;
30
- case 'date':
31
- case 'datetime':
32
- Component = DateTime;
33
- break;
34
- case 'boolean':
35
- Component = Radio;
36
- break;
37
- default:
38
- Component = TextInput;
39
- break;
40
- }
41
- if (filterPickList && filterPickListOptions) {
42
- Component = Radio;
43
- }
44
- if (!showInPopOver)
45
- return _jsx(Component, { ...props });
46
- const value = getValue();
47
- return (_jsxs(_Fragment, { children: [resolveCellComponent('cellRenderer', renderFactory, {
48
- ...props,
49
- getFormattedValue: () => getFormatter?.()?.(value) || value
50
- }), showInPopOver && (_jsx(Popover, { ref: setPopperRef, className: 'editpopper', target: popperTarget, children: _jsx(StyledPopover, { children: _jsx(Component, { ...props }) }) }))] }));
51
- }
52
- Editor.propTypes = {
53
- getField: PropTypes.func.isRequired,
54
- onCancel: PropTypes.func.isRequired,
55
- getElement: PropTypes.func.isRequired,
56
- setEditContext: PropTypes.func.isRequired,
57
- getFormatter: PropTypes.func.isRequired,
58
- getValue: PropTypes.func.isRequired,
59
- renderFactory: PropTypes.func.isRequired,
60
- resolveCellComponent: PropTypes.func.isRequired
61
- };
62
- export default Editor;
63
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../Core/Components/DefaultCompon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\nimport styled from 'styled-components';\n\nimport { Popover, useElement, useOuterEvent } from '@pega/cosmos-react-core';\n\nimport TextInput from './TextInput';\nimport DateTime from './DateTime';\nimport Radio from './Radio';\n\nconst StyledPopover = styled.div`\n padding: 1rem;\n min-width: 7rem;\n`;\nfunction Editor(props) {\n const {\n getField,\n onCancel,\n getElement,\n setEditContext,\n getFormatter,\n getValue,\n renderFactory,\n resolveCellComponent\n } = props;\n setEditContext();\n\n const { type, filterPickList, filterPickListOptions } = getField();\n const showInPopOver = type === 'boolean' || (filterPickList && filterPickListOptions);\n const [popperRef, setPopperRef] = useElement();\n const [popperTarget, setPopperTarget] = useElement(getElement());\n\n useOuterEvent('mousedown', [popperRef], () => {\n setPopperTarget(null);\n if (showInPopOver) onCancel();\n });\n let Component = null;\n switch (type) {\n case 'text':\n case 'number':\n Component = TextInput;\n break;\n case 'date':\n case 'datetime':\n Component = DateTime;\n break;\n case 'boolean':\n Component = Radio;\n break;\n\n default:\n Component = TextInput;\n break;\n }\n if (filterPickList && filterPickListOptions) {\n Component = Radio;\n }\n\n if (!showInPopOver) return <Component {...props} />;\n const value = getValue();\n return (\n <>\n {resolveCellComponent('cellRenderer', renderFactory, {\n ...props,\n getFormattedValue: () => getFormatter?.()?.(value) || value\n })}\n\n {showInPopOver && (\n <Popover ref={setPopperRef} className='editpopper' target={popperTarget}>\n <StyledPopover>\n <Component {...props} />\n </StyledPopover>\n </Popover>\n )}\n </>\n );\n}\n\nEditor.propTypes = {\n getField: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n getElement: PropTypes.func.isRequired,\n setEditContext: PropTypes.func.isRequired,\n getFormatter: PropTypes.func.isRequired,\n getValue: PropTypes.func.isRequired,\n renderFactory: PropTypes.func.isRequired,\n resolveCellComponent: PropTypes.func.isRequired\n};\n\nexport default Editor;\n"]}
@@ -1,5 +0,0 @@
1
- import type { RsCoreTypes } from 'pega-repeating-structures-core';
2
- export default function EmptyContainer({ view }: {
3
- view: RsCoreTypes.View;
4
- }): import("react/jsx-runtime").JSX.Element | null;
5
- //# sourceMappingURL=EmptyContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmptyContainer.d.ts","sourceRoot":"","sources":["../../../Core/Components/EmptyContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAMlE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,WAAW,CAAC,IAAI,CAAA;CAAE,kDAM1E"}
@@ -1,12 +0,0 @@
1
- import { Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // TODO remove ts-ignore once ComponentResolverFactory migrated to TS
3
- // @ts-ignore
4
- import { resolveViewComponent } from './RenderingEngine/ComponentResolverFactory';
5
- export default function EmptyContainer({ view }) {
6
- const { domContainer, hasNoRecords, renderFactory, getContext } = view;
7
- if (domContainer && hasNoRecords) {
8
- return _jsxs(_Fragment, { children: [" ", resolveViewComponent('emptyContainerRenderer', renderFactory, getContext()), " "] });
9
- }
10
- return null;
11
- }
12
- //# sourceMappingURL=EmptyContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmptyContainer.js","sourceRoot":"","sources":["../../../Core/Components/EmptyContainer.tsx"],"names":[],"mappings":";AAEA,qEAAqE;AACrE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,IAAI,EAA8B;IACzE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACvE,IAAI,YAAY,IAAI,YAAY,EAAE,CAAC;QACjC,OAAO,mCAAI,oBAAoB,CAAC,wBAAwB,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,SAAK,CAAC;IAC9F,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import type { RsCoreTypes } from 'pega-repeating-structures-core';\n\n// TODO remove ts-ignore once ComponentResolverFactory migrated to TS\n// @ts-ignore\nimport { resolveViewComponent } from './RenderingEngine/ComponentResolverFactory';\n\nexport default function EmptyContainer({ view }: { view: RsCoreTypes.View }) {\n const { domContainer, hasNoRecords, renderFactory, getContext } = view;\n if (domContainer && hasNoRecords) {\n return <> {resolveViewComponent('emptyContainerRenderer', renderFactory, getContext())} </>;\n }\n return null;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupRenderer.d.ts","sourceRoot":"","sources":["../../../Core/Components/GroupRenderer.jsx"],"names":[],"mappings":"AA6NA;;;mDAyGC;;;;;;;;;;sBAtUqB,YAAY"}
@@ -1,240 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import PropTypes from 'prop-types';
3
- import { useRef } from 'react';
4
- import styled from 'styled-components';
5
- import { Icon } from '@pega/cosmos-react-core';
6
- import BareButton from '@pega/cosmos-react-core/lib/components/Button/BareButton';
7
- import { getGroupFromKey } from 'pega-ui-list-data-apis';
8
- import { createClassName as cx } from '../Utils';
9
- import useTranslate from '../Hooks/useTranslate';
10
- import { customFunctions, intervalGroupingBoundaries } from '../constants';
11
- import AggregatorCell from './AggregatorCell';
12
- import RenderingEngine from './RenderingEngine/RenderCell';
13
- import DateValueDisplay from './DateValueDisplay';
14
- import TestIdConstants from './TestIdConstants';
15
- const groupheaderleftdisplacement = headerLevel => `${(headerLevel.level + 1) * 0.5}rem`;
16
- /**
17
- * TODO: remove currentColor style after cosmos fixes the issue
18
- * Cosmos yet to handle dark theme on BareButton
19
- */
20
- const StyledGroupHeader = styled.div `
21
- --group-left: ${props => groupheaderleftdisplacement(props.groupHeader)};
22
- --group-bg-color: ${props => props.theme.base.palette['secondary-background']};
23
- background-color: var(--group-bg-color);
24
- &:has(button[aria-expanded='true']) {
25
- filter: ${props => props.theme.base.shadow['low-filter']};
26
- }
27
-
28
- &.row.sticky-group-header {
29
- position: sticky;
30
- display: block;
31
- top: calc(
32
- ${props => props.groupHeader.isLeafNode && props.groupHeader.level !== 0
33
- ? 'calc(var(--row-height) + var(--group-header-height))'
34
- : 'var(--row-height)'}
35
- );
36
-
37
- /* z-index starting from 8 because freeze-line has z-index 7 */
38
- z-index: ${props => `${8 + props.groupHeader.index}`};
39
- > .cell-action,
40
- .cell-fixed {
41
- background-color: var(--group-bg-color);
42
- }
43
- }
44
-
45
- .group-label {
46
- width: 0.437rem;
47
- display: inline-block;
48
- flex-shrink: 0;
49
- }
50
-
51
- .group-header-groupby {
52
- font-weight: ${props => props.theme.base['font-weight'].normal};
53
- }
54
-
55
- .group-context-count .group-count {
56
- font-weight: ${props => props.theme.base['font-weight'].bold};
57
- white-space: pre;
58
- }
59
-
60
- &.row.group-header-row {
61
- height: auto;
62
- border-bottom: ${props => (!props.isAggregationApplied ? 'var(--border-style)' : 'none')};
63
-
64
- .group-header-aggregation-row {
65
- display: flex;
66
-
67
- /* Using height 0 so that the aggregations aren't visible when not applied but the cells can take the width and stretch the group header to the full width */
68
- height: ${props => (props.isAggregationApplied ? 'var(--group-header-height)' : 0)};
69
-
70
- &::before {
71
- content: '';
72
- position: sticky;
73
- inset-block-start: 0;
74
- inset-inline-start: 0;
75
- width: 0.25rem;
76
- height: 100%;
77
- background-color: ${props => props.groupHeader.colorIndicator};
78
- z-index: 12;
79
- }
80
- }
81
- }
82
-
83
- &.group-header-row .stickyGroupHeader {
84
- position: sticky;
85
- left: 0;
86
- width: 0;
87
- z-index: 10;
88
- height: var(--group-header-height);
89
-
90
- > button {
91
- color: currentColor;
92
- position: absolute;
93
- left: 0;
94
- top: 0;
95
- bottom: 0;
96
- width: max-content;
97
- max-width: var(--container-width);
98
- display: flex;
99
- align-items: center;
100
- background-color: var(--group-bg-color);
101
- padding-left: var(--group-left);
102
- margin-inline-start: 0.25rem;
103
- z-index: 30;
104
- cursor: pointer;
105
- white-space: nowrap;
106
- text-align: inherit;
107
- font-stretch: inherit;
108
-
109
- > .group-wrapper {
110
- margin-inline-start: ${({ groupHeader, theme }) => groupHeader.count === 0 ? `calc(${theme.base.spacing} * 2.25)` : 'unset'};
111
- }
112
-
113
- .cell-content {
114
- max-height: var(--group-header-height);
115
- padding: 0;
116
- }
117
- }
118
- button:focus {
119
- box-shadow: ${({ theme }) => theme.base.shadow['focus-inset']};
120
- }
121
-
122
- &::before {
123
- content: '';
124
- position: absolute;
125
- inset-block-start: 0;
126
- inset-inline-start: 0;
127
- width: 0.25rem;
128
- height: 100%;
129
- background-color: ${props => props.groupHeader.colorIndicator};
130
- z-index: 12;
131
- }
132
- }
133
- .group-header.cell {
134
- left: 0;
135
- padding-left: var(--group-left);
136
- }
137
-
138
- div.group-header.cell-fixed {
139
- background-color: var(--group-bg-color);
140
- }
141
- `;
142
- /**
143
- * Returns label for interval grouping based on interval and boundaries
144
- Response data depends on boundary settings.
145
- Ex: For sample data of profit
146
- profit --> cases(count)
147
- {'0': 10, 1': 100, '2':30, '10': 35, '15':45, '20':2}
148
- For Interval 10
149
- If the boundary is 'include-lower-only',
150
- and value is 10 then label -> 10 to 20
151
-
152
- If boundary is 'include-upper-only',
153
- and value is 10 then label -> 0 to 10
154
- * */
155
- function buildIntervalGroupingLabel(value, customFunction, translate) {
156
- const { interval, boundaries } = customFunction;
157
- // To restrict the decimals in labels
158
- const intervalDecimalLength = (interval.toString().split('.')[1] || '').length;
159
- value = Number(value);
160
- // In case of 'include-lower-only'
161
- let lowerValue = value.toFixed(intervalDecimalLength);
162
- let upperValue = (value + interval).toFixed(intervalDecimalLength);
163
- // In case of boundary 'include-upper-only'
164
- if (boundaries === intervalGroupingBoundaries.includeUpperOnly) {
165
- lowerValue = (value - interval).toFixed(intervalDecimalLength);
166
- upperValue = value.toFixed(intervalDecimalLength);
167
- }
168
- return `${lowerValue} ${translate('to')} ${upperValue}`;
169
- }
170
- function GroupName({ view, column, groupHeader, dateFunction, customFunction }) {
171
- const [translate] = useTranslate();
172
- const { locale, timezone } = view.meta;
173
- const isRangeGrouping = customFunction?.type === customFunctions.RANGE_GROUPING;
174
- const isIntervalGrouping = customFunction?.type === customFunctions.INTERVAL_GROUPING;
175
- if (dateFunction) {
176
- return (_jsx(DateValueDisplay, { value: groupHeader.name, dateFunction: dateFunction, locale: locale, timezone: timezone }));
177
- }
178
- if (isRangeGrouping) {
179
- /** If custom range grouping applied on number field , we need to show group name as text instead of number */
180
- return groupHeader.name;
181
- }
182
- if (isIntervalGrouping) {
183
- /** If custom range grouping applied on number , we need to show group name based on value and custom function details like interval and boundaries */
184
- return buildIntervalGroupingLabel(groupHeader.name, customFunction, translate);
185
- }
186
- column.setExecutionContext(null); // If null is not set then it will execute on the previous row context and facing issues when cell is edited. Based on column.editMode and current context renderer varies (it can be cellEditRenderer)
187
- const columnRendererProps = {
188
- ...column.getRenderingEngineProps(),
189
- context: {
190
- getValue: () => groupHeader.name,
191
- getExecutionContext: () => {
192
- return { getValue: () => groupHeader.data, name: 'groupHeader' };
193
- }
194
- }
195
- };
196
- return _jsx(RenderingEngine, { ...columnRendererProps });
197
- }
198
- // NOTE: While making any changes in GroupRenderer.jsx, also make similar changes in HierarchicalGroupRenderer.jsx file if applicable
199
- export default function GroupHeader({ groupHeader, columns }) {
200
- const buttonRef = useRef();
201
- // TODO: This we are adding temporary to show freeze border until we make group header rendering change
202
- // when we will pick up aggregation.
203
- if (!groupHeader.isVisible)
204
- return null;
205
- const view = columns[0].parent;
206
- // If grouping by a regular column (i.e. without a dateFunction), determine props for the renderer
207
- const { columnId, dateFunction, customFunction } = getGroupFromKey(groupHeader.groupBy, view.state.groups) ?? {};
208
- // if state.groups is not yet prepared/updated, then getGroupFromKey will return undefined
209
- if (!columnId) {
210
- return null;
211
- }
212
- const column = columns.find(c => c.field.id === columnId);
213
- const formatter = view.getFormatterByKey('Integer');
214
- const { locale } = view.meta;
215
- const groupCountFormatted = formatter
216
- ? formatter(groupHeader.count, { locale })
217
- : groupHeader.count;
218
- const isAggregationApplied = columns.filter(c => !c.hidden).some(c => c.aggregated);
219
- return (_jsxs(StyledGroupHeader, { groupHeader: groupHeader, className: cx('row group-header-row sticky-group-header'), "data-test-id": 'groupHeader', "data-testid": TestIdConstants.groupHeader, isAggregationApplied: isAggregationApplied, role: 'row', onFocus: e => {
220
- if (buttonRef.current && !e.currentTarget.contains(e.relatedTarget)) {
221
- e.preventDefault();
222
- buttonRef.current.focus();
223
- }
224
- }, children: [_jsx("div", { className: 'stickyGroupHeader', children: _jsxs(BareButton, { ref: buttonRef, "aria-label": `${column.field.hideGroupColumnNameLabel ? '' : groupHeader.label} ${groupHeader.name}, ${groupCountFormatted} items`, "aria-expanded": !!groupHeader.isExpanded, style: {
225
- paddingRight: 'var(--group-left)'
226
- }, onClick: () => groupHeader.count > 0 && view.type.toggleGroupExpansion({ groupHeader }), tabIndex: -1, children: [groupHeader.count > 0 &&
227
- (groupHeader.isExpanded ? _jsx(Icon, { name: 'caret-down' }) : _jsx(Icon, { name: 'caret-right' })), _jsxs("div", { className: 'group-wrapper', children: [_jsx("div", { className: 'group-label' }), !column.field.hideGroupColumnNameLabel && (_jsxs("span", { className: 'group-header-groupby', "data-test-id": groupHeader.groupBy, "data-testid": `${TestIdConstants.groupHeaderGroupBy}-${groupHeader.groupBy}`, children: [groupHeader.label, ":"] })), _jsx("div", { className: 'group-label' }), _jsxs("span", { className: 'group-context-count', style: { display: 'inline-flex' }, "data-test-id": 'groupHeader', "data-testid": TestIdConstants.groupHeaderCount, children: [_jsx(GroupName, { view: view, column: column, groupHeader: groupHeader, dateFunction: dateFunction, customFunction: customFunction }), _jsx("span", { className: 'group-count', children: ` (${groupCountFormatted})` })] })] })] }) }), _jsx("div", { className: 'group-header-aggregation-row', children: columns.map(c => {
228
- const cxt = {
229
- getValue: () => groupHeader?.aggregation?.[c.field.name]?.[c.aggregationType?.toLowerCase()]
230
- };
231
- return (_jsx(AggregatorCell, { column: c, context: cxt, className: cx('cell', {
232
- 'cell-fixed': column.frozen
233
- }) }, c.field.id));
234
- }) })] }));
235
- }
236
- GroupHeader.propTypes = {
237
- columns: PropTypes.arrayOf(PropTypes.any).isRequired,
238
- groupHeader: PropTypes.objectOf(PropTypes.any).isRequired
239
- };
240
- //# sourceMappingURL=GroupRenderer.js.map