@pega/react-sdk-components 23.1.10 → 23.1.12

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 (605) 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 +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -2
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +30 -27
  23. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -1
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +9 -15
  27. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  28. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +5 -4
  30. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +23 -12
  32. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  33. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -1
  34. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -16
  36. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  37. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +1 -0
  38. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +7 -11
  40. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  41. package/lib/components/designSystemExtension/Operator/Operator.d.ts +15 -15
  42. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/Operator/Operator.js +49 -62
  44. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  45. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +2 -3
  46. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  47. package/lib/components/designSystemExtension/Pulse/Pulse.js +7 -10
  48. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  49. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  50. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +7 -9
  51. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  52. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -1
  53. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  54. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  55. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  56. package/lib/components/field/AutoComplete/AutoComplete.d.ts +2 -2
  57. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  58. package/lib/components/field/AutoComplete/AutoComplete.js +21 -23
  59. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  60. package/lib/components/field/CancelAlert/CancelAlert.d.ts +8 -3
  61. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  62. package/lib/components/field/CancelAlert/CancelAlert.js +76 -68
  63. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  64. package/lib/components/field/CancelAlert/index.js.map +1 -1
  65. package/lib/components/field/Checkbox/Checkbox.d.ts +16 -1
  66. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  67. package/lib/components/field/Checkbox/Checkbox.js +59 -45
  68. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  69. package/lib/components/field/Currency/Currency.d.ts +1 -1
  70. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  71. package/lib/components/field/Currency/Currency.js +13 -34
  72. package/lib/components/field/Currency/Currency.js.map +1 -1
  73. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  74. package/lib/components/field/Currency/currency-utils.js +4 -5
  75. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  76. package/lib/components/field/Date/Date.d.ts +1 -1
  77. package/lib/components/field/Date/Date.d.ts.map +1 -1
  78. package/lib/components/field/Date/Date.js +14 -10
  79. package/lib/components/field/Date/Date.js.map +1 -1
  80. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  81. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  82. package/lib/components/field/DateTime/DateTime.js +8 -8
  83. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  84. package/lib/components/field/Decimal/Decimal.d.ts +2 -1
  85. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  86. package/lib/components/field/Decimal/Decimal.js +18 -28
  87. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  88. package/lib/components/field/Decimal/index.js.map +1 -1
  89. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  90. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  91. package/lib/components/field/Dropdown/Dropdown.js +105 -29
  92. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  93. package/lib/components/field/Email/Email.d.ts +1 -1
  94. package/lib/components/field/Email/Email.d.ts.map +1 -1
  95. package/lib/components/field/Email/Email.js +8 -9
  96. package/lib/components/field/Email/Email.js.map +1 -1
  97. package/lib/components/field/Email/index.js.map +1 -1
  98. package/lib/components/field/Group/Group.d.ts +13 -0
  99. package/lib/components/field/Group/Group.d.ts.map +1 -0
  100. package/lib/components/field/Group/Group.js +15 -0
  101. package/lib/components/field/Group/Group.js.map +1 -0
  102. package/lib/components/field/Group/index.d.ts +2 -0
  103. package/lib/components/field/Group/index.d.ts.map +1 -0
  104. package/lib/components/field/Group/index.js +2 -0
  105. package/lib/components/field/Group/index.js.map +1 -0
  106. package/lib/components/field/Integer/Integer.d.ts +1 -1
  107. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  108. package/lib/components/field/Integer/Integer.js +6 -6
  109. package/lib/components/field/Integer/Integer.js.map +1 -1
  110. package/lib/components/field/MultiSelect/Multiselect.d.ts +3 -0
  111. package/lib/components/field/MultiSelect/Multiselect.d.ts.map +1 -0
  112. package/lib/components/field/MultiSelect/Multiselect.js +175 -0
  113. package/lib/components/field/MultiSelect/Multiselect.js.map +1 -0
  114. package/lib/components/field/MultiSelect/index.d.ts +2 -0
  115. package/lib/components/field/MultiSelect/index.d.ts.map +1 -0
  116. package/lib/components/field/MultiSelect/index.js +2 -0
  117. package/lib/components/field/MultiSelect/index.js.map +1 -0
  118. package/lib/components/field/MultiSelect/utils.d.ts +10 -0
  119. package/lib/components/field/MultiSelect/utils.d.ts.map +1 -0
  120. package/lib/components/field/MultiSelect/utils.js +197 -0
  121. package/lib/components/field/MultiSelect/utils.js.map +1 -0
  122. package/lib/components/field/Percentage/Percentage.d.ts +2 -1
  123. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  124. package/lib/components/field/Percentage/Percentage.js +25 -28
  125. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  126. package/lib/components/field/Phone/Phone.d.ts +1 -1
  127. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  128. package/lib/components/field/Phone/Phone.js +9 -10
  129. package/lib/components/field/Phone/Phone.js.map +1 -1
  130. package/lib/components/field/Phone/index.js.map +1 -1
  131. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  132. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  133. package/lib/components/field/RadioButtons/RadioButtons.js +18 -21
  134. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  135. package/lib/components/field/RichText/RichText.d.ts +1 -1
  136. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  137. package/lib/components/field/RichText/RichText.js +9 -8
  138. package/lib/components/field/RichText/RichText.js.map +1 -1
  139. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  140. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  141. package/lib/components/field/ScalarList/ScalarList.js +7 -9
  142. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  143. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  144. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  145. package/lib/components/field/SemanticLink/SemanticLink.js +4 -8
  146. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  147. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  148. package/lib/components/field/SemanticLink/utils.js +8 -8
  149. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  150. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  151. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  152. package/lib/components/field/TextArea/TextArea.js +5 -5
  153. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  154. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  155. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  156. package/lib/components/field/TextContent/TextContent.js +2 -2
  157. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  158. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  159. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  160. package/lib/components/field/TextInput/TextInput.js +7 -6
  161. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  162. package/lib/components/field/TextInput/index.js.map +1 -1
  163. package/lib/components/field/Time/Time.d.ts +1 -1
  164. package/lib/components/field/Time/Time.d.ts.map +1 -1
  165. package/lib/components/field/Time/Time.js +7 -7
  166. package/lib/components/field/Time/Time.js.map +1 -1
  167. package/lib/components/field/URL/URL.d.ts +1 -1
  168. package/lib/components/field/URL/URL.d.ts.map +1 -1
  169. package/lib/components/field/URL/URL.js +6 -6
  170. package/lib/components/field/URL/URL.js.map +1 -1
  171. package/lib/components/field/URL/index.js.map +1 -1
  172. package/lib/components/field/UserReference/UserReference.d.ts +3 -3
  173. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  174. package/lib/components/field/UserReference/UserReference.js +11 -11
  175. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  176. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  177. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  178. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  179. package/lib/components/helpers/attachmentHelpers.js +6 -6
  180. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  181. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  182. package/lib/components/helpers/case-utils.js +5 -5
  183. package/lib/components/helpers/case-utils.js.map +1 -1
  184. package/lib/components/helpers/common-utils.d.ts +1 -0
  185. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  186. package/lib/components/helpers/common-utils.js +4 -1
  187. package/lib/components/helpers/common-utils.js.map +1 -1
  188. package/lib/components/helpers/data_page.d.ts.map +1 -1
  189. package/lib/components/helpers/data_page.js +2 -3
  190. package/lib/components/helpers/data_page.js.map +1 -1
  191. package/lib/components/helpers/date-format-utils.js.map +1 -1
  192. package/lib/components/helpers/event-utils.js +3 -3
  193. package/lib/components/helpers/event-utils.js.map +1 -1
  194. package/lib/components/helpers/field-group-utils.js +1 -1
  195. package/lib/components/helpers/field-group-utils.js.map +1 -1
  196. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  197. package/lib/components/helpers/formatters/Boolean.js +9 -20
  198. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  199. package/lib/components/helpers/formatters/Currency.d.ts +2 -2
  200. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  201. package/lib/components/helpers/formatters/Currency.js +13 -14
  202. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  203. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  204. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  205. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  206. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  207. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  208. package/lib/components/helpers/formatters/Date.js +20 -20
  209. package/lib/components/helpers/formatters/Date.js.map +1 -1
  210. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  211. package/lib/components/helpers/formatters/common.js +1 -1
  212. package/lib/components/helpers/formatters/common.js.map +1 -1
  213. package/lib/components/helpers/formatters/index.d.ts +6 -6
  214. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  215. package/lib/components/helpers/formatters/index.js +25 -19
  216. package/lib/components/helpers/formatters/index.js.map +1 -1
  217. package/lib/components/helpers/instructions-utils.d.ts +5 -0
  218. package/lib/components/helpers/instructions-utils.d.ts.map +1 -0
  219. package/lib/components/helpers/instructions-utils.js +36 -0
  220. package/lib/components/helpers/instructions-utils.js.map +1 -0
  221. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  222. package/lib/components/helpers/reactContextHelpers.js +1 -1
  223. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  224. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  225. package/lib/components/helpers/simpleTableHelpers.js +44 -52
  226. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  227. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  228. package/lib/components/helpers/state-utils.js +6 -8
  229. package/lib/components/helpers/state-utils.js.map +1 -1
  230. package/lib/components/helpers/template-utils.d.ts +1 -1
  231. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  232. package/lib/components/helpers/template-utils.js +1 -2
  233. package/lib/components/helpers/template-utils.js.map +1 -1
  234. package/lib/components/helpers/utils.d.ts +1 -1
  235. package/lib/components/helpers/utils.d.ts.map +1 -1
  236. package/lib/components/helpers/utils.js +3 -8
  237. package/lib/components/helpers/utils.js.map +1 -1
  238. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  239. package/lib/components/helpers/versionHelpers.js +1 -1
  240. package/lib/components/helpers/versionHelpers.js.map +1 -1
  241. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +2 -2
  242. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  243. package/lib/components/infra/ActionButtons/ActionButtons.js +10 -14
  244. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  245. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  246. package/lib/components/infra/Assignment/Assignment.d.ts +10 -2
  247. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  248. package/lib/components/infra/Assignment/Assignment.js +68 -71
  249. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  250. package/lib/components/infra/Assignment/index.js.map +1 -1
  251. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +3 -5
  252. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  253. package/lib/components/infra/AssignmentCard/AssignmentCard.js +4 -5
  254. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  255. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  256. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +11 -1
  257. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  258. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +36 -158
  259. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  260. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  261. package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
  262. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  263. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  264. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  265. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  266. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
  267. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  268. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  269. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  270. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  271. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  272. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -1
  273. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  274. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +178 -160
  275. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  276. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  277. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  278. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  279. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  280. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  281. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  282. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  283. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  284. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  285. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  286. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  287. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  288. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  289. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  290. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  291. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +17 -24
  292. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  293. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  294. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  295. package/lib/components/infra/Containers/helpers.js +7 -0
  296. package/lib/components/infra/Containers/helpers.js.map +1 -0
  297. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +3 -4
  298. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  299. package/lib/components/infra/DashboardFilter/DashboardFilter.js +13 -17
  300. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  301. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  302. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  303. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  304. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +9 -1
  305. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  306. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -17
  307. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  308. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  309. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  310. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  311. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +15 -14
  312. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  313. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  314. package/lib/components/infra/MultiStep/MultiStep.d.ts +5 -7
  315. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  316. package/lib/components/infra/MultiStep/MultiStep.js +29 -80
  317. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  318. package/lib/components/infra/MultiStep/index.js.map +1 -1
  319. package/lib/components/infra/NavBar/NavBar.css +103 -105
  320. package/lib/components/infra/NavBar/NavBar.d.ts +3 -3
  321. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  322. package/lib/components/infra/NavBar/NavBar.js +18 -52
  323. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  324. package/lib/components/infra/Reference/Reference.d.ts +9 -1
  325. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  326. package/lib/components/infra/Reference/Reference.js +6 -13
  327. package/lib/components/infra/Reference/Reference.js.map +1 -1
  328. package/lib/components/infra/Region/Region.d.ts +2 -3
  329. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  330. package/lib/components/infra/Region/Region.js +2 -3
  331. package/lib/components/infra/Region/Region.js.map +1 -1
  332. package/lib/components/infra/RootContainer/RootContainer.d.ts +14 -1
  333. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  334. package/lib/components/infra/RootContainer/RootContainer.js +40 -62
  335. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  336. package/lib/components/infra/RootContainer/index.js.map +1 -1
  337. package/lib/components/infra/Stages/Stages.d.ts +2 -2
  338. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  339. package/lib/components/infra/Stages/Stages.js +18 -21
  340. package/lib/components/infra/Stages/Stages.js.map +1 -1
  341. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  342. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  343. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  344. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -1
  345. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  346. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +10 -9
  347. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  348. package/lib/components/infra/View/View.d.ts +3 -4
  349. package/lib/components/infra/View/View.d.ts.map +1 -1
  350. package/lib/components/infra/View/View.js +6 -11
  351. package/lib/components/infra/View/View.js.map +1 -1
  352. package/lib/components/template/AppShell/AppShell.css +22 -23
  353. package/lib/components/template/AppShell/AppShell.d.ts +6 -7
  354. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  355. package/lib/components/template/AppShell/AppShell.js +23 -29
  356. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  357. package/lib/components/template/BannerPage/BannerPage.d.ts +4 -4
  358. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  359. package/lib/components/template/BannerPage/BannerPage.js +3 -3
  360. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  361. package/lib/components/template/CaseSummary/CaseSummary.d.ts +3 -4
  362. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  363. package/lib/components/template/CaseSummary/CaseSummary.js +44 -8
  364. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  365. package/lib/components/template/CaseView/CaseView.d.ts +3 -4
  366. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  367. package/lib/components/template/CaseView/CaseView.js +18 -41
  368. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  369. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +3 -3
  370. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  371. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -7
  372. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  373. package/lib/components/template/Confirmation/Confirmation.d.ts +3 -4
  374. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  375. package/lib/components/template/Confirmation/Confirmation.js +7 -14
  376. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  377. package/lib/components/template/DataReference/DataReference.d.ts +4 -4
  378. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  379. package/lib/components/template/DataReference/DataReference.js +35 -49
  380. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  381. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  382. package/lib/components/template/DefaultForm/DefaultForm.d.ts +8 -2
  383. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  384. package/lib/components/template/DefaultForm/DefaultForm.js +5 -14
  385. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  386. package/lib/components/template/Details/Details/Details.d.ts +8 -1
  387. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  388. package/lib/components/template/Details/Details/Details.js +5 -13
  389. package/lib/components/template/Details/Details/Details.js.map +1 -1
  390. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +3 -4
  391. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  392. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +5 -10
  393. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  394. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +8 -1
  395. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  396. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +5 -16
  397. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  398. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +8 -1
  399. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  400. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +5 -16
  401. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  402. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  403. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +7 -1
  404. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  405. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +6 -17
  406. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  407. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -2
  408. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  409. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -9
  410. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  411. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +3 -4
  412. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  413. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -9
  414. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  415. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +3 -4
  416. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  417. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +7 -6
  418. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  419. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  420. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  421. package/lib/components/template/ListPage/ListPage.js +2 -2
  422. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  423. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  424. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  425. package/lib/components/template/ListView/ListView.d.ts +16 -1
  426. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  427. package/lib/components/template/ListView/ListView.js +106 -181
  428. package/lib/components/template/ListView/ListView.js.map +1 -1
  429. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  430. package/lib/components/template/ListView/hooks.js +4 -6
  431. package/lib/components/template/ListView/hooks.js.map +1 -1
  432. package/lib/components/template/ListView/utils.d.ts +1 -1
  433. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  434. package/lib/components/template/ListView/utils.js +38 -46
  435. package/lib/components/template/ListView/utils.js.map +1 -1
  436. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  437. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  438. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +3 -3
  439. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  440. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  441. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -4
  442. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  443. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  444. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  445. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +8 -1
  446. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  447. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +5 -16
  448. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  449. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  450. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -4
  451. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  452. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  453. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  454. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +4 -4
  455. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  456. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +3 -5
  457. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  458. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -4
  459. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  460. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -8
  461. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  462. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +2 -2
  463. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  464. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +2 -2
  465. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  466. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -4
  467. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  468. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -2
  469. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  470. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  471. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +10 -1
  472. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  473. package/lib/components/template/PromotedFilters/PromotedFilters.js +12 -29
  474. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  475. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  476. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  477. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +17 -20
  478. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  479. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +12 -7
  480. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  481. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +124 -134
  482. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  483. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -1
  484. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  485. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +9 -21
  486. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  487. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  488. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  489. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -5
  490. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  491. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -4
  492. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  493. package/lib/components/template/SubTabs/SubTabs.js +6 -9
  494. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  495. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  496. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  497. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  498. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  499. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +4 -4
  500. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  501. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +14 -12
  502. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  503. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +2 -2
  504. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  505. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +2 -2
  506. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  507. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +4 -4
  508. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  509. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +14 -12
  510. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  511. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  512. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -4
  513. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  514. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +2 -10
  515. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  516. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +8 -1
  517. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  518. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +5 -16
  519. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  520. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  521. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -4
  522. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  523. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  524. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  525. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +4 -4
  526. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  527. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +3 -3
  528. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  529. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  530. package/lib/components/template/WssNavBar/WssNavBar.d.ts +3 -2
  531. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  532. package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
  533. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  534. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +2 -1
  535. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  536. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +10 -19
  537. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  538. package/lib/components/widget/Attachment/Attachment.css +60 -1
  539. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  540. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  541. package/lib/components/widget/Attachment/Attachment.js +279 -353
  542. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  543. package/lib/components/widget/Attachment/index.js.map +1 -1
  544. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  545. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  546. package/lib/components/widget/CaseHistory/CaseHistory.js +37 -31
  547. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  548. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  549. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +4 -3
  550. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  551. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  552. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  553. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  554. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  555. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  556. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +107 -136
  557. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  558. package/lib/components/widget/Followers/Followers.d.ts +4 -4
  559. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  560. package/lib/components/widget/Followers/Followers.js +8 -16
  561. package/lib/components/widget/Followers/Followers.js.map +1 -1
  562. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  563. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  564. package/lib/components/widget/QuickCreate/QuickCreate.js +57 -35
  565. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  566. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  567. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +3 -2
  568. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  569. package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
  570. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  571. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  572. package/lib/components/widget/SummaryList/SummaryList.d.ts +3 -2
  573. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  574. package/lib/components/widget/SummaryList/SummaryList.js +3 -3
  575. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  576. package/lib/components/widget/ToDo/ToDo.css +4 -4
  577. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  578. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  579. package/lib/components/widget/ToDo/ToDo.js +31 -67
  580. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  581. package/lib/components_map.d.ts +2 -2
  582. package/lib/components_map.d.ts.map +1 -1
  583. package/lib/components_map.js +4 -2
  584. package/lib/components_map.js.map +1 -1
  585. package/lib/doc/KeyReleaseUpdates.md +21 -4
  586. package/lib/hooks/useConsolidatedRef.js +2 -2
  587. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  588. package/lib/sdk-local-component-map.js +2 -2
  589. package/lib/sdk-pega-component-map.d.ts +6 -0
  590. package/lib/sdk-pega-component-map.js +106 -100
  591. package/lib/sdk-pega-component-map.js.map +1 -1
  592. package/lib/types/PConnProps.d.ts +14 -15
  593. package/package.json +5 -2
  594. package/lib/components/helpers/auth.d.ts +0 -18
  595. package/lib/components/helpers/auth.d.ts.map +0 -1
  596. package/lib/components/helpers/auth.js +0 -752
  597. package/lib/components/helpers/auth.js.map +0 -1
  598. package/lib/components/helpers/authManager.d.ts +0 -21
  599. package/lib/components/helpers/authManager.d.ts.map +0 -1
  600. package/lib/components/helpers/authManager.js +0 -864
  601. package/lib/components/helpers/authManager.js.map +0 -1
  602. package/lib/components/helpers/config_access.d.ts +0 -3
  603. package/lib/components/helpers/config_access.d.ts.map +0 -1
  604. package/lib/components/helpers/config_access.js +0 -198
  605. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1,17 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  /* eslint-disable no-nested-ternary */
