@pega/react-sdk-components 23.1.12 → 24.2.10

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 (432) hide show
  1. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  2. package/lib/bridge/react_pconnect.js +137 -140
  3. package/lib/bridge/react_pconnect.js.map +1 -1
  4. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +1 -2
  5. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  6. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +1 -1
  7. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  8. package/lib/components/designSystemExtension/Banner/Banner.d.ts +1 -2
  9. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  10. package/lib/components/designSystemExtension/Banner/Banner.js +1 -1
  11. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  12. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  13. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -2
  14. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  15. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +13 -13
  16. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  17. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -2
  18. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  19. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +4 -4
  20. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  21. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  22. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  23. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +4 -4
  24. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  25. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -2
  26. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  27. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -4
  28. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  29. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +1 -2
  30. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +5 -5
  32. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  33. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -2
  34. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/Operator/Operator.js +6 -6
  36. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  37. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  38. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/Pulse/Pulse.js +2 -2
  40. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  41. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  42. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +3 -2
  43. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  44. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -2
  45. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  46. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +1 -1
  47. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  48. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -2
  49. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  50. package/lib/components/field/AutoComplete/AutoComplete.js +4 -4
  51. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  52. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -2
  53. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  54. package/lib/components/field/CancelAlert/CancelAlert.js +4 -2
  55. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  56. package/lib/components/field/Checkbox/Checkbox.d.ts +1 -2
  57. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  58. package/lib/components/field/Checkbox/Checkbox.js +4 -4
  59. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  60. package/lib/components/field/Currency/Currency.d.ts +2 -2
  61. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  62. package/lib/components/field/Currency/Currency.js +20 -9
  63. package/lib/components/field/Currency/Currency.js.map +1 -1
  64. package/lib/components/field/Date/Date.d.ts +1 -2
  65. package/lib/components/field/Date/Date.d.ts.map +1 -1
  66. package/lib/components/field/Date/Date.js +18 -9
  67. package/lib/components/field/Date/Date.js.map +1 -1
  68. package/lib/components/field/DateTime/DateTime.d.ts +1 -2
  69. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  70. package/lib/components/field/DateTime/DateTime.js +30 -8
  71. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  72. package/lib/components/field/Decimal/Decimal.d.ts +2 -3
  73. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  74. package/lib/components/field/Decimal/Decimal.js +18 -6
  75. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  76. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -2
  77. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  78. package/lib/components/field/Dropdown/Dropdown.js +3 -3
  79. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  80. package/lib/components/field/Email/Email.d.ts +1 -2
  81. package/lib/components/field/Email/Email.d.ts.map +1 -1
  82. package/lib/components/field/Email/Email.js +21 -5
  83. package/lib/components/field/Email/Email.js.map +1 -1
  84. package/lib/components/field/Group/Group.d.ts +1 -1
  85. package/lib/components/field/Group/Group.d.ts.map +1 -1
  86. package/lib/components/field/Group/Group.js +2 -2
  87. package/lib/components/field/Group/Group.js.map +1 -1
  88. package/lib/components/field/Integer/Integer.d.ts +1 -2
  89. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  90. package/lib/components/field/Integer/Integer.js +17 -6
  91. package/lib/components/field/Integer/Integer.js.map +1 -1
  92. package/lib/components/field/Multiselect/Multiselect.d.ts +2 -0
  93. package/lib/components/field/Multiselect/Multiselect.d.ts.map +1 -0
  94. package/lib/components/field/{MultiSelect → Multiselect}/Multiselect.js +12 -8
  95. package/lib/components/field/Multiselect/Multiselect.js.map +1 -0
  96. package/lib/components/field/Multiselect/index.d.ts.map +1 -0
  97. package/lib/components/field/{MultiSelect → Multiselect}/index.js.map +1 -1
  98. package/lib/components/field/{MultiSelect → Multiselect}/utils.d.ts.map +1 -1
  99. package/lib/components/field/{MultiSelect → Multiselect}/utils.js.map +1 -1
  100. package/lib/components/field/Percentage/Percentage.d.ts +3 -2
  101. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  102. package/lib/components/field/Percentage/Percentage.js +18 -9
  103. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  104. package/lib/components/field/Phone/Phone.d.ts +1 -2
  105. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  106. package/lib/components/field/Phone/Phone.js +16 -10
  107. package/lib/components/field/Phone/Phone.js.map +1 -1
  108. package/lib/components/field/RadioButtons/RadioButtons.d.ts +1 -2
  109. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  110. package/lib/components/field/RadioButtons/RadioButtons.js +3 -3
  111. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  112. package/lib/components/field/RichText/RichText.js +1 -1
  113. package/lib/components/field/RichText/RichText.js.map +1 -1
  114. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -2
  115. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  116. package/lib/components/field/ScalarList/ScalarList.js +4 -2
  117. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  118. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -2
  119. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  120. package/lib/components/field/SemanticLink/SemanticLink.js +4 -4
  121. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  122. package/lib/components/field/TextArea/TextArea.d.ts +1 -2
  123. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  124. package/lib/components/field/TextArea/TextArea.js +20 -4
  125. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  126. package/lib/components/field/TextContent/TextContent.d.ts +1 -2
  127. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  128. package/lib/components/field/TextContent/TextContent.js +1 -1
  129. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  130. package/lib/components/field/TextInput/TextInput.d.ts +1 -2
  131. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  132. package/lib/components/field/TextInput/TextInput.js +2 -2
  133. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  134. package/lib/components/field/Time/Time.d.ts +1 -2
  135. package/lib/components/field/Time/Time.d.ts.map +1 -1
  136. package/lib/components/field/Time/Time.js +30 -7
  137. package/lib/components/field/Time/Time.js.map +1 -1
  138. package/lib/components/field/URL/URL.d.ts +1 -2
  139. package/lib/components/field/URL/URL.d.ts.map +1 -1
  140. package/lib/components/field/URL/URL.js +19 -4
  141. package/lib/components/field/URL/URL.js.map +1 -1
  142. package/lib/components/field/UserReference/UserReference.d.ts +1 -0
  143. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  144. package/lib/components/field/UserReference/UserReference.js +9 -2
  145. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  146. package/lib/components/helpers/common-utils.d.ts +0 -1
  147. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  148. package/lib/components/helpers/common-utils.js +1 -4
  149. package/lib/components/helpers/common-utils.js.map +1 -1
  150. package/lib/components/helpers/field-group-utils.js +2 -2
  151. package/lib/components/helpers/field-group-utils.js.map +1 -1
  152. package/lib/components/helpers/formatters/common.d.ts +2 -2
  153. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  154. package/lib/components/helpers/simpleTableHelpers.js +1 -1
  155. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  156. package/lib/components/helpers/state-utils.d.ts +1 -2
  157. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  158. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +1 -2
  159. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  160. package/lib/components/infra/ActionButtons/ActionButtons.js +3 -3
  161. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  162. package/lib/components/infra/Assignment/Assignment.d.ts +1 -1
  163. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  164. package/lib/components/infra/Assignment/Assignment.js +30 -6
  165. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  166. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +1 -1
  167. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  168. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +2 -2
  169. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  170. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +9 -7
  171. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  172. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -2
  173. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  174. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +7 -4
  175. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  176. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -2
  177. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  178. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +7 -7
  179. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  180. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +3 -3
  181. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  182. package/lib/components/infra/Containers/SimpleView/helper.d.ts +3 -3
  183. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -2
  184. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  185. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +1 -1
  186. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  187. package/lib/components/infra/Containers/helpers.d.ts +1 -1
  188. package/lib/components/infra/Containers/helpers.d.ts.map +1 -1
  189. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +1 -1
  190. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  191. package/lib/components/infra/DashboardFilter/DashboardFilter.js +2 -2
  192. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  193. package/lib/components/infra/DashboardFilter/filterUtils.d.ts +1 -2
  194. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  195. package/lib/components/infra/DashboardFilter/filterUtils.js +2 -2
  196. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  197. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  198. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -4
  199. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  200. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -2
  201. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  202. package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
  203. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  204. package/lib/components/infra/MultiStep/MultiStep.js +11 -6
  205. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  206. package/lib/components/infra/NavBar/NavBar.css +1 -0
  207. package/lib/components/infra/NavBar/NavBar.d.ts +1 -2
  208. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  209. package/lib/components/infra/NavBar/NavBar.js +24 -16
  210. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  211. package/lib/components/infra/Reference/Reference.d.ts +1 -2
  212. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  213. package/lib/components/infra/Region/Region.d.ts +1 -1
  214. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  215. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  216. package/lib/components/infra/RootContainer/RootContainer.js +5 -6
  217. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  218. package/lib/components/infra/Stages/Stages.d.ts +1 -2
  219. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  220. package/lib/components/infra/Stages/Stages.js +4 -4
  221. package/lib/components/infra/Stages/Stages.js.map +1 -1
  222. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  223. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +4 -3
  224. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  225. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -2
  226. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  227. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +2 -2
  228. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  229. package/lib/components/infra/View/View.d.ts +2 -1
  230. package/lib/components/infra/View/View.d.ts.map +1 -1
  231. package/lib/components/infra/View/View.js +32 -2
  232. package/lib/components/infra/View/View.js.map +1 -1
  233. package/lib/components/template/AppShell/AppShell.d.ts +3 -1
  234. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  235. package/lib/components/template/AppShell/AppShell.js +29 -6
  236. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  237. package/lib/components/template/BannerPage/BannerPage.d.ts +1 -1
  238. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  239. package/lib/components/template/CaseSummary/CaseSummary.d.ts +1 -1
  240. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  241. package/lib/components/template/CaseView/CaseView.d.ts +1 -1
  242. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  243. package/lib/components/template/CaseView/CaseView.js +7 -7
  244. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  245. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -2
  246. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  247. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +7 -7
  248. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  249. package/lib/components/template/Confirmation/Confirmation.d.ts +1 -1
  250. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  251. package/lib/components/template/Confirmation/Confirmation.js +2 -1
  252. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  253. package/lib/components/template/DataReference/DataReference.d.ts +1 -1
  254. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  255. package/lib/components/template/DataReference/DataReference.js +3 -3
  256. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  257. package/lib/components/template/DefaultForm/DefaultForm.d.ts +1 -1
  258. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  259. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  260. package/lib/components/template/DefaultForm/utils/index.js +2 -6
  261. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  262. package/lib/components/template/Details/Details/Details.d.ts +1 -2
  263. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  264. package/lib/components/template/Details/Details/Details.js +3 -3
  265. package/lib/components/template/Details/Details/Details.js.map +1 -1
  266. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +1 -1
  267. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  268. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +3 -3
  269. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  270. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -2
  271. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  272. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +3 -3
  273. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  274. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -2
  275. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  276. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +3 -3
  277. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  278. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -2
  279. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  280. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +4 -3
  281. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  282. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -2
  283. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  284. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +11 -3
  285. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  286. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +1 -1
  287. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  288. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  289. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  290. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +1 -1
  291. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  292. package/lib/components/template/ListPage/ListPage.d.ts +1 -2
  293. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  294. package/lib/components/template/ListView/ListView.d.ts +1 -2
  295. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  296. package/lib/components/template/ListView/ListView.js +62 -67
  297. package/lib/components/template/ListView/ListView.js.map +1 -1
  298. package/lib/components/template/ListView/utils.js +1 -1
  299. package/lib/components/template/ListView/utils.js.map +1 -1
  300. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -2
  301. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  302. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +1 -1
  303. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  304. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +1 -1
  305. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  306. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -2
  307. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  308. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +3 -3
  309. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  310. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +1 -1
  311. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  312. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +1 -1
  313. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  314. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +1 -1
  315. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  316. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  317. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  318. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -2
  319. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  320. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +1 -1
  321. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  322. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -2
  323. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  324. package/lib/components/template/PromotedFilters/PromotedFilters.js +2 -1
  325. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  326. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -2
  327. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  328. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +1 -1
  329. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  330. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +36 -24
  331. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  332. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -2
  333. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  334. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -2
  335. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  336. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +1 -1
  337. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  338. package/lib/components/template/SubTabs/SubTabs.d.ts +1 -1
  339. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  340. package/lib/components/template/SubTabs/SubTabs.js +2 -2
  341. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  342. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +1 -1
  343. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  344. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -2
  345. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  346. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -2
  347. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  348. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +1 -1
  349. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  350. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -2
  351. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  352. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +1 -1
  353. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  354. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -2
  355. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  356. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +3 -3
  357. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  358. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +1 -1
  359. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  360. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +1 -1
  361. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  362. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -2
  363. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  364. package/lib/components/template/WssNavBar/WssNavBar.js +9 -9
  365. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  366. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -2
  367. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  368. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +2 -2
  369. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  370. package/lib/components/widget/Attachment/Attachment.d.ts +1 -2
  371. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  372. package/lib/components/widget/Attachment/Attachment.js +8 -5
  373. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  374. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -2
  375. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  376. package/lib/components/widget/CaseHistory/CaseHistory.js +8 -7
  377. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  378. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -2
  379. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  380. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  381. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  382. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -2
  383. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  384. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +4 -4
  385. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  386. package/lib/components/widget/Followers/Followers.d.ts +1 -1
  387. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  388. package/lib/components/widget/Followers/Followers.js +2 -2
  389. package/lib/components/widget/Followers/Followers.js.map +1 -1
  390. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -2
  391. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  392. package/lib/components/widget/QuickCreate/QuickCreate.js +1 -0
  393. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  394. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -2
  395. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  396. package/lib/components/widget/SummaryItem/SummaryItem.js +3 -3
  397. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  398. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -2
  399. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  400. package/lib/components/widget/ToDo/ToDo.d.ts +1 -2
  401. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  402. package/lib/components/widget/ToDo/ToDo.js +59 -16
  403. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  404. package/lib/doc/KeyReleaseUpdates.md +19 -7
  405. package/lib/hooks/index.d.ts +2 -0
  406. package/lib/hooks/index.d.ts.map +1 -1
  407. package/lib/hooks/index.js +2 -0
  408. package/lib/hooks/index.js.map +1 -1
  409. package/lib/hooks/useFocusFirstField.d.ts +7 -0
  410. package/lib/hooks/useFocusFirstField.d.ts.map +1 -0
  411. package/lib/hooks/useFocusFirstField.js +20 -0
  412. package/lib/hooks/useFocusFirstField.js.map +1 -0
  413. package/lib/hooks/useScrolltoTop.d.ts +7 -0
  414. package/lib/hooks/useScrolltoTop.d.ts.map +1 -0
  415. package/lib/hooks/useScrolltoTop.js +13 -0
  416. package/lib/hooks/useScrolltoTop.js.map +1 -0
  417. package/lib/sdk-pega-component-map.d.ts +1 -1
  418. package/lib/sdk-pega-component-map.js +1 -1
  419. package/lib/sdk-pega-component-map.js.map +1 -1
  420. package/lib/theme.d.ts +11 -0
  421. package/lib/theme.d.ts.map +1 -0
  422. package/lib/theme.js +31 -0
  423. package/lib/theme.js.map +1 -0
  424. package/package.json +1 -1
  425. package/lib/components/field/MultiSelect/Multiselect.d.ts +0 -3
  426. package/lib/components/field/MultiSelect/Multiselect.d.ts.map +0 -1
  427. package/lib/components/field/MultiSelect/Multiselect.js.map +0 -1
  428. package/lib/components/field/MultiSelect/index.d.ts.map +0 -1
  429. /package/lib/components/field/{MultiSelect → Multiselect}/index.d.ts +0 -0
  430. /package/lib/components/field/{MultiSelect → Multiselect}/index.js +0 -0
  431. /package/lib/components/field/{MultiSelect → Multiselect}/utils.d.ts +0 -0
  432. /package/lib/components/field/{MultiSelect → Multiselect}/utils.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupTemplate.js","sourceRoot":"","sources":["../../../../src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAehF,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAA8B;IACvE,8EAA8E;IAC9E,MAAM,UAAU,GAAG,mBAAmB,CAAC,YAAY,CA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AAoB,CAAC,CAAC,CAAC,SAAS,GACnE,CACH,CAAC;KACH;IAED,KAAK,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IACrD,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,EAAE;QACxC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACvC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,mBAAmB,KAAK,EAAE,CAAC;YACxD,OAAO,CACL,KAAC,UAAU,IAAW,IAAI,EAAE,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,KAAK,GAAG,CAAC,EAAE,YACtH,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,oBAAoB,CAAC,IAD/B,GAAG,CAEP,CACd,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,wBAAM,oBAAoB,GAAO,CAAC;AAC3C,CAAC","sourcesContent":["/* eslint-disable react-hooks/rules-of-hooks */\nimport { useMemo } from 'react';\n\nimport { getReferenceList, buildView } from '../../helpers/field-group-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface FieldGroupTemplateProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n referenceList?: any[];\n contextClass: string;\n renderMode?: string;\n heading?: string;\n lookForChildInConfig?: boolean;\n displayMode?: string;\n fieldHeader?: string;\n allowTableEdit: boolean;\n}\n\nexport default function FieldGroupTemplate(props: FieldGroupTemplateProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldGroup = getComponentFromMap('FieldGroup');\n const FieldGroupList = getComponentFromMap('FieldGroupList');\n\n const {\n referenceList = [],\n renderMode,\n contextClass,\n getPConnect,\n lookForChildInConfig,\n heading = '',\n displayMode,\n fieldHeader,\n allowTableEdit: allowAddEdit\n } = props;\n const pConn = getPConnect();\n const resolvedList = getReferenceList(pConn);\n pConn.setReferenceList(resolvedList);\n const pageReference = `${pConn.getPageReference()}${resolvedList}`;\n const isReadonlyMode = renderMode === 'ReadOnly' || displayMode === 'LABELS_LEFT';\n const HEADING = heading ?? 'Row';\n\n const getDynamicHeaderProp = (item, index) => {\n if (fieldHeader === 'propertyRef' && heading && item[heading.substring(1)]) {\n return item[heading.substring(1)];\n }\n return `Row ${index + 1}`;\n };\n\n const addRecord = () => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().insert({ classID: contextClass }, referenceList.length, pageReference);\n } else {\n pConn.getListActions().insert({}, referenceList.length);\n }\n };\n\n if (!isReadonlyMode) {\n const addFieldGroupItem = () => {\n addRecord();\n };\n const deleteFieldGroupItem = index => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().deleteEntry(index, pageReference);\n } else {\n pConn.getListActions().deleteEntry(index);\n }\n };\n if (referenceList.length === 0 && allowAddEdit !== false) {\n addFieldGroupItem();\n }\n\n const MemoisedChildren = useMemo(() => {\n return referenceList.map((item, index) => ({\n id: index,\n name: fieldHeader === 'propertyRef' ? getDynamicHeaderProp(item, index) : `${HEADING} ${index + 1}`,\n children: buildView(pConn, index, lookForChildInConfig)\n }));\n }, [referenceList?.length]);\n\n return (\n <FieldGroupList\n items={MemoisedChildren}\n onAdd={allowAddEdit !== false ? addFieldGroupItem : undefined}\n onDelete={allowAddEdit !== false ? deleteFieldGroupItem : undefined}\n />\n );\n }\n\n pConn.setInheritedProp('displayMode', 'LABELS_LEFT');\n const memoisedReadOnlyList = useMemo(() => {\n return referenceList.map((item, index) => {\n const key = item[heading] || `field-group-row-${index}`;\n return (\n <FieldGroup key={key} name={fieldHeader === 'propertyRef' ? getDynamicHeaderProp(item, index) : `${HEADING} ${index + 1}`}>\n {buildView(pConn, index, lookForChildInConfig)}\n </FieldGroup>\n );\n });\n }, []);\n\n return <div>{memoisedReadOnlyList}</div>;\n}\n"]}
