@pega/react-sdk-components 8.23.11 → 23.1.11

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 (635) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.js +3 -3
  5. package/lib/bridge/Context/StoreContext.js.map +1 -1
  6. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  7. package/lib/bridge/helpers/sdk_component_map.js +24 -47
  8. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  9. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  10. package/lib/bridge/react_pconnect.js +17 -28
  11. package/lib/bridge/react_pconnect.js.map +1 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +7 -10
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -9
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  18. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  19. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  23. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +32 -33
  24. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
  26. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  27. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +10 -23
  28. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  29. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  30. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +8 -3
  31. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  32. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +25 -14
  33. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  34. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
  35. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  36. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +6 -18
  37. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  38. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
  39. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  40. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -12
  41. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  42. package/lib/components/designSystemExtension/Operator/Operator.d.ts +17 -7
  43. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  44. package/lib/components/designSystemExtension/Operator/Operator.js +49 -67
  45. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  46. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -2
  47. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  48. package/lib/components/designSystemExtension/Pulse/Pulse.js +9 -15
  49. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  50. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
  51. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  52. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +75 -0
  53. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
  54. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
  55. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
  56. package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
  57. package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
  58. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
  59. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  60. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  61. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  62. package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
  63. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  64. package/lib/components/field/AutoComplete/AutoComplete.js +17 -17
  65. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  66. package/lib/components/field/CancelAlert/CancelAlert.d.ts +12 -2
  67. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  68. package/lib/components/field/CancelAlert/CancelAlert.js +78 -70
  69. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  70. package/lib/components/field/CancelAlert/index.js.map +1 -1
  71. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  72. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  73. package/lib/components/field/Checkbox/Checkbox.js +13 -13
  74. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  75. package/lib/components/field/Currency/Currency.d.ts +6 -1
  76. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  77. package/lib/components/field/Currency/Currency.js +15 -36
  78. package/lib/components/field/Currency/Currency.js.map +1 -1
  79. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  80. package/lib/components/field/Currency/currency-utils.js +5 -6
  81. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  82. package/lib/components/field/Date/Date.d.ts +5 -1
  83. package/lib/components/field/Date/Date.d.ts.map +1 -1
  84. package/lib/components/field/Date/Date.js +15 -9
  85. package/lib/components/field/Date/Date.js.map +1 -1
  86. package/lib/components/field/DateTime/DateTime.d.ts +5 -1
  87. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  88. package/lib/components/field/DateTime/DateTime.js +15 -9
  89. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  90. package/lib/components/field/Decimal/Decimal.d.ts +8 -1
  91. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  92. package/lib/components/field/Decimal/Decimal.js +13 -29
  93. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  94. package/lib/components/field/Decimal/index.js.map +1 -1
  95. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  96. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  97. package/lib/components/field/Dropdown/Dropdown.js +105 -15
  98. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  99. package/lib/components/field/Email/Email.d.ts +5 -1
  100. package/lib/components/field/Email/Email.d.ts.map +1 -1
  101. package/lib/components/field/Email/Email.js +12 -11
  102. package/lib/components/field/Email/Email.js.map +1 -1
  103. package/lib/components/field/Email/index.js.map +1 -1
  104. package/lib/components/field/Group/Group.d.ts +13 -0
  105. package/lib/components/field/Group/Group.d.ts.map +1 -0
  106. package/lib/components/field/Group/Group.js +15 -0
  107. package/lib/components/field/Group/Group.js.map +1 -0
  108. package/lib/components/field/Group/index.d.ts +2 -0
  109. package/lib/components/field/Group/index.d.ts.map +1 -0
  110. package/lib/components/field/Group/index.js +2 -0
  111. package/lib/components/field/Group/index.js.map +1 -0
  112. package/lib/components/field/Integer/Integer.d.ts +5 -1
  113. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  114. package/lib/components/field/Integer/Integer.js +10 -8
  115. package/lib/components/field/Integer/Integer.js.map +1 -1
  116. package/lib/components/field/Percentage/Percentage.d.ts +6 -1
  117. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  118. package/lib/components/field/Percentage/Percentage.js +28 -29
  119. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  120. package/lib/components/field/Phone/Phone.d.ts +5 -1
  121. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  122. package/lib/components/field/Phone/Phone.js +10 -9
  123. package/lib/components/field/Phone/Phone.js.map +1 -1
  124. package/lib/components/field/Phone/index.js.map +1 -1
  125. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  126. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  127. package/lib/components/field/RadioButtons/RadioButtons.js +19 -15
  128. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  129. package/lib/components/field/RichText/RichText.d.ts +7 -0
  130. package/lib/components/field/RichText/RichText.d.ts.map +1 -0
  131. package/lib/components/field/RichText/RichText.js +54 -0
  132. package/lib/components/field/RichText/RichText.js.map +1 -0
  133. package/lib/components/field/RichText/index.d.ts +2 -0
  134. package/lib/components/field/RichText/index.d.ts.map +1 -0
  135. package/lib/components/field/RichText/index.js +2 -0
  136. package/lib/components/field/RichText/index.js.map +1 -0
  137. package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
  138. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
  139. package/lib/components/field/ScalarList/ScalarList.js +32 -0
  140. package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
  141. package/lib/components/field/ScalarList/index.d.ts +2 -0
  142. package/lib/components/field/ScalarList/index.d.ts.map +1 -0
  143. package/lib/components/field/ScalarList/index.js +2 -0
  144. package/lib/components/field/ScalarList/index.js.map +1 -0
  145. package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
  146. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  147. package/lib/components/field/SemanticLink/SemanticLink.js +11 -19
  148. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  149. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  150. package/lib/components/field/SemanticLink/utils.js +8 -8
  151. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  152. package/lib/components/field/TextArea/TextArea.d.ts +6 -1
  153. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  154. package/lib/components/field/TextArea/TextArea.js +8 -6
  155. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  156. package/lib/components/field/TextContent/TextContent.d.ts +7 -1
  157. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  158. package/lib/components/field/TextContent/TextContent.js +2 -2
  159. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  160. package/lib/components/field/TextInput/TextInput.d.ts +6 -1
  161. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  162. package/lib/components/field/TextInput/TextInput.js +10 -7
  163. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  164. package/lib/components/field/TextInput/index.js.map +1 -1
  165. package/lib/components/field/Time/Time.d.ts +5 -1
  166. package/lib/components/field/Time/Time.d.ts.map +1 -1
  167. package/lib/components/field/Time/Time.js +11 -9
  168. package/lib/components/field/Time/Time.js.map +1 -1
  169. package/lib/components/field/URL/URL.d.ts +5 -1
  170. package/lib/components/field/URL/URL.d.ts.map +1 -1
  171. package/lib/components/field/URL/URL.js +10 -8
  172. package/lib/components/field/URL/URL.js.map +1 -1
  173. package/lib/components/field/URL/index.js.map +1 -1
  174. package/lib/components/field/UserReference/UserReference.d.ts +20 -41
  175. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  176. package/lib/components/field/UserReference/UserReference.js +17 -46
  177. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  178. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  179. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  180. package/lib/components/helpers/attachmentHelpers.d.ts +3 -3
  181. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  182. package/lib/components/helpers/attachmentHelpers.js +6 -6
  183. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  184. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  185. package/lib/components/helpers/case-utils.js +5 -4
  186. package/lib/components/helpers/case-utils.js.map +1 -1
  187. package/lib/components/helpers/common-utils.d.ts +2 -1
  188. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  189. package/lib/components/helpers/common-utils.js +4 -1
  190. package/lib/components/helpers/common-utils.js.map +1 -1
  191. package/lib/components/helpers/data_page.d.ts.map +1 -1
  192. package/lib/components/helpers/data_page.js +2 -3
  193. package/lib/components/helpers/data_page.js.map +1 -1
  194. package/lib/components/helpers/date-format-utils.d.ts +1 -6
  195. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  196. package/lib/components/helpers/date-format-utils.js.map +1 -1
  197. package/lib/components/helpers/event-utils.d.ts +1 -1
  198. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  199. package/lib/components/helpers/event-utils.js +3 -3
  200. package/lib/components/helpers/event-utils.js.map +1 -1
  201. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  202. package/lib/components/helpers/field-group-utils.js +3 -7
  203. package/lib/components/helpers/field-group-utils.js.map +1 -1
  204. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  205. package/lib/components/helpers/formatters/Boolean.js +9 -20
  206. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  207. package/lib/components/helpers/formatters/Currency.d.ts +6 -6
  208. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  209. package/lib/components/helpers/formatters/Currency.js +13 -14
  210. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  211. package/lib/components/helpers/formatters/CurrencyMap.d.ts +69 -320
  212. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  213. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  214. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  215. package/lib/components/helpers/formatters/Date.d.ts +5 -5
  216. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  217. package/lib/components/helpers/formatters/Date.js +20 -20
  218. package/lib/components/helpers/formatters/Date.js.map +1 -1
  219. package/lib/components/helpers/formatters/common.d.ts +1 -1
  220. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  221. package/lib/components/helpers/formatters/common.js +1 -1
  222. package/lib/components/helpers/formatters/common.js.map +1 -1
  223. package/lib/components/helpers/formatters/index.d.ts +12 -12
  224. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  225. package/lib/components/helpers/formatters/index.js +25 -19
  226. package/lib/components/helpers/formatters/index.js.map +1 -1
  227. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  228. package/lib/components/helpers/reactContextHelpers.js +1 -1
  229. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  230. package/lib/components/helpers/simpleTableHelpers.d.ts +3 -1
  231. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  232. package/lib/components/helpers/simpleTableHelpers.js +48 -54
  233. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  234. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  235. package/lib/components/helpers/state-utils.js +6 -8
  236. package/lib/components/helpers/state-utils.js.map +1 -1
  237. package/lib/components/helpers/template-utils.d.ts +7 -3
  238. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  239. package/lib/components/helpers/template-utils.js +2 -2
  240. package/lib/components/helpers/template-utils.js.map +1 -1
  241. package/lib/components/helpers/utils.d.ts +1 -1
  242. package/lib/components/helpers/utils.d.ts.map +1 -1
  243. package/lib/components/helpers/utils.js +3 -8
  244. package/lib/components/helpers/utils.js.map +1 -1
  245. package/lib/components/helpers/versionHelpers.d.ts +6 -0
  246. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  247. package/lib/components/helpers/versionHelpers.js +7 -1
  248. package/lib/components/helpers/versionHelpers.js.map +1 -1
  249. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
  250. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  251. package/lib/components/infra/ActionButtons/ActionButtons.js +11 -27
  252. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  253. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  254. package/lib/components/infra/Assignment/Assignment.d.ts +9 -16
  255. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  256. package/lib/components/infra/Assignment/Assignment.js +71 -74
  257. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  258. package/lib/components/infra/Assignment/index.js.map +1 -1
  259. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +7 -15
  260. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  261. package/lib/components/infra/AssignmentCard/AssignmentCard.js +6 -20
  262. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  263. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  264. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +10 -20
  265. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  266. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +63 -192
  267. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  268. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  269. package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
  270. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  271. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  272. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  273. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  274. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
  275. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  276. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  277. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  278. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  279. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  280. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -17
  281. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  282. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +179 -172
  283. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  284. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  285. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  286. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  287. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  288. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  289. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  290. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  291. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  292. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  293. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  294. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  295. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  296. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  297. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
  298. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  299. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +24 -44
  300. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  301. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  302. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  303. package/lib/components/infra/Containers/helpers.js +7 -0
  304. package/lib/components/infra/Containers/helpers.js.map +1 -0
  305. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -20
  306. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  307. package/lib/components/infra/DashboardFilter/DashboardFilter.js +15 -33
  308. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  309. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  310. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  311. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  312. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +8 -13
  313. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  314. package/lib/components/infra/DeferLoad/DeferLoad.js +11 -22
  315. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  316. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  317. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
  318. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  319. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +17 -26
  320. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  321. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  322. package/lib/components/infra/MultiStep/MultiStep.d.ts +10 -18
  323. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  324. package/lib/components/infra/MultiStep/MultiStep.js +32 -97
  325. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  326. package/lib/components/infra/MultiStep/index.js.map +1 -1
  327. package/lib/components/infra/NavBar/NavBar.css +103 -105
  328. package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
  329. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  330. package/lib/components/infra/NavBar/NavBar.js +19 -66
  331. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  332. package/lib/components/infra/Reference/Reference.d.ts +8 -17
  333. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  334. package/lib/components/infra/Reference/Reference.js +5 -17
  335. package/lib/components/infra/Reference/Reference.js.map +1 -1
  336. package/lib/components/infra/Region/Region.d.ts +4 -8
  337. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  338. package/lib/components/infra/Region/Region.js +2 -7
  339. package/lib/components/infra/Region/Region.js.map +1 -1
  340. package/lib/components/infra/RootContainer/RootContainer.d.ts +13 -20
  341. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  342. package/lib/components/infra/RootContainer/RootContainer.js +41 -80
  343. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  344. package/lib/components/infra/RootContainer/index.js.map +1 -1
  345. package/lib/components/infra/Stages/Stages.d.ts +5 -8
  346. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  347. package/lib/components/infra/Stages/Stages.js +19 -27
  348. package/lib/components/infra/Stages/Stages.js.map +1 -1
  349. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  350. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  351. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  352. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
  353. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  354. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +13 -17
  355. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  356. package/lib/components/infra/View/View.d.ts +13 -17
  357. package/lib/components/infra/View/View.d.ts.map +1 -1
  358. package/lib/components/infra/View/View.js +10 -32
  359. package/lib/components/infra/View/View.js.map +1 -1
  360. package/lib/components/template/AppShell/AppShell.css +22 -23
  361. package/lib/components/template/AppShell/AppShell.d.ts +20 -16
  362. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  363. package/lib/components/template/AppShell/AppShell.js +27 -45
  364. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  365. package/lib/components/template/BannerPage/BannerPage.d.ts +12 -24
  366. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  367. package/lib/components/template/BannerPage/BannerPage.js +7 -25
  368. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  369. package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -8
  370. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  371. package/lib/components/template/CaseSummary/CaseSummary.js +48 -12
  372. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  373. package/lib/components/template/CaseView/CaseView.d.ts +10 -23
  374. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  375. package/lib/components/template/CaseView/CaseView.js +22 -58
  376. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  377. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -15
  378. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  379. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -19
  380. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  381. package/lib/components/template/Confirmation/Confirmation.d.ts +10 -17
  382. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  383. package/lib/components/template/Confirmation/Confirmation.js +10 -28
  384. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  385. package/lib/components/template/DataReference/DataReference.d.ts +15 -30
  386. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  387. package/lib/components/template/DataReference/DataReference.js +35 -72
  388. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  389. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  390. package/lib/components/template/DefaultForm/DefaultForm.d.ts +7 -11
  391. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  392. package/lib/components/template/DefaultForm/DefaultForm.js +5 -15
  393. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  394. package/lib/components/template/Details/Details/Details.d.ts +7 -15
  395. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  396. package/lib/components/template/Details/Details/Details.js +8 -21
  397. package/lib/components/template/Details/Details/Details.js.map +1 -1
  398. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -16
  399. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  400. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +6 -23
  401. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  402. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -15
  403. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  404. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +9 -22
  405. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  406. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -15
  407. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  408. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +9 -22
  409. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  410. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  411. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +10 -0
  412. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
  413. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +45 -0
  414. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
  415. package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
  416. package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
  417. package/lib/components/template/Details/DynamicTabs/index.js +2 -0
  418. package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
  419. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
  420. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  421. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +11 -26
  422. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  423. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -8
  424. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  425. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -14
  426. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  427. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -16
  428. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  429. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +9 -17
  430. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  431. package/lib/components/template/ListPage/ListPage.d.ts +5 -13
  432. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  433. package/lib/components/template/ListPage/ListPage.js +7 -11
  434. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  435. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  436. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  437. package/lib/components/template/ListView/ListView.d.ts +15 -8
  438. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  439. package/lib/components/template/ListView/ListView.js +168 -258
  440. package/lib/components/template/ListView/ListView.js.map +1 -1
  441. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  442. package/lib/components/template/ListView/hooks.js +4 -6
  443. package/lib/components/template/ListView/hooks.js.map +1 -1
  444. package/lib/components/template/ListView/utils.d.ts +45 -1
  445. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  446. package/lib/components/template/ListView/utils.js +165 -32
  447. package/lib/components/template/ListView/utils.js.map +1 -1
  448. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
  449. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  450. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +5 -16
  451. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  452. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  453. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +11 -2
  454. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  455. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  456. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  457. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -15
  458. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  459. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +9 -22
  460. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  461. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  462. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +6 -2
  463. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  464. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  465. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  466. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +8 -15
  467. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  468. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +7 -18
  469. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  470. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +5 -8
  471. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  472. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -13
  473. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  474. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
  475. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  476. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +5 -8
  477. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  478. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +5 -8
  479. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  480. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -7
  481. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  482. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  483. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +9 -14
  484. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  485. package/lib/components/template/PromotedFilters/PromotedFilters.js +14 -27
  486. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  487. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  488. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  489. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +62 -13
  490. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  491. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +24 -2
  492. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  493. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +120 -130
  494. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  495. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -29
  496. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  497. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +15 -33
  498. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  499. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
  500. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  501. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +8 -29
  502. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  503. package/lib/components/template/SubTabs/SubTabs.d.ts +5 -11
  504. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  505. package/lib/components/template/SubTabs/SubTabs.js +7 -17
  506. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  507. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  508. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  509. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  510. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  511. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +6 -12
  512. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  513. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +15 -24
  514. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  515. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
  516. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  517. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +5 -8
  518. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  519. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +6 -12
  520. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  521. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +15 -21
  522. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  523. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  524. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +11 -2
  525. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  526. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +3 -11
  527. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  528. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -15
  529. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  530. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +23 -26
  531. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  532. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  533. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +6 -2
  534. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  535. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  536. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  537. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +8 -15
  538. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  539. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +7 -17
  540. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  541. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  542. package/lib/components/template/WssNavBar/WssNavBar.d.ts +18 -1
  543. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  544. package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
  545. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  546. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +9 -17
  547. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  548. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +13 -37
  549. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  550. package/lib/components/widget/Attachment/Attachment.css +60 -1
  551. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  552. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  553. package/lib/components/widget/Attachment/Attachment.js +277 -343
  554. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  555. package/lib/components/widget/Attachment/index.js.map +1 -1
  556. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
  557. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  558. package/lib/components/widget/CaseHistory/CaseHistory.js +38 -36
  559. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  560. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  561. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +9 -1
  562. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  563. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  564. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  565. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  566. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
  567. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  568. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +121 -140
  569. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  570. package/lib/components/widget/Followers/Followers.d.ts +5 -6
  571. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  572. package/lib/components/widget/Followers/Followers.js +10 -25
  573. package/lib/components/widget/Followers/Followers.js.map +1 -1
  574. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  575. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  576. package/lib/components/widget/QuickCreate/QuickCreate.js +59 -29
  577. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  578. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  579. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +8 -1
  580. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  581. package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
  582. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  583. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  584. package/lib/components/widget/SummaryList/SummaryList.d.ts +8 -1
  585. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  586. package/lib/components/widget/SummaryList/SummaryList.js +6 -3
  587. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  588. package/lib/components/widget/ToDo/ToDo.css +4 -4
  589. package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
  590. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  591. package/lib/components/widget/ToDo/ToDo.js +26 -98
  592. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  593. package/lib/components_map.d.ts +2 -2
  594. package/lib/components_map.d.ts.map +1 -1
  595. package/lib/components_map.js +4 -2
  596. package/lib/components_map.js.map +1 -1
  597. package/lib/doc/KeyReleaseUpdates.md +39 -0
  598. package/lib/hooks/index.d.ts +4 -0
  599. package/lib/hooks/index.d.ts.map +1 -0
  600. package/lib/hooks/index.js +4 -0
  601. package/lib/hooks/index.js.map +1 -0
  602. package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
  603. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
  604. package/lib/hooks/useAfterInitialEffect.js +16 -0
  605. package/lib/hooks/useAfterInitialEffect.js.map +1 -0
  606. package/lib/hooks/useConsolidatedRef.d.ts +9 -0
  607. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
  608. package/lib/hooks/useConsolidatedRef.js +30 -0
  609. package/lib/hooks/useConsolidatedRef.js.map +1 -0
  610. package/lib/hooks/useUID.d.ts +8 -0
  611. package/lib/hooks/useUID.d.ts.map +1 -0
  612. package/lib/hooks/useUID.js +14 -0
  613. package/lib/hooks/useUID.js.map +1 -0
  614. package/lib/index.d.ts +1 -0
  615. package/lib/index.d.ts.map +1 -1
  616. package/lib/index.js +2 -1
  617. package/lib/index.js.map +1 -1
  618. package/lib/sdk-local-component-map.js +2 -2
  619. package/lib/sdk-pega-component-map.d.ts +21 -1
  620. package/lib/sdk-pega-component-map.js +112 -92
  621. package/lib/sdk-pega-component-map.js.map +1 -1
  622. package/lib/types/PConnProps.d.ts +41 -0
  623. package/package.json +5 -2
  624. package/lib/components/helpers/auth.d.ts +0 -16
  625. package/lib/components/helpers/auth.d.ts.map +0 -1
  626. package/lib/components/helpers/auth.js +0 -437
  627. package/lib/components/helpers/auth.js.map +0 -1
  628. package/lib/components/helpers/authManager.d.ts +0 -18
  629. package/lib/components/helpers/authManager.d.ts.map +0 -1
  630. package/lib/components/helpers/authManager.js +0 -592
  631. package/lib/components/helpers/authManager.js.map +0 -1
  632. package/lib/components/helpers/config_access.d.ts +0 -3
  633. package/lib/components/helpers/config_access.d.ts.map +0 -1
  634. package/lib/components/helpers/config_access.js +0 -261
  635. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalTabs.js","sourceRoot":"","sources":["../../../../../src/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAG5D,+FAA+F;AAC/F,2FAA2F;AAC3F,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACpC;IACA,IAAI,EAAE;QACJ,cAAc,EAAE;YACd,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;YACxC,KAAK,EAAE,KAAK;SACb;KACF;CACJ,CAAC,CAAC,CAAC;AAEJ,8CAA8C;AAC9C,4FAA4F;AAC5F,MAAM,iBAAiB,GAAG,CAAC,SAAiB,EAAE,cAAuC,EAAsB,EAAE;IAC3G,IAAI,MAAM,EAAE;QACV,OAAO,IAAI,WAAW,CAAC,SAAS,EAAE;YAChC,MAAM,EAAE,EAAE,cAAc,EAAE;SAC3B,CAAC,CAAC;KACJ;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAGF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK;IACxC,sFAAsF;IACtF,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtC,SAAS,CAAC,GAAG,EAAE;QAEb,MAAM,SAAS,GAAG,EAAC,aAAa,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAC,CAAC;QACpD,MAAM,OAAO,GAAG,iBAAiB,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;QAEjE,IAAI,OAAO,KAAK,IAAI,EAAE;YACpB,QAAQ,CAAC,aAAa,CAAE,OAAO,CAAE,CAAC;SACnC;IAEH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,YAAY,GAAG,CAAC,KAA4B,EAAE,QAAgB,EAAE,EAAE;QACtE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,CACL,6BAAK,EAAE,EAAC,cAAc;QAEpB,oBAAC,IAAI,IACH,SAAS,EAAE,OAAO,CAAC,IAAI,EACvB,WAAW,EAAC,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,IACrB,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,oBAAC,oBAAoB,OAAK,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,GAAI,CAAC,CACvF,CACH,CACP,CAAA;AACH,CAAC;AAED,YAAY,CAAC,YAAY,GAAG;IAC1B,SAAS,EAAE,EAAE;CACd,CAAC;AAEF,YAAY,CAAC,SAAS,GAAG;IACvB,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;CAC/C,CAAC","sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from '@material-ui/core/styles'\n\nimport Tabs from '@material-ui/core/Tabs';\nimport LeftAlignVerticalTab from '../LeftAlignVerticalTabs';\n\n\n// The MuiTabs-indicator class is in a span whose parent is div (under the Tabs root component)\n// So, we're going to make the selected vertical tab indicator use a color from our theme.\nconst useStyles = makeStyles((theme) => (\n {\n tabs: {\n '& div > span': {\n backgroundColor: theme.palette.info.dark,\n width: \"3px\"\n },\n },\n}));\n\n// Implementation of custom event inspired by:\n// https://betterprogramming.pub/master-your-react-skills-with-event-listeners-ebc01dde4fad\nconst createCustomEvent = (eventName: string, additionalData: {[key: string]: string}): CustomEvent | null => {\n if (window) {\n return new CustomEvent(eventName, {\n detail: { additionalData }\n });\n }\n\n return null;\n};\n\n\nexport default function VerticalTabs(props) {\n // Get a React warning when we use tabConfig as mixed case. So all lowercase tabconfig\n const { tabconfig } = props;\n const classes = useStyles();\n const [value, setValue] = useState(0);\n\n useEffect(() => {\n\n const eventData = {\"itemClicked\": value.toString()};\n const myEvent = createCustomEvent('VerticalTabClick', eventData);\n\n if (myEvent !== null) {\n document.dispatchEvent( myEvent );\n }\n\n }, [value]);\n\n const handleChange = (event: React.ChangeEvent<{}>, newValue: number) => {\n setValue(newValue);\n };\n\n return (\n <div id=\"VerticalTabs\">\n {/* VerticalTabs: {JSON.stringify(tabconfig)} */}\n <Tabs\n className={classes.tabs}\n orientation=\"vertical\"\n value={value}\n onChange={handleChange}>\n {tabconfig.map((tab) => <LeftAlignVerticalTab {...props} label={tab.name} key={tab.name} />)}\n </Tabs>\n </div>\n )\n}\n\nVerticalTabs.defaultProps = {\n tabconfig: []\n};\n\nVerticalTabs.propTypes = {\n tabconfig: PropTypes.arrayOf(PropTypes.object)\n};\n"]}