2
- /* eslint-disable camelcase */
3
- import React, { useState, useEffect, useContext, createElement } from 'react';
3
+ import { useState, useEffect, useContext } from 'react';
4
4
  import { makeStyles } from '@material-ui/core/styles';
5
5
  import { Card, CardHeader, Avatar, Typography } from '@material-ui/core';
6
- import { Utils } from '../../../helpers/utils';
7
6
  import { Alert } from '@material-ui/lab';
8
- import createPConnectComponent from '../../../../bridge/react_pconnect';
9
- import StoreContext from '../../../../bridge/Context/StoreContext';
10
7
  import DayjsUtils from '@date-io/dayjs';
11
8
  import { MuiPickersUtilsProvider } from '@material-ui/pickers';
12
- import { addContainerItem, getToDoAssignments, showBanner } from './helpers';
13
- import { isEmptyObject } from '../../../helpers/common-utils';
9
+ import StoreContext from '../../../../bridge/Context/StoreContext';
10
+ import { Utils } from '../../../helpers/utils';
11
+ import { isContainerInitialized } from '../helpers';
14
12
  import { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';
13
+ import { withSimpleViewContainerRenderer } from '../SimpleView/SimpleView';
14
+ import { addContainerItem, getToDoAssignments, showBanner, hasContainerItems } from './helpers';
15
15
  //
16
16
  // WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
17
17
  // Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
@@ -37,58 +37,40 @@ const useStyles = makeStyles(theme => ({
37
37
  color: theme.palette.getContrastText(theme.palette.primary.light)
38
38
  }
39
39
  }));
