@pega/react-sdk-components 0.24.4 → 0.25.2

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 (544) 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.js.map +1 -1
  5. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  6. package/lib/bridge/react_pconnect.js +2 -2
  7. package/lib/bridge/react_pconnect.js.map +1 -1
  8. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +1 -1
  9. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  10. package/lib/components/designSystemExtension/Banner/Banner.js +1 -1
  11. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  12. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -2
  13. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +51 -33
  15. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  16. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +4 -4
  17. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  18. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  19. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  20. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +4 -4
  21. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  22. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -4
  23. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  24. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -6
  25. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  26. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
  27. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  28. package/lib/components/designSystemExtension/Operator/Operator.js +14 -10
  29. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  30. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  31. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  32. package/lib/components/designSystemExtension/Pulse/Pulse.js +2 -2
  33. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  34. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +4 -3
  36. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  37. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +1 -1
  38. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  39. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
  40. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  41. package/lib/components/field/AutoComplete/AutoComplete.js +4 -4
  42. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  43. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
  44. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  45. package/lib/components/field/CancelAlert/CancelAlert.js +4 -7
  46. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  47. package/lib/components/field/Checkbox/Checkbox.d.ts +1 -1
  48. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  49. package/lib/components/field/Checkbox/Checkbox.js +4 -4
  50. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  51. package/lib/components/field/Currency/Currency.d.ts +1 -1
  52. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  53. package/lib/components/field/Currency/Currency.js +10 -9
  54. package/lib/components/field/Currency/Currency.js.map +1 -1
  55. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  56. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  57. package/lib/components/field/Date/Date.d.ts +1 -1
  58. package/lib/components/field/Date/Date.d.ts.map +1 -1
  59. package/lib/components/field/Date/Date.js +22 -13
  60. package/lib/components/field/Date/Date.js.map +1 -1
  61. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  62. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  63. package/lib/components/field/DateTime/DateTime.js +35 -9
  64. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  65. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  66. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  67. package/lib/components/field/Decimal/Decimal.js +9 -8
  68. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  69. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
  70. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  71. package/lib/components/field/Dropdown/Dropdown.js +22 -15
  72. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  73. package/lib/components/field/Email/Email.d.ts +1 -1
  74. package/lib/components/field/Email/Email.d.ts.map +1 -1
  75. package/lib/components/field/Email/Email.js +26 -11
  76. package/lib/components/field/Email/Email.js.map +1 -1
  77. package/lib/components/field/Group/Group.d.ts +2 -2
  78. package/lib/components/field/Group/Group.d.ts.map +1 -1
  79. package/lib/components/field/Group/Group.js +2 -2
  80. package/lib/components/field/Group/Group.js.map +1 -1
  81. package/lib/components/field/Integer/Integer.d.ts +1 -1
  82. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  83. package/lib/components/field/Integer/Integer.js +20 -10
  84. package/lib/components/field/Integer/Integer.js.map +1 -1
  85. package/lib/components/field/Multiselect/Multiselect.d.ts.map +1 -1
  86. package/lib/components/field/Multiselect/Multiselect.js +12 -8
  87. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  88. package/lib/components/field/Multiselect/utils.d.ts +2 -1
  89. package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
  90. package/lib/components/field/Multiselect/utils.js +1 -1
  91. package/lib/components/field/Multiselect/utils.js.map +1 -1
  92. package/lib/components/field/Percentage/Percentage.d.ts +1 -1
  93. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  94. package/lib/components/field/Percentage/Percentage.js +9 -9
  95. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  96. package/lib/components/field/Phone/Phone.d.ts +1 -1
  97. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  98. package/lib/components/field/Phone/Phone.js +8 -6
  99. package/lib/components/field/Phone/Phone.js.map +1 -1
  100. package/lib/components/field/RadioButtons/RadioButtons.d.ts +1 -1
  101. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  102. package/lib/components/field/RadioButtons/RadioButtons.js +6 -12
  103. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  104. package/lib/components/field/RichText/RichText.d.ts +1 -1
  105. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  106. package/lib/components/field/RichText/RichText.js +1 -1
  107. package/lib/components/field/RichText/RichText.js.map +1 -1
  108. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  109. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  110. package/lib/components/field/ScalarList/ScalarList.js +5 -5
  111. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  112. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  113. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  114. package/lib/components/field/SemanticLink/SemanticLink.js +4 -4
  115. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  116. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  117. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  118. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  119. package/lib/components/field/TextArea/TextArea.js +23 -8
  120. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  121. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  122. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  123. package/lib/components/field/TextContent/TextContent.js +1 -1
  124. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  125. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  126. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  127. package/lib/components/field/TextInput/TextInput.js +6 -7
  128. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  129. package/lib/components/field/Time/Time.d.ts +1 -1
  130. package/lib/components/field/Time/Time.d.ts.map +1 -1
  131. package/lib/components/field/Time/Time.js +32 -12
  132. package/lib/components/field/Time/Time.js.map +1 -1
  133. package/lib/components/field/URL/URL.d.ts +1 -1
  134. package/lib/components/field/URL/URL.d.ts.map +1 -1
  135. package/lib/components/field/URL/URL.js +21 -7
  136. package/lib/components/field/URL/URL.js.map +1 -1
  137. package/lib/components/field/UserReference/UserReference.d.ts +1 -2
  138. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  139. package/lib/components/field/UserReference/UserReference.js +3 -5
  140. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  141. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
  142. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  143. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  144. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  145. package/lib/components/helpers/case-utils.js.map +1 -1
  146. package/lib/components/helpers/common-utils.d.ts +7 -0
  147. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  148. package/lib/components/helpers/common-utils.js +21 -1
  149. package/lib/components/helpers/common-utils.js.map +1 -1
  150. package/lib/components/helpers/data_page.d.ts.map +1 -1
  151. package/lib/components/helpers/data_page.js.map +1 -1
  152. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  153. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  154. package/lib/components/helpers/event-utils.js.map +1 -1
  155. package/lib/components/helpers/field-group-utils.d.ts +1 -1
  156. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  157. package/lib/components/helpers/field-group-utils.js +2 -2
  158. package/lib/components/helpers/field-group-utils.js.map +1 -1
  159. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  160. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  161. package/lib/components/helpers/formatters/Currency.js +12 -15
  162. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  163. package/lib/components/helpers/formatters/Date.js.map +1 -1
  164. package/lib/components/helpers/formatters/common.d.ts +2 -2
  165. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  166. package/lib/components/helpers/formatters/common.js +2 -1
  167. package/lib/components/helpers/formatters/common.js.map +1 -1
  168. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  169. package/lib/components/helpers/formatters/index.js +2 -3
  170. package/lib/components/helpers/formatters/index.js.map +1 -1
  171. package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
  172. package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
  173. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  174. package/lib/components/helpers/simpleTableHelpers.d.ts +1 -1
  175. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  176. package/lib/components/helpers/simpleTableHelpers.js +1 -1
  177. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  178. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  179. package/lib/components/helpers/state-utils.js.map +1 -1
  180. package/lib/components/helpers/template-utils.js.map +1 -1
  181. package/lib/components/helpers/utils.js.map +1 -1
  182. package/lib/components/infra/ActionButtons/ActionButtons.js +3 -3
  183. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  184. package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
  185. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  186. package/lib/components/infra/Assignment/Assignment.js +12 -14
  187. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  188. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
  189. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  190. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  191. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
  192. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  193. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +12 -22
  194. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  195. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  196. package/lib/components/infra/Containers/FlowContainer/helpers.js +1 -5
  197. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  198. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
  199. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  200. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +9 -4
  201. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  202. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -1
  203. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  204. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +7 -7
  205. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  206. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
  207. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  208. package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
  209. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
  210. package/lib/components/infra/Containers/SimpleView/helper.js +1 -1
  211. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  212. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  213. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  214. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +1 -1
  215. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  216. package/lib/components/infra/Containers/container-helpers.d.ts +2 -0
  217. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -0
  218. package/lib/components/infra/Containers/{helpers.js → container-helpers.js} +1 -1
  219. package/lib/components/infra/Containers/container-helpers.js.map +1 -0
  220. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
  221. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  222. package/lib/components/infra/DashboardFilter/DashboardFilter.js +4 -6
  223. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  224. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  225. package/lib/components/infra/DashboardFilter/filterUtils.js +3 -5
  226. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  227. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +2 -1
  228. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  229. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -9
  230. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  231. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  232. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  233. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  234. package/lib/components/infra/MultiStep/MultiStep.d.ts +3 -3
  235. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  236. package/lib/components/infra/MultiStep/MultiStep.js +13 -12
  237. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  238. package/lib/components/infra/NavBar/NavBar.css +1 -0
  239. package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
  240. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  241. package/lib/components/infra/NavBar/NavBar.js +24 -16
  242. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  243. package/lib/components/infra/Reference/Reference.d.ts +1 -1
  244. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  245. package/lib/components/infra/Reference/Reference.js.map +1 -1
  246. package/lib/components/infra/Region/Region.d.ts +1 -1
  247. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  248. package/lib/components/infra/Region/Region.js.map +1 -1
  249. package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
  250. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  251. package/lib/components/infra/RootContainer/RootContainer.js +5 -6
  252. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  253. package/lib/components/infra/Stages/Stages.d.ts +1 -1
  254. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  255. package/lib/components/infra/Stages/Stages.js +4 -4
  256. package/lib/components/infra/Stages/Stages.js.map +1 -1
  257. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  258. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +4 -3
  259. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  260. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +3 -3
  261. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  262. package/lib/components/infra/View/View.d.ts +3 -2
  263. package/lib/components/infra/View/View.d.ts.map +1 -1
  264. package/lib/components/infra/View/View.js +32 -2
  265. package/lib/components/infra/View/View.js.map +1 -1
  266. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
  267. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
  268. package/lib/components/template/AdvancedSearch/AdvancedSearch.js +69 -0
  269. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
  270. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +24 -0
  271. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
  272. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +32 -0
  273. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
  274. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
  275. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
  276. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +181 -0
  277. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
  278. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
  279. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
  280. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +26 -0
  281. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
  282. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
  283. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
  284. package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
  285. package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
  286. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
  287. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
  288. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
  289. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
  290. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +10 -0
  291. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
  292. package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
  293. package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
  294. package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
  295. package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
  296. package/lib/components/template/AdvancedSearch/index.js +2 -0
  297. package/lib/components/template/AdvancedSearch/index.js.map +1 -0
  298. package/lib/components/template/AppShell/AppShell.d.ts +4 -2
  299. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  300. package/lib/components/template/AppShell/AppShell.js +33 -10
  301. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  302. package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
  303. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  304. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  305. package/lib/components/template/CaseSummary/CaseSummary.d.ts +2 -2
  306. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  307. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  308. package/lib/components/template/CaseView/CaseView.d.ts +3 -2
  309. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  310. package/lib/components/template/CaseView/CaseView.js +7 -7
  311. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  312. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
  313. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  314. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +7 -7
  315. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  316. package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
  317. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  318. package/lib/components/template/Confirmation/Confirmation.js +3 -2
  319. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  320. package/lib/components/template/DataReference/DataReference.d.ts +9 -2
  321. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  322. package/lib/components/template/DataReference/DataReference.js +245 -81
  323. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  324. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
  325. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
  326. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
  327. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
  328. package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
  329. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
  330. package/lib/components/template/DataReference/SearchForm.js +86 -0
  331. package/lib/components/template/DataReference/SearchForm.js.map +1 -0
  332. package/lib/components/template/DataReference/utils.d.ts +15 -0
  333. package/lib/components/template/DataReference/utils.d.ts.map +1 -0
  334. package/lib/components/template/DataReference/utils.js +75 -0
  335. package/lib/components/template/DataReference/utils.js.map +1 -0
  336. package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
  337. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  338. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  339. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  340. package/lib/components/template/DefaultForm/utils/index.js +1 -2
  341. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  342. package/lib/components/template/Details/Details/Details.d.ts +1 -1
  343. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  344. package/lib/components/template/Details/Details/Details.js +2 -2
  345. package/lib/components/template/Details/Details/Details.js.map +1 -1
  346. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
  347. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  348. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +3 -3
  349. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  350. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
  351. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  352. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -2
  353. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  354. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
  355. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  356. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -2
  357. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  358. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
  359. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  360. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +4 -4
  361. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  362. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -1
  363. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  364. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +9 -5
  365. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  366. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
  367. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  368. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  369. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  370. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
  371. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  372. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  373. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  374. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  375. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  376. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  377. package/lib/components/template/ListView/ListView.d.ts +4 -1
  378. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  379. package/lib/components/template/ListView/ListView.js +151 -66
  380. package/lib/components/template/ListView/ListView.js.map +1 -1
  381. package/lib/components/template/ListView/hooks.js.map +1 -1
  382. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  383. package/lib/components/template/ListView/utils.js +29 -6
  384. package/lib/components/template/ListView/utils.js.map +1 -1
  385. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  386. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  387. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  388. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
  389. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  390. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  391. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
  392. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  393. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -2
  394. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  395. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
  396. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  397. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  398. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
  399. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  400. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  401. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
  402. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  403. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  404. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  405. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
  406. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  407. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  408. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
  409. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  410. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  411. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
  412. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  413. package/lib/components/template/PromotedFilters/PromotedFilters.js +1 -2
  414. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  415. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
  416. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  417. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +0 -2
  418. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  419. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +4 -2
  420. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  421. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +68 -45
  422. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  423. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
  424. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  425. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +2 -4
  426. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  427. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  428. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  429. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  430. package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
  431. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  432. package/lib/components/template/SubTabs/SubTabs.js +2 -2
  433. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  434. package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
  435. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  436. package/lib/components/template/SubTabs/tabUtils.js +102 -1
  437. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  438. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
  439. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  440. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +3 -3
  441. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  442. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
  443. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  444. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  445. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
  446. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  447. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +3 -3
  448. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  449. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
  450. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  451. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  452. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
  453. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  454. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -2
  455. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  456. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
  457. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  458. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  459. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
  460. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  461. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  462. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
  463. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  464. package/lib/components/template/WssNavBar/WssNavBar.js +10 -10
  465. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  466. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
  467. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  468. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +2 -2
  469. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  470. package/lib/components/widget/Attachment/Attachment.css +1 -0
  471. package/lib/components/widget/Attachment/Attachment.d.ts +1 -1
  472. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  473. package/lib/components/widget/Attachment/Attachment.js +7 -10
  474. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  475. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  476. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  477. package/lib/components/widget/CaseHistory/CaseHistory.js +10 -9
  478. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  479. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
  480. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  481. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  482. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  483. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  484. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  485. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +10 -10
  486. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  487. package/lib/components/widget/Followers/Followers.d.ts +2 -2
  488. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  489. package/lib/components/widget/Followers/Followers.js +2 -2
  490. package/lib/components/widget/Followers/Followers.js.map +1 -1
  491. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
  492. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  493. package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
  494. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  495. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
  496. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  497. package/lib/components/widget/SummaryItem/SummaryItem.js +3 -3
  498. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  499. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
  500. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  501. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  502. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  503. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  504. package/lib/components/widget/ToDo/ToDo.js +60 -17
  505. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  506. package/lib/doc/KeyReleaseUpdates.md +19 -7
  507. package/lib/hooks/index.d.ts +2 -0
  508. package/lib/hooks/index.d.ts.map +1 -1
  509. package/lib/hooks/index.js +2 -0
  510. package/lib/hooks/index.js.map +1 -1
  511. package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
  512. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
  513. package/lib/hooks/useAfterInitialEffect.js.map +1 -1
  514. package/lib/hooks/useConsolidatedRef.d.ts +1 -1
  515. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  516. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  517. package/lib/hooks/useFocusFirstField.d.ts +7 -0
  518. package/lib/hooks/useFocusFirstField.d.ts.map +1 -0
  519. package/lib/hooks/useFocusFirstField.js +20 -0
  520. package/lib/hooks/useFocusFirstField.js.map +1 -0
  521. package/lib/hooks/useGetTabsCount.d.ts +10 -0
  522. package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
  523. package/lib/hooks/useGetTabsCount.js +166 -0
  524. package/lib/hooks/useGetTabsCount.js.map +1 -0
  525. package/lib/hooks/useIsMount.d.ts +2 -0
  526. package/lib/hooks/useIsMount.d.ts.map +1 -0
  527. package/lib/hooks/useIsMount.js +9 -0
  528. package/lib/hooks/useIsMount.js.map +1 -0
  529. package/lib/hooks/useScrolltoTop.d.ts +7 -0
  530. package/lib/hooks/useScrolltoTop.d.ts.map +1 -0
  531. package/lib/hooks/useScrolltoTop.js +13 -0
  532. package/lib/hooks/useScrolltoTop.js.map +1 -0
  533. package/lib/sdk-pega-component-map.d.ts +109 -103
  534. package/lib/sdk-pega-component-map.d.ts.map +1 -1
  535. package/lib/sdk-pega-component-map.js +9 -3
  536. package/lib/sdk-pega-component-map.js.map +1 -1
  537. package/lib/theme.d.ts +11 -0
  538. package/lib/theme.d.ts.map +1 -0
  539. package/lib/theme.js +31 -0
  540. package/lib/theme.js.map +1 -0
  541. package/package.json +31 -1
  542. package/lib/components/infra/Containers/helpers.d.ts +0 -2
  543. package/lib/components/infra/Containers/helpers.d.ts.map +0 -1
  544. package/lib/components/infra/Containers/helpers.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ViewContainer/ViewContainer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAY9D,8BAA8B;AAC9B,8BAA8B;AAE9B,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,8DAA8D;IAC9D,MAAM,EAAE,WAAW,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,QAAQ,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,GAAG,KAAK,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE/G,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAM,YAAY,CAAC,CAAC;IAExD,MAAM,EA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AAC,IAAI,CAAC,EAAE;gBACpE,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;gBAC9B,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC;gBACjC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC;gBACpD,MAAM,MAAM,GAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;gBACvC,MAAM,CAAC,OAAO,GAAG;oBACf,OAAO,EAAE,UAAU,CAAC,OAAO;oBAC3B,aAAa,EAAE,OAAO,IAAI,WAAW,EAAE,CAAC,gBAAgB,EAAE;oBAC1D,aAAa,EAAE,WAAW,EAAE,CAAC,gBAAgB,EAAE;oBAC/C,iBAAiB,EAAE,GAAG;oBACtB,OAAO,EAAE,QAAQ,KAAK,wBAAwB;iBAC/C,CAAC;gBACF,MAAM,YAAY,GAAQ,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;gBAEvD,mDAAmD;gBACnD,IAAI,aAAa,EAAE;oBACjB,YAAY,CAAC,aAAa,GAAG,IAAI,CAAC;iBACnC;gBAED,gBAAgB,CAAC,YAAY,CAAC,CAAC;gBAC/B,OAAO,CACL,MAAC,KAAK,CAAC,QAAQ,eACZ,gBAAgB,IAAI,IAAI,EACxB,WAAW,IAAI,CACd,KAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACrB,KAAC,gBAAgB,KAAG,GAChB,CACP,KANkB,YAAY,CAOhB,CAClB,CAAC;aACH;SACF;KACF;IAED,kDAAkD;IAClD,OAAO,CACL,KAAC,KAAK,CAAC,QAAQ,cACZ,WAAW,IAAI,CACd,KAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACrB,KAAC,gBAAgB,KAAG,GAChB,CACP,IALkB,YAAY,CAMhB,CAClB,CAAC;AACJ,CAAC","sourcesContent":["import React, { createElement, useContext, useEffect, useState } from 'react';\nimport { Box, CircularProgress } from '@material-ui/core';\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport StoreContext from '../../../../bridge/Context/StoreContext';\nimport { isEmptyObject } from '../../../helpers/common-utils';\nimport { PConnProps } from '../../../../types/PConnProps';\n\ninterface ViewContainerProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name?: string;\n loadingInfo?: any; // can't be boolean until setDispatchObjState expects loadingInfo to be type null\n routingInfo?: any;\n mode?: string;\n limit?: number;\n}\n\n// ViewContainer can emit View\n// import View from '../View';\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nexport default function ViewContainer(props: ViewContainerProps) {\n // const { getPConnect, children, routingInfo, name } = props;\n const { getPConnect, name = '', mode = 'single', limit = 16, loadingInfo = false, routingInfo = null } = props;\n\n const { displayOnlyFA } = useContext<any>(StoreContext);\n\n const { CONTAINER_TYPE, APP } = PCore.getConstants();\n const pConn = getPConnect();\n const containerMgr: any = pConn.getContainerManager();\n\n const [dispatchObjState, setDispatchObjState] = useState({\n dispatchObject: { semanticURL: '', context: '', acName: '' },\n visible: false,\n loadingInfo: null,\n isLoadingInfoChange: false\n }); // was this.state in class-based ViewContainer avoiding use of just \"state\" as the name\n\n let root;\n\n const thePConn = typeof getPConnect === 'function' ? getPConnect() : null;\n\n // beginning of functions for use by ViewContainer\n\n function buildName() {\n const context = thePConn?.getContextName();\n let viewContainerName = name;\n if (!viewContainerName) viewContainerName = '';\n return `${context?.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n function prepareDispatchObject() {\n const baseContext = pConn.getContextName();\n // const { acName = \"primary\" } = pConn.getContainerName(); // doesn't work with 8.23 typings\n let acName = pConn.getContainerName();\n if (!acName) {\n acName = 'primary';\n }\n\n return {\n semanticURL: '',\n context: baseContext,\n acName\n };\n }\n\n // determine if or not loadingInfo prop changed on next re-render\n // function getDerivedStateFromProps(nextProps, prevState) {\n // const { loadingInfo: prevLoadingInfo } = prevState;\n // const { loadingInfo: nextLoadingIndfo } = nextProps;\n // return {\n // loadingInfo: nextLoadingIndfo,\n // isLoadingInfoChange: prevLoadingInfo !== nextLoadingIndfo\n // };\n // }\n\n // set the root component that is retrieved by PConnectHOC\n function setRootComponent(configObject) {\n const { isLoadingInfoChange } = dispatchObjState;\n if (!isLoadingInfoChange) {\n root = createElement(createPConnectComponent(), configObject);\n }\n }\n\n // end of functions for use by ViewContainer\n\n // useEffect on [] -> code that should be run once (as in old constructor and in componentDidMount)\n useEffect(() => {\n // This is adapted from the class-based ViewContainer constructor\n containerMgr.initializeContainers({\n type: mode === CONTAINER_TYPE.MULTIPLE ? CONTAINER_TYPE.MULTIPLE : CONTAINER_TYPE.SINGLE\n });\n\n if (mode === CONTAINER_TYPE.MULTIPLE && limit) {\n /* NOTE: setContainerLimit use is temporary. It is a non-public, unsupported API. */\n PCore.getContainerUtils().setContainerLimit(`${APP.APP}/${name}`, limit);\n }\n\n const dispatchObject = prepareDispatchObject();\n setDispatchObjState({\n dispatchObject,\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n visible: !PCore.checkIfSemanticURL(),\n loadingInfo,\n isLoadingInfoChange: false\n });\n\n const { visible } = dispatchObjState;\n if (visible) containerMgr.addContainerItem(dispatchObject);\n\n // This is adapted from the class-based ViewContainer componentDidMount\n let objectForAddContainer;\n if (PCore.checkIfSemanticURL()) {\n objectForAddContainer = prepareDispatchObject();\n } else {\n const { dispatchObject: theDispatchObject } = dispatchObjState;\n objectForAddContainer = theDispatchObject;\n }\n\n // Getting default view label\n const navPages = pConn.getValue('pyPortal.pyPrimaryNavPages', ''); // 2nd arg empty string until typedefs allow optional\n const defaultViewLabel = Array.isArray(navPages) && navPages[0] ? navPages[0].pyLabel : '';\n // TODO: Plan is to rename window.constellationCore to window.pega (or similar)\n // And expose less via ui-bootstrap.js\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n\n if (!displayOnlyFA) {\n // configureForBrowserBookmark not applicable in Embedded mode\n PCore.configureForBrowserBookmark({\n ...objectForAddContainer,\n defaultViewLabel\n });\n }\n }, []);\n\n // This code (that's run every time the ViewContainer is called) is adapted from the class-based ViewContainer's render\n\n // Looking for routingInfo\n\n // debugging/investigation help\n // console.log(`ViewContainer props: ${JSON.stringify(props)}`);\n\n const theBuildName = buildName();\n const { CREATE_DETAILS_VIEW_NAME } = PCore.getConstants();\n if (routingInfo) {\n const { accessedOrder, items } = routingInfo;\n if (accessedOrder && items) {\n const key = accessedOrder[accessedOrder.length - 1];\n let componentVisible = accessedOrder.length > 0;\n const { visible } = dispatchObjState;\n componentVisible = visible || componentVisible;\n if (items[key] && items[key].view && !isEmptyObject(items[key].view)) {\n const latestItem = items[key];\n const rootView = latestItem.view;\n const { context, name: viewName } = rootView.config;\n const config: any = { meta: rootView };\n config.options = {\n context: latestItem.context,\n pageReference: context || getPConnect().getPageReference(),\n containerName: getPConnect().getContainerName(),\n containerItemName: key,\n hasForm: viewName === CREATE_DETAILS_VIEW_NAME\n };\n const configObject: any = PCore.createPConnect(config);\n\n // Add in displayOnlyFA if prop is on ViewContainer\n if (displayOnlyFA) {\n configObject.displayOnlyFA = true;\n }\n\n setRootComponent(configObject);\n return (\n <React.Fragment key={theBuildName}>\n {componentVisible && root}\n {loadingInfo && (\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n )}\n </React.Fragment>\n );\n }\n }\n }\n\n // fall through return if insufficient routingInfo\n return (\n <React.Fragment key={theBuildName}>\n {loadingInfo && (\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n )}\n </React.Fragment>\n );\n}\n"]}
