@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":"SummaryItem.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryItem/SummaryItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,OAAO,mBAAmB,CAAC;AAS3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,IAAI,UAAU,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CACzB,KAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAiC,OAAO,EAAE,MAAM,CAAC,OAAO,YAC1F,MAAM,CAAC,IAAI,IAD8B,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,CAEzD,CACZ,CAAC,GACC,IACH,CACP,IACG,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useState } from 'react';\nimport { IconButton, Menu, MenuItem } from '@material-ui/core';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\nimport { Utils } from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './SummaryItem.css';\n\ninterface SummaryItemProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n menuIconOverride$: string;\n menuIconOverrideAction$: any;\n arItems$: any[] | any;\n}\n\nexport default function SummaryItem(props: SummaryItemProps) {\n let imagePath$ = '';\n let menuIconOverride$;\n menuIconOverride$ = props.menuIconOverride$;\n imagePath$ = Utils.getIconPath(Utils.getSDKStaticConentUrl());\n const item = props.arItems$;\n const srcImg = `${imagePath$}${item.visual.icon}.svg`;\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n if (menuIconOverride$) {\n menuIconOverride$ = Utils.getImageSrc(menuIconOverride$, Utils.getSDKStaticConentUrl());\n }\n\n function removeAttachment() {\n props.menuIconOverrideAction$(item);\n }\n\n const handleClick = event => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n return (\n <div className='psdk-utility-card'>\n <div className='psdk-utility-card-icon'>\n <img className='psdk-utility-card-svg-icon' src={srcImg} />\n </div>\n <div className='psdk-utility-card-main'>\n {item.primary.type !== 'URL' && <div className='psdk-utility-card-main-primary-label'>{item.primary.name}</div>}\n {item.primary.type === 'URL' && (\n <div className='psdk-utility-card-main-primary-url'>\n <button type='button' className='psdk-link-button'>\n {item.primary.name}&nbsp;\n <img className='psdk-utility-card-actions-svg-icon' src={`${imagePath$}${item.primary.icon}.svg`} />\n </button>\n </div>\n )}\n {item.secondary.text && <div style={{ color: item.secondary.error ? 'red' : undefined }}>{item.secondary.text}</div>}\n </div>\n <div className='psdk-utility-action'>\n {menuIconOverride$ && (\n <button type='button' className='psdk-utility-button' aria-label='Delete Attachment' onClick={removeAttachment}>\n <img className='psdk-utility-card-action-svg-icon' src={menuIconOverride$} />\n </button>\n )}\n {!menuIconOverride$ && (\n <div>\n <IconButton\n id='setting-button'\n aria-controls={open ? 'file-menu' : undefined}\n aria-expanded={open ? 'true' : undefined}\n aria-haspopup='true'\n onClick={handleClick}\n >\n <MoreVertIcon />\n </IconButton>\n <Menu style={{ marginTop: '3rem' }} id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>\n {item.actions &&\n item.actions.map(option => (\n <MenuItem style={{ fontSize: '14px' }} key={option.id || option.text} onClick={option.onClick}>\n {option.text}\n </MenuItem>\n ))}\n </Menu>\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SummaryItem.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryItem/SummaryItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,OAAO,mBAAmB,CAAC;AAS3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,iBAAiB,CAAC;IACtB,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC5C,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC9D,MAAM,I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AAM,CAAC,IAAI,CAEzD,CACZ,CAAC,GACC,IACH,CACP,IACG,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useState } from 'react';\nimport { IconButton, Menu, MenuItem } from '@mui/material';\nimport MoreVertIcon from '@mui/icons-material/MoreVert';\nimport { Utils } from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './SummaryItem.css';\n\ninterface SummaryItemProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n menuIconOverride$: string;\n menuIconOverrideAction$: any;\n arItems$: any[] | any;\n}\n\nexport default function SummaryItem(props: SummaryItemProps) {\n let imagePath$ = '';\n let menuIconOverride$;\n menuIconOverride$ = props.menuIconOverride$;\n imagePath$ = Utils.getIconPath(Utils.getSDKStaticConentUrl());\n const item = props.arItems$;\n const srcImg = `${imagePath$}${item.visual.icon}.svg`;\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n if (menuIconOverride$) {\n menuIconOverride$ = Utils.getImageSrc(menuIconOverride$, Utils.getSDKStaticConentUrl());\n }\n\n function removeAttachment() {\n props.menuIconOverrideAction$(item);\n }\n\n const handleClick = event => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n return (\n <div className='psdk-utility-card'>\n <div className='psdk-utility-card-icon'>\n <img className='psdk-utility-card-svg-icon' src={srcImg} />\n </div>\n <div className='psdk-utility-card-main'>\n {item.primary.type !== 'URL' && <div className='psdk-utility-card-main-primary-label'>{item.primary.name}</div>}\n {item.primary.type === 'URL' && (\n <div className='psdk-utility-card-main-primary-url'>\n <button type='button' className='psdk-link-button'>\n {item.primary.name}&nbsp;\n <img className='psdk-utility-card-actions-svg-icon' src={`${imagePath$}${item.primary.icon}.svg`} />\n </button>\n </div>\n )}\n {item.secondary.text && <div style={{ color: item.secondary.error ? 'red' : undefined }}>{item.secondary.text}</div>}\n </div>\n <div className='psdk-utility-action'>\n {menuIconOverride$ && (\n <button type='button' className='psdk-utility-button' aria-label='Delete Attachment' onClick={removeAttachment}>\n <img className='psdk-utility-card-action-svg-icon' src={menuIconOverride$} />\n </button>\n )}\n {!menuIconOverride$ && (\n <div>\n <IconButton\n id='setting-button'\n aria-controls={open ? 'file-menu' : undefined}\n aria-expanded={open ? 'true' : undefined}\n aria-haspopup='true'\n onClick={handleClick}\n size='large'\n >\n <MoreVertIcon />\n </IconButton>\n <Menu style={{ marginTop: '3rem' }} id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>\n {item.actions &&\n item.actions.map(option => (\n <MenuItem style={{ fontSize: '14px' }} key={option.id || option.text} onClick={option.onClick}>\n {option.text}\n </MenuItem>\n ))}\n </Menu>\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { PConnProps } from '../../../types/PConnProps';
3
2
  interface SummaryListProps extends PConnProps {
4
3
  arItems$: any[];
5
4
  menuIconOverride$?: string;
6
5
  menuIconOverrideAction$?: any;
7
6
  }
8
- export default function SummaryList(props: SummaryListProps): JSX.Element;
7
+ export default function SummaryList(props: SummaryListProps): import("react/jsx-runtime").JSX.Element;
9
8
  export {};
10
9
  //# sourceMappingURL=SummaryList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryList.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,gBAAiB,SAAQ,UAAU;IAE3C,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,GAAG,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAY1D"}
1
+ {"version":3,"file":"SummaryList.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/SummaryList/SummaryList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,gBAAiB,SAAQ,UAAU;IAE3C,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,GAAG,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAY1D"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PConnProps } from '../../../types/PConnProps';
3
2
  import './ToDo.css';
4
3
  interface ToDoProps extends PConnProps {
@@ -12,6 +11,6 @@ interface ToDoProps extends PConnProps {
12
11
  context?: string;
13
12
  isConfirm?: boolean;
14
13
  }
15
- export default function ToDo(props: ToDoProps): JSX.Element;
14
+ export default function ToDo(props: ToDoProps): import("react/jsx-runtime").JSX.Element;
16
15
  export {};
17
16
  //# sourceMappingURL=ToDo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToDo.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AAwBA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,YAAY,CAAC;AAEpB,UAAU,SAAU,SAAQ,UAAU;IAEpC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAwCD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,SAAS,eA+O5C"}
1
+ {"version":3,"file":"ToDo.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,YAAY,CAAC;AAmCpB,UAAU,SAAU,SAAQ,UAAU;IAEpC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAwCD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,SAAS,2CAmR5C"}
@@ -1,15 +1,39 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable @typescript-eslint/no-shadow */
3
- import { useState } from 'react';
4
- import { Box, Button, Card, CardContent, CardHeader, Avatar, Typography, Badge, List, ListItem, ListItemText, ListItemSecondaryAction } from '@material-ui/core';
5
- import Snackbar from '@material-ui/core/Snackbar';
6
- import IconButton from '@material-ui/core/IconButton';
7
- import CloseIcon from '@material-ui/icons/Close';
8
- import ArrowForwardIosOutlinedIcon from '@material-ui/icons/ArrowForwardIosOutlined';
9
- import { makeStyles, useTheme } from '@material-ui/core/styles';
10
- import useMediaQuery from '@material-ui/core/useMediaQuery';
3
+ import { useCallback, useEffect, useState } from 'react';
4
+ import { Box, Button, Card, CardContent, CardHeader, Avatar, Typography, Badge, List, ListItem, ListItemText, ListItemSecondaryAction } from '@mui/material';
5
+ import Snackbar from '@mui/material/Snackbar';
6
+ import IconButton from '@mui/material/IconButton';
7
+ import CloseIcon from '@mui/icons-material/Close';
8
+ import ArrowForwardIosOutlinedIcon from '@mui/icons-material/ArrowForwardIosOutlined';
9
+ import { useTheme } from '@mui/material/styles';
10
+ import makeStyles from '@mui/styles/makeStyles';
11
+ import useMediaQuery from '@mui/material/useMediaQuery';
11
12
  import { Utils } from '../../helpers/utils';
12
13
  import './ToDo.css';
14
+ const fetchMyWorkList = (datapage, fields, numberOfRecords, includeTotalCount, context) => {
15
+ return PCore.getDataPageUtils()
16
+ .getDataAsync(datapage, context, {}, {
17
+ pageNumber: 1,
18
+ pageSize: numberOfRecords
19
+ }, {
20
+ select: Object.keys(fields).map(key => ({ field: PCore.getAnnotationUtils().getPropertyName(fields[key]) }))
21
+ }, {
22
+ invalidateCache: true,
23
+ additionalApiParams: {
24
+ includeTotalCount
25
+ }
26
+ })
27
+ .then(response => {
28
+ return {
29
+ ...response,
30
+ data: (Array.isArray(response?.data) ? response.data : []).map(row => Object.keys(fields).reduce((obj, key) => {
31
+ obj[key] = row[PCore.getAnnotationUtils().getPropertyName(fields[key])];
32
+ return obj;
33
+ }, {}))
34
+ };
35
+ });
36
+ };
13
37
  const isChildCase = assignment => {
14
38
  return assignment.isChild;
15
39
  };
@@ -45,10 +69,9 @@ const useStyles = makeStyles(theme => ({
45
69
  }
46
70
  }));
47
71
  export default function ToDo(props) {
48
- const { getPConnect, datasource = [], headerText = 'To do', showTodoList = true, myWorkList = {}, type = 'worklist', isConfirm = false } = props;
72
+ const { getPConnect, context, datasource = [], headerText = 'To do', showTodoList = true, myWorkList = {}, type = 'worklist', isConfirm = false } = props;
49
73
  const CONSTS = PCore.getConstants();
50
74
  const bLogging = true;
51
- let assignmentCount = 0;
52
75
  const currentUser = PCore.getEnvironmentInfo().getOperatorName();
53
76
  const currentUserInitials = Utils.getInitials(currentUser);
54
77
  const assignmentsSource = datasource?.source || myWorkList?.source;
@@ -66,15 +89,26 @@ export default function ToDo(props) {
66
89
  const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');
67
90
  const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');
68
91
  const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;
69
- // const { setOpen } = useNavBar();
92
+ const [count, setCount] = useState(0);
93
+ const { WORK_BASKET: { MY_WORK_LIST } } = PCore.getConstants();
70
94
  function initAssignments() {
71
95
  if (assignmentsSource) {
72
- assignmentCount = assignmentsSource.length;
73
96
  return topThreeAssignments(assignmentsSource);
74
97
  }
75
98
  // turn off todolist
76
99
  return [];
77
100
  }
101
+ const deferLoadWorklistItems = useCallback(responseData => {
102
+ setCount(responseData.totalCount);
103
+ setAssignments(responseData.data);
104
+ }, [MY_WORK_LIST]);
105
+ useEffect(() => {
106
+ if (Object.keys(myWorkList).length && myWorkList.datapage) {
107
+ fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, 3, true, context).then(responseData => {
108
+ deferLoadWorklistItems(responseData);
109
+ });
110
+ }
111
+ }, []);
78
112
  const getAssignmentId = assignment => {
79
113
  return type === CONSTS.TODO ? assignment.ID : assignment.id;
80
114
  };
@@ -99,11 +133,18 @@ export default function ToDo(props) {
99
133
  }
100
134
  function _showMore() {
101
135
  setBShowMore(false);
102
- setAssignments(assignmentsSource);
136
+ if (type === CONSTS.WORKLIST && count && count > assignments.length && !assignmentsSource) {
137
+ fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, count, false, context).then(response => {
138
+ setAssignments(response.data);
139
+ });
140
+ }
141
+ else {
142
+ setAssignments(assignmentsSource);
143
+ }
103
144
  }
104
145
  function _showLess() {
105
146
  setBShowMore(true);
106
- setAssignments(topThreeAssignments(assignmentsSource));
147
+ setAssignments(assignments => assignments.slice(0, 3));
107
148
  }
108
149
  function clickGo(assignment) {
109
150
  const id = getAssignmentId(assignment);
@@ -154,7 +195,9 @@ export default function ToDo(props) {
154
195
  }
155
196
  return (_jsxs(_Fragment, { children: [_jsx(Button, { size: 'small', color: 'primary', children: `${assignment.name} ${getID(assignment)}` }), ` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`] }));
156
197
  };
157
- const toDoContent = (_jsxs(_Fragment, { children: [showTodoList && (_jsx(CardHeader, { title: _jsx(Badge, { badgeContent: assignmentCount, overlap: 'rectangular', color: 'primary', children: _jsxs(Typography, { variant: 'h6', children: [headerText, "\u00A0\u00A0\u00A0"] }) }) })), _jsx(List, { children: assignments.map(assignment => (_jsxs("div", { className: 'psdk-todo-avatar-header', children: [_jsx(Avatar, { className: classes.avatar, style: { marginRight: '16px' }, children: currentUserInitials }), _jsxs("div", { style: { display: 'block' }, children: [_jsx(Typography, { variant: 'h6', children: assignment?.name }), `${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`] }), (!isConfirm || canPerform) && (_jsx("div", { style: { marginLeft: 'auto' }, children: _jsx(IconButton, { id: 'go-btn', onClick: () => clickGo(assignment), children: _jsx(ArrowForwardIosOutlinedIcon, {}) }) }))] }, getAssignmentId(assignment)))) })] }));
158
- return (_jsxs(_Fragment, { children: [type === CONSTS.WORKLIST && (_jsxs(Card, { className: classes.root, children: [showTodoList && (_jsx(CardHeader, { title: _jsx(Badge, { badgeContent: assignmentCount, overlap: 'rectangular', color: 'primary', children: _jsxs(Typography, { variant: 'h6', children: [headerText, "\u00A0\u00A0\u00A0"] }) }), avatar: _jsx(Avatar, { className: classes.avatar, children: currentUserInitials }) })), _jsx(CardContent, { children: _jsx(List, { children: assignments.map(assignment => (_jsxs(ListItem, { dense: true, divider: true, onClick: () => clickGo(assignment), children: [_jsx(ListItemText, { primary: getAssignmentName(assignment), secondary: getListItemComponent(assignment) }), _jsx(ListItemSecondaryAction, { children: _jsx(IconButton, { onClick: () => clickGo(assignment), children: _jsx(ArrowForwardIosOutlinedIcon, {}) }) })] }, getAssignmentId(assignment)))) }) })] })), type === CONSTS.TODO && !isConfirm && _jsx(Card, { className: classes.todoWrapper, children: toDoContent }), type === CONSTS.TODO && isConfirm && _jsx(_Fragment, { children: toDoContent }), assignmentCount > 3 && (_jsx(Box, { display: 'flex', justifyContent: 'center', children: bShowMore ? (_jsx(Button, { color: 'primary', onClick: _showMore, children: showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue })) : (_jsx(Button, { onClick: _showLess, children: showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue })) })), _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' }) }) })] }));
198
+ // eslint-disable-next-line no-nested-ternary
199
+ const getCount = () => (assignmentsSource ? assignmentsSource.length : type === CONSTS.WORKLIST ? count : 0);
200
+ const toDoContent = (_jsxs(_Fragment, { children: [showTodoList && (_jsx(CardHeader, { title: _jsx(Badge, { badgeContent: getCount(), overlap: 'rectangular', color: 'primary', children: _jsxs(Typography, { variant: 'h6', children: [headerText, "\u00A0\u00A0\u00A0"] }) }) })), _jsx(List, { children: assignments.map(assignment => (_jsxs("div", { className: 'psdk-todo-avatar-header', children: [_jsx(Avatar, { className: classes.avatar, style: { marginRight: '16px' }, children: currentUserInitials }), _jsxs("div", { style: { display: 'block' }, children: [_jsx(Typography, { variant: 'h6', children: assignment?.name }), `${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`] }), (!isConfirm || canPerform) && (_jsx("div", { style: { marginLeft: 'auto' }, children: _jsx(IconButton, { id: 'go-btn', onClick: () => clickGo(assignment), size: 'large', children: _jsx(ArrowForwardIosOutlinedIcon, {}) }) }))] }, getAssignmentId(assignment)))) })] }));
201
+ return (_jsxs(_Fragment, { children: [type === CONSTS.WORKLIST && (_jsxs(Card, { className: classes.root, children: [showTodoList && (_jsx(CardHeader, { title: _jsx(Badge, { badgeContent: getCount(), overlap: 'rectangular', color: 'primary', children: _jsxs(Typography, { variant: 'h6', children: [headerText, "\u00A0\u00A0\u00A0"] }) }), avatar: _jsx(Avatar, { className: classes.avatar, children: currentUserInitials }) })), _jsx(CardContent, { children: _jsx(List, { children: assignments.map(assignment => (_jsxs(ListItem, { dense: true, divider: true, onClick: () => clickGo(assignment), children: [_jsx(ListItemText, { primary: getAssignmentName(assignment), secondary: getListItemComponent(assignment) }), _jsx(ListItemSecondaryAction, { children: _jsx(IconButton, { onClick: () => clickGo(assignment), size: 'large', children: _jsx(ArrowForwardIosOutlinedIcon, {}) }) })] }, getAssignmentId(assignment)))) }) })] })), type === CONSTS.TODO && !isConfirm && _jsx(Card, { className: classes.todoWrapper, children: toDoContent }), type === CONSTS.TODO && isConfirm && _jsx(_Fragment, { children: toDoContent }), getCount() > 3 && (_jsx(Box, { display: 'flex', justifyContent: 'center', children: bShowMore ? (_jsx(Button, { color: 'primary', onClick: _showMore, children: showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue })) : (_jsx(Button, { onClick: _showLess, children: showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue })) })), _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' }) }) })] }));
159
202
  }
160
203
  //# sourceMappingURL=ToDo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU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C,OAAO,EAAE,SAAS,YAAG,sBAAsB,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,GAAU,CACrH,GACG,CACP,EAED,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\nimport React, { useState } from 'react';\nimport {\n Box,\n Button,\n Card,\n CardContent,\n CardHeader,\n Avatar,\n Typography,\n Badge,\n List,\n ListItem,\n ListItemText,\n ListItemSecondaryAction\n} from '@material-ui/core';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport CloseIcon from '@material-ui/icons/Close';\nimport ArrowForwardIosOutlinedIcon from '@material-ui/icons/ArrowForwardIosOutlined';\nimport { makeStyles, useTheme } from '@material-ui/core/styles';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\n\nimport { Utils } from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './ToDo.css';\n\ninterface ToDoProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n datasource?: any;\n myWorkList?: any;\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID?: string;\n headerText?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey?: string;\n showTodoList?: boolean;\n type?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n context?: string;\n isConfirm?: boolean;\n}\n\nconst isChildCase = assignment => {\n return assignment.isChild;\n};\n\nfunction topThreeAssignments(assignmentsSource: any[]): any[] {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n }\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n },\n todoWrapper: {\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light,\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function ToDo(props: ToDoProps) {\n const { getPConnect, datasource = [], headerText = 'To do', showTodoList = true, myWorkList = {}, type = 'worklist', isConfirm = false } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n let assignmentCount = 0;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName();\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<any[]>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Todo';\n const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');\n const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');\n const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;\n // const { setOpen } = useNavBar();\n\n function initAssignments(): any[] {\n if (assignmentsSource) {\n assignmentCount = assignmentsSource.length;\n return topThreeAssignments(assignmentsSource);\n }\n // turn off todolist\n return [];\n }\n\n const getAssignmentId = assignment => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = assignment => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = assignment => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n setAssignments(assignmentsSource);\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(topThreeAssignments(assignmentsSource));\n }\n\n function clickGo(assignment) {\n const id = getAssignmentId(assignment);\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options: any = {\n containerName: sTargetContainerName,\n channelName: ''\n };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options.isActionFromToDoList = true;\n options.target = '';\n options.context = null;\n options.isChild = isChildCase(assignment);\n } else {\n options.isActionFromToDoList = false;\n options.target = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const renderTaskId = (type, getPConnect, showTodoList, assignment) => {\n const displayID = getID(assignment);\n\n if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {\n /* Supress link for todo inside flow step */\n return <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>;\n }\n return displayID;\n };\n\n const getListItemComponent = assignment => {\n if (isDesktop) {\n return (\n <>\n {localizedVal('Task in', localeCategory)}\n {renderTaskId(type, getPConnect, showTodoList, assignment)}\n {type === CONSTS.WORKLIST && assignment.status ? `\\u2022 ` : undefined}\n {type === CONSTS.WORKLIST && assignment.status ? <span className='psdk-todo-assignment-status'>{assignment.status}</span> : undefined}\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n };\n\n const toDoContent = (\n <>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n />\n )}\n <List>\n {assignments.map(assignment => (\n <div className='psdk-todo-avatar-header' key={getAssignmentId(assignment)}>\n <Avatar className={classes.avatar} style={{ marginRight: '16px' }}>\n {currentUserInitials}\n </Avatar>\n <div style={{ display: 'block' }}>\n <Typography variant='h6'>{assignment?.name}</Typography>\n {`${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \\u2022 ${localizedVal(\n 'Urgency',\n localeCategory\n )} ${getPriority(assignment)}`}\n </div>\n {(!isConfirm || canPerform) && (\n <div style={{ marginLeft: 'auto' }}>\n <IconButton id='go-btn' onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </div>\n )}\n </div>\n ))}\n </List>\n </>\n );\n\n return (\n <>\n {type === CONSTS.WORKLIST && (\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n />\n )}\n <CardContent>\n <List>\n {assignments.map(assignment => (\n <ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>\n <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n )}\n\n {type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}\n {type === CONSTS.TODO && isConfirm && <>{toDoContent}</>}\n\n {assignmentCount > 3 && (\n <Box display='flex' justifyContent='center'>\n {bShowMore ? (\n <Button color='primary' onClick={_showMore}>\n {showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue}\n </Button>\n ) : (\n <Button onClick={_showLess}>{showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue}</Button>\n )}\n </Box>\n )}\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,UAAU,MAAM,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AAC,CAAC,sBAAsB,GAAU,CACrH,GACG,CACP,EAED,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\nimport React, { useCallback, useEffect, useState } from 'react';\nimport {\n Box,\n Button,\n Card,\n CardContent,\n CardHeader,\n Avatar,\n Typography,\n Badge,\n List,\n ListItem,\n ListItemText,\n ListItemSecondaryAction\n} from '@mui/material';\nimport Snackbar from '@mui/material/Snackbar';\nimport IconButton from '@mui/material/IconButton';\nimport CloseIcon from '@mui/icons-material/Close';\nimport ArrowForwardIosOutlinedIcon from '@mui/icons-material/ArrowForwardIosOutlined';\nimport { useTheme } from '@mui/material/styles';\nimport makeStyles from '@mui/styles/makeStyles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\n\nimport { Utils } from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './ToDo.css';\n\nconst fetchMyWorkList = (datapage, fields, numberOfRecords, includeTotalCount, context) => {\n return PCore.getDataPageUtils()\n .getDataAsync(\n datapage,\n context,\n {},\n {\n pageNumber: 1,\n pageSize: numberOfRecords\n },\n {\n select: Object.keys(fields).map(key => ({ field: PCore.getAnnotationUtils().getPropertyName(fields[key]) }))\n },\n {\n invalidateCache: true,\n additionalApiParams: {\n includeTotalCount\n }\n }\n )\n .then(response => {\n return {\n ...response,\n data: (Array.isArray(response?.data) ? response.data : []).map(row =>\n Object.keys(fields).reduce((obj, key) => {\n obj[key] = row[PCore.getAnnotationUtils().getPropertyName(fields[key])];\n return obj;\n }, {})\n )\n };\n });\n};\n\ninterface ToDoProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n datasource?: any;\n myWorkList?: any;\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID?: string;\n headerText?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey?: string;\n showTodoList?: boolean;\n type?: string;\n\n context?: string;\n isConfirm?: boolean;\n}\n\nconst isChildCase = assignment => {\n return assignment.isChild;\n};\n\nfunction topThreeAssignments(assignmentsSource: any[]): any[] {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n }\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n },\n todoWrapper: {\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light,\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function ToDo(props: ToDoProps) {\n const {\n getPConnect,\n context,\n datasource = [],\n headerText = 'To do',\n showTodoList = true,\n myWorkList = {},\n type = 'worklist',\n isConfirm = false\n } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName();\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<any[]>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Todo';\n const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');\n const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');\n const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;\n const [count, setCount] = useState(0);\n\n const {\n WORK_BASKET: { MY_WORK_LIST }\n } = PCore.getConstants();\n\n function initAssignments(): any[] {\n if (assignmentsSource) {\n return topThreeAssignments(assignmentsSource);\n }\n // turn off todolist\n return [];\n }\n\n const deferLoadWorklistItems = useCallback(\n responseData => {\n setCount(responseData.totalCount);\n setAssignments(responseData.data);\n },\n [MY_WORK_LIST]\n );\n\n useEffect(() => {\n if (Object.keys(myWorkList).length && myWorkList.datapage) {\n fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, 3, true, context).then(responseData => {\n deferLoadWorklistItems(responseData);\n });\n }\n }, []);\n\n const getAssignmentId = assignment => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = assignment => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = assignment => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n if (type === CONSTS.WORKLIST && count && count > assignments.length && !assignmentsSource) {\n fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, count, false, context).then(response => {\n setAssignments(response.data);\n });\n } else {\n setAssignments(assignmentsSource);\n }\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(assignments => assignments.slice(0, 3));\n }\n\n function clickGo(assignment) {\n const id = getAssignmentId(assignment);\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options: any = {\n containerName: sTargetContainerName,\n channelName: ''\n };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options.isActionFromToDoList = true;\n options.target = '';\n options.context = null;\n options.isChild = isChildCase(assignment);\n } else {\n options.isActionFromToDoList = false;\n options.target = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const renderTaskId = (type, getPConnect, showTodoList, assignment) => {\n const displayID = getID(assignment);\n\n if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {\n /* Supress link for todo inside flow step */\n return <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>;\n }\n return displayID;\n };\n\n const getListItemComponent = assignment => {\n if (isDesktop) {\n return (\n <>\n {localizedVal('Task in', localeCategory)}\n {renderTaskId(type, getPConnect, showTodoList, assignment)}\n {type === CONSTS.WORKLIST && assignment.status ? `\\u2022 ` : undefined}\n {type === CONSTS.WORKLIST && assignment.status ? <span className='psdk-todo-assignment-status'>{assignment.status}</span> : undefined}\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n };\n\n // eslint-disable-next-line no-nested-ternary\n const getCount = () => (assignmentsSource ? assignmentsSource.length : type === CONSTS.WORKLIST ? count : 0);\n\n const toDoContent = (\n <>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={getCount()} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n />\n )}\n <List>\n {assignments.map(assignment => (\n <div className='psdk-todo-avatar-header' key={getAssignmentId(assignment)}>\n <Avatar className={classes.avatar} style={{ marginRight: '16px' }}>\n {currentUserInitials}\n </Avatar>\n <div style={{ display: 'block' }}>\n <Typography variant='h6'>{assignment?.name}</Typography>\n {`${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \\u2022 ${localizedVal(\n 'Urgency',\n localeCategory\n )} ${getPriority(assignment)}`}\n </div>\n {(!isConfirm || canPerform) && (\n <div style={{ marginLeft: 'auto' }}>\n <IconButton id='go-btn' onClick={() => clickGo(assignment)} size='large'>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </div>\n )}\n </div>\n ))}\n </List>\n </>\n );\n\n return (\n <>\n {type === CONSTS.WORKLIST && (\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={getCount()} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n />\n )}\n <CardContent>\n <List>\n {assignments.map(assignment => (\n <ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>\n <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo(assignment)} size='large'>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n )}\n\n {type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}\n {type === CONSTS.TODO && isConfirm && <>{toDoContent}</>}\n\n {getCount() > 3 && (\n <Box display='flex' justifyContent='center'>\n {bShowMore ? (\n <Button color='primary' onClick={_showMore}>\n {showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue}\n </Button>\n ) : (\n <Button onClick={_showLess}>{showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue}</Button>\n )}\n </Box>\n )}\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n}\n"]}
@@ -1,5 +1,20 @@
1
- ### React SDK - Release Announcement - v23.1.11 (10 April 2024)
1
+ ### React SDK - Release Announcement - v24.1.10 (05 July 2024)
2
2
 
3
+ This release - **SDK-R v24.1.10** - is **only compatible with Pega Infinity 24**. This release is related to the [**release/24.1.10** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/release/24.1.10).
4
+ <br>
5
+
6
+ The SDK-R v24.1.10 release allow React SDK users to to take advantage of the latest [SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) including:
7
+
8
+ * Support has been added for the approve and reject case actions
9
+ * Formatting of currency values now works as expected
10
+ * Bug fixes
11
+ * Full set of merged PRs can be found in the [react-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/react-sdk-components/pulls?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs since (and including) #348.
12
+ <br />
13
+ <hr />
14
+
15
+ ### Previous Releases
16
+
17
+ #### React SDK - v23.1.11 (10 April 2024)
3
18
  This release - **SDK-R v23.1.11** - is **only compatible with Pega Infinity 23**. This release is related to the [**release/23.1.11** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/release/23.1.11).
4
19
  <br>
5
20
 
@@ -10,14 +25,11 @@ The SDK-R v23.1.11 release allow React SDK users to to take advantage of the lat
10
25
  * Added modal dialog edit view in table
11
26
  * Added Lint support to improve code quality and Prettier support for code formatting.
12
27
  * Bug fixes
13
- * Full set of merged PRs can be found in the [react-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/react-sdk-components/pulls?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs since (and including) #232.
14
-
15
- <br />
28
+ * The @pega/react-sdk-components package (version 23.1.12) released in May 2024, you can check what has been added as part of this release in [**What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html)
29
+ * Full set of merged PRs can be found in the [react-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/react-sdk-components/commits/release/23.1). This release includes all PRs since (and including) #232 and #354.
16
30
  <hr />
17
31
 
18
- ### Previous Releases
19
-
20
- #### React SDK - Release Announcement - v23.1.10 (08 November 2023)
32
+ #### React SDK - v23.1.10 (08 November 2023)
21
33
 
22
34
  This release - **SDK-R v23.1.10** - is **only compatible with Pega Infinity 23**. This release is related to the [**release/23.1.10** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/release/23.1.10).
23
35
  <br>
@@ -1,4 +1,6 @@
1
1
  export { default as useAfterInitialEffect } from './useAfterInitialEffect';
2
2
  export { default as useConsolidatedRef } from './useConsolidatedRef';
3
3
  export { default as useUID } from './useUID';
4
+ export { default as useScrolltoTop } from './useScrolltoTop';
5
+ export { default as useFocusFirstField } from './useFocusFirstField';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export { default as useAfterInitialEffect } from './useAfterInitialEffect';
2
2
  export { default as useConsolidatedRef } from './useConsolidatedRef';
3
3
  export { default as useUID } from './useUID';
4
+ export { default as useScrolltoTop } from './useScrolltoTop';
5
+ export { default as useFocusFirstField } from './useFocusFirstField';
4
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC","sourcesContent":["export { default as useAfterInitialEffect } from './useAfterInitialEffect';\nexport { default as useConsolidatedRef } from './useConsolidatedRef';\nexport { default as useUID } from './useUID';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export { default as useAfterInitialEffect } from './useAfterInitialEffect';\nexport { default as useConsolidatedRef } from './useConsolidatedRef';\nexport { default as useUID } from './useUID';\nexport { default as useScrolltoTop } from './useScrolltoTop';\nexport { default as useFocusFirstField } from './useFocusFirstField';\n"]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @example useFocusFirstField(id, children);
3
+ * Focuses first editable field in the view.
4
+ */
5
+ declare const useFocusFirstField: (id: any, children: any) => void;
6
+ export default useFocusFirstField;
7
+ //# sourceMappingURL=useFocusFirstField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusFirstField.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusFirstField.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,kBAAkB,kCAavB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { useEffect } from 'react';
2
+ /**
3
+ * @example useFocusFirstField(id, children);
4
+ * Focuses first editable field in the view.
5
+ */
6
+ const useFocusFirstField = (id, children) => {
7
+ useEffect(() => {
8
+ const assignment = document.getElementById(id);
9
+ if (assignment) {
10
+ // Find all editable elements within the div
11
+ const editableElements = assignment.querySelectorAll('input, select, textarea');
12
+ // Focus on the first editable element
13
+ if (editableElements.length > 0) {
14
+ editableElements[0].focus();
15
+ }
16
+ }
17
+ }, [children]);
18
+ };
19
+ export default useFocusFirstField;
20
+ //# sourceMappingURL=useFocusFirstField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusFirstField.js","sourceRoot":"","sources":["../../src/hooks/useFocusFirstField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;GAGG;AACH,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE;IAC1C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAC/C,IAAI,UAAU,EAAE;YACd,4CAA4C;YAC5C,MAAM,gBAAgB,GAA4B,UAAU,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;YAEzG,sCAAsC;YACtC,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC/B,gBAAgB,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;aAC7B;SACF;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @example useFocusFirstField(id, children);\n * Focuses first editable field in the view.\n */\nconst useFocusFirstField = (id, children) => {\n useEffect(() => {\n const assignment = document.getElementById(id);\n if (assignment) {\n // Find all editable elements within the div\n const editableElements: NodeListOf<HTMLElement> = assignment.querySelectorAll('input, select, textarea');\n\n // Focus on the first editable element\n if (editableElements.length > 0) {\n editableElements[0].focus();\n }\n }\n }, [children]);\n};\n\nexport default useFocusFirstField;\n"]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @example useScrolltoTop(id, children);;
3
+ * Page scrolls to top on view change.
4
+ */
5
+ declare const useScrolltoTop: (id: any, children: any) => void;
6
+ export default useScrolltoTop;
7
+ //# sourceMappingURL=useScrolltoTop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrolltoTop.d.ts","sourceRoot":"","sources":["../../src/hooks/useScrolltoTop.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,cAAc,kCAKnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { useEffect } from 'react';
2
+ /**
3
+ * @example useScrolltoTop(id, children);;
4
+ * Page scrolls to top on view change.
5
+ */
6
+ const useScrolltoTop = (id, children) => {
7
+ useEffect(() => {
8
+ const scrollElement = document.querySelector(id);
9
+ scrollElement?.scrollIntoView();
10
+ }, [children]);
11
+ };
12
+ export default useScrolltoTop;
13
+ //# sourceMappingURL=useScrolltoTop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrolltoTop.js","sourceRoot":"","sources":["../../src/hooks/useScrolltoTop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;GAGG;AACH,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QACjD,aAAa,EAAE,cAAc,EAAE,CAAC;IAClC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @example useScrolltoTop(id, children);;\n * Page scrolls to top on view change.\n */\nconst useScrolltoTop = (id, children) => {\n useEffect(() => {\n const scrollElement = document.querySelector(id);\n scrollElement?.scrollIntoView();\n }, [children]);\n};\n\nexport default useScrolltoTop;\n"]}
@@ -156,7 +156,7 @@ import ListView from "./components/template/ListView";
156
156
  import ListViewActionButtons from "./components/infra/Containers/ModalViewContainer/ListViewActionButtons";
157
157
  import ModalViewContainer from "./components/infra/Containers/ModalViewContainer/ModalViewContainer";
158
158
  import MultiReferenceReadOnly from "./components/template/MultiReferenceReadOnly";
159
- import Multiselect from "./components/field/MultiSelect/Multiselect";
159
+ import Multiselect from "./components/field/Multiselect/Multiselect";
160
160
  import MultiStep from "./components/infra/MultiStep";
161
161
  import NarrowWide from "./components/template/NarrowWide/NarrowWide";
162
162
  import NarrowWideDetails from "./components/template/NarrowWide/NarrowWideDetails";
@@ -54,7 +54,7 @@ import ListView from './components/template/ListView';
54
54
  import ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';
55
55
  import ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';
56
56
  import MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';
57
- import Multiselect from './components/field/MultiSelect/Multiselect';
57
+ import Multiselect from './components/field/Multiselect/Multiselect';
58
58
  import MultiStep from './components/infra/MultiStep';
59
59
  import NarrowWide from './components/template/NarrowWide/NarrowWide';
60
60
  import NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAElE,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,MAAM,MAAM,2CAA2C,CAAC;AAC/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,WAAW,MAAM,gCAAgC,CAAC;AACzD,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,OAAO,iBAAiB,MAAM,sDAAsD,CAAC;AACrF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,QA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AAQ;IACR,mBAAmB;IACnB,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,eAAe;IACf,aAAa;IACb,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,WAAW;IACX,SAAS;IACT,OAAO;IACP,cAAc;IACd,kBAAkB;IAClB,gBAAgB;IAChB,QAAQ;IACR,WAAW;IACX,KAAK;IACL,aAAa;IACb,UAAU;IACV,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,WAAW;IACX,aAAa;IACb,SAAS;IACT,KAAK;IACL,eAAe;IACf,mBAAmB;IACnB,OAAO;IACP,qBAAqB;IACrB,QAAQ;IACR,QAAQ;IACR,qBAAqB;IACrB,kBAAkB;IAClB,sBAAsB;IACtB,WAAW;IACX,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,MAAM;IACN,SAAS;IACT,aAAa;IACb,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,KAAK;IACL,eAAe;IACf,KAAK;IACL,WAAW;IACX,SAAS,EAAE,SAAS;IACpB,YAAY;IACZ,MAAM;IACN,QAAQ;IACR,cAAc;IACd,aAAa;IACb,UAAU;IACV,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,uBAAuB;IACvB,MAAM;IACN,OAAO;IACP,WAAW;IACX,WAAW;IACX,QAAQ;IACR,WAAW;IACX,SAAS;IACT,IAAI;IACJ,IAAI,EAAE,IAAI;IACV,SAAS;IACT,aAAa;IACb,YAAY;IACZ,GAAG;IACH,aAAa;IACb,YAAY;IACZ,IAAI;IACJ,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,SAAS;IACT,cAAc;CACf,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from '../lib/components/infra/ActionButtons';\n\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AlertBanner from './components/designSystemExtension/AlertBanner';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/field/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport DynamicTabs from './components/template/Details/DynamicTabs';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroup from './components/designSystemExtension/FieldGroup';\nimport FieldGroupList from './components/designSystemExtension/FieldGroupList';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FieldValueList from './components/designSystemExtension/FieldValueList';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport Group from './components/field/Group';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport Multiselect from './components/field/MultiSelect/Multiselect';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RichText from './components/field/RichText';\nimport RichTextEditor from './components/designSystemExtension/RichTextEditor';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport ScalarList from './components/field/ScalarList';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n ActionButtons,\n ActionButtonsForFileUtil,\n AlertBanner,\n AppAnnouncement,\n AppShell,\n Assignment,\n AssignmentCard,\n Attachment,\n AutoComplete,\n Banner,\n BannerPage,\n CancelAlert,\n CaseHistory,\n CaseSummary,\n CaseSummaryFields,\n CaseView,\n CaseViewActionsMenu,\n Checkbox,\n Confirmation,\n Currency,\n DashboardFilter,\n DataReference,\n Date,\n DateTime,\n Decimal,\n DefaultForm,\n DeferLoad,\n Details,\n DetailsSubTabs,\n DetailsThreeColumn,\n DetailsTwoColumn,\n Dropdown,\n DynamicTabs,\n Email,\n ErrorBoundary,\n FieldGroup,\n FieldGroupList,\n FieldGroupTemplate,\n FieldValueList,\n FileUtility,\n FlowContainer,\n Followers,\n Group,\n InlineDashboard,\n InlineDashboardPage,\n Integer,\n LeftAlignVerticalTabs,\n ListPage,\n ListView,\n ListViewActionButtons,\n ModalViewContainer,\n MultiReferenceReadOnly,\n Multiselect,\n MultiStep,\n NarrowWide,\n NarrowWideDetails,\n NarrowWideForm,\n NarrowWidePage,\n NavBar,\n OneColumn,\n OneColumnPage,\n OneColumnTab,\n Operator,\n Percentage,\n Phone,\n PromotedFilters,\n Pulse,\n QuickCreate,\n reference: Reference, // See note about about non-standard capitalization\n RadioButtons,\n Region,\n RichText,\n RichTextEditor,\n RootContainer,\n ScalarList,\n SemanticLink,\n SimpleTable,\n SimpleTableManual,\n SimpleTableSelect,\n SingleReferenceReadOnly,\n Stages,\n SubTabs,\n SummaryItem,\n SummaryList,\n TextArea,\n TextContent,\n TextInput,\n Time,\n Todo: ToDo, // See note about about non-standard capitalization\n TwoColumn,\n TwoColumnPage,\n TwoColumnTab,\n URL,\n UserReference,\n VerticalTabs,\n View,\n ViewContainer,\n WideNarrow,\n WideNarrowDetails,\n WideNarrowForm,\n WideNarrowPage,\n WssNavBar,\n WssQuickCreate\n};\n\nexport default pegaSdkComponentMap;\n"]}
1
+ {"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAElE,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,eAAe,M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cAAc;IACd,aAAa;IACb,UAAU;IACV,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,uBAAuB;IACvB,MAAM;IACN,OAAO;IACP,WAAW;IACX,WAAW;IACX,QAAQ;IACR,WAAW;IACX,SAAS;IACT,IAAI;IACJ,IAAI,EAAE,IAAI;IACV,SAAS;IACT,aAAa;IACb,YAAY;IACZ,GAAG;IACH,aAAa;IACb,YAAY;IACZ,IAAI;IACJ,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,SAAS;IACT,cAAc;CACf,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from '../lib/components/infra/ActionButtons';\n\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AlertBanner from './components/designSystemExtension/AlertBanner';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/field/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport DynamicTabs from './components/template/Details/DynamicTabs';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroup from './components/designSystemExtension/FieldGroup';\nimport FieldGroupList from './components/designSystemExtension/FieldGroupList';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FieldValueList from './components/designSystemExtension/FieldValueList';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport Group from './components/field/Group';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport Multiselect from './components/field/Multiselect/Multiselect';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RichText from './components/field/RichText';\nimport RichTextEditor from './components/designSystemExtension/RichTextEditor';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport ScalarList from './components/field/ScalarList';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n ActionButtons,\n ActionButtonsForFileUtil,\n AlertBanner,\n AppAnnouncement,\n AppShell,\n Assignment,\n AssignmentCard,\n Attachment,\n AutoComplete,\n Banner,\n BannerPage,\n CancelAlert,\n CaseHistory,\n CaseSummary,\n CaseSummaryFields,\n CaseView,\n CaseViewActionsMenu,\n Checkbox,\n Confirmation,\n Currency,\n DashboardFilter,\n DataReference,\n Date,\n DateTime,\n Decimal,\n DefaultForm,\n DeferLoad,\n Details,\n DetailsSubTabs,\n DetailsThreeColumn,\n DetailsTwoColumn,\n Dropdown,\n DynamicTabs,\n Email,\n ErrorBoundary,\n FieldGroup,\n FieldGroupList,\n FieldGroupTemplate,\n FieldValueList,\n FileUtility,\n FlowContainer,\n Followers,\n Group,\n InlineDashboard,\n InlineDashboardPage,\n Integer,\n LeftAlignVerticalTabs,\n ListPage,\n ListView,\n ListViewActionButtons,\n ModalViewContainer,\n MultiReferenceReadOnly,\n Multiselect,\n MultiStep,\n NarrowWide,\n NarrowWideDetails,\n NarrowWideForm,\n NarrowWidePage,\n NavBar,\n OneColumn,\n OneColumnPage,\n OneColumnTab,\n Operator,\n Percentage,\n Phone,\n PromotedFilters,\n Pulse,\n QuickCreate,\n reference: Reference, // See note about about non-standard capitalization\n RadioButtons,\n Region,\n RichText,\n RichTextEditor,\n RootContainer,\n ScalarList,\n SemanticLink,\n SimpleTable,\n SimpleTableManual,\n SimpleTableSelect,\n SingleReferenceReadOnly,\n Stages,\n SubTabs,\n SummaryItem,\n SummaryList,\n TextArea,\n TextContent,\n TextInput,\n Time,\n Todo: ToDo, // See note about about non-standard capitalization\n TwoColumn,\n TwoColumnPage,\n TwoColumnTab,\n URL,\n UserReference,\n VerticalTabs,\n View,\n ViewContainer,\n WideNarrow,\n WideNarrowDetails,\n WideNarrowForm,\n WideNarrowPage,\n WssNavBar,\n WssQuickCreate\n};\n\nexport default pegaSdkComponentMap;\n"]}
package/lib/theme.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ /**
3
+ * Since makeStyles is now exported from @mui/styles package which does not know about Theme in the core package.
4
+ * you need to augment the DefaultTheme (empty object) in @mui/styles with Theme from the core.
5
+ */
6
+ declare module '@mui/styles/defaultTheme' {
7
+ interface DefaultTheme extends Theme {
8
+ }
9
+ }
10
+ export declare const theme: Theme;
11
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;;GAGG;AACH,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,YAAa,SAAQ,KAAK;KAAG;CACxC;AAGD,eAAO,MAAM,KAAK,OA2BhB,CAAC"}