1
+ {"version":3,"file":"VerticalTabs.js","sourceRoot":"","sources":["../../../../../src/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAQnF,+FAA+F;AAC/F,2FAA2F;AAC3F,MAAM,SAAS,GAAG,U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OAAO,CACL,cAAK,EAAE,EAAC,cAAc,YAEpB,KAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,EAAC,UAAU,EAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,YACvF,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACpB,eAAC,oBAAoB,OAAK,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,GAAI,CACpE,CAAC,GACG,GACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState, useEffect } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Tabs from '@material-ui/core/Tabs';\n\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\n// VerticalTabs does NOT have getPConnect. So, no need to extend from PConnProps\ninterface VerticalTabsProps {\n // If any, enter additional props that only exist on this component\n tabconfig: any[];\n}\n\n// The MuiTabs-indicator class is in a span whose parent is div (under the Tabs root component)\n// So, we're going to make the selected vertical tab indicator use a color from our theme.\nconst useStyles = makeStyles(theme => ({\n tabs: {\n '& div > span': {\n backgroundColor: theme.palette.info.dark,\n width: '3px'\n }\n }\n}));\n\n// Implementation of custom event inspired by:\n// https://betterprogramming.pub/master-your-react-skills-with-event-listeners-ebc01dde4fad\nconst createCustomEvent = (eventName: string, additionalData: { [key: string]: string }): CustomEvent | null => {\n if (window) {\n return new CustomEvent(eventName, {\n detail: { additionalData }\n });\n }\n\n return null;\n};\n\nexport default function VerticalTabs(props: VerticalTabsProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const LeftAlignVerticalTab = getComponentFromMap('LeftAlignVerticalTabs');\n\n // Get a React warning when we use tabConfig as mixed case. So all lowercase tabconfig\n const { tabconfig = [] } = props;\n const classes = useStyles();\n const [value, setValue] = useState(0);\n\n useEffect(() => {\n const eventData = { itemClicked: value.toString() };\n const myEvent = createCustomEvent('VerticalTabClick', eventData);\n\n if (myEvent !== null) {\n document.dispatchEvent(myEvent);\n }\n }, [value]);\n\n const handleChange = (event: React.ChangeEvent<{}>, newValue: number) => {\n setValue(newValue);\n };\n\n return (\n <div id='VerticalTabs'>\n {/* VerticalTabs: {JSON.stringify(tabconfig)} */}\n <Tabs className={classes.tabs} orientation='vertical' value={value} onChange={handleChange}>\n {tabconfig.map(tab => (\n <LeftAlignVerticalTab {...props} label={tab.name} key={tab.name} />\n ))}\n </Tabs>\n </div>\n );\n}\n"]}
@@ -1,22 +1,18 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
1
+ import { PropsWithChildren } from 'react';
2
+ import { PConnProps } from '../../../types/PConnProps';
3
3
  import './View.css';