1
+ {"version":3,"file":"ViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ViewContainer/ViewContainer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,GAAG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ACF,MAAM,YAAY,GAAQ,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;gBAEvD,mDAAmD;gBACnD,IAAI,aAAa,EAAE,CAAC;oBAClB,YAAY,CAAC,aAAa,GAAG,IAAI,CAAC;gBACpC,CAAC;gBAED,gBAAgB,CAAC,YAAY,CAAC,CAAC;gBAC/B,OAAO,CACL,MAAC,KAAK,CAAC,QAAQ,eACZ,gBAAgB,IAAI,IAAI,EACxB,WAAW,IAAI,CACd,KAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACrB,KAAC,gBAAgB,KAAG,GAChB,CACP,KANkB,YAAY,CAOhB,CAClB,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,kDAAkD;IAClD,OAAO,CACL,KAAC,KAAK,CAAC,QAAQ,cACZ,WAAW,IAAI,CACd,KAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACrB,KAAC,gBAAgB,KAAG,GAChB,CACP,IALkB,YAAY,CAMhB,CAClB,CAAC;AACJ,CAAC","sourcesContent":["import React, { createElement, useContext, useEffect, useState } from 'react';\nimport { Box, CircularProgress } from '@mui/material';\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport StoreContext from '../../../../bridge/Context/StoreContext';\nimport { isEmptyObject } from '../../../helpers/common-utils';\nimport type { PConnProps } from '../../../../types/PConnProps';\n\ninterface ViewContainerProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name?: string;\n loadingInfo?: any; // can't be boolean until setDispatchObjState expects loadingInfo to be type null\n routingInfo?: any;\n mode?: string;\n limit?: number;\n}\n\n// ViewContainer can emit View\n// import View from '../View';\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nexport default function ViewContainer(props: ViewContainerProps) {\n // const { getPConnect, children, routingInfo, name } = props;\n const { getPConnect, name = '', mode = 'single', limit = 16, loadingInfo = false, routingInfo = null } = props;\n\n const { displayOnlyFA } = useContext<any>(StoreContext);\n\n const { CONTAINER_TYPE, APP } = PCore.getConstants();\n const pConn = getPConnect();\n const containerMgr: any = pConn.getContainerManager();\n\n const [dispatchObjState, setDispatchObjState] = useState({\n dispatchObject: { semanticURL: '', context: '', acName: '' },\n visible: false,\n loadingInfo: null,\n isLoadingInfoChange: false\n }); // was this.state in class-based ViewContainer avoiding use of just \"state\" as the name\n\n let root;\n\n const thePConn = typeof getPConnect === 'function' ? getPConnect() : null;\n\n // beginning of functions for use by ViewContainer\n\n function buildName() {\n const context = thePConn?.getContextName();\n let viewContainerName = name;\n if (!viewContainerName) viewContainerName = '';\n return `${context?.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n function prepareDispatchObject() {\n const baseContext = pConn.getContextName();\n // const { acName = \"primary\" } = pConn.getContainerName(); // doesn't work with 8.23 typings\n let acName = pConn.getContainerName();\n if (!acName) {\n acName = 'primary';\n }\n\n return {\n semanticURL: '',\n context: baseContext,\n acName\n };\n }\n\n // determine if or not loadingInfo prop changed on next re-render\n // function getDerivedStateFromProps(nextProps, prevState) {\n // const { loadingInfo: prevLoadingInfo } = prevState;\n // const { loadingInfo: nextLoadingIndfo } = nextProps;\n // return {\n // loadingInfo: nextLoadingIndfo,\n // isLoadingInfoChange: prevLoadingInfo !== nextLoadingIndfo\n // };\n // }\n\n // set the root component that is retrieved by PConnectHOC\n function setRootComponent(configObject) {\n const { isLoadingInfoChange } = dispatchObjState;\n if (!isLoadingInfoChange) {\n root = createElement(createPConnectComponent(), configObject);\n }\n }\n\n // end of functions for use by ViewContainer\n\n // useEffect on [] -> code that should be run once (as in old constructor and in componentDidMount)\n useEffect(() => {\n // This is adapted from the class-based ViewContainer constructor\n containerMgr.initializeContainers({\n type: mode === CONTAINER_TYPE.MULTIPLE ? CONTAINER_TYPE.MULTIPLE : CONTAINER_TYPE.SINGLE\n });\n\n if (mode === CONTAINER_TYPE.MULTIPLE && limit) {\n /* NOTE: setContainerLimit use is temporary. It is a non-public, unsupported API. */\n PCore.getContainerUtils().setContainerLimit(`${APP.APP}/${name}`, limit);\n }\n\n const dispatchObject = prepareDispatchObject();\n setDispatchObjState({\n dispatchObject,\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n visible: !PCore.checkIfSemanticURL(),\n loadingInfo,\n isLoadingInfoChange: false\n });\n\n const { visible } = dispatchObjState;\n if (visible) containerMgr.addContainerItem(dispatchObject);\n\n // This is adapted from the class-based ViewContainer componentDidMount\n let objectForAddContainer;\n if (PCore.checkIfSemanticURL()) {\n objectForAddContainer = prepareDispatchObject();\n } else {\n const { dispatchObject: theDispatchObject } = dispatchObjState;\n objectForAddContainer = theDispatchObject;\n }\n\n // Getting default view label\n const navPages = pConn.getValue('pyPortal.pyPrimaryNavPages', ''); // 2nd arg empty string until typedefs allow optional\n const defaultViewLabel = Array.isArray(navPages) && navPages[0] ? navPages[0].pyLabel : '';\n // TODO: Plan is to rename window.constellationCore to window.pega (or similar)\n // And expose less via ui-bootstrap.js\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n\n if (!displayOnlyFA) {\n // configureForBrowserBookmark not applicable in Embedded mode\n PCore.configureForBrowserBookmark({\n ...objectForAddContainer,\n defaultViewLabel\n });\n }\n }, []);\n\n // This code (that's run every time the ViewContainer is called) is adapted from the class-based ViewContainer's render\n\n // Looking for routingInfo\n\n // debugging/investigation help\n // console.log(`ViewContainer props: ${JSON.stringify(props)}`);\n\n const theBuildName = buildName();\n const { CREATE_DETAILS_VIEW_NAME } = PCore.getConstants();\n if (routingInfo) {\n const { accessedOrder, items } = routingInfo;\n if (accessedOrder && items) {\n const key = accessedOrder[accessedOrder.length - 1];\n let componentVisible = accessedOrder.length > 0;\n const { visible } = dispatchObjState;\n componentVisible = visible || componentVisible;\n if (items[key] && items[key].view && !isEmptyObject(items[key].view)) {\n const latestItem = items[key];\n const rootView = latestItem.view;\n const { context, name: viewName } = rootView.config;\n const config: any = { meta: rootView };\n config.options = {\n context: latestItem.context,\n pageReference: context || getPConnect().getPageReference(),\n containerName: getPConnect().getContainerName(),\n containerItemName: key,\n hasForm: viewName === CREATE_DETAILS_VIEW_NAME\n };\n const configObject: any = PCore.createPConnect(config);\n\n // Add in displayOnlyFA if prop is on ViewContainer\n if (displayOnlyFA) {\n configObject.displayOnlyFA = true;\n }\n\n setRootComponent(configObject);\n return (\n <React.Fragment key={theBuildName}>\n {componentVisible && root}\n {loadingInfo && (\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n )}\n </React.Fragment>\n );\n }\n }\n }\n\n // fall through return if insufficient routingInfo\n return (\n <React.Fragment key={theBuildName}>\n {loadingInfo && (\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n )}\n </React.Fragment>\n );\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const isContainerInitialized: (pConnect: any) => boolean | undefined;
2
+ //# sourceMappingURL=container-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/Containers/container-helpers.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,GAAG,aAAQ,wBAI7C,CAAC"}
@@ -4,4 +4,4 @@ export const isContainerInitialized = pConnect => {
4
4
  const containerName = pConnect.getContainerName();
5
5
  return PCore.getContainerUtils().isContainerInitialized(context, containerName);
6
6
  };
7
- //# sourceMappingURL=helpers.js.map
7
+ //# sourceMappingURL=container-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-helpers.js","sourceRoot":"","sources":["../../../../src/components/infra/Containers/container-helpers.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,EAAE;IAC/C,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC1C,MAAM,aAAa,GAAG,QAAQ,CAAC,gBAAgB,EAAE,CAAC;IAClD,OAAO,KAAK,CAAC,iBAAiB,EAAE,CAAC,sBAAsB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAClF,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/prefer-default-export\nexport const isContainerInitialized = pConnect => {\n const context = pConnect.getContextName();\n const containerName = pConnect.getContainerName();\n return PCore.getContainerUtils().isContainerInitialized(context, containerName);\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
  import 'react-datepicker/dist/react-datepicker.css';
4
4
  interface DashboardFilterProps extends PConnProps {
5
5
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/DashboardFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAOnF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,4CAA4C,CAAC;AAEpD,UAAU,oBAAqB,SAAQ,UAAU;IAE/C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,2CAqIrF"}
1
+ {"version":3,"file":"DashboardFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/DashboardFilter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAMxF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,4CAA4C,CAAC;AAEpD,UAAU,oBAAqB,SAAQ,UAAU;IAE/C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,2CAqIrF"}
@@ -1,16 +1,14 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable @typescript-eslint/no-shadow */
3
- /* eslint-disable operator-assignment */
4
3
  import { forwardRef, useEffect, useRef, useState } from 'react';
5
- import { TextField } from '@material-ui/core';
6
- import { v4 as uuidv4 } from 'uuid';
4
+ import { TextField } from '@mui/material';
7
5
  import { debounce } from 'throttle-debounce';
8
6
  import DatePicker from 'react-datepicker';
9
7
  import { createFilter, combineFilters, getFormattedDate, getFilterExpression } from './filterUtils';
10
8
  import 'react-datepicker/dist/react-datepicker.css';
11
9
  export default function DashboardFilter(props) {
12
- const { children = [], name, filterProp, type = '', metadata = null, getPConnect } = props;
13
- const { current: filterId } = useRef(uuidv4());
10
+ const { children, name, filterProp, type = '', metadata = null, getPConnect } = props;
11
+ const { current: filterId } = useRef(crypto.randomUUID());
14
12
  const [startDate, setStartDate] = useState(null);
15
13
  const [endDate, setEndDate] = useState(null);
16
14
  useEffect(() => {
@@ -21,7 +19,7 @@ export default function DashboardFilter(props) {
21
19
  else if (type === 'RadioButtons') {
22
20
  const reference = getPConnect().getFullReference() + filterProp;
23
21
  const radList = document.getElementsByName(reference);
24
- for (let i = 0; i < radList.length; i = i + 1) {
22
+ for (let i = 0; i < radList.length; i += 1) {
25
23
  if (radList[i].value === '') {
26
24
  radList[i].checked = true;
27
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardFilter.js","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/DashboardFilter.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,wCAAw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AEA,QAAQ,GACJ,CACR,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\n/* eslint-disable operator-assignment */\nimport { forwardRef, PropsWithChildren, useEffect, useRef, useState } from 'react';\nimport { TextField } from '@material-ui/core';\nimport { v4 as uuidv4 } from 'uuid';\nimport { debounce } from 'throttle-debounce';\nimport DatePicker from 'react-datepicker';\n\nimport { createFilter, combineFilters, getFormattedDate, getFilterExpression } from './filterUtils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport 'react-datepicker/dist/react-datepicker.css';\n\ninterface DashboardFilterProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name: string;\n filterProp: string;\n type?: string;\n metadata?: any;\n}\n\nexport default function DashboardFilter(props: PropsWithChildren<DashboardFilterProps>) {\n const { children = [], name, filterProp, type = '', metadata = null, getPConnect } = props;\n const { current: filterId } = useRef(uuidv4());\n\n const [startDate, setStartDate] = useState(null);\n const [endDate, setEndDate] = useState(null);\n\n useEffect(() => {\n PCore.getPubSubUtils().subscribe(\n PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL,\n () => {\n if (type === 'Dropdown') {\n getPConnect().getActionsApi().updateFieldValue(filterProp, '');\n } else if (type === 'RadioButtons') {\n const reference = getPConnect().getFullReference() + filterProp;\n const radList = document.getElementsByName(reference);\n for (let i = 0; i < radList.length; i = i + 1) {\n if ((radList[i] as HTMLInputElement).value === '') {\n (radList[i] as HTMLInputElement).checked = true;\n } else {\n (radList[i] as HTMLInputElement).checked = false;\n }\n }\n } else {\n getPConnect().getActionsApi().updateFieldValue(filterProp, undefined);\n if (type === 'DateTime') {\n setStartDate(null);\n setEndDate(null);\n }\n }\n },\n filterId,\n false,\n getPConnect().getContextName()\n );\n return function cleanup() {\n PCore.getPubSubUtils().unsubscribe(\n PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL,\n filterId,\n getPConnect().getContextName()\n );\n };\n });\n\n const fireFilterChange = filterValue => {\n const filterData = {\n filterId,\n filterExpression: getFilterExpression(filterValue, name, metadata)\n };\n\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, filterData);\n };\n\n const fireFilterChangeDebounced = debounce(500, fireFilterChange);\n const dateRangeChangeHandler = value => {\n const { start, end } = value;\n\n let startDate = getFormattedDate(start);\n let endDate = getFormattedDate(end);\n\n if (startDate && endDate) {\n startDate = `${startDate}T00:00:00`;\n endDate = `${endDate}T00:00:00`;\n const startFilter = createFilter(startDate, name, 'GT');\n const endFilter = createFilter(endDate, name, 'LT');\n\n const filterData = {\n filterId,\n filterExpression: combineFilters([startFilter, endFilter], null)\n };\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, filterData);\n }\n };\n\n const renderAutoComplete = () => {\n metadata.config.onRecordChange = e => {\n fireFilterChange(e.id);\n };\n return getPConnect().createComponent(metadata, '', 0, {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional);\n };\n\n const onChange = dates => {\n const [start, end] = dates;\n setStartDate(start);\n setEndDate(end);\n dateRangeChangeHandler({ start, end });\n };\n\n type TextProps = React.HTMLProps<HTMLInputElement>;\n\n const label = metadata.config.label.substring(3);\n\n // eslint-disable-next-line react/no-unstable-nested-components\n const CustomDateInput = forwardRef<HTMLInputElement, TextProps>(({ value, onClick }, ref: any) => (\n <TextField label={label} variant='outlined' fullWidth value={value} size='small' onClick={onClick} ref={ref}>\n {value}\n </TextField>\n ));\n\n return (\n <>\n {type === 'DateTime' && (\n <DatePicker\n onChange={onChange}\n startDate={startDate}\n endDate={endDate}\n selectsRange\n enableTabLoop={false}\n customInput={<CustomDateInput />}\n />\n )}\n {type === 'AutoComplete' && (\n <span\n onChange={event => {\n if (event && event.target && !(event.target as HTMLInputElement).value) {\n fireFilterChange('ALL');\n }\n }}\n >\n {renderAutoComplete()}\n </span>\n )}\n {children && (\n <span\n onChange={event => {\n fireFilterChangeDebounced((event.target as HTMLInputElement).value);\n }}\n >\n {children}\n </span>\n )}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"DashboardFilter.js","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/DashboardFilter.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,OAAO,EAAE,UAAU,EAA0B,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpG,OAAO,4CAA4C,CAAC;AAUpD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAA8C;IACpF,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IACtF,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IAE1D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,CAAC,cAAc,EAAE,CAAC,SAAS,CAC9B,KAAK,CAAC,YAAY,EAAE,CAAC,cAAc,CAAC,gCAAgC,EACpE,GAAG,EAAE;YACH,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;gBACxB,WAAW,EAA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MAA2B,CAAC,KAAK,EAAE,CAAC;wBACvE,gBAAgB,CAAC,KAAK,CAAC,CAAC;oBAC1B,CAAC;gBACH,CAAC,YAEA,kBAAkB,EAAE,GAChB,CACR,EACA,QAAQ,IAAI,CACX,eACE,QAAQ,EAAE,KAAK,CAAC,EAAE;oBAChB,yBAAyB,CAAE,KAAK,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAC;gBACtE,CAAC,YAEA,QAAQ,GACJ,CACR,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\nimport { forwardRef, type PropsWithChildren, useEffect, useRef, useState } from 'react';\nimport { TextField } from '@mui/material';\nimport { debounce } from 'throttle-debounce';\nimport DatePicker from 'react-datepicker';\n\nimport { createFilter, combineFilters, getFormattedDate, getFilterExpression } from './filterUtils';\nimport type { PConnProps } from '../../../types/PConnProps';\n\nimport 'react-datepicker/dist/react-datepicker.css';\n\ninterface DashboardFilterProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name: string;\n filterProp: string;\n type?: string;\n metadata?: any;\n}\n\nexport default function DashboardFilter(props: PropsWithChildren<DashboardFilterProps>) {\n const { children, name, filterProp, type = '', metadata = null, getPConnect } = props;\n const { current: filterId } = useRef(crypto.randomUUID());\n\n const [startDate, setStartDate] = useState(null);\n const [endDate, setEndDate] = useState(null);\n\n useEffect(() => {\n PCore.getPubSubUtils().subscribe(\n PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL,\n () => {\n if (type === 'Dropdown') {\n getPConnect().getActionsApi().updateFieldValue(filterProp, '');\n } else if (type === 'RadioButtons') {\n const reference = getPConnect().getFullReference() + filterProp;\n const radList = document.getElementsByName(reference);\n for (let i = 0; i < radList.length; i += 1) {\n if ((radList[i] as HTMLInputElement).value === '') {\n (radList[i] as HTMLInputElement).checked = true;\n } else {\n (radList[i] as HTMLInputElement).checked = false;\n }\n }\n } else {\n getPConnect().getActionsApi().updateFieldValue(filterProp, undefined);\n if (type === 'DateTime') {\n setStartDate(null);\n setEndDate(null);\n }\n }\n },\n filterId,\n false,\n getPConnect().getContextName()\n );\n return function cleanup() {\n PCore.getPubSubUtils().unsubscribe(\n PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL,\n filterId,\n getPConnect().getContextName()\n );\n };\n });\n\n const fireFilterChange = filterValue => {\n const filterData = {\n filterId,\n filterExpression: getFilterExpression(filterValue, name, metadata)\n };\n\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, filterData);\n };\n\n const fireFilterChangeDebounced = debounce(500, fireFilterChange);\n const dateRangeChangeHandler = value => {\n const { start, end } = value;\n\n let startDate = getFormattedDate(start);\n let endDate = getFormattedDate(end);\n\n if (startDate && endDate) {\n startDate = `${startDate}T00:00:00`;\n endDate = `${endDate}T00:00:00`;\n const startFilter = createFilter(startDate, name, 'GT');\n const endFilter = createFilter(endDate, name, 'LT');\n\n const filterData = {\n filterId,\n filterExpression: combineFilters([startFilter, endFilter], null)\n };\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, filterData);\n }\n };\n\n const renderAutoComplete = () => {\n metadata.config.onRecordChange = e => {\n fireFilterChange(e.id);\n };\n return getPConnect().createComponent(metadata, '', 0, {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional);\n };\n\n const onChange = dates => {\n const [start, end] = dates;\n setStartDate(start);\n setEndDate(end);\n dateRangeChangeHandler({ start, end });\n };\n\n type TextProps = React.HTMLProps<HTMLInputElement>;\n\n const label = metadata.config.label.substring(3);\n\n // eslint-disable-next-line react/no-unstable-nested-components\n const CustomDateInput = forwardRef<HTMLInputElement, TextProps>(({ value, onClick }, ref: any) => (\n <TextField label={label} variant='outlined' fullWidth value={value} size='small' onClick={onClick} ref={ref}>\n {value}\n </TextField>\n ));\n\n return (\n <>\n {type === 'DateTime' && (\n <DatePicker\n onChange={onChange}\n startDate={startDate}\n endDate={endDate}\n selectsRange\n enableTabLoop={false}\n customInput={<CustomDateInput />}\n />\n )}\n {type === 'AutoComplete' && (\n <span\n onChange={event => {\n if (event && event.target && !(event.target as HTMLInputElement).value) {\n fireFilterChange('ALL');\n }\n }}\n >\n {renderAutoComplete()}\n </span>\n )}\n {children && (\n <span\n onChange={event => {\n fireFilterChangeDebounced((event.target as HTMLInputElement).value);\n }}\n >\n {children}\n </span>\n )}\n </>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"filterUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/filterUtils.tsx"],"names":[],"mappings":"AACA,6HAA6H;AAM7H,eAAO,MAAM,YAAY;;;;;;;;;;CAYxB,CAAC;AAEF,eAAO,MAAM,cAAc,gDAiB1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,4FAkCjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,4CAkBjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBAG5B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;QAuB/B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,KAAA,OAsBjD;AAED,eAAO,MAAM,gBAAgB,oBAK5B,CAAC"}
1
+ {"version":3,"file":"filterUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/filterUtils.tsx"],"names":[],"mappings":"AACA,6HAA6H;AAM7H,eAAO,MAAM,YAAY,GAAI,UAAK,EAAE,YAAO,EAAE,mBAAiB;;;;;;;;;;CAY7D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,eAAU,EAAE,oBAAe,QAiBzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,gBAAW,EAAE,eAAU,EAAE,UAAK,4CAiCnE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,gBAAW,EAAE,eAAU,QAkB5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAG,UAAK,QAGpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,gBAAW,EAAE,SAAI,EAAE,aAAQ;;;;;;;;;;QAuB9D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,KAAA,OAsBjD;AAED,eAAO,MAAM,gBAAgB,GAAG,SAAI,QAKnC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  /* eslint-disable prefer-template */
3
3
  /** This file contains various utility methods to generate filter components, regionLayout data, filter expressions, etc. */
4
- import { Grid, Link } from '@material-ui/core';
4
+ import { Grid, Link } from '@mui/material';
5
5
  import DashboardFilter from './DashboardFilter';
6
6
  export const createFilter = (value, fieldId, comparator = 'EQ') => {
7
7
  return {
@@ -39,7 +39,6 @@ export const createFilterComponent = (getPConnect, filterMeta, index) => {
39
39
  }
40
40
  let propInfo = PCore.getMetadataUtils().getPropertyMetadata(cleanedName, filterMeta.config.ruleClass);
41
41
  if (!propInfo) {
42
- // @ts-ignore - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.
43
42
  propInfo = PCore.getMetadataUtils().getPropertyMetadata(cleanedName);
44
43
  }
45
44
  const { type: propertyType } = propInfo || { type: 'Text' };
@@ -65,10 +64,9 @@ export const createFilterComponent = (getPConnect, filterMeta, index) => {
65
64
  export const buildFilterComponents = (getPConnect, allFilters) => {
66
65
  const filterComponents = allFilters.children.map((filter, index) => createFilterComponent(getPConnect, filter, index));
67
66
  if (filterComponents && filterComponents.length > 0) {
68
- filterComponents.push(_jsx(Grid, { children: _jsx(Link, { style: { cursor: 'pointer' }, onClick: () => {
69
- // @ts-ignore - second parameter “payload” for publish method should be optional
67
+ filterComponents.push(_jsx(Grid, { style: { display: 'flex', alignItems: 'center' }, children: _jsx(Link, { style: { cursor: 'pointer' }, onClick: () => {
70
68
  PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL);
71
- }, children: "Clear All" }) }));
69
+ }, underline: 'hover', children: "Clear All" }) }));
72
70
  }
73
71
  return filterComponents;
74
72
  };
@@ -1 +1 @@
1
- {"version":3,"file":"filterUtils.js","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/filterUtils.tsx"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,6HAA6H;AAE7H,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,EAAE,EAAE;IAChE,OAAO;QACL,SAAS,EAAE;YACT,GAAG,EAAE;gBACH,KAAK,EAAE,OAAO;aACf;YACD,UAAU;YACV,GAAG,EAAE;gBACH,KAAK;aACN;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,EAAE;IAC5D,IAAI,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE;QACnC,uBAAuB;QACvB,IAAI,eAAe,EAAE;YACnB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;SAClD;QAED,oDAAoD;QACpD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC;SACjC;QAED,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;KACtB;IAED,kBAAkB;IAClB,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;IACtE,MAAM,IAAI,GAAG,UAAU,CA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C,EAAE,CAAC;AAChH,CAAC,CAAC","sourcesContent":["/* eslint-disable prefer-template */\n/** This file contains various utility methods to generate filter components, regionLayout data, filter expressions, etc. */\n\nimport { Grid, Link } from '@material-ui/core';\n\nimport DashboardFilter from './DashboardFilter';\n\nexport const createFilter = (value, fieldId, comparator = 'EQ') => {\n return {\n condition: {\n lhs: {\n field: fieldId\n },\n comparator,\n rhs: {\n value\n }\n }\n };\n};\n\nexport const combineFilters = (filterList, existingFilters) => {\n if (filterList && filterList.length) {\n // Need to combine them\n if (existingFilters) {\n return { AND: [existingFilters, ...filterList] };\n }\n\n // No existing, just return the one(s) from the list\n if (filterList.length > 1) {\n return { AND: [...filterList] };\n }\n\n return filterList[0];\n }\n\n // No filter list,\n return existingFilters;\n};\n\nexport const createFilterComponent = (getPConnect, filterMeta, index) => {\n const name = filterMeta.config.value.substring(4);\n let cleanedName = name;\n if (name.indexOf('.') !== -1) {\n cleanedName = name.substring(name.indexOf('.') + 1);\n }\n let propInfo: any = PCore.getMetadataUtils().getPropertyMetadata(cleanedName, filterMeta.config.ruleClass);\n if (!propInfo) {\n // @ts-ignore - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.\n propInfo = PCore.getMetadataUtils().getPropertyMetadata(cleanedName);\n }\n const { type: propertyType } = propInfo || { type: 'Text' };\n const isNumber = propertyType && (propertyType === 'Decimal' || propertyType === 'Integer');\n filterMeta.isNumber = isNumber;\n const { filterType, datasource } = filterMeta.config;\n const type = filterType || filterMeta.type;\n const filterProp = `.pyDashboardFilter${index}`;\n if (type === 'DateTime') {\n return <DashboardFilter key={name} getPConnect={getPConnect} name={name} filterProp={filterProp} metadata={filterMeta} type={filterMeta.type} />;\n }\n if (datasource && datasource.fields) {\n datasource.fields.key = datasource.fields.value;\n }\n if (filterMeta.config.listType === 'associated' && propInfo && propInfo.datasource) {\n filterMeta.config.datasource = propInfo.datasource.records;\n }\n filterMeta.config.value = `@P ${filterProp}`;\n filterMeta.type = filterMeta.config.displayAs || type;\n filterMeta.config.placeholder = 'ALL';\n return (\n <DashboardFilter key={name} getPConnect={getPConnect} name={name} filterProp={filterProp} metadata={filterMeta} type={filterMeta.type}>\n {getPConnect().createComponent(filterMeta, '', '', {})}\n </DashboardFilter>\n );\n};\n\nexport const buildFilterComponents = (getPConnect, allFilters) => {\n const filterComponents = allFilters.children.map((filter, index) => createFilterComponent(getPConnect, filter, index));\n if (filterComponents && filterComponents.length > 0) {\n filterComponents.push(\n <Grid>\n <Link\n style={{ cursor: 'pointer' }}\n onClick={() => {\n // @ts-ignore - second parameter “payload” for publish method should be optional\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL);\n }}\n >\n Clear All\n </Link>\n </Grid>\n );\n }\n return filterComponents;\n};\n\nexport const convertDateToGMT = value => {\n const { valueAsISOString: date } = value;\n return date ? date.substring(0, date.indexOf('T')) : date;\n};\n\nexport const getFilterExpression = (filterValue, name, metadata) => {\n if (filterValue === '') {\n return null;\n }\n let comparator = 'EQ';\n if (metadata.type === 'TextInput' && !metadata.isNumber) {\n comparator = 'CONTAINS';\n }\n\n if (metadata.config.filterType && metadata.config.filterType === 'RelativeDates') {\n const fieldSource = metadata.config.datasource.filter(source => source.key === filterValue)[0];\n const relativeDateExpression = JSON.parse(fieldSource.json);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const fields = [\n {\n name: relativeDateExpression.condition.lhs.field,\n type: 'DATE_TIME'\n }\n ];\n return '';\n }\n\n return createFilter(filterValue, name, comparator);\n};\n\n/**\n * Returns ConfigurableLayout mapped content. With pre-populated default layout configs.\n * @returns {object[]} ConfigurableLayout content.\n */\nexport function getLayoutDataFromRegion(regionData) {\n const defaultLayoutConfig = {\n width: 'full',\n fillAvailable: true,\n minWidth: [300, 'px']\n };\n\n return regionData.props\n ?.getPConnect()\n ?.getChildren()\n ?.map((item, index) => {\n const itemPConnect = item?.getPConnect();\n\n return {\n id: itemPConnect?.getComponentName() ? `${itemPConnect.getComponentName()}--${index}` : `item--${index}`,\n content: itemPConnect?.getComponent(),\n layoutConfig: {\n ...defaultLayoutConfig,\n ...itemPConnect?.getConfigProps().layoutConfig\n }\n };\n });\n}\n\nexport const getFormattedDate = date => {\n if (!date) {\n return date;\n }\n return `${date.getFullYear()}-${('0' + (date.getMonth() + 1)).slice(-2)}-${('0' + date.getDate()).slice(-2)}`;\n};\n"]}
1
+ {"version":3,"file":"filterUtils.js","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/filterUtils.tsx"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,6HAA6H;AAE7H,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,EAAE,EAAE;IAChE,OAAO;QACL,SAAS,EAAE;YACT,GAAG,EAAE;gBACH,KAAK,EAAE,OAAO;aACf;YACD,UAAU;YACV,GAAG,EAAE;gBACH,KAAK;aACN;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,EAAE;IAC5D,IAAI,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;QACpC,uBAAuB;QACvB,IAAI,eAAe,EAAE,CAAC;YACpB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACnD,CAAC;QAED,oDAAoD;QACpD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC;QAClC,CAAC;QAED,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;IAED,kBAAkB;IAClB,OAAO,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gB,GAAG,IAAI,CAAC,EAAE;IACrC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAChH,CAAC,CAAC","sourcesContent":["/* eslint-disable prefer-template */\n/** This file contains various utility methods to generate filter components, regionLayout data, filter expressions, etc. */\n\nimport { Grid, Link } from '@mui/material';\n\nimport DashboardFilter from './DashboardFilter';\n\nexport const createFilter = (value, fieldId, comparator = 'EQ') => {\n return {\n condition: {\n lhs: {\n field: fieldId\n },\n comparator,\n rhs: {\n value\n }\n }\n };\n};\n\nexport const combineFilters = (filterList, existingFilters) => {\n if (filterList && filterList.length) {\n // Need to combine them\n if (existingFilters) {\n return { AND: [existingFilters, ...filterList] };\n }\n\n // No existing, just return the one(s) from the list\n if (filterList.length > 1) {\n return { AND: [...filterList] };\n }\n\n return filterList[0];\n }\n\n // No filter list,\n return existingFilters;\n};\n\nexport const createFilterComponent = (getPConnect, filterMeta, index) => {\n const name = filterMeta.config.value.substring(4);\n let cleanedName = name;\n if (name.indexOf('.') !== -1) {\n cleanedName = name.substring(name.indexOf('.') + 1);\n }\n let propInfo: any = PCore.getMetadataUtils().getPropertyMetadata(cleanedName, filterMeta.config.ruleClass);\n if (!propInfo) {\n propInfo = PCore.getMetadataUtils().getPropertyMetadata(cleanedName);\n }\n const { type: propertyType } = propInfo || { type: 'Text' };\n const isNumber = propertyType && (propertyType === 'Decimal' || propertyType === 'Integer');\n filterMeta.isNumber = isNumber;\n const { filterType, datasource } = filterMeta.config;\n const type = filterType || filterMeta.type;\n const filterProp = `.pyDashboardFilter${index}`;\n if (type === 'DateTime') {\n return <DashboardFilter key={name} getPConnect={getPConnect} name={name} filterProp={filterProp} metadata={filterMeta} type={filterMeta.type} />;\n }\n if (datasource && datasource.fields) {\n datasource.fields.key = datasource.fields.value;\n }\n if (filterMeta.config.listType === 'associated' && propInfo && propInfo.datasource) {\n filterMeta.config.datasource = propInfo.datasource.records;\n }\n filterMeta.config.value = `@P ${filterProp}`;\n filterMeta.type = filterMeta.config.displayAs || type;\n filterMeta.config.placeholder = 'ALL';\n return (\n <DashboardFilter key={name} getPConnect={getPConnect} name={name} filterProp={filterProp} metadata={filterMeta} type={filterMeta.type}>\n {getPConnect().createComponent(filterMeta, '', '', {})}\n </DashboardFilter>\n );\n};\n\nexport const buildFilterComponents = (getPConnect, allFilters) => {\n const filterComponents = allFilters.children.map((filter, index) => createFilterComponent(getPConnect, filter, index));\n if (filterComponents && filterComponents.length > 0) {\n filterComponents.push(\n <Grid style={{ display: 'flex', alignItems: 'center' }}>\n <Link\n style={{ cursor: 'pointer' }}\n onClick={() => {\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL);\n }}\n underline='hover'\n >\n Clear All\n </Link>\n </Grid>\n );\n }\n return filterComponents;\n};\n\nexport const convertDateToGMT = value => {\n const { valueAsISOString: date } = value;\n return date ? date.substring(0, date.indexOf('T')) : date;\n};\n\nexport const getFilterExpression = (filterValue, name, metadata) => {\n if (filterValue === '') {\n return null;\n }\n let comparator = 'EQ';\n if (metadata.type === 'TextInput' && !metadata.isNumber) {\n comparator = 'CONTAINS';\n }\n\n if (metadata.config.filterType && metadata.config.filterType === 'RelativeDates') {\n const fieldSource = metadata.config.datasource.filter(source => source.key === filterValue)[0];\n const relativeDateExpression = JSON.parse(fieldSource.json);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const fields = [\n {\n name: relativeDateExpression.condition.lhs.field,\n type: 'DATE_TIME'\n }\n ];\n return '';\n }\n\n return createFilter(filterValue, name, comparator);\n};\n\n/**\n * Returns ConfigurableLayout mapped content. With pre-populated default layout configs.\n * @returns {object[]} ConfigurableLayout content.\n */\nexport function getLayoutDataFromRegion(regionData) {\n const defaultLayoutConfig = {\n width: 'full',\n fillAvailable: true,\n minWidth: [300, 'px']\n };\n\n return regionData.props\n ?.getPConnect()\n ?.getChildren()\n ?.map((item, index) => {\n const itemPConnect = item?.getPConnect();\n\n return {\n id: itemPConnect?.getComponentName() ? `${itemPConnect.getComponentName()}--${index}` : `item--${index}`,\n content: itemPConnect?.getComponent(),\n layoutConfig: {\n ...defaultLayoutConfig,\n ...itemPConnect?.getConfigProps().layoutConfig\n }\n };\n });\n}\n\nexport const getFormattedDate = date => {\n if (!date) {\n return date;\n }\n return `${date.getFullYear()}-${('0' + (date.getMonth() + 1)).slice(-2)}-${('0' + date.getDate()).slice(-2)}`;\n};\n"]}
@@ -1,9 +1,10 @@
1
- import { PConnProps } from '../../../types/PConnProps';
1
+ import type { PConnProps } from '../../../types/PConnProps';
2
2
  interface DeferLoadProps extends PConnProps {
3
3
  name: string;
4
4
  isChildDeferLoad?: boolean;
5
5
  isTab: boolean;
6
6
  deferLoadId: string;
7
+ lastUpdateCaseTime: any;
7
8
  }
8
9
  export default function DeferLoad(props: DeferLoadProps): any;
9
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"DeferLoad.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/DeferLoad/DeferLoad.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,cAAe,SAAQ,UAAU;IAEzC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAqBD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,OAsItD"}
1
+ {"version":3,"file":"DeferLoad.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/DeferLoad/DeferLoad.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,cAAe,SAAQ,UAAU;IAEzC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,GAAG,CAAC;CACzB;AAqBD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,OAqItD"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect, createElement } from 'react';
3
- import { Box, Card, CircularProgress } from '@material-ui/core';
4
- import { makeStyles } from '@material-ui/core/styles';
3
+ import { Box, Card, CircularProgress } from '@mui/material';
4
+ import makeStyles from '@mui/styles/makeStyles';
5
5
  import createPConnectComponent from '../../../bridge/react_pconnect';
6
6
  //
7
7
  // WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
@@ -21,7 +21,7 @@ const useStyles = makeStyles(theme => ({
21
21
  }
22
22
  }));
23
23
  export default function DeferLoad(props) {
24
- const { getPConnect, name, deferLoadId, isTab } = props;
24
+ const { getPConnect, name, deferLoadId, isTab, lastUpdateCaseTime } = props;
25
25
  const [content, setContent] = useState(null);
26
26
  const [isLoading, setLoading] = useState(true);
27
27
  const [currentLoadedAssignment, setCurrentLoadedAssignment] = useState('');
@@ -48,9 +48,9 @@ export default function DeferLoad(props) {
48
48
  const isContainerPreview = /preview_[0-9]*/g.test(pConnect.getContextName());
49
49
  const getViewOptions = () => ({
50
50
  viewContext: resourceType,
51
- pageClass: loadViewCaseID ? '' : pConnect.getDataObject('').pyPortal.classID,
52
- container: isContainerPreview ? 'preview' : null,
53
- containerName: isContainerPreview ? 'preview' : null,
51
+ pageClass: loadViewCaseID ? '' : pConnect.getDataObject('').pyPortal.classID, // 2nd arg empty string until typedef allows optional
52
+ container: isContainerPreview ? 'preview' : undefined,
53
+ containerName: isContainerPreview ? 'preview' : undefined,
54
54
  updateData: isContainerPreview
55
55
  });
56
56
  const onResponse = data => {
@@ -67,7 +67,7 @@ export default function DeferLoad(props) {
67
67
  }
68
68
  };
69
69
  const configObject = PCore.createPConnect(config);
70
- configObject.getPConnect().setInheritedProp('displayMode', 'LABELS_LEFT');
70
+ configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
71
71
  setContent(createElement(createPConnectComponent(), configObject));
72
72
  if (deferLoadId) {
73
73
  PCore.getDeferLoadManager().stop(deferLoadId, getPConnect().getContextName());
@@ -83,7 +83,6 @@ export default function DeferLoad(props) {
83
83
  getPConnect()
84
84
  .getActionsApi()
85
85
  .showData(name, dataContext, dataContextParameters, {
86
- // @ts-ignore - Type 'boolean' is not assignable to type 'string'
87
86
  skipSemanticUrl: true,
88
87
  // @ts-ignore
89
88
  isDeferLoaded: true
@@ -118,7 +117,7 @@ export default function DeferLoad(props) {
118
117
  console.log(`deferload: ${error}`);
119
118
  });
120
119
  }
121
- }, [name, getPConnect, currentLoadedAssignment]);
120
+ }, [name, getPConnect, currentLoadedAssignment, lastUpdateCaseTime]);
122
121
  /* TODO Cosmos need to handle for now added a wrapper div with pos relative */
123
122
  let deferLoadContent;
124
123
  if (isLoading) {
@@ -1 +1 @@
1
- {"version":3,"file":"DeferLoad.js","sourceRoot":"","sources":["../../../../src/components/infra/DeferLoad/DeferLoad.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,uBAAuB,MAAM,gCAAgC,C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ACrC,CAAC,CAAC,CAAC;SACN;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,uBAAuB,CAAC,CAAC,CAAC;IACjD,8EAA8E;IAC9E,IAAI,gBAAgB,CAAC;IACrB,IAAI,SAAS,EAAE;QACb,gBAAgB,GAAG,CACjB,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,YACnD,KAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACrB,KAAC,gBAAgB,KAAG,GAChB,GACF,CACP,CAAC;KACH;SAAM;QACL,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAC1B,cAAK,SAAS,EAAE,OAAO,CAAC,IAAI,YAAG,OAAO,GAAO,CAC9C,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,EAAE,EAAC,WAAW,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,YAC1C,4BAAG,OAAO,GAAI,GACT,CACR,CAAC;KACH;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC","sourcesContent":["import { useState, useEffect, createElement } from 'react';\nimport { Box, Card, CircularProgress } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\n\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface DeferLoadProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name: string;\n isChildDeferLoad?: boolean;\n isTab: boolean;\n deferLoadId: string;\n}\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n }\n}));\n\nexport default function DeferLoad(props: DeferLoadProps) {\n const { getPConnect, name, deferLoadId, isTab } = props;\n const [content, setContent] = useState<any>(null);\n const [isLoading, setLoading] = useState(true);\n const [currentLoadedAssignment, setCurrentLoadedAssignment] = useState('');\n\n const classes = useStyles();\n\n const pConnect = getPConnect();\n const constants = PCore.getConstants();\n\n const theRequestedAssignment = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL, ''); // 2nd arg empty string until typedef allows optional\n if (theRequestedAssignment !== currentLoadedAssignment) {\n // console.log(`DeferLoad: currentLoadedAssignment about to change from ${currentLoadedAssignment} to ${theRequestedAssignment}`);\n setCurrentLoadedAssignment(theRequestedAssignment);\n }\n\n const { CASE, PAGE, DATA } = constants.RESOURCE_TYPES;\n const loadViewCaseID = pConnect.getValue(constants.PZINSKEY, '') || pConnect.getValue(constants.CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef allows optional\n let containerName;\n let containerItemData;\n const targetName = pConnect.getTarget();\n if (targetName) {\n containerName = PCore.getContainerUtils().getActiveContainerItemName(targetName);\n\n containerItemData = PCore.getContainerUtils().getContainerItemData(targetName, containerName);\n }\n\n const { resourceType = CASE } = containerItemData || {\n resourceType: loadViewCaseID ? CASE : PAGE\n };\n const isContainerPreview = /preview_[0-9]*/g.test(pConnect.getContextName());\n\n const getViewOptions = () => ({\n viewContext: resourceType,\n pageClass: loadViewCaseID ? '' : (pConnect.getDataObject('') as any).pyPortal.classID, // 2nd arg empty string until typedef allows optional\n container: isContainerPreview ? 'preview' : null,\n containerName: isContainerPreview ? 'preview' : null,\n updateData: isContainerPreview\n });\n\n const onResponse = data => {\n setLoading(false);\n if (deferLoadId) {\n PCore.getDeferLoadManager().start(\n name,\n getPConnect().getCaseInfo().getKey(),\n getPConnect().getPageReference().replace('caseInfo.content', ''),\n getPConnect().getContextName(),\n deferLoadId\n );\n }\n\n if (data && !(data.type && data.type === 'error')) {\n const config = {\n meta: data,\n options: {\n context: pConnect.getContextName(),\n pageReference: pConnect.getPageReference()\n }\n };\n const configObject = PCore.createPConnect(config);\n configObject.getPConnect().setInheritedProp('displayMode', 'LABELS_LEFT');\n setContent(createElement(createPConnectComponent(), configObject));\n if (deferLoadId) {\n PCore.getDeferLoadManager().stop(deferLoadId, getPConnect().getContextName());\n }\n }\n };\n\n useEffect(() => {\n if (resourceType === DATA) {\n // Rendering defer loaded tabs in data context\n if (containerName) {\n const dataContext = PCore.getStoreValue('.dataContext', 'dataInfo', containerName);\n const dataContextParameters = PCore.getStoreValue('.dataContextParameters', 'dataInfo', containerName);\n\n getPConnect()\n .getActionsApi()\n .showData(name, dataContext, dataContextParameters, {\n // @ts-ignore - Type 'boolean' is not assignable to type 'string'\n skipSemanticUrl: true,\n // @ts-ignore\n isDeferLoaded: true\n })\n .then(data => {\n onResponse(data);\n });\n } else {\n // eslint-disable-next-line no-console\n console.error('Cannot load the defer loaded view without container information');\n }\n } else if (resourceType === PAGE) {\n // Rendering defer loaded tabs in case/ page context\n getPConnect()\n .getActionsApi()\n .loadView(encodeURI(loadViewCaseID), name, getViewOptions())\n .then(data => {\n onResponse(data);\n });\n } else {\n getPConnect()\n .getActionsApi()\n .refreshCaseView(encodeURI(loadViewCaseID), name, '') // 3rd arg empty string until typedef allows optional\n .then((data: any) => {\n onResponse(data.root);\n })\n .catch(error => {\n // eslint-disable-next-line no-console\n console.log(`deferload: ${error}`);\n });\n }\n }, [name, getPConnect, currentLoadedAssignment]);\n /* TODO Cosmos need to handle for now added a wrapper div with pos relative */\n let deferLoadContent;\n if (isLoading) {\n deferLoadContent = (\n <div style={{ position: 'relative', height: '100px' }}>\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n </div>\n );\n } else {\n deferLoadContent = !isTab ? (\n <div className={classes.root}>{content}</div>\n ) : (\n <Card id='DeferLoad' className={classes.root}>\n <>{content}</>\n </Card>\n );\n }\n\n return deferLoadContent;\n}\n"]}
1
+ {"version":3,"file":"DeferLoad.js","sour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U,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC,CAAC,CAAC;QACP,CAAC;aAAM,CAAC;YACN,WAAW,EAAE;iBACV,aAAa,EAAE;iBACf,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,qDAAqD;iBAC1G,IAAI,CAAC,CAAC,IAAS,EAAE,EAAE;gBAClB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC,CAAC;iBACD,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,sCAAsC;gBACtC,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,EAAE,CAAC,CAAC;YACrC,CAAC,CAAC,CAAC;QACP,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,CAAC,CAAC,CAAC;IACrE,8EAA8E;IAC9E,IAAI,gBAAgB,CAAC;IACrB,IAAI,SAAS,EAAE,CAAC;QACd,gBAAgB,GAAG,CACjB,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,YACnD,KAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACrB,KAAC,gBAAgB,KAAG,GAChB,GACF,CACP,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAC1B,cAAK,SAAS,EAAE,OAAO,CAAC,IAAI,YAAG,OAAO,GAAO,CAC9C,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,EAAE,EAAC,WAAW,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,YAC1C,4BAAG,OAAO,GAAI,GACT,CACR,CAAC;IACJ,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC","sourcesContent":["import { useState, useEffect, createElement } from 'react';\nimport { Box, Card, CircularProgress } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\ninterface DeferLoadProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n name: string;\n isChildDeferLoad?: boolean;\n isTab: boolean;\n deferLoadId: string;\n lastUpdateCaseTime: any;\n}\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n }\n}));\n\nexport default function DeferLoad(props: DeferLoadProps) {\n const { getPConnect, name, deferLoadId, isTab, lastUpdateCaseTime } = props;\n const [content, setContent] = useState<any>(null);\n const [isLoading, setLoading] = useState(true);\n const [currentLoadedAssignment, setCurrentLoadedAssignment] = useState('');\n\n const classes = useStyles();\n\n const pConnect = getPConnect();\n const constants = PCore.getConstants();\n\n const theRequestedAssignment = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL, ''); // 2nd arg empty string until typedef allows optional\n if (theRequestedAssignment !== currentLoadedAssignment) {\n // console.log(`DeferLoad: currentLoadedAssignment about to change from ${currentLoadedAssignment} to ${theRequestedAssignment}`);\n setCurrentLoadedAssignment(theRequestedAssignment);\n }\n\n const { CASE, PAGE, DATA } = constants.RESOURCE_TYPES;\n const loadViewCaseID = pConnect.getValue(constants.PZINSKEY, '') || pConnect.getValue(constants.CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef allows optional\n let containerName;\n let containerItemData;\n const targetName = pConnect.getTarget();\n if (targetName) {\n containerName = PCore.getContainerUtils().getActiveContainerItemName(targetName);\n\n containerItemData = PCore.getContainerUtils().getContainerItemData(targetName, containerName);\n }\n\n const { resourceType = CASE } = containerItemData || {\n resourceType: loadViewCaseID ? CASE : PAGE\n };\n const isContainerPreview = /preview_[0-9]*/g.test(pConnect.getContextName());\n\n const getViewOptions = () => ({\n viewContext: resourceType,\n pageClass: loadViewCaseID ? '' : (pConnect.getDataObject('') as any).pyPortal.classID, // 2nd arg empty string until typedef allows optional\n container: isContainerPreview ? 'preview' : undefined,\n containerName: isContainerPreview ? 'preview' : undefined,\n updateData: isContainerPreview\n });\n\n const onResponse = data => {\n setLoading(false);\n if (deferLoadId) {\n PCore.getDeferLoadManager().start(\n name,\n getPConnect().getCaseInfo().getKey(),\n getPConnect().getPageReference().replace('caseInfo.content', ''),\n getPConnect().getContextName(),\n deferLoadId\n );\n }\n\n if (data && !(data.type && data.type === 'error')) {\n const config = {\n meta: data,\n options: {\n context: pConnect.getContextName(),\n pageReference: pConnect.getPageReference()\n }\n };\n const configObject = PCore.createPConnect(config);\n configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');\n setContent(createElement(createPConnectComponent(), configObject));\n if (deferLoadId) {\n PCore.getDeferLoadManager().stop(deferLoadId, getPConnect().getContextName());\n }\n }\n };\n\n useEffect(() => {\n if (resourceType === DATA) {\n // Rendering defer loaded tabs in data context\n if (containerName) {\n const dataContext = PCore.getStoreValue('.dataContext', 'dataInfo', containerName);\n const dataContextParameters = PCore.getStoreValue('.dataContextParameters', 'dataInfo', containerName);\n\n getPConnect()\n .getActionsApi()\n .showData(name, dataContext, dataContextParameters, {\n skipSemanticUrl: true,\n // @ts-ignore\n isDeferLoaded: true\n })\n .then(data => {\n onResponse(data);\n });\n } else {\n // eslint-disable-next-line no-console\n console.error('Cannot load the defer loaded view without container information');\n }\n } else if (resourceType === PAGE) {\n // Rendering defer loaded tabs in case/ page context\n getPConnect()\n .getActionsApi()\n .loadView(encodeURI(loadViewCaseID), name, getViewOptions())\n .then(data => {\n onResponse(data);\n });\n } else {\n getPConnect()\n .getActionsApi()\n .refreshCaseView(encodeURI(loadViewCaseID), name, '') // 3rd arg empty string until typedef allows optional\n .then((data: any) => {\n onResponse(data.root);\n })\n .catch(error => {\n // eslint-disable-next-line no-console\n console.log(`deferload: ${error}`);\n });\n }\n }, [name, getPConnect, currentLoadedAssignment, lastUpdateCaseTime]);\n /* TODO Cosmos need to handle for now added a wrapper div with pos relative */\n let deferLoadContent;\n if (isLoading) {\n deferLoadContent = (\n <div style={{ position: 'relative', height: '100px' }}>\n <Box textAlign='center'>\n <CircularProgress />\n </Box>\n </div>\n );\n } else {\n deferLoadContent = !isTab ? (\n <div className={classes.root}>{content}</div>\n ) : (\n <Card id='DeferLoad' className={classes.root}>\n <>{content}</>\n </Card>\n );\n }\n\n return deferLoadContent;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { PConnProps } from '../../../types/PConnProps';
1
+ import type { PConnProps } from '../../../types/PConnProps';
2
2
  interface ErrorBoundaryProps extends PConnProps {
3
3
  isInternalError?: boolean;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,kBAAmB,SAAQ,UAAU;IAE7C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,kDAsC9D"}
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,kBAAmB,SAAQ,UAAU;IAE7C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,kDAsC9D"}
@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ACnH,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3C,gFAAgF;QAChF,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["import { PConnProps } from '../../../types/PConnProps';\n\ninterface ErrorBoundaryProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n isInternalError?: boolean;\n}\n\nexport default function ErrorBoundary(props: ErrorBoundaryProps) {\n const errorMsg = PCore.getErrorHandler().getGenericFailedMessage();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Messages';\n const ERROR_TEXT = localizedVal(errorMsg, localeCategory);\n const WORK_AREA = 'workarea';\n const ERROR_WHILE_RENDERING = 'ERROR_WHILE_RENDERING';\n const { getPConnect, isInternalError = false } = props;\n\n const theErrorDiv = <div>{ERROR_TEXT}</div>;\n\n if (!getPConnect) {\n return theErrorDiv;\n }\n\n const pConn = getPConnect();\n\n if (!isInternalError) {\n // eslint-disable-next-line no-console\n console.error(`\n ${localizedVal('Unable to load the component', localeCategory)} ${pConn.getComponentName()}\n ${localizedVal('This might be due to the view metadata getting corrupted or the component file missing.', localeCategory)}\n Raw metadata for the component: ${JSON.stringify(pConn.getRawMetadata())}\n`);\n }\n\n if ((pConn.getConfigProps() as any).type === 'page') {\n return theErrorDiv;\n }\n\n if (pConn.getContainerName() === WORK_AREA || pConn.isInsideList() === true || pConn.getContainerName() === 'modal') {\n const { publish } = PCore.getPubSubUtils();\n // @ts-ignore - second parameter “payload” for publish method should be optional\n publish(ERROR_WHILE_RENDERING);\n return null;\n }\n\n return theErrorDiv;\n}\n"]}
1
+ {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../../../src/components/infra/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,MAAM,QAAQ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,CAAC;IACd,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["import type { PConnProps } from '../../../types/PConnProps';\n\ninterface ErrorBoundaryProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n isInternalError?: boolean;\n}\n\nexport default function ErrorBoundary(props: ErrorBoundaryProps) {\n const errorMsg = PCore.getErrorHandler().getGenericFailedMessage();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Messages';\n const ERROR_TEXT = localizedVal(errorMsg, localeCategory);\n const WORK_AREA = 'workarea';\n const ERROR_WHILE_RENDERING = 'ERROR_WHILE_RENDERING';\n const { getPConnect, isInternalError = false } = props;\n\n const theErrorDiv = <div>{ERROR_TEXT}</div>;\n\n if (!getPConnect) {\n return theErrorDiv;\n }\n\n const pConn = getPConnect();\n\n if (!isInternalError) {\n // eslint-disable-next-line no-console\n console.error(`\n ${localizedVal('Unable to load the component', localeCategory)} ${pConn.getComponentName()}\n ${localizedVal('This might be due to the view metadata getting corrupted or the component file missing.', localeCategory)}\n Raw metadata for the component: ${JSON.stringify(pConn.getRawMetadata())}\n`);\n }\n\n if ((pConn.getConfigProps() as any).type === 'page') {\n return theErrorDiv;\n }\n\n if (pConn.getContainerName() === WORK_AREA || pConn.isInsideList() === true || pConn.getContainerName() === 'modal') {\n const { publish } = PCore.getPubSubUtils();\n // @ts-ignore - second parameter “payload” for publish method should be optional\n publish(ERROR_WHILE_RENDERING);\n return null;\n }\n\n return theErrorDiv;\n}\n"]}
@@ -1,12 +1,12 @@
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
  import './MultiStep.css';
4
4
  interface MultiStepProps extends PConnProps {
5
5
  itemKey: string;
6
6
  actionButtons: any[];
7
7
  onButtonPress: any;
8
8
  bIsVertical: boolean;
9
- arNavigationSteps: any[];
9
+ arNavigationSteps: any;
10
10
  }
11
11
  export default function MultiStep(props: PropsWithChildren<MultiStepProps>): import("react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"MultiStep.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/MultiStep/MultiStep.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,iBAAiB,CAAC;AAEzB,UAAU,cAAe,SAAQ,UAAU;IAEzC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,GAAG,EAAE,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,GAAG,EAAE,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CA8KzE"}
1
+ {"version":3,"file":"MultiStep.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/MultiStep/MultiStep.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,iBAAiB,CAAC;AAEzB,UAAU,cAAe,SAAQ,UAAU;IAEzC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,GAAG,EAAE,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,GAAG,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC,cAAc,CAAC,2CA+KzE"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
2
+ import React, {} from 'react';
3
3
  import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
4
4
  import './MultiStep.css';
5
5
  export default function MultiStep(props) {
@@ -7,6 +7,11 @@ export default function MultiStep(props) {
7
7
  const AssignmentCard = getComponentFromMap('AssignmentCard');
8
8
  const { getPConnect, children, itemKey = '', actionButtons, onButtonPress } = props;
9
9
  const { bIsVertical, arNavigationSteps } = props;
10
+ let currentStep = arNavigationSteps.find(({ visited_status: vs }) => vs === 'current');
11
+ if (!currentStep) {
12
+ const lastActiveStepIndex = arNavigationSteps.findLastIndex(({ visited_status: vs }) => vs === 'success');
13
+ currentStep = arNavigationSteps[lastActiveStepIndex >= 0 ? lastActiveStepIndex : 0];
14
+ }
10
15
  // const svgCurrent = Utils.getImageSrc("circle-solid", Utils.getSDKStaticConentUrl());
11
16
  // const svgNotCurrent = Utils.getImageSrc("circle-solid", Utils.getSDKStaticConentUrl());
12
17
  function _getVIconClass(status) {
@@ -27,24 +32,20 @@ export default function MultiStep(props) {
27
32
  }
28
33
  return 'psdk-vertical-step-body';
29
34
  }
30
- function _getHIconClass(status) {
31
- if (status === 'current') {
35
+ function _getHIconClass(step) {
36
+ if (step.ID === currentStep?.ID) {
32
37
  return 'psdk-horizontal-step-icon-selected';
33
38
  }
34
39
  return 'psdk-horizontal-step-icon';
35
40
  }
36
- function _getHLabelClass(status) {
37
- if (status === 'current') {
41
+ function _getHLabelClass(step) {
42
+ if (step.ID === currentStep?.ID) {
38
43
  return 'psdk-horizontal-step-label-selected';
39
44
  }
40
45
  return 'psdk-horizontal-step-label';
41
46
  }
42
47
  function _showHLine(index) {
43
- // eslint-disable-next-line sonarjs/prefer-single-boolean-return
44
- if (index < arNavigationSteps.length - 1) {
45
- return true;
46
- }
47
- return false;
48
+ return index < arNavigationSteps.length - 1;
48
49
  }
49
50
  function buttonPress(sAction, sButtonType) {
50
51
  onButtonPress(sAction, sButtonType);
@@ -57,9 +58,9 @@ export default function MultiStep(props) {
57
58
  _jsxs("li", { className: 'psdk-sub-step-list', children: [_jsxs("div", { style: { display: 'inline-flex' }, children: [subStep.visited_status === 'current' && _jsx("img", { className: 'psdk-current-svg-icon', src: '{svgCurrent}' }), subStep.visited_status !== 'current' && _jsx("img", { className: 'psdk-not-current-svg-icon', src: '{svgNotCurrent}' }), subStep.visited_status === 'current' && _jsx("label", { className: 'psdk-sub-step-current', children: subStep.name }), subStep.visited_status !== 'current' && _jsx("label", { className: 'psdk-sub-step-not-current', children: subStep.name })] }), subStep.visited_status === 'current' && (_jsx("div", { children: _jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }) }))] });
58
59
  }) })), !mainStep?.steps && mainStep.visited_status === 'current' && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] })] }) }, mainStep.actionID));
59
60
  }) })) : (_jsxs("div", { className: 'psdk-horizontal-stepper', children: [_jsx("div", { className: 'psdk-horizontal-stepper-header-container', children: arNavigationSteps.map((mainStep, index) => {
60
- return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'psdk-horizontal-step-header', children: [_jsx("div", { className: _getHIconClass(mainStep.visited_status), children: _jsx("div", { className: 'psdk-horizontal-step-icon-content', children: _jsx("span", { children: index + 1 }) }) }), _jsx("div", { className: _getHLabelClass(mainStep.visited_status), children: _jsx("div", { className: 'psdk-horizontal-step-text-label', id: 'selected-label', children: mainStep.name }) })] }), _showHLine(index) && _jsx("div", { className: 'psdk-horizontal-step-line' })] }, mainStep.actionID));
61
+ return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'psdk-horizontal-step-header', children: [_jsx("div", { className: _getHIconClass(mainStep), children: _jsx("div", { className: 'psdk-horizontal-step-icon-content', children: _jsx("span", { children: index + 1 }) }) }), _jsx("div", { className: _getHLabelClass(mainStep), children: _jsx("div", { className: 'psdk-horizontal-step-text-label', id: 'selected-label', children: mainStep.name }) })] }), _showHLine(index) && _jsx("div", { className: 'psdk-horizontal-step-line' })] }, mainStep.actionID));
61
62
  }) }), arNavigationSteps.map(mainStep => {
62
- return (_jsxs(React.Fragment, { children: [mainStep.steps && (_jsx("ul", { style: { paddingInlineStart: '0rem', marginLeft: '35px' }, children: mainStep.steps.map(subStep => (_jsxs("li", { className: 'psdk-sub-step-list', children: [_jsxs("div", { style: { display: 'inline-flex' }, children: [subStep.visited_status === 'current' && _jsx("img", { className: 'psdk-current-svg-icon', src: '{svgCurrent}' }), subStep.visited_status !== 'current' && _jsx("img", { className: 'psdk-not-current-svg-icon', src: '{svgNotCurrent}' }), subStep.visited_status === 'current' && _jsx("label", { className: 'psdk-sub-step-current', children: subStep.name }), subStep.visited_status !== 'current' && _jsx("label", { className: 'psdk-sub-step-not-current', children: subStep.name })] }), subStep.visited_status === 'current' && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] }))) })), !mainStep?.steps && mainStep.visited_status === 'current' && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] }, mainStep.actionID));
63
+ return (_jsxs(React.Fragment, { children: [mainStep.steps && (_jsx("ul", { style: { paddingInlineStart: '0rem', marginLeft: '35px' }, children: mainStep.steps.map(subStep => (_jsxs("li", { className: 'psdk-sub-step-list', children: [_jsxs("div", { style: { display: 'inline-flex' }, children: [subStep.visited_status === 'current' && _jsx("img", { className: 'psdk-current-svg-icon', src: '{svgCurrent}' }), subStep.visited_status !== 'current' && _jsx("img", { className: 'psdk-not-current-svg-icon', src: '{svgNotCurrent}' }), subStep.visited_status === 'current' && _jsx("label", { className: 'psdk-sub-step-current', children: subStep.name }), subStep.visited_status !== 'current' && _jsx("label", { className: 'psdk-sub-step-not-current', children: subStep.name })] }), subStep.visited_status === 'current' && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] }))) })), !mainStep?.steps && mainStep.ID === currentStep?.ID && (_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }))] }, mainStep.actionID));
63
64
  })] })) }));
64
65
  }
65
66
  //# sourceMappingURL=MultiStep.js.map