40
- export default function FlowContainer(props /* : FlowContainerProps */) {
40
+ export const FlowContainer = (props) => {
41
41
  // Get the proper implementation (local or Pega-provided) for these components that are emitted below
42
42
  const Assignment = getComponentFromMap('Assignment');
43
43
  const ToDo = getComponentFromMap('Todo'); // NOTE: ConstellationJS Engine uses "Todo" and not "ToDo"!!!
44
- const AlertBanner = getComponentFromMap("AlertBanner");
44
+ const AlertBanner = getComponentFromMap('AlertBanner');
45
45
  const pCoreConstants = PCore.getConstants();
46
46
  const PCoreVersion = PCore.getPCoreVersion();
47
47
  const { TODO } = pCoreConstants;
48
48
  const todo_headerText = 'To do';
49
- const { getPConnect, routingInfo, pageMessages } = props;
49
+ const { getPConnect: getPConnectOfFlowContainer, pageMessages, rootViewElement, getPConnectOfActiveContainerItem, assignmentNames, activeContainerItemID: itemKey } = props;
50
50
  const { displayOnlyFA } = useContext(StoreContext);
51
+ const pConnectOfFlowContainer = getPConnectOfFlowContainer();
52
+ const isInitialized = isContainerInitialized(pConnectOfFlowContainer);
53
+ const hasItems = isInitialized && hasContainerItems(pConnectOfFlowContainer);
54
+ const getPConnect = getPConnectOfActiveContainerItem || getPConnectOfFlowContainer;
51
55
  const thePConn = getPConnect();
56
+ const containerName = assignmentNames && assignmentNames.length > 0 ? assignmentNames[0] : '';
52
57
  // const [init, setInit] = useState(true);
53
58
  // const [fcState, setFCState] = useState({ hasError: false });
54
- const [arNewChildren, setArNewChildren] = useState(thePConn.getChildren());
55
- const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState([]);
56
59
  const [todo_showTodo, setShowTodo] = useState(false);
57
60
  const [todo_caseInfoID, setCaseInfoID] = useState('');
58
61
  const [todo_showTodoList, setShowTodoList] = useState(false);
59
62
  const [todo_datasource, setTodoDatasource] = useState({});
60
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
63
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
61
64
  const [todo_context, setTodoContext] = useState('');
62
65
  const [caseMessages, setCaseMessages] = useState('');
63
66
  const [bHasCaseMessages, setHasCaseMessages] = useState(false);
64
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
67
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
68
  const [checkSvg, setCheckSvg] = useState('');
66
- const [itemKey, setItemKey] = useState('');
67
- const [containerName, setContainerName] = useState('');
68
69
  const [buildName, setBuildName] = useState('');
69
70
  const [bShowConfirm, setShowConfirm] = useState(false);
70
71
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
71
72
  const localeCategory = 'Messages';
72
- const caseInfo = getPConnect().getCaseInfo();
73
- const localeReference = `${caseInfo?.getClassName()}!CASE!${caseInfo.getName()}`.toUpperCase();
74
73
  const classes = useStyles();
75
- function initContainer() {
76
- const ourPConn = getPConnect();
77
- const containerMgr = ourPConn.getContainerManager();
78
- const baseContext = ourPConn.getContextName();
79
- const theContainerName = ourPConn.getContainerName();
80
- const containerType = 'single';
81
- const flowContainerTarget = `${baseContext}/${theContainerName}`;
82
- const isContainerItemAvailable = PCore.getContainerUtils().getActiveContainerItemName(flowContainerTarget);
83
- window.sessionStorage.setItem('okToInitFlowContainer', 'false');
84
- if (!isContainerItemAvailable) {
85
- containerMgr.initializeContainers({
86
- type: containerType
87
- });
88
- // updated for 8.7 - 30-Mar-2022
89
- addContainerItem(ourPConn);
90
- }
91
- }
92
74
  function getBuildName() {
93
75
  const ourPConn = getPConnect();
94
76
  // let { getPConnect, name } = this.pConn$.pConn;
@@ -109,12 +91,8 @@ export default function FlowContainer(props /* : FlowContainerProps */) {
109
91
  }
110
92
  return true;
111
93
  }
112
- function initComponent(bLoadChildren) {
94
+ function initComponent() {
113
95
  const ourPConn = getPConnect();
114
- // when true, update arChildren from pConn, otherwise, arChilren will be updated in updateSelf()
115
- if (bLoadChildren) {
116
- setArNewChildren(ourPConn.getChildren());
117
- }
118
96
  // debugging/investigation help
119
97
  // console.log(`${ourPConn.getComponentName()}: children update for main draw`);
120
98
  // const oData = ourPConn.getDataObject();
@@ -123,34 +101,22 @@ export default function FlowContainer(props /* : FlowContainerProps */) {
123
101
  // this.templateName$ = this.configProps$["template"];
124
102
  // debugger;
125
103
  setShowTodo(getTodoVisibility());
126
- // create pointers to functions
127
- // const containerMgr = ourPConn.getContainerManager();
128
- // const actionsAPI = thePConn.getActionsApi();
129
- const baseContext = ourPConn.getContextName();
130
- const acName = ourPConn.getContainerName();
131
- // for now, in general this should be overridden by updateSelf(), and not be blank
132
- if (itemKey === '') {
133
- // debugger;
134
- setItemKey(baseContext.concat('/').concat(acName));
135
- }
136
104
  ourPConn.isBoundToState();
137
- // inside
138
- // get fist kid, get the name and displa
139
- // pass first kid to a view container, which will disperse it to a view which will use one column, two column, etc.
140
- const oWorkItem = arNewChildren[0].getPConnect(); // child0_getPConnect;
141
- const oWorkData = oWorkItem.getDataObject();
142
- if (bLoadChildren && oWorkData) {
143
- // debugger;
144
- setContainerName(localizedVal(oWorkData.caseInfo.assignments?.[0].name, undefined, localeReference));
145
- }
146
105
  // debugger;
147
106
  setBuildName(getBuildName());
148
107
  }
149
108
  useEffect(() => {
150
109
  // from WC SDK connectedCallback (mount)
151
- initComponent(true);
152
- initContainer();
110
+ initComponent();
153
111
  }, []);
112
+ useEffect(() => {
113
+ // @ts-ignore - Property 'getMetadata' is private and only accessible within class 'C11nEnv'
114
+ if (isInitialized && pConnectOfFlowContainer.getMetadata().children && !hasItems) {
115
+ // ensuring not to add container items, if container already has items
116
+ // because during multi doc mode, we will have container items already in store
117
+ addContainerItem(pConnectOfFlowContainer);
118
+ }
119
+ }, [isInitialized, hasItems]);
154
120
  function isCaseWideLocalAction() {
155
121
  const ourPConn = getPConnect();
156
122
  const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID, ''); // 2nd arg empty string until typedefs properly allow optional
@@ -186,7 +152,7 @@ export default function FlowContainer(props /* : FlowContainerProps */) {
186
152
  if (PCoreVersion?.includes('8.7') || isEmbedded) {
187
153
  const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();
188
154
  for (const assignment of assignmentsList) {
189
- if (assignment['assigneeInfo']['ID'] === thisOperator) {
155
+ if (assignment.assigneeInfo.ID === thisOperator) {
190
156
  bAssignmentsForThisOperator = true;
191
157
  }
192
158
  }
@@ -204,21 +170,8 @@ export default function FlowContainer(props /* : FlowContainerProps */) {
204
170
  }
205
171
  return bHasAssignments;
206
172
  }
207
- function getActiveViewLabel() {
208
- const ourPConn = getPConnect();
209
- let activeActionLabel = '';
210
- const { CASE_INFO: CASE_CONSTS } = pCoreConstants;
211
- const caseActions = ourPConn.getValue(CASE_CONSTS.CASE_INFO_ACTIONS, ''); // 2nd arg empty string until typedefs properly allow optionalv
212
- const activeActionID = ourPConn.getValue(CASE_CONSTS.ACTIVE_ACTION_ID, ''); // 2nd arg empty string until typedefs properly allow optional
213
- const activeAction = caseActions?.find(action => action.ID === activeActionID);
214
- if (activeAction) {
215
- activeActionLabel = activeAction.name;
216
- }
217
- return activeActionLabel;
218
- }
219
173
  // From SDK-WC updateSelf - so do this in useEffect that's run only when the props change...
220
174
  useEffect(() => {
221
- const localPConn = arNewChildren[0].getPConnect();
222
175
  setBuildName(getBuildName());
223
176
  // routingInfo was added as component prop in populateAdditionalProps
224
177
  // let routingInfo = this.getComponentProp("routingInfo");
@@ -248,18 +201,11 @@ export default function FlowContainer(props /* : FlowContainerProps */) {
248
201
  setShowTodo(true);
249
202
  setShowTodoList(false);
250
203
  }, 100);
251
- // in React, when cancel is called, somehow the constructor for flowContainer is called which
252
- // does init/add of containers. This mimics that
253
- initContainer();
254
204
  }
255
205
  else if (caseViewMode && caseViewMode === 'perform') {
256
206
  // perform
257
207
  // debugger;
258
208
  setShowTodo(false);
259
- // this is different than Angular SDK, as we need to initContainer if root container reloaded
260
- if (window.sessionStorage.getItem('okToInitFlowContainer') === 'true') {
261
- initContainer();
262
- }
263
209
  }
264
210
  // if have caseMessage show message and end
265
211
  const theCaseMessages = localizedVal(thePConn.getValue('caseMessages', ''), localeCategory); // 2nd arg empty string until typedefs properly allow optional
@@ -270,6 +216,7 @@ export default function FlowContainer(props /* : FlowContainerProps */) {
270
216
  setHasCaseMessages(true);
271
217
  setShowConfirm(true);
272
218
  // publish this "assignmentFinished" for mashup, need to get approved as a standard
219
+ // @ts-ignore - second parameter “payload” for publish method should be optional
273
220
  PCore.getPubSubUtils().publish('assignmentFinished');
274
221
  // debugger;
275
222
  setCheckSvg(Utils.getImageSrc('check', Utils.getSDKStaticConentUrl()));
@@ -279,88 +226,19 @@ export default function FlowContainer(props /* : FlowContainerProps */) {
279
226
  setHasCaseMessages(false);
280
227
  setShowConfirm(false);
281
228
  }
282
- // this check in routingInfo, mimic React to check and get the internals of the
283
- // flowContainer and force updates to pConnect/redux
284
- if (routingInfo && loadingInfo !== undefined) {
285
- // debugging/investigation help
286
- // console.log(`${thePConn.getComponentName()}: >>routingInfo: ${JSON.stringify(routingInfo)}`);
287
- const currentOrder = routingInfo.accessedOrder;
288
- const currentItems = routingInfo.items;
289
- const type = routingInfo.type;
290
- if (currentOrder && currentItems) {
291
- // JA - making more similar to React version
292
- const key = currentOrder[currentOrder.length - 1];
293
- // save off itemKey to be used for finishAssignment, etc.
294
- // debugger;
295
- setItemKey(key);
296
- if (currentOrder.length > 0 &&
297
- currentItems[key] &&
298
- currentItems[key].view &&
299
- type === 'single' &&
300
- !isEmptyObject(currentItems[key].view)) {
301
- const currentItem = currentItems[key];
302
- const rootView = currentItem.view;
303
- const { context } = rootView.config;
304
- const config = { meta: rootView };
305
- config['options'] = {
306
- context: currentItem.context,
307
- pageReference: context || localPConn.getPageReference(),
308
- hasForm: true,
309
- isFlowContainer: true,
310
- containerName: localPConn.getContainerName(),
311
- containerItemName: key,
312
- parentPageReference: localPConn.getPageReference()
313
- };
314
- const configObject = PCore.createPConnect(config);
315
- // Since we're setting an array, need to add in an appropriate key
316
- // to remove React warning.
317
- configObject['key'] = config['options'].parentPageReference;
318
- // keep track of these changes
319
- const theNewChildren = [];
320
- theNewChildren.push(configObject);
321
- setArNewChildren(theNewChildren);
322
- // JEA - adapted from Constellation DX Components FlowContainer since we want to render children that are React components
323
- const root = createElement(createPConnectComponent(), configObject);
324
- setArNewChildrenAsReact([root]);
325
- const oWorkItem = configObject.getPConnect(); // was theNewChildren[0].getPConnect()
326
- const oWorkData = oWorkItem.getDataObject();
327
- // check if have oWorkData, there are times due to timing of state change, when this
328
- // may not be available
329
- if (oWorkData) {
330
- setContainerName(localizedVal(getActiveViewLabel() || oWorkData.caseInfo.assignments?.[0].name, undefined, localeReference));
331
- }
332
- }
333
- }
334
- }
335
229
  }, [props]);
336
230
  const caseId = thePConn.getCaseSummary().content.pyID;
337
- const urgency = getPConnect().getCaseSummary().assignments
338
- ? getPConnect().getCaseSummary().assignments?.[0].urgency
339
- : '';
231
+ const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments?.[0].urgency : '';
340
232
  const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());
341
233
  const bShowBanner = showBanner(getPConnect);
342
234
  const displayPageMessages = () => {
343
235
  let hasBanner = false;
344
- const messages = pageMessages
345
- ? pageMessages.map(msg => localizedVal(msg.message, 'Messages'))
346
- : pageMessages;
236
+ const messages = pageMessages ? pageMessages.map(msg => localizedVal(msg.message, 'Messages')) : pageMessages;
347
237
  hasBanner = messages && messages.length > 0;
348
- return (hasBanner && React.createElement(AlertBanner, { id: 'flowContainerBanner', variant: 'urgent', messages: messages }));
238
+ return hasBanner && _jsx(AlertBanner, { id: 'flowContainerBanner', variant: 'urgent', messages: messages });
349
239
  };
350
- return (React.createElement("div", { style: { textAlign: 'left' }, id: buildName, className: 'psdk-flow-container-top' },
351
- !bShowConfirm &&
352
- (!todo_showTodo ? (!displayOnlyFA ? (React.createElement(Card, { className: classes.root },
353
- React.createElement(CardHeader, { title: React.createElement(Typography, { variant: 'h6' }, containerName), subheader: `Task in ${caseId} \u2022 Priority ${urgency}`, avatar: React.createElement(Avatar, { className: classes.avatar }, operatorInitials) }),
354
- displayPageMessages(),
355
- React.createElement(MuiPickersUtilsProvider, { utils: DayjsUtils },
356
- React.createElement(Assignment, { getPConnect: getPConnect, itemKey: itemKey }, arNewChildrenAsReact)))) : (React.createElement(Card, { className: classes.root },
357
- React.createElement(Typography, { variant: 'h6' }, containerName),
358
- displayPageMessages(),
359
- React.createElement(MuiPickersUtilsProvider, { utils: DayjsUtils },
360
- React.createElement(Assignment, { getPConnect: getPConnect, itemKey: itemKey }, arNewChildrenAsReact))))) : (React.createElement("div", null,
361
- React.createElement(ToDo, { key: Math.random(), getPConnect: getPConnect, caseInfoID: todo_caseInfoID, datasource: todo_datasource, showTodoList: todo_showTodoList, headerText: todo_headerText, type: TODO, context: todo_context, itemKey: itemKey, isConfirm: bHasCaseMessages })))),
362
- bHasCaseMessages && (React.createElement("div", { className: classes.alert },
363
- React.createElement(Alert, { severity: 'success' }, caseMessages))),
364
- bShowConfirm && bShowBanner && React.createElement("div", null, arNewChildrenAsReact)));
365
- }
240
+ return (_jsxs("div", { style: { textAlign: 'left' }, id: buildName, className: 'psdk-flow-container-top', children: [!bShowConfirm &&
241
+ (!todo_showTodo ? (!displayOnlyFA ? (_jsxs(Card, { className: `${classes.root} psdk-root`, children: [_jsx(CardHeader, { title: _jsx(Typography, { variant: 'h6', children: containerName }), subheader: `Task in ${caseId} \u2022 Priority ${urgency}`, avatar: _jsx(Avatar, { className: `${classes.avatar} psdk-avatar`, children: operatorInitials }) }), displayPageMessages(), _jsx(MuiPickersUtilsProvider, { utils: DayjsUtils, children: _jsx(Assignment, { getPConnect: getPConnect, itemKey: itemKey, children: rootViewElement }) })] })) : (_jsxs(Card, { className: `${classes.root} psdk-root`, children: [_jsx(Typography, { variant: 'h6', children: containerName }), displayPageMessages(), _jsx(MuiPickersUtilsProvider, { utils: DayjsUtils, children: _jsx(Assignment, { getPConnect: getPConnect, itemKey: itemKey, children: rootViewElement }) })] }))) : (_jsx("div", { children: _jsx(ToDo, { getPConnect: getPConnect, caseInfoID: todo_caseInfoID, datasource: todo_datasource, showTodoList: todo_showTodoList, headerText: todo_headerText, type: TODO, context: todo_context, itemKey: itemKey, isConfirm: true }, Math.random()) }))), bHasCaseMessages && (_jsx("div", { className: `${classes.alert} psdk-alert`, children: _jsx(Alert, { severity: 'success', children: caseMessages }) })), bShowConfirm && bShowBanner && _jsx("div", { children: rootViewElement })] }));
242
+ };
243
+ export default withSimpleViewContainerRenderer(FlowContainer);
366
244
  //# sourceMappingURL=FlowContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,8BAA8B;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,UAAU,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAmBnF,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM,SAAS,GAAG,UAAU,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BAAgB,IAAI,CACnB,6BAAK,SAAS,EAAE,OAAO,CAAC,KAAK;YAC3B,oBAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,IAAE,YAAY,CAAS,CAC5C,CACP;QACA,YAAY,IAAI,WAAW,IAAI,iCAAM,oBAAoB,CAAO,CAC7D,CACP,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable no-nested-ternary */\n/* eslint-disable camelcase */\nimport React, { useState, useEffect, useContext, createElement } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Card, CardHeader, Avatar, Typography } from '@material-ui/core';\nimport { Utils } from '../../../helpers/utils';\nimport { Alert } from '@material-ui/lab';\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport StoreContext from '../../../../bridge/Context/StoreContext';\nimport DayjsUtils from '@date-io/dayjs';\nimport { MuiPickersUtilsProvider } from '@material-ui/pickers';\n\nimport { addContainerItem, getToDoAssignments, showBanner } from './helpers';\nimport { isEmptyObject } from '../../../helpers/common-utils';\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\n// import type { PConnProps } from '../../../../types/PConnProps';\n\n// Can't use PConnProps until getPConnect().getChildren() types are ok\n// interface FlowContainerProps extends PConnProps {\n// // If any, enter additional props that only exist on this component\n// // eslint-disable-next-line react/no-unused-prop-types\n// children?: Array<any>,\n// // eslint-disable-next-line react/no-unused-prop-types\n// name?: string,\n// routingInfo?: any,\n// // eslint-disable-next-line react/no-unused-prop-types\n// pageMessages: Array<any>\n// }\n\n// Remove this and use \"real\" PCore type once .d.ts is fixed (currently shows 3 errors)\ndeclare const PCore: any;\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(2),\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1.5),\n paddingBottom: theme.spacing(1.5),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n alert: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1)\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n }\n}));\n\nexport default function FlowContainer(props /* : FlowContainerProps */) {\n // Get the proper implementation (local or Pega-provided) for these components that are emitted below\n const Assignment = getComponentFromMap('Assignment');\n const ToDo = getComponentFromMap('Todo'); // NOTE: ConstellationJS Engine uses \"Todo\" and not \"ToDo\"!!!\n const AlertBanner = getComponentFromMap(\"AlertBanner\");\n\n const pCoreConstants = PCore.getConstants();\n const PCoreVersion = PCore.getPCoreVersion();\n const { TODO } = pCoreConstants;\n const todo_headerText = 'To do';\n\n const { getPConnect, routingInfo, pageMessages } = props;\n\n const { displayOnlyFA } = useContext<any>(StoreContext);\n\n const thePConn = getPConnect();\n\n // const [init, setInit] = useState(true);\n // const [fcState, setFCState] = useState({ hasError: false });\n const [arNewChildren, setArNewChildren] = useState<Array<any>>(thePConn.getChildren());\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n\n const [todo_showTodo, setShowTodo] = useState(false);\n const [todo_caseInfoID, setCaseInfoID] = useState('');\n const [todo_showTodoList, setShowTodoList] = useState(false);\n const [todo_datasource, setTodoDatasource] = useState({});\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [todo_context, setTodoContext] = useState('');\n\n const [caseMessages, setCaseMessages] = useState('');\n const [bHasCaseMessages, setHasCaseMessages] = useState(false);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [checkSvg, setCheckSvg] = useState('');\n\n const [itemKey, setItemKey] = useState('');\n const [containerName, setContainerName] = useState('');\n const [buildName, setBuildName] = useState('');\n const [bShowConfirm, setShowConfirm] = useState(false);\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Messages';\n const caseInfo = getPConnect().getCaseInfo();\n const localeReference = `${caseInfo?.getClassName()}!CASE!${caseInfo.getName()}`.toUpperCase();\n\n const classes = useStyles();\n\n function initContainer() {\n const ourPConn = getPConnect();\n const containerMgr = ourPConn.getContainerManager();\n const baseContext = ourPConn.getContextName();\n const theContainerName = ourPConn.getContainerName();\n const containerType = 'single';\n\n const flowContainerTarget = `${baseContext}/${theContainerName}`;\n const isContainerItemAvailable =\n PCore.getContainerUtils().getActiveContainerItemName(flowContainerTarget);\n\n window.sessionStorage.setItem('okToInitFlowContainer', 'false');\n\n if (!isContainerItemAvailable) {\n containerMgr.initializeContainers({\n type: containerType\n });\n\n // updated for 8.7 - 30-Mar-2022\n addContainerItem(ourPConn);\n }\n }\n\n function getBuildName(): string {\n const ourPConn = getPConnect();\n\n // let { getPConnect, name } = this.pConn$.pConn;\n const context = ourPConn.getContextName();\n let viewContainerName = ourPConn.getContainerName();\n\n if (!viewContainerName) viewContainerName = '';\n return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n function getTodoVisibility() {\n const caseViewMode = getPConnect().getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional\n if (caseViewMode && caseViewMode === 'review') {\n return true;\n }\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (caseViewMode && caseViewMode === 'perform') {\n return false;\n }\n\n return true;\n }\n\n function initComponent(bLoadChildren: boolean) {\n const ourPConn = getPConnect();\n\n // when true, update arChildren from pConn, otherwise, arChilren will be updated in updateSelf()\n if (bLoadChildren) {\n setArNewChildren(ourPConn.getChildren());\n }\n\n // debugging/investigation help\n // console.log(`${ourPConn.getComponentName()}: children update for main draw`);\n\n // const oData = ourPConn.getDataObject();\n\n // const activeActionLabel = \"\";\n // const child0_getPConnect = arNewChildren[0].getPConnect();\n\n // this.templateName$ = this.configProps$[\"template\"];\n\n // debugger;\n setShowTodo(getTodoVisibility());\n\n // create pointers to functions\n // const containerMgr = ourPConn.getContainerManager();\n // const actionsAPI = thePConn.getActionsApi();\n const baseContext = ourPConn.getContextName();\n const acName = ourPConn.getContainerName();\n\n // for now, in general this should be overridden by updateSelf(), and not be blank\n if (itemKey === '') {\n // debugger;\n setItemKey(baseContext.concat('/').concat(acName));\n }\n\n ourPConn.isBoundToState();\n\n // inside\n // get fist kid, get the name and displa\n // pass first kid to a view container, which will disperse it to a view which will use one column, two column, etc.\n const oWorkItem = arNewChildren[0].getPConnect(); // child0_getPConnect;\n const oWorkData = oWorkItem.getDataObject();\n\n if (bLoadChildren && oWorkData) {\n // debugger;\n setContainerName(localizedVal(oWorkData.caseInfo.assignments?.[0].name, undefined, localeReference));\n }\n\n // debugger;\n setBuildName(getBuildName());\n }\n\n useEffect(() => {\n // from WC SDK connectedCallback (mount)\n initComponent(true);\n initContainer();\n }, []);\n\n function isCaseWideLocalAction() {\n const ourPConn = getPConnect();\n\n const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID, ''); // 2nd arg empty string until typedefs properly allow optional\n const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS, ''); // 2nd arg empty string until typedefs properly allow optional\n let bCaseWideAction = false;\n if (caseActions && actionID) {\n const actionObj = caseActions.find(caseAction => caseAction.ID === actionID);\n if (actionObj) {\n bCaseWideAction = actionObj.type === 'Case';\n }\n }\n return bCaseWideAction;\n }\n\n function hasChildCaseAssignments() {\n const ourPConn = getPConnect();\n\n const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS, ''); // 2nd arg empty string until typedefs properly allow optional\n // const allAssignments = [];\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (childCases && childCases.length > 0) {\n return true;\n }\n return false;\n }\n\n function hasAssignments() {\n const ourPConn = getPConnect();\n\n let bHasAssignments = false;\n const assignmentsList: Array<any> = ourPConn.getValue(\n pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS, ''\n ); // 2nd arg empty string until typedefs properly allow optional\n const isEmbedded = window.location.href.includes('embedded');\n let bAssignmentsForThisOperator = false;\n // 8.7 includes assignments in Assignments List that may be assigned to\n // a different operator. So, see if there are any assignments for\n // the current operator\n if (PCoreVersion?.includes('8.7') || isEmbedded) {\n const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();\n for (const assignment of assignmentsList) {\n if (assignment['assigneeInfo']['ID'] === thisOperator) {\n bAssignmentsForThisOperator = true;\n }\n }\n } else {\n bAssignmentsForThisOperator = true;\n }\n // Bail out if there isn't an assignmentsList\n if (!assignmentsList) {\n return bHasAssignments;\n }\n\n const bHasChildCaseAssignments = hasChildCaseAssignments();\n\n if (bAssignmentsForThisOperator || bHasChildCaseAssignments || isCaseWideLocalAction()) {\n bHasAssignments = true;\n }\n\n return bHasAssignments;\n }\n\n function getActiveViewLabel() {\n const ourPConn = getPConnect();\n\n let activeActionLabel = '';\n\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n\n const caseActions = ourPConn.getValue(CASE_CONSTS.CASE_INFO_ACTIONS, ''); // 2nd arg empty string until typedefs properly allow optionalv\n const activeActionID = ourPConn.getValue(CASE_CONSTS.ACTIVE_ACTION_ID, ''); // 2nd arg empty string until typedefs properly allow optional\n const activeAction = caseActions?.find(action => action.ID === activeActionID);\n if (activeAction) {\n activeActionLabel = activeAction.name;\n }\n return activeActionLabel;\n }\n\n // From SDK-WC updateSelf - so do this in useEffect that's run only when the props change...\n useEffect(() => {\n const localPConn = arNewChildren[0].getPConnect();\n\n setBuildName(getBuildName());\n\n // routingInfo was added as component prop in populateAdditionalProps\n // let routingInfo = this.getComponentProp(\"routingInfo\");\n\n let loadingInfo: any;\n try {\n loadingInfo = thePConn.getLoadingStatus(''); // 1st arg empty string until typedefs properly allow optional\n } catch (ex) {\n // eslint-disable-next-line no-console\n console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);\n }\n\n // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());\n\n if (!loadingInfo) {\n // turn off spinner\n // this.psService.sendMessage(false);\n }\n\n const caseViewMode = thePConn.getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n if (caseViewMode && caseViewMode === 'review') {\n setTimeout(() => {\n // updated for 8.7 - 30-Mar-2022\n const todoAssignments = getToDoAssignments(thePConn);\n if (todoAssignments && todoAssignments.length > 0) {\n setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID, '')); // 2nd arg empty string until typedefs properly allow optional\n setTodoDatasource({ source: todoAssignments });\n }\n setShowTodo(true);\n setShowTodoList(false);\n }, 100);\n\n // in React, when cancel is called, somehow the constructor for flowContainer is called which\n // does init/add of containers. This mimics that\n initContainer();\n } else if (caseViewMode && caseViewMode === 'perform') {\n // perform\n // debugger;\n setShowTodo(false);\n\n // this is different than Angular SDK, as we need to initContainer if root container reloaded\n if (window.sessionStorage.getItem('okToInitFlowContainer') === 'true') {\n initContainer();\n }\n }\n\n // if have caseMessage show message and end\n const theCaseMessages = localizedVal(thePConn.getValue('caseMessages', ''), localeCategory); // 2nd arg empty string until typedefs properly allow optional\n\n if (theCaseMessages || !hasAssignments()) {\n // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.\n // So, if we get here and caseMessages$ is empty, use default value in DX API response\n setCaseMessages(\n theCaseMessages || localizedVal('Thank you! The next step in this case has been routed appropriately.', localeCategory)\n );\n setHasCaseMessages(true);\n setShowConfirm(true);\n\n // publish this \"assignmentFinished\" for mashup, need to get approved as a standard\n PCore.getPubSubUtils().publish('assignmentFinished');\n\n // debugger;\n setCheckSvg(Utils.getImageSrc('check', Utils.getSDKStaticConentUrl()));\n } else {\n // debugger;\n setHasCaseMessages(false);\n setShowConfirm(false);\n }\n\n // this check in routingInfo, mimic React to check and get the internals of the\n // flowContainer and force updates to pConnect/redux\n if (routingInfo && loadingInfo !== undefined) {\n // debugging/investigation help\n // console.log(`${thePConn.getComponentName()}: >>routingInfo: ${JSON.stringify(routingInfo)}`);\n\n const currentOrder = routingInfo.accessedOrder;\n const currentItems = routingInfo.items;\n const type = routingInfo.type;\n if (currentOrder && currentItems) {\n // JA - making more similar to React version\n const key = currentOrder[currentOrder.length - 1];\n\n // save off itemKey to be used for finishAssignment, etc.\n // debugger;\n setItemKey(key);\n\n if (\n currentOrder.length > 0 &&\n currentItems[key] &&\n currentItems[key].view &&\n type === 'single' &&\n !isEmptyObject(currentItems[key].view)\n ) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n\n config['options'] = {\n context: currentItem.context,\n pageReference: context || localPConn.getPageReference(),\n hasForm: true,\n isFlowContainer: true,\n containerName: localPConn.getContainerName(),\n containerItemName: key,\n parentPageReference: localPConn.getPageReference()\n };\n\n const configObject = PCore.createPConnect(config);\n\n // Since we're setting an array, need to add in an appropriate key\n // to remove React warning.\n configObject['key'] = config['options'].parentPageReference;\n\n // keep track of these changes\n const theNewChildren: Array<Object> = [];\n theNewChildren.push(configObject);\n setArNewChildren(theNewChildren);\n\n // JEA - adapted from Constellation DX Components FlowContainer since we want to render children that are React components\n const root = createElement(createPConnectComponent(), configObject);\n setArNewChildrenAsReact([root]);\n\n const oWorkItem = configObject.getPConnect(); // was theNewChildren[0].getPConnect()\n const oWorkData = oWorkItem.getDataObject();\n\n // check if have oWorkData, there are times due to timing of state change, when this\n // may not be available\n if (oWorkData) {\n setContainerName(localizedVal(getActiveViewLabel() || oWorkData.caseInfo.assignments?.[0].name, undefined, localeReference));\n }\n }\n }\n }\n }, [props]);\n\n const caseId = thePConn.getCaseSummary().content.pyID;\n const urgency = getPConnect().getCaseSummary().assignments\n ? getPConnect().getCaseSummary().assignments?.[0].urgency\n : '';\n const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());\n\n const bShowBanner = showBanner(getPConnect);\n\n const displayPageMessages = () => {\n let hasBanner = false;\n const messages = pageMessages\n ? pageMessages.map(msg => localizedVal(msg.message, 'Messages'))\n : pageMessages;\n hasBanner = messages && messages.length > 0;\n return (\n hasBanner && <AlertBanner id='flowContainerBanner' variant='urgent' messages={messages} />\n );\n };\n\n return (\n <div style={{ textAlign: 'left' }} id={buildName} className='psdk-flow-container-top'>\n {!bShowConfirm &&\n (!todo_showTodo ? (\n !displayOnlyFA ? (\n <Card className={classes.root}>\n <CardHeader\n title={<Typography variant='h6'>{containerName}</Typography>}\n subheader={`Task in ${caseId} \\u2022 Priority ${urgency}`}\n avatar={<Avatar className={classes.avatar}>{operatorInitials}</Avatar>}\n ></CardHeader>\n {displayPageMessages()}\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n ) : (\n <Card className={classes.root}>\n <Typography variant='h6'>{containerName}</Typography>\n {displayPageMessages()}\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n )\n ) : (\n <div>\n <ToDo\n key={Math.random()}\n getPConnect={getPConnect}\n caseInfoID={todo_caseInfoID}\n datasource={todo_datasource}\n showTodoList={todo_showTodoList}\n headerText={todo_headerText}\n type={TODO}\n context={todo_context}\n itemKey={itemKey}\n isConfirm={bHasCaseMessages}\n ></ToDo>\n </div>\n ))}\n {bHasCaseMessages && (\n <div className={classes.alert}>\n <Alert severity='success'>{caseMessages}</Alert>\n </div>\n )}\n {bShowConfirm && bShowBanner && <div>{arNewChildrenAsReact}</div>}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"FlowContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":";AAAA,sCAAsC;AAEtC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CA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,EACrB,OAAO,EAAE,OAAO,EAChB,SAAS,UATJ,IAAI,CAAC,MAAM,EAAE,CAUlB,GACE,CACP,CAAC,EACH,gBAAgB,IAAI,CACnB,cAAK,SAAS,EAAE,GAAG,OAAO,CAAC,KAAK,aAAa,YAC3C,KAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,YAAE,YAAY,GAAS,GAC5C,CACP,EACA,YAAY,IAAI,WAAW,IAAI,wBAAM,eAAe,GAAO,IACxD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,+BAA+B,CAAC,aAAa,CAAC,CAAC","sourcesContent":["/* eslint-disable no-nested-ternary */\n\nimport { useState, useEffect, useContext } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Card, CardHeader, Avatar, Typography } from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\nimport DayjsUtils from '@date-io/dayjs';\nimport { MuiPickersUtilsProvider } from '@material-ui/pickers';\n\nimport StoreContext from '../../../../bridge/Context/StoreContext';\nimport { Utils } from '../../../helpers/utils';\nimport { isContainerInitialized } from '../helpers';\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\nimport { withSimpleViewContainerRenderer } from '../SimpleView/SimpleView';\n\nimport { addContainerItem, getToDoAssignments, showBanner, hasContainerItems } from './helpers';\nimport { PConnProps } from '../../../../types/PConnProps';\n\ninterface FlowContainerProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n pageMessages: any[];\n rootViewElement: React.ReactNode;\n getPConnectOfActiveContainerItem: Function;\n assignmentNames: string[];\n activeContainerItemID: string;\n}\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(2),\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1.5),\n paddingBottom: theme.spacing(1.5),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n alert: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1)\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n }\n}));\n\nexport const FlowContainer = (props: FlowContainerProps) => {\n // Get the proper implementation (local or Pega-provided) for these components that are emitted below\n const Assignment = getComponentFromMap('Assignment');\n const ToDo = getComponentFromMap('Todo'); // NOTE: ConstellationJS Engine uses \"Todo\" and not \"ToDo\"!!!\n const AlertBanner = getComponentFromMap('AlertBanner');\n\n const pCoreConstants = PCore.getConstants();\n const PCoreVersion = PCore.getPCoreVersion();\n const { TODO } = pCoreConstants;\n const todo_headerText = 'To do';\n\n const {\n getPConnect: getPConnectOfFlowContainer,\n pageMessages,\n rootViewElement,\n getPConnectOfActiveContainerItem,\n assignmentNames,\n activeContainerItemID: itemKey\n } = props;\n\n const { displayOnlyFA } = useContext<any>(StoreContext);\n const pConnectOfFlowContainer = getPConnectOfFlowContainer();\n const isInitialized = isContainerInitialized(pConnectOfFlowContainer);\n const hasItems = isInitialized && hasContainerItems(pConnectOfFlowContainer);\n const getPConnect = getPConnectOfActiveContainerItem || getPConnectOfFlowContainer;\n const thePConn = getPConnect();\n const containerName = assignmentNames && assignmentNames.length > 0 ? assignmentNames[0] : '';\n // const [init, setInit] = useState(true);\n // const [fcState, setFCState] = useState({ hasError: false });\n\n const [todo_showTodo, setShowTodo] = useState(false);\n const [todo_caseInfoID, setCaseInfoID] = useState('');\n const [todo_showTodoList, setShowTodoList] = useState(false);\n const [todo_datasource, setTodoDatasource] = useState({});\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [todo_context, setTodoContext] = useState('');\n\n const [caseMessages, setCaseMessages] = useState('');\n const [bHasCaseMessages, setHasCaseMessages] = useState(false);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [checkSvg, setCheckSvg] = useState('');\n\n const [buildName, setBuildName] = useState('');\n const [bShowConfirm, setShowConfirm] = useState(false);\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Messages';\n\n const classes = useStyles();\n\n function getBuildName(): string {\n const ourPConn = getPConnect();\n\n // let { getPConnect, name } = this.pConn$.pConn;\n const context = ourPConn.getContextName();\n let viewContainerName = ourPConn.getContainerName();\n\n if (!viewContainerName) viewContainerName = '';\n return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n function getTodoVisibility() {\n const caseViewMode = getPConnect().getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional\n if (caseViewMode && caseViewMode === 'review') {\n return true;\n }\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (caseViewMode && caseViewMode === 'perform') {\n return false;\n }\n\n return true;\n }\n\n function initComponent() {\n const ourPConn = getPConnect();\n\n // debugging/investigation help\n // console.log(`${ourPConn.getComponentName()}: children update for main draw`);\n\n // const oData = ourPConn.getDataObject();\n\n // const activeActionLabel = \"\";\n // const child0_getPConnect = arNewChildren[0].getPConnect();\n\n // this.templateName$ = this.configProps$[\"template\"];\n\n // debugger;\n setShowTodo(getTodoVisibility());\n\n ourPConn.isBoundToState();\n\n // debugger;\n setBuildName(getBuildName());\n }\n\n useEffect(() => {\n // from WC SDK connectedCallback (mount)\n initComponent();\n }, []);\n\n useEffect(() => {\n // @ts-ignore - Property 'getMetadata' is private and only accessible within class 'C11nEnv'\n if (isInitialized && pConnectOfFlowContainer.getMetadata().children && !hasItems) {\n // ensuring not to add container items, if container already has items\n // because during multi doc mode, we will have container items already in store\n addContainerItem(pConnectOfFlowContainer);\n }\n }, [isInitialized, hasItems]);\n\n function isCaseWideLocalAction() {\n const ourPConn = getPConnect();\n\n const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID, ''); // 2nd arg empty string until typedefs properly allow optional\n const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS, ''); // 2nd arg empty string until typedefs properly allow optional\n let bCaseWideAction = false;\n if (caseActions && actionID) {\n const actionObj = caseActions.find(caseAction => caseAction.ID === actionID);\n if (actionObj) {\n bCaseWideAction = actionObj.type === 'Case';\n }\n }\n return bCaseWideAction;\n }\n\n function hasChildCaseAssignments() {\n const ourPConn = getPConnect();\n\n const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS, ''); // 2nd arg empty string until typedefs properly allow optional\n // const allAssignments = [];\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (childCases && childCases.length > 0) {\n return true;\n }\n return false;\n }\n\n function hasAssignments() {\n const ourPConn = getPConnect();\n\n let bHasAssignments = false;\n const assignmentsList: any[] = ourPConn.getValue(pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS, ''); // 2nd arg empty string until typedefs properly allow optional\n const isEmbedded = window.location.href.includes('embedded');\n let bAssignmentsForThisOperator = false;\n // 8.7 includes assignments in Assignments List that may be assigned to\n // a different operator. So, see if there are any assignments for\n // the current operator\n if (PCoreVersion?.includes('8.7') || isEmbedded) {\n const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();\n for (const assignment of assignmentsList) {\n if (assignment.assigneeInfo.ID === thisOperator) {\n bAssignmentsForThisOperator = true;\n }\n }\n } else {\n bAssignmentsForThisOperator = true;\n }\n // Bail out if there isn't an assignmentsList\n if (!assignmentsList) {\n return bHasAssignments;\n }\n\n const bHasChildCaseAssignments = hasChildCaseAssignments();\n\n if (bAssignmentsForThisOperator || bHasChildCaseAssignments || isCaseWideLocalAction()) {\n bHasAssignments = true;\n }\n\n return bHasAssignments;\n }\n\n // From SDK-WC updateSelf - so do this in useEffect that's run only when the props change...\n useEffect(() => {\n setBuildName(getBuildName());\n\n // routingInfo was added as component prop in populateAdditionalProps\n // let routingInfo = this.getComponentProp(\"routingInfo\");\n\n let loadingInfo: any;\n try {\n loadingInfo = thePConn.getLoadingStatus(''); // 1st arg empty string until typedefs properly allow optional\n } catch (ex) {\n // eslint-disable-next-line no-console\n console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);\n }\n\n // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());\n\n if (!loadingInfo) {\n // turn off spinner\n // this.psService.sendMessage(false);\n }\n\n const caseViewMode = thePConn.getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n if (caseViewMode && caseViewMode === 'review') {\n setTimeout(() => {\n // updated for 8.7 - 30-Mar-2022\n const todoAssignments = getToDoAssignments(thePConn);\n if (todoAssignments && todoAssignments.length > 0) {\n setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID, '')); // 2nd arg empty string until typedefs properly allow optional\n setTodoDatasource({ source: todoAssignments });\n }\n setShowTodo(true);\n setShowTodoList(false);\n }, 100);\n } else if (caseViewMode && caseViewMode === 'perform') {\n // perform\n // debugger;\n setShowTodo(false);\n }\n\n // if have caseMessage show message and end\n const theCaseMessages = localizedVal(thePConn.getValue('caseMessages', ''), localeCategory); // 2nd arg empty string until typedefs properly allow optional\n\n if (theCaseMessages || !hasAssignments()) {\n // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.\n // So, if we get here and caseMessages$ is empty, use default value in DX API response\n setCaseMessages(theCaseMessages || localizedVal('Thank you! The next step in this case has been routed appropriately.', localeCategory));\n setHasCaseMessages(true);\n setShowConfirm(true);\n\n // publish this \"assignmentFinished\" for mashup, need to get approved as a standard\n // @ts-ignore - second parameter “payload” for publish method should be optional\n PCore.getPubSubUtils().publish('assignmentFinished');\n\n // debugger;\n setCheckSvg(Utils.getImageSrc('check', Utils.getSDKStaticConentUrl()));\n } else {\n // debugger;\n setHasCaseMessages(false);\n setShowConfirm(false);\n }\n }, [props]);\n\n const caseId = thePConn.getCaseSummary().content.pyID;\n const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments?.[0].urgency : '';\n const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());\n\n const bShowBanner = showBanner(getPConnect);\n\n const displayPageMessages = () => {\n let hasBanner = false;\n const messages = pageMessages ? pageMessages.map(msg => localizedVal(msg.message, 'Messages')) : pageMessages;\n hasBanner = messages && messages.length > 0;\n return hasBanner && <AlertBanner id='flowContainerBanner' variant='urgent' messages={messages} />;\n };\n\n return (\n <div style={{ textAlign: 'left' }} id={buildName} className='psdk-flow-container-top'>\n {!bShowConfirm &&\n (!todo_showTodo ? (\n !displayOnlyFA ? (\n <Card className={`${classes.root} psdk-root`}>\n <CardHeader\n title={<Typography variant='h6'>{containerName}</Typography>}\n subheader={`Task in ${caseId} \\u2022 Priority ${urgency}`}\n avatar={<Avatar className={`${classes.avatar} psdk-avatar`}>{operatorInitials}</Avatar>}\n />\n {displayPageMessages()}\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {rootViewElement}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n ) : (\n <Card className={`${classes.root} psdk-root`}>\n <Typography variant='h6'>{containerName}</Typography>\n {displayPageMessages()}\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {rootViewElement}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n )\n ) : (\n <div>\n <ToDo\n key={Math.random()}\n getPConnect={getPConnect}\n caseInfoID={todo_caseInfoID}\n datasource={todo_datasource}\n showTodoList={todo_showTodoList}\n headerText={todo_headerText}\n type={TODO}\n context={todo_context}\n itemKey={itemKey}\n isConfirm\n />\n </div>\n ))}\n {bHasCaseMessages && (\n <div className={`${classes.alert} psdk-alert`}>\n <Alert severity='success'>{caseMessages}</Alert>\n </div>\n )}\n {bShowConfirm && bShowBanner && <div>{rootViewElement}</div>}\n </div>\n );\n};\n\nexport default withSimpleViewContainerRenderer(FlowContainer);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/helpers.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,yBA0B5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,4BAI7B,CAAA;AAED,eAAO,MAAM,uBAAuB,wBAQnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,wBAIlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,4BAEnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,4BAWjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,4BAgBnC,CAAC;AAEF,eAAO,MAAM,cAAc,4BAU1B,CAAC;AAEF,eAAO,MAAM,UAAU,+BAGtB,CAAC;AAEF,eAAO,MAAM,QAAQ,4BAGpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,yCAMnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,wBA2B9B,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/helpers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,yBA0B5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,4BAI7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,wBAMnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,wBAIlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,4BAEnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,4BASjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,4BAgBnC,CAAC;AAEF,eAAO,MAAM,cAAc,4BAU1B,CAAC;AAEF,eAAO,MAAM,UAAU,+BAGtB,CAAC;AAEF,eAAO,MAAM,QAAQ,4BAGpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,yCAInC,CAAC;AAEF,eAAO,MAAM,kBAAkB,wBAwB9B,CAAC"}
@@ -1,14 +1,14 @@
1
1
  // Moved PCore.getConstants() into each function in which it's used until we can
2
2
  // make sure that this code isn't run until PCore is defined (after onPCoreReady)
3
- // const { CASE_INFO } = window.PCore.getConstants();
4
- export const addContainerItem = (pConnect) => {
3
+ // const { CASE_INFO } = PCore.getConstants();
4
+ export const addContainerItem = pConnect => {
5
5
  const containerManager = pConnect.getContainerManager();
6
6
  const contextName = pConnect.getContextName(); // here we will get parent context name, as flow container is child of view container
7
- const caseViewMode = pConnect.getValue("context_data.caseViewMode");
7
+ const caseViewMode = pConnect.getValue('context_data.caseViewMode');
8
8
  let key;
9
9
  let flowName;
10
- if (caseViewMode !== "review") {
11
- const target = contextName.substring(0, contextName.lastIndexOf("_"));
10
+ if (caseViewMode !== 'review') {
11
+ const target = contextName.substring(0, contextName.lastIndexOf('_'));
12
12
  const activeContainerItemID = PCore.getContainerUtils().getActiveContainerItemName(target);
13
13
  const containerItemData = PCore.getContainerUtils().getContainerItemData(target, activeContainerItemID);
14
14
  if (containerItemData) {
@@ -16,52 +16,52 @@ export const addContainerItem = (pConnect) => {
16
16
  }
17
17
  }
18
18
  containerManager.addContainerItem({
19
- semanticURL: "",
19
+ semanticURL: '',
20
20
  key,
21
21
  flowName,
22
- caseViewMode: "perform",
23
- resourceType: "ASSIGNMENT",
22
+ caseViewMode: 'perform',
23
+ resourceType: 'ASSIGNMENT',
24
24
  data: pConnect.getDataObject(contextName)
25
25
  });
26
26
  };
27
- export const hasContainerItems = (pConnect) => {
27
+ export const hasContainerItems = pConnect => {
28
28
  const contextName = pConnect.getContextName();
29
29
  const containerName = pConnect.getContainerName();
30
30
  return PCore.getContainerUtils().hasContainerItems(`${contextName}/${containerName}`);
31
31
  };
32
- export const getActiveCaseActionName = (pConnect) => {
32
+ export const getActiveCaseActionName = pConnect => {
33
33
  const { CASE_INFO } = PCore.getConstants();
34
34
  const caseActions = pConnect.getValue(CASE_INFO.CASE_INFO_ACTIONS);
35
35
  const activeActionID = pConnect.getValue(CASE_INFO.ACTIVE_ACTION_ID);
36
- const activeAction = caseActions.find((action) => action.ID === activeActionID);
37
- return activeAction?.name || "";
36
+ const activeAction = caseActions.find(action => action.ID === activeActionID);
37
+ return activeAction?.name || '';
38
38
  };
39
- export const getFirstCaseActionName = (pConnect) => {
39
+ export const getFirstCaseActionName = pConnect => {
40
40
  const { CASE_INFO } = PCore.getConstants();
41
41
  const caseActions = pConnect.getValue(CASE_INFO.CASE_INFO_ACTIONS);
42
- return caseActions[0]?.name || "";
42
+ return caseActions[0]?.name || '';
43
43
  };
44
- export const hasNotificationMessages = (pConnect) => {
45
- return !!pConnect.getValue("caseMessages");
44
+ export const hasNotificationMessages = pConnect => {
45
+ return !!pConnect.getValue('caseMessages');
46
46
  };
47
- export const isCaseWideLocalAction = (pConnect) => {
47
+ export const isCaseWideLocalAction = pConnect => {
48
48
  const { CASE_INFO } = PCore.getConstants();
49
49
  const actionID = pConnect.getValue(CASE_INFO.ACTIVE_ACTION_ID);
50
50
  const caseActions = pConnect.getValue(CASE_INFO.CASE_INFO_ACTIONS);
51
51
  if (caseActions && actionID) {
52
- const activeAction = caseActions.find((caseAction) => caseAction.ID === actionID);
53
- return activeAction?.type === "Case";
52
+ const activeAction = caseActions.find(caseAction => caseAction.ID === actionID);
53
+ return activeAction?.type === 'Case';
54
54
  }
55
55
  return false;
56
56
  };
57
- export const getChildCaseAssignments = (pConnect) => {
57
+ export const getChildCaseAssignments = pConnect => {
58
58
  const { CASE_INFO } = PCore.getConstants();
59
59
  const childCases = pConnect.getValue(CASE_INFO.CHILD_ASSIGNMENTS);
60
60
  let allAssignments = [];
61
61
  if (childCases && childCases.length > 0) {
62
62
  childCases.forEach(({ assignments, Name }) => {
63
63
  if (assignments) {
64
- const childCaseAssignments = assignments.map((assignment) => ({
64
+ const childCaseAssignments = assignments.map(assignment => ({
65
65
  ...assignment,
66
66
  caseName: Name
67
67
  }));
@@ -71,7 +71,7 @@ export const getChildCaseAssignments = (pConnect) => {
71
71
  }
72
72
  return allAssignments;
73
73
  };
74
- export const hasAssignments = (pConnect) => {
74
+ export const hasAssignments = pConnect => {
75
75
  const { CASE_INFO } = PCore.getConstants();
76
76
  const assignments = pConnect.getValue(CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS);
77
77
  const childCasesAssignments = getChildCaseAssignments(pConnect);
@@ -81,34 +81,34 @@ export const hasAssignments = (pConnect) => {
81
81
  }
82
82
  return false;
83
83
  };
84
- export const showBanner = (getPConnect) => {
84
+ export const showBanner = getPConnect => {
85
85
  const pConnect = getPConnect();
86
86
  return hasNotificationMessages(pConnect) || !hasAssignments(pConnect);
87
87
  };
88
- export const showTodo = (pConnect) => {
89
- const caseViewMode = pConnect.getValue("context_data.caseViewMode");
90
- return caseViewMode !== "perform";
88
+ export const showTodo = pConnect => {
89
+ const caseViewMode = pConnect.getValue('context_data.caseViewMode');
90
+ return caseViewMode !== 'perform';
91
91
  };
92
92
  export const isRenderWithToDoWrapper = (getPConnect, options) => {
93
93
  const pConnect = getPConnect();
94
94
  const { showWithToDo } = options;
95
- return (showWithToDo && (!isCaseWideLocalAction(pConnect) || showTodo(pConnect)));
95
+ return showWithToDo && (!isCaseWideLocalAction(pConnect) || showTodo(pConnect));
96
96
  };
97
- export const getToDoAssignments = (pConnect) => {
97
+ export const getToDoAssignments = pConnect => {
98
98
  const { CASE_INFO } = PCore.getConstants();
99
99
  const caseActions = pConnect.getValue(CASE_INFO.CASE_INFO_ACTIONS);
100
100
  const assignmentLabel = pConnect.getValue(CASE_INFO.ASSIGNMENT_LABEL);
101
101
  const assignments = pConnect.getValue(CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS) || [];
102
102
  const childCasesAssignments = getChildCaseAssignments(pConnect) || [];
103
103
  let childCasesAssignmentsCopy = JSON.parse(JSON.stringify(childCasesAssignments));
104
- childCasesAssignmentsCopy = childCasesAssignmentsCopy.map((assignment) => {
104
+ childCasesAssignmentsCopy = childCasesAssignmentsCopy.map(assignment => {
105
105
  assignment.isChild = true;
106
106
  return assignment;
107
107
  });
108
108
  const todoAssignments = [...assignments, ...childCasesAssignmentsCopy];
109
109
  let todoAssignmentsCopy = JSON.parse(JSON.stringify(todoAssignments));
110
110
  if (caseActions && !showTodo(pConnect)) {
111
- todoAssignmentsCopy = todoAssignmentsCopy.map((assignment) => {
111
+ todoAssignmentsCopy = todoAssignmentsCopy.map(assignment => {
112
112
  assignment.name = getActiveCaseActionName(pConnect) || assignmentLabel;
113
113
  return assignment;
114
114
  });