@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":"react_pconnect.d.ts","sourceRoot":"","sources":["../../src/bridge/react_pconnect.jsx"],"names":[],"mappings":"AA+BO,0EAMN;;AA+HD;;;;;GAKG;AACH,2EA0JC"}
1
+ {"version":3,"file":"react_pconnect.d.ts","sourceRoot":"","sources":["../../src/bridge/react_pconnect.jsx"],"names":[],"mappings":"AA+BO,0EAMN;;AAgUD;;;;;GAKG;AACH,2EAEC"}
@@ -1,3 +1,4 @@
1
+ import { createElement as _createElement } from "react";
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  /* eslint-disable max-classes-per-file */
3
4
  import { Component, createElement } from 'react';
@@ -11,8 +12,8 @@ import StoreContext from './Context/StoreContext';
11
12
  // As we add components, we'll need to import them here and add to the switch statement
12
13
  // below in getComponent!
13
14
  import { SdkComponentMap } from './helpers/sdk_component_map';
14
- const isClassIDCompare = (key, prev) => {
15
- return !(key === 'classID' && !prev[key]);
15
+ const isClassIDCompare = (key, prev, next) => {
16
+ return !(key === 'classID' && (!prev[key] || !next[key]));
16
17
  };
17
18
  const routingInfoCompare = (next, prev) => {
18
19
  return 'routingInfo' in next && (!shallowEqual(next.routingInfo, prev.routingInfo) || !PCore.isDeepEqual(next.routingInfo, prev.routingInfo));
@@ -71,16 +72,13 @@ const connectRedux = (component, c11nEnv) => {
71
72
  areStatePropsEqual: (next, prev) => {
72
73
  const allStateProps = c11nEnv.getStateProps();
73
74
  for (const key of Object.keys(allStateProps)) {
74
- if ((isClassIDCompare(key, prev) && !shallowEqual(next[key], prev[key])) ||
75
- (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))) {
76
- return false;
77
- }
78
- }
79
- // For CaseSummary (when status === ".pyStatusWork"), we need to compare changes in
80
- // primaryFields and secondary Fields
81
- if (allStateProps.status === '.pyStatusWork') {
82
- for (const key of Object.keys(prev)) {
83
- if (!PCore.isDeepEqual(next[key], prev[key])) {
75
+ if (Object.prototype.hasOwnProperty.call(allStateProps, key)) {
76
+ if (key === 'inheritedProps' && next.inheritedProps && !PCore.isDeepEqual(next.inheritedProps, prev.inheritedProps)) {
77
+ return false;
78
+ }
79
+ if (key !== 'inheritedProps' &&
80
+ ((isClassIDCompare(key, prev, next) && !shallowEqual(next[key], prev[key])) ||
81
+ (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo)))) {
84
82
  return false;
85
83
  }
86
84
  }
@@ -139,146 +137,136 @@ const getComponent = c11nEnv => {
139
137
  return connectRedux(component, c11nEnv);
140
138
  };
141
139
  /**
142
- *
143
- * @param {*} declarative
144
- * @returns {React.Components<Props, State>}
145
-
140
+ * JEA - add Type info via JSdoc syntax...
141
+ * @extends {React.Components<Props, State>}
142
+ * createPConnectComponent - Class to create/initialize a PConnect (c11nEnv) object
143
+ * to pre-process meta data of each componnet.
144
+ * - Wraps each child in a component with PConnect
145
+ * - Process all actions and make them avaiable in props
146
+ * - Filters all properties in metadata and keeps them
147
+ * __internal for re-render process through connect
146
148
  */
147
- const createPConnectComponent = () => {
148
- /**
149
- * JEA - add Type info via JSdoc syntax...
150
- * @extends {React.Components<Props, State>}
151
- * createPConnectComponent - Class to create/initialize a PConnect (c11nEnv) object
152
- * to pre-process meta data of each componnet.
153
- * - Wraps each child in a component with PConnect
154
- * - Process all actions and make them avaiable in props
155
- * - Filters all properties in metadata and keeps them
156
- * __internal for re-render process through connect
157
- */
158
- class PConnect extends Component {
159
- constructor(props) {
160
- super(props);
161
- const { getPConnect } = this.props;
162
- this.state = {
163
- hasError: false
164
- };
165
- this.eventHandler = this.eventHandler.bind(this);
166
- this.changeHandler = this.changeHandler.bind(this);
167
- this.c11nEnv = getPConnect();
168
- // eslint-disable-next-line react/no-unused-class-component-methods
169
- this.Control = getComponent(this.c11nEnv);
170
- this.actionsAPI = this.c11nEnv.getActionsApi();
171
- this.processActions(this.c11nEnv);
172
- }
173
- static getDerivedStateFromError(error) {
174
- // Update state so the next render will show the fallback UI.
175
- return {
176
- hasError: true,
177
- error
178
- };
179
- }
180
- componentDidMount() {
181
- this.c11nEnv.addFormField();
182
- setVisibilityForList(this.c11nEnv, true);
183
- }
184
- componentDidCatch(error, info) {
185
- // eslint-disable-next-line no-console
186
- console.error(`Error while Rendering the component ${this.componentName} : `, error, info.componentStack);
187
- }
188
- componentWillUnmount() {
189
- if (this.c11nEnv.removeFormField) {
190
- this.c11nEnv.removeFormField();
191
- setVisibilityForList(this.c11nEnv, false);
192
- }
193
- }
194
- /*
195
- * processActions to see all actions in meta and adds event in props.
196
- * Attaches common handler (eventHandler) for all actions.
197
- */
198
- processActions() {
199
- if (this.c11nEnv.isEditable()) {
200
- this.c11nEnv.setAction('onChange', this.changeHandler);
201
- this.c11nEnv.setAction('onBlur', this.eventHandler);
202
- }
149
+ class PConnect extends Component {
150
+ constructor(props) {
151
+ super(props);
152
+ const { getPConnect } = this.props;
153
+ this.state = {
154
+ hasError: false
155
+ };
156
+ this.eventHandler = this.eventHandler.bind(this);
157
+ this.changeHandler = this.changeHandler.bind(this);
158
+ this.c11nEnv = getPConnect();
159
+ // eslint-disable-next-line react/no-unused-class-component-methods
160
+ this.Control = getComponent(this.c11nEnv);
161
+ this.actionsAPI = this.c11nEnv.getActionsApi();
162
+ this.processActions(this.c11nEnv);
163
+ }
164
+ static getDerivedStateFromError(error) {
165
+ // Update state so the next render will show the fallback UI.
166
+ return {
167
+ hasError: true,
168
+ error
169
+ };
170
+ }
171
+ componentDidMount() {
172
+ this.c11nEnv.addFormField();
173
+ setVisibilityForList(this.c11nEnv, true);
174
+ }
175
+ componentDidCatch(error, info) {
176
+ // eslint-disable-next-line no-console
177
+ console.error(`Error while Rendering the component ${this.componentName} : `, error, info.componentStack);
178
+ }
179
+ componentWillUnmount() {
180
+ if (this.c11nEnv.removeFormField) {
181
+ this.c11nEnv.removeFormField();
182
+ setVisibilityForList(this.c11nEnv, false);
203
183
  }
204
- // Using separate handle for change as in case of dropdown, native click is mapped to react change
205
- changeHandler(event) {
206
- this.actionsAPI.changeHandler(this.c11nEnv, event);
207
- // getActionProcessor().changeHandler(this.c11nEnv, event);
184
+ }
185
+ /*
186
+ * processActions to see all actions in meta and adds event in props.
187
+ * Attaches common handler (eventHandler) for all actions.
188
+ */
189
+ processActions() {
190
+ if (this.c11nEnv.isEditable()) {
191
+ this.c11nEnv.setAction('onChange', this.changeHandler);
192
+ this.c11nEnv.setAction('onBlur', this.eventHandler);
208
193
  }
209
- eventHandler(event) {
210
- this.actionsAPI.eventHandler(this.c11nEnv, event);
211
- // getActionProcessor().eventHandler(this.c11nEnv, event);
194
+ }
195
+ // Using separate handle for change as in case of dropdown, native click is mapped to react change
196
+ changeHandler(event) {
197
+ this.actionsAPI.changeHandler(this.c11nEnv, event);
198
+ // getActionProcessor().changeHandler(this.c11nEnv, event);
199
+ }
200
+ eventHandler(event) {
201
+ this.actionsAPI.eventHandler(this.c11nEnv, event);
202
+ // getActionProcessor().eventHandler(this.c11nEnv, event);
203
+ }
204
+ createChildren() {
205
+ const { getPConnect } = this.props;
206
+ if (getPConnect().hasChildren() && getPConnect().getChildren()) {
207
+ return (getPConnect()
208
+ .getChildren()
209
+ // eslint-disable-next-line react/no-array-index-key
210
+ .map((childProps, index) => _jsx(PConnect, { ...childProps }, `${this.getKey(childProps)}_${index}`)));
212
211
  }
213
- createChildren() {
214
- const { getPConnect } = this.props;
215
- if (getPConnect().hasChildren() && getPConnect().getChildren()) {
216
- return (getPConnect()
217
- .getChildren()
218
- // eslint-disable-next-line react/no-array-index-key
219
- .map((childProps, index) => _jsx(PConnect, { ...childProps }, `${this.getKey(childProps)}_${index}`)));
220
- }
221
- return null;
212
+ return null;
213
+ }
214
+ getKey(props = this.props) {
215
+ const { getPConnect } = props;
216
+ const viewName = getPConnect().getConfigProps().name || getPConnect().getCurrentView();
217
+ let key = !viewName ? createUID() : `${viewName}!${getPConnect().getCurrentClassID() || createUID()}`;
218
+ // In the case of pyDetails the key must be unique for each instance
219
+ if (viewName && viewName.toUpperCase() === 'PYDETAILS') {
220
+ key += `!${getPConnect().getCaseInfo().getID()}`;
222
221
  }
223
- getKey(props = this.props) {
224
- const { getPConnect } = props;
225
- const viewName = getPConnect().getConfigProps().name || getPConnect().getCurrentView();
226
- let key = !viewName ? createUID() : `${viewName}!${getPConnect().getCurrentClassID() || createUID()}`;
227
- // In the case of pyDetails the key must be unigue for each instance
228
- if (viewName && viewName.toUpperCase() === 'PYDETAILS') {
229
- key += `!${getPConnect().getCaseInfo().getID()}`;
230
- }
231
- return key.toUpperCase();
222
+ return key.toUpperCase();
223
+ }
224
+ render() {
225
+ const { hasError } = this.state;
226
+ const { getPConnect, additionalProps, ...otherProps } = this.props;
227
+ if (hasError) {
228
+ // You can render any custom fallback UI
229
+ // console.log(`react_pconnect error: used to return: <ErrorBoundary getPConnect={() => this.c11nEnv} isInternalError />`);
230
+ return _jsx(ErrorBoundary, { getPConnect: () => this.c11nEnv, isInternalError: true });
232
231
  }
233
- render() {
234
- const { hasError } = this.state;
235
- const { getPConnect, additionalProps, ...otherProps } = this.props;
236
- if (hasError) {
237
- // You can render any custom fallback UI
238
- // console.log(`react_pconnect error: used to return: <ErrorBoundary getPConnect={() => this.c11nEnv} isInternalError />`);
239
- return _jsx(ErrorBoundary, { getPConnect: () => this.c11nEnv, isInternalError: true });
240
- }
241
- const props = this.c11nEnv.getConfigProps();
242
- const actions = this.c11nEnv.getActions();
243
- const finalProps = {
244
- ...props,
245
- getPConnect,
246
- ...actions,
247
- additionalProps,
248
- ...otherProps
249
- };
250
- // If the new component is a reference node then mark with a unique key
251
- if (['reference', 'View'].includes(getPConnect().getComponentName()) && !finalProps.key) {
252
- finalProps.key = this.getKey();
253
- }
254
- // console.log(`react_pconnect: used to return: <this.Control {...finalProps} />`);
255
- return _jsx(this.Control, { ...finalProps, children: this.createChildren() });
232
+ const props = this.c11nEnv.getConfigProps();
233
+ const actions = this.c11nEnv.getActions();
234
+ const finalProps = {
235
+ ...props,
236
+ getPConnect,
237
+ ...actions,
238
+ additionalProps,
239
+ ...otherProps
240
+ };
241
+ // If the new component is a reference node then mark with a unique key
242
+ if (['reference', 'View'].includes(getPConnect().getComponentName()) && !finalProps.key) {
243
+ return (_createElement(this.Control, { ...finalProps, key: this.getKey() }, this.createChildren()));
256
244
  }
245
+ // console.log(`react_pconnect: used to return: <this.Control {...finalProps} />`);
246
+ return _jsx(this.Control, { ...finalProps, children: this.createChildren() });
257
247
  }
258
- // eslint-disable-next-line react/static-property-placement
259
- PConnect.propTypes = {
260
- // __internal: PropTypes.object.isRequired,
261
- // meta: PropTypes.object.isRequired,
262
- // configObject: PropTypes.object.isRequired,
263
- getPConnect: PropTypes.func.isRequired,
264
- additionalProps: PropTypes.shape({
265
- noLabel: PropTypes.bool,
266
- readOnly: PropTypes.bool
267
- }),
268
- validatemessage: PropTypes.string
269
- };
270
- // eslint-disable-next-line react/static-property-placement
271
- PConnect.defaultProps = {
272
- additionalProps: {},
273
- validatemessage: ''
274
- };
275
- return PConnect;
248
+ }
249
+ // eslint-disable-next-line react/static-property-placement
250
+ PConnect.propTypes = {
251
+ // __internal: PropTypes.object.isRequired,
252
+ // meta: PropTypes.object.isRequired,
253
+ // configObject: PropTypes.object.isRequired,
254
+ getPConnect: PropTypes.func.isRequired,
255
+ additionalProps: PropTypes.shape({
256
+ noLabel: PropTypes.bool,
257
+ readOnly: PropTypes.bool
258
+ }),
259
+ validatemessage: PropTypes.string
260
+ };
261
+ // eslint-disable-next-line react/static-property-placement
262
+ PConnect.defaultProps = {
263
+ additionalProps: {},
264
+ validatemessage: ''
276
265
  };
277
266
  // Move these into SdkConstellationReady so PCore is available
278
267
  document.addEventListener('SdkConstellationReady', () => {
279
268
  PCore.registerComponentCreator((c11nEnv, additionalProps = {}) => {
280
- const PConnectComp = createPConnectComponent();
281
- return createElement(PConnectComp, {
269
+ return createElement(PConnect, {
282
270
  ...c11nEnv,
283
271
  ...c11nEnv.getPConnect().getConfigProps(),
284
272
  ...c11nEnv.getPConnect().getActions(),
@@ -316,5 +304,14 @@ document.addEventListener('SdkConstellationReady', () => {
316
304
  await Promise.allSettled(promises);
317
305
  });
318
306
  });
307
+ /**
308
+ *
309
+ * @param {*} declarative
310
+ * @returns {React.Components<Props, State>}
311
+
312
+ */
313
+ const createPConnectComponent = () => {
314
+ return PConnect;
315
+ };
319
316
  export default createPConnectComponent;
320
317
  //# sourceMappingURL=react_pconnect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react_pconnect.js","sourceRoot":"","sources":["../../src/bridge/react_pconnect.jsx"],"names":[],"mappings":";AAAA,yCAAyC;AACzC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,SAAS,MAAM,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E,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;wBACtE,CAAC,CAAC,CAAC;qBACJ;iBACF;aACF;QACH,CAAC,CAAC,CAAC;QACH;;;;;YAKI;QACJ,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,eAAe,uBAAuB,CAAC","sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect, shallowEqual } from 'react-redux';\n\nimport ComponentMap, { LazyMap as LazyComponentMap } from '../components_map'; // was '../../../../../src/components_map';\nimport ErrorBoundary from '../components/infra/ErrorBoundary';\n\nimport StoreContext from './Context/StoreContext';\n\n// const pathToComponents = \"../../../../../src/components\"; /* When bridge was local, it was \"../components\" */\n\n// For now, NOT doing lazy loading - needs some work on the loader to work with TypeScript\n// As we add components, we'll need to import them here and add to the switch statement\n// below in getComponent!\n\nimport { SdkComponentMap } from './helpers/sdk_component_map';\n\nconst isClassIDCompare = (key, prev) => {\n return !(key === 'classID' && !prev[key]);\n};\n\nconst routingInfoCompare = (next, prev) => {\n return 'routingInfo' in next && (!shallowEqual(next.routingInfo, prev.routingInfo) || !PCore.isDeepEqual(next.routingInfo, prev.routingInfo));\n};\n\n/** Generate unique id for elements */\nconst createUID = () => {\n return `_${Math.random().toString(36).slice(2, 11)}`;\n};\n\nexport const setVisibilityForList = (c11nEnv, visibility) => {\n const { selectionMode, selectionList, renderMode, referenceList } = c11nEnv.getComponentConfig();\n // usecase:multiselect, fieldgroup, editable table\n if ((selectionMode === PCore.getConstants().LIST_SELECTION_MODE.MULTI && selectionList) || (renderMode === 'Editable' && referenceList)) {\n c11nEnv.getListActions().setVisibility(visibility);\n }\n};\n\nfunction withVisibility(WrappedComponent) {\n // eslint-disable-next-line react/prefer-stateless-function\n return class extends Component {\n render() {\n const { visibility } = this.props;\n\n if (visibility === false) {\n return null;\n }\n return <WrappedComponent {...this.props} />;\n }\n };\n}\n\nconst connectRedux = (component, c11nEnv) => {\n return connect(\n (state, ownProps) => {\n let addProps = {};\n const obj = {};\n // Need to use ownProps pconnect since c11nEnv is stale and prior to re-render\n if (!ownProps.getPConnect) {\n // eslint-disable-next-line no-console\n console.error('connectRedux ownProps are not defined');\n } else {\n c11nEnv = ownProps.getPConnect();\n }\n\n if (typeof component.additionalProps === 'object') {\n addProps = c11nEnv.resolveConfigProps(component.additionalProps);\n } else if (typeof component.additionalProps === 'function') {\n addProps = c11nEnv.resolveConfigProps(component.additionalProps(state, ownProps.getPConnect));\n }\n\n c11nEnv.getConfigProps(obj);\n\n // populate additional props which are component specific and not present in configurations\n // This block can be removed once all these props will be added as part of configs\n c11nEnv.populateAdditionalProps(obj);\n\n return {\n ...obj,\n ...addProps\n };\n },\n null,\n null,\n {\n context: StoreContext,\n areStatePropsEqual: (next, prev) => {\n const allStateProps = c11nEnv.getStateProps();\n for (const key of Object.keys(allStateProps)) {\n if (\n (isClassIDCompare(key, prev) && !shallowEqual(next[key], prev[key])) ||\n (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo))\n ) {\n return false;\n }\n }\n\n // For CaseSummary (when status === \".pyStatusWork\"), we need to compare changes in\n // primaryFields and secondary Fields\n if (allStateProps.status === '.pyStatusWork') {\n for (const key of Object.keys(prev)) {\n if (!PCore.isDeepEqual(next[key], prev[key])) {\n return false;\n }\n }\n }\n /* TODO For some rawConfig we are not getting routingInfo under allStateProps */\n return !routingInfoCompare(next, prev);\n }\n }\n )(component);\n};\n\nconst getComponent = c11nEnv => {\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n const ComponentsRegistry = PCore.getComponentsRegistry();\n const type = c11nEnv.getComponentName();\n\n const componentObj = ComponentsRegistry.getComponent(type);\n const componentType = (componentObj && componentObj.component) || type;\n\n // JEA - modifying logic before bailing to RootContainer logic to work around async loading problem\n let component = LazyComponentMap[componentType]; /* || window[componentType] */\n\n // NOTE: Until we get lazy loading working, maintain this for each component we add\n if (component === undefined) {\n if (SdkComponentMap) {\n // This is the node_modules version of react_pconnect!\n const theLocalComponent = SdkComponentMap.getLocalComponentMap()[componentType];\n if (theLocalComponent !== undefined) {\n // eslint-disable-next-line no-console\n console.log(`react_pconnect getComponent found ${componentType}: Local`);\n component = theLocalComponent;\n } else {\n const thePegaProvidedComponent = SdkComponentMap.getPegaProvidedComponentMap()[componentType];\n if (thePegaProvidedComponent !== undefined) {\n // console.log(`react_pconnect getComponent found ${componentType}: Pega-provided`);\n component = thePegaProvidedComponent;\n } else {\n // eslint-disable-next-line no-console\n console.error(`react_pconnect: getComponent doesn't have an entry for type ${type}`);\n component = ErrorBoundary;\n }\n }\n } else {\n // We no longer handle the \"old\" switch statement that was here in the original packaging.\n // All components seen here need to be in the SdkComponentMap\n // eslint-disable-next-line no-console\n console.error(`SdkComponentMap not defined! Unable to process component: ${componentType}`);\n }\n } else {\n // eslint-disable-next-line no-console\n console.log(`getComponent doesn't have an entry for component ${component}`);\n component = ErrorBoundary;\n }\n\n if (c11nEnv.isConditionExist()) {\n return connectRedux(withVisibility(component), c11nEnv);\n }\n\n return connectRedux(component, c11nEnv);\n};\n\n/**\n *\n * @param {*} declarative\n * @returns {React.Components<Props, State>}\n\n */\nconst createPConnectComponent = () => {\n /**\n * JEA - add Type info via JSdoc syntax...\n * @extends {React.Components<Props, State>}\n * createPConnectComponent - Class to create/initialize a PConnect (c11nEnv) object\n * to pre-process meta data of each componnet.\n * - Wraps each child in a component with PConnect\n * - Process all actions and make them avaiable in props\n * - Filters all properties in metadata and keeps them\n * __internal for re-render process through connect\n */\n class PConnect extends Component {\n constructor(props) {\n super(props);\n const { getPConnect } = this.props;\n this.state = {\n hasError: false\n };\n\n this.eventHandler = this.eventHandler.bind(this);\n this.changeHandler = this.changeHandler.bind(this);\n\n this.c11nEnv = getPConnect();\n // eslint-disable-next-line react/no-unused-class-component-methods\n this.Control = getComponent(this.c11nEnv);\n this.actionsAPI = this.c11nEnv.getActionsApi();\n\n this.processActions(this.c11nEnv);\n }\n\n static getDerivedStateFromError(error) {\n // Update state so the next render will show the fallback UI.\n return {\n hasError: true,\n error\n };\n }\n\n componentDidMount() {\n this.c11nEnv.addFormField();\n setVisibilityForList(this.c11nEnv, true);\n }\n\n componentDidCatch(error, info) {\n // eslint-disable-next-line no-console\n console.error(`Error while Rendering the component ${this.componentName} : `, error, info.componentStack);\n }\n\n componentWillUnmount() {\n if (this.c11nEnv.removeFormField) {\n this.c11nEnv.removeFormField();\n setVisibilityForList(this.c11nEnv, false);\n }\n }\n\n /*\n * processActions to see all actions in meta and adds event in props.\n * Attaches common handler (eventHandler) for all actions.\n */\n processActions() {\n if (this.c11nEnv.isEditable()) {\n this.c11nEnv.setAction('onChange', this.changeHandler);\n this.c11nEnv.setAction('onBlur', this.eventHandler);\n }\n }\n\n // Using separate handle for change as in case of dropdown, native click is mapped to react change\n changeHandler(event) {\n this.actionsAPI.changeHandler(this.c11nEnv, event);\n // getActionProcessor().changeHandler(this.c11nEnv, event);\n }\n\n eventHandler(event) {\n this.actionsAPI.eventHandler(this.c11nEnv, event);\n // getActionProcessor().eventHandler(this.c11nEnv, event);\n }\n\n createChildren() {\n const { getPConnect } = this.props;\n if (getPConnect().hasChildren() && getPConnect().getChildren()) {\n return (\n getPConnect()\n .getChildren()\n // eslint-disable-next-line react/no-array-index-key\n .map((childProps, index) => <PConnect key={`${this.getKey(childProps)}_${index}`} {...childProps} />)\n );\n }\n return null;\n }\n\n getKey(props = this.props) {\n const { getPConnect } = props;\n const viewName = getPConnect().getConfigProps().name || getPConnect().getCurrentView();\n let key = !viewName ? createUID() : `${viewName}!${getPConnect().getCurrentClassID() || createUID()}`;\n\n // In the case of pyDetails the key must be unigue for each instance\n if (viewName && viewName.toUpperCase() === 'PYDETAILS') {\n key += `!${getPConnect().getCaseInfo().getID()}`;\n }\n\n return key.toUpperCase();\n }\n\n render() {\n const { hasError } = this.state;\n const { getPConnect, additionalProps, ...otherProps } = this.props;\n\n if (hasError) {\n // You can render any custom fallback UI\n // console.log(`react_pconnect error: used to return: <ErrorBoundary getPConnect={() => this.c11nEnv} isInternalError />`);\n return <ErrorBoundary getPConnect={() => this.c11nEnv} isInternalError />;\n }\n\n const props = this.c11nEnv.getConfigProps();\n const actions = this.c11nEnv.getActions();\n const finalProps = {\n ...props,\n getPConnect,\n ...actions,\n additionalProps,\n ...otherProps\n };\n\n // If the new component is a reference node then mark with a unique key\n if (['reference', 'View'].includes(getPConnect().getComponentName()) && !finalProps.key) {\n finalProps.key = this.getKey();\n }\n\n // console.log(`react_pconnect: used to return: <this.Control {...finalProps} />`);\n\n return <this.Control {...finalProps}>{this.createChildren()}</this.Control>;\n }\n }\n\n // eslint-disable-next-line react/static-property-placement\n PConnect.propTypes = {\n // __internal: PropTypes.object.isRequired,\n // meta: PropTypes.object.isRequired,\n // configObject: PropTypes.object.isRequired,\n getPConnect: PropTypes.func.isRequired,\n additionalProps: PropTypes.shape({\n noLabel: PropTypes.bool,\n readOnly: PropTypes.bool\n }),\n validatemessage: PropTypes.string\n };\n\n // eslint-disable-next-line react/static-property-placement\n PConnect.defaultProps = {\n additionalProps: {},\n validatemessage: ''\n };\n\n return PConnect;\n};\n\n// Move these into SdkConstellationReady so PCore is available\ndocument.addEventListener('SdkConstellationReady', () => {\n PCore.registerComponentCreator((c11nEnv, additionalProps = {}) => {\n const PConnectComp = createPConnectComponent();\n return createElement(PConnectComp, {\n ...c11nEnv,\n ...c11nEnv.getPConnect().getConfigProps(),\n ...c11nEnv.getPConnect().getActions(),\n ...{ additionalProps }\n });\n });\n\n PCore.getAssetLoader().register('component-loader', async (componentNames = []) => {\n const promises = [];\n componentNames.forEach(comp => {\n if (/^[A-Z]/.test(comp) && !LazyComponentMap[comp]) {\n if (!ComponentMap[comp]) {\n const srcUrl = `${PCore.getAssetLoader().getConstellationServiceUrl()}/v860/${PCore.getAssetLoader().getAppAlias()}/component/${comp}.js`;\n promises.push(PCore.getAssetLoader().getLoader()(srcUrl, 'script'));\n } else {\n if (ComponentMap[comp].modules && ComponentMap[comp].modules.length) {\n ComponentMap[comp].modules.forEach(module => {\n LazyComponentMap[comp] = module;\n });\n }\n if (ComponentMap[comp].scripts && ComponentMap[comp].scripts.length) {\n ComponentMap[comp].scripts.forEach(script => {\n promises.push(PCore.getAssetLoader().getLoader()(script, 'script'));\n });\n }\n }\n }\n });\n /* Promise.all rejects or accepts all or none. This causes entire component loader to fail\n in case there is a single failure.\n Using allSettled to allow Promise to be resolved even if there are failed components\n Note : This is a liberty taken at component loader and unwise to be used at\n asset loader which will still use Promise.all\n */\n await Promise.allSettled(promises);\n });\n});\n\nexport default createPConnectComponent;\n\n/* These APIs need to be exposed for authoring bridge\nWill be removed when pxbootstrap and constellation_bridge is cleaned up\nto use single bootstrap file from constellation */\n// window.authoringUtils = {\n// createElement,\n// render,\n// unmountComponentAtNode,\n// LazyComponentMap\n// };\n"]}
1
+ {"version":3,"file":"react_pconnect.js","sourceRoot":"","sources":["../../src/bridge/react_pconnect.jsx"],"names":[],"mappings":";;AAAA,yCAAyC;AACzC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,YAAY,EAAE,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC,CAAC,2CAA2C;AAC1H,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAE9D,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,iHAAiH;AAEjH,0FAA0F;AAC1F,uFAAuF;AACvF,4BAA4B;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAC3C,OAAO,CAAC,CAAC,GAAG,KAA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AAc,EAAE,CAAC,0BAA0B,EAAE,SAAS,KAAK,CAAC,cAAc,EAAE,CAAC,WAAW,EAAE,cAAc,IAAI,KAAK,CAAC;oBAC1I,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;iBACrE;qBAAM;oBACL,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;wBACnE,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;4BAC1C,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;wBAClC,CAAC,CAAC,CAAC;qBACJ;oBACD,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;wBACnE,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;4BAC1C,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;wBACtE,CAAC,CAAC,CAAC;qBACJ;iBACF;aACF;QACH,CAAC,CAAC,CAAC;QACH;;;;;YAKI;QACJ,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACnC,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect, shallowEqual } from 'react-redux';\n\nimport ComponentMap, { LazyMap as LazyComponentMap } from '../components_map'; // was '../../../../../src/components_map';\nimport ErrorBoundary from '../components/infra/ErrorBoundary';\n\nimport StoreContext from './Context/StoreContext';\n\n// const pathToComponents = \"../../../../../src/components\"; /* When bridge was local, it was \"../components\" */\n\n// For now, NOT doing lazy loading - needs some work on the loader to work with TypeScript\n// As we add components, we'll need to import them here and add to the switch statement\n// below in getComponent!\n\nimport { SdkComponentMap } from './helpers/sdk_component_map';\n\nconst isClassIDCompare = (key, prev, next) => {\n return !(key === 'classID' && (!prev[key] || !next[key]));\n};\n\nconst routingInfoCompare = (next, prev) => {\n return 'routingInfo' in next && (!shallowEqual(next.routingInfo, prev.routingInfo) || !PCore.isDeepEqual(next.routingInfo, prev.routingInfo));\n};\n\n/** Generate unique id for elements */\nconst createUID = () => {\n return `_${Math.random().toString(36).slice(2, 11)}`;\n};\n\nexport const setVisibilityForList = (c11nEnv, visibility) => {\n const { selectionMode, selectionList, renderMode, referenceList } = c11nEnv.getComponentConfig();\n // usecase:multiselect, fieldgroup, editable table\n if ((selectionMode === PCore.getConstants().LIST_SELECTION_MODE.MULTI && selectionList) || (renderMode === 'Editable' && referenceList)) {\n c11nEnv.getListActions().setVisibility(visibility);\n }\n};\n\nfunction withVisibility(WrappedComponent) {\n // eslint-disable-next-line react/prefer-stateless-function\n return class extends Component {\n render() {\n const { visibility } = this.props;\n\n if (visibility === false) {\n return null;\n }\n return <WrappedComponent {...this.props} />;\n }\n };\n}\n\nconst connectRedux = (component, c11nEnv) => {\n return connect(\n (state, ownProps) => {\n let addProps = {};\n const obj = {};\n // Need to use ownProps pconnect since c11nEnv is stale and prior to re-render\n if (!ownProps.getPConnect) {\n // eslint-disable-next-line no-console\n console.error('connectRedux ownProps are not defined');\n } else {\n c11nEnv = ownProps.getPConnect();\n }\n\n if (typeof component.additionalProps === 'object') {\n addProps = c11nEnv.resolveConfigProps(component.additionalProps);\n } else if (typeof component.additionalProps === 'function') {\n addProps = c11nEnv.resolveConfigProps(component.additionalProps(state, ownProps.getPConnect));\n }\n\n c11nEnv.getConfigProps(obj);\n\n // populate additional props which are component specific and not present in configurations\n // This block can be removed once all these props will be added as part of configs\n c11nEnv.populateAdditionalProps(obj);\n\n return {\n ...obj,\n ...addProps\n };\n },\n null,\n null,\n {\n context: StoreContext,\n areStatePropsEqual: (next, prev) => {\n const allStateProps = c11nEnv.getStateProps();\n for (const key of Object.keys(allStateProps)) {\n if (Object.prototype.hasOwnProperty.call(allStateProps, key)) {\n if (key === 'inheritedProps' && next.inheritedProps && !PCore.isDeepEqual(next.inheritedProps, prev.inheritedProps)) {\n return false;\n }\n if (\n key !== 'inheritedProps' &&\n ((isClassIDCompare(key, prev, next) && !shallowEqual(next[key], prev[key])) ||\n (next.routingInfo && !PCore.isDeepEqual(next.routingInfo, prev.routingInfo)))\n ) {\n return false;\n }\n }\n }\n /* TODO For some rawConfig we are not getting routingInfo under allStateProps */\n return !routingInfoCompare(next, prev);\n }\n }\n )(component);\n};\n\nconst getComponent = c11nEnv => {\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n const ComponentsRegistry = PCore.getComponentsRegistry();\n const type = c11nEnv.getComponentName();\n\n const componentObj = ComponentsRegistry.getComponent(type);\n const componentType = (componentObj && componentObj.component) || type;\n\n // JEA - modifying logic before bailing to RootContainer logic to work around async loading problem\n let component = LazyComponentMap[componentType]; /* || window[componentType] */\n\n // NOTE: Until we get lazy loading working, maintain this for each component we add\n if (component === undefined) {\n if (SdkComponentMap) {\n // This is the node_modules version of react_pconnect!\n const theLocalComponent = SdkComponentMap.getLocalComponentMap()[componentType];\n if (theLocalComponent !== undefined) {\n // eslint-disable-next-line no-console\n console.log(`react_pconnect getComponent found ${componentType}: Local`);\n component = theLocalComponent;\n } else {\n const thePegaProvidedComponent = SdkComponentMap.getPegaProvidedComponentMap()[componentType];\n if (thePegaProvidedComponent !== undefined) {\n // console.log(`react_pconnect getComponent found ${componentType}: Pega-provided`);\n component = thePegaProvidedComponent;\n } else {\n // eslint-disable-next-line no-console\n console.error(`react_pconnect: getComponent doesn't have an entry for type ${type}`);\n component = ErrorBoundary;\n }\n }\n } else {\n // We no longer handle the \"old\" switch statement that was here in the original packaging.\n // All components seen here need to be in the SdkComponentMap\n // eslint-disable-next-line no-console\n console.error(`SdkComponentMap not defined! Unable to process component: ${componentType}`);\n }\n } else {\n // eslint-disable-next-line no-console\n console.log(`getComponent doesn't have an entry for component ${component}`);\n component = ErrorBoundary;\n }\n\n if (c11nEnv.isConditionExist()) {\n return connectRedux(withVisibility(component), c11nEnv);\n }\n\n return connectRedux(component, c11nEnv);\n};\n\n/**\n * JEA - add Type info via JSdoc syntax...\n * @extends {React.Components<Props, State>}\n * createPConnectComponent - Class to create/initialize a PConnect (c11nEnv) object\n * to pre-process meta data of each componnet.\n * - Wraps each child in a component with PConnect\n * - Process all actions and make them avaiable in props\n * - Filters all properties in metadata and keeps them\n * __internal for re-render process through connect\n */\nclass PConnect extends Component {\n constructor(props) {\n super(props);\n const { getPConnect } = this.props;\n this.state = {\n hasError: false\n };\n\n this.eventHandler = this.eventHandler.bind(this);\n this.changeHandler = this.changeHandler.bind(this);\n\n this.c11nEnv = getPConnect();\n // eslint-disable-next-line react/no-unused-class-component-methods\n this.Control = getComponent(this.c11nEnv);\n this.actionsAPI = this.c11nEnv.getActionsApi();\n\n this.processActions(this.c11nEnv);\n }\n\n static getDerivedStateFromError(error) {\n // Update state so the next render will show the fallback UI.\n return {\n hasError: true,\n error\n };\n }\n\n componentDidMount() {\n this.c11nEnv.addFormField();\n setVisibilityForList(this.c11nEnv, true);\n }\n\n componentDidCatch(error, info) {\n // eslint-disable-next-line no-console\n console.error(`Error while Rendering the component ${this.componentName} : `, error, info.componentStack);\n }\n\n componentWillUnmount() {\n if (this.c11nEnv.removeFormField) {\n this.c11nEnv.removeFormField();\n setVisibilityForList(this.c11nEnv, false);\n }\n }\n\n /*\n * processActions to see all actions in meta and adds event in props.\n * Attaches common handler (eventHandler) for all actions.\n */\n processActions() {\n if (this.c11nEnv.isEditable()) {\n this.c11nEnv.setAction('onChange', this.changeHandler);\n this.c11nEnv.setAction('onBlur', this.eventHandler);\n }\n }\n\n // Using separate handle for change as in case of dropdown, native click is mapped to react change\n changeHandler(event) {\n this.actionsAPI.changeHandler(this.c11nEnv, event);\n // getActionProcessor().changeHandler(this.c11nEnv, event);\n }\n\n eventHandler(event) {\n this.actionsAPI.eventHandler(this.c11nEnv, event);\n // getActionProcessor().eventHandler(this.c11nEnv, event);\n }\n\n createChildren() {\n const { getPConnect } = this.props;\n if (getPConnect().hasChildren() && getPConnect().getChildren()) {\n return (\n getPConnect()\n .getChildren()\n // eslint-disable-next-line react/no-array-index-key\n .map((childProps, index) => <PConnect key={`${this.getKey(childProps)}_${index}`} {...childProps} />)\n );\n }\n return null;\n }\n\n getKey(props = this.props) {\n const { getPConnect } = props;\n const viewName = getPConnect().getConfigProps().name || getPConnect().getCurrentView();\n let key = !viewName ? createUID() : `${viewName}!${getPConnect().getCurrentClassID() || createUID()}`;\n\n // In the case of pyDetails the key must be unique for each instance\n if (viewName && viewName.toUpperCase() === 'PYDETAILS') {\n key += `!${getPConnect().getCaseInfo().getID()}`;\n }\n\n return key.toUpperCase();\n }\n\n render() {\n const { hasError } = this.state;\n const { getPConnect, additionalProps, ...otherProps } = this.props;\n\n if (hasError) {\n // You can render any custom fallback UI\n // console.log(`react_pconnect error: used to return: <ErrorBoundary getPConnect={() => this.c11nEnv} isInternalError />`);\n return <ErrorBoundary getPConnect={() => this.c11nEnv} isInternalError />;\n }\n\n const props = this.c11nEnv.getConfigProps();\n const actions = this.c11nEnv.getActions();\n const finalProps = {\n ...props,\n getPConnect,\n ...actions,\n additionalProps,\n ...otherProps\n };\n\n // If the new component is a reference node then mark with a unique key\n if (['reference', 'View'].includes(getPConnect().getComponentName()) && !finalProps.key) {\n return (\n <this.Control {...finalProps} key={this.getKey()}>\n {this.createChildren()}\n </this.Control>\n );\n }\n\n // console.log(`react_pconnect: used to return: <this.Control {...finalProps} />`);\n\n return <this.Control {...finalProps}>{this.createChildren()}</this.Control>;\n }\n}\n// eslint-disable-next-line react/static-property-placement\nPConnect.propTypes = {\n // __internal: PropTypes.object.isRequired,\n // meta: PropTypes.object.isRequired,\n // configObject: PropTypes.object.isRequired,\n getPConnect: PropTypes.func.isRequired,\n additionalProps: PropTypes.shape({\n noLabel: PropTypes.bool,\n readOnly: PropTypes.bool\n }),\n validatemessage: PropTypes.string\n};\n\n// eslint-disable-next-line react/static-property-placement\nPConnect.defaultProps = {\n additionalProps: {},\n validatemessage: ''\n};\n\n// Move these into SdkConstellationReady so PCore is available\ndocument.addEventListener('SdkConstellationReady', () => {\n PCore.registerComponentCreator((c11nEnv, additionalProps = {}) => {\n return createElement(PConnect, {\n ...c11nEnv,\n ...c11nEnv.getPConnect().getConfigProps(),\n ...c11nEnv.getPConnect().getActions(),\n ...{ additionalProps }\n });\n });\n\n PCore.getAssetLoader().register('component-loader', async (componentNames = []) => {\n const promises = [];\n componentNames.forEach(comp => {\n if (/^[A-Z]/.test(comp) && !LazyComponentMap[comp]) {\n if (!ComponentMap[comp]) {\n const srcUrl = `${PCore.getAssetLoader().getConstellationServiceUrl()}/v860/${PCore.getAssetLoader().getAppAlias()}/component/${comp}.js`;\n promises.push(PCore.getAssetLoader().getLoader()(srcUrl, 'script'));\n } else {\n if (ComponentMap[comp].modules && ComponentMap[comp].modules.length) {\n ComponentMap[comp].modules.forEach(module => {\n LazyComponentMap[comp] = module;\n });\n }\n if (ComponentMap[comp].scripts && ComponentMap[comp].scripts.length) {\n ComponentMap[comp].scripts.forEach(script => {\n promises.push(PCore.getAssetLoader().getLoader()(script, 'script'));\n });\n }\n }\n }\n });\n /* Promise.all rejects or accepts all or none. This causes entire component loader to fail\n in case there is a single failure.\n Using allSettled to allow Promise to be resolved even if there are failed components\n Note : This is a liberty taken at component loader and unwise to be used at\n asset loader which will still use Promise.all\n */\n await Promise.allSettled(promises);\n });\n});\n\n/**\n *\n * @param {*} declarative\n * @returns {React.Components<Props, State>}\n\n */\nconst createPConnectComponent = () => {\n return PConnect;\n};\n\nexport default createPConnectComponent;\n\n/* These APIs need to be exposed for authoring bridge\nWill be removed when pxbootstrap and constellation_bridge is cleaned up\nto use single bootstrap file from constellation */\n// window.authoringUtils = {\n// createElement,\n// render,\n// unmountComponentAtNode,\n// LazyComponentMap\n// };\n"]}
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  interface AlertBannerProps {
3
2
  id: string;
4
3
  variant: string;
5
4
  messages: string[];
6
5
  onDismiss?: any;
7
6
  }
8
- export default function AlertBanner(props: AlertBannerProps): JSX.Element;
7
+ export default function AlertBanner(props: AlertBannerProps): import("react/jsx-runtime").JSX.Element;
9
8
  export {};
10
9
  //# sourceMappingURL=AlertBanner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/AlertBanner/AlertBanner.tsx"],"names":[],"mappings":";AAIA,UAAU,gBAAgB;IAExB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AASD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAmB1D"}
1
+ {"version":3,"file":"AlertBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/AlertBanner/AlertBanner.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IAExB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AASD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAmB1D"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Alert } from '@material-ui/lab';
2
+ import { Alert } from '@mui/material';
3
3
  const SEVERITY_MAP = {
4
4
  urgent: 'error',
5
5
  warning: 'warning',
@@ -1 +1 @@
1
- {"version":3,"file":"AlertBanner.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/AlertBanner/AlertBanner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAYzC,MAAM,YAAY,GAAG;IACnB,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACnD,IAAI,eAAe,GAAG,EAAE,CAAC;IAEzB,IAAI,SAAS,EAAE;QACb,eAAe,GAAG;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;KACH;IAED,OAAO,CACL,cAAK,EAAE,EAAE,EAAE,YACR,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CACvB,KAAC,KAAK,IAAe,OAAO,EAAC,UAAU,EAAC,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,KAAM,eAAe,YACzF,OAAO,IADE,OAAO,CAEX,CACT,CAAC,GACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { Alert } from '@material-ui/lab';\n\n// AlertBanner is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface AlertBannerProps {\n // If any, enter additional props that only exist on Date here\n id: string;\n variant: string;\n messages: string[];\n onDismiss?: any;\n}\n\nconst SEVERITY_MAP = {\n urgent: 'error',\n warning: 'warning',\n success: 'success',\n info: 'info'\n};\n\nexport default function AlertBanner(props: AlertBannerProps) {\n const { id, variant, messages, onDismiss } = props;\n let additionalProps = {};\n\n if (onDismiss) {\n additionalProps = {\n onClose: onDismiss\n };\n }\n\n return (\n <div id={id}>\n {messages.map(message => (\n <Alert key={message} variant='outlined' severity={SEVERITY_MAP[variant]} {...additionalProps}>\n {message}\n </Alert>\n ))}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"AlertBanner.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/AlertBanner/AlertBanner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAYtC,MAAM,YAAY,GAAG;IACnB,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACnD,IAAI,eAAe,GAAG,EAAE,CAAC;IAEzB,IAAI,SAAS,EAAE;QACb,eAAe,GAAG;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;KACH;IAED,OAAO,CACL,cAAK,EAAE,EAAE,EAAE,YACR,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CACvB,KAAC,KAAK,IAAe,OAAO,EAAC,UAAU,EAAC,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,KAAM,eAAe,YACzF,OAAO,IADE,OAAO,CAEX,CACT,CAAC,GACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { Alert } from '@mui/material';\n\n// AlertBanner is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface AlertBannerProps {\n // If any, enter additional props that only exist on Date here\n id: string;\n variant: string;\n messages: string[];\n onDismiss?: any;\n}\n\nconst SEVERITY_MAP = {\n urgent: 'error',\n warning: 'warning',\n success: 'success',\n info: 'info'\n};\n\nexport default function AlertBanner(props: AlertBannerProps) {\n const { id, variant, messages, onDismiss } = props;\n let additionalProps = {};\n\n if (onDismiss) {\n additionalProps = {\n onClose: onDismiss\n };\n }\n\n return (\n <div id={id}>\n {messages.map(message => (\n <Alert key={message} variant='outlined' severity={SEVERITY_MAP[variant]} {...additionalProps}>\n {message}\n </Alert>\n ))}\n </div>\n );\n}\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './Banner.css';
3
2
  interface BannerProps {
4
3
  a: any;
@@ -13,6 +12,6 @@ interface BannerProps {
13
12
  };
14
13
  variant: any;
15
14
  }
16
- export default function Banner(props: BannerProps): JSX.Element;
15
+ export default function Banner(props: BannerProps): import("react/jsx-runtime").JSX.Element;
17
16
  export {};
18
17
  //# sourceMappingURL=Banner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Banner/Banner.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAKtB,UAAU,WAAW;IAEnB,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;IACP,MAAM,EAAE;QACN,OAAO,EAAE,GAAG,CAAC;QACb,eAAe,EAAE,GAAG,CAAC;QACrB,KAAK,EAAE,GAAG,CAAC;QACX,OAAO,EAAE,GAAG,CAAC;QACb,eAAe,EAAE,GAAG,CAAC;QACrB,SAAS,EAAE,GAAG,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,GAAG,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,eA4BhD"}
1
+ {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Banner/Banner.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAKtB,UAAU,WAAW;IAEnB,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;IACP,MAAM,EAAE;QACN,OAAO,EAAE,GAAG,CAAC;QACb,eAAe,EAAE,GAAG,CAAC;QACrB,KAAK,EAAE,GAAG,CAAC;QACX,OAAO,EAAE,GAAG,CAAC;QACb,eAAe,EAAE,GAAG,CAAC;QACrB,SAAS,EAAE,GAAG,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,GAAG,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CA4BhD"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Grid from '@material-ui/core/Grid';
2
+ import Grid from '@mui/material/Grid';
3
3
  import './Banner.css';
4
4
  export default function Banner(props) {
5
5
  const { a, b, banner, variant } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Banner/Banner.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,cAAc,CAAC;AAoBtB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAkB;IAC/C,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IACnD,MAAM,UAAU,GAAG;QACjB,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACpB,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACrB,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KACtB,CAAC;IACF,OAAO,CACL,eAAK,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,aAClC,cAAK,SAAS,EAAC,wBAAwB,EAAC,KAAK,EAAE,EAAE,eAAe,EAAE,OAAO,eAAe,GAAG,EAAE,YAC3F,cAAK,SAAS,EAAC,0BAA0B,YACvC,0BACE,aAAI,SAAS,EAAC,OAAO,YAAE,KAAK,GAAM,EAClC,YAAG,SAAS,EAAC,SAAS,YAAE,OAAO,GAAK,IAChC,GACF,GACF,EACN,MAAC,IAAI,IAAC,SAAS,QAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,eAAe,EAAC,OAAO,EAAE,CAAC,aAC/D,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAC7D,CAAC,GACG,EACP,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAC7D,CAAC,GACG,IACF,IACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import Grid from '@material-ui/core/Grid';\nimport './Banner.css';\n\n// AlertBanner is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\n\ninterface BannerProps {\n // If any, enter additional props that only exist on this component\n a: any;\n b: any;\n banner: {\n variant: any;\n backgroundColor: any;\n title: any;\n message: any;\n backgroundImage: any;\n tintImage: any;\n };\n variant: any;\n}\n\nexport default function Banner(props: BannerProps) {\n const { a, b, banner, variant } = props;\n const { title, message, backgroundImage } = banner;\n const variantMap = {\n 'two-column': [6, 6],\n 'narrow-wide': [4, 8],\n 'wide-narrow': [8, 4]\n };\n return (\n <div style={{ marginBottom: '2rem' }}>\n <div className='background-image-style' style={{ backgroundImage: `url(${backgroundImage})` }}>\n <div className='background-style content'>\n <div>\n <h1 className='title'>{title}</h1>\n <p className='message'>{message}</p>\n </div>\n </div>\n </div>\n <Grid container item xs={12} className='banner-layout' spacing={1}>\n <Grid item xs={variantMap[variant][0]} style={{ padding: '1em' }}>\n {a}\n </Grid>\n <Grid item xs={variantMap[variant][1]} style={{ padding: '1em' }}>\n {b}\n </Grid>\n </Grid>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"Banner.js","s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AC7D,CAAC,GACG,IACF,IACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import Grid from '@mui/material/Grid';\nimport './Banner.css';\n\n// AlertBanner is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\n\ninterface BannerProps {\n // If any, enter additional props that only exist on this component\n a: any;\n b: any;\n banner: {\n variant: any;\n backgroundColor: any;\n title: any;\n message: any;\n backgroundImage: any;\n tintImage: any;\n };\n variant: any;\n}\n\nexport default function Banner(props: BannerProps) {\n const { a, b, banner, variant } = props;\n const { title, message, backgroundImage } = banner;\n const variantMap = {\n 'two-column': [6, 6],\n 'narrow-wide': [4, 8],\n 'wide-narrow': [8, 4]\n };\n return (\n <div style={{ marginBottom: '2rem' }}>\n <div className='background-image-style' style={{ backgroundImage: `url(${backgroundImage})` }}>\n <div className='background-style content'>\n <div>\n <h1 className='title'>{title}</h1>\n <p className='message'>{message}</p>\n </div>\n </div>\n </div>\n <Grid container item xs={12} className='banner-layout' spacing={1}>\n <Grid item xs={variantMap[variant][0]} style={{ padding: '1em' }}>\n {a}\n </Grid>\n <Grid item xs={variantMap[variant][1]} style={{ padding: '1em' }}>\n {b}\n </Grid>\n </Grid>\n </div>\n );\n}\n"]}
@@ -13,6 +13,5 @@
13
13
 
14
14
  .psdk-case-summary-fields {
15
15
  padding: calc(2 * 0.5rem);
16
- display: grid;
17
16
  grid-row-gap: calc(2 * 0.5rem);
18
17
  }
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import './CaseSummaryFields.css';
3
2
  interface CaseSummaryFieldsProps {
4
3
  status?: string;
5
4
  showStatus?: boolean;
6
5
  theFields: any[] | any | never;
7
6
  }
8
- export default function CaseSummaryFields(props: CaseSummaryFieldsProps): JSX.Element;
7
+ export default function CaseSummaryFields(props: CaseSummaryFieldsProps): import("react/jsx-runtime").JSX.Element;
9
8
  export {};
10
9
  //# sourceMappingURL=CaseSummaryFields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSummaryFields.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx"],"names":[],"mappings":";AASA,OAAO,yBAAyB,CAAC;AAMjC,UAAU,sBAAsB;IAE9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,KAAK,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,eA8NtE"}
1
+ {"version":3,"file":"CaseSummaryFields.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx"],"names":[],"mappings":"AASA,OAAO,yBAAyB,CAAC;AAMjC,UAAU,sBAAsB;IAE9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,KAAK,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAuOtE"}