@pega/lists-core 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 (468) hide show
  1. package/LICENSE +185 -0
  2. package/README.md +80 -0
  3. package/SECURITY.md +11 -0
  4. package/lib/index.d.ts +13 -0
  5. package/lib/index.d.ts.map +1 -0
  6. package/lib/index.js +14 -0
  7. package/lib/index.js.map +1 -0
  8. package/lib/src/core/RsCore.d.ts +37 -0
  9. package/lib/src/core/RsCore.d.ts.map +1 -0
  10. package/lib/src/core/RsCore.js +48 -0
  11. package/lib/src/core/RsCore.js.map +1 -0
  12. package/lib/src/core/RsInternal.d.ts +85 -0
  13. package/lib/src/core/RsInternal.d.ts.map +1 -0
  14. package/lib/src/core/RsInternal.js +104 -0
  15. package/lib/src/core/RsInternal.js.map +1 -0
  16. package/lib/src/core/RsProps.d.ts +52 -0
  17. package/lib/src/core/RsProps.d.ts.map +1 -0
  18. package/lib/src/core/RsProps.js +47 -0
  19. package/lib/src/core/RsProps.js.map +1 -0
  20. package/lib/src/core/RsStore.d.ts +62 -0
  21. package/lib/src/core/RsStore.d.ts.map +1 -0
  22. package/lib/src/core/RsStore.js +59 -0
  23. package/lib/src/core/RsStore.js.map +1 -0
  24. package/lib/src/core/StateResolver.d.ts +45 -0
  25. package/lib/src/core/StateResolver.d.ts.map +1 -0
  26. package/lib/src/core/StateResolver.js +276 -0
  27. package/lib/src/core/StateResolver.js.map +1 -0
  28. package/lib/src/core/a11y/BaseA11y.d.ts +161 -0
  29. package/lib/src/core/a11y/BaseA11y.d.ts.map +1 -0
  30. package/lib/src/core/a11y/BaseA11y.js +549 -0
  31. package/lib/src/core/a11y/BaseA11y.js.map +1 -0
  32. package/lib/src/core/actions/actionConstants.d.ts +77 -0
  33. package/lib/src/core/actions/actionConstants.d.ts.map +1 -0
  34. package/lib/src/core/actions/actionConstants.js +79 -0
  35. package/lib/src/core/actions/actionConstants.js.map +1 -0
  36. package/lib/src/core/actions/actions.d.ts +400 -0
  37. package/lib/src/core/actions/actions.d.ts.map +1 -0
  38. package/lib/src/core/actions/actions.js +537 -0
  39. package/lib/src/core/actions/actions.js.map +1 -0
  40. package/lib/src/core/actions/actions.types.d.ts +504 -0
  41. package/lib/src/core/actions/actions.types.d.ts.map +1 -0
  42. package/lib/src/core/actions/actions.types.js +5 -0
  43. package/lib/src/core/actions/actions.types.js.map +1 -0
  44. package/lib/src/core/config/config.d.ts +9 -0
  45. package/lib/src/core/config/config.d.ts.map +1 -0
  46. package/lib/src/core/config/config.js +93 -0
  47. package/lib/src/core/config/config.js.map +1 -0
  48. package/lib/src/core/config/filterConfig.d.ts +123 -0
  49. package/lib/src/core/config/filterConfig.d.ts.map +1 -0
  50. package/lib/src/core/config/filterConfig.js +238 -0
  51. package/lib/src/core/config/filterConfig.js.map +1 -0
  52. package/lib/src/core/constants.d.ts +146 -0
  53. package/lib/src/core/constants.d.ts.map +1 -0
  54. package/lib/src/core/constants.js +124 -0
  55. package/lib/src/core/constants.js.map +1 -0
  56. package/lib/src/core/features/featureFactory.d.ts +52 -0
  57. package/lib/src/core/features/featureFactory.d.ts.map +1 -0
  58. package/lib/src/core/features/featureFactory.js +118 -0
  59. package/lib/src/core/features/featureFactory.js.map +1 -0
  60. package/lib/src/core/features/uIFeatures/afterRender/animation.d.ts +24 -0
  61. package/lib/src/core/features/uIFeatures/afterRender/animation.d.ts.map +1 -0
  62. package/lib/src/core/features/uIFeatures/afterRender/animation.js +157 -0
  63. package/lib/src/core/features/uIFeatures/afterRender/animation.js.map +1 -0
  64. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.d.ts +29 -0
  65. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.d.ts.map +1 -0
  66. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.js +114 -0
  67. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.js.map +1 -0
  68. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.d.ts +38 -0
  69. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.d.ts.map +1 -0
  70. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.js +157 -0
  71. package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.js.map +1 -0
  72. package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.d.ts +16 -0
  73. package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.d.ts.map +1 -0
  74. package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.js +32 -0
  75. package/lib/src/core/features/uIFeatures/afterRender/customizeParentContainer/index.js.map +1 -0
  76. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.d.ts +25 -0
  77. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.d.ts.map +1 -0
  78. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.js +139 -0
  79. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeight.js.map +1 -0
  80. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.d.ts +18 -0
  81. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.d.ts.map +1 -0
  82. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.js +46 -0
  83. package/lib/src/core/features/uIFeatures/beforeRender/adjustHeightToFitRecords.js.map +1 -0
  84. package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.d.ts +13 -0
  85. package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.d.ts.map +1 -0
  86. package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.js +38 -0
  87. package/lib/src/core/features/uIFeatures/beforeRender/adjustMaxHeight.js.map +1 -0
  88. package/lib/src/core/features/uIFeatures/beforeRender/aggregation.d.ts +11 -0
  89. package/lib/src/core/features/uIFeatures/beforeRender/aggregation.d.ts.map +1 -0
  90. package/lib/src/core/features/uIFeatures/beforeRender/aggregation.js +48 -0
  91. package/lib/src/core/features/uIFeatures/beforeRender/aggregation.js.map +1 -0
  92. package/lib/src/core/features/uIFeatures/beforeRender/animation.d.ts +25 -0
  93. package/lib/src/core/features/uIFeatures/beforeRender/animation.d.ts.map +1 -0
  94. package/lib/src/core/features/uIFeatures/beforeRender/animation.js +106 -0
  95. package/lib/src/core/features/uIFeatures/beforeRender/animation.js.map +1 -0
  96. package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.d.ts +18 -0
  97. package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.d.ts.map +1 -0
  98. package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.js +56 -0
  99. package/lib/src/core/features/uIFeatures/beforeRender/busyIndicator.js.map +1 -0
  100. package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.d.ts +7 -0
  101. package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.d.ts.map +1 -0
  102. package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.js +34 -0
  103. package/lib/src/core/features/uIFeatures/beforeRender/changePersonalisation.js.map +1 -0
  104. package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.d.ts +10 -0
  105. package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.d.ts.map +1 -0
  106. package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.js +72 -0
  107. package/lib/src/core/features/uIFeatures/beforeRender/columnAlias.js.map +1 -0
  108. package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.d.ts +9 -0
  109. package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.d.ts.map +1 -0
  110. package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.js +26 -0
  111. package/lib/src/core/features/uIFeatures/beforeRender/columnDisplayMode.js.map +1 -0
  112. package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.d.ts +9 -0
  113. package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.d.ts.map +1 -0
  114. package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.js +29 -0
  115. package/lib/src/core/features/uIFeatures/beforeRender/columnFormatter.js.map +1 -0
  116. package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.d.ts +11 -0
  117. package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.d.ts.map +1 -0
  118. package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.js +38 -0
  119. package/lib/src/core/features/uIFeatures/beforeRender/columnOrder.js.map +1 -0
  120. package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.d.ts +11 -0
  121. package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.d.ts.map +1 -0
  122. package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.js +199 -0
  123. package/lib/src/core/features/uIFeatures/beforeRender/columnReOrder.js.map +1 -0
  124. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.d.ts +5 -0
  125. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.d.ts.map +1 -0
  126. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.js +29 -0
  127. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/index.js.map +1 -0
  128. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.d.ts +14 -0
  129. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.d.ts.map +1 -0
  130. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.js +118 -0
  131. package/lib/src/core/features/uIFeatures/beforeRender/columnSizing/resize.js.map +1 -0
  132. package/lib/src/core/features/uIFeatures/beforeRender/columnSort.d.ts +8 -0
  133. package/lib/src/core/features/uIFeatures/beforeRender/columnSort.d.ts.map +1 -0
  134. package/lib/src/core/features/uIFeatures/beforeRender/columnSort.js +25 -0
  135. package/lib/src/core/features/uIFeatures/beforeRender/columnSort.js.map +1 -0
  136. package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.d.ts +9 -0
  137. package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.d.ts.map +1 -0
  138. package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.js +26 -0
  139. package/lib/src/core/features/uIFeatures/beforeRender/columnToggle.js.map +1 -0
  140. package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.d.ts +12 -0
  141. package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.d.ts.map +1 -0
  142. package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.js +57 -0
  143. package/lib/src/core/features/uIFeatures/beforeRender/columnVisualOrder.js.map +1 -0
  144. package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.d.ts +9 -0
  145. package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.d.ts.map +1 -0
  146. package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.js +36 -0
  147. package/lib/src/core/features/uIFeatures/beforeRender/conditionalStyleFormat.js.map +1 -0
  148. package/lib/src/core/features/uIFeatures/beforeRender/customColumn.d.ts +9 -0
  149. package/lib/src/core/features/uIFeatures/beforeRender/customColumn.d.ts.map +1 -0
  150. package/lib/src/core/features/uIFeatures/beforeRender/customColumn.js +70 -0
  151. package/lib/src/core/features/uIFeatures/beforeRender/customColumn.js.map +1 -0
  152. package/lib/src/core/features/uIFeatures/beforeRender/edit.d.ts +12 -0
  153. package/lib/src/core/features/uIFeatures/beforeRender/edit.d.ts.map +1 -0
  154. package/lib/src/core/features/uIFeatures/beforeRender/edit.js +94 -0
  155. package/lib/src/core/features/uIFeatures/beforeRender/edit.js.map +1 -0
  156. package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.d.ts +9 -0
  157. package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.d.ts.map +1 -0
  158. package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.js +26 -0
  159. package/lib/src/core/features/uIFeatures/beforeRender/errorColumn.js.map +1 -0
  160. package/lib/src/core/features/uIFeatures/beforeRender/filter.d.ts +10 -0
  161. package/lib/src/core/features/uIFeatures/beforeRender/filter.d.ts.map +1 -0
  162. package/lib/src/core/features/uIFeatures/beforeRender/filter.js +36 -0
  163. package/lib/src/core/features/uIFeatures/beforeRender/filter.js.map +1 -0
  164. package/lib/src/core/features/uIFeatures/beforeRender/freeze.d.ts +15 -0
  165. package/lib/src/core/features/uIFeatures/beforeRender/freeze.d.ts.map +1 -0
  166. package/lib/src/core/features/uIFeatures/beforeRender/freeze.js +119 -0
  167. package/lib/src/core/features/uIFeatures/beforeRender/freeze.js.map +1 -0
  168. package/lib/src/core/features/uIFeatures/beforeRender/grouping.d.ts +38 -0
  169. package/lib/src/core/features/uIFeatures/beforeRender/grouping.d.ts.map +1 -0
  170. package/lib/src/core/features/uIFeatures/beforeRender/grouping.js +451 -0
  171. package/lib/src/core/features/uIFeatures/beforeRender/grouping.js.map +1 -0
  172. package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.d.ts +7 -0
  173. package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.d.ts.map +1 -0
  174. package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.js +36 -0
  175. package/lib/src/core/features/uIFeatures/beforeRender/groupsorting.js.map +1 -0
  176. package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.d.ts +7 -0
  177. package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.d.ts.map +1 -0
  178. package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.js +76 -0
  179. package/lib/src/core/features/uIFeatures/beforeRender/moveListRecords.js.map +1 -0
  180. package/lib/src/core/features/uIFeatures/beforeRender/personalization.d.ts +16 -0
  181. package/lib/src/core/features/uIFeatures/beforeRender/personalization.d.ts.map +1 -0
  182. package/lib/src/core/features/uIFeatures/beforeRender/personalization.js +306 -0
  183. package/lib/src/core/features/uIFeatures/beforeRender/personalization.js.map +1 -0
  184. package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.d.ts +7 -0
  185. package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.d.ts.map +1 -0
  186. package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.js +59 -0
  187. package/lib/src/core/features/uIFeatures/beforeRender/prepareColumns.js.map +1 -0
  188. package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.d.ts +7 -0
  189. package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.d.ts.map +1 -0
  190. package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.js +30 -0
  191. package/lib/src/core/features/uIFeatures/beforeRender/prepareRows.js.map +1 -0
  192. package/lib/src/core/features/uIFeatures/beforeRender/refresh.d.ts +15 -0
  193. package/lib/src/core/features/uIFeatures/beforeRender/refresh.d.ts.map +1 -0
  194. package/lib/src/core/features/uIFeatures/beforeRender/refresh.js +40 -0
  195. package/lib/src/core/features/uIFeatures/beforeRender/refresh.js.map +1 -0
  196. package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.d.ts +7 -0
  197. package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.d.ts.map +1 -0
  198. package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.js +21 -0
  199. package/lib/src/core/features/uIFeatures/beforeRender/renderHeader.js.map +1 -0
  200. package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.d.ts +7 -0
  201. package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.d.ts.map +1 -0
  202. package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.js +55 -0
  203. package/lib/src/core/features/uIFeatures/beforeRender/resetFetch.js.map +1 -0
  204. package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.d.ts +7 -0
  205. package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.d.ts.map +1 -0
  206. package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.js +24 -0
  207. package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.js.map +1 -0
  208. package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.d.ts +9 -0
  209. package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.d.ts.map +1 -0
  210. package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.js +232 -0
  211. package/lib/src/core/features/uIFeatures/beforeRender/rowDragDrop.js.map +1 -0
  212. package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.d.ts +7 -0
  213. package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.d.ts.map +1 -0
  214. package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.js +18 -0
  215. package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.js.map +1 -0
  216. package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.d.ts +23 -0
  217. package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.d.ts.map +1 -0
  218. package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.js +135 -0
  219. package/lib/src/core/features/uIFeatures/beforeRender/rowSelect.js.map +1 -0
  220. package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.d.ts +14 -0
  221. package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.d.ts.map +1 -0
  222. package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.js +36 -0
  223. package/lib/src/core/features/uIFeatures/beforeRender/scrollToTop.js.map +1 -0
  224. package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.d.ts +19 -0
  225. package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.d.ts.map +1 -0
  226. package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.js +157 -0
  227. package/lib/src/core/features/uIFeatures/beforeRender/stateHydration.js.map +1 -0
  228. package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.d.ts +29 -0
  229. package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.d.ts.map +1 -0
  230. package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.js +214 -0
  231. package/lib/src/core/features/uIFeatures/beforeRender/stateSanitization.js.map +1 -0
  232. package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.d.ts +11 -0
  233. package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.d.ts.map +1 -0
  234. package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.js +26 -0
  235. package/lib/src/core/features/uIFeatures/beforeRender/toggleHeaderIcons.js.map +1 -0
  236. package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.d.ts +12 -0
  237. package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.d.ts.map +1 -0
  238. package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.js +51 -0
  239. package/lib/src/core/features/uIFeatures/beforeRender/toggleSelectAllCheckbox.js.map +1 -0
  240. package/lib/src/core/features/uIFeatures/index.d.ts +55 -0
  241. package/lib/src/core/features/uIFeatures/index.d.ts.map +1 -0
  242. package/lib/src/core/features/uIFeatures/index.js +95 -0
  243. package/lib/src/core/features/uIFeatures/index.js.map +1 -0
  244. package/lib/src/core/generators/ColumnGenerator.d.ts +349 -0
  245. package/lib/src/core/generators/ColumnGenerator.d.ts.map +1 -0
  246. package/lib/src/core/generators/ColumnGenerator.js +725 -0
  247. package/lib/src/core/generators/ColumnGenerator.js.map +1 -0
  248. package/lib/src/core/generators/ColumnGenerator.types.d.ts +149 -0
  249. package/lib/src/core/generators/ColumnGenerator.types.d.ts.map +1 -0
  250. package/lib/src/core/generators/ColumnGenerator.types.js +2 -0
  251. package/lib/src/core/generators/ColumnGenerator.types.js.map +1 -0
  252. package/lib/src/core/generators/GroupGenerator.d.ts +59 -0
  253. package/lib/src/core/generators/GroupGenerator.d.ts.map +1 -0
  254. package/lib/src/core/generators/GroupGenerator.js +64 -0
  255. package/lib/src/core/generators/GroupGenerator.js.map +1 -0
  256. package/lib/src/core/generators/RowGenerator.d.ts +97 -0
  257. package/lib/src/core/generators/RowGenerator.d.ts.map +1 -0
  258. package/lib/src/core/generators/RowGenerator.js +285 -0
  259. package/lib/src/core/generators/RowGenerator.js.map +1 -0
  260. package/lib/src/core/generators/RowGenerator.types.d.ts +95 -0
  261. package/lib/src/core/generators/RowGenerator.types.d.ts.map +1 -0
  262. package/lib/src/core/generators/RowGenerator.types.js +2 -0
  263. package/lib/src/core/generators/RowGenerator.types.js.map +1 -0
  264. package/lib/src/core/generators/ViewGenerator.d.ts +280 -0
  265. package/lib/src/core/generators/ViewGenerator.d.ts.map +1 -0
  266. package/lib/src/core/generators/ViewGenerator.js +585 -0
  267. package/lib/src/core/generators/ViewGenerator.js.map +1 -0
  268. package/lib/src/core/generators/ViewGenerator.types.d.ts +180 -0
  269. package/lib/src/core/generators/ViewGenerator.types.d.ts.map +1 -0
  270. package/lib/src/core/generators/ViewGenerator.types.js +2 -0
  271. package/lib/src/core/generators/ViewGenerator.types.js.map +1 -0
  272. package/lib/src/core/generators/__tests__/viewUtilityMockSetup.d.ts +69 -0
  273. package/lib/src/core/generators/__tests__/viewUtilityMockSetup.d.ts.map +1 -0
  274. package/lib/src/core/generators/__tests__/viewUtilityMockSetup.js +16 -0
  275. package/lib/src/core/generators/__tests__/viewUtilityMockSetup.js.map +1 -0
  276. package/lib/src/core/generators/viewUtilityMethods.d.ts +316 -0
  277. package/lib/src/core/generators/viewUtilityMethods.d.ts.map +1 -0
  278. package/lib/src/core/generators/viewUtilityMethods.js +542 -0
  279. package/lib/src/core/generators/viewUtilityMethods.js.map +1 -0
  280. package/lib/src/core/index.d.ts +7 -0
  281. package/lib/src/core/index.d.ts.map +1 -0
  282. package/lib/src/core/index.js +80 -0
  283. package/lib/src/core/index.js.map +1 -0
  284. package/lib/src/core/pubSub/events.d.ts +6 -0
  285. package/lib/src/core/pubSub/events.d.ts.map +1 -0
  286. package/lib/src/core/pubSub/events.js +6 -0
  287. package/lib/src/core/pubSub/events.js.map +1 -0
  288. package/lib/src/core/pubSub/index.d.ts +7 -0
  289. package/lib/src/core/pubSub/index.d.ts.map +1 -0
  290. package/lib/src/core/pubSub/index.js +35 -0
  291. package/lib/src/core/pubSub/index.js.map +1 -0
  292. package/lib/src/core/reducers/aggregation.d.ts +5 -0
  293. package/lib/src/core/reducers/aggregation.d.ts.map +1 -0
  294. package/lib/src/core/reducers/aggregation.js +35 -0
  295. package/lib/src/core/reducers/aggregation.js.map +1 -0
  296. package/lib/src/core/reducers/bootstrap.d.ts +5 -0
  297. package/lib/src/core/reducers/bootstrap.d.ts.map +1 -0
  298. package/lib/src/core/reducers/bootstrap.js +12 -0
  299. package/lib/src/core/reducers/bootstrap.js.map +1 -0
  300. package/lib/src/core/reducers/columnAlias.d.ts +5 -0
  301. package/lib/src/core/reducers/columnAlias.d.ts.map +1 -0
  302. package/lib/src/core/reducers/columnAlias.js +28 -0
  303. package/lib/src/core/reducers/columnAlias.js.map +1 -0
  304. package/lib/src/core/reducers/conditionalStyleFormat.d.ts +5 -0
  305. package/lib/src/core/reducers/conditionalStyleFormat.d.ts.map +1 -0
  306. package/lib/src/core/reducers/conditionalStyleFormat.js +13 -0
  307. package/lib/src/core/reducers/conditionalStyleFormat.js.map +1 -0
  308. package/lib/src/core/reducers/customColumn.d.ts +5 -0
  309. package/lib/src/core/reducers/customColumn.d.ts.map +1 -0
  310. package/lib/src/core/reducers/customColumn.js +40 -0
  311. package/lib/src/core/reducers/customColumn.js.map +1 -0
  312. package/lib/src/core/reducers/dragDrop.d.ts +6 -0
  313. package/lib/src/core/reducers/dragDrop.d.ts.map +1 -0
  314. package/lib/src/core/reducers/dragDrop.js +100 -0
  315. package/lib/src/core/reducers/dragDrop.js.map +1 -0
  316. package/lib/src/core/reducers/edit.d.ts +5 -0
  317. package/lib/src/core/reducers/edit.d.ts.map +1 -0
  318. package/lib/src/core/reducers/edit.js +65 -0
  319. package/lib/src/core/reducers/edit.js.map +1 -0
  320. package/lib/src/core/reducers/error.d.ts +69 -0
  321. package/lib/src/core/reducers/error.d.ts.map +1 -0
  322. package/lib/src/core/reducers/error.js +21 -0
  323. package/lib/src/core/reducers/error.js.map +1 -0
  324. package/lib/src/core/reducers/externalState.d.ts +5 -0
  325. package/lib/src/core/reducers/externalState.d.ts.map +1 -0
  326. package/lib/src/core/reducers/externalState.js +20 -0
  327. package/lib/src/core/reducers/externalState.js.map +1 -0
  328. package/lib/src/core/reducers/filter.d.ts +5 -0
  329. package/lib/src/core/reducers/filter.d.ts.map +1 -0
  330. package/lib/src/core/reducers/filter.js +29 -0
  331. package/lib/src/core/reducers/filter.js.map +1 -0
  332. package/lib/src/core/reducers/forceUpdate.d.ts +5 -0
  333. package/lib/src/core/reducers/forceUpdate.d.ts.map +1 -0
  334. package/lib/src/core/reducers/forceUpdate.js +25 -0
  335. package/lib/src/core/reducers/forceUpdate.js.map +1 -0
  336. package/lib/src/core/reducers/freeze.d.ts +5 -0
  337. package/lib/src/core/reducers/freeze.d.ts.map +1 -0
  338. package/lib/src/core/reducers/freeze.js +36 -0
  339. package/lib/src/core/reducers/freeze.js.map +1 -0
  340. package/lib/src/core/reducers/grouping.d.ts +5 -0
  341. package/lib/src/core/reducers/grouping.d.ts.map +1 -0
  342. package/lib/src/core/reducers/grouping.js +142 -0
  343. package/lib/src/core/reducers/grouping.js.map +1 -0
  344. package/lib/src/core/reducers/index.d.ts +5 -0
  345. package/lib/src/core/reducers/index.d.ts.map +1 -0
  346. package/lib/src/core/reducers/index.js +77 -0
  347. package/lib/src/core/reducers/index.js.map +1 -0
  348. package/lib/src/core/reducers/moveRecords.d.ts +5 -0
  349. package/lib/src/core/reducers/moveRecords.d.ts.map +1 -0
  350. package/lib/src/core/reducers/moveRecords.js +10 -0
  351. package/lib/src/core/reducers/moveRecords.js.map +1 -0
  352. package/lib/src/core/reducers/notificationsReducer.d.ts +4 -0
  353. package/lib/src/core/reducers/notificationsReducer.d.ts.map +1 -0
  354. package/lib/src/core/reducers/notificationsReducer.js +49 -0
  355. package/lib/src/core/reducers/notificationsReducer.js.map +1 -0
  356. package/lib/src/core/reducers/paginations.d.ts +5 -0
  357. package/lib/src/core/reducers/paginations.d.ts.map +1 -0
  358. package/lib/src/core/reducers/paginations.js +19 -0
  359. package/lib/src/core/reducers/paginations.js.map +1 -0
  360. package/lib/src/core/reducers/personalizationDirtyReducer.d.ts +5 -0
  361. package/lib/src/core/reducers/personalizationDirtyReducer.d.ts.map +1 -0
  362. package/lib/src/core/reducers/personalizationDirtyReducer.js +46 -0
  363. package/lib/src/core/reducers/personalizationDirtyReducer.js.map +1 -0
  364. package/lib/src/core/reducers/personalizationReducer.d.ts +5 -0
  365. package/lib/src/core/reducers/personalizationReducer.d.ts.map +1 -0
  366. package/lib/src/core/reducers/personalizationReducer.js +238 -0
  367. package/lib/src/core/reducers/personalizationReducer.js.map +1 -0
  368. package/lib/src/core/reducers/refresh.d.ts +5 -0
  369. package/lib/src/core/reducers/refresh.d.ts.map +1 -0
  370. package/lib/src/core/reducers/refresh.js +16 -0
  371. package/lib/src/core/reducers/refresh.js.map +1 -0
  372. package/lib/src/core/reducers/renderFormatter.d.ts +5 -0
  373. package/lib/src/core/reducers/renderFormatter.d.ts.map +1 -0
  374. package/lib/src/core/reducers/renderFormatter.js +22 -0
  375. package/lib/src/core/reducers/renderFormatter.js.map +1 -0
  376. package/lib/src/core/reducers/resize.d.ts +5 -0
  377. package/lib/src/core/reducers/resize.d.ts.map +1 -0
  378. package/lib/src/core/reducers/resize.js +32 -0
  379. package/lib/src/core/reducers/resize.js.map +1 -0
  380. package/lib/src/core/reducers/rowSelect.d.ts +5 -0
  381. package/lib/src/core/reducers/rowSelect.d.ts.map +1 -0
  382. package/lib/src/core/reducers/rowSelect.js +86 -0
  383. package/lib/src/core/reducers/rowSelect.js.map +1 -0
  384. package/lib/src/core/reducers/sanitize.d.ts +5 -0
  385. package/lib/src/core/reducers/sanitize.d.ts.map +1 -0
  386. package/lib/src/core/reducers/sanitize.js +21 -0
  387. package/lib/src/core/reducers/sanitize.js.map +1 -0
  388. package/lib/src/core/reducers/search.d.ts +5 -0
  389. package/lib/src/core/reducers/search.d.ts.map +1 -0
  390. package/lib/src/core/reducers/search.js +13 -0
  391. package/lib/src/core/reducers/search.js.map +1 -0
  392. package/lib/src/core/reducers/showHeaderIcons.d.ts +5 -0
  393. package/lib/src/core/reducers/showHeaderIcons.d.ts.map +1 -0
  394. package/lib/src/core/reducers/showHeaderIcons.js +13 -0
  395. package/lib/src/core/reducers/showHeaderIcons.js.map +1 -0
  396. package/lib/src/core/reducers/smallScreen.d.ts +5 -0
  397. package/lib/src/core/reducers/smallScreen.d.ts.map +1 -0
  398. package/lib/src/core/reducers/smallScreen.js +22 -0
  399. package/lib/src/core/reducers/smallScreen.js.map +1 -0
  400. package/lib/src/core/reducers/sort.d.ts +5 -0
  401. package/lib/src/core/reducers/sort.d.ts.map +1 -0
  402. package/lib/src/core/reducers/sort.js +71 -0
  403. package/lib/src/core/reducers/sort.js.map +1 -0
  404. package/lib/src/core/reducers/versioning/index.d.ts +16 -0
  405. package/lib/src/core/reducers/versioning/index.d.ts.map +1 -0
  406. package/lib/src/core/reducers/versioning/index.js +46 -0
  407. package/lib/src/core/reducers/versioning/index.js.map +1 -0
  408. package/lib/src/core/reducers/versioning/v1.d.ts +136 -0
  409. package/lib/src/core/reducers/versioning/v1.d.ts.map +1 -0
  410. package/lib/src/core/reducers/versioning/v1.js +156 -0
  411. package/lib/src/core/reducers/versioning/v1.js.map +1 -0
  412. package/lib/src/core/reducers/visibility.d.ts +5 -0
  413. package/lib/src/core/reducers/visibility.d.ts.map +1 -0
  414. package/lib/src/core/reducers/visibility.js +49 -0
  415. package/lib/src/core/reducers/visibility.js.map +1 -0
  416. package/lib/src/core/test/junitMocks.d.ts +756 -0
  417. package/lib/src/core/test/junitMocks.d.ts.map +1 -0
  418. package/lib/src/core/test/junitMocks.js +2923 -0
  419. package/lib/src/core/test/junitMocks.js.map +1 -0
  420. package/lib/src/core/test/samples/a11ySample.d.ts +8 -0
  421. package/lib/src/core/test/samples/a11ySample.d.ts.map +1 -0
  422. package/lib/src/core/test/samples/a11ySample.js +1131 -0
  423. package/lib/src/core/test/samples/a11ySample.js.map +1 -0
  424. package/lib/src/core/test/samples/a11ySampleWithLoaders.d.ts +8 -0
  425. package/lib/src/core/test/samples/a11ySampleWithLoaders.d.ts.map +1 -0
  426. package/lib/src/core/test/samples/a11ySampleWithLoaders.js +1134 -0
  427. package/lib/src/core/test/samples/a11ySampleWithLoaders.js.map +1 -0
  428. package/lib/src/core/test/samples/utils.d.ts +2 -0
  429. package/lib/src/core/test/samples/utils.d.ts.map +1 -0
  430. package/lib/src/core/test/samples/utils.js +9 -0
  431. package/lib/src/core/test/samples/utils.js.map +1 -0
  432. package/lib/src/core/test/utils/rowDragDropUtils.d.ts +20 -0
  433. package/lib/src/core/test/utils/rowDragDropUtils.d.ts.map +1 -0
  434. package/lib/src/core/test/utils/rowDragDropUtils.js +98 -0
  435. package/lib/src/core/test/utils/rowDragDropUtils.js.map +1 -0
  436. package/lib/src/core/utils/condition-utils.d.ts +15 -0
  437. package/lib/src/core/utils/condition-utils.d.ts.map +1 -0
  438. package/lib/src/core/utils/condition-utils.js +114 -0
  439. package/lib/src/core/utils/condition-utils.js.map +1 -0
  440. package/lib/src/core/utils/util.d.ts +380 -0
  441. package/lib/src/core/utils/util.d.ts.map +1 -0
  442. package/lib/src/core/utils/util.js +912 -0
  443. package/lib/src/core/utils/util.js.map +1 -0
  444. package/lib/src/core/utils/util.types.d.ts +43 -0
  445. package/lib/src/core/utils/util.types.d.ts.map +1 -0
  446. package/lib/src/core/utils/util.types.js +2 -0
  447. package/lib/src/core/utils/util.types.js.map +1 -0
  448. package/lib/types/ApiContext.types.d.ts +392 -0
  449. package/lib/types/ApiContext.types.d.ts.map +1 -0
  450. package/lib/types/ApiContext.types.js +2 -0
  451. package/lib/types/ApiContext.types.js.map +1 -0
  452. package/lib/types/Meta.types.d.ts +705 -0
  453. package/lib/types/Meta.types.d.ts.map +1 -0
  454. package/lib/types/Meta.types.js +37 -0
  455. package/lib/types/Meta.types.js.map +1 -0
  456. package/lib/types/RsCoreBootArgs.types.d.ts +103 -0
  457. package/lib/types/RsCoreBootArgs.types.d.ts.map +1 -0
  458. package/lib/types/RsCoreBootArgs.types.js +2 -0
  459. package/lib/types/RsCoreBootArgs.types.js.map +1 -0
  460. package/lib/types/State.types.d.ts +374 -0
  461. package/lib/types/State.types.d.ts.map +1 -0
  462. package/lib/types/State.types.js +5 -0
  463. package/lib/types/State.types.js.map +1 -0
  464. package/lib/types.d.ts +30 -0
  465. package/lib/types.d.ts.map +1 -0
  466. package/lib/types.js +2 -0
  467. package/lib/types.js.map +1 -0
  468. package/package.json +30 -0
