@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":"BannerPage.js","sourceRoot":"","sources":["../../../../src/components/template/BannerPage/BannerPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK;IACtC,MAAM,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAU,EACV,eAAe,EACf,eAAe,EACf,SAAS,EACV,GAAG,KAAK,CAAC;IAEV,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9B,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,oBAAC,MAAM,IACL,OAAO,EAAE,MAAM,EACf,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,MAAM,EAAE;YACN,OAAO,EAAE,UAAU;YACnB,eAAe;YACf,KAAK,EAAE,OAAO;YACd,OAAO;YACP,eAAe;YACf,SAAS;SACV,GACD,CACH,CAAC;AACJ,CAAC;AAED,UAAU,CAAC,SAAS,GAAG;IACrB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;IACtD,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,OAAO,EAAE,SAAS,CAAC,MAAM;IACzB,OAAO,EAAE,SAAS,CAAC,MAAM;IACzB,UAAU,EAAE,SAAS,CAAC,MAAM;IAC5B,eAAe,EAAE,SAAS,CAAC,MAAM;IACjC,eAAe,EAAE,SAAS,CAAC,MAAM;IACjC,SAAS,EAAE,SAAS,CAAC,IAAI;CAC1B,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG;IACxB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,OAAO;IACnB,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,KAAK;CACjB,CAAC","sourcesContent":["import { useMemo, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport Banner from '../../designSystemExtension/Banner';\nimport React from 'react';\n\n/*\n * BannerPage template.\n */\nexport default function BannerPage(props) {\n const {\n children,\n layout,\n heading,\n message,\n imageTheme,\n backgroundImage,\n backgroundColor,\n tintImage\n } = props;\n\n const childArray = useMemo(() => {\n return Children.toArray(children);\n }, [children]);\n\n return (\n <Banner\n variant={layout}\n a={childArray[0]}\n b={childArray[1]}\n banner={{\n variant: imageTheme,\n backgroundColor,\n title: heading,\n message,\n backgroundImage,\n tintImage\n }}\n />\n );\n}\n\nBannerPage.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n layout: PropTypes.string,\n heading: PropTypes.string,\n message: PropTypes.string,\n imageTheme: PropTypes.string,\n backgroundImage: PropTypes.string,\n backgroundColor: PropTypes.string,\n tintImage: PropTypes.bool\n};\n\nBannerPage.defaultProps = {\n layout: 'two-column',\n heading: '',\n message: '',\n imageTheme: 'light',\n backgroundImage: '',\n backgroundColor: '',\n tintImage: false\n};\n"]}
1
+ {"version":3,"file":"BannerPage.js","sourceRoot":"","sources":["../../../../src/components/template/BannerPage/BannerPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAqB,OAAO,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAchF;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAyC;IAC1E,8EAA8E;IAC9E,MAAM,MAAM,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAE7C,MAAM,EACJ,QAAQ,EACR,MAAM,GAAG,YAAY,EACrB,OAAO,GAAG,EAAE,EACZ,OAAO,GAAG,EAAE,EACZ,UAAU,GAAG,OAAO,EACpB,eAAe,GAAG,EAAE,EACpB,eAAe,GAAG,EAAE,EACpB,SAAS,GAAG,KAAK,EAClB,GAAG,KAAK,CAAC;IAEV,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9B,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,KAAC,MAAM,IACL,OAAO,EAAE,MAAM,EACf,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAChB,MAAM,EAAE;YACN,OAAO,EAAE,UAAU;YACnB,eAAe;YACf,KAAK,EAAE,OAAO;YACd,OAAO;YACP,eAAe;YACf,SAAS;SACV,GACD,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { Children, PropsWithChildren, useMemo } from 'react';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface BannerPageProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n layout?: string;\n heading?: string;\n message?: string;\n imageTheme?: string;\n backgroundImage?: string;\n backgroundColor?: string;\n tintImage?: boolean;\n}\n\n/*\n * BannerPage template.\n */\nexport default function BannerPage(props: PropsWithChildren<BannerPageProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const Banner = getComponentFromMap('Banner');\n\n const {\n children,\n layout = 'two-column',\n heading = '',\n message = '',\n imageTheme = 'light',\n backgroundImage = '',\n backgroundColor = '',\n tintImage = false\n } = props;\n\n const childArray = useMemo(() => {\n return Children.toArray(children);\n }, [children]);\n\n return (\n <Banner\n variant={layout}\n a={childArray[0]}\n b={childArray[1]}\n banner={{\n variant: imageTheme,\n backgroundColor,\n title: heading,\n message,\n backgroundImage,\n tintImage\n }}\n />\n );\n}\n"]}
@@ -1,10 +1,7 @@
1
- /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function CaseSummary(props: any): JSX.Element;
4
- declare namespace CaseSummary {
5
- var propTypes: {
6
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
7
- };
1
+ import { PropsWithChildren } from 'react';
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface CaseSummaryProps extends PConnProps {
8
4
  }
9
- export default CaseSummary;
5
+ export default function CaseSummary(props: PropsWithChildren<CaseSummaryProps>): JSX.Element;
6
+ export {};
10
7
  //# sourceMappingURL=CaseSummary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,iBAAwB,WAAW,CAAC,KAAK,KAAA,eAwCxC;kBAxCuB,WAAW;;;;;eAAX,WAAW"}
1
+ {"version":3,"file":"CaseSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgB,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,gBAAiB,SAAQ,UAAU;CAE5C;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,eAwF7E"}
@@ -1,11 +1,16 @@
1
- import React from "react";
2
- import PropTypes from "prop-types";
3
- import CaseSummaryFields from '../../designSystemExtension/CaseSummaryFields';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
4
3
  export default function CaseSummary(props) {
4
+ // Get emitted components from map (so we can get any override that may exist)
5
+ const CaseSummaryFields = getComponentFromMap('CaseSummaryFields');
5
6
  const { getPConnect, children } = props;
6
7
  const thePConn = getPConnect();
7
8
  const theConfigProps = thePConn.getConfigProps();
8
- const { status, showStatus } = theConfigProps;
9
+ // const { status, showStatus } = theConfigProps;
10
+ const status = theConfigProps.status;
11
+ const showStatus = theConfigProps.showStatus;
12
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
13
+ const localeCategory = 'ModalContainer';
9
14
  // from Constellation DX Components
10
15
  // get the primary and secondary fields with the raw data (which has the non-resolved property values)
11
16
  // const regionsRaw = getPConnect().getRawMetadata().children;
@@ -15,14 +20,50 @@ export default function CaseSummary(props) {
15
20
  // may want to move these into useEffect/useState combo
16
21
  let arPrimaryFields = [];
17
22
  let arSecondaryFields = [];
23
+ /* eslint-disable @typescript-eslint/no-shadow */
24
+ function prepareComponentInCaseSummary(pConnectMeta, getPConnect) {
25
+ const { config, children } = pConnectMeta;
26
+ const pConnect = getPConnect();
27
+ const caseSummaryComponentObject = {};
28
+ const { type } = pConnectMeta;
29
+ const createdComponent = pConnect.createComponent({
30
+ type,
31
+ children: children ? [...children] : [],
32
+ config: {
33
+ ...config
34
+ }
35
+ });
36
+ caseSummaryComponentObject.value = createdComponent;
37
+ return caseSummaryComponentObject;
38
+ }
39
+ function prepareCaseSummaryData(summaryFieldChildren) {
40
+ const convertChildrenToSummaryData = kid => {
41
+ return kid?.map((childItem, index) => {
42
+ const childMeta = childItem.getPConnect().meta;
43
+ const caseSummaryComponentObject = prepareComponentInCaseSummary(childMeta, childItem.getPConnect);
44
+ caseSummaryComponentObject.id = index + 1;
45
+ return caseSummaryComponentObject;
46
+ });
47
+ };
48
+ return summaryFieldChildren ? convertChildrenToSummaryData(summaryFieldChildren?.getChildren()) : undefined;
49
+ }
18
50
  for (const child of children) {
19
51
  const childPConn = child.props.getPConnect();
20
52
  const childPConnData = childPConn.resolveConfigProps(childPConn.getRawMetadata());
21
- if (childPConnData.name.toLowerCase() === "primary fields") {
53
+ if (childPConnData.name.toLowerCase() === 'primary fields') {
22
54
  arPrimaryFields = childPConnData.children;
55
+ arPrimaryFields.forEach(field => {
56
+ if (field.config?.value && typeof field.config?.value === 'string') {
57
+ field.config.value = localizedVal(field.config.value, localeCategory);
58
+ }
59
+ });
23
60
  }
24
- else if (childPConnData.name.toLowerCase() === "secondary fields") {
61
+ else if (childPConnData.name.toLowerCase() === 'secondary fields') {
62
+ const secondarySummaryFields = prepareCaseSummaryData(childPConn);
25
63
  arSecondaryFields = childPConnData.children;
64
+ arSecondaryFields.forEach((field, index) => {
65
+ field.config.displayLabel = secondarySummaryFields[index]?.value?.props?.label;
66
+ });
26
67
  }
27
68
  }
28
69
  // At this point, should hand off to another component for layout and rendering
@@ -30,11 +71,6 @@ export default function CaseSummary(props) {
30
71
  // debugging/investigation help
31
72
  // console.log(`CaseSummary: arPrimaryFields: ${JSON.stringify(arPrimaryFields)}`);
32
73
  // console.log(`CaseSummary: arSecondaryFields: ${JSON.stringify(arSecondaryFields)}`);
33
- return (React.createElement("div", { id: "CaseSummary" },
34
- React.createElement(CaseSummaryFields, { status: status, showStatus: showStatus, theFields: arPrimaryFields }),
35
- React.createElement(CaseSummaryFields, { theFields: arSecondaryFields })));
74
+ return (_jsxs("div", { id: 'CaseSummary', children: [_jsx(CaseSummaryFields, { status: status, showStatus: showStatus, theFields: arPrimaryFields }), _jsx(CaseSummaryFields, { theFields: arSecondaryFields })] }));
36
75
  }
37
- CaseSummary.propTypes = {
38
- getPConnect: PropTypes.func.isRequired
39
- };
40
76
  //# sourceMappingURL=CaseSummary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSummary.js","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B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B,GAAI,CAC/C,CACP,CAAA;AACH,CAAC;AAED,WAAW,CAAC,SAAS,GAAG;IACtB,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CACvC,CAAC","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport CaseSummaryFields from '../../designSystemExtension/CaseSummaryFields';\n\nexport default function CaseSummary(props) {\n const { getPConnect, children } = props;\n const thePConn = getPConnect();\n const theConfigProps = thePConn.getConfigProps();\n const { status, showStatus } = theConfigProps;\n\n // from Constellation DX Components\n // get the primary and secondary fields with the raw data (which has the non-resolved property values)\n // const regionsRaw = getPConnect().getRawMetadata().children;\n // const primaryFieldsRaw = regionsRaw[0].children;\n // const secondaryFieldsRaw = regionsRaw[1].children;\n\n // From other SDKs\n // may want to move these into useEffect/useState combo\n let arPrimaryFields:Array<any> = [];\n let arSecondaryFields:Array<any> = [];\n\n for (const child of children) {\n const childPConn = child.props.getPConnect();\n const childPConnData = childPConn.resolveConfigProps(childPConn.getRawMetadata());\n if (childPConnData.name.toLowerCase() === \"primary fields\") {\n arPrimaryFields = childPConnData.children;\n } else if (childPConnData.name.toLowerCase() === \"secondary fields\") {\n arSecondaryFields = childPConnData.children;\n }\n }\n\n // At this point, should hand off to another component for layout and rendering\n // of primary and secondary fields in the Case Summary\n\n // debugging/investigation help\n // console.log(`CaseSummary: arPrimaryFields: ${JSON.stringify(arPrimaryFields)}`);\n // console.log(`CaseSummary: arSecondaryFields: ${JSON.stringify(arSecondaryFields)}`);\n\n return (\n <div id=\"CaseSummary\">\n <CaseSummaryFields status={status} showStatus={showStatus} theFields={arPrimaryFields} />\n <CaseSummaryFields theFields={arSecondaryFields} />\n </div>\n )\n}\n\nCaseSummary.propTypes = {\n getPConnect: PropTypes.func.isRequired\n};\n"]}
1
+ {"version":3,"file":"CaseSummary.js","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MA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CAAC,WAAW,EAAE,KAAK,kBAAkB,EAAE;YACnE,MAAM,sBAAsB,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;YAClE,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC;YAC5C,iBAAiB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBACzC,KAAK,CAAC,MAAM,CAAC,YAAY,GAAG,sBAAsB,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;YACjF,CAAC,CAAC,CAAC;SACJ;KACF;IAED,+EAA+E;IAC/E,uDAAuD;IAEvD,+BAA+B;IAC/B,mFAAmF;IACnF,uFAAuF;IAEvF,OAAO,CACL,eAAK,EAAE,EAAC,aAAa,aACnB,KAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,GAAI,EACzF,KAAC,iBAAiB,IAAC,SAAS,EAAE,iBAAiB,GAAI,IAC/C,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, ReactElement } from 'react';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface CaseSummaryProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n}\n\nexport default function CaseSummary(props: PropsWithChildren<CaseSummaryProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const CaseSummaryFields = getComponentFromMap('CaseSummaryFields');\n\n const { getPConnect, children } = props;\n\n const thePConn = getPConnect();\n const theConfigProps: any = thePConn.getConfigProps();\n // const { status, showStatus } = theConfigProps;\n const status = theConfigProps.status;\n const showStatus = theConfigProps.showStatus;\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'ModalContainer';\n // from Constellation DX Components\n // get the primary and secondary fields with the raw data (which has the non-resolved property values)\n // const regionsRaw = getPConnect().getRawMetadata().children;\n // const primaryFieldsRaw = regionsRaw[0].children;\n // const secondaryFieldsRaw = regionsRaw[1].children;\n\n // From other SDKs\n // may want to move these into useEffect/useState combo\n let arPrimaryFields: any[] = [];\n let arSecondaryFields: any[] = [];\n\n /* eslint-disable @typescript-eslint/no-shadow */\n function prepareComponentInCaseSummary(pConnectMeta, getPConnect) {\n const { config, children } = pConnectMeta;\n const pConnect = getPConnect();\n\n const caseSummaryComponentObject: any = {};\n\n const { type } = pConnectMeta;\n const createdComponent = pConnect.createComponent({\n type,\n children: children ? [...children] : [],\n config: {\n ...config\n }\n });\n\n caseSummaryComponentObject.value = createdComponent;\n return caseSummaryComponentObject;\n }\n\n function prepareCaseSummaryData(summaryFieldChildren) {\n const convertChildrenToSummaryData = kid => {\n return kid?.map((childItem, index) => {\n const childMeta = childItem.getPConnect().meta;\n const caseSummaryComponentObject = prepareComponentInCaseSummary(childMeta, childItem.getPConnect);\n caseSummaryComponentObject.id = index + 1;\n return caseSummaryComponentObject;\n });\n };\n return summaryFieldChildren ? convertChildrenToSummaryData(summaryFieldChildren?.getChildren()) : undefined;\n }\n\n for (const child of children as ReactElement[]) {\n const childPConn = (child as ReactElement).props.getPConnect();\n const childPConnData = childPConn.resolveConfigProps(childPConn.getRawMetadata());\n if (childPConnData.name.toLowerCase() === 'primary fields') {\n arPrimaryFields = childPConnData.children;\n arPrimaryFields.forEach(field => {\n if (field.config?.value && typeof field.config?.value === 'string') {\n field.config.value = localizedVal(field.config.value, localeCategory);\n }\n });\n } else if (childPConnData.name.toLowerCase() === 'secondary fields') {\n const secondarySummaryFields = prepareCaseSummaryData(childPConn);\n arSecondaryFields = childPConnData.children;\n arSecondaryFields.forEach((field, index) => {\n field.config.displayLabel = secondarySummaryFields[index]?.value?.props?.label;\n });\n }\n }\n\n // At this point, should hand off to another component for layout and rendering\n // of primary and secondary fields in the Case Summary\n\n // debugging/investigation help\n // console.log(`CaseSummary: arPrimaryFields: ${JSON.stringify(arPrimaryFields)}`);\n // console.log(`CaseSummary: arSecondaryFields: ${JSON.stringify(arSecondaryFields)}`);\n\n return (\n <div id='CaseSummary'>\n <CaseSummaryFields status={status} showStatus={showStatus} theFields={arPrimaryFields} />\n <CaseSummaryFields theFields={arSecondaryFields} />\n </div>\n );\n}\n"]}
@@ -1,25 +1,12 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function CaseView(props: any): JSX.Element;
4
- declare namespace CaseView {
5
- var defaultProps: {
6
- icon: string;
7
- children: never[];
8
- caseInfo: {};
9
- showIconInHeader: boolean;
10
- getPConnect: null;
11
- };
12
- var propTypes: {
13
- icon: PropTypes.Requireable<string>;
14
- children: PropTypes.Requireable<PropTypes.ReactNodeLike[]>;
15
- subheader: PropTypes.Validator<string>;
16
- header: PropTypes.Validator<string>;
17
- showIconInHeader: PropTypes.Requireable<boolean>;
18
- caseInfo: PropTypes.Requireable<{
19
- [x: string]: any;
20
- }>;
21
- getPConnect: PropTypes.Requireable<(...args: any[]) => any>;
22
- };
1
+ import { PropsWithChildren } from 'react';
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface CaseViewProps extends PConnProps {
4
+ icon: string;
5
+ subheader: string;
6
+ header: string;
7
+ showIconInHeader: boolean;
8
+ caseInfo: any;
23
9
  }
24
- export default CaseView;
10
+ export default function CaseView(props: PropsWithChildren<CaseViewProps>): JSX.Element;
11
+ export {};
25
12
  //# sourceMappingURL=CaseView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseView/CaseView.tsx"],"names":[],"mappings":";AAGA,OAAO,SAAS,MAAM,YAAY,CAAC;AA4CnC,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eAsOrC;kBAtOuB,QAAQ;;;;;;;;;;;;;;;;;;;;eAAR,QAAQ"}
1
+ {"version":3,"file":"CaseView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseView/CaseView.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAiD,MAAM,OAAO,CAAC;AAUzF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,aAAc,SAAQ,UAAU;IAExC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,GAAG,CAAC;CACf;AA6BD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,aAAa,CAAC,eAuNvE"}
@@ -1,16 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  /* eslint-disable react/jsx-boolean-value */
2
- import React, { useState, useEffect, useContext } from 'react';
3
- import PropTypes from 'prop-types';
4
- import { Utils } from '../../helpers/utils';
5
- import { Card, CardHeader, Avatar, Typography, Divider } from '@material-ui/core';
3
+ import { useContext, useEffect, useState } from 'react';
4
+ import { Avatar, Card, CardHeader, Divider, Typography } from '@material-ui/core';
6
5
  import { makeStyles } from '@material-ui/core/styles';
7
6
  import Box from '@material-ui/core/Box';
8
7
  import Button from '@material-ui/core/Button';
9
8
  import Grid from '@material-ui/core/Grid';
9
+ import { Utils } from '../../helpers/utils';
10
10
  import StoreContext from '../../../bridge/Context/StoreContext';
11
- import CaseViewActionsMenu from '../CaseViewActionsMenu';
12
- import VerticalTabs from '../../infra/VerticalTabs/VerticalTabs';
13
- import DeferLoad from '../../infra/DeferLoad';
11
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
14
12
  const useStyles = makeStyles(theme => ({
15
13
  root: {
16
14
  paddingRight: theme.spacing(1),
@@ -38,7 +36,13 @@ const useStyles = makeStyles(theme => ({
38
36
  }
39
37
  }));
40
38
  export default function CaseView(props) {
41
- const { getPConnect, icon, header, subheader, children, caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments, caseTypeID = '', caseTypeName = '' } } = props;
39
+ // Get emitted components from map (so we can get any override that may exist)
40
+ const CaseViewActionsMenu = getComponentFromMap('CaseViewActionsMenu');
41
+ const VerticalTabs = getComponentFromMap('VerticalTabs');
42
+ const DeferLoad = getComponentFromMap('DeferLoad');
43
+ const { getPConnect, icon = '', header, subheader, children = [],
44
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
45
+ showIconInHeader = true, caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments, caseTypeID = '', caseTypeName = '' } } = props;
42
46
  const currentCaseID = props.caseInfo.ID;
43
47
  let isComponentMounted = true;
44
48
  const { displayOnlyFA } = useContext(StoreContext);
@@ -54,12 +58,8 @@ export default function CaseView(props) {
54
58
  */
55
59
  function getChildRegionByName(inName) {
56
60
  for (const child of children) {
57
- const theMetadataType = child.props
58
- .getPConnect()
59
- .getRawMetadata()['type'].toLowerCase();
60
- const theMetadataName = child.props
61
- .getPConnect()
62
- .getRawMetadata()['name'].toLowerCase();
61
+ const theMetadataType = child.props.getPConnect().getRawMetadata().type.toLowerCase();
62
+ const theMetadataName = child.props.getPConnect().getRawMetadata().name.toLowerCase();
63
63
  if (theMetadataType === 'region' && theMetadataName === inName) {
64
64
  return child;
65
65
  }
@@ -125,64 +125,28 @@ export default function CaseView(props) {
125
125
  }, []);
126
126
  useEffect(() => {
127
127
  if (hasNewAttachments) {
128
+ // @ts-ignore - Argument of type 'boolean' is not assignable to parameter of type 'object'
128
129
  PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);
129
130
  }
130
131
  }, [hasNewAttachments]);
131
132
  function _editClick() {
132
133
  const actionsAPI = thePConn.getActionsApi();
133
134
  const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);
134
- openLocalAction(editAction.ID, { ...editAction });
135
+ openLocalAction(editAction.ID, { ...editAction, containerName: 'modal', type: 'express' });
135
136
  }
136
137
  function getActionButtonsHtml() {
137
- const aBHtml = (React.createElement(Box, null,
138
- editAction && (React.createElement(Button, { onClick: () => {
139
- _editClick();
140
- } }, localizedVal('Edit', localeCategory))),
141
- React.createElement(CaseViewActionsMenu, { getPConnect: getPConnect, availableActions: availableActions, availableProcesses: availableProcesses, caseTypeName: caseTypeName, caseTypeID: caseTypeID })));
142
- return aBHtml;
138
+ return (_jsxs(Box, { children: [editAction && (_jsx(Button, { onClick: () => {
139
+ _editClick();
140
+ }, children: localizedVal('Edit', localeCategory) })), _jsx(CaseViewActionsMenu, { getPConnect: getPConnect, availableActions: availableActions, availableProcesses: availableProcesses, caseTypeName: caseTypeName, caseTypeID: caseTypeID })] }));
143
141
  }
144
142
  function getContainerContents() {
145
143
  if (!displayOnlyFA) {
146
144
  // show full portal
147
- return (React.createElement(Grid, { container: true },
148
- React.createElement(Grid, { item: true, xs: 3 },
149
- React.createElement("div", { hidden: true, id: 'current-caseID' }, currentCaseID),
150
- React.createElement(Card, { className: classes.root },
151
- React.createElement(CardHeader, { className: classes.caseViewHeader, title: React.createElement(Typography, { variant: 'h6', component: 'div' }, PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)), subheader: React.createElement(Typography, { variant: 'body1', component: 'div', id: 'caseId' }, subheader), avatar: React.createElement(Avatar, { className: classes.caseViewIconBox, variant: 'square' },
152
- React.createElement("img", { src: svgCase, className: classes.caseViewIconImage })) }),
153
- getActionButtonsHtml(),
154
- React.createElement(Divider, null),
155
- theSummaryRegion,
156
- React.createElement(Divider, null),
157
- vertTabInfo.length > 1 && React.createElement(VerticalTabs, { tabconfig: vertTabInfo }))),
158
- React.createElement(Grid, { item: true, xs: 6 },
159
- theStagesRegion,
160
- theTodoRegion,
161
- deferLoadInfo.length > 0 && (React.createElement(DeferLoad, { getPConnect: getPConnect, name: deferLoadInfo[activeVertTab].config.name, isTab: true }))),
162
- React.createElement(Grid, { item: true, xs: 3 }, theUtilitiesRegion)));
163
- }
164
- else {
165
- // displayOnlyFA - only show the "todo" region
166
- return (React.createElement(Grid, { container: true },
167
- React.createElement(Grid, { item: true, xs: 12 }, theTodoRegion)));
145
+ return (_jsxs(Grid, { container: true, children: [_jsxs(Grid, { item: true, xs: 3, children: [_jsx("div", { hidden: true, id: 'current-caseID', children: currentCaseID }), _jsxs(Card, { className: classes.root, children: [_jsx(CardHeader, { className: classes.caseViewHeader, title: _jsx(Typography, { variant: 'h6', component: 'div', children: PCore.getLocaleUtils().getLocaleValue(header, '', localeKey) }), subheader: _jsx(Typography, { variant: 'body1', component: 'div', id: 'caseId', children: subheader }), avatar: _jsx(Avatar, { className: classes.caseViewIconBox, variant: 'square', children: _jsx("img", { src: svgCase, className: classes.caseViewIconImage }) }) }), getActionButtonsHtml(), _jsx(Divider, {}), theSummaryRegion, _jsx(Divider, {}), vertTabInfo.length > 1 && _jsx(VerticalTabs, { tabconfig: vertTabInfo })] })] }), _jsxs(Grid, { item: true, xs: 6, children: [theStagesRegion, theTodoRegion, deferLoadInfo.length > 0 && _jsx(DeferLoad, { getPConnect: getPConnect, name: deferLoadInfo[activeVertTab].config.name, isTab: true })] }), _jsx(Grid, { item: true, xs: 3, children: theUtilitiesRegion })] }));
168
146
  }
147
+ // displayOnlyFA - only show the "todo" region
148
+ return (_jsx(Grid, { container: true, children: _jsx(Grid, { item: true, xs: 12, children: theTodoRegion }) }));
169
149
  }
170
150
  return getContainerContents();
171
151
  }
172
- CaseView.defaultProps = {
173
- icon: '',
174
- children: [],
175
- caseInfo: {},
176
- showIconInHeader: true,
177
- getPConnect: null
178
- };
179
- CaseView.propTypes = {
180
- icon: PropTypes.string,
181
- children: PropTypes.arrayOf(PropTypes.node),
182
- subheader: PropTypes.string.isRequired,
183
- header: PropTypes.string.isRequired,
184
- showIconInHeader: PropTypes.bool,
185
- caseInfo: PropTypes.objectOf(PropTypes.any),
186
- getPConnect: PropTypes.func
187
- };
188
152
  //# sourceMappingURL=CaseView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseView.js","sourceRoot":"","sources":["../../../../src/components/template/CaseView/CaseView.tsx"],"names":[],"mappings":"AAAA,4CAA4C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AI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,IACb,kBAAkB,CACd,CACF,CACR,CAAC;SACH;aAAM;YACL,8CAA8C;YAC9C,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS;gBACb,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,IACd,aAAa,CACT,CACF,CACR,CAAC;SACH;IACH,CAAC;IAED,OAAO,oBAAoB,EAAE,CAAC;AAChC,CAAC;AAED,QAAQ,CAAC,YAAY,GAAG;IACtB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,QAAQ,CAAC,SAAS,GAAG;IACnB,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACnC,gBAAgB,EAAE,SAAS,CAAC,IAAI;IAChC,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;IAC3C,WAAW,EAAE,SAAS,CAAC,IAAI;CAC5B,CAAC","sourcesContent":["/* eslint-disable react/jsx-boolean-value */\n\nimport React, { useState, useEffect, useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { Utils } from '../../helpers/utils';\nimport { Card, CardHeader, Avatar, Typography, Divider } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Grid from '@material-ui/core/Grid';\n\nimport StoreContext from '../../../bridge/Context/StoreContext';\nimport CaseViewActionsMenu from '../CaseViewActionsMenu';\nimport VerticalTabs from '../../infra/VerticalTabs/VerticalTabs';\nimport DeferLoad from '../../infra/DeferLoad';\n\n// Remove this and use \"real\" PCore type once .d.ts is fixed (currently shows 2 errors)\ndeclare const PCore: any;\n\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n caseViewHeader: {\n backgroundColor: theme.palette.info.light,\n color: theme.palette.getContrastText(theme.palette.info.light),\n borderRadius: 'inherit'\n },\n caseViewIconBox: {\n backgroundColor: theme.palette.info.dark,\n width: theme.spacing(8),\n height: theme.spacing(8),\n padding: theme.spacing(1)\n },\n caseViewIconImage: {\n filter: 'invert(100%)'\n }\n}));\n\nexport default function CaseView(props) {\n const {\n getPConnect,\n icon,\n header,\n subheader,\n children,\n caseInfo: {\n availableActions = [],\n availableProcesses = [],\n hasNewAttachments,\n caseTypeID = '',\n caseTypeName = ''\n }\n } = props;\n const currentCaseID = props.caseInfo.ID;\n let isComponentMounted = true;\n\n const { displayOnlyFA } = useContext<any>(StoreContext);\n\n const thePConn = getPConnect();\n\n const classes = useStyles();\n\n const editAction = availableActions.find(action => action.ID === 'pyUpdateCaseDetails');\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'CaseView';\n const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();\n\n /**\n *\n * @param inName the metadata <em>name</em> that will cause a region to be returned\n */\n function getChildRegionByName(inName: string): any {\n for (const child of children) {\n const theMetadataType: string = child.props\n .getPConnect()\n .getRawMetadata()\n ['type'].toLowerCase();\n const theMetadataName: string = child.props\n .getPConnect()\n .getRawMetadata()\n ['name'].toLowerCase();\n\n if (theMetadataType === 'region' && theMetadataName === inName) {\n return child;\n }\n }\n\n return null;\n }\n\n const theSummaryRegion = getChildRegionByName('summary');\n const theStagesRegion = getChildRegionByName('stages');\n const theTodoRegion = getChildRegionByName('todo');\n const theUtilitiesRegion = getChildRegionByName('utilities');\n const theTabsRegion = getChildRegionByName('tabs');\n\n const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());\n\n const [activeVertTab, setActiveVertTab] = useState(0);\n\n // const tmpLoadData1 = { config: { label: \"Details\", name: \"pyDetailsTabContent\" }, type: \"DeferLoad\" };\n // const tmpLoadData2 = { config: { label: \"Case History\", name: \"CaseHistory\" }, type: \"DeferLoad\" };\n\n // Extract the tabs we need to display from theTabsRegion (one tab per entry in theTabsRegionChildren)\n const theTabsRegionChildren = theTabsRegion.props.getPConnect().getChildren();\n\n // vertTabInfo is sent to VerticalTabs component\n const vertTabInfo: Array<Object> = [];\n\n // deferLoadInfo is sent to DeferLoad component (currently selected entry)\n const deferLoadInfo: Array<any> = [];\n\n if (theTabsRegionChildren) {\n // populate vertTabInfo and deferLoadInfo\n theTabsRegionChildren.forEach((tabComp, index) => {\n const theTabCompConfig = tabComp.getPConnect().getConfigProps();\n // eslint-disable-next-line prefer-const\n let { label, inheritedProps } = theTabCompConfig;\n // For some tabs, \"label\" property is not avaialable in theTabCompConfig, so will get them from inheritedProps\n if (!label) {\n inheritedProps.forEach(inheritedProp => {\n if (inheritedProp.prop === 'label') {\n label = inheritedProp.value;\n }\n });\n }\n // We'll display the tabs when either visibility property doesn't exist or is true(if exists)\n if (theTabCompConfig.visibility === undefined || theTabCompConfig.visibility === true) {\n vertTabInfo.push({ name: label, id: index });\n deferLoadInfo.push({ type: 'DeferLoad', config: theTabCompConfig });\n }\n });\n }\n\n function handleVerticalTabClick(eventDetail: any) {\n const theItem = parseInt(eventDetail.additionalData.itemClicked, 10);\n\n // only call useEffectSetter if the component is mounted\n if (isComponentMounted) {\n setActiveVertTab(theItem);\n }\n }\n\n // Add and Remove event listener for VerticalTabClick only at startup and teardown\n useEffect(() => {\n document.addEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n\n return (): void => {\n // inform that the component is unmounted so other code can\n // know not to try to call useState setters (to avoid console warnings)\n isComponentMounted = false;\n\n document.removeEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n };\n }, []);\n\n useEffect(() => {\n if (hasNewAttachments) {\n PCore.getPubSubUtils().publish(\n PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,\n true\n );\n }\n }, [hasNewAttachments]);\n\n function _editClick() {\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction(editAction.ID, { ...editAction });\n }\n\n function getActionButtonsHtml(): any {\n const aBHtml = (\n <Box>\n {editAction && (\n <Button\n onClick={() => {\n _editClick();\n }}\n >\n {localizedVal('Edit', localeCategory)}\n </Button>\n )}\n <CaseViewActionsMenu\n getPConnect={getPConnect}\n availableActions={availableActions}\n availableProcesses={availableProcesses}\n caseTypeName={caseTypeName}\n caseTypeID={caseTypeID}\n />\n </Box>\n );\n\n return aBHtml;\n }\n\n function getContainerContents() {\n if (!displayOnlyFA) {\n // show full portal\n return (\n <Grid container>\n <Grid item xs={3}>\n <div hidden={true} id='current-caseID'>\n {currentCaseID}\n </div>\n <Card className={classes.root}>\n <CardHeader\n className={classes.caseViewHeader}\n title={\n <Typography variant='h6' component='div'>\n {PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)}\n </Typography>\n }\n subheader={\n <Typography variant='body1' component='div' id='caseId'>\n {subheader}\n </Typography>\n }\n avatar={\n <Avatar className={classes.caseViewIconBox} variant='square'>\n <img src={svgCase} className={classes.caseViewIconImage} />\n </Avatar>\n }\n />\n {getActionButtonsHtml()}\n <Divider />\n {theSummaryRegion}\n <Divider />\n {vertTabInfo.length > 1 && <VerticalTabs tabconfig={vertTabInfo} />}\n </Card>\n </Grid>\n\n <Grid item xs={6}>\n {theStagesRegion}\n {theTodoRegion}\n {deferLoadInfo.length > 0 && (\n <DeferLoad\n getPConnect={getPConnect}\n name={deferLoadInfo[activeVertTab].config.name}\n isTab\n />\n )}\n </Grid>\n\n <Grid item xs={3}>\n {theUtilitiesRegion}\n </Grid>\n </Grid>\n );\n } else {\n // displayOnlyFA - only show the \"todo\" region\n return (\n <Grid container>\n <Grid item xs={12}>\n {theTodoRegion}\n </Grid>\n </Grid>\n );\n }\n }\n\n return getContainerContents();\n}\n\nCaseView.defaultProps = {\n icon: '',\n children: [],\n caseInfo: {},\n showIconInHeader: true,\n getPConnect: null\n};\n\nCaseView.propTypes = {\n icon: PropTypes.string,\n children: PropTypes.arrayOf(PropTypes.node),\n subheader: PropTypes.string.isRequired,\n header: PropTypes.string.isRequired,\n showIconInHeader: PropTypes.bool,\n caseInfo: PropTypes.objectOf(PropTypes.any),\n getPConnect: PropTypes.func\n};\n"]}
1
+ {"version":3,"file":"CaseView.js","sourceRoot":"","sources":["../../../../src/components/template/CaseView/CaseView.tsx"],"names":[],"mappings":";AAAA,4CAA4C;AAE5C,OAAO,EAAmC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAYhF,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,KAAK,CAAC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AO,EAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,EAAE,EAAC,QAAQ,YACpD,SAAS,GACC,EAEf,MAAM,EACJ,KAAC,MAAM,IAAC,SAAS,EAAE,OAAO,CAAC,eAAe,EAAE,OAAO,EAAC,QAAQ,YAC1D,cAAK,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,iBAAiB,GAAI,GACpD,GAEX,EACD,oBAAoB,EAAE,EACvB,KAAC,OAAO,KAAG,EACV,gBAAgB,EACjB,KAAC,OAAO,KAAG,EACV,WAAW,CAAC,MAAM,GAAG,CAAC,IAAI,KAAC,YAAY,IAAC,SAAS,EAAE,WAAW,GAAI,IAC9D,IACF,EAEP,MAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,aACb,eAAe,EACf,aAAa,EACb,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,KAAC,SAAS,IAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,SAAG,IACrH,EAEP,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACb,kBAAkB,GACd,IACF,CACR,CAAC;SACH;QACD,8CAA8C;QAC9C,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,kBACb,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,YACd,aAAa,GACT,GACF,CACR,CAAC;IACJ,CAAC;IAED,OAAO,oBAAoB,EAAE,CAAC;AAChC,CAAC","sourcesContent":["/* eslint-disable react/jsx-boolean-value */\n\nimport { PropsWithChildren, ReactElement, useContext, useEffect, useState } from 'react';\nimport { Avatar, Card, CardHeader, Divider, Typography } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Grid from '@material-ui/core/Grid';\n\nimport { Utils } from '../../helpers/utils';\nimport StoreContext from '../../../bridge/Context/StoreContext';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface CaseViewProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n icon: string;\n subheader: string;\n header: string;\n showIconInHeader: boolean;\n caseInfo: any;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n caseViewHeader: {\n backgroundColor: theme.palette.info.light,\n color: theme.palette.getContrastText(theme.palette.info.light),\n borderRadius: 'inherit'\n },\n caseViewIconBox: {\n backgroundColor: theme.palette.info.dark,\n width: theme.spacing(8),\n height: theme.spacing(8),\n padding: theme.spacing(1)\n },\n caseViewIconImage: {\n filter: 'invert(100%)'\n }\n}));\n\nexport default function CaseView(props: PropsWithChildren<CaseViewProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const CaseViewActionsMenu = getComponentFromMap('CaseViewActionsMenu');\n const VerticalTabs = getComponentFromMap('VerticalTabs');\n const DeferLoad = getComponentFromMap('DeferLoad');\n\n const {\n getPConnect,\n icon = '',\n header,\n subheader,\n children = [],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n showIconInHeader = true,\n caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments, caseTypeID = '', caseTypeName = '' }\n } = props;\n\n const currentCaseID = props.caseInfo.ID;\n let isComponentMounted = true;\n\n const { displayOnlyFA } = useContext<any>(StoreContext);\n\n const thePConn = getPConnect();\n\n const classes = useStyles();\n\n const editAction = availableActions.find(action => action.ID === 'pyUpdateCaseDetails');\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'CaseView';\n const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();\n\n /**\n *\n * @param inName the metadata <em>name</em> that will cause a region to be returned\n */\n function getChildRegionByName(inName: string): any {\n for (const child of children as ReactElement[]) {\n const theMetadataType: string = (child as ReactElement).props.getPConnect().getRawMetadata().type.toLowerCase();\n const theMetadataName: string = (child as ReactElement).props.getPConnect().getRawMetadata().name.toLowerCase();\n\n if (theMetadataType === 'region' && theMetadataName === inName) {\n return child;\n }\n }\n\n return null;\n }\n\n const theSummaryRegion = getChildRegionByName('summary');\n const theStagesRegion = getChildRegionByName('stages');\n const theTodoRegion = getChildRegionByName('todo');\n const theUtilitiesRegion = getChildRegionByName('utilities');\n const theTabsRegion = getChildRegionByName('tabs');\n\n const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());\n\n const [activeVertTab, setActiveVertTab] = useState(0);\n\n // const tmpLoadData1 = { config: { label: \"Details\", name: \"pyDetailsTabContent\" }, type: \"DeferLoad\" };\n // const tmpLoadData2 = { config: { label: \"Case History\", name: \"CaseHistory\" }, type: \"DeferLoad\" };\n\n // Extract the tabs we need to display from theTabsRegion (one tab per entry in theTabsRegionChildren)\n const theTabsRegionChildren = theTabsRegion.props.getPConnect().getChildren();\n\n // vertTabInfo is sent to VerticalTabs component\n const vertTabInfo: Object[] = [];\n\n // deferLoadInfo is sent to DeferLoad component (currently selected entry)\n const deferLoadInfo: any[] = [];\n\n if (theTabsRegionChildren) {\n // populate vertTabInfo and deferLoadInfo\n theTabsRegionChildren.forEach((tabComp, index) => {\n const theTabCompConfig = tabComp.getPConnect().getConfigProps();\n // eslint-disable-next-line prefer-const\n let { label, inheritedProps } = theTabCompConfig;\n // For some tabs, \"label\" property is not avaialable in theTabCompConfig, so will get them from inheritedProps\n if (!label) {\n inheritedProps.forEach(inheritedProp => {\n if (inheritedProp.prop === 'label') {\n label = inheritedProp.value;\n }\n });\n }\n // We'll display the tabs when either visibility property doesn't exist or is true(if exists)\n if (theTabCompConfig.visibility === undefined || theTabCompConfig.visibility === true) {\n vertTabInfo.push({ name: label, id: index });\n deferLoadInfo.push({ type: 'DeferLoad', config: theTabCompConfig });\n }\n });\n }\n\n function handleVerticalTabClick(eventDetail: any) {\n const theItem = parseInt(eventDetail.additionalData.itemClicked, 10);\n\n // only call useEffectSetter if the component is mounted\n if (isComponentMounted) {\n setActiveVertTab(theItem);\n }\n }\n\n // Add and Remove event listener for VerticalTabClick only at startup and teardown\n useEffect(() => {\n document.addEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n\n return (): void => {\n // inform that the component is unmounted so other code can\n // know not to try to call useState setters (to avoid console warnings)\n isComponentMounted = false;\n\n document.removeEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n };\n }, []);\n\n useEffect(() => {\n if (hasNewAttachments) {\n // @ts-ignore - Argument of type 'boolean' is not assignable to parameter of type 'object'\n PCore.getPubSubUtils().publish((PCore.getEvents().getCaseEvent() as any).CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);\n }\n }, [hasNewAttachments]);\n\n function _editClick() {\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction(editAction.ID, { ...editAction, containerName: 'modal', type: 'express' });\n }\n\n function getActionButtonsHtml(): any {\n return (\n <Box>\n {editAction && (\n <Button\n onClick={() => {\n _editClick();\n }}\n >\n {localizedVal('Edit', localeCategory)}\n </Button>\n )}\n <CaseViewActionsMenu\n getPConnect={getPConnect}\n availableActions={availableActions}\n availableProcesses={availableProcesses}\n caseTypeName={caseTypeName}\n caseTypeID={caseTypeID}\n />\n </Box>\n );\n }\n\n function getContainerContents() {\n if (!displayOnlyFA) {\n // show full portal\n return (\n <Grid container>\n <Grid item xs={3}>\n <div hidden={true} id='current-caseID'>\n {currentCaseID}\n </div>\n <Card className={classes.root}>\n <CardHeader\n className={classes.caseViewHeader}\n title={\n <Typography variant='h6' component='div'>\n {PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)}\n </Typography>\n }\n subheader={\n <Typography variant='body1' component='div' id='caseId'>\n {subheader}\n </Typography>\n }\n avatar={\n <Avatar className={classes.caseViewIconBox} variant='square'>\n <img src={svgCase} className={classes.caseViewIconImage} />\n </Avatar>\n }\n />\n {getActionButtonsHtml()}\n <Divider />\n {theSummaryRegion}\n <Divider />\n {vertTabInfo.length > 1 && <VerticalTabs tabconfig={vertTabInfo} />}\n </Card>\n </Grid>\n\n <Grid item xs={6}>\n {theStagesRegion}\n {theTodoRegion}\n {deferLoadInfo.length > 0 && <DeferLoad getPConnect={getPConnect} name={deferLoadInfo[activeVertTab].config.name} isTab />}\n </Grid>\n\n <Grid item xs={3}>\n {theUtilitiesRegion}\n </Grid>\n </Grid>\n );\n }\n // displayOnlyFA - only show the \"todo\" region\n return (\n <Grid container>\n <Grid item xs={12}>\n {theTodoRegion}\n </Grid>\n </Grid>\n );\n }\n\n return getContainerContents();\n}\n"]}
@@ -1,18 +1,11 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function CaseViewActionsMenu(props: any): JSX.Element;
4
- declare namespace CaseViewActionsMenu {
5
- var defaultProps: {
6
- availableActions: never[];
7
- availableProcesses: never[];
8
- };
9
- var propTypes: {
10
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
11
- availableActions: PropTypes.Requireable<(object | null | undefined)[]>;
12
- availableProcesses: PropTypes.Requireable<any[]>;
13
- caseTypeID: PropTypes.Requireable<string>;
14
- caseTypeName: PropTypes.Requireable<string>;
15
- };
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface CaseViewActionsMenuProps extends PConnProps {
4
+ availableActions: any[];
5
+ availableProcesses: any[];
6
+ caseTypeID: string;
7
+ caseTypeName: string;
16
8
  }
17
- export default CaseViewActionsMenu;
9
+ export default function CaseViewActionsMenu(props: CaseViewActionsMenuProps): JSX.Element;
10
+ export {};
18
11
  //# sourceMappingURL=CaseViewActionsMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseViewActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAUnC,iBAAwB,mBAAmB,CAAC,KAAK,KAAA,eAyDhD;kBAzDuB,mBAAmB;;;;;;;;;;;;;eAAnB,mBAAmB"}
1
+ {"version":3,"file":"CaseViewActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAKvD,UAAU,wBAAyB,SAAQ,UAAU;IAEnD,gBAAgB,EAAE,GAAG,EAAE,CAAC;IACxB,kBAAkB,EAAE,GAAG,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eAkG1E"}
@@ -1,8 +1,11 @@
1
- import React, { useState } from 'react';
2
- import PropTypes from 'prop-types';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
3
  import Button from '@material-ui/core/Button';
4
4
  import Menu from '@material-ui/core/Menu';
5
5
  import MenuItem from '@material-ui/core/MenuItem';
6
+ import Snackbar from '@material-ui/core/Snackbar';
7
+ import IconButton from '@material-ui/core/IconButton';
8
+ import CloseIcon from '@material-ui/icons/Close';
6
9
  export default function CaseViewActionsMenu(props) {
7
10
  const { getPConnect, availableActions, availableProcesses, caseTypeID, caseTypeName } = props;
8
11
  const thePConn = getPConnect();
@@ -10,6 +13,8 @@ export default function CaseViewActionsMenu(props) {
10
13
  const localeCategory = 'CaseView';
11
14
  const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();
12
15
  const [anchorEl, setAnchorEl] = useState(null);
16
+ const [showSnackbar, setShowSnackbar] = useState(false);
17
+ const [snackbarMessage, setSnackbarMessage] = useState('');
13
18
  const handleClick = (event) => {
14
19
  setAnchorEl(event.currentTarget);
15
20
  };
@@ -17,32 +22,45 @@ export default function CaseViewActionsMenu(props) {
17
22
  setAnchorEl(null);
18
23
  };
19
24
  const arMenuItems = [];
25
+ function showToast(message) {
26
+ setSnackbarMessage(message);
27
+ setShowSnackbar(true);
28
+ }
29
+ function handleSnackbarClose(event, reason) {
30
+ if (reason === 'clickaway') {
31
+ return;
32
+ }
33
+ setShowSnackbar(false);
34
+ }
20
35
  function _actionMenuActionsClick(data) {
21
36
  const actionsAPI = thePConn.getActionsApi();
22
37
  const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);
23
- openLocalAction(data.ID, { ...data, containerName: 'modal', type: 'express' });
38
+ openLocalAction(data.ID, {
39
+ ...data,
40
+ containerName: 'modal',
41
+ type: 'express'
42
+ });
24
43
  // after doing the action, close the menu...
25
44
  handleClose();
26
45
  }
46
+ function _actionMenuProcessClick(process) {
47
+ const actionsAPI = thePConn.getActionsApi();
48
+ const openProcessAction = actionsAPI.openProcessAction.bind(actionsAPI);
49
+ openProcessAction(process.ID, {
50
+ ...process
51
+ })
52
+ .then(() => { })
53
+ .catch(() => {
54
+ showToast(`${process.name} Submit failed!`);
55
+ });
56
+ handleClose();
57
+ }
27
58
  availableActions.forEach(action => {
28
- arMenuItems.push(React.createElement(MenuItem, { key: action.ID, onClick: () => _actionMenuActionsClick(action) }, localizedVal(action.name, '', localeKey)));
59
+ arMenuItems.push(_jsx(MenuItem, { onClick: () => _actionMenuActionsClick(action), children: localizedVal(action.name, '', localeKey) }, action.ID));
29
60
  });
30
61
  availableProcesses.forEach(process => {
31
- arMenuItems.push(React.createElement(MenuItem, { onClick: handleClose }, process.name));
62
+ arMenuItems.push(_jsx(MenuItem, { onClick: () => _actionMenuProcessClick(process), children: localizedVal(process.name, '', localeKey) }, process.ID));
32
63
  });
33
- return (React.createElement(React.Fragment, null,
34
- React.createElement(Button, { "aria-controls": 'simple-menu', "aria-haspopup": 'true', onClick: handleClick }, localizedVal('Actions...', localeCategory)),
35
- React.createElement(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose }, arMenuItems)));
64
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { "aria-controls": 'simple-menu', "aria-haspopup": 'true', onClick: handleClick, children: localizedVal('Actions...', localeCategory) }), _jsx(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose, children: arMenuItems }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }));
36
65
  }
37
- CaseViewActionsMenu.defaultProps = {
38
- availableActions: [],
39
- availableProcesses: []
40
- };
41
- CaseViewActionsMenu.propTypes = {
42
- getPConnect: PropTypes.func.isRequired,
43
- availableActions: PropTypes.arrayOf(PropTypes.object),
44
- availableProcesses: PropTypes.arrayOf(PropTypes.any),
45
- caseTypeID: PropTypes.string,
46
- caseTypeName: PropTypes.string
47
- };
48
66
  //# sourceMappingURL=CaseViewActionsMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseViewActionsMenu.js","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAOlD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK;IAC/C,MAAM,EAAE,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AS,CAAC,CAChC,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACnC,WAAW,CAAC,IAAI,CAAC,oBAAC,QAAQ,IAAC,OAAO,EAAE,WAAW,IAAG,OAAO,CAAC,IAAI,CAAY,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,oBAAC,MAAM,qBAAe,aAAa,mBAAe,MAAM,EAAC,OAAO,EAAE,WAAW,IAC1E,YAAY,CAAC,YAAY,EAAE,cAAc,CAAC,CACpC;QACT,oBAAC,IAAI,IACH,EAAE,EAAC,aAAa,EAChB,QAAQ,EAAE,QAAQ,EAClB,WAAW,QACX,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,IAEnB,WAAW,CACP,CACQ,CAClB,CAAC;AACJ,CAAC;AAED,mBAAmB,CAAC,YAAY,GAAG;IACjC,gBAAgB,EAAE,EAAE;IACpB,kBAAkB,EAAE,EAAE;CACvB,CAAC;AAEF,mBAAmB,CAAC,SAAS,GAAG;IAC9B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,gBAAgB,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IACrD,kBAAkB,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;IACpD,UAAU,EAAE,SAAS,CAAC,MAAM;IAC5B,YAAY,EAAE,SAAS,CAAC,MAAM;CAC/B,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '@material-ui/core/Button';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\n\nimport PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';\n\ndeclare const PCore: typeof PCoreType;\n\n\nexport default function CaseViewActionsMenu(props) {\n const { getPConnect, availableActions, availableProcesses, caseTypeID, caseTypeName } = props;\n const thePConn = getPConnect();\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'CaseView';\n const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();\n\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const arMenuItems: Array<any> = [];\n\n function _actionMenuActionsClick(data) {\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction(data.ID, { ...data, containerName: 'modal', type: 'express' });\n // after doing the action, close the menu...\n handleClose();\n }\n\n availableActions.forEach(action => {\n arMenuItems.push(\n <MenuItem key={action.ID} onClick={() => _actionMenuActionsClick(action)}>\n {localizedVal(action.name, '', localeKey)}\n </MenuItem>\n );\n });\n\n availableProcesses.forEach(process => {\n arMenuItems.push(<MenuItem onClick={handleClose}>{process.name}</MenuItem>);\n });\n\n return (\n <React.Fragment>\n <Button aria-controls='simple-menu' aria-haspopup='true' onClick={handleClick}>\n {localizedVal('Actions...', localeCategory)}\n </Button>\n <Menu\n id='simple-menu'\n anchorEl={anchorEl}\n keepMounted\n open={Boolean(anchorEl)}\n onClose={handleClose}\n >\n {arMenuItems}\n </Menu>\n </React.Fragment>\n );\n}\n\nCaseViewActionsMenu.defaultProps = {\n availableActions: [],\n availableProcesses: []\n};\n\nCaseViewActionsMenu.propTypes = {\n getPConnect: PropTypes.func.isRequired,\n availableActions: PropTypes.arrayOf(PropTypes.object),\n availableProcesses: PropTypes.arrayOf(PropTypes.any),\n caseTypeID: PropTypes.string,\n caseTypeName: PropTypes.string\n};\n"]}
1
+ {"version":3,"file":"CaseViewActionsMenu.js","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";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,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACnC,WAAW,CAAC,IAAI,CACd,KAAC,QAAQ,IAAkB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,CAAC,YACvE,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,SAAS,CAAC,IAD7B,OAAO,CAAC,EAAE,CAEd,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,8BACE,KAAC,MAAM,qBAAe,aAAa,mBAAe,MAAM,EAAC,OAAO,EAAE,WAAW,YAC1E,YAAY,CAAC,YAAY,EAAE,cAAc,CAAC,GACpC,EACT,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,QAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,WAAW,YACjG,WAAW,GACP,EACP,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport Button from '@material-ui/core/Button';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\n\nimport { PConnProps } from '../../../types/PConnProps';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport CloseIcon from '@material-ui/icons/Close';\n\ninterface CaseViewActionsMenuProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n availableActions: any[];\n availableProcesses: any[];\n caseTypeID: string;\n caseTypeName: string;\n}\n\nexport default function CaseViewActionsMenu(props: CaseViewActionsMenuProps) {\n const { getPConnect, availableActions, availableProcesses, caseTypeID, caseTypeName } = props;\n const thePConn = getPConnect();\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'CaseView';\n const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();\n\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const arMenuItems: any[] = [];\n\n function showToast(message: string) {\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _actionMenuActionsClick(data) {\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction(data.ID, {\n ...data,\n containerName: 'modal',\n type: 'express'\n });\n // after doing the action, close the menu...\n handleClose();\n }\n\n function _actionMenuProcessClick(process) {\n const actionsAPI = thePConn.getActionsApi();\n const openProcessAction = actionsAPI.openProcessAction.bind(actionsAPI);\n openProcessAction(process.ID, {\n ...process\n })\n .then(() => {})\n .catch(() => {\n showToast(`${process.name} Submit failed!`);\n });\n handleClose();\n }\n\n availableActions.forEach(action => {\n arMenuItems.push(\n <MenuItem key={action.ID} onClick={() => _actionMenuActionsClick(action)}>\n {localizedVal(action.name, '', localeKey)}\n </MenuItem>\n );\n });\n\n availableProcesses.forEach(process => {\n arMenuItems.push(\n <MenuItem key={process.ID} onClick={() => _actionMenuProcessClick(process)}>\n {localizedVal(process.name, '', localeKey)}\n </MenuItem>\n );\n });\n\n return (\n <>\n <Button aria-controls='simple-menu' aria-haspopup='true' onClick={handleClick}>\n {localizedVal('Actions...', localeCategory)}\n </Button>\n <Menu id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>\n {arMenuItems}\n </Menu>\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n}\n"]}
@@ -1,20 +1,13 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function Confirmation(props: any): JSX.Element | null;
4
- declare namespace Confirmation {
5
- var defaultProps: {
6
- datasource: undefined;
7
- label: string;
8
- showLabel: boolean;
9
- };
10
- var propTypes: {
11
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
12
- datasource: PropTypes.Requireable<{
13
- [x: string]: any;
14
- }>;
15
- label: PropTypes.Requireable<string>;
16
- showLabel: PropTypes.Requireable<boolean>;
1
+ import { PropsWithChildren } from 'react';
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface ConfirmationProps extends PConnProps {
4
+ datasource: {
5
+ source: any;
17
6
  };
7
+ label: string;
8
+ showLabel: boolean;
9
+ showTasks: boolean;
18
10
  }
19
- export default Confirmation;
11
+ export default function Confirmation(props: PropsWithChildren<ConfirmationProps>): JSX.Element | null;
12
+ export {};
20
13
  //# sourceMappingURL=Confirmation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Confirmation.d.ts","sourceRoot":"","sources":["../../../../src/components/template/Confirmation/Confirmation.tsx"],"names":[],"mappings":";AAIA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyBnC,iBAAwB,YAAY,CAAC,KAAK,KAAA,sBA6DzC;kBA7DuB,YAAY;;;;;;;;;;;;;;;eAAZ,YAAY"}
1
+ {"version":3,"file":"Confirmation.d.ts","sourceRoot":"","sources":["../../../../src/components/template/Confirmation/Confirmation.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAKpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,iBAAkB,SAAQ,UAAU;IAE5C,UAAU,EAAE;QAAE,MAAM,EAAE,GAAG,CAAA;KAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAeD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,sBA2C/E"}