4
- declare function View(props: any): JSX.Element | "" | null;
4
+ interface ViewProps extends PConnProps {
5
+ template?: string;
6
+ label?: string;
7
+ showLabel: boolean;
8
+ mode?: string;
9
+ title?: string;
10
+ visibility?: boolean;
11
+ name?: string;
12
+ bInForm?: boolean;
13
+ }
14
+ declare function View(props: PropsWithChildren<ViewProps>): JSX.Element | "" | null;
5
15
  declare namespace View {
6
- var defaultProps: {
7
- label: undefined;
8
- showLabel: undefined;
9
- mode: undefined;
10
- };
11
- var propTypes: {
12
- children: PropTypes.Requireable<any[]>;
13
- template: PropTypes.Requireable<string>;
14
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
15
- label: PropTypes.Requireable<string>;
16
- showLabel: PropTypes.Requireable<boolean>;
17
- mode: PropTypes.Requireable<string>;
18
- title: PropTypes.Requireable<string>;
19
- };
20
16
  var additionalProps: (state: any, getPConnect: any) => {};
21
17
  }
22
18
  export default View;
@@ -1 +1 @@
1
- {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAUnC,OAAO,YAAY,CAAC;AAmBpB,iBAAwB,IAAI,CAAC,KAAK,KAAA,2BAkFjC;kBAlFuB,IAAI;;;;;;;;;;;;;;;;;eAAJ,IAAI"}
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD,OAAO,YAAY,CAAC;AAEpB,UAAU,SAAU,SAAQ,UAAU;IAEpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAqBD,iBAAwB,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,2BAsF/D;kBAtFuB,IAAI;;;eAAJ,IAAI"}
@@ -1,7 +1,4 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- // import { FieldGroup } from "@pega/cosmos-react-core";
4
- // import { LazyMap as LazyComponentMap } from "../../components_map";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
5
2
  import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
6
3
  import { getAllFields } from '../../helpers/template-utils';
7
4
  // Need to import any templates that we might render
@@ -20,14 +17,15 @@ const NO_HEADER_TEMPLATES = [
20
17
  'DetailsThreeColumn',
21
18
  'NarrowWideDetails',
22
19
  'WideNarrowDetails',
23
- 'Confirmation'
20
+ 'Confirmation',
21
+ 'DynamicTabs'
24
22
  ];
25
23
  export default function View(props) {
26
24
  const { children, template, getPConnect, mode, visibility, name: pageName } = props;
27
- let { label, showLabel = false } = props;
25
+ let { label = '', showLabel = false } = props;
28
26
  // Get the inherited props from the parent to determine label settings. For 8.6, this is only for embedded data form views
29
27
  // Putting this logic here instead of copy/paste in every Form template index.js
30
- const inheritedProps = getPConnect().getInheritedProps();
28
+ const inheritedProps = getPConnect().getInheritedProps(); // try to remove any when getInheritedProps typedefs are fixed
31
29
  label = inheritedProps.label || label;
32
30
  showLabel = inheritedProps.showLabel || showLabel;
33
31
  const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible
@@ -54,7 +52,7 @@ export default function View(props) {
54
52
  // for debugging/investigation
55
53
  // console.log(`View rendering template: ${template}`);
56
54
  // spreading because all props should go to the template
57
- let RenderedTemplate = React.createElement(ViewTemplate, { key: key, ...props }, children);
55
+ let RenderedTemplate = (_jsx(ViewTemplate, { ...props, children: children }, key));
58
56
  if (FORMTEMPLATES.includes(template) && showLabel) {
59
57
  // Original:
60
58
  // RenderedTemplate = (
@@ -62,38 +60,18 @@ export default function View(props) {
62
60
  // {RenderedTemplate}
63
61
  // </FieldGroup>
64
62
  // );
65
- RenderedTemplate = (React.createElement("div", { "data-name": 'RenderedTemplate', "data-template-type": template,
66
- /* name */ id: 'label', style: { marginBlockStart: '1rem' }, className: 'grid-column' }, RenderedTemplate));
63
+ RenderedTemplate = (_jsx("div", { "data-name": 'RenderedTemplate', "data-template-type": template,
64
+ /* name */ id: 'label', style: { marginBlockStart: '1rem' }, className: 'grid-column', children: RenderedTemplate }));
67
65
  }
68
- return (React.createElement("div", { className: 'grid-column' },
69
- showLabel && !NO_HEADER_TEMPLATES.includes(template) && (React.createElement("div", { className: 'template-title-container' },
70
- React.createElement("span", null, label))),
71
- RenderedTemplate));
66
+ return (_jsxs("div", { className: 'grid-column', children: [showLabel && !NO_HEADER_TEMPLATES.includes(template) && (_jsx("div", { className: 'template-title-container', children: _jsx("span", { children: label }) })), RenderedTemplate] }));
72
67
  }
73
68
  // debugging/investigation help
74
69
  // console.log(`View about to render React.Fragment for children: ${children}`);
75
70
  if (children) {
76
- return React.createElement(React.Fragment, null, children);
71
+ return _jsx(_Fragment, { children: children });
77
72
  }
78
73
  return null;
79
74
  }
80
- View.defaultProps = {
81
- label: undefined,
82
- showLabel: undefined,
83
- mode: undefined
84
- };
85
- View.propTypes = {
86
- children: PropTypes.oneOfType([
87
- PropTypes.arrayOf(PropTypes.node),
88
- PropTypes.array
89
- ]) /* array might be empty */,
90
- template: PropTypes.string /* .isRequired */,
91
- getPConnect: PropTypes.func.isRequired,
92
- label: PropTypes.string,
93
- showLabel: PropTypes.bool,
94
- mode: PropTypes.string,
95
- title: PropTypes.string
96
- };
97
75
  // Adapted from Constellation DX Component to add in additional props for some templates
98
76
  View.additionalProps = (state, getPConnect) => {
99
77
  const thePConn = getPConnect();
@@ -1 +1 @@
1
- {"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,wDAAwD;AACxD,sEAAsE;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,oDAAoD;AAEpD,OAAO,YAAY,CAAC;AACpB,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM,aAAa,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAC5F,MAAM,mBAAmB,GAAG;IAC1B,SAAS;IACT,aAAa;IACb,SAAS;IACT,kBAAkB;IAClB,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,cAAc;CACf,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK;IAChC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,GA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MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAE/C,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,QAAQ,QAAQ,EAAE;QAChB,KAAK,aAAa;YAChB,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,gDAAgD;YAChD,MAAM,WAAW,GAAG;gBAClB,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;gBAC3B,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC;aAC9B,CAAC;YACF,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YACnD,MAAM;QAER,KAAK,SAAS;YACZ,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACnC,MAAM;QAER;YACE,MAAM;KACT;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n// import { FieldGroup } from \"@pega/cosmos-react-core\";\n// import { LazyMap as LazyComponentMap } from \"../../components_map\";\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\nimport { getAllFields } from '../../helpers/template-utils';\n\n// Need to import any templates that we might render\n\nimport './View.css';\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst FORMTEMPLATES = ['OneColumn', 'TwoColumn', 'DefaultForm', 'WideNarrow', 'NarrowWide'];\nconst NO_HEADER_TEMPLATES = [\n 'SubTabs',\n 'SimpleTable',\n 'Details',\n 'DetailsTwoColumn',\n 'DetailsThreeColumn',\n 'NarrowWideDetails',\n 'WideNarrowDetails',\n 'Confirmation'\n];\n\nexport default function View(props) {\n const { children, template, getPConnect, mode, visibility, name: pageName } = props;\n let { label, showLabel = false } = props;\n\n // Get the inherited props from the parent to determine label settings. For 8.6, this is only for embedded data form views\n // Putting this logic here instead of copy/paste in every Form template index.js\n\n const inheritedProps = getPConnect().getInheritedProps();\n label = inheritedProps.label || label;\n showLabel = inheritedProps.showLabel || showLabel;\n\n const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible\n if (isEmbeddedDataView && showLabel === undefined) {\n showLabel = true;\n }\n\n const key = `${getPConnect().getContextName()}_${getPConnect().getPageReference()}_${pageName}`;\n // As long as the template is defined in the dependencies of the view\n // it will be loaded, otherwise fall back to single column\n if (visibility === false) {\n return '';\n }\n\n // As long as the template is defined in the dependencies of the view\n // it will be loaded, otherwise fall back to single column\n // JA - React SDK not using LazyComponentMap yet\n if (template /* && LazyComponentMap[template] */) {\n // const ViewTemplate = LazyComponentMap[template];\n const ViewTemplate: any = getComponentFromMap(template);\n\n if (template === 'ListView') {\n // special case for ListView - add in a prop\n const bInForm = true;\n props = { ...props, bInForm };\n }\n\n // for debugging/investigation\n // console.log(`View rendering template: ${template}`);\n\n // spreading because all props should go to the template\n let RenderedTemplate = <ViewTemplate key={key} {...props}>{children}</ViewTemplate>;\n\n if (FORMTEMPLATES.includes(template) && showLabel) {\n // Original:\n // RenderedTemplate = (\n // <FieldGroup name={label} style={{ marginBlockStart: \"1rem\" }}>\n // {RenderedTemplate}\n // </FieldGroup>\n // );\n RenderedTemplate = (\n <div\n data-name='RenderedTemplate'\n data-template-type={template}\n /* name */ id='label'\n style={{ marginBlockStart: '1rem' }}\n className='grid-column'\n >\n {RenderedTemplate}\n </div>\n );\n }\n\n return (\n <div className='grid-column'>\n {showLabel && !NO_HEADER_TEMPLATES.includes(template) && (\n <div className='template-title-container'>\n <span>{label}</span>\n </div>\n )}\n {RenderedTemplate}\n </div>\n );\n }\n\n // debugging/investigation help\n // console.log(`View about to render React.Fragment for children: ${children}`);\n\n if (children) {\n return <>{children}</>;\n }\n\n return null;\n}\n\nView.defaultProps = {\n label: undefined,\n showLabel: undefined,\n mode: undefined\n};\n\nView.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.array\n ]) /* array might be empty */,\n template: PropTypes.string /* .isRequired */,\n getPConnect: PropTypes.func.isRequired,\n label: PropTypes.string,\n showLabel: PropTypes.bool,\n mode: PropTypes.string,\n title: PropTypes.string\n};\n\n// Adapted from Constellation DX Component to add in additional props for some templates\nView.additionalProps = (state, getPConnect) => {\n const thePConn = getPConnect();\n const { template } = thePConn.getConfigProps();\n\n let propObj = {};\n let allFields = {};\n\n switch (template) {\n case 'CaseSummary':\n allFields = getAllFields(thePConn);\n // eslint-disable-next-line no-case-declarations\n const unresFields = {\n primaryFields: allFields[0],\n secondaryFields: allFields[1]\n };\n propObj = thePConn.resolveConfigProps(unresFields);\n break;\n\n case 'Details':\n allFields = getAllFields(thePConn);\n propObj = { fields: allFields[0] };\n break;\n\n default:\n break;\n }\n\n return propObj;\n};\n"]}
1
+ {"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,oDAAoD;AAEpD,OAAO,YAAY,CAAC;AAcpB,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM,aAAa,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAC5F,MAAM,mBAAmB,GAAG;IAC1B,SAAS;IACT,aAAa;IACb,SAAS;IACT,kBAAkB;IAClB,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,cAAc;IACd,aAAa;CACd,CAAC;AAEF,MAAM,CAAC,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C,CAAC,CAAC;aAC9B,CAAC;YACF,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YACnD,MAAM;QAER,KAAK,SAAS;YACZ,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACnC,MAAM;QAER;YACE,MAAM;KACT;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import { PropsWithChildren } from 'react';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { getAllFields } from '../../helpers/template-utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\n// Need to import any templates that we might render\n\nimport './View.css';\n\ninterface ViewProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n template?: string;\n label?: string;\n showLabel: boolean;\n mode?: string;\n title?: string;\n visibility?: boolean;\n name?: string;\n bInForm?: boolean;\n}\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst FORMTEMPLATES = ['OneColumn', 'TwoColumn', 'DefaultForm', 'WideNarrow', 'NarrowWide'];\nconst NO_HEADER_TEMPLATES = [\n 'SubTabs',\n 'SimpleTable',\n 'Details',\n 'DetailsTwoColumn',\n 'DetailsThreeColumn',\n 'NarrowWideDetails',\n 'WideNarrowDetails',\n 'Confirmation',\n 'DynamicTabs'\n];\n\nexport default function View(props: PropsWithChildren<ViewProps>) {\n const { children, template, getPConnect, mode, visibility, name: pageName } = props;\n let { label = '', showLabel = false } = props;\n\n // Get the inherited props from the parent to determine label settings. For 8.6, this is only for embedded data form views\n // Putting this logic here instead of copy/paste in every Form template index.js\n\n const inheritedProps: any = getPConnect().getInheritedProps(); // try to remove any when getInheritedProps typedefs are fixed\n label = inheritedProps.label || label;\n showLabel = inheritedProps.showLabel || showLabel;\n\n const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible\n if (isEmbeddedDataView && showLabel === undefined) {\n showLabel = true;\n }\n\n const key = `${getPConnect().getContextName()}_${getPConnect().getPageReference()}_${pageName}`;\n // As long as the template is defined in the dependencies of the view\n // it will be loaded, otherwise fall back to single column\n if (visibility === false) {\n return '';\n }\n\n // As long as the template is defined in the dependencies of the view\n // it will be loaded, otherwise fall back to single column\n // JA - React SDK not using LazyComponentMap yet\n if (template /* && LazyComponentMap[template] */) {\n // const ViewTemplate = LazyComponentMap[template];\n const ViewTemplate: any = getComponentFromMap(template);\n\n if (template === 'ListView') {\n // special case for ListView - add in a prop\n const bInForm = true;\n props = { ...props, bInForm };\n }\n\n // for debugging/investigation\n // console.log(`View rendering template: ${template}`);\n\n // spreading because all props should go to the template\n let RenderedTemplate = (\n <ViewTemplate key={key} {...props}>\n {children}\n </ViewTemplate>\n );\n\n if (FORMTEMPLATES.includes(template) && showLabel) {\n // Original:\n // RenderedTemplate = (\n // <FieldGroup name={label} style={{ marginBlockStart: \"1rem\" }}>\n // {RenderedTemplate}\n // </FieldGroup>\n // );\n RenderedTemplate = (\n <div\n data-name='RenderedTemplate'\n data-template-type={template}\n /* name */ id='label'\n style={{ marginBlockStart: '1rem' }}\n className='grid-column'\n >\n {RenderedTemplate}\n </div>\n );\n }\n\n return (\n <div className='grid-column'>\n {showLabel && !NO_HEADER_TEMPLATES.includes(template) && (\n <div className='template-title-container'>\n <span>{label}</span>\n </div>\n )}\n {RenderedTemplate}\n </div>\n );\n }\n\n // debugging/investigation help\n // console.log(`View about to render React.Fragment for children: ${children}`);\n\n if (children) {\n return <>{children}</>;\n }\n\n return null;\n}\n\n// Adapted from Constellation DX Component to add in additional props for some templates\nView.additionalProps = (state, getPConnect) => {\n const thePConn = getPConnect();\n const { template } = thePConn.getConfigProps();\n\n let propObj = {};\n let allFields = {};\n\n switch (template) {\n case 'CaseSummary':\n allFields = getAllFields(thePConn);\n // eslint-disable-next-line no-case-declarations\n const unresFields = {\n primaryFields: allFields[0],\n secondaryFields: allFields[1]\n };\n propObj = thePConn.resolveConfigProps(unresFields);\n break;\n\n case 'Details':\n allFields = getAllFields(thePConn);\n propObj = { fields: allFields[0] };\n break;\n\n default:\n break;\n }\n\n return propObj;\n};\n"]}
@@ -1,40 +1,39 @@
1
1
  .appshell-top {
2
- display: flex;
3
- background-color: var(--app-background-color);
2
+ display: flex;
3
+ background-color: var(--app-background-color);
4
4
  }
5
5
 
6
-
7
6
  .appshell-main {
8
- position: relative;
9
- min-height: 100vh;
10
- display: block;
11
- width: 100%;
7
+ position: relative;
8
+ min-height: 100vh;
9
+ display: block;
10
+ width: 100%;
12
11
  }
13
12
 
14
13
  .psdk-icon {
15
- padding: 0rem 0.125rem;
16
- min-width: unset;
14
+ padding: 0rem 0.125rem;
15
+ min-width: unset;
17
16
  }
18
17
 
19
18
  .progress-box {
20
- display: flex;
21
- flex-direction: column;
22
- justify-content: center;
23
- align-items: center;
24
- height: 100%;
25
- width: 100%;
26
- background-color: whitesmoke;
27
- position: fixed;
28
- z-index: 999;
29
- top: 0rem;
30
- left: 0rem;
31
- opacity: 0.5;
19
+ display: flex;
20
+ flex-direction: column;
21
+ justify-content: center;
22
+ align-items: center;
23
+ height: 100%;
24
+ width: 100%;
25
+ background-color: whitesmoke;
26
+ position: fixed;
27
+ z-index: 999;
28
+ top: 0rem;
29
+ left: 0rem;
30
+ opacity: 0.5;
32
31
  }
33
32
 
34
33
  .progress-spinner {
35
- text-align: center;
34
+ text-align: center;
36
35
  }
37
36
 
38
37
  ::ng-deep snack-bar-container.snackbar-newline {
39
- white-space: pre-line;
38
+ white-space: pre-line;
40
39
  }
@@ -1,20 +1,24 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
1
+ import { PropsWithChildren } from 'react';
2
+ import { PConnProps } from '../../../types/PConnProps';
3
3
  import './AppShell.css';
4
- declare function AppShell(props: any): JSX.Element;
5
- declare namespace AppShell {
6
- var defaultProps: {
7
- pages: never[];
8
- caseTypes: never[];
9
- children: never[];
10
- };
11
- var propTypes: {
12
- showAppName: PropTypes.Requireable<boolean>;
13
- pages: PropTypes.Requireable<(object | null | undefined)[]>;
14
- caseTypes: PropTypes.Requireable<(object | null | undefined)[]>;
15
- children: PropTypes.Requireable<PropTypes.ReactNodeLike[]>;
16
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
4
+ interface AppShellProps extends PConnProps {
5
+ showAppName: boolean;
6
+ pages: {
7
+ pxPageViewIcon: string;
8
+ pyClassName: string;
9
+ pyLabel: string;
10
+ pyRuleName: string;
11
+ pyURLContent: string;
12
+ }[];
13
+ caseTypes?: object[];
14
+ portalTemplate: string;
15
+ portalName: string;
16
+ portalLogo: string;
17
+ navDisplayOptions: {
18
+ alignment: string;
19
+ position: string;
17
20
  };
18
21
  }
19
- export default AppShell;
22
+ export default function AppShell(props: PropsWithChildren<AppShellProps>): JSX.Element;
23
+ export {};
20
24
  //# sourceMappingURL=AppShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AppShell/AppShell.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,gBAAgB,CAAC;AA6BxB,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eAyLrC;kBAzLuB,QAAQ;;;;;;;;;;;;;;eAAR,QAAQ"}
1
+ {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AppShell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAO/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,gBAAgB,CAAC;AAExB,UAAU,aAAc,SAAQ,UAAU;IAExC,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;KACtB,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5D;AAqBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,aAAa,CAAC,eAkKvE"}
@@ -1,13 +1,11 @@
1
- import React, { useEffect, useState } from 'react';
2
- import PropTypes from 'prop-types';
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
3
  import { makeStyles } from '@material-ui/core/styles';
4
- import { Utils } from '../../helpers/utils';
5
4
  import Avatar from '@material-ui/core/Avatar';
5
+ import { Utils } from '../../helpers/utils';
6
6
  import { NavContext } from '../../helpers/reactContextHelpers';
7
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
7
8
  import './AppShell.css';
8
- // AppShell can emit NavBar or WssNavBar
9
- import NavBar from '../../infra/NavBar';
10
- import WssNavBar from '../../template/WssNavBar';
11
9
  const useStyles = makeStyles(theme => ({
12
10
  root: {
13
11
  display: 'flex'
@@ -27,9 +25,12 @@ const useStyles = makeStyles(theme => ({
27
25
  }
28
26
  }));
29
27
  export default function AppShell(props) {
30
- const { pages, caseTypes, showAppName, children, getPConnect, portalTemplate, portalName, portalLogo, navDisplayOptions } = props;
28
+ // Get emitted components from map (so we can get any override that may exist)
29
+ const NavBar = getComponentFromMap('NavBar');
30
+ const WssNavBar = getComponentFromMap('WssNavBar');
31
+ const { pages = [], caseTypes = [], showAppName, children = [], getPConnect, portalTemplate, portalName, portalLogo, navDisplayOptions } = props;
31
32
  const [open, setOpen] = useState(true);
32
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
33
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
34
  const [activeTab, setActiveTab] = useState(!pages ? null : pages[0]?.pyRuleName);
34
35
  const pConn = getPConnect();
35
36
  const envInfo = PCore.getEnvironmentInfo();
@@ -37,27 +38,25 @@ export default function AppShell(props) {
37
38
  const userName = envInfo.getOperatorName();
38
39
  const currentUserInitials = Utils.getInitials(userName);
39
40
  const appNameToDisplay = showAppName ? envInfo.getApplicationLabel() : '';
40
- const portalClass = pConn.getValue('.classID');
41
+ const portalClass = pConn.getValue('.classID', ''); // 2nd arg empty string until typedef marked correctly
41
42
  const envPortalName = envInfo.getPortalName();
42
43
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
43
44
  const classes = useStyles();
44
45
  const actionsAPI = pConn.getActionsApi();
45
- const localeReference = pConn.getValue('.pyLocaleReference');
46
+ const localeReference = pConn.getValue('.pyLocaleReference', ''); // 2nd arg empty string until typedef marked correctly
46
47
  const [imageBlobUrl, setImageBlobUrl] = useState(null);
47
48
  // useState for appName and mapChildren - note these are ONLY updated once (on component mount!)
48
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
49
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
49
50
  const [appName, setAppName] = useState('');
50
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
51
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
51
52
  const [mapChildren, setMapChildren] = useState([]);
52
53
  // Initial setting of appName and mapChildren
53
54
  useEffect(() => {
54
55
  setAppName(PCore.getEnvironmentInfo().getApplicationName());
55
- const tempMap = pConn.getChildren().map((child, index) => {
56
+ const tempMap = pConn.getChildren()?.map((child, index) => {
56
57
  const theChildComp = child.getPConnect().getComponentName();
57
58
  const theKey = `.${index}`;
58
- return (React.createElement("div", { id: theChildComp, key: theKey, style: { border: 'solid 1px silver', margin: '1px' } },
59
- theChildComp,
60
- " will be here"));
59
+ return (_jsxs("div", { id: theChildComp, style: { border: 'solid 1px silver', margin: '1px' }, children: [theChildComp, " will be here"] }, theKey));
61
60
  });
62
61
  setMapChildren(tempMap);
63
62
  }, []);
@@ -98,7 +97,7 @@ export default function AppShell(props) {
98
97
  }, []);
99
98
  const getOperator = () => {
100
99
  return {
101
- avatar: portalTemplate !== 'wss' ? React.createElement(Avatar, null) : { name: userName, imageSrc: imageBlobUrl },
100
+ avatar: portalTemplate !== 'wss' ? _jsx(Avatar, {}) : { name: userName, imageSrc: imageBlobUrl },
102
101
  name: userName,
103
102
  currentUserInitials
104
103
  };
@@ -118,9 +117,7 @@ export default function AppShell(props) {
118
117
  name,
119
118
  icon: page.pxPageViewIcon.replace('pi pi-', ''),
120
119
  active: page.pyRuleName === activeTab,
121
- onClick: () => !page.pyURLContent || page.pyURLContent === ''
122
- ? showPage(page.pyRuleName, page.pyClassName)
123
- : openURL(page.pyURLContent)
120
+ onClick: () => (!page.pyURLContent || page.pyURLContent === '' ? showPage(page.pyRuleName, page.pyClassName) : openURL(page.pyURLContent))
124
121
  };
125
122
  });
126
123
  if (pConn.hasChildren()) {
@@ -131,31 +128,16 @@ export default function AppShell(props) {
131
128
  // console.log(`--> ${mapChildCompNames.map((name) => {return name;})}`);
132
129
  }
133
130
  if (portalTemplate === 'wss') {
134
- return (React.createElement("div", { id: 'AppShell' },
135
- React.createElement(WssNavBar, { portalName: portalName, imageSrc: iconURL, fullImageSrc: fullIconURL, appName: localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()), appInfo: {
136
- imageSrc: iconURL,
137
- appName: localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()),
138
- onClick: links[0] && links[0].onClick ? links[0].onClick : undefined
139
- }, navLinks: links.filter((link, index) => {
140
- return index !== 0;
141
- }), operator: getOperator(), navDisplayOptions: navDisplayOptions }),
142
- React.createElement("div", { className: classes.wsscontent }, children)));
131
+ return (_jsxs("div", { id: 'AppShell', children: [_jsx(WssNavBar, { portalName: portalName, imageSrc: iconURL, fullImageSrc: fullIconURL, appName: localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()), appInfo: {
132
+ imageSrc: iconURL,
133
+ appName: localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()),
134
+ onClick: links[0] && /* links[0].onClick ? */ links[0].onClick /* : undefined */
135
+ }, navLinks: links.filter((link, index) => {
136
+ return index !== 0;
137
+ }), operator: getOperator(), navDisplayOptions: navDisplayOptions }), _jsx("div", { className: classes.wsscontent, children: children })] }));
143
138
  }
144
- return (React.createElement(NavContext.Provider, { value: { open, setOpen } },
145
- React.createElement("div", { id: 'AppShell', className: classes.root },
146
- React.createElement(NavBar, { pConn: getPConnect(), appName: localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()), pages: pages, caseTypes: caseTypes }),
147
- React.createElement("div", { className: classes.content }, children))));
139
+ return (
140
+ // eslint-disable-next-line react/jsx-no-constructed-context-values
141
+ _jsx(NavContext.Provider, { value: { open, setOpen }, children: _jsxs("div", { id: 'AppShell', className: classes.root, children: [_jsx(NavBar, { getPConnect: getPConnect, pConn: getPConnect(), appName: localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()), pages: pages, caseTypes: caseTypes }), _jsx("div", { className: classes.content, children: children })] }) }));
148
142
  }
149
- AppShell.defaultProps = {
150
- pages: [],
151
- caseTypes: [],
152
- children: []
153
- };
154
- AppShell.propTypes = {
155
- showAppName: PropTypes.bool /* .isRequired */,
156
- pages: PropTypes.arrayOf(PropTypes.object),
157
- caseTypes: PropTypes.arrayOf(PropTypes.object),
158
- children: PropTypes.arrayOf(PropTypes.node),
159
- getPConnect: PropTypes.func.isRequired
160
- };
161
143
  //# sourceMappingURL=AppShell.js.map
@@ -1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,QAAQ,EAAE,EAAE;CACb,CAAC;AACF,QAAQ,CAAC,SAAS,GAAG;IACnB,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,iBAAiB;IAC7C,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;IAC3C,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CACvC,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Utils } from '../../helpers/utils';\nimport Avatar from '@material-ui/core/Avatar';\nimport { NavContext } from '../../helpers/reactContextHelpers';\nimport './AppShell.css';\n\n// AppShell can emit NavBar or WssNavBar\nimport NavBar from '../../infra/NavBar';\nimport WssNavBar from '../../template/WssNavBar';\n\nconst useStyles = makeStyles(theme => ({\n root: {\n display: 'flex'\n },\n content: {\n flexGrow: 1,\n height: '100vh',\n overflow: 'auto',\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n },\n wsscontent: {\n flexGrow: 1,\n height: '100vh',\n marginLeft: theme.spacing(1),\n marginRight: theme.spacing(1)\n }\n}));\n\n// Remove this and use \"real\" PCore type once .d.ts is fixed (currently shows 1 error)\ndeclare const PCore: any;\n\n\nexport default function AppShell(props) {\n const {\n pages,\n caseTypes,\n showAppName,\n children,\n getPConnect,\n portalTemplate,\n portalName,\n portalLogo,\n navDisplayOptions\n } = props;\n const [open, setOpen] = useState(true);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [activeTab, setActiveTab] = useState(!pages ? null : pages[0]?.pyRuleName);\n const pConn = getPConnect();\n const envInfo = PCore.getEnvironmentInfo();\n const imageKey = envInfo.getOperatorImageInsKey();\n const userName = envInfo.getOperatorName();\n const currentUserInitials = Utils.getInitials(userName);\n const appNameToDisplay = showAppName ? envInfo.getApplicationLabel() : '';\n const portalClass = pConn.getValue('.classID');\n const envPortalName = envInfo.getPortalName();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n\n const classes = useStyles();\n const actionsAPI = pConn.getActionsApi();\n const localeReference = pConn.getValue('.pyLocaleReference');\n const [imageBlobUrl, setImageBlobUrl] = useState(null);\n // useState for appName and mapChildren - note these are ONLY updated once (on component mount!)\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [appName, setAppName] = useState('');\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [mapChildren, setMapChildren] = useState([]);\n\n // Initial setting of appName and mapChildren\n useEffect(() => {\n setAppName(PCore.getEnvironmentInfo().getApplicationName());\n\n const tempMap = pConn.getChildren().map((child, index) => {\n const theChildComp = child.getPConnect().getComponentName();\n const theKey = `.${index}`;\n return (\n <div id={theChildComp} key={theKey} style={{ border: 'solid 1px silver', margin: '1px' }}>\n {theChildComp} will be here\n </div>\n );\n });\n\n setMapChildren(tempMap);\n }, []);\n\n const [iconURL, setIconURL] = useState('');\n const [fullIconURL, setFullIconURL] = useState('');\n useEffect(() => {\n // using the default icon then fetch it from the static folder (not auth involved)\n if (\n !portalLogo ||\n portalLogo.toLowerCase().includes('pzpega-logo-mark') ||\n portalLogo.toLowerCase().includes('py-logo') ||\n portalLogo.toLowerCase().includes('py-full-logo')\n ) {\n const portalLogoImage = Utils.getIconPath(Utils.getSDKStaticConentUrl()).concat(\n 'pzpega-logo-mark.svg'\n );\n setIconURL(portalLogoImage);\n setFullIconURL(`${Utils.getSDKStaticConentUrl()}static/py-full-logo.svg`);\n }\n // not using default icon to fetch it using the way which uses authentication\n else {\n PCore.getAssetLoader()\n .getSvcImage(portalLogo)\n .then(blob => window.URL.createObjectURL(blob))\n .then(data => {\n setIconURL(data);\n setFullIconURL(data);\n })\n .catch(() => {\n // eslint-disable-next-line no-console\n console.error(\n `${localizedVal('Unable to load the image for the portal logo/icon with the insName', 'AppShell')}:${portalLogo}`\n );\n });\n }\n }, [portalLogo]);\n\n useEffect(() => {\n if (imageKey && portalTemplate === 'wss') {\n PCore.getAssetLoader()\n .getSvcImage(imageKey)\n .then(blob => window.URL.createObjectURL(blob))\n .then(imagePath => setImageBlobUrl(imagePath));\n }\n }, []);\n\n const getOperator = () => {\n return {\n avatar: portalTemplate !== 'wss' ? <Avatar /> : { name: userName, imageSrc: imageBlobUrl },\n name: userName,\n currentUserInitials\n };\n };\n\n function showPage(viewName, className) {\n actionsAPI.showPage(viewName, className);\n }\n\n function openURL(URL) {\n window.open(URL, '_blank');\n }\n\n const links = !pages\n ? []\n : pages.map(page => {\n const name = localizedVal(page.pyLabel, '', localeReference);\n return {\n text: name,\n name,\n icon: page.pxPageViewIcon.replace('pi pi-', ''),\n active: page.pyRuleName === activeTab,\n onClick: () =>\n !page.pyURLContent || page.pyURLContent === ''\n ? showPage(page.pyRuleName, page.pyClassName)\n : openURL(page.pyURLContent)\n };\n });\n\n if (pConn.hasChildren()) {\n // const theChildren = pConn.getChildren();\n // const mapChildCompNames = theChildren.map((child) => { return child.getPConnect().getComponentName()});\n // debugging/investigation help\n // console.log(`AppShell has children: ${theChildren.length}`);\n // console.log(`--> ${mapChildCompNames.map((name) => {return name;})}`);\n }\n\n if (portalTemplate === 'wss') {\n return (\n <div id='AppShell'>\n <WssNavBar\n portalName={portalName}\n imageSrc={iconURL}\n fullImageSrc={fullIconURL}\n appName={localizedVal(\n appNameToDisplay,\n '',\n `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()\n )}\n appInfo={{\n imageSrc: iconURL,\n appName: localizedVal(\n appNameToDisplay,\n '',\n `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()\n ),\n onClick: links[0] && links[0].onClick ? links[0].onClick : undefined\n }}\n navLinks={links.filter((link, index) => {\n return index !== 0;\n })}\n operator={getOperator()}\n navDisplayOptions={navDisplayOptions}\n />\n <div className={classes.wsscontent}>{children}</div>\n </div>\n\n );\n }\n\n return (\n <NavContext.Provider value={{ open, setOpen }}>\n <div id='AppShell' className={classes.root}>\n <NavBar\n pConn={getPConnect()}\n appName={localizedVal(\n appNameToDisplay,\n '',\n `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()\n )}\n pages={pages}\n caseTypes={caseTypes}\n ></NavBar>\n <div className={classes.content}>{children}</div>\n </div>\n </NavContext.Provider>\n );\n}\n\nAppShell.defaultProps = {\n pages: [],\n caseTypes: [],\n children: []\n};\nAppShell.propTypes = {\n showAppName: PropTypes.bool /* .isRequired */,\n pages: PropTypes.arrayOf(PropTypes.object),\n caseTypes: PropTypes.arrayOf(PropTypes.object),\n children: PropTypes.arrayOf(PropTypes.node),\n getPConnect: PropTypes.func.isRequired\n};\n"]}
1
+ {"version":3,"file":"AppShell.js","sourceRoot":"","sources":["../../../../src/components/template/AppShell/AppShell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,gBAAgB,CAAC;AAmBxB,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM;KAChB;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,C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CAAC,UAAU,YAAG,QAAQ,GAAO,IAChD,CACP,CAAC;KACH;IAED,OAAO;IACL,mEAAmE;IACnE,KAAC,UAAU,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,YAC3C,eAAK,EAAE,EAAC,UAAU,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,aACxC,KAAC,MAAM,IACL,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,WAAW,EAAE,EACpB,OAAO,EAAE,YAAY,CAAC,gBAAgB,EAAE,EAAE,EAAE,GAAG,WAAW,WAAW,aAAa,EAAE,CAAC,WAAW,EAAE,CAAC,EACnG,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GACpB,EACF,cAAK,SAAS,EAAE,OAAO,CAAC,OAAO,YAAG,QAAQ,GAAO,IAC7C,GACc,CACvB,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, useEffect, useState } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Avatar from '@material-ui/core/Avatar';\n\nimport { Utils } from '../../helpers/utils';\nimport { NavContext } from '../../helpers/reactContextHelpers';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './AppShell.css';\n\ninterface AppShellProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n showAppName: boolean;\n pages: {\n pxPageViewIcon: string;\n pyClassName: string;\n pyLabel: string;\n pyRuleName: string;\n pyURLContent: string;\n }[];\n caseTypes?: object[];\n portalTemplate: string;\n portalName: string;\n portalLogo: string;\n navDisplayOptions: { alignment: string; position: string };\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n display: 'flex'\n },\n content: {\n flexGrow: 1,\n height: '100vh',\n overflow: 'auto',\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n },\n wsscontent: {\n flexGrow: 1,\n height: '100vh',\n marginLeft: theme.spacing(1),\n marginRight: theme.spacing(1)\n }\n}));\n\nexport default function AppShell(props: PropsWithChildren<AppShellProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const NavBar = getComponentFromMap('NavBar');\n const WssNavBar = getComponentFromMap('WssNavBar');\n\n const { pages = [], caseTypes = [], showAppName, children = [], getPConnect, portalTemplate, portalName, portalLogo, navDisplayOptions } = props;\n\n const [open, setOpen] = useState(true);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [activeTab, setActiveTab] = useState(!pages ? null : pages[0]?.pyRuleName);\n const pConn = getPConnect();\n const envInfo = PCore.getEnvironmentInfo();\n const imageKey = envInfo.getOperatorImageInsKey();\n const userName = envInfo.getOperatorName();\n const currentUserInitials = Utils.getInitials(userName);\n const appNameToDisplay = showAppName ? envInfo.getApplicationLabel() : '';\n const portalClass = pConn.getValue('.classID', ''); // 2nd arg empty string until typedef marked correctly\n const envPortalName = envInfo.getPortalName();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n\n const classes = useStyles();\n const actionsAPI = pConn.getActionsApi();\n const localeReference = pConn.getValue('.pyLocaleReference', ''); // 2nd arg empty string until typedef marked correctly\n const [imageBlobUrl, setImageBlobUrl] = useState<string | null>(null);\n // useState for appName and mapChildren - note these are ONLY updated once (on component mount!)\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [appName, setAppName] = useState('');\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [mapChildren, setMapChildren] = useState([]);\n\n // Initial setting of appName and mapChildren\n useEffect(() => {\n setAppName(PCore.getEnvironmentInfo().getApplicationName());\n\n const tempMap: any = (pConn.getChildren() as any)?.map((child: any, index) => {\n const theChildComp = child.getPConnect().getComponentName();\n const theKey = `.${index}`;\n return (\n <div id={theChildComp} key={theKey} style={{ border: 'solid 1px silver', margin: '1px' }}>\n {theChildComp} will be here\n </div>\n );\n });\n\n setMapChildren(tempMap);\n }, []);\n\n const [iconURL, setIconURL] = useState('');\n const [fullIconURL, setFullIconURL] = useState('');\n useEffect(() => {\n // using the default icon then fetch it from the static folder (not auth involved)\n if (\n !portalLogo ||\n portalLogo.toLowerCase().includes('pzpega-logo-mark') ||\n portalLogo.toLowerCase().includes('py-logo') ||\n portalLogo.toLowerCase().includes('py-full-logo')\n ) {\n const portalLogoImage = Utils.getIconPath(Utils.getSDKStaticConentUrl()).concat('pzpega-logo-mark.svg');\n setIconURL(portalLogoImage);\n setFullIconURL(`${Utils.getSDKStaticConentUrl()}static/py-full-logo.svg`);\n }\n // not using default icon to fetch it using the way which uses authentication\n else {\n PCore.getAssetLoader()\n .getSvcImage(portalLogo)\n .then(blob => window.URL.createObjectURL(blob))\n .then(data => {\n setIconURL(data);\n setFullIconURL(data);\n })\n .catch(() => {\n // eslint-disable-next-line no-console\n console.error(`${localizedVal('Unable to load the image for the portal logo/icon with the insName', 'AppShell')}:${portalLogo}`);\n });\n }\n }, [portalLogo]);\n\n useEffect(() => {\n if (imageKey && portalTemplate === 'wss') {\n PCore.getAssetLoader()\n .getSvcImage(imageKey)\n .then(blob => window.URL.createObjectURL(blob))\n .then(imagePath => setImageBlobUrl(imagePath));\n }\n }, []);\n\n const getOperator = () => {\n return {\n avatar: portalTemplate !== 'wss' ? <Avatar /> : { name: userName, imageSrc: imageBlobUrl },\n name: userName,\n currentUserInitials\n };\n };\n\n function showPage(viewName, className) {\n actionsAPI.showPage(viewName, className);\n }\n\n function openURL(URL) {\n window.open(URL, '_blank');\n }\n\n const links = !pages\n ? []\n : pages.map(page => {\n const name = localizedVal(page.pyLabel, '', localeReference);\n return {\n text: name,\n name,\n icon: page.pxPageViewIcon.replace('pi pi-', ''),\n active: page.pyRuleName === activeTab,\n onClick: () => (!page.pyURLContent || page.pyURLContent === '' ? showPage(page.pyRuleName, page.pyClassName) : openURL(page.pyURLContent))\n };\n });\n\n if (pConn.hasChildren()) {\n // const theChildren = pConn.getChildren();\n // const mapChildCompNames = theChildren.map((child) => { return child.getPConnect().getComponentName()});\n // debugging/investigation help\n // console.log(`AppShell has children: ${theChildren.length}`);\n // console.log(`--> ${mapChildCompNames.map((name) => {return name;})}`);\n }\n\n if (portalTemplate === 'wss') {\n return (\n <div id='AppShell'>\n <WssNavBar\n portalName={portalName}\n imageSrc={iconURL}\n fullImageSrc={fullIconURL}\n appName={localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase())}\n appInfo={{\n imageSrc: iconURL,\n appName: localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase()),\n onClick: links[0] && /* links[0].onClick ? */ links[0].onClick /* : undefined */\n }}\n navLinks={links.filter((link, index) => {\n return index !== 0;\n })}\n operator={getOperator()}\n navDisplayOptions={navDisplayOptions}\n />\n <div className={classes.wsscontent}>{children}</div>\n </div>\n );\n }\n\n return (\n // eslint-disable-next-line react/jsx-no-constructed-context-values\n <NavContext.Provider value={{ open, setOpen }}>\n <div id='AppShell' className={classes.root}>\n <NavBar\n getPConnect={getPConnect}\n pConn={getPConnect()}\n appName={localizedVal(appNameToDisplay, '', `${portalClass}!PORTAL!${envPortalName}`.toUpperCase())}\n pages={pages}\n caseTypes={caseTypes}\n />\n <div className={classes.content}>{children}</div>\n </div>\n </NavContext.Provider>\n );\n}\n"]}
@@ -1,26 +1,14 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function BannerPage(props: any): JSX.Element;
4
- declare namespace BannerPage {
5
- var propTypes: {
6
- children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
7
- layout: PropTypes.Requireable<string>;
8
- heading: PropTypes.Requireable<string>;
9
- message: PropTypes.Requireable<string>;
10
- imageTheme: PropTypes.Requireable<string>;
11
- backgroundImage: PropTypes.Requireable<string>;
12
- backgroundColor: PropTypes.Requireable<string>;
13
- tintImage: PropTypes.Requireable<boolean>;
14
- };
15
- var defaultProps: {
16
- layout: string;
17
- heading: string;
18
- message: string;
19
- imageTheme: string;
20
- backgroundImage: string;
21
- backgroundColor: string;
22
- tintImage: boolean;
23
- };
1
+ import { PropsWithChildren } from 'react';
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface BannerPageProps extends PConnProps {
4
+ layout?: string;
5
+ heading?: string;
6
+ message?: string;
7
+ imageTheme?: string;
8
+ backgroundImage?: string;
9
+ backgroundColor?: string;
10
+ tintImage?: boolean;
24
11
  }
25
- export default BannerPage;
12
+ export default function BannerPage(props: PropsWithChildren<BannerPageProps>): JSX.Element;
13
+ export {};
26
14
  //# sourceMappingURL=BannerPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BannerPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/BannerPage/BannerPage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAOnC,iBAAwB,UAAU,CAAC,KAAK,KAAA,eA+BvC;kBA/BuB,UAAU;;;;;;;;;;;;;;;;;;;;;eAAV,UAAU"}
1
+ {"version":3,"file":"BannerPage.d.ts","sourceRoot":"","sources":["../../../../src/components/template/BannerPage/BannerPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAG7D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,eAAgB,SAAQ,UAAU;IAE1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAKD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,eAkC3E"}
@@ -1,16 +1,17 @@
1
- import { useMemo, Children } from 'react';
2
- import PropTypes from 'prop-types';
3
- import Banner from '../../designSystemExtension/Banner';
4
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Children, useMemo } from 'react';
3
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
5
4
  /*
6
5
  * BannerPage template.
7
6
  */
8
7
  export default function BannerPage(props) {
9
- const { children, layout, heading, message, imageTheme, backgroundImage, backgroundColor, tintImage } = props;
8
+ // Get emitted components from map (so we can get any override that may exist)
9
+ const Banner = getComponentFromMap('Banner');
10
+ const { children, layout = 'two-column', heading = '', message = '', imageTheme = 'light', backgroundImage = '', backgroundColor = '', tintImage = false } = props;
10
11
  const childArray = useMemo(() => {
11
12
  return Children.toArray(children);
12
13
  }, [children]);
13
- return (React.createElement(Banner, { variant: layout, a: childArray[0], b: childArray[1], banner: {
14
+ return (_jsx(Banner, { variant: layout, a: childArray[0], b: childArray[1], banner: {
14
15
  variant: imageTheme,
15
16
  backgroundColor,
16
17
  title: heading,
@@ -19,23 +20,4 @@ export default function BannerPage(props) {
19
20
  tintImage
20
21
  } }));
21
22
  }
22
- BannerPage.propTypes = {
23
- children: PropTypes.arrayOf(PropTypes.node).isRequired,
24
- layout: PropTypes.string,
25
- heading: PropTypes.string,
26
- message: PropTypes.string,
27
- imageTheme: PropTypes.string,
28
- backgroundImage: PropTypes.string,
29
- backgroundColor: PropTypes.string,
30
- tintImage: PropTypes.bool
31
- };
32
- BannerPage.defaultProps = {
33
- layout: 'two-column',
34
- heading: '',
35
- message: '',
36
- imageTheme: 'light',
37
- backgroundImage: '',
38
- backgroundColor: '',
39
- tintImage: false
40
- };
41
23
  //# sourceMappingURL=BannerPage.js.map