@@ -0,0 +1,316 @@
1
+ import type { OmitStrict } from '@pega/cosmos-react-core';
2
+ import type { ModalManagerContextValue } from '@pega/cosmos-react-core/lib/components/Modal/Modal.types';
3
+ import type RsInternal from '../RsInternal';
4
+ import type { SupportedConsumerActionType } from '../actions/actionConstants';
5
+ import type { Errors, State } from '../../../types/State.types';
6
+ import type { FieldDef, ROW_DENSITY } from '../../../types/Meta.types';
7
+ import type { ActionMeta, ColumnFilteringActionPayload, ExpandCollapsePayload, PaginationPayload } from '../actions/actions.types';
8
+ import type View from './ViewGenerator';
9
+ export type SupportedConsumerPayloads = boolean | NonNullable<View['requiredDef']> | NonNullable<View['debugInfo']>[number] | OmitStrict<NonNullable<View['confirmationActionDetails']>, 'onSubmit' | 'onCancel'> | NonNullable<State['externalState']> | Pick<NonNullable<State['forceUpdateFeatures']>, 'updateSelectedRows'>;
10
+ export default function viewUtilityMethods(rsInternal: RsInternal): {
11
+ /**
12
+ * Dispatches an action that creates a new state object without any internal modifications.
13
+ *
14
+ * If {@link instantRender} is false and {@link forceUpdateFeatures} are provided,
15
+ * it updates the {@link State.forceUpdateFeatures forceUpdateFeatures} slice in the state.
16
+ *
17
+ * @param instantRender - Determines if the render should happen instantly.
18
+ * @param forceUpdateFeatures - The features to force update in the state on next render cycle.
19
+ */
20
+ forceUpdate(instantRender?: boolean, forceUpdateFeatures?: State["forceUpdateFeatures"]): void;
21
+ /**
22
+ * Handles the reordering of rows.
23
+ *
24
+ * If {@link Meta.moveListRecords moveListRecords} is set to true in Meta, it dispatches an action
25
+ * that updates the keys of the {@link sourceKey source} row and the {@link destinationKey destination} row
26
+ * in the {@link State.sourceKey sourceKey} and {@link State.destinationKey destinationKey} state slices, respectively.
27
+ *
28
+ * Otherwise, it calls {@link ApiContext.applyRowReorder applyRowReorder} from the apiContext and triggers
29
+ * a {@link utilMethods.forceRefresh forceRefresh} on the state.
30
+ *
31
+ * @param sourceKey - The itemKey for the row being dragged.
32
+ * @param destinationKey - The itemKey for the row on which it is dropped.
33
+ * @returns
34
+ */
35
+ handleRowReorder(sourceKey: string, destinationKey: string): void;
36
+ /**
37
+ * Sets the count-related information onto the {@link View view} via {@link View.setProp setProp} and triggers {@link utilMethods.forceUpdate forceUpdate}.
38
+ *
39
+ * @param args - The count information object.
40
+ * @param args.count - The total record count of the view, including group headers.
41
+ * @param args.hasMoreResults - Indicates if the view has more records.
42
+ * @param args.selectedRecordsCount - The total count of selected records.
43
+ * @param args._countGeneratedInternally - Indicates if the count is generated internally. This is used for RS core internal purposes. Setting this from apiContext might lead to erroneous behavior.
44
+ * @returns void
45
+ */
46
+ setRecordCount({ count, hasMoreResults, selectedRecordsCount, _countGeneratedInternally }: {
47
+ count?: View["totalItemCount"];
48
+ hasMoreResults?: View["hasMoreTotalRecords"];
49
+ selectedRecordsCount?: View["selectedRecordsCount"];
50
+ _countGeneratedInternally?: View["countGeneratedInternally"];
51
+ }): void;
52
+ /**
53
+ * Dispatches an action to interact with repeating structures, allowing consumers
54
+ * to perform operations using standard actions and payloads.
55
+ *
56
+ * @param action The action to be dispatched.
57
+ * @param payload The payload associated with the action.
58
+ * @returns The return value after the action has been processed by the repeating structure.
59
+ */
60
+ dispatchAction(action: SupportedConsumerActionType, payload?: SupportedConsumerPayloads): Promise<any> | undefined;
61
+ /** Returns the Html events required for reordering a column. */
62
+ getFieldReorderProps(): import("./ColumnGenerator.types").ColumnReorderProps | null;
63
+ /**
64
+ * Triggers the expand or collapse action for a group header.
65
+ * Dispatches an action to update the {@link State.groupToggle groupToggle} slices in the state.
66
+ *
67
+ * @param payload The data related to the groups.
68
+ */
69
+ toggleGroupExpansion(payload: OmitStrict<ExpandCollapsePayload, "groups">): void;
70
+ /**
71
+ * Clears hierarchical groups by dispatching an action to reset the {@link State.hierarchicalGroup hierarchicalGroup} slice in the state.
72
+ */
73
+ clearHierarchicalGroup(): void;
74
+ /**
75
+ * Dispatches a pagination action to update {@link State.paginationOptions paginationOptions} in the state slice.
76
+ *
77
+ * @param payload - The pagination options to update.
78
+ * @param actionMeta - The action metadata.
79
+ */
80
+ onPaginate(payload: PaginationPayload, actionMeta?: ActionMeta): void;
81
+ /**
82
+ * Removes a notification message.
83
+ * Dispatches an action to update the {@link State.notifications notifications} slice in the state.
84
+ *
85
+ * @param payload The notification messages to be removed.
86
+ */
87
+ removeNotification(payload: string[]): void;
88
+ /**
89
+ * Applies a filter to the repeating structures.
90
+ * Dispatches an action that updates the {@link State.filterExpression filterExpression} in the state.
91
+ *
92
+ * @param params The filter expression to apply.
93
+ */
94
+ applyFilter(params: ColumnFilteringActionPayload): void;
95
+ /**
96
+ * Dispatches an action to replace the {@link State.columnAlias columnAlias} slice in the state.
97
+ *
98
+ * @param params - Parameters for the action. Specify the necessary details.
99
+ */
100
+ applyAliases(params: NonNullable<State["columnAlias"]>): void;
101
+ /**
102
+ * Clears filters for the specified {@link columnId}.
103
+ * Dispatches an action to update the {@link State.clearColFilter clearColFilter} slice in the state.
104
+ * @param columnId - The column on which the filter should be cleared.
105
+ */
106
+ clearFilter(columnId: string): void;
107
+ /**
108
+ * Applies grouping to repeating structures.
109
+ * Dispatches an action that adds {@link State.groups groups} in the state.
110
+ * @param payload
111
+ */
112
+ applyGrouping(payload: NonNullable<State["groups"]>): void;
113
+ /**
114
+ * Applies sorting the repeating structures.
115
+ * Dispatches an action that adds {@link State.sortingOrder sortingOrder} in state.
116
+ * @param payload
117
+ */
118
+ applySorting(payload: NonNullable<State["sortingOrder"]>): void;
119
+ /**
120
+ * Toggles the visibility of header icons.
121
+ * Dispatches an action to update {@link State.showHeaderIcons} in the state.
122
+ *
123
+ * @param status The status indicating whether to show or hide header icons.
124
+ */
125
+ updateHeaderIconsVisibility(status: NonNullable<State["showHeaderIcons"]>): void;
126
+ /**
127
+ * Applies freezing to a set of columns.
128
+ * Dispatches an action to update {@link State.freezeColumns freezeColumns} in the state.
129
+ *
130
+ * @param payload The payload containing information about the columns to freeze.
131
+ */
132
+ applyFreeze(payload: string[]): void;
133
+ /**
134
+ * Toggles the visibility of columns.
135
+ * Dispatches an action that updates {@link State.hiddenColumns hiddenColumns} in the state.
136
+ * @param payload
137
+ */
138
+ applyToggleVisibility(payload: string[]): void;
139
+ /**
140
+ * Sets the {@link State.hiddenColumns hiddenColumns} in the state, including out-of-the-box columns like dragHandle.
141
+ *
142
+ * @param payload - The payload containing columns to hide.
143
+ * @param ootbColumns - The out-of-the-box columns to include in {@link State.hiddenColumns hiddenColumns}.
144
+ */
145
+ applyHiddenColumns(payload: string[], ootbColumns: {
146
+ dragHandle?: boolean;
147
+ }): void;
148
+ /**
149
+ * Dispatches an action that replace {@link State.aggregationInfo aggregationInfo} slice in the state with the given {@link payload}.
150
+ * @param payload
151
+ */
152
+ applyAggregations(payload: NonNullable<State["aggregationInfo"]>): void;
153
+ /**
154
+ * Applies order to columns of a repeatings structure with the given {@link payload}.
155
+ * Dispatches an action that sets {@link State.colOrder columnOrder} in the state with the given {@link payload}.
156
+ * @param payload
157
+ */
158
+ applyOrder(payload: string[]): void;
159
+ /**
160
+ * Saves the current personalization state.
161
+ * Dispatches an action that invokes {@link ApiContext.updatePersonalization} to persist the changes.
162
+ *
163
+ * @param personalizationKey The key representing the current personalization.
164
+ * @param markAsDefault Whether to mark the current personalization as default.
165
+ * @param markAsAppDefault Whether to mark the current personalization as app default.
166
+ */
167
+ updatePersonalization(personalizationKey: string, markAsDefault: boolean, markAsAppDefault: boolean): void;
168
+ /**
169
+ * Sets the selected personalization state as the current state of the repeating structures.
170
+ * Dispatches an action to update the {@link State} of the repeating structures with the selected personalization state,
171
+ * and updates the active personalization in the {@link State.personalization personalization} state slice.
172
+ *
173
+ * @param args Method arguments.
174
+ * @param args.id ID of the personalization to be set active.
175
+ * @param args.isPreset Indicates if the personalization is preset.
176
+ */
177
+ applyActivePersonalization({ id, isPreset }: {
178
+ id: string;
179
+ isPreset: boolean;
180
+ }): void;
181
+ /**
182
+ * Creates a new personalization in the state.
183
+ * Dispatches an action that calls {@link ApiContext.createPersonalization createPersonalization} API to create
184
+ * a new personalization with the provided name and saves it in the {@link State.personalization personalization}.
185
+ *
186
+ * @param name The name of the personalization.
187
+ * @param markAsDefault Indicates whether the new personalization should be marked as default.
188
+ */
189
+ createPersonalization(name: string, markAsDefault: boolean): void;
190
+ /**
191
+ * Updates the name, markAsDefault, and markAsAppDefault flags of the current personalization.
192
+ *
193
+ * @param active The current active personalization key.
194
+ * @param name The updated name.
195
+ * @param markAsDefault Indicates whether the current personalization should be marked as default.
196
+ * @param markAsAppDefault Indicates whether the current personalization should be marked as app default.
197
+ */
198
+ editPersonalization(active: string, name: string, markAsDefault: boolean, markAsAppDefault: boolean): void;
199
+ /**
200
+ * Deletes the current personalization identified by the given key.
201
+ * Dispatches an action that calls {@link ApiContext.deletePersonalization deletePersonalization} API
202
+ * and updates the {@link State.personalization personalization} state by removing the deleted personalization.
203
+ *
204
+ * @param personalizationKey - The key or ID of the personalization to be deleted.
205
+ */
206
+ deletePersonalization(personalizationKey: string): void;
207
+ /**
208
+ * Sets the current personalization key as the default personalization.
209
+ * Dispatches an action to update `defaultPersonalization` in the `personalization` state slice
210
+ * and calls {@link ApiContext.updatePersonalization updatePersonalization} API.
211
+ *
212
+ * @param personalizationKey - The key identifying the personalization to set as default.
213
+ */
214
+ setDefaultPersonalization(personalizationKey: string): void;
215
+ /**
216
+ * Sets the current {@link personalizationKey} as the app's default personalization.
217
+ * Dispatches an action that invokes {@link ApiContext.updatePersonalization updatePersonalization} api with markAsAppDefault=true for the current personalization.
218
+ *
219
+ * @param personalizationKey The key of the personalization to set as default.
220
+ * @param trimmedName The name of the personalization to update.
221
+ */
222
+ setAppDefaultPersonalization(personalizationKey: string, trimmedName: string): void;
223
+ /**
224
+ * Applies the provided search value as a filter expression in the state,
225
+ * using an OR condition with a contains clause.
226
+ *
227
+ * @param value The search value to apply.
228
+ */
229
+ applySearch(value: string): void;
230
+ /**
231
+ * Applies the given row density in {@link State.selectedHeightOption selectedHeightOption} state slice.
232
+ *
233
+ * @param payload the row density id.
234
+ */
235
+ applyRowHeight(payload: (typeof ROW_DENSITY)[keyof typeof ROW_DENSITY]): void;
236
+ /**
237
+ * Sets the {@link State.bootstrap bootstrap} status of repeating structures and update the {@link State.version version}in state.
238
+ */
239
+ doBootstrap(): void;
240
+ /**
241
+ * Triggers a refresh of data in repeating structures.
242
+ * Dispatches an action that injects {@link State.refresh refresh} flag in the state.
243
+ * @param flushState The state slice that needs to be reset on refresh. See {@link SUPPORTED_AVOIDABLE_FEATURES}.
244
+ * @param featuresToAvoid The features that should not run as part of refresh. See {@link SUPPORTED_FLUSH_KEYS}.
245
+ */
246
+ forceRefresh(flushState?: {
247
+ [k: string]: boolean;
248
+ }, featuresToAvoid?: string[]): void;
249
+ /**
250
+ * Fetches actions for the {@link selectedItems} using {@link ApiContext.fetchActions fetchActions} api.
251
+ * @param selectedItems
252
+ * @returns
253
+ */
254
+ fetchActions(selectedItems: string[]): Promise<(Pick<import("../../../types/Meta.types").RowAction, "text" | "id"> & {
255
+ onClick: (rowIds: string[], clearSelectionAndRefreshRowsCallback: () => void) => void;
256
+ })[]> | undefined;
257
+ /**
258
+ * This resets the selection and refreshes the {@link rows} data.
259
+ * @param rows
260
+ */
261
+ clearSelectionAndRefreshRows(rows: string[]): Promise<void>;
262
+ /**
263
+ * This removes {@link State.showConfirmationAction confirmationAction} from the state.
264
+ */
265
+ completeConfirmationAction(): void;
266
+ /**
267
+ * This sets the {@link State.errors errors} in the state.
268
+ * @param payload
269
+ */
270
+ setErrors(payload: Errors): void;
271
+ /**
272
+ * Dispatches the dom container responsive breakpoints to state.
273
+ * @param {*} breakpoint
274
+ * @param {*} value
275
+ */
276
+ setDomContainerResponsiveBreakpoints(breakpoint: string, value: boolean): void;
277
+ /**
278
+ * Refreshes the {@link View.data data} for {@link rows} by calling {@link ApiContext.fetchRowsData fetchRowsData} api.
279
+ * It also calls {@link utilMethods.forceUpdate forceUpdate } to trigger state change for re-rendering.
280
+ * @param rows
281
+ * @returns
282
+ */
283
+ refreshRows(rows?: string[]): Promise<void>;
284
+ /**
285
+ * Select/Deselect all rows(all pages in case of paginated data) by calling {@link ApiContext.setSelectedRows setSelectedRows}/ {@link ApiContext.clearSelectedRows clearSelectedRows} api.
286
+ * It also updates the selected rows received from {@link ApiContext.getSelectedRows getSelectedRows} api in {@link State.selectedRows selectedRows} state slice.
287
+ * @param isSelected
288
+ */
289
+ selectAllRows(isSelected: boolean): Promise<void>;
290
+ /**
291
+ * Triggers {@link ApiContext.importCSVData importCSVData} api.
292
+ * @param create
293
+ * @returns
294
+ */
295
+ importCSVData(create: ModalManagerContextValue["create"]): Promise<void> | undefined;
296
+ /**
297
+ * Triggers {@link ApiContext.exportData exportData} api.
298
+ * @returns
299
+ */
300
+ exportToExcel(): Promise<void> | undefined;
301
+ /**
302
+ * Triggers {@link ApiContext.exportDataToCSV exportDataToCSV} api.
303
+ * @returns
304
+ */
305
+ exportToCSV(): Promise<void> | undefined;
306
+ /**
307
+ * Updates the visibility of columns by modifying {@link State.hiddenColumns}.
308
+ * @param columns - An object mapping column IDs to their visibility status. `true` indicates the column is visible, and `false` means it is hidden.
309
+ */
310
+ updateColumnsVisibility(columns: {
311
+ [key: FieldDef["id"]]: boolean;
312
+ }): void;
313
+ setConditionalStyleFormats(conditionalStyleFormats: NonNullable<State["conditionalStyleFormats"]>): void;
314
+ };
315
+ export type UtilityFunctions = ReturnType<typeof viewUtilityMethods>;
316
+ //# sourceMappingURL=viewUtilityMethods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewUtilityMethods.d.ts","sourceRoot":"","sources":["../../../../src/core/generators/viewUtilityMethods.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