@pega/react-sdk-components 24.2.11 → 25.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (630) hide show
  1. package/lib/bridge/Context/StoreContext.d.ts +0 -1
  2. package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
  3. package/lib/bridge/Context/StoreContext.js.map +1 -1
  4. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  5. package/lib/bridge/helpers/sdk_component_map.js +0 -6
  6. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  7. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  8. package/lib/bridge/react_pconnect.js +11 -14
  9. package/lib/bridge/react_pconnect.js.map +1 -1
  10. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  11. package/lib/components/designSystemExtension/Banner/Banner.css +1 -1
  12. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  13. package/lib/components/designSystemExtension/Banner/Banner.js +2 -2
  14. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  15. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  16. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +50 -35
  18. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  19. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  20. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +6 -8
  21. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  22. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  23. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  24. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -5
  25. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  26. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +2 -2
  27. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  28. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  29. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -6
  30. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  31. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
  32. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  33. package/lib/components/designSystemExtension/Operator/Operator.js +12 -9
  34. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  35. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  36. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  37. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  38. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +32 -4
  40. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  41. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
  42. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +12 -2
  44. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  45. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
  46. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  47. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  48. package/lib/components/field/CancelAlert/CancelAlert.css +4 -4
  49. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
  50. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  51. package/lib/components/field/CancelAlert/CancelAlert.js +3 -3
  52. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  53. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  54. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  55. package/lib/components/field/Checkbox/Checkbox.js +52 -3
  56. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  57. package/lib/components/field/Currency/Currency.d.ts +1 -1
  58. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  59. package/lib/components/field/Currency/Currency.js +2 -2
  60. package/lib/components/field/Currency/Currency.js.map +1 -1
  61. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  62. package/lib/components/field/Currency/currency-utils.js +0 -2
  63. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  64. package/lib/components/field/Date/Date.d.ts +1 -1
  65. package/lib/components/field/Date/Date.d.ts.map +1 -1
  66. package/lib/components/field/Date/Date.js +3 -6
  67. package/lib/components/field/Date/Date.js.map +1 -1
  68. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  69. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  70. package/lib/components/field/DateTime/DateTime.js +4 -7
  71. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  72. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  73. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  74. package/lib/components/field/Decimal/Decimal.js +2 -4
  75. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  76. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
  77. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  78. package/lib/components/field/Dropdown/Dropdown.js +6 -9
  79. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  80. package/lib/components/field/Email/Email.d.ts +1 -1
  81. package/lib/components/field/Email/Email.d.ts.map +1 -1
  82. package/lib/components/field/Email/Email.js +6 -7
  83. package/lib/components/field/Email/Email.js.map +1 -1
  84. package/lib/components/field/Group/Group.d.ts +2 -2
  85. package/lib/components/field/Group/Group.d.ts.map +1 -1
  86. package/lib/components/field/Group/Group.js +4 -3
  87. package/lib/components/field/Group/Group.js.map +1 -1
  88. package/lib/components/field/Integer/Integer.d.ts +1 -1
  89. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  90. package/lib/components/field/Integer/Integer.js +4 -5
  91. package/lib/components/field/Integer/Integer.js.map +1 -1
  92. package/lib/components/field/Location/Location.css +4 -0
  93. package/lib/components/field/Location/Location.d.ts +11 -0
  94. package/lib/components/field/Location/Location.d.ts.map +1 -0
  95. package/lib/components/field/Location/Location.js +158 -0
  96. package/lib/components/field/Location/Location.js.map +1 -0
  97. package/lib/components/field/Location/index.d.ts +2 -0
  98. package/lib/components/field/Location/index.d.ts.map +1 -0
  99. package/lib/components/field/Location/index.js +2 -0
  100. package/lib/components/field/Location/index.js.map +1 -0
  101. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  102. package/lib/components/field/Multiselect/utils.d.ts +2 -1
  103. package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
  104. package/lib/components/field/Multiselect/utils.js +1 -1
  105. package/lib/components/field/Multiselect/utils.js.map +1 -1
  106. package/lib/components/field/ObjectReference/ObjectReference.d.ts +16 -0
  107. package/lib/components/field/ObjectReference/ObjectReference.d.ts.map +1 -0
  108. package/lib/components/field/ObjectReference/ObjectReference.js +165 -0
  109. package/lib/components/field/ObjectReference/ObjectReference.js.map +1 -0
  110. package/lib/components/field/ObjectReference/index.d.ts +2 -0
  111. package/lib/components/field/ObjectReference/index.d.ts.map +1 -0
  112. package/lib/components/field/ObjectReference/index.js +2 -0
  113. package/lib/components/field/ObjectReference/index.js.map +1 -0
  114. package/lib/components/field/ObjectReference/utils.d.ts +17 -0
  115. package/lib/components/field/ObjectReference/utils.d.ts.map +1 -0
  116. package/lib/components/field/ObjectReference/utils.js +99 -0
  117. package/lib/components/field/ObjectReference/utils.js.map +1 -0
  118. package/lib/components/field/Percentage/Percentage.d.ts +1 -1
  119. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  120. package/lib/components/field/Percentage/Percentage.js +2 -5
  121. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  122. package/lib/components/field/Phone/Phone.d.ts +1 -1
  123. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  124. package/lib/components/field/Phone/Phone.js +6 -4
  125. package/lib/components/field/Phone/Phone.js.map +1 -1
  126. package/lib/components/field/RadioButtons/RadioButtons.d.ts +8 -1
  127. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  128. package/lib/components/field/RadioButtons/RadioButtons.js +12 -1
  129. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  130. package/lib/components/field/RichText/RichText.css +79 -0
  131. package/lib/components/field/RichText/RichText.d.ts +2 -1
  132. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  133. package/lib/components/field/RichText/RichText.js +1 -0
  134. package/lib/components/field/RichText/RichText.js.map +1 -1
  135. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  136. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  137. package/lib/components/field/ScalarList/ScalarList.js +1 -2
  138. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  139. package/lib/components/field/SelectableCard/SelectableCard.d.ts +2 -0
  140. package/lib/components/field/SelectableCard/SelectableCard.d.ts.map +1 -0
  141. package/lib/components/field/SelectableCard/SelectableCard.js +57 -0
  142. package/lib/components/field/SelectableCard/SelectableCard.js.map +1 -0
  143. package/lib/components/field/SelectableCard/index.d.ts +2 -0
  144. package/lib/components/field/SelectableCard/index.d.ts.map +1 -0
  145. package/lib/components/field/SelectableCard/index.js +2 -0
  146. package/lib/components/field/SelectableCard/index.js.map +1 -0
  147. package/lib/components/field/SelectableCard/utils.d.ts +13 -0
  148. package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
  149. package/lib/components/field/SelectableCard/utils.js +183 -0
  150. package/lib/components/field/SelectableCard/utils.js.map +1 -0
  151. package/lib/components/field/SemanticLink/SemanticLink.d.ts +10 -2
  152. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  153. package/lib/components/field/SemanticLink/SemanticLink.js +128 -15
  154. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  155. package/lib/components/field/SemanticLink/utils.js +1 -1
  156. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  157. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  158. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  159. package/lib/components/field/TextArea/TextArea.js +4 -5
  160. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  161. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  162. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  163. package/lib/components/field/TextContent/TextContent.js +0 -1
  164. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  165. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  166. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  167. package/lib/components/field/TextInput/TextInput.js +4 -5
  168. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  169. package/lib/components/field/Time/Time.d.ts +1 -1
  170. package/lib/components/field/Time/Time.d.ts.map +1 -1
  171. package/lib/components/field/Time/Time.js +2 -5
  172. package/lib/components/field/Time/Time.js.map +1 -1
  173. package/lib/components/field/URL/URL.d.ts +1 -1
  174. package/lib/components/field/URL/URL.d.ts.map +1 -1
  175. package/lib/components/field/URL/URL.js +4 -5
  176. package/lib/components/field/URL/URL.js.map +1 -1
  177. package/lib/components/field/UserReference/UserReference.d.ts +1 -2
  178. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  179. package/lib/components/field/UserReference/UserReference.js +1 -2
  180. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  181. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
  182. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  183. package/lib/components/helpers/attachmentShared.d.ts +2 -0
  184. package/lib/components/helpers/attachmentShared.d.ts.map +1 -0
  185. package/lib/components/helpers/attachmentShared.js +6 -0
  186. package/lib/components/helpers/attachmentShared.js.map +1 -0
  187. package/lib/components/helpers/case-utils.js.map +1 -1
  188. package/lib/components/helpers/common-utils.d.ts +1 -1
  189. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  190. package/lib/components/helpers/common-utils.js +1 -2
  191. package/lib/components/helpers/common-utils.js.map +1 -1
  192. package/lib/components/helpers/data_page.d.ts.map +1 -1
  193. package/lib/components/helpers/data_page.js +0 -1
  194. package/lib/components/helpers/data_page.js.map +1 -1
  195. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  196. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  197. package/lib/components/helpers/event-utils.js.map +1 -1
  198. package/lib/components/helpers/field-group-utils.d.ts +1 -1
  199. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  200. package/lib/components/helpers/field-group-utils.js.map +1 -1
  201. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  202. package/lib/components/helpers/formatters/Currency.d.ts +1 -0
  203. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  204. package/lib/components/helpers/formatters/Currency.js +8 -4
  205. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  206. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  207. package/lib/components/helpers/formatters/CurrencyMap.js +0 -1
  208. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  209. package/lib/components/helpers/formatters/Date.js.map +1 -1
  210. package/lib/components/helpers/formatters/index.d.ts +1 -0
  211. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  212. package/lib/components/helpers/formatters/index.js.map +1 -1
  213. package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
  214. package/lib/components/helpers/object-utils.d.ts +9 -0
  215. package/lib/components/helpers/object-utils.d.ts.map +1 -0
  216. package/lib/components/helpers/object-utils.js +11 -0
  217. package/lib/components/helpers/object-utils.js.map +1 -0
  218. package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
  219. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  220. package/lib/components/helpers/simpleTableHelpers.d.ts +15 -1
  221. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  222. package/lib/components/helpers/simpleTableHelpers.js +111 -5
  223. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  224. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  225. package/lib/components/helpers/state-utils.js.map +1 -1
  226. package/lib/components/helpers/template-utils.js.map +1 -1
  227. package/lib/components/helpers/utils.d.ts +1 -0
  228. package/lib/components/helpers/utils.d.ts.map +1 -1
  229. package/lib/components/helpers/utils.js +7 -1
  230. package/lib/components/helpers/utils.js.map +1 -1
  231. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  232. package/lib/components/helpers/versionHelpers.js +0 -1
  233. package/lib/components/helpers/versionHelpers.js.map +1 -1
  234. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  235. package/lib/components/infra/ActionButtons/ActionButtons.js +12 -7
  236. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  237. package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
  238. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  239. package/lib/components/infra/Assignment/Assignment.js +32 -28
  240. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  241. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
  242. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  243. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  244. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
  245. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  246. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +15 -79
  247. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  248. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  249. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  250. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
  251. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  252. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +0 -1
  253. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  254. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -1
  255. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  256. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +4 -5
  257. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  258. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
  259. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  260. package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
  261. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
  262. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  263. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  264. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  265. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +3 -4
  266. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  267. package/lib/components/infra/Containers/container-helpers.d.ts +1 -0
  268. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -1
  269. package/lib/components/infra/Containers/container-helpers.js +46 -1
  270. package/lib/components/infra/Containers/container-helpers.js.map +1 -1
  271. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
  272. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  273. package/lib/components/infra/DashboardFilter/DashboardFilter.js +1 -4
  274. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  275. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  276. package/lib/components/infra/DashboardFilter/filterUtils.js +2 -3
  277. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  278. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +1 -1
  279. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  280. package/lib/components/infra/DeferLoad/DeferLoad.js +2 -4
  281. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  282. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  283. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  284. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +0 -2
  285. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  286. package/lib/components/infra/MultiStep/MultiStep.css +48 -70
  287. package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
  288. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  289. package/lib/components/infra/MultiStep/MultiStep.js +19 -37
  290. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  291. package/lib/components/infra/NavBar/NavBar.css +1 -1
  292. package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
  293. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  294. package/lib/components/infra/NavBar/NavBar.js +13 -7
  295. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  296. package/lib/components/infra/Reference/Reference.d.ts +1 -1
  297. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  298. package/lib/components/infra/Reference/Reference.js +2 -3
  299. package/lib/components/infra/Reference/Reference.js.map +1 -1
  300. package/lib/components/infra/Region/Region.d.ts +1 -1
  301. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  302. package/lib/components/infra/Region/Region.js.map +1 -1
  303. package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
  304. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  305. package/lib/components/infra/RootContainer/RootContainer.js +0 -1
  306. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  307. package/lib/components/infra/Stages/Stages.d.ts +1 -1
  308. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  309. package/lib/components/infra/Stages/Stages.js +2 -2
  310. package/lib/components/infra/Stages/Stages.js.map +1 -1
  311. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +1 -1
  312. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  313. package/lib/components/infra/View/View.d.ts +2 -2
  314. package/lib/components/infra/View/View.d.ts.map +1 -1
  315. package/lib/components/infra/View/View.js +2 -1
  316. package/lib/components/infra/View/View.js.map +1 -1
  317. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
  318. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
  319. package/lib/components/template/AdvancedSearch/AdvancedSearch.js +68 -0
  320. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
  321. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +23 -0
  322. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
  323. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +26 -0
  324. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
  325. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
  326. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
  327. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +179 -0
  328. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
  329. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
  330. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
  331. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +25 -0
  332. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
  333. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
  334. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
  335. package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
  336. package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
  337. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
  338. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
  339. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
  340. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
  341. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +10 -0
  342. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
  343. package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
  344. package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
  345. package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
  346. package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
  347. package/lib/components/template/AdvancedSearch/index.js +2 -0
  348. package/lib/components/template/AdvancedSearch/index.js.map +1 -0
  349. package/lib/components/template/AppShell/AppShell.css +1 -1
  350. package/lib/components/template/AppShell/AppShell.d.ts +2 -2
  351. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  352. package/lib/components/template/AppShell/AppShell.js +10 -13
  353. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  354. package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
  355. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  356. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  357. package/lib/components/template/CaseSummary/CaseSummary.d.ts +4 -2
  358. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  359. package/lib/components/template/CaseSummary/CaseSummary.js +24 -37
  360. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  361. package/lib/components/template/CaseView/CaseView.d.ts +2 -2
  362. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  363. package/lib/components/template/CaseView/CaseView.js +13 -15
  364. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  365. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
  366. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  367. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
  368. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  369. package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
  370. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  371. package/lib/components/template/Confirmation/Confirmation.js +0 -1
  372. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  373. package/lib/components/template/DataReference/DataReference.d.ts +9 -2
  374. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  375. package/lib/components/template/DataReference/DataReference.js +239 -80
  376. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  377. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
  378. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
  379. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
  380. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
  381. package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
  382. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
  383. package/lib/components/template/DataReference/SearchForm.js +87 -0
  384. package/lib/components/template/DataReference/SearchForm.js.map +1 -0
  385. package/lib/components/template/DataReference/utils.d.ts +15 -0
  386. package/lib/components/template/DataReference/utils.d.ts.map +1 -0
  387. package/lib/components/template/DataReference/utils.js +75 -0
  388. package/lib/components/template/DataReference/utils.js.map +1 -0
  389. package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
  390. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  391. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  392. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  393. package/lib/components/template/DefaultForm/utils/index.js +1 -2
  394. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  395. package/lib/components/template/DefaultPage/DefaultPage.d.ts +36 -0
  396. package/lib/components/template/DefaultPage/DefaultPage.d.ts.map +1 -0
  397. package/lib/components/template/DefaultPage/DefaultPage.js +28 -0
  398. package/lib/components/template/DefaultPage/DefaultPage.js.map +1 -0
  399. package/lib/components/template/DefaultPage/index.d.ts +2 -0
  400. package/lib/components/template/DefaultPage/index.d.ts.map +1 -0
  401. package/lib/components/template/DefaultPage/index.js +2 -0
  402. package/lib/components/template/DefaultPage/index.js.map +1 -0
  403. package/lib/components/template/Details/Details/Details.d.ts +1 -1
  404. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  405. package/lib/components/template/Details/Details/Details.js +2 -3
  406. package/lib/components/template/Details/Details/Details.js.map +1 -1
  407. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
  408. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  409. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  410. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
  411. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  412. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -3
  413. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  414. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
  415. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  416. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -3
  417. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  418. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
  419. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  420. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  421. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -1
  422. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  423. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +1 -2
  424. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  425. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
  426. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  427. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  428. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  429. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
  430. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  431. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  432. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  433. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  434. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  435. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  436. package/lib/components/template/ListView/ListView.d.ts +4 -1
  437. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  438. package/lib/components/template/ListView/ListView.js +133 -64
  439. package/lib/components/template/ListView/ListView.js.map +1 -1
  440. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  441. package/lib/components/template/ListView/hooks.js +2 -5
  442. package/lib/components/template/ListView/hooks.js.map +1 -1
  443. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  444. package/lib/components/template/ListView/utils.js +28 -5
  445. package/lib/components/template/ListView/utils.js.map +1 -1
  446. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  447. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  448. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  449. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
  450. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  451. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  452. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
  453. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  454. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -3
  455. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  456. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
  457. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  458. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  459. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
  460. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  461. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  462. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
  463. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  464. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  465. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  466. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
  467. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  468. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  469. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
  470. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  471. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  472. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
  473. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  474. package/lib/components/template/PromotedFilters/PromotedFilters.js +0 -1
  475. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  476. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts +2 -0
  477. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts.map +1 -0
  478. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js +73 -0
  479. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js.map +1 -0
  480. package/lib/components/template/SelfServiceCaseView/index.d.ts +2 -0
  481. package/lib/components/template/SelfServiceCaseView/index.d.ts.map +1 -0
  482. package/lib/components/template/SelfServiceCaseView/index.js +2 -0
  483. package/lib/components/template/SelfServiceCaseView/index.js.map +1 -0
  484. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
  485. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  486. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +1 -2
  487. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  488. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +2 -2
  489. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  490. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +34 -32
  491. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  492. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
  493. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  494. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  495. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  496. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  497. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +3 -2
  498. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  499. package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
  500. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  501. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  502. package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
  503. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  504. package/lib/components/template/SubTabs/tabUtils.js +102 -1
  505. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  506. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
  507. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  508. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -3
  509. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  510. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
  511. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  512. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  513. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
  514. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  515. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -3
  516. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  517. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
  518. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  519. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  520. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
  521. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  522. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -3
  523. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  524. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
  525. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  526. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  527. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
  528. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  529. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  530. package/lib/components/template/WssNavBar/WssNavBar.css +1 -1
  531. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
  532. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  533. package/lib/components/template/WssNavBar/WssNavBar.js +4 -4
  534. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  535. package/lib/components/template/utils.d.ts +7 -0
  536. package/lib/components/template/utils.d.ts.map +1 -0
  537. package/lib/components/template/utils.js +52 -0
  538. package/lib/components/template/utils.js.map +1 -0
  539. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
  540. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  541. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  542. package/lib/components/widget/Attachment/Attachment.css +6 -8
  543. package/lib/components/widget/Attachment/Attachment.d.ts +4 -2
  544. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  545. package/lib/components/widget/Attachment/Attachment.js +255 -202
  546. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  547. package/lib/components/widget/Attachment/Attachment.types.d.ts +90 -0
  548. package/lib/components/widget/Attachment/Attachment.types.d.ts.map +1 -0
  549. package/lib/components/widget/Attachment/Attachment.types.js +2 -0
  550. package/lib/components/widget/Attachment/Attachment.types.js.map +1 -0
  551. package/lib/components/widget/Attachment/AttachmentUtils.d.ts +25 -0
  552. package/lib/components/widget/Attachment/AttachmentUtils.d.ts.map +1 -0
  553. package/lib/components/widget/Attachment/AttachmentUtils.js +255 -0
  554. package/lib/components/widget/Attachment/AttachmentUtils.js.map +1 -0
  555. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  556. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  557. package/lib/components/widget/CaseHistory/CaseHistory.js +2 -2
  558. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  559. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
  560. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
  561. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  562. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  563. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  564. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +7 -6
  565. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +2 -1
  566. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  567. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +29 -17
  568. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  569. package/lib/components/widget/Followers/Followers.d.ts +2 -2
  570. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  571. package/lib/components/widget/Followers/Followers.js +0 -2
  572. package/lib/components/widget/Followers/Followers.js.map +1 -1
  573. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
  574. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  575. package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
  576. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  577. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -11
  578. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
  579. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  580. package/lib/components/widget/SummaryItem/SummaryItem.js +1 -1
  581. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  582. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
  583. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  584. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  585. package/lib/components/widget/ToDo/ToDo.css +1 -13
  586. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  587. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  588. package/lib/components/widget/ToDo/ToDo.js +21 -16
  589. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  590. package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
  591. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
  592. package/lib/hooks/useAfterInitialEffect.js.map +1 -1
  593. package/lib/hooks/useConsolidatedRef.d.ts +1 -1
  594. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  595. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  596. package/lib/hooks/useFocusFirstField.d.ts.map +1 -1
  597. package/lib/hooks/useFocusFirstField.js.map +1 -1
  598. package/lib/hooks/useGetTabsCount.d.ts +10 -0
  599. package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
  600. package/lib/hooks/useGetTabsCount.js +165 -0
  601. package/lib/hooks/useGetTabsCount.js.map +1 -0
  602. package/lib/hooks/useIsMount.d.ts +2 -0
  603. package/lib/hooks/useIsMount.d.ts.map +1 -0
  604. package/lib/hooks/useIsMount.js +9 -0
  605. package/lib/hooks/useIsMount.js.map +1 -0
  606. package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
  607. package/lib/mediaco/ToDo/ToDo.css +81 -0
  608. package/lib/mediaco/ToDo/ToDo.d.ts +16 -0
  609. package/lib/mediaco/ToDo/ToDo.d.ts.map +1 -0
  610. package/lib/mediaco/ToDo/ToDo.js +187 -0
  611. package/lib/mediaco/ToDo/ToDo.js.map +1 -0
  612. package/lib/mediaco/ToDo/index.d.ts +2 -0
  613. package/lib/mediaco/ToDo/index.d.ts.map +1 -0
  614. package/lib/mediaco/ToDo/index.js +2 -0
  615. package/lib/mediaco/ToDo/index.js.map +1 -0
  616. package/lib/samples/Embedded/styles.css +26 -0
  617. package/lib/sdk-pega-component-map.d.ts +119 -103
  618. package/lib/sdk-pega-component-map.d.ts.map +1 -1
  619. package/lib/sdk-pega-component-map.js +20 -3
  620. package/lib/sdk-pega-component-map.js.map +1 -1
  621. package/lib/theme.d.ts +30 -1
  622. package/lib/theme.d.ts.map +1 -1
  623. package/lib/theme.js +209 -2
  624. package/lib/theme.js.map +1 -1
  625. package/lib/types/PConnProps.d.ts +1 -1
  626. package/package.json +32 -1
  627. package/lib/components/helpers/attachmentHelpers.d.ts +0 -13
  628. package/lib/components/helpers/attachmentHelpers.d.ts.map +0 -1
  629. package/lib/components/helpers/attachmentHelpers.js +0 -72
  630. package/lib/components/helpers/attachmentHelpers.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IACrC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;AACnI,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\nexport const sdkVersion = '8.7';\n\nexport function compareSdkPCoreVersions() {\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n // eslint-disable-next-line no-console\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n}\n"]}
1
+ {"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IACrC,2DAA2D;IAE3D,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;AACnI,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\nexport const sdkVersion = '8.7';\n\nexport function compareSdkPCoreVersions() {\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":"AAKA,UAAU,kBAAkB;IAE1B,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC3B,aAAa,EAAE,GAAG,CAAC;CACpB;AAYD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAmD9D"}
1
+ {"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":"AAKA,UAAU,kBAAkB;IAE1B,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC3B,aAAa,EAAE,GAAG,CAAC;CACpB;AAiBD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAqD9D"}
@@ -1,14 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import makeStyles from '@mui/styles/makeStyles';
3
3
  import Button from '@mui/material/Button';
4
- import { Grid, Divider } from '@mui/material';
5
- const useStyles = makeStyles(( /* theme */) => ({
6
- button: {
7
- padding: '0px 5px'
8
- },
4
+ import { Grid2, Divider } from '@mui/material';
5
+ const useStyles = makeStyles(theme => ({
9
6
  divider: {
10
7
  marginTop: '10px',
11
8
  marginBottom: '10px'
9
+ },
10
+ secondaryButton: {
11
+ backgroundColor: theme.actionButtons.secondary.backgroundColor,
12
+ color: theme.actionButtons.secondary.color
13
+ },
14
+ primaryButton: {
15
+ backgroundColor: theme.actionButtons.primary.backgroundColor,
16
+ color: theme.actionButtons.primary.color
12
17
  }
13
18
  }));
14
19
  export default function ActionButtons(props) {
@@ -19,9 +24,9 @@ export default function ActionButtons(props) {
19
24
  function _onButtonPress(sAction, sButtonType) {
20
25
  onButtonPress(sAction, sButtonType);
21
26
  }
22
- return (_jsxs(_Fragment, { children: [_jsx(Divider, { className: classes.divider }), _jsxs(Grid, { container: true, spacing: 4, justifyContent: 'space-between', children: [_jsx(Grid, { item: true, children: _jsx(Grid, { container: true, spacing: 1, children: arSecondaryButtons.map(sButton => (_jsx(Grid, { item: true, children: _jsx(Button, { variant: 'contained', color: 'secondary', onClick: () => {
27
+ return (_jsxs(_Fragment, { children: [_jsx(Divider, { className: classes.divider }), _jsxs(Grid2, { container: true, spacing: 4, justifyContent: 'space-between', children: [_jsx(Grid2, { children: _jsx(Grid2, { container: true, spacing: 1, children: arSecondaryButtons.map(sButton => (_jsx(Grid2, { children: _jsx(Button, { className: classes.secondaryButton, color: 'secondary', variant: 'contained', onClick: () => {
23
28
  _onButtonPress(sButton.jsAction, 'secondary');
24
- }, children: localizedVal(sButton.name, localeCategory) }) }, sButton.name))) }) }), _jsx(Grid, { item: true, children: _jsx(Grid, { container: true, spacing: 1, children: arMainButtons.map(mButton => (_jsx(Grid, { item: true, children: _jsx(Button, { variant: 'contained', color: 'primary', onClick: () => {
29
+ }, children: localizedVal(sButton.name, localeCategory) }) }, sButton.name))) }) }), _jsx(Grid2, { children: _jsx(Grid2, { container: true, spacing: 1, children: arMainButtons.map(mButton => (_jsx(Grid2, { children: _jsx(Button, { className: classes.primaryButton, color: 'primary', variant: 'contained', onClick: () => {
25
30
  _onButtonPress(mButton.jsAction, 'primary');
26
31
  }, children: localizedVal(mButton.name, localeCategory) }) }, mButton.name))) }) })] })] }));
27
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtons.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAU9C,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE;QACN,OAAO,EAAE,SAAS;KACnB;IACD,OAAO,EAAE;QACP,SAAS,EAAE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,IAAI,kBACR,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,GAAG,EAAE;wCACZ,cAAc,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;oCAC9C,CAAC,YAEA,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,GACpC,IATK,OAAO,CAAC,IAAI,CAUrB,CACR,CAAC,GACG,GACF,IACF,IACN,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import makeStyles from '@mui/styles/makeStyles';\nimport Button from '@mui/material/Button';\nimport { Grid, Divider } from '@mui/material';\n\n// ActionButtons does NOT have getPConnect. So, no need to extend from PConnProps\ninterface ActionButtonsProps {\n // If any, enter additional props that only exist on this component\n arMainButtons?: any[];\n arSecondaryButtons?: any[];\n onButtonPress: any;\n}\n\nconst useStyles = makeStyles((/* theme */) => ({\n button: {\n padding: '0px 5px'\n },\n divider: {\n marginTop: '10px',\n marginBottom: '10px'\n }\n}));\n\nexport default function ActionButtons(props: ActionButtonsProps) {\n const { arMainButtons = [], arSecondaryButtons = [], onButtonPress } = props;\n const classes = useStyles();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Assignment';\n\n function _onButtonPress(sAction: string, sButtonType: string) {\n onButtonPress(sAction, sButtonType);\n }\n\n return (\n <>\n <Divider className={classes.divider} />\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>\n <Grid container spacing={1}>\n {arSecondaryButtons.map(sButton => (\n <Grid item key={sButton.name}>\n <Button\n variant='contained'\n color='secondary'\n onClick={() => {\n _onButtonPress(sButton.jsAction, 'secondary');\n }}\n >\n {localizedVal(sButton.name, localeCategory)}\n </Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n <Grid item>\n <Grid container spacing={1}>\n {arMainButtons.map(mButton => (\n <Grid item key={mButton.name}>\n <Button\n variant='contained'\n color='primary'\n onClick={() => {\n _onButtonPress(mButton.jsAction, 'primary');\n }}\n >\n {localizedVal(mButton.name, localeCategory)}\n </Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n </Grid>\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"ActionButtons.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAU/C,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,OAAO,EAAE;QACP,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;IACD,eAAe,EAAE;QACf,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,eAAe;QAC9D,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK;KAC3C;IACD,aAAa,EAAE;QACb,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,eAAe;QAC5D,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK;KACzC;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,MAAM,EAAE,aAAa,GAAG,EAAE,EAAE,kBAAkB,GAAG,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAC7E,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAC5B,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC;IAC3D,MAAM,cAAc,GAAG,YAAY,CAAC;IAEpC,SAAS,cAAc,CAAC,OAAe,EAAE,WAAmB;QAC1D,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,CACL,8BACE,KAAC,OAAO,IAAC,SAAS,EAAE,OAAO,CAAC,OAAO,GAAI,EACvC,MAAC,KAAK,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,aACzD,KAAC,KAAK,cACJ,KAAC,KAAK,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,YACxB,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CACjC,KAAC,KAAK,cACJ,KAAC,MAAM,IACL,SAAS,EAAE,OAAO,CAAC,eAAe,EAClC,KAAK,EAAC,WAAW,EACjB,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,GAAG,EAAE;wCACZ,cAAc,CAAC,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;oCAChD,CAAC,YAEA,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,GACpC,IAVC,OAAO,CAAC,IAAI,CAWhB,CACT,CAAC,GACI,GACF,EACR,KAAC,KAAK,cACJ,KAAC,KAAK,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,YACxB,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAC5B,KAAC,KAAK,cACJ,KAAC,MAAM,IACL,SAAS,EAAE,OAAO,CAAC,aAAa,EAChC,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,GAAG,EAAE;wCACZ,cAAc,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;oCAC9C,CAAC,YAEA,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,GACpC,IAVC,OAAO,CAAC,IAAI,CAWhB,CACT,CAAC,GACI,GACF,IACF,IACP,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import makeStyles from '@mui/styles/makeStyles';\nimport Button from '@mui/material/Button';\nimport { Grid2, Divider } from '@mui/material';\n\n// ActionButtons does NOT have getPConnect. So, no need to extend from PConnProps\ninterface ActionButtonsProps {\n // If any, enter additional props that only exist on this component\n arMainButtons?: any[];\n arSecondaryButtons?: any[];\n onButtonPress: any;\n}\n\nconst useStyles = makeStyles(theme => ({\n divider: {\n marginTop: '10px',\n marginBottom: '10px'\n },\n secondaryButton: {\n backgroundColor: theme.actionButtons.secondary.backgroundColor,\n color: theme.actionButtons.secondary.color\n },\n primaryButton: {\n backgroundColor: theme.actionButtons.primary.backgroundColor,\n color: theme.actionButtons.primary.color\n }\n}));\n\nexport default function ActionButtons(props: ActionButtonsProps) {\n const { arMainButtons = [], arSecondaryButtons = [], onButtonPress } = props;\n const classes = useStyles();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Assignment';\n\n function _onButtonPress(sAction: string, sButtonType: string) {\n onButtonPress(sAction, sButtonType);\n }\n\n return (\n <>\n <Divider className={classes.divider} />\n <Grid2 container spacing={4} justifyContent='space-between'>\n <Grid2>\n <Grid2 container spacing={1}>\n {arSecondaryButtons.map(sButton => (\n <Grid2 key={sButton.name}>\n <Button\n className={classes.secondaryButton}\n color='secondary'\n variant='contained'\n onClick={() => {\n _onButtonPress(sButton.jsAction, 'secondary');\n }}\n >\n {localizedVal(sButton.name, localeCategory)}\n </Button>\n </Grid2>\n ))}\n </Grid2>\n </Grid2>\n <Grid2>\n <Grid2 container spacing={1}>\n {arMainButtons.map(mButton => (\n <Grid2 key={mButton.name}>\n <Button\n className={classes.primaryButton}\n color='primary'\n variant='contained'\n onClick={() => {\n _onButtonPress(mButton.jsAction, 'primary');\n }}\n >\n {localizedVal(mButton.name, localeCategory)}\n </Button>\n </Grid2>\n ))}\n </Grid2>\n </Grid2>\n </Grid2>\n </>\n );\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PConnProps } from '../../../types/PConnProps';
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
3
  interface AssignmentProps extends PConnProps {
4
4
  itemKey: string;
5
5
  isInModal: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Assignment.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/Assignment/Assignment.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAQtE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,eAAgB,SAAQ,UAAU;IAE1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,GAAG,EAAE,CAAC;IAEf,aAAa,EAAE,GAAG,EAAE,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,2CA4U3E"}
1
+ {"version":3,"file":"Assignment.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/Assignment/Assignment.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAQ3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,eAAgB,SAAQ,UAAU;IAE1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,GAAG,EAAE,CAAC;IAEf,aAAa,EAAE,GAAG,EAAE,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,2CAmV3E"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useEffect, useState } from 'react';
2
+ import React, { useEffect, useState } from 'react';
3
3
  import Snackbar from '@mui/material/Snackbar';
4
4
  import IconButton from '@mui/material/IconButton';
5
5
  import CloseIcon from '@mui/icons-material/Close';
@@ -18,8 +18,8 @@ export default function Assignment(props) {
18
18
  const [arNavigationSteps, setArNavigationSteps] = useState([]);
19
19
  const actionsAPI = thePConn.getActionsApi();
20
20
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
21
+ const localizationService = thePConn.getLocalizationService();
21
22
  const localeCategory = 'Assignment';
22
- const localeReference = `${getPConnect().getCaseInfo().getClassName()}!CASE!${getPConnect().getCaseInfo().getName()}`.toUpperCase();
23
23
  // store off bound functions to above pointers
24
24
  const finishAssignment = actionsAPI.finishAssignment.bind(actionsAPI);
25
25
  const navigateToStep = actionsAPI.navigateToStep.bind(actionsAPI);
@@ -56,7 +56,7 @@ export default function Assignment(props) {
56
56
  function getStepsInfo(steps, formedSteps = []) {
57
57
  steps.forEach(step => {
58
58
  if (step.name) {
59
- step.name = PCore.getLocaleUtils().getLocaleValue(step.name, undefined, localeReference);
59
+ step.name = localizationService.getLocalizedText(step.name);
60
60
  }
61
61
  if (step.steps) {
62
62
  formedSteps = getStepsInfo(step.steps, formedSteps);
@@ -76,36 +76,40 @@ export default function Assignment(props) {
76
76
  const oWorkItem = firstChild.props.getPConnect();
77
77
  const oWorkData = oWorkItem.getDataObject();
78
78
  const oData = thePConn.getDataObject(''); // 1st arg empty string until typedefs allow it to be optional
79
- if (oWorkData?.caseInfo && oWorkData.caseInfo.assignments !== null) {
80
- const oCaseInfo = oData?.caseInfo;
81
- if (oCaseInfo && oCaseInfo.actionButtons) {
82
- setActionButtons(oCaseInfo.actionButtons);
83
- }
84
- if (oCaseInfo?.navigation /* was oCaseInfo.navigation != null */) {
85
- setHasNavigation(true);
86
- if ((oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'standard') ||
87
- oCaseInfo?.navigation?.steps?.length === 1) {
88
- setHasNavigation(false);
89
- }
90
- else if (oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'vertical') {
91
- setIsVertical(true);
92
- }
93
- else {
94
- setIsVertical(false);
95
- }
96
- if (oCaseInfo?.navigation?.steps) {
97
- const steps = JSON.parse(JSON.stringify(oCaseInfo?.navigation?.steps));
98
- const formedSteps = getStepsInfo(steps);
99
- setArNavigationSteps(formedSteps);
100
- }
101
- setArCurrentStepIndicies(findCurrentIndicies(arNavigationSteps, arCurrentStepIndicies, 0));
102
- }
79
+ const caseInfo = oData?.caseInfo;
80
+ if (!oWorkData?.caseInfo || oWorkData.caseInfo.assignments === null || !caseInfo) {
81
+ return;
82
+ }
83
+ // Set action buttons
84
+ if (caseInfo.actionButtons) {
85
+ setActionButtons(caseInfo.actionButtons);
86
+ }
87
+ // Handle navigation setup
88
+ const navigation = caseInfo.navigation;
89
+ if (!navigation) {
90
+ setHasNavigation(false);
91
+ return;
92
+ }
93
+ const isStandardTemplate = navigation.template?.toLowerCase() === 'standard';
94
+ const hasSingleStep = navigation.steps?.length === 1;
95
+ const shouldHideNavigation = isStandardTemplate || hasSingleStep;
96
+ setHasNavigation(!shouldHideNavigation);
97
+ if (shouldHideNavigation) {
98
+ return;
99
+ }
100
+ // set vertical navigation
101
+ const isVerticalTemplate = navigation.template?.toLowerCase() === 'vertical';
102
+ setIsVertical(isVerticalTemplate);
103
+ if (navigation.steps) {
104
+ const steps = JSON.parse(JSON.stringify(navigation.steps));
105
+ const formedSteps = getStepsInfo(steps);
106
+ setArNavigationSteps(formedSteps);
103
107
  }
108
+ setArCurrentStepIndicies(findCurrentIndicies(arNavigationSteps, arCurrentStepIndicies, 0));
104
109
  }
105
110
  }, [children]);
106
111
  function showToast(message) {
107
112
  const theMessage = `Assignment: ${message}`;
108
- // eslint-disable-next-line no-console
109
113
  console.error(theMessage);
110
114
  setSnackbarMessage(message);
111
115
  setShowSnackbar(true);
@@ -1 +1 @@
1
- {"version":3,"file":"Assignment.js","sourceRoot":"","sources":["../../../../src/components/infra/Assignment/Assignment.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAqB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,SAAS,MAAM,2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EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC,CAAC,CAAC,CACF,8BACE,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,YACjH,QAAQ,GACM,EACjB,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,IACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { PropsWithChildren, useEffect, useState } from 'react';\nimport Snackbar from '@mui/material/Snackbar';\nimport IconButton from '@mui/material/IconButton';\nimport CloseIcon from '@mui/icons-material/Close';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { useFocusFirstField, useScrolltoTop } from '../../../hooks';\n\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface AssignmentProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n itemKey: string;\n isInModal: boolean;\n banners: any[];\n // eslint-disable-next-line react/no-unused-prop-types\n actionButtons: any[];\n}\n\nexport default function Assignment(props: PropsWithChildren<AssignmentProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const AssignmentCard = getComponentFromMap('AssignmentCard');\n const MultiStep = getComponentFromMap('MultiStep');\n\n const { getPConnect, children, itemKey = '', isInModal = false, banners = [] } = props;\n const thePConn = getPConnect();\n\n const [bHasNavigation, setHasNavigation] = useState(false);\n const [actionButtons, setActionButtons] = useState([]);\n const [bIsVertical, setIsVertical] = useState(false);\n const [arCurrentStepIndicies, setArCurrentStepIndicies] = useState<any[]>([]);\n const [arNavigationSteps, setArNavigationSteps] = useState<any[]>([]);\n\n const actionsAPI = thePConn.getActionsApi();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Assignment';\n const localeReference = `${getPConnect().getCaseInfo().getClassName()}!CASE!${getPConnect().getCaseInfo().getName()}`.toUpperCase();\n\n // store off bound functions to above pointers\n const finishAssignment = actionsAPI.finishAssignment.bind(actionsAPI);\n const navigateToStep = actionsAPI.navigateToStep.bind(actionsAPI);\n const cancelAssignment = actionsAPI.cancelAssignment.bind(actionsAPI);\n const saveAssignment = actionsAPI.saveAssignment?.bind(actionsAPI);\n const cancelCreateStageAssignment = actionsAPI.cancelCreateStageAssignment.bind(actionsAPI);\n const approveCase = actionsAPI.approveCase?.bind(actionsAPI);\n const rejectCase = actionsAPI.rejectCase?.bind(actionsAPI);\n // const showPage = actionsAPI.showPage.bind(actionsAPI);\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n function findCurrentIndicies(arStepperSteps: any[], arIndicies: number[], depth: number): number[] {\n let count = 0;\n arStepperSteps.forEach(step => {\n if (step.visited_status === 'current') {\n arIndicies[depth] = count;\n\n // add in\n step.step_status = '';\n } else if (step.visited_status === 'success') {\n count += 1;\n step.step_status = 'completed';\n } else {\n count += 1;\n step.step_status = '';\n }\n\n if (step.steps) {\n arIndicies = findCurrentIndicies(step.steps, arIndicies, depth + 1);\n }\n });\n\n return arIndicies;\n }\n\n function getStepsInfo(steps, formedSteps: any = []) {\n steps.forEach(step => {\n if (step.name) {\n step.name = PCore.getLocaleUtils().getLocaleValue(step.name, undefined, localeReference);\n }\n if (step.steps) {\n formedSteps = getStepsInfo(step.steps, formedSteps);\n } else {\n formedSteps.push(step);\n }\n });\n return formedSteps;\n }\n\n const scrollId = window.location.href.includes('embedded') ? '#pega-part-of-page' : '#portal';\n useScrolltoTop(scrollId, children);\n useFocusFirstField('Assignment', children);\n\n useEffect(() => {\n if (children) {\n const firstChild = Array.isArray(children) ? children[0] : children;\n const oWorkItem = firstChild.props.getPConnect();\n const oWorkData = oWorkItem.getDataObject();\n const oData: any = thePConn.getDataObject(''); // 1st arg empty string until typedefs allow it to be optional\n\n if (oWorkData?.caseInfo && oWorkData.caseInfo.assignments !== null) {\n const oCaseInfo = oData?.caseInfo;\n\n if (oCaseInfo && oCaseInfo.actionButtons) {\n setActionButtons(oCaseInfo.actionButtons);\n }\n\n if (oCaseInfo?.navigation /* was oCaseInfo.navigation != null */) {\n setHasNavigation(true);\n\n if (\n (oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'standard') ||\n oCaseInfo?.navigation?.steps?.length === 1\n ) {\n setHasNavigation(false);\n } else if (oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'vertical') {\n setIsVertical(true);\n } else {\n setIsVertical(false);\n }\n\n if (oCaseInfo?.navigation?.steps) {\n const steps = JSON.parse(JSON.stringify(oCaseInfo?.navigation?.steps));\n const formedSteps = getStepsInfo(steps);\n setArNavigationSteps(formedSteps);\n }\n\n setArCurrentStepIndicies(findCurrentIndicies(arNavigationSteps, arCurrentStepIndicies, 0));\n }\n }\n }\n }, [children]);\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function onSaveActionSuccess(data) {\n actionsAPI.cancelAssignment(itemKey, false).then(() => {\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CREATE_STAGE_SAVED, data);\n });\n }\n\n function buttonPress(sAction: string, sButtonType: string) {\n if (sButtonType === 'secondary') {\n switch (sAction) {\n case 'navigateToStep': {\n const navigatePromise = navigateToStep('previous', itemKey);\n\n navigatePromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Navigation failed!', localeCategory)}`);\n });\n\n break;\n }\n\n case 'saveAssignment': {\n const caseID = thePConn.getCaseInfo().getKey();\n const assignmentID = thePConn.getCaseInfo().getAssignmentID();\n const savePromise = saveAssignment(itemKey);\n\n savePromise\n .then(() => {\n const caseType = thePConn.getCaseInfo().c11nEnv.getValue(PCore.getConstants().CASE_INFO.CASE_TYPE_ID);\n onSaveActionSuccess({ caseType, caseID, assignmentID });\n })\n .catch(() => {\n showToast(`${localizedVal('Save failed', localeCategory)}`);\n });\n\n break;\n }\n\n case 'cancelAssignment': {\n // check if create stage (modal)\n const { PUB_SUB_EVENTS } = PCore.getConstants();\n const { publish } = PCore.getPubSubUtils();\n const isAssignmentInCreateStage = thePConn.getCaseInfo().isAssignmentInCreateStage();\n const isLocalAction =\n thePConn.getCaseInfo().isLocalAction() ||\n (PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION && getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION));\n if (isAssignmentInCreateStage && isInModal && !isLocalAction) {\n const cancelPromise = cancelCreateStageAssignment(itemKey);\n\n cancelPromise\n .then(data => {\n publish(PUB_SUB_EVENTS.EVENT_CANCEL, data);\n })\n .catch(() => {\n showToast(`${localizedVal('Cancel failed!', localeCategory)}`);\n });\n } else {\n const cancelPromise = cancelAssignment(itemKey, false);\n\n cancelPromise\n .then(data => {\n publish(PUB_SUB_EVENTS.EVENT_CANCEL, data);\n })\n .catch(() => {\n showToast(`${localizedVal('Cancel failed!', localeCategory)}`);\n });\n }\n break;\n }\n\n case 'rejectCase': {\n const rejectPromise = rejectCase(itemKey);\n\n rejectPromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Rejection failed!', localeCategory)}`);\n });\n\n break;\n }\n\n default:\n break;\n }\n } else if (sButtonType === 'primary') {\n switch (sAction) {\n case 'finishAssignment': {\n const finishPromise = finishAssignment(itemKey);\n\n finishPromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Submit failed!', localeCategory)}`);\n });\n\n break;\n }\n\n case 'approveCase': {\n const approvePromise = approveCase(itemKey);\n\n approvePromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Approve failed!', localeCategory)}`);\n });\n\n break;\n }\n\n default:\n break;\n }\n }\n }\n\n function getRefreshProps(refreshConditions) {\n // refreshConditions cuurently supports only \"Changes\" event\n if (!refreshConditions) {\n return [];\n }\n return refreshConditions.filter(item => item.event && item.event === 'Changes').map(item => [item.field, item.field?.substring(1)]) || [];\n }\n\n // expected format of refreshConditions : [{field: \".Name\", event: \"Changes\"}]\n const refreshConditions = thePConn.getCaseInfo()?.getActionRefreshConditions();\n const context = thePConn.getContextName();\n const pageReference = thePConn.getPageReference();\n\n // refresh api de-registration\n PCore.getRefreshManager().deRegisterForRefresh(context);\n\n // refresh api registration\n const refreshProps = getRefreshProps(refreshConditions);\n const caseKey = thePConn.getCaseInfo().getKey();\n const refreshOptions = {\n autoDetectRefresh: true,\n preserveClientChanges: false\n };\n if (refreshProps.length > 0) {\n refreshProps.forEach(prop => {\n PCore.getRefreshManager().registerForRefresh(\n 'PROP_CHANGE',\n thePConn.getActionsApi().refreshCaseView.bind(thePConn.getActionsApi(), caseKey, '', pageReference, {\n ...refreshOptions,\n refreshFor: prop[0]\n }),\n `${pageReference}.${prop[1]}`,\n `${context}/${pageReference}`,\n context\n );\n });\n }\n\n return (\n <div id='Assignment'>\n {banners}\n {bHasNavigation ? (\n <>\n <MultiStep\n getPConnect={getPConnect}\n itemKey={itemKey}\n actionButtons={actionButtons}\n onButtonPress={buttonPress}\n bIsVertical={bIsVertical}\n arCurrentStepIndicies={arCurrentStepIndicies}\n arNavigationSteps={arNavigationSteps}\n >\n {children}\n </MultiStep>\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n ) : (\n <>\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n )}\n </div>\n );\n}\n\n// From WC SDK\n// const aHtml = html`\n// ${this.bHasNavigation?\n// html`\n// <div class=\"psdk-stepper\">\n// <multi-step-component .pConn=${this.pConn} .arChildren=${this.arChildren} itemKey=${this.itemKey}\n// .arMainButtons=${this.arMainButtons} .arSecondaryButtons=${this.arSecondaryButtons}\n// .bIsVertical=${this.bIsVertical} .arCurrentStepIndicies=${this.arCurrentStepIndicies}\n// .arNavigationSteps=${this.arNavigationSteps}\n// @MultiStepActionButtonClick=\"${this._onActionButtonClick}\">\n// </multi-step-component>\n// <lit-toast></lit-toast>\n// </div>`\n// :\n// html`\n// <div>\n// <assignment-card-component .pConn=${this.pConn} .arChildren=${this.arChildren} itemKey=${this.itemKey}\n// .arMainButtons=${this.arMainButtons} .arSecondaryButtons=${this.arSecondaryButtons}\n// @AssignmentActionButtonClick=\"${this._onActionButtonClick}\">\n// </assignment-card-component>\n// <lit-toast></lit-toast>\n// </div>`}\n// `;\n"]}
1
+ {"version":3,"file":"Assignment.js","sourceRoot":"","sources":["../../../../src/components/infra/Assignment/Assignment.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAA0B,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAE,mB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IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC,CAAC,CAAC,CACF,8BACE,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,YACjH,QAAQ,GACM,EACjB,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,IACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { type PropsWithChildren, useEffect, useState } from 'react';\nimport Snackbar from '@mui/material/Snackbar';\nimport IconButton from '@mui/material/IconButton';\nimport CloseIcon from '@mui/icons-material/Close';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { useFocusFirstField, useScrolltoTop } from '../../../hooks';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\ninterface AssignmentProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n itemKey: string;\n isInModal: boolean;\n banners: any[];\n\n actionButtons: any[];\n}\n\nexport default function Assignment(props: PropsWithChildren<AssignmentProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const AssignmentCard = getComponentFromMap('AssignmentCard');\n const MultiStep = getComponentFromMap('MultiStep');\n\n const { getPConnect, children, itemKey = '', isInModal = false, banners = [] } = props;\n const thePConn = getPConnect();\n\n const [bHasNavigation, setHasNavigation] = useState(false);\n const [actionButtons, setActionButtons] = useState([]);\n const [bIsVertical, setIsVertical] = useState(false);\n const [arCurrentStepIndicies, setArCurrentStepIndicies] = useState<any[]>([]);\n const [arNavigationSteps, setArNavigationSteps] = useState<any[]>([]);\n\n const actionsAPI = thePConn.getActionsApi();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localizationService = thePConn.getLocalizationService();\n const localeCategory = 'Assignment';\n\n // store off bound functions to above pointers\n const finishAssignment = actionsAPI.finishAssignment.bind(actionsAPI);\n const navigateToStep = actionsAPI.navigateToStep.bind(actionsAPI);\n const cancelAssignment = actionsAPI.cancelAssignment.bind(actionsAPI);\n const saveAssignment = actionsAPI.saveAssignment?.bind(actionsAPI);\n const cancelCreateStageAssignment = actionsAPI.cancelCreateStageAssignment.bind(actionsAPI);\n const approveCase = actionsAPI.approveCase?.bind(actionsAPI);\n const rejectCase = actionsAPI.rejectCase?.bind(actionsAPI);\n // const showPage = actionsAPI.showPage.bind(actionsAPI);\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n function findCurrentIndicies(arStepperSteps: any[], arIndicies: number[], depth: number): number[] {\n let count = 0;\n arStepperSteps.forEach(step => {\n if (step.visited_status === 'current') {\n arIndicies[depth] = count;\n\n // add in\n step.step_status = '';\n } else if (step.visited_status === 'success') {\n count += 1;\n step.step_status = 'completed';\n } else {\n count += 1;\n step.step_status = '';\n }\n\n if (step.steps) {\n arIndicies = findCurrentIndicies(step.steps, arIndicies, depth + 1);\n }\n });\n\n return arIndicies;\n }\n\n function getStepsInfo(steps, formedSteps: any = []) {\n steps.forEach(step => {\n if (step.name) {\n step.name = localizationService.getLocalizedText(step.name);\n }\n if (step.steps) {\n formedSteps = getStepsInfo(step.steps, formedSteps);\n } else {\n formedSteps.push(step);\n }\n });\n return formedSteps;\n }\n\n const scrollId = window.location.href.includes('embedded') ? '#pega-part-of-page' : '#portal';\n useScrolltoTop(scrollId, children);\n useFocusFirstField('Assignment', children);\n\n useEffect(() => {\n if (children) {\n const firstChild = Array.isArray(children) ? children[0] : children;\n const oWorkItem = firstChild.props.getPConnect();\n const oWorkData = oWorkItem.getDataObject();\n const oData: any = thePConn.getDataObject(''); // 1st arg empty string until typedefs allow it to be optional\n const caseInfo = oData?.caseInfo;\n if (!oWorkData?.caseInfo || oWorkData.caseInfo.assignments === null || !caseInfo) {\n return;\n }\n\n // Set action buttons\n if (caseInfo.actionButtons) {\n setActionButtons(caseInfo.actionButtons);\n }\n\n // Handle navigation setup\n const navigation = caseInfo.navigation;\n if (!navigation) {\n setHasNavigation(false);\n return;\n }\n\n const isStandardTemplate = navigation.template?.toLowerCase() === 'standard';\n const hasSingleStep = navigation.steps?.length === 1;\n const shouldHideNavigation = isStandardTemplate || hasSingleStep;\n\n setHasNavigation(!shouldHideNavigation);\n\n if (shouldHideNavigation) {\n return;\n }\n\n // set vertical navigation\n const isVerticalTemplate = navigation.template?.toLowerCase() === 'vertical';\n setIsVertical(isVerticalTemplate);\n\n if (navigation.steps) {\n const steps = JSON.parse(JSON.stringify(navigation.steps));\n const formedSteps = getStepsInfo(steps);\n setArNavigationSteps(formedSteps);\n }\n\n setArCurrentStepIndicies(findCurrentIndicies(arNavigationSteps, arCurrentStepIndicies, 0));\n }\n }, [children]);\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function onSaveActionSuccess(data) {\n actionsAPI.cancelAssignment(itemKey, false).then(() => {\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CREATE_STAGE_SAVED, data);\n });\n }\n\n function buttonPress(sAction: string, sButtonType: string) {\n if (sButtonType === 'secondary') {\n switch (sAction) {\n case 'navigateToStep': {\n const navigatePromise = navigateToStep('previous', itemKey);\n\n navigatePromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Navigation failed!', localeCategory)}`);\n });\n\n break;\n }\n\n case 'saveAssignment': {\n const caseID = thePConn.getCaseInfo().getKey();\n const assignmentID = thePConn.getCaseInfo().getAssignmentID();\n const savePromise = saveAssignment(itemKey);\n\n savePromise\n .then(() => {\n const caseType = thePConn.getCaseInfo().c11nEnv.getValue(PCore.getConstants().CASE_INFO.CASE_TYPE_ID);\n onSaveActionSuccess({ caseType, caseID, assignmentID });\n })\n .catch(() => {\n showToast(`${localizedVal('Save failed', localeCategory)}`);\n });\n\n break;\n }\n\n case 'cancelAssignment': {\n // check if create stage (modal)\n const { PUB_SUB_EVENTS } = PCore.getConstants();\n const { publish } = PCore.getPubSubUtils();\n const isAssignmentInCreateStage = thePConn.getCaseInfo().isAssignmentInCreateStage();\n const isLocalAction =\n thePConn.getCaseInfo().isLocalAction() ||\n (PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION && getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION));\n if (isAssignmentInCreateStage && isInModal && !isLocalAction) {\n const cancelPromise = cancelCreateStageAssignment(itemKey);\n\n cancelPromise\n .then(data => {\n publish(PUB_SUB_EVENTS.EVENT_CANCEL, data);\n })\n .catch(() => {\n showToast(`${localizedVal('Cancel failed!', localeCategory)}`);\n });\n } else {\n const cancelPromise = cancelAssignment(itemKey, false);\n\n cancelPromise\n .then(data => {\n publish(PUB_SUB_EVENTS.EVENT_CANCEL, data);\n })\n .catch(() => {\n showToast(`${localizedVal('Cancel failed!', localeCategory)}`);\n });\n }\n break;\n }\n\n case 'rejectCase': {\n const rejectPromise = rejectCase(itemKey);\n\n rejectPromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Rejection failed!', localeCategory)}`);\n });\n\n break;\n }\n\n default:\n break;\n }\n } else if (sButtonType === 'primary') {\n switch (sAction) {\n case 'finishAssignment': {\n const finishPromise = finishAssignment(itemKey);\n\n finishPromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Submit failed!', localeCategory)}`);\n });\n\n break;\n }\n\n case 'approveCase': {\n const approvePromise = approveCase(itemKey);\n\n approvePromise\n .then(() => {})\n .catch(() => {\n showToast(`${localizedVal('Approve failed!', localeCategory)}`);\n });\n\n break;\n }\n\n default:\n break;\n }\n }\n }\n\n function getRefreshProps(refreshConditions) {\n // refreshConditions cuurently supports only \"Changes\" event\n if (!refreshConditions) {\n return [];\n }\n return refreshConditions.filter(item => item.event && item.event === 'Changes').map(item => [item.field, item.field?.substring(1)]) || [];\n }\n\n // expected format of refreshConditions : [{field: \".Name\", event: \"Changes\"}]\n const refreshConditions = thePConn.getCaseInfo()?.getActionRefreshConditions();\n const context = thePConn.getContextName();\n const pageReference = thePConn.getPageReference();\n\n // refresh api de-registration\n PCore.getRefreshManager().deRegisterForRefresh(context);\n\n // refresh api registration\n const refreshProps = getRefreshProps(refreshConditions);\n const caseKey = thePConn.getCaseInfo().getKey();\n const refreshOptions = {\n autoDetectRefresh: true,\n preserveClientChanges: false\n };\n if (refreshProps.length > 0) {\n refreshProps.forEach(prop => {\n PCore.getRefreshManager().registerForRefresh(\n 'PROP_CHANGE',\n thePConn.getActionsApi().refreshCaseView.bind(thePConn.getActionsApi(), caseKey, '', pageReference, {\n ...refreshOptions,\n refreshFor: prop[0]\n }),\n `${pageReference}.${prop[1]}`,\n `${context}/${pageReference}`,\n context\n );\n });\n }\n\n return (\n <div id='Assignment'>\n {banners}\n {bHasNavigation ? (\n <>\n <MultiStep\n getPConnect={getPConnect}\n itemKey={itemKey}\n actionButtons={actionButtons}\n onButtonPress={buttonPress}\n bIsVertical={bIsVertical}\n arCurrentStepIndicies={arCurrentStepIndicies}\n arNavigationSteps={arNavigationSteps}\n >\n {children}\n </MultiStep>\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n ) : (\n <>\n <AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress}>\n {children}\n </AssignmentCard>\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n )}\n </div>\n );\n}\n\n// From WC SDK\n// const aHtml = html`\n// ${this.bHasNavigation?\n// html`\n// <div class=\"psdk-stepper\">\n// <multi-step-component .pConn=${this.pConn} .arChildren=${this.arChildren} itemKey=${this.itemKey}\n// .arMainButtons=${this.arMainButtons} .arSecondaryButtons=${this.arSecondaryButtons}\n// .bIsVertical=${this.bIsVertical} .arCurrentStepIndicies=${this.arCurrentStepIndicies}\n// .arNavigationSteps=${this.arNavigationSteps}\n// @MultiStepActionButtonClick=\"${this._onActionButtonClick}\">\n// </multi-step-component>\n// <lit-toast></lit-toast>\n// </div>`\n// :\n// html`\n// <div>\n// <assignment-card-component .pConn=${this.pConn} .arChildren=${this.arChildren} itemKey=${this.itemKey}\n// .arMainButtons=${this.arMainButtons} .arSecondaryButtons=${this.arSecondaryButtons}\n// @AssignmentActionButtonClick=\"${this._onActionButtonClick}\">\n// </assignment-card-component>\n// <lit-toast></lit-toast>\n// </div>`}\n// `;\n"]}
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PConnProps } from '../../../types/PConnProps';
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
3
  interface AssignmentCardProps extends PConnProps {
4
4
  actionButtons: any;
5
5
  onButtonPress: any;
@@ -1 +1 @@
1
- {"version":3,"file":"AssignmentCard.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/AssignmentCard/AssignmentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,UAAU,mBAAoB,SAAQ,UAAU;IAE9C,aAAa,EAAE,GAAG,CAAC;IACnB,aAAa,EAAE,GAAG,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,2CA4BnF"}
1
+ {"version":3,"file":"AssignmentCard.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/AssignmentCard/AssignmentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,UAAU,mBAAoB,SAAQ,UAAU;IAE9C,aAAa,EAAE,GAAG,CAAC;IACnB,aAAa,EAAE,GAAG,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,2CA4BnF"}
@@ -1 +1 @@
1
- {"version":3,"file":"AssignmentCard.js","sourceRoot":"","sources":["../../../../src/components/infra/AssignmentCard/AssignmentCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAQhF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA6C;IAClF,8EAA8E;IAC9E,MAAM,aAAa,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAE3D,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEzD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEjE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,aAAa,EAAE;YACjB,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YACrC,qBAAqB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SAChD;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,SAAS,WAAW,CAAC,OAAO,EAAE,KAAK;QACjC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,CACL,8BACG,QAAQ,EACR,aAAa,IAAI,kBAAkB,IAAI,CACtC,KAAC,aAAa,IAAC,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,WAAW,GAAI,CACpH,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, useEffect, useState } from 'react';\n\nimport { PConnProps } from '../../../types/PConnProps';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\ninterface AssignmentCardProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n actionButtons: any;\n onButtonPress: any;\n}\n\nexport default function AssignmentCard(props: PropsWithChildren<AssignmentCardProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const ActionButtons = getComponentFromMap('ActionButtons');\n\n const { children, actionButtons, onButtonPress } = props;\n\n const [arMainButtons, setArMainButtons] = useState([]);\n const [arSecondaryButtons, setArSecondaryButtons] = useState([]);\n\n useEffect(() => {\n if (actionButtons) {\n setArMainButtons(actionButtons.main);\n setArSecondaryButtons(actionButtons.secondary);\n }\n }, [actionButtons]);\n\n function buttonPress(sAction, sType) {\n onButtonPress(sAction, sType);\n }\n\n return (\n <>\n {children}\n {arMainButtons && arSecondaryButtons && (\n <ActionButtons arMainButtons={arMainButtons} arSecondaryButtons={arSecondaryButtons} onButtonPress={buttonPress} />\n )}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"AssignmentCard.js","sourceRoot":"","sources":["../../../../src/components/infra/AssignmentCard/AssignmentCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA0B,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAQhF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA6C;IAClF,8EAA8E;IAC9E,MAAM,aAAa,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAE3D,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEzD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEjE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,aAAa,EAAE,CAAC;YAClB,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YACrC,qBAAqB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,SAAS,WAAW,CAAC,OAAO,EAAE,KAAK;QACjC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,CACL,8BACG,QAAQ,EACR,aAAa,IAAI,kBAAkB,IAAI,CACtC,KAAC,aAAa,IAAC,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,WAAW,GAAI,CACpH,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { type PropsWithChildren, useEffect, useState } from 'react';\n\nimport type { PConnProps } from '../../../types/PConnProps';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\ninterface AssignmentCardProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n actionButtons: any;\n onButtonPress: any;\n}\n\nexport default function AssignmentCard(props: PropsWithChildren<AssignmentCardProps>) {\n // Get emitted components from map (so we can get any override that may exist)\n const ActionButtons = getComponentFromMap('ActionButtons');\n\n const { children, actionButtons, onButtonPress } = props;\n\n const [arMainButtons, setArMainButtons] = useState([]);\n const [arSecondaryButtons, setArSecondaryButtons] = useState([]);\n\n useEffect(() => {\n if (actionButtons) {\n setArMainButtons(actionButtons.main);\n setArSecondaryButtons(actionButtons.secondary);\n }\n }, [actionButtons]);\n\n function buttonPress(sAction, sType) {\n onButtonPress(sAction, sType);\n }\n\n return (\n <>\n {children}\n {arMainButtons && arSecondaryButtons && (\n <ActionButtons arMainButtons={arMainButtons} arSecondaryButtons={arSecondaryButtons} onButtonPress={buttonPress} />\n )}\n </>\n );\n}\n"]}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { PConnProps } from '../../../../types/PConnProps';
1
+ import type { PConnProps } from '../../../../types/PConnProps';
3
2
  interface FlowContainerProps extends PConnProps {
4
3
  pageMessages: any[];
5
4
  rootViewElement: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"FlowContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI1D,UAAU,kBAAmB,SAAQ,UAAU;IAE7C,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,gCAAgC,EAAE,QAAQ,CAAC;IAC3C,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AA6BD,eAAO,MAAM,aAAa,UAAW,kBAAkB,4CAmStD,CAAC;;AAEF,wBAA8D"}
1
+ {"version":3,"file":"FlowContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI/D,UAAU,kBAAmB,SAAQ,UAAU;IAE7C,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,gCAAgC,EAAE,QAAQ,CAAC;IAC3C,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AA6BD,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CAsNtD,CAAC;;AAEF,wBAA8D"}
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /* eslint-disable no-nested-ternary */
3
2
  import { useState, useEffect, useContext } from 'react';
4
3
  import makeStyles from '@mui/styles/makeStyles';
5
4
  import { Alert, Card, CardHeader, Avatar, Typography } from '@mui/material';
@@ -42,7 +41,6 @@ export const FlowContainer = (props) => {
42
41
  const ToDo = getComponentFromMap('Todo'); // NOTE: ConstellationJS Engine uses "Todo" and not "ToDo"!!!
43
42
  const AlertBanner = getComponentFromMap('AlertBanner');
44
43
  const pCoreConstants = PCore.getConstants();
45
- const PCoreVersion = PCore.getPCoreVersion();
46
44
  const { TODO } = pCoreConstants;
47
45
  const todo_headerText = 'To do';
48
46
  const { getPConnect: getPConnectOfFlowContainer, pageMessages, rootViewElement, getPConnectOfActiveContainerItem, assignmentNames, activeContainerItemID: itemKey } = props;
@@ -53,6 +51,7 @@ export const FlowContainer = (props) => {
53
51
  const getPConnect = getPConnectOfActiveContainerItem || getPConnectOfFlowContainer;
54
52
  const thePConn = getPConnect();
55
53
  const containerName = assignmentNames && assignmentNames.length > 0 ? assignmentNames[0] : '';
54
+ const bShowBanner = showBanner(getPConnect);
56
55
  // const [init, setInit] = useState(true);
57
56
  // const [fcState, setFCState] = useState({ hasError: false });
58
57
  const [todo_showTodo, setShowTodo] = useState(false);
@@ -69,11 +68,10 @@ export const FlowContainer = (props) => {
69
68
  const [bShowConfirm, setShowConfirm] = useState(false);
70
69
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
71
70
  const localeCategory = 'Messages';
72
- const key = `${thePConn.getCaseInfo().getClassName()}!CASE!${thePConn.getCaseInfo().getName()}`.toUpperCase();
71
+ const key = getPConnect()?.getCaseLocaleReference();
73
72
  const classes = useStyles();
74
73
  function getBuildName() {
75
74
  const ourPConn = getPConnect();
76
- // let { getPConnect, name } = this.pConn$.pConn;
77
75
  const context = ourPConn.getContextName();
78
76
  let viewContainerName = ourPConn.getContainerName();
79
77
  if (!viewContainerName)
@@ -81,7 +79,7 @@ export const FlowContainer = (props) => {
81
79
  return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;
82
80
  }
83
81
  function getTodoVisibility() {
84
- const caseViewMode = getPConnect().getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional
82
+ const caseViewMode = getPConnect().getValue('context_data.caseViewMode');
85
83
  if (caseViewMode && caseViewMode === 'review') {
86
84
  return true;
87
85
  }
@@ -89,12 +87,6 @@ export const FlowContainer = (props) => {
89
87
  }
90
88
  function initComponent() {
91
89
  const ourPConn = getPConnect();
92
- // debugging/investigation help
93
- // console.log(`${ourPConn.getComponentName()}: children update for main draw`);
94
- // const oData = ourPConn.getDataObject();
95
- // const activeActionLabel = "";
96
- // const child0_getPConnect = arNewChildren[0].getPConnect();
97
- // this.templateName$ = this.configProps$["template"];
98
90
  // debugger;
99
91
  setShowTodo(getTodoVisibility());
100
92
  ourPConn.isBoundToState();
@@ -106,62 +98,13 @@ export const FlowContainer = (props) => {
106
98
  initComponent();
107
99
  }, []);
108
100
  useEffect(() => {
109
- // @ts-ignore - Property 'getMetadata' is private and only accessible within class 'C11nEnv'
101
+ // @ts-expect-error - Property 'getMetadata' is private and only accessible within class 'C11nEnv'
110
102
  if (isInitialized && pConnectOfFlowContainer.getMetadata().children && !hasItems) {
111
103
  // ensuring not to add container items, if container already has items
112
104
  // because during multi doc mode, we will have container items already in store
113
105
  addContainerItem(pConnectOfFlowContainer);
114
106
  }
115
107
  }, [isInitialized, hasItems]);
116
- function isCaseWideLocalAction() {
117
- const ourPConn = getPConnect();
118
- const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID, ''); // 2nd arg empty string until typedefs properly allow optional
119
- const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS, ''); // 2nd arg empty string until typedefs properly allow optional
120
- let bCaseWideAction = false;
121
- if (caseActions && actionID) {
122
- const actionObj = caseActions.find(caseAction => caseAction.ID === actionID);
123
- if (actionObj) {
124
- bCaseWideAction = actionObj.type === 'Case';
125
- }
126
- }
127
- return bCaseWideAction;
128
- }
129
- function hasChildCaseAssignments() {
130
- const ourPConn = getPConnect();
131
- const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS, ''); // 2nd arg empty string until typedefs properly allow optional
132
- // const allAssignments = [];
133
- return !!(childCases && childCases.length > 0);
134
- }
135
- function hasAssignments() {
136
- const ourPConn = getPConnect();
137
- let bHasAssignments = false;
138
- const assignmentsList = ourPConn.getValue(pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS, ''); // 2nd arg empty string until typedefs properly allow optional
139
- const isEmbedded = window.location.href.includes('embedded');
140
- let bAssignmentsForThisOperator = false;
141
- // 8.7 includes assignments in Assignments List that may be assigned to
142
- // a different operator. So, see if there are any assignments for
143
- // the current operator
144
- if (PCoreVersion?.includes('8.7') || isEmbedded) {
145
- const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();
146
- for (const assignment of assignmentsList) {
147
- if (assignment.assigneeInfo.ID === thisOperator) {
148
- bAssignmentsForThisOperator = true;
149
- }
150
- }
151
- }
152
- else {
153
- bAssignmentsForThisOperator = true;
154
- }
155
- // Bail out if there isn't an assignmentsList
156
- if (!assignmentsList) {
157
- return bHasAssignments;
158
- }
159
- const bHasChildCaseAssignments = hasChildCaseAssignments();
160
- if (bAssignmentsForThisOperator || bHasChildCaseAssignments || isCaseWideLocalAction()) {
161
- bHasAssignments = true;
162
- }
163
- return bHasAssignments;
164
- }
165
108
  // From SDK-WC updateSelf - so do this in useEffect that's run only when the props change...
166
109
  useEffect(() => {
167
110
  setBuildName(getBuildName());
@@ -169,27 +112,21 @@ export const FlowContainer = (props) => {
169
112
  // let routingInfo = this.getComponentProp("routingInfo");
170
113
  let loadingInfo;
171
114
  try {
172
- loadingInfo = thePConn.getLoadingStatus(''); // 1st arg empty string until typedefs properly allow optional
115
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
116
+ loadingInfo = thePConn.getLoadingStatus();
117
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
173
118
  }
174
119
  catch (ex) {
175
- // eslint-disable-next-line no-console
176
120
  console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);
177
121
  }
178
- // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());
179
- if (!loadingInfo) {
180
- // turn off spinner
181
- // this.psService.sendMessage(false);
182
- }
183
- const caseViewMode = thePConn.getValue('context_data.caseViewMode', ''); // 2nd arg empty string until typedefs properly allow optional
122
+ const caseViewMode = thePConn.getValue('context_data.caseViewMode');
184
123
  const { CASE_INFO: CASE_CONSTS } = pCoreConstants;
185
124
  if (caseViewMode && caseViewMode === 'review') {
186
125
  setTimeout(() => {
187
126
  // updated for 8.7 - 30-Mar-2022
188
127
  const todoAssignments = getToDoAssignments(thePConn);
189
- if (todoAssignments && todoAssignments.length > 0) {
190
- setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID, '')); // 2nd arg empty string until typedefs properly allow optional
191
- setTodoDatasource({ source: todoAssignments });
192
- }
128
+ setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID));
129
+ setTodoDatasource({ source: todoAssignments });
193
130
  setShowTodo(true);
194
131
  setShowTodoList(false);
195
132
  }, 100);
@@ -200,10 +137,10 @@ export const FlowContainer = (props) => {
200
137
  setShowTodo(false);
201
138
  }
202
139
  // if have caseMessage show message and end
203
- const theCaseMessages = localizedVal(thePConn.getValue('caseMessages', ''), localeCategory); // 2nd arg empty string until typedefs properly allow optional
204
- // caseMessages's behavior has changed in 24.2, and hence it doesn't let Optional Action work.
205
- // Changing the below condition for now. Was: (theCaseMessages || !hasAssignments())
206
- if (!hasAssignments()) {
140
+ const theCaseMessages = localizedVal(thePConn.getValue('caseMessages'), localeCategory);
141
+ const rootInfo = PCore.getContainerUtils().getContainerItemData(getPConnect().getTarget(), itemKey);
142
+ const bConfirmView = rootInfo && bShowBanner;
143
+ if (bConfirmView) {
207
144
  // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.
208
145
  // So, if we get here and caseMessages$ is empty, use default value in DX API response
209
146
  setCaseMessages(theCaseMessages || localizedVal('Thank you! The next step in this case has been routed appropriately.', localeCategory));
@@ -221,7 +158,6 @@ export const FlowContainer = (props) => {
221
158
  const caseId = thePConn.getCaseSummary().content.pyID;
222
159
  const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments?.[0].urgency : '';
223
160
  const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName() || '');
224
- const bShowBanner = showBanner(getPConnect);
225
161
  const displayPageMessages = () => {
226
162
  let hasBanner = false;
227
163
  const messages = pageMessages ? pageMessages.map(msg => localizedVal(msg.message, 'Messages')) : pageMessages;
@@ -229,7 +165,7 @@ export const FlowContainer = (props) => {
229
165
  return hasBanner && _jsx(AlertBanner, { id: 'flowContainerBanner', variant: 'urgent', messages: messages });
230
166
  };
231
167
  return (_jsxs("div", { style: { textAlign: 'left' }, id: buildName, className: 'psdk-flow-container-top', children: [!bShowConfirm &&
232
- (!todo_showTodo ? (!displayOnlyFA ? (_jsxs(Card, { className: `${classes.root} psdk-root`, children: [_jsx(CardHeader, { id: 'assignment-header', title: _jsx(Typography, { variant: 'h6', children: localizedVal(containerName, undefined, key) }), subheader: `${localizedVal('Task in', 'Todo')} ${caseId} \u2022 ${localizedVal('Priority', 'Todo')} ${urgency}`, avatar: _jsx(Avatar, { className: `${classes.avatar} psdk-avatar`, children: operatorInitials }) }), displayPageMessages(), _jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, children: _jsx(Assignment, { getPConnect: getPConnect, itemKey: itemKey, children: rootViewElement }) })] })) : (_jsxs(Card, { className: `${classes.root} psdk-root`, children: [_jsx(Typography, { variant: 'h6', children: localizedVal(containerName, undefined, key) }), displayPageMessages(), _jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, 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 })] }));
168
+ (!todo_showTodo ? (!displayOnlyFA ? (_jsxs(Card, { className: `${classes.root} psdk-root`, children: [_jsx(CardHeader, { id: 'assignment-header', title: _jsx(Typography, { variant: 'h6', children: localizedVal(containerName, undefined, key) }), subheader: `${localizedVal('In', 'Todo')} ${caseId} \u2022 ${localizedVal('Priority', 'Todo')} ${urgency}`, avatar: _jsx(Avatar, { className: `${classes.avatar} psdk-avatar`, children: operatorInitials }) }), displayPageMessages(), _jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, children: _jsx(Assignment, { getPConnect: getPConnect, itemKey: itemKey, children: rootViewElement }) })] })) : (_jsxs(Card, { className: `${classes.root} psdk-root`, children: [_jsx(Typography, { variant: 'h6', children: localizedVal(containerName, undefined, key) }), displayPageMessages(), _jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, 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 })] }));
233
169
  };
234
170
  export default withSimpleViewContainerRenderer(FlowContainer);
235
171
  //# sourceMappingURL=FlowContainer.js.map