1
+ {"version":3,"file":"FieldGroupTemplate.js","sourceRoot":"","sources":["../../../../src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAehF,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAA8B;IACvE,8EAA8E;IAC9E,MAAM,UAAU,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACrD,MAAM,cAAc,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAE7D,MAAM,EACJ,aAAa,GAAG,EAAE,EAClB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EAAE,YAAY,EAC7B,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,YAAY,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACrC,MAAM,aAAa,GAAG,GAAG,KAAK,CAAC,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAC;IACnE,MAAM,cAAc,GAAG,UAAU,KAAK,UAAU,IAAI,WAAW,KAAK,cAAc,CAAC;IACnF,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,CAAC;IAEjC,eAAe,CAAC,GAAG,EAAE;QACnB,IAAI,CAAC,cAAc,EAAE;YACnB,+CAA+C;YAC/C,KAAK,CAAC,cAAc,EAAE,CAAC,2BAA2B,CAAC,YAAY,CAAC,CAAC;SAClE;IACH,CAAC,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K,EAAE,KAAK,EAAE,oBAAoB,CAAC,IAD/B,GAAG,CAEP,CACd,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,wBAAM,oBAAoB,GAAO,CAAC;AAC3C,CAAC","sourcesContent":["/* eslint-disable react-hooks/rules-of-hooks */\nimport { useLayoutEffect, useMemo } from 'react';\n\nimport { getReferenceList, buildView } from '../../helpers/field-group-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface FieldGroupTemplateProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n referenceList?: any[];\n contextClass: string;\n renderMode?: string;\n heading?: string;\n lookForChildInConfig?: boolean;\n displayMode?: string;\n fieldHeader?: string;\n allowTableEdit: boolean;\n}\n\nexport default function FieldGroupTemplate(props: FieldGroupTemplateProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldGroup = getComponentFromMap('FieldGroup');\n const FieldGroupList = getComponentFromMap('FieldGroupList');\n\n const {\n referenceList = [],\n renderMode,\n contextClass,\n getPConnect,\n lookForChildInConfig,\n heading = '',\n displayMode,\n fieldHeader,\n allowTableEdit: allowAddEdit\n } = props;\n const pConn = getPConnect();\n const resolvedList = getReferenceList(pConn);\n pConn.setReferenceList(resolvedList);\n const pageReference = `${pConn.getPageReference()}${resolvedList}`;\n const isReadonlyMode = renderMode === 'ReadOnly' || displayMode === 'DISPLAY_ONLY';\n const HEADING = heading ?? 'Row';\n\n useLayoutEffect(() => {\n if (!isReadonlyMode) {\n // @ts-ignore - Expected 3 arguments, but got 1\n pConn.getListActions().initDefaultPageInstructions(resolvedList);\n }\n }, [referenceList?.length]);\n\n const getDynamicHeaderProp = (item, index) => {\n if (fieldHeader === 'propertyRef' && heading && item[heading.substring(1)]) {\n return item[heading.substring(1)];\n }\n return `Row ${index + 1}`;\n };\n\n const addRecord = () => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().insert({ classID: contextClass }, referenceList.length, pageReference);\n } else {\n // @ts-ignore - An argument for 'pageRef' was not provided.\n pConn.getListActions().insert({}, referenceList.length);\n }\n };\n\n if (!isReadonlyMode) {\n const addFieldGroupItem = () => {\n addRecord();\n };\n const deleteFieldGroupItem = index => {\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n pConn.getListActions().deleteEntry(index, pageReference);\n } else {\n // @ts-ignore - An argument for 'pageRef' was not provided.\n pConn.getListActions().deleteEntry(index);\n }\n };\n if (referenceList.length === 0 && allowAddEdit !== false) {\n addFieldGroupItem();\n }\n\n const MemoisedChildren = useMemo(() => {\n return referenceList.map((item, index) => ({\n id: index,\n name: fieldHeader === 'propertyRef' ? getDynamicHeaderProp(item, index) : `${HEADING} ${index + 1}`,\n children: buildView(pConn, index, lookForChildInConfig)\n }));\n }, [referenceList?.length]);\n\n return (\n <FieldGroupList\n items={MemoisedChildren}\n onAdd={allowAddEdit !== false ? addFieldGroupItem : undefined}\n onDelete={allowAddEdit !== false ? deleteFieldGroupItem : undefined}\n />\n );\n }\n\n pConn.setInheritedProp('displayMode', 'DISPLAY_ONLY');\n const memoisedReadOnlyList = useMemo(() => {\n return referenceList.map((item, index) => {\n const key = item[heading] || `field-group-row-${index}`;\n return (\n <FieldGroup key={key} name={fieldHeader === 'propertyRef' ? getDynamicHeaderProp(item, index) : `${HEADING} ${index + 1}`}>\n {buildView(pConn, index, lookForChildInConfig)}\n </FieldGroup>\n );\n });\n }, []);\n\n return <div>{memoisedReadOnlyList}</div>;\n}\n"]}
@@ -4,6 +4,6 @@ interface InlineDashboardProps extends PConnProps {
4
4
  title: string;
5
5
  filterPosition?: string;
6
6
  }
7
- export default function InlineDashboard(props: PropsWithChildren<InlineDashboardProps>): JSX.Element;
7
+ export default function InlineDashboard(props: PropsWithChildren<InlineDashboardProps>): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=InlineDashboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgB,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,oBAAqB,SAAQ,UAAU;IAE/C,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA6BD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,eAmCrF"}
1
+ {"version":3,"file":"InlineDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgB,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,oBAAqB,SAAQ,UAAU;IAE/C,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA6BD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,2CAmCrF"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Grid, Typography } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
2
+ import { Grid, Typography } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
4
  const useStyles = makeStyles(( /* theme */) => ({
5
5
  headerStyles: {
6
6
  fontWeight: 500,
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboard.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,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AAE,SAAS,EAAE,OAAO,CAAC,SAAS,YAC5C,gBAAgB,CAAC,CAAC,CAAC,GACf,EACP,KAAC,IAAI,IAAC,EAAE,EAAC,SAAS,EAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,qBAAqB,YACrE,gBAAgB,CAAC,CAAC,CAAC,GACf,IACF,CACR,EACA,cAAc,KAAK,aAAa,IAAI,CACnC,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,eAAe,aAClF,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACb,gBAAgB,CAAC,CAAC,CAAC,GACf,EACP,KAAC,IAAI,IAAC,EAAE,EAAC,SAAS,EAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,YAAY,YAC3D,gBAAgB,CAAC,CAAC,CAAC,GACf,IACF,CACR,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, ReactElement } from 'react';\nimport { Grid, Typography } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface InlineDashboardProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n title: string;\n filterPosition?: string;\n}\n\nconst useStyles = makeStyles((/* theme */) => ({\n headerStyles: {\n fontWeight: 500,\n fontSize: '1.25rem'\n },\n containerStyles: {\n marginTop: '1rem',\n marginBottom: '1rem'\n },\n colStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline'\n },\n filterContainerStyles: {\n display: 'grid',\n gap: '1rem',\n gridTemplateColumns: 'repeat(7, 1fr);'\n },\n inlineStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline',\n marginTop: '1rem'\n }\n}));\n\nexport default function InlineDashboard(props: PropsWithChildren<InlineDashboardProps>) {\n const classes = useStyles();\n\n const { children, title, filterPosition } = props;\n const childrenToRender = children as ReactElement[];\n\n const direction = filterPosition === 'inline-start' ? 'row-reverse' : 'row';\n return (\n <>\n <Typography variant='h4' className={classes.headerStyles}>\n {title}\n </Typography>\n\n {filterPosition === 'block-start' && (\n <Grid container spacing={2} direction='column-reverse' className={classes.containerStyles}>\n <Grid item xs={12} className={classes.colStyles}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={12} className={classes.filterContainerStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n {filterPosition !== 'block-start' && (\n <Grid container spacing={2} direction={direction} className={classes.containerStyles}>\n <Grid item xs={9}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={3} className={classes.inlineStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"InlineDashboard.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAShD,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,YAAY,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,SAAS;KACpB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;IACD,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,mBAAmB,EAAE,iBAAiB;KACvC;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;QACxB,SAAS,EAAE,MA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AY,YAC3D,gBAAgB,CAAC,CAAC,CAAC,GACf,IACF,CACR,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, ReactElement } from 'react';\nimport { Grid, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface InlineDashboardProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n title: string;\n filterPosition?: string;\n}\n\nconst useStyles = makeStyles((/* theme */) => ({\n headerStyles: {\n fontWeight: 500,\n fontSize: '1.25rem'\n },\n containerStyles: {\n marginTop: '1rem',\n marginBottom: '1rem'\n },\n colStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline'\n },\n filterContainerStyles: {\n display: 'grid',\n gap: '1rem',\n gridTemplateColumns: 'repeat(7, 1fr);'\n },\n inlineStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline',\n marginTop: '1rem'\n }\n}));\n\nexport default function InlineDashboard(props: PropsWithChildren<InlineDashboardProps>) {\n const classes = useStyles();\n\n const { children, title, filterPosition } = props;\n const childrenToRender = children as ReactElement[];\n\n const direction = filterPosition === 'inline-start' ? 'row-reverse' : 'row';\n return (\n <>\n <Typography variant='h4' className={classes.headerStyles}>\n {title}\n </Typography>\n\n {filterPosition === 'block-start' && (\n <Grid container spacing={2} direction='column-reverse' className={classes.containerStyles}>\n <Grid item xs={12} className={classes.colStyles}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={12} className={classes.filterContainerStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n {filterPosition !== 'block-start' && (\n <Grid container spacing={2} direction={direction} className={classes.containerStyles}>\n <Grid item xs={9}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={3} className={classes.inlineStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n"]}
@@ -5,6 +5,6 @@ interface InlineDashboardPageProps extends PConnProps {
5
5
  icon?: string;
6
6
  filterPosition?: string;
7
7
  }
8
- export default function InlineDashboardPage(props: PropsWithChildren<InlineDashboardPageProps>): JSX.Element;
8
+ export default function InlineDashboardPage(props: PropsWithChildren<InlineDashboardPageProps>): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
10
10
  //# sourceMappingURL=InlineDashboardPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboardPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboardPage/InlineDashboardPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIlF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,wBAAyB,SAAQ,UAAU;IAEnD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,CAAC,wBAAwB,CAAC,eAyB7F"}
1
+ {"version":3,"file":"InlineDashboardPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboardPage/InlineDashboardPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIlF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,wBAAyB,SAAQ,UAAU;IAEnD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,CAAC,wBAAwB,CAAC,2CAyB7F"}
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { PConnProps } from '../../../types/PConnProps';
3
2
  interface ListPageProps extends PConnProps {
4
3
  parameters: object;
5
4
  }
6
- export default function ListPage(props: ListPageProps): JSX.Element;
5
+ export default function ListPage(props: ListPageProps): import("react/jsx-runtime").JSX.Element;
7
6
  export {};
8
7
  //# sourceMappingURL=ListPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListPage/ListPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,aAAc,SAAQ,UAAU;IAExC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,eAOpD"}
1
+ {"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListPage/ListPage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,aAAc,SAAQ,UAAU;IAExC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAOpD"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './ListView.css';
3
2
  import { PConnProps } from '../../../types/PConnProps';
4
3
  interface ListViewProps extends PConnProps {
@@ -14,6 +13,6 @@ interface ListViewProps extends PConnProps {
14
13
  readonlyContextList?: any;
15
14
  value: any;
16
15
  }
17
- export default function ListView(props: ListViewProps): JSX.Element;
16
+ export default function ListView(props: ListViewProps): import("react/jsx-runtime").JSX.Element;
18
17
  export {};
19
18
  //# sourceMappingURL=ListView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListView/ListView.tsx"],"names":[],"mappings":";AAwCA,OAAO,gBAAgB,CAAC;AAMxB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,aAAc,SAAQ,UAAU;IAExC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;CACZ;AAeD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,eAypCpD"}
1
+ {"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListView/ListView.tsx"],"names":[],"mappings":"AA0CA,OAAO,gBAAgB,CAAC;AAMxB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,aAAc,SAAQ,UAAU;IAExC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;CACZ;AAcD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAqpCpD"}
@@ -3,37 +3,38 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
3
3
  /* eslint-disable @typescript-eslint/no-use-before-define */
4
4
  /* eslint-disable @typescript-eslint/no-shadow */
5
5
  import { useState, useEffect, useRef } from 'react';
6
- import { createStyles, makeStyles } from '@material-ui/core/styles';
7
- import Table from '@material-ui/core/Table';
8
- import TableBody from '@material-ui/core/TableBody';
9
- import TableCell from '@material-ui/core/TableCell';
10
- import TableContainer from '@material-ui/core/TableContainer';
11
- import TableHead from '@material-ui/core/TableHead';
12
- import TablePagination from '@material-ui/core/TablePagination';
13
- import TableRow from '@material-ui/core/TableRow';
14
- import TableSortLabel from '@material-ui/core/TableSortLabel';
15
- import Paper from '@material-ui/core/Paper';
16
- import MoreIcon from '@material-ui/icons/MoreVert';
17
- import FilterListIcon from '@material-ui/icons/FilterList';
18
- import SubjectIcon from '@material-ui/icons/Subject';
19
- import SearchIcon from '@material-ui/icons/Search';
20
- import TextField from '@material-ui/core/TextField';
21
- import Grid from '@material-ui/core/Grid';
22
- import Menu from '@material-ui/core/Menu';
23
- import MenuItem from '@material-ui/core/MenuItem';
24
- import Dialog from '@material-ui/core/Dialog';
25
- import DialogActions from '@material-ui/core/DialogActions';
26
- import DialogContent from '@material-ui/core/DialogContent';
27
- import DialogTitle from '@material-ui/core/DialogTitle';
28
- import Select from '@material-ui/core/Select';
29
- import Button from '@material-ui/core/Button';
30
- import Link from '@material-ui/core/Link';
31
- import Typography from '@material-ui/core/Typography';
32
- import Snackbar from '@material-ui/core/Snackbar';
33
- import IconButton from '@material-ui/core/IconButton';
34
- import CloseIcon from '@material-ui/icons/Close';
35
- import { Radio } from '@material-ui/core';
36
- import Checkbox from '@material-ui/core/Checkbox';
6
+ import createStyles from '@mui/styles/createStyles';
7
+ import makeStyles from '@mui/styles/makeStyles';
8
+ import Table from '@mui/material/Table';
9
+ import TableBody from '@mui/material/TableBody';
10
+ import TableCell from '@mui/material/TableCell';
11
+ import TableContainer from '@mui/material/TableContainer';
12
+ import TableHead from '@mui/material/TableHead';
13
+ import TablePagination from '@mui/material/TablePagination';
14
+ import TableRow from '@mui/material/TableRow';
15
+ import TableSortLabel from '@mui/material/TableSortLabel';
16
+ import Paper from '@mui/material/Paper';
17
+ import MoreIcon from '@mui/icons-material/MoreVert';
18
+ import FilterListIcon from '@mui/icons-material/FilterList';
19
+ import SubjectIcon from '@mui/icons-material/Subject';
20
+ import SearchIcon from '@mui/icons-material/Search';
21
+ import TextField from '@mui/material/TextField';
22
+ import Grid from '@mui/material/Grid';
23
+ import Menu from '@mui/material/Menu';
24
+ import MenuItem from '@mui/material/MenuItem';
25
+ import Dialog from '@mui/material/Dialog';
26
+ import DialogActions from '@mui/material/DialogActions';
27
+ import DialogContent from '@mui/material/DialogContent';
28
+ import DialogTitle from '@mui/material/DialogTitle';
29
+ import Select from '@mui/material/Select';
30
+ import Button from '@mui/material/Button';
31
+ import Link from '@mui/material/Link';
32
+ import Typography from '@mui/material/Typography';
33
+ import Snackbar from '@mui/material/Snackbar';
34
+ import IconButton from '@mui/material/IconButton';
35
+ import CloseIcon from '@mui/icons-material/Close';
36
+ import { Radio } from '@mui/material';
37
+ import Checkbox from '@mui/material/Checkbox';
37
38
  import { filterData } from '../../helpers/simpleTableHelpers';
38
39
  import './ListView.css';
39
40
  import { getDateFormatInfo } from '../../helpers/date-format-utils';
@@ -42,7 +43,6 @@ import { format } from '../../helpers/formatters';
42
43
  import useInit from './hooks';
43
44
  const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
44
45
  let myRows;
45
- let myDisplayColumnList;
46
46
  let menuColumnId = '';
47
47
  let menuColumnType = '';
48
48
  let menuColumnLabel = '';
@@ -77,6 +77,7 @@ export default function ListView(props) {
77
77
  /** If compositeKeys is defined, use dynamic value, else fallback to pyID or pyGUID. */
78
78
  const rowID = compositeKeys && compositeKeys?.length === 1 ? compositeKeys[0] : defRowID;
79
79
  const [arRows, setRows] = useState([]);
80
+ const [rowsData, setRowsData] = useState([]);
80
81
  const [arColumns, setColumns] = useState([]);
81
82
  const [response, setResponse] = useState([]);
82
83
  const [order, setOrder] = useState('asc');
@@ -223,13 +224,6 @@ export default function ListView(props) {
223
224
  return data;
224
225
  });
225
226
  }
226
- function getMyColumnList(arCols) {
227
- const myColList = [];
228
- arCols.forEach(col => {
229
- myColList.push(col.id);
230
- });
231
- return myColList;
232
- }
233
227
  /** Will return field from a filter expression */
234
228
  function getFieldFromFilter(filter, dateRange = false) {
235
229
  let fieldValue;
@@ -444,7 +438,7 @@ export default function ListView(props) {
444
438
  const usingDataResults = getUsingData(tableDataResults);
445
439
  // store globally, so can be searched, filtered, etc.
446
440
  myRows = usingDataResults;
447
- myDisplayColumnList = getMyColumnList(myColumns);
441
+ setRowsData(myRows);
448
442
  // At this point, if we have data ready to render and haven't been asked
449
443
  // to NOT call setRows and setColumns, call them
450
444
  if (bCallSetRowsColumns) {
@@ -480,30 +474,28 @@ export default function ListView(props) {
480
474
  }
481
475
  }, [listContext]);
482
476
  function searchFilter(value, rows) {
477
+ const cols = arColumns.map(ele => {
478
+ return ele.id;
479
+ });
483
480
  function filterArray(el) {
484
- const bReturn = false;
485
- for (const key of Object.keys(el)) {
486
- // only search columsn that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
487
- if (myDisplayColumnList.includes(key)) {
488
- let myVal = el[key];
489
- if (myVal !== null) {
490
- if (typeof myVal !== 'string') {
491
- myVal = myVal.toString();
492
- }
493
- if (myVal.toLowerCase().indexOf(value.toLowerCase()) >= 0) {
494
- return true;
495
- }
481
+ return Object.keys(el).some(key => {
482
+ // only search columns that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
483
+ if (cols.includes(key)) {
484
+ const myVal = el[key];
485
+ if (myVal !== null && typeof myVal !== 'undefined') {
486
+ const strVal = String(myVal); // Ensure myVal is a string
487
+ return strVal.toLowerCase().includes(value.toLowerCase());
496
488
  }
497
489
  }
498
- }
499
- return bReturn;
490
+ return false;
491
+ });
500
492
  }
501
493
  rows = rows.filter(filterArray);
502
494
  return rows;
503
495
  }
504
496
  function _onSearch(event) {
505
497
  const searchValue = event.target.value;
506
- const filteredRows = searchFilter(searchValue, myRows.slice());
498
+ const filteredRows = searchFilter(searchValue, rowsData?.slice());
507
499
  setRows(filteredRows);
508
500
  }
509
501
  function showToast(message) {
@@ -519,6 +511,7 @@ export default function ListView(props) {
519
511
  const options = { containerName: sTarget, channelName: '' };
520
512
  thePConn
521
513
  .getActionsApi()
514
+ // @ts-ignore
522
515
  .openAssignment(pzInsKey, pxRefObjectClass, options)
523
516
  .then(() => {
524
517
  // console.log("openAssignment successful");
@@ -719,6 +712,7 @@ export default function ListView(props) {
719
712
  pzInsKey = row[`${associationCategory}:pzInsKey`];
720
713
  }
721
714
  if (column.isAssignmentLink) {
715
+ // @ts-ignore
722
716
  thePConn.getActionsApi().openAssignment(pzInsKey, pxObjClass, {
723
717
  containerName: 'primary',
724
718
  channelName: ''
@@ -817,16 +811,17 @@ export default function ListView(props) {
817
811
  return (_jsxs(TableCell, { className: classes.cell, sortDirection: orderBy === column.id ? order : false, children: [_jsxs(TableSortLabel, { active: orderBy === column.id, direction: orderBy === column.id ? order : 'asc', onClick: createSortHandler(column.id), children: [column.label, _showFilteredIcon(column.id) && _jsx(FilterListIcon, { className: classes.filteredIcon }), orderBy === column.id ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }), _jsx(MoreIcon, { className: classes.moreIcon, onClick: event => {
818
812
  _menuClick(event, column.id, column.type, column.label);
819
813
  } })] }, column.id));
820
- }) }) }), _jsx(TableBody, { children: stableSort(arRows, getComparator(order, orderBy))
821
- .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
822
- .map(row => {
823
- return (_jsx(TableRow, { children: arColumns.map(column => {
824
- const value = row[column.id];
825
- return (_jsx(TableCell, { align: column.align, className: classes.cell, children: _showButton(column.id, row) || column.displayAsLink ? (_jsx(Link, { component: 'button', onClick: () => {
826
- _listViewClick(row, column);
827
- }, children: column.format && typeof value === 'number' ? column.format(value) : value })) : (_jsx(_Fragment, { children: column.format && typeof value === 'number' ? column.format(value) : value || '---' })) }, column.id));
828
- }) }, row.pxRefObjectInsName || row.pyID || row.pyGUID));
829
- }) })] }) })) : (_jsxs(TableContainer, { id: 'list-view', children: [_jsxs(Table, { children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [(selectionMode === SELECTION_MODE.SINGLE || selectionMode === SELECTION_MODE.MULTI) && _jsx(TableCell, {}), arColumns.map(column => {
814
+ }) }) }), _jsx(TableBody, { children: arRows &&
815
+ stableSort(arRows, getComparator(order, orderBy))
816
+ .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
817
+ .map(row => {
818
+ return (_jsx(TableRow, { children: arColumns.map(column => {
819
+ const value = row[column.id];
820
+ return (_jsx(TableCell, { align: column.align, className: classes.cell, children: _showButton(column.id, row) || column.displayAsLink ? (_jsx(Link, { component: 'button', onClick: () => {
821
+ _listViewClick(row, column);
822
+ }, underline: 'hover', children: column.format && typeof value === 'number' ? column.format(value) : value })) : (_jsx(_Fragment, { children: column.format && typeof value === 'number' ? column.format(value) : value || '---' })) }, column.id));
823
+ }) }, row.pxRefObjectInsName || row.pyID));
824
+ }) })] }) })) : (_jsxs(TableContainer, { id: 'list-view', children: [_jsxs(Table, { children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [(selectionMode === SELECTION_MODE.SINGLE || selectionMode === SELECTION_MODE.MULTI) && _jsx(TableCell, {}), arColumns.map(column => {
830
825
  return (_jsx(TableCell, { className: classes.cell, sortDirection: orderBy === column.id ? order : false, children: _jsxs(TableSortLabel, { active: orderBy === column.id, direction: orderBy === column.id ? order : 'asc', onClick: createSortHandler(column.id), children: [column.label, orderBy === column.id ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }) }, column.id));
831
826
  })] }) }), _jsx(TableBody, { children: arRows &&
832
827
  arRows.length > 0 &&
@@ -836,7 +831,7 @@ export default function ListView(props) {
836
831
  return (_jsxs(TableRow, { children: [selectionMode === SELECTION_MODE.SINGLE && (_jsx(TableCell, { children: _jsx(Radio, { onChange: handleChange, value: row[rowID], name: 'radio-buttons', inputProps: { 'aria-label': 'A' }, checked: selectedValue === row[rowID] }) })), selectionMode === SELECTION_MODE.MULTI && (_jsx(TableCell, { children: _jsx(Checkbox, { onChange: onCheckboxClick, checked: selectedValues.some(selectedValue => selectedValue[rowID] === row[rowID]), value: row[rowID] }) })), arColumns.map(column => {
837
832
  const value = row[column.id];
838
833
  return (_jsx(TableCell, { className: classes.cell, align: column.align, children: processColumnValue(column, value) }, column.id));
839
- })] }, row.pxRefObjectInsName || row.pyGUID || row.pyID));
840
- }) })] }), arRows && arRows.length === 0 && _jsx("div", { className: 'no-records', children: "No records found." })] })) }), arRows && arRows.length > 0 && (_jsx(TablePagination, { id: 'pagination', rowsPerPageOptions: [10, 25, 100], component: 'div', count: arRows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage }))] })), _jsxs(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: _menuClose, children: [_jsxs(MenuItem, { onClick: _filterMenu, children: [_jsx(FilterListIcon, {}), " Filter"] }), _jsxs(MenuItem, { onClick: _groupMenu, children: [_jsx(SubjectIcon, {}), " Group"] })] }), _jsxs(Dialog, { open: open, onClose: _closeDialog, "aria-labelledby": 'form-dialog-title', children: [_jsxs(DialogTitle, { id: 'form-dialog-title', children: ["Filter: ", filterBy] }), _jsx(DialogContent, { children: containsDateOrTime ? (_jsxs(_Fragment, { children: [_jsxs(Select, { value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true, children: [_jsx(MenuItem, { value: 'notequal', children: "is not equal to" }), _jsx(MenuItem, { value: 'after', children: "after" }), _jsx(MenuItem, { value: 'before', children: "before" }), _jsx(MenuItem, { value: 'null', children: "is null" }), _jsx(MenuItem, { value: 'notnull', children: "is not null" })] }), filterType === 'Date' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'DateTime' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'Time' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue }))] })) : (_jsxs(_Fragment, { children: [_jsxs(Select, { fullWidth: true, onChange: _dialogContainsFilter, value: displayDialogContainsFilter, children: [_jsx(MenuItem, { value: 'contains', children: "Contains" }), _jsx(MenuItem, { value: 'equals', children: "Equals" }), _jsx(MenuItem, { value: 'startswith', children: "Starts with" })] }), _jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'text', fullWidth: true, value: displayDialogContainsValue, onChange: _dialogContainsValue })] })) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: _closeDialog, color: 'secondary', children: "Cancel" }), _jsx(Button, { onClick: _submitFilter, color: 'primary', children: "Submit" })] })] }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }));
834
+ })] }, row[rowID]));
835
+ }) })] }), arRows && arRows.length === 0 && _jsx("div", { className: 'no-records', children: "No records found." })] })) }), arRows && arRows.length > 0 && (_jsx(TablePagination, { id: 'pagination', rowsPerPageOptions: [10, 25, 100], component: 'div', count: arRows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage }))] })), _jsxs(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: _menuClose, children: [_jsxs(MenuItem, { onClick: _filterMenu, children: [_jsx(FilterListIcon, {}), " Filter"] }), _jsxs(MenuItem, { onClick: _groupMenu, children: [_jsx(SubjectIcon, {}), " Group"] })] }), _jsxs(Dialog, { open: open, onClose: _closeDialog, "aria-labelledby": 'form-dialog-title', children: [_jsxs(DialogTitle, { id: 'form-dialog-title', children: ["Filter: ", filterBy] }), _jsx(DialogContent, { children: containsDateOrTime ? (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true, children: [_jsx(MenuItem, { value: 'notequal', children: "is not equal to" }), _jsx(MenuItem, { value: 'after', children: "after" }), _jsx(MenuItem, { value: 'before', children: "before" }), _jsx(MenuItem, { value: 'null', children: "is null" }), _jsx(MenuItem, { value: 'notnull', children: "is not null" })] }), filterType === 'Date' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'DateTime' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'Time' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue }))] })) : (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', fullWidth: true, onChange: _dialogContainsFilter, value: displayDialogContainsFilter, children: [_jsx(MenuItem, { value: 'contains', children: "Contains" }), _jsx(MenuItem, { value: 'equals', children: "Equals" }), _jsx(MenuItem, { value: 'startswith', children: "Starts with" })] }), _jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'text', fullWidth: true, value: displayDialogContainsValue, onChange: _dialogContainsValue })] })) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: _closeDialog, color: 'secondary', children: "Cancel" }), _jsx(Button, { onClick: _submitFilter, color: 'primary', children: "Submit" })] })] }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }));
841
836
  }
842
837
  //# sourceMappingURL=ListView.js.map