@pega/react-sdk-components 0.25.1 → 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 (410) 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 +0 -1
  7. package/lib/bridge/react_pconnect.js.map +1 -1
  8. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  9. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  10. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  11. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +48 -30
  12. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  13. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  14. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  15. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  16. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  17. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  18. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  19. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
  20. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  21. package/lib/components/designSystemExtension/Operator/Operator.js +9 -5
  22. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  23. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  24. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  25. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  26. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +1 -1
  27. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  28. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
  29. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  30. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  31. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
  32. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  33. package/lib/components/field/CancelAlert/CancelAlert.js +1 -1
  34. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  35. package/lib/components/field/Checkbox/Checkbox.d.ts +1 -1
  36. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  37. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  38. package/lib/components/field/Currency/Currency.d.ts +1 -1
  39. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  40. package/lib/components/field/Currency/Currency.js +2 -2
  41. package/lib/components/field/Currency/Currency.js.map +1 -1
  42. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  43. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  44. package/lib/components/field/Date/Date.d.ts +1 -1
  45. package/lib/components/field/Date/Date.d.ts.map +1 -1
  46. package/lib/components/field/Date/Date.js +3 -6
  47. package/lib/components/field/Date/Date.js.map +1 -1
  48. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  49. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  50. package/lib/components/field/DateTime/DateTime.js +4 -7
  51. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  52. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  53. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  54. package/lib/components/field/Decimal/Decimal.js +2 -4
  55. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  56. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
  57. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  58. package/lib/components/field/Dropdown/Dropdown.js +4 -3
  59. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  60. package/lib/components/field/Email/Email.d.ts +1 -1
  61. package/lib/components/field/Email/Email.d.ts.map +1 -1
  62. package/lib/components/field/Email/Email.js +6 -7
  63. package/lib/components/field/Email/Email.js.map +1 -1
  64. package/lib/components/field/Group/Group.d.ts +2 -2
  65. package/lib/components/field/Group/Group.d.ts.map +1 -1
  66. package/lib/components/field/Group/Group.js.map +1 -1
  67. package/lib/components/field/Integer/Integer.d.ts +1 -1
  68. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  69. package/lib/components/field/Integer/Integer.js +4 -5
  70. package/lib/components/field/Integer/Integer.js.map +1 -1
  71. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  72. package/lib/components/field/Multiselect/utils.d.ts +2 -1
  73. package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
  74. package/lib/components/field/Multiselect/utils.js.map +1 -1
  75. package/lib/components/field/Percentage/Percentage.d.ts +1 -1
  76. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  77. package/lib/components/field/Percentage/Percentage.js +2 -5
  78. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  79. package/lib/components/field/Phone/Phone.d.ts +1 -1
  80. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  81. package/lib/components/field/Phone/Phone.js +6 -4
  82. package/lib/components/field/Phone/Phone.js.map +1 -1
  83. package/lib/components/field/RadioButtons/RadioButtons.d.ts +1 -1
  84. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  85. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  86. package/lib/components/field/RichText/RichText.d.ts +1 -1
  87. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  88. package/lib/components/field/RichText/RichText.js.map +1 -1
  89. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  90. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  91. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  92. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  93. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  94. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  95. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  96. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  97. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  98. package/lib/components/field/TextArea/TextArea.js +4 -5
  99. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  100. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  101. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  102. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  103. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  104. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  105. package/lib/components/field/TextInput/TextInput.js +4 -5
  106. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  107. package/lib/components/field/Time/Time.d.ts +1 -1
  108. package/lib/components/field/Time/Time.d.ts.map +1 -1
  109. package/lib/components/field/Time/Time.js +2 -5
  110. package/lib/components/field/Time/Time.js.map +1 -1
  111. package/lib/components/field/URL/URL.d.ts +1 -1
  112. package/lib/components/field/URL/URL.d.ts.map +1 -1
  113. package/lib/components/field/URL/URL.js +4 -5
  114. package/lib/components/field/URL/URL.js.map +1 -1
  115. package/lib/components/field/UserReference/UserReference.d.ts +1 -2
  116. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  117. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  118. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
  119. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  120. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  121. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  122. package/lib/components/helpers/case-utils.js.map +1 -1
  123. package/lib/components/helpers/common-utils.js.map +1 -1
  124. package/lib/components/helpers/data_page.d.ts.map +1 -1
  125. package/lib/components/helpers/data_page.js.map +1 -1
  126. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  127. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  128. package/lib/components/helpers/event-utils.js.map +1 -1
  129. package/lib/components/helpers/field-group-utils.d.ts +1 -1
  130. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  131. package/lib/components/helpers/field-group-utils.js.map +1 -1
  132. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  133. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  134. package/lib/components/helpers/formatters/Date.js.map +1 -1
  135. package/lib/components/helpers/formatters/index.js.map +1 -1
  136. package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
  137. package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
  138. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  139. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  140. package/lib/components/helpers/simpleTableHelpers.js +1 -1
  141. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  142. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  143. package/lib/components/helpers/state-utils.js.map +1 -1
  144. package/lib/components/helpers/template-utils.js.map +1 -1
  145. package/lib/components/helpers/utils.js.map +1 -1
  146. package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
  147. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  148. package/lib/components/infra/Assignment/Assignment.js +1 -1
  149. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  150. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
  151. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  152. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  153. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
  154. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  155. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  156. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  157. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  158. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
  159. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  160. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  161. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -1
  162. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  163. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  164. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
  165. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  166. package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
  167. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
  168. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  169. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  170. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  171. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  172. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -1
  173. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
  174. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  175. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  176. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  177. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  178. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +1 -1
  179. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  180. package/lib/components/infra/DeferLoad/DeferLoad.js +1 -1
  181. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  182. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  183. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  184. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  185. package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
  186. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  187. package/lib/components/infra/MultiStep/MultiStep.js +1 -1
  188. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  189. package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
  190. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  191. package/lib/components/infra/NavBar/NavBar.js +2 -2
  192. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  193. package/lib/components/infra/Reference/Reference.d.ts +1 -1
  194. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  195. package/lib/components/infra/Reference/Reference.js.map +1 -1
  196. package/lib/components/infra/Region/Region.d.ts +1 -1
  197. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  198. package/lib/components/infra/Region/Region.js.map +1 -1
  199. package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
  200. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  201. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  202. package/lib/components/infra/Stages/Stages.d.ts +1 -1
  203. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  204. package/lib/components/infra/Stages/Stages.js.map +1 -1
  205. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +1 -1
  206. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  207. package/lib/components/infra/View/View.d.ts +2 -2
  208. package/lib/components/infra/View/View.d.ts.map +1 -1
  209. package/lib/components/infra/View/View.js.map +1 -1
  210. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -1
  211. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -1
  212. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -1
  213. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -1
  214. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -1
  215. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -1
  216. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -1
  217. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +0 -1
  218. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -1
  219. package/lib/components/template/AppShell/AppShell.d.ts +2 -2
  220. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  221. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  222. package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
  223. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  224. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  225. package/lib/components/template/CaseSummary/CaseSummary.d.ts +2 -2
  226. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  227. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  228. package/lib/components/template/CaseView/CaseView.d.ts +2 -2
  229. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  230. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  231. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
  232. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  233. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
  234. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  235. package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
  236. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  237. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  238. package/lib/components/template/DataReference/DataReference.d.ts +2 -2
  239. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  240. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  241. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -1
  242. package/lib/components/template/DataReference/SearchForm.js.map +1 -1
  243. package/lib/components/template/DataReference/utils.js.map +1 -1
  244. package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
  245. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  246. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  247. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  248. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  249. package/lib/components/template/Details/Details/Details.d.ts +1 -1
  250. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  251. package/lib/components/template/Details/Details/Details.js.map +1 -1
  252. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
  253. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  254. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  255. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
  256. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  257. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  258. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
  259. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  260. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  261. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
  262. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  263. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  264. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -1
  265. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  266. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  267. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
  268. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  269. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  270. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
  271. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  272. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  273. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  274. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  275. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  276. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  277. package/lib/components/template/ListView/ListView.d.ts +1 -1
  278. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  279. package/lib/components/template/ListView/ListView.js +1 -1
  280. package/lib/components/template/ListView/ListView.js.map +1 -1
  281. package/lib/components/template/ListView/hooks.js.map +1 -1
  282. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  283. package/lib/components/template/ListView/utils.js.map +1 -1
  284. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  285. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  286. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  287. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
  288. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  289. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  290. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
  291. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  292. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +1 -1
  293. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  294. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
  295. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  296. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  297. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
  298. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  299. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  300. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
  301. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  302. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  303. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
  304. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  305. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  306. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
  307. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  308. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  309. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
  310. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  311. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  312. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
  313. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  314. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  315. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +2 -2
  316. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  317. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +1 -1
  318. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  319. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
  320. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  321. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  322. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  323. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  324. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  325. package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
  326. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  327. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  328. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  329. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  330. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
  331. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  332. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -2
  333. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  334. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
  335. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  336. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  337. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
  338. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  339. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -2
  340. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  341. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
  342. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  343. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  344. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
  345. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  346. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +1 -1
  347. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  348. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
  349. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  350. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  351. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
  352. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  353. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  354. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
  355. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  356. package/lib/components/template/WssNavBar/WssNavBar.js +1 -1
  357. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  358. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
  359. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  360. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  361. package/lib/components/widget/Attachment/Attachment.d.ts +1 -1
  362. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  363. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  364. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  365. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  366. package/lib/components/widget/CaseHistory/CaseHistory.js +2 -2
  367. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  368. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
  369. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  370. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  371. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  372. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  373. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +6 -6
  374. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  375. package/lib/components/widget/Followers/Followers.d.ts +2 -2
  376. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  377. package/lib/components/widget/Followers/Followers.js.map +1 -1
  378. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
  379. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  380. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  381. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
  382. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  383. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  384. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
  385. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  386. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  387. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  388. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  389. package/lib/components/widget/ToDo/ToDo.js +3 -3
  390. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  391. package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
  392. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
  393. package/lib/hooks/useAfterInitialEffect.js.map +1 -1
  394. package/lib/hooks/useConsolidatedRef.d.ts +1 -1
  395. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  396. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  397. package/lib/hooks/useFocusFirstField.d.ts.map +1 -1
  398. package/lib/hooks/useFocusFirstField.js.map +1 -1
  399. package/lib/hooks/useGetTabsCount.d.ts +0 -1
  400. package/lib/hooks/useGetTabsCount.d.ts.map +1 -1
  401. package/lib/hooks/useGetTabsCount.js.map +1 -1
  402. package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
  403. package/lib/sdk-pega-component-map.d.ts +106 -106
  404. package/lib/sdk-pega-component-map.d.ts.map +1 -1
  405. package/lib/sdk-pega-component-map.js +2 -2
  406. package/lib/sdk-pega-component-map.js.map +1 -1
  407. package/lib/theme.d.ts +1 -1
  408. package/lib/theme.d.ts.map +1 -1
  409. package/lib/theme.js.map +1 -1
  410. package/package.json +15 -14
@@ -1 +1 @@
1
- {"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,MAAM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,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,GACvE,CACV,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAC,OAAO,EAAE,SAAS,YAAG,sBAAsB,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,GAAU,CACrH,GACG,CACP,EAED,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\nimport React, { useCallback, useEffect, useState } from 'react';\nimport {\n Box,\n Button,\n Card,\n CardContent,\n CardHeader,\n Avatar,\n Typography,\n Badge,\n List,\n ListItem,\n ListItemText,\n ListItemSecondaryAction\n} from '@mui/material';\nimport Snackbar from '@mui/material/Snackbar';\nimport IconButton from '@mui/material/IconButton';\nimport CloseIcon from '@mui/icons-material/Close';\nimport ArrowForwardIosOutlinedIcon from '@mui/icons-material/ArrowForwardIosOutlined';\nimport { useTheme } from '@mui/material/styles';\nimport makeStyles from '@mui/styles/makeStyles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\n\nimport { Utils } from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './ToDo.css';\n\nconst fetchMyWorkList = (datapage, fields, numberOfRecords, includeTotalCount, context) => {\n return PCore.getDataPageUtils()\n .getDataAsync(\n datapage,\n context,\n {},\n {\n pageNumber: 1,\n pageSize: numberOfRecords\n },\n {\n select: Object.keys(fields).map(key => ({ field: PCore.getAnnotationUtils().getPropertyName(fields[key]) }))\n },\n {\n invalidateCache: true,\n additionalApiParams: {\n includeTotalCount\n }\n }\n )\n .then(response => {\n return {\n ...response,\n data: (Array.isArray(response?.data) ? response.data : []).map(row =>\n Object.keys(fields).reduce((obj, key) => {\n obj[key] = row[PCore.getAnnotationUtils().getPropertyName(fields[key])];\n return obj;\n }, {})\n )\n };\n });\n};\n\ninterface ToDoProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n datasource?: any;\n myWorkList?: any;\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID?: string;\n headerText?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey?: string;\n showTodoList?: boolean;\n type?: string;\n\n context?: string;\n isConfirm?: boolean;\n}\n\nconst isChildCase = assignment => {\n return assignment.isChild;\n};\n\nfunction topThreeAssignments(assignmentsSource: any[]): any[] {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n }\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n },\n todoWrapper: {\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light,\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function ToDo(props: ToDoProps) {\n const {\n getPConnect,\n context,\n datasource = [],\n headerText = 'To do',\n showTodoList = true,\n myWorkList = {},\n type = 'worklist',\n isConfirm = false\n } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName() ?? '';\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<any[]>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Todo';\n const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');\n const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');\n const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;\n const [count, setCount] = useState(0);\n\n const {\n WORK_BASKET: { MY_WORK_LIST }\n } = PCore.getConstants();\n\n function initAssignments(): any[] {\n if (assignmentsSource) {\n return topThreeAssignments(assignmentsSource);\n }\n // turn off todolist\n return [];\n }\n\n const deferLoadWorklistItems = useCallback(\n responseData => {\n setCount(responseData.totalCount);\n setAssignments(responseData.data);\n },\n [MY_WORK_LIST]\n );\n\n useEffect(() => {\n if (Object.keys(myWorkList).length && myWorkList.datapage) {\n fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, 3, true, context).then(responseData => {\n deferLoadWorklistItems(responseData);\n });\n }\n }, []);\n\n const getAssignmentId = assignment => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = assignment => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = assignment => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n if (type === CONSTS.WORKLIST && count && count > assignments.length && !assignmentsSource) {\n fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, count, false, context).then(response => {\n setAssignments(response.data);\n });\n } else {\n setAssignments(assignmentsSource);\n }\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(assignments => assignments.slice(0, 3));\n }\n\n function clickGo(assignment) {\n const id = getAssignmentId(assignment);\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options: any = {\n containerName: sTargetContainerName,\n channelName: ''\n };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options.isActionFromToDoList = true;\n options.target = '';\n options.context = null;\n options.isChild = isChildCase(assignment);\n } else {\n options.isActionFromToDoList = false;\n options.target = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const renderTaskId = (type, getPConnect, showTodoList, assignment) => {\n const displayID = getID(assignment);\n\n if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {\n /* Supress link for todo inside flow step */\n return <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>;\n }\n return displayID;\n };\n\n const getListItemComponent = assignment => {\n if (isDesktop) {\n return (\n <>\n {localizedVal('Task in', localeCategory)}\n {renderTaskId(type, getPConnect, showTodoList, assignment)}\n {type === CONSTS.WORKLIST && assignment.status ? `\\u2022 ` : undefined}\n {type === CONSTS.WORKLIST && assignment.status ? <span className='psdk-todo-assignment-status'>{assignment.status}</span> : undefined}\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n };\n\n // eslint-disable-next-line no-nested-ternary\n const getCount = () => (assignmentsSource ? assignmentsSource.length : type === CONSTS.WORKLIST ? count : 0);\n\n const toDoContent = (\n <>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={getCount()} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n />\n )}\n <List>\n {assignments.map(assignment => (\n <div className='psdk-todo-avatar-header' key={getAssignmentId(assignment)}>\n <Avatar className={classes.avatar} style={{ marginRight: '16px' }}>\n {currentUserInitials}\n </Avatar>\n <div style={{ display: 'block' }}>\n <Typography variant='h6'>{assignment?.name}</Typography>\n {`${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \\u2022 ${localizedVal(\n 'Urgency',\n localeCategory\n )} ${getPriority(assignment)}`}\n </div>\n {(!isConfirm || canPerform) && (\n <div style={{ marginLeft: 'auto' }}>\n <IconButton id='go-btn' onClick={() => clickGo(assignment)} size='large'>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </div>\n )}\n </div>\n ))}\n </List>\n </>\n );\n\n return (\n <>\n {type === CONSTS.WORKLIST && (\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={getCount()} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n />\n )}\n <CardContent>\n <List>\n {assignments.map(assignment => (\n <ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>\n <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo(assignment)} size='large'>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n )}\n\n {type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}\n {type === CONSTS.TODO && isConfirm && <>{toDoContent}</>}\n\n {getCount() > 3 && (\n <Box display='flex' justifyContent='center'>\n {bShowMore ? (\n <Button color='primary' onClick={_showMore}>\n {showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue}\n </Button>\n ) : (\n <Button onClick={_showLess}>{showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue}</Button>\n )}\n </Box>\n )}\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACpI,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,2BAA2B,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO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AQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { Box, Button, Card, CardContent, CardHeader, Avatar, Typography, Badge, List, ListItem, ListItemText } from '@mui/material';\nimport Snackbar from '@mui/material/Snackbar';\nimport IconButton from '@mui/material/IconButton';\nimport CloseIcon from '@mui/icons-material/Close';\nimport ArrowForwardIosOutlinedIcon from '@mui/icons-material/ArrowForwardIosOutlined';\nimport { useTheme } from '@mui/material/styles';\nimport makeStyles from '@mui/styles/makeStyles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\n\nimport { Utils } from '../../helpers/utils';\nimport type { PConnProps } from '../../../types/PConnProps';\n\nimport './ToDo.css';\n\nconst fetchMyWorkList = (datapage, fields, numberOfRecords, includeTotalCount, context) => {\n return PCore.getDataPageUtils()\n .getDataAsync(\n datapage,\n context,\n {},\n {\n pageNumber: 1,\n pageSize: numberOfRecords\n },\n {\n select: Object.keys(fields).map(key => ({ field: PCore.getAnnotationUtils().getPropertyName(fields[key]) }))\n },\n {\n invalidateCache: true,\n additionalApiParams: {\n includeTotalCount\n }\n }\n )\n .then(response => {\n return {\n ...response,\n data: (Array.isArray(response?.data) ? response.data : []).map(row =>\n Object.keys(fields).reduce((obj, key) => {\n obj[key] = row[PCore.getAnnotationUtils().getPropertyName(fields[key])];\n return obj;\n }, {})\n )\n };\n });\n};\n\ninterface ToDoProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n datasource?: any;\n myWorkList?: any;\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID?: string;\n headerText?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey?: string;\n showTodoList?: boolean;\n type?: string;\n\n context?: string;\n isConfirm?: boolean;\n}\n\nconst isChildCase = assignment => {\n return assignment.isChild;\n};\n\nfunction topThreeAssignments(assignmentsSource: any[]): any[] {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n }\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n },\n todoWrapper: {\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light,\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function ToDo(props: ToDoProps) {\n const {\n getPConnect,\n context,\n datasource = [],\n headerText = 'To do',\n showTodoList = true,\n myWorkList = {},\n type = 'worklist',\n isConfirm = false\n } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName() ?? '';\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<any[]>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Todo';\n const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');\n const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');\n const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;\n const [count, setCount] = useState(0);\n\n const {\n WORK_BASKET: { MY_WORK_LIST }\n } = PCore.getConstants();\n\n function initAssignments(): any[] {\n if (assignmentsSource) {\n return topThreeAssignments(assignmentsSource);\n }\n // turn off todolist\n return [];\n }\n\n const deferLoadWorklistItems = useCallback(\n responseData => {\n setCount(responseData.totalCount);\n setAssignments(responseData.data);\n },\n [MY_WORK_LIST]\n );\n\n useEffect(() => {\n if (Object.keys(myWorkList).length && myWorkList.datapage) {\n fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, 3, true, context).then(responseData => {\n deferLoadWorklistItems(responseData);\n });\n }\n }, []);\n\n const getAssignmentId = assignment => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = assignment => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = assignment => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n if (type === CONSTS.WORKLIST && count && count > assignments.length && !assignmentsSource) {\n fetchMyWorkList(myWorkList.datapage, getPConnect().getComponentConfig()?.myWorkList.fields, count, false, context).then(response => {\n setAssignments(response.data);\n });\n } else {\n setAssignments(assignmentsSource);\n }\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(assignments => assignments.slice(0, 3));\n }\n\n function clickGo(assignment) {\n const id = getAssignmentId(assignment);\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options: any = {\n containerName: sTargetContainerName,\n channelName: ''\n };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options.isActionFromToDoList = true;\n options.target = '';\n options.context = null;\n options.isChild = isChildCase(assignment);\n } else {\n options.isActionFromToDoList = false;\n options.target = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const renderTaskId = (type, getPConnect, showTodoList, assignment) => {\n const displayID = getID(assignment);\n\n if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {\n /* Supress link for todo inside flow step */\n return <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>;\n }\n return displayID;\n };\n\n const getListItemComponent = assignment => {\n if (isDesktop) {\n return (\n <>\n {localizedVal('Task in', localeCategory)}\n {renderTaskId(type, getPConnect, showTodoList, assignment)}\n {type === CONSTS.WORKLIST && assignment.status ? `\\u2022 ` : undefined}\n {type === CONSTS.WORKLIST && assignment.status ? <span className='psdk-todo-assignment-status'>{assignment.status}</span> : undefined}\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n };\n\n // eslint-disable-next-line no-nested-ternary\n const getCount = () => (assignmentsSource ? assignmentsSource.length : type === CONSTS.WORKLIST ? count : 0);\n\n const toDoContent = (\n <>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={getCount()} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n />\n )}\n <List>\n {assignments.map(assignment => (\n <div className='psdk-todo-avatar-header' key={getAssignmentId(assignment)}>\n <Avatar className={classes.avatar} style={{ marginRight: '16px' }}>\n {currentUserInitials}\n </Avatar>\n <div style={{ display: 'block' }}>\n <Typography variant='h6'>{assignment?.name}</Typography>\n {`${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \\u2022 ${localizedVal(\n 'Urgency',\n localeCategory\n )} ${getPriority(assignment)}`}\n </div>\n {(!isConfirm || canPerform) && (\n <div style={{ marginLeft: 'auto' }}>\n <IconButton id='go-btn' onClick={() => clickGo(assignment)} size='large'>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </div>\n )}\n </div>\n ))}\n </List>\n </>\n );\n\n return (\n <>\n {type === CONSTS.WORKLIST && (\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={getCount()} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n />\n )}\n <CardContent>\n <List>\n {assignments.map(assignment => (\n <ListItem\n key={getAssignmentId(assignment)}\n dense\n divider\n onClick={() => clickGo(assignment)}\n secondaryAction={\n <IconButton onClick={() => clickGo(assignment)} size='large'>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n }\n >\n <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n )}\n\n {type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}\n {type === CONSTS.TODO && isConfirm && <>{toDoContent}</>}\n\n {getCount() > 3 && (\n <Box display='flex' justifyContent='center'>\n {bShowMore ? (\n <Button color='primary' onClick={_showMore}>\n {showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue}\n </Button>\n ) : (\n <Button onClick={_showLess}>{showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue}</Button>\n )}\n </Box>\n )}\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { EffectCallback, DependencyList } from 'react';
1
+ import { type EffectCallback, type DependencyList } from 'react';
2
2
  /**
3
3
  * @example useAfterInitialEffect(cb, dependencies);
4
4
  * @param cb The function that should be executed whenever this hook is called. [React EffectCallback](https://reactjs.org/docs/hooks-reference.html#useeffect)
@@ -1 +1 @@
1
- {"version":3,"file":"useAfterInitialEffect.d.ts","sourceRoot":"","sources":["../../src/hooks/useAfterInitialEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE1E;;;;GAIG;AACH,QAAA,MAAM,qBAAqB,OAAQ,cAAc,uCAOhD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"useAfterInitialEffect.d.ts","sourceRoot":"","sources":["../../src/hooks/useAfterInitialEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEpF;;;;GAIG;AACH,QAAA,MAAM,qBAAqB,GAAI,IAAI,cAAc,EAAE,cAAc,cAAc,SAO9E,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAfterInitialEffect.js","sourceRoot":"","sources":["../../src/hooks/useAfterInitialEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAkC,MAAM,OAAO,CAAC;AAE1E;;;;GAIG;AACH,MAAM,qBAAqB,GAAG,CAAC,EAAkB,EAAE,YAA4B,EAAE,EAAE;IACjF,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE1B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,GAAG,CAAC,OAAO;YAAE,OAAO,EAAE,EAAE,CAAC;QAC7B,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IACrB,CAAC,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import { useEffect, useRef, EffectCallback, DependencyList } from 'react';\n\n/**\n * @example useAfterInitialEffect(cb, dependencies);\n * @param cb The function that should be executed whenever this hook is called. [React EffectCallback](https://reactjs.org/docs/hooks-reference.html#useeffect)\n * @param dependencies A list of variables or functions that will initiate this hook when they are updated.\n */\nconst useAfterInitialEffect = (cb: EffectCallback, dependencies: DependencyList) => {\n const ref = useRef(false);\n\n useEffect(() => {\n if (ref.current) return cb();\n ref.current = true;\n }, dependencies);\n};\n\nexport default useAfterInitialEffect;\n"]}
1
+ {"version":3,"file":"useAfterInitialEffect.js","sourceRoot":"","sources":["../../src/hooks/useAfterInitialEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAA4C,MAAM,OAAO,CAAC;AAEpF;;;;GAIG;AACH,MAAM,qBAAqB,GAAG,CAAC,EAAkB,EAAE,YAA4B,EAAE,EAAE;IACjF,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE1B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,GAAG,CAAC,OAAO;YAAE,OAAO,EAAE,EAAE,CAAC;QAC7B,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IACrB,CAAC,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import { useEffect, useRef, type EffectCallback, type DependencyList } from 'react';\n\n/**\n * @example useAfterInitialEffect(cb, dependencies);\n * @param cb The function that should be executed whenever this hook is called. [React EffectCallback](https://reactjs.org/docs/hooks-reference.html#useeffect)\n * @param dependencies A list of variables or functions that will initiate this hook when they are updated.\n */\nconst useAfterInitialEffect = (cb: EffectCallback, dependencies: DependencyList) => {\n const ref = useRef(false);\n\n useEffect(() => {\n if (ref.current) return cb();\n ref.current = true;\n }, dependencies);\n};\n\nexport default useAfterInitialEffect;\n"]}
@@ -1,4 +1,4 @@
1
- import { Ref, RefObject } from 'react';
1
+ import { type Ref, type RefObject } from 'react';
2
2
  /**
3
3
  * @example const ref = useConsolidatedRefs(refs);
4
4
  * @param refs The ref or refs to consolidate.
@@ -1 +1 @@
1
- {"version":3,"file":"useConsolidatedRef.d.ts","sourceRoot":"","sources":["../../src/hooks/useConsolidatedRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,GAAG,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3E;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,sDAwBvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"useConsolidatedRef.d.ts","sourceRoot":"","sources":["../../src/hooks/useConsolidatedRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,GAAG,EAAyB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1F;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,GAAI,CAAC,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,KAAG,SAAS,CAAC,CAAC,CAwB3E,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useConsolidatedRef.js","sourceRoot":"","sources":["../../src/hooks/useConsolidatedRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAoC,MAAM,OAAO,CAAC;AAE3E;;;;GAIG;AACH,MAAM,kBAAkB,GAAG,CAAI,GAAG,IAA4B,EAAgB,EAAE;IAC9E,MAAM,SAAS,GAA+B,MAAM,CAAI,IAAI,CAAC,CAAC;IAE9D,MAAM,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC/B,MAAM,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE;QAClD,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;QAChB,GAAG,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO;QAC5B,GAAG,EAAE,KAAK,CAAC,EAAE;YACX,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;YAC1B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACjB,IAAI,CAAC,GAAG;oBAAE,OAAO;gBAEjB,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;oBAC7B,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;iBACxB;qBAAM;oBACJ,GAAkC,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;iBACjE;YACH,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CACH,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { useRef, useState, Ref, MutableRefObject, RefObject } from 'react';\n\n/**\n * @example const ref = useConsolidatedRefs(refs);\n * @param refs The ref or refs to consolidate.\n * @returns ref:: The consolidated ref.\n */\nconst useConsolidatedRef = <T>(...refs: (Ref<T> | undefined)[]): RefObject<T> => {\n const targetRef: MutableRefObject<T | null> = useRef<T>(null);\n\n const [refProxy] = useState(() =>\n Object.defineProperty({ current: null }, 'current', {\n configurable: true,\n enumerable: true,\n get: () => targetRef.current,\n set: value => {\n targetRef.current = value;\n refs.forEach(ref => {\n if (!ref) return;\n\n if (typeof ref === 'function') {\n ref(targetRef.current);\n } else {\n (ref as MutableRefObject<T | null>).current = targetRef.current;\n }\n });\n }\n })\n );\n\n return refProxy;\n};\n\nexport default useConsolidatedRef;\n"]}
1
+ {"version":3,"file":"useConsolidatedRef.js","sourceRoot":"","sources":["../../src/hooks/useConsolidatedRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAmD,MAAM,OAAO,CAAC;AAE1F;;;;GAIG;AACH,MAAM,kBAAkB,GAAG,CAAI,GAAG,IAA4B,EAAgB,EAAE;IAC9E,MAAM,SAAS,GAA+B,MAAM,CAAI,IAAI,CAAC,CAAC;IAE9D,MAAM,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC/B,MAAM,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE;QAClD,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;QAChB,GAAG,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO;QAC5B,GAAG,EAAE,KAAK,CAAC,EAAE;YACX,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;YAC1B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACjB,IAAI,CAAC,GAAG;oBAAE,OAAO;gBAEjB,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE,CAAC;oBAC9B,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;gBACzB,CAAC;qBAAM,CAAC;oBACL,GAAkC,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;gBAClE,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CACH,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { useRef, useState, type Ref, type MutableRefObject, type RefObject } from 'react';\n\n/**\n * @example const ref = useConsolidatedRefs(refs);\n * @param refs The ref or refs to consolidate.\n * @returns ref:: The consolidated ref.\n */\nconst useConsolidatedRef = <T>(...refs: (Ref<T> | undefined)[]): RefObject<T> => {\n const targetRef: MutableRefObject<T | null> = useRef<T>(null);\n\n const [refProxy] = useState(() =>\n Object.defineProperty({ current: null }, 'current', {\n configurable: true,\n enumerable: true,\n get: () => targetRef.current,\n set: value => {\n targetRef.current = value;\n refs.forEach(ref => {\n if (!ref) return;\n\n if (typeof ref === 'function') {\n ref(targetRef.current);\n } else {\n (ref as MutableRefObject<T | null>).current = targetRef.current;\n }\n });\n }\n })\n );\n\n return refProxy;\n};\n\nexport default useConsolidatedRef;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusFirstField.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusFirstField.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,kBAAkB,kCAavB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"useFocusFirstField.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusFirstField.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,kBAAkB,GAAI,OAAE,EAAE,aAAQ,SAavC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusFirstField.js","sourceRoot":"","sources":["../../src/hooks/useFocusFirstField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;GAGG;AACH,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE;IAC1C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAC/C,IAAI,UAAU,EAAE;YACd,4CAA4C;YAC5C,MAAM,gBAAgB,GAA4B,UAAU,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;YAEzG,sCAAsC;YACtC,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC/B,gBAAgB,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;aAC7B;SACF;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @example useFocusFirstField(id, children);\n * Focuses first editable field in the view.\n */\nconst useFocusFirstField = (id, children) => {\n useEffect(() => {\n const assignment = document.getElementById(id);\n if (assignment) {\n // Find all editable elements within the div\n const editableElements: NodeListOf<HTMLElement> = assignment.querySelectorAll('input, select, textarea');\n\n // Focus on the first editable element\n if (editableElements.length > 0) {\n editableElements[0].focus();\n }\n }\n }, [children]);\n};\n\nexport default useFocusFirstField;\n"]}
1
+ {"version":3,"file":"useFocusFirstField.js","sourceRoot":"","sources":["../../src/hooks/useFocusFirstField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;GAGG;AACH,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE;IAC1C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAC/C,IAAI,UAAU,EAAE,CAAC;YACf,4CAA4C;YAC5C,MAAM,gBAAgB,GAA4B,UAAU,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;YAEzG,sCAAsC;YACtC,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,gBAAgB,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @example useFocusFirstField(id, children);\n * Focuses first editable field in the view.\n */\nconst useFocusFirstField = (id, children) => {\n useEffect(() => {\n const assignment = document.getElementById(id);\n if (assignment) {\n // Find all editable elements within the div\n const editableElements: NodeListOf<HTMLElement> = assignment.querySelectorAll('input, select, textarea');\n\n // Focus on the first editable element\n if (editableElements.length > 0) {\n editableElements[0].focus();\n }\n }\n }, [children]);\n};\n\nexport default useFocusFirstField;\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const useGetTabsCount: (deferLoadedTabs: any, uuid: any, selectedTabId: any, template: any) => {
3
2
  availableTabs: any;
4
3
  data: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"useGetTabsCount.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetTabsCount.ts"],"names":[],"mappings":";AAIA,QAAA,MAAM,eAAe;;;;;;;CAyLpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"useGetTabsCount.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetTabsCount.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,eAAe,GAAI,oBAAe,EAAE,SAAI,EAAE,kBAAa,EAAE,aAAQ;;;;;;;CAyLtE,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useGetTabsCount.js","sourceRoot":"","sources":["../../src/hooks/useGetTabsCount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,MAAM,eAAe,GAAG,CAAC,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE;IACzE,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;IAClD,MAAM,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,I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IAAI,GAAG,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;oBAC1C,GAAG,KAAK;oBACR,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK;iBAC/D,CAAC,CAAC,CAAC;gBACJ,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC,CAAC;iBACD,KAAK,CAAC,GAAG,CAAC,EAAE;gBACX,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC,CAAC,CAAC;SACN;aAAM;YACL,gBAAgB,CACd,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC7B,GAAG,KAAK;gBACR,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB,CAAC,CAAC,CACJ,CAAC;SACH;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,aAAa;QACb,IAAI;QACJ,OAAO;QACP,KAAK;QACL,kBAAkB,EAAE,eAAe;QACnC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KACjD,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useState, useEffect, useCallback, useMemo } from 'react';\n\nimport { getTabLabel } from '../components/template/SubTabs/tabUtils';\n\nconst useGetTabsCount = (deferLoadedTabs, uuid, selectedTabId, template) => {\n const pConn = deferLoadedTabs.props.getPConnect();\n const [availableTabs] = useState(deferLoadedTabs.props.getPConnect().getChildren() || []);\n const [data, setData] = useState<any[]>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(false);\n const [countMetadata, setCountMetadata] = useState<any[]>([]);\n const [currentTabId, setCurrentTabId] = useState(selectedTabId);\n\n const viewName = deferLoadedTabs?.props?.getPConnect()?.options?.viewName || null;\n\n const tabContent = (id, index, overideTabContent, tab) => {\n if (id === currentTabId || template === 'HierarchicalForm') {\n if (overideTabContent) {\n return tab.getPConnect().getComponent();\n }\n if (data[index]?.content) {\n return data[index]?.content;\n }\n return tab.getPConnect().getComponent();\n }\n if (template !== 'HierarchicalForm') {\n return overideTabContent ? null : data[index]?.content;\n }\n };\n\n const getTabsData = useCallback(\n overideTabContent =>\n availableTabs.map((tab, index) => {\n const config = tab.getPConnect().getConfigProps();\n const name = getTabLabel(tab.getPConnect());\n const tabId = `${viewName}-${config.name || name}-${index}`;\n const count = countMetadata.find((item: any) => item.tabId === tabId)?.count;\n\n return {\n name,\n id: tabId,\n getPConnect: tab.getPConnect,\n content: tabContent(tabId, index, overideTabContent, tab),\n loaded: tabId === currentTabId || Boolean(data[index]?.content),\n visibility: () => {\n const tabConfig = tab.getPConnect().getConfigProps();\n const isVisible = !('visibility' in tabConfig) || tabConfig.visibility === true;\n if (!isVisible) {\n tab.getPConnect().removeNode();\n }\n return isVisible;\n },\n count\n };\n }),\n [availableTabs, countMetadata, data, currentTabId, uuid]\n );\n\n const tabCountSources = useMemo(\n () =>\n availableTabs.reduce(\n (prev, tab, index) => {\n const config = tab.getPConnect().getConfigProps();\n const { value: showTabCount } = config.inheritedProps?.find(item => item.prop === 'showTabCount') || {};\n const { value } = config.inheritedProps?.find(item => item.prop === 'count') || {};\n const tabCountSource = config.inheritedProps?.find(item => item.prop === 'tabCount');\n const name = getTabLabel(tab.getPConnect());\n const tabId = `${viewName}-${config.name || name}-${index}`;\n if (showTabCount) {\n if (tabCountSource?.value?.fields?.count) {\n const isPrefixedByDot = tabCountSource.value.fields.count.substring(0, 1) === '.';\n return {\n ...prev,\n dataPageSources: [\n ...prev.dataPageSources,\n {\n dataPageName: tabCountSource.value.source,\n tabId,\n tabCountProp: isPrefixedByDot ? tabCountSource.value.fields.count.substring(1) : tabCountSource.value.fields.count,\n dataViewParameters: tabCountSource.value?.parameters || {}\n }\n ]\n };\n }\n if (Number.isInteger(value) && value % 1 === 0) {\n return {\n ...prev,\n calculatedFields: [\n ...prev.calculatedFields,\n {\n count: value,\n context: tab.getPConnect().getContextName(),\n tabId\n }\n ]\n };\n }\n if (value?.isDeferred) {\n return {\n ...prev,\n calculatedFields: [\n ...prev.calculatedFields,\n {\n propertyName: value.propertyName,\n context: 'content',\n tabId\n }\n ]\n };\n }\n }\n return prev;\n },\n {\n dataPageSources: [],\n calculatedFields: []\n }\n ),\n []\n );\n\n useEffect(() => {\n setCurrentTabId(selectedTabId);\n }, [selectedTabId]);\n\n useEffect(() => {\n // @ts-ignore\n setData(getTabsData());\n }, [countMetadata, currentTabId]);\n\n useEffect(() => {\n const { dataPageSources, calculatedFields } = tabCountSources;\n const calculatedFieldsWithoutValue = calculatedFields.filter(item => item.propertyName);\n if (dataPageSources.length) {\n setLoading(true);\n Promise.all(dataPageSources.map(item => PCore.getDataPageUtils().getPageDataAsync(item.dataPageName, '', item.dataViewParameters)))\n .then(res => {\n const temp = res.map((r, index) => ({\n ...dataPageSources[index],\n count: r[dataPageSources[index].tabCountProp]\n }));\n setCountMetadata(temp);\n setLoading(false);\n })\n .catch(err => {\n setError(err);\n setLoading(false);\n });\n } else if (calculatedFieldsWithoutValue.length) {\n PCore.getViewRuleApi()\n // @ts-ignore\n .getCalculatedFields(\n pConn.getCaseInfo().getKey(),\n pConn.getCurrentView(),\n calculatedFieldsWithoutValue.map(({ propertyName, context }) => ({\n name: propertyName,\n context\n }))\n )\n .then(res => {\n const values = res?.data?.caseInfo?.content || {};\n const temp = calculatedFields.map(field => ({\n ...field,\n count: values[field.propertyName?.substring(1)] || field.count\n }));\n setCountMetadata(temp);\n })\n .catch(err => {\n setError(err);\n setLoading(false);\n });\n } else {\n setCountMetadata(\n calculatedFields.map(field => ({\n ...field,\n count: field.count\n }))\n );\n }\n }, []);\n\n return {\n availableTabs,\n data,\n loading,\n error,\n updateCurrentTabId: setCurrentTabId,\n refreshTabData: () => setData(getTabsData(true))\n };\n};\n\nexport default use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CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,aAAa;QACb,IAAI;QACJ,OAAO;QACP,KAAK;QACL,kBAAkB,EAAE,eAAe;QACnC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KACjD,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useState, useEffect, useCallback, useMemo } from 'react';\n\nimport { getTabLabel } from '../components/template/SubTabs/tabUtils';\n\nconst useGetTabsCount = (deferLoadedTabs, uuid, selectedTabId, template) => {\n const pConn = deferLoadedTabs.props.getPConnect();\n const [availableTabs] = useState(deferLoadedTabs.props.getPConnect().getChildren() || []);\n const [data, setData] = useState<any[]>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(false);\n const [countMetadata, setCountMetadata] = useState<any[]>([]);\n const [currentTabId, setCurrentTabId] = useState(selectedTabId);\n\n const viewName = deferLoadedTabs?.props?.getPConnect()?.options?.viewName || null;\n\n const tabContent = (id, index, overideTabContent, tab) => {\n if (id === currentTabId || template === 'HierarchicalForm') {\n if (overideTabContent) {\n return tab.getPConnect().getComponent();\n }\n if (data[index]?.content) {\n return data[index]?.content;\n }\n return tab.getPConnect().getComponent();\n }\n if (template !== 'HierarchicalForm') {\n return overideTabContent ? null : data[index]?.content;\n }\n };\n\n const getTabsData = useCallback(\n overideTabContent =>\n availableTabs.map((tab, index) => {\n const config = tab.getPConnect().getConfigProps();\n const name = getTabLabel(tab.getPConnect());\n const tabId = `${viewName}-${config.name || name}-${index}`;\n const count = countMetadata.find((item: any) => item.tabId === tabId)?.count;\n\n return {\n name,\n id: tabId,\n getPConnect: tab.getPConnect,\n content: tabContent(tabId, index, overideTabContent, tab),\n loaded: tabId === currentTabId || Boolean(data[index]?.content),\n visibility: () => {\n const tabConfig = tab.getPConnect().getConfigProps();\n const isVisible = !('visibility' in tabConfig) || tabConfig.visibility === true;\n if (!isVisible) {\n tab.getPConnect().removeNode();\n }\n return isVisible;\n },\n count\n };\n }),\n [availableTabs, countMetadata, data, currentTabId, uuid]\n );\n\n const tabCountSources = useMemo(\n () =>\n availableTabs.reduce(\n (prev, tab, index) => {\n const config = tab.getPConnect().getConfigProps();\n const { value: showTabCount } = config.inheritedProps?.find(item => item.prop === 'showTabCount') || {};\n const { value } = config.inheritedProps?.find(item => item.prop === 'count') || {};\n const tabCountSource = config.inheritedProps?.find(item => item.prop === 'tabCount');\n const name = getTabLabel(tab.getPConnect());\n const tabId = `${viewName}-${config.name || name}-${index}`;\n if (showTabCount) {\n if (tabCountSource?.value?.fields?.count) {\n const isPrefixedByDot = tabCountSource.value.fields.count.substring(0, 1) === '.';\n return {\n ...prev,\n dataPageSources: [\n ...prev.dataPageSources,\n {\n dataPageName: tabCountSource.value.source,\n tabId,\n tabCountProp: isPrefixedByDot ? tabCountSource.value.fields.count.substring(1) : tabCountSource.value.fields.count,\n dataViewParameters: tabCountSource.value?.parameters || {}\n }\n ]\n };\n }\n if (Number.isInteger(value) && value % 1 === 0) {\n return {\n ...prev,\n calculatedFields: [\n ...prev.calculatedFields,\n {\n count: value,\n context: tab.getPConnect().getContextName(),\n tabId\n }\n ]\n };\n }\n if (value?.isDeferred) {\n return {\n ...prev,\n calculatedFields: [\n ...prev.calculatedFields,\n {\n propertyName: value.propertyName,\n context: 'content',\n tabId\n }\n ]\n };\n }\n }\n return prev;\n },\n {\n dataPageSources: [],\n calculatedFields: []\n }\n ),\n []\n );\n\n useEffect(() => {\n setCurrentTabId(selectedTabId);\n }, [selectedTabId]);\n\n useEffect(() => {\n // @ts-ignore\n setData(getTabsData());\n }, [countMetadata, currentTabId]);\n\n useEffect(() => {\n const { dataPageSources, calculatedFields } = tabCountSources;\n const calculatedFieldsWithoutValue = calculatedFields.filter(item => item.propertyName);\n if (dataPageSources.length) {\n setLoading(true);\n Promise.all(dataPageSources.map(item => PCore.getDataPageUtils().getPageDataAsync(item.dataPageName, '', item.dataViewParameters)))\n .then(res => {\n const temp = res.map((r, index) => ({\n ...dataPageSources[index],\n count: r[dataPageSources[index].tabCountProp]\n }));\n setCountMetadata(temp);\n setLoading(false);\n })\n .catch(err => {\n setError(err);\n setLoading(false);\n });\n } else if (calculatedFieldsWithoutValue.length) {\n PCore.getViewRuleApi()\n // @ts-ignore\n .getCalculatedFields(\n pConn.getCaseInfo().getKey(),\n pConn.getCurrentView(),\n calculatedFieldsWithoutValue.map(({ propertyName, context }) => ({\n name: propertyName,\n context\n }))\n )\n .then(res => {\n const values = res?.data?.caseInfo?.content || {};\n const temp = calculatedFields.map(field => ({\n ...field,\n count: values[field.propertyName?.substring(1)] || field.count\n }));\n setCountMetadata(temp);\n })\n .catch(err => {\n setError(err);\n setLoading(false);\n });\n } else {\n setCountMetadata(\n calculatedFields.map(field => ({\n ...field,\n count: field.count\n }))\n );\n }\n }, []);\n\n return {\n availableTabs,\n data,\n loading,\n error,\n updateCurrentTabId: setCurrentTabId,\n refreshTabData: () => setData(getTabsData(true))\n };\n};\n\nexport default useGetTabsCount;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useScrolltoTop.d.ts","sourceRoot":"","sources":["../../src/hooks/useScrolltoTop.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,cAAc,kCAKnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"useScrolltoTop.d.ts","sourceRoot":"","sources":["../../src/hooks/useScrolltoTop.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,cAAc,GAAI,OAAE,EAAE,aAAQ,SAKnC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -107,110 +107,110 @@ declare namespace pegaSdkComponentMap {
107
107
  export { WssNavBar };
108
108
  export { WssQuickCreate };
109
109
  }
110
- import ActionButtons from "./components/infra/ActionButtons";
111
- import ActionButtonsForFileUtil from "./components/widget/FileUtility/ActionButtonsForFileUtil";
112
- import AdvancedSearch from "./components/template/AdvancedSearch";
113
- import AlertBanner from "./components/designSystemExtension/AlertBanner";
114
- import AppAnnouncement from "./components/widget/AppAnnouncement";
115
- import AppShell from "./components/template/AppShell/AppShell";
116
- import Assignment from "./components/infra/Assignment/Assignment";
117
- import AssignmentCard from "./components/infra/AssignmentCard/AssignmentCard";
118
- import Attachment from "./components/widget/Attachment";
119
- import AutoComplete from "./components/field/AutoComplete";
120
- import Banner from "./components/designSystemExtension/Banner";
121
- import BannerPage from "./components/template/BannerPage";
122
- import CancelAlert from "./components/field/CancelAlert";
123
- import CaseHistory from "./components/widget/CaseHistory";
124
- import CaseSummary from "./components/template/CaseSummary";
125
- import CaseSummaryFields from "./components/designSystemExtension/CaseSummaryFields";
126
- import CaseView from "./components/template/CaseView";
127
- import CaseViewActionsMenu from "./components/template/CaseViewActionsMenu";
128
- import Checkbox from "./components/field/Checkbox";
129
- import Confirmation from "./components/template/Confirmation";
130
- import Currency from "./components/field/Currency";
131
- import DashboardFilter from "./components/infra/DashboardFilter";
132
- import DataReference from "./components/template/DataReference";
133
- import Date from "./components/field/Date";
134
- import DateTime from "./components/field/DateTime";
135
- import Decimal from "./components/field/Decimal";
136
- import DefaultForm from "./components/template/DefaultForm";
137
- import DeferLoad from "./components/infra/DeferLoad";
138
- import Details from "./components/template/Details/Details";
139
- import DetailsSubTabs from "./components/template/Details/DetailsSubTabs";
140
- import DetailsThreeColumn from "./components/template/Details/DetailsThreeColumn";
141
- import DetailsTwoColumn from "./components/template/Details/DetailsTwoColumn/DetailsTwoColumn";
142
- import Dropdown from "./components/field/Dropdown";
143
- import DynamicTabs from "./components/template/Details/DynamicTabs";
144
- import Email from "./components/field/Email/Email";
145
- import ErrorBoundary from "./components/infra/ErrorBoundary";
146
- import FieldGroup from "./components/designSystemExtension/FieldGroup";
147
- import FieldGroupList from "./components/designSystemExtension/FieldGroupList";
148
- import FieldGroupTemplate from "./components/template/FieldGroupTemplate";
149
- import FieldValueList from "./components/designSystemExtension/FieldValueList";
150
- import FileUtility from "./components/widget/FileUtility/FileUtility";
151
- import FlowContainer from "./components/infra/Containers/FlowContainer";
152
- import Followers from "./components/widget/Followers";
153
- import Group from "./components/field/Group";
154
- import InlineDashboard from "./components/template/InlineDashboard";
155
- import InlineDashboardPage from "./components/template/InlineDashboardPage/InlineDashboardPage";
156
- import Integer from "./components/field/Integer";
157
- import LeftAlignVerticalTabs from "./components/infra/VerticalTabs/LeftAlignVerticalTabs";
158
- import ListPage from "./components/template/ListPage/ListPage";
159
- import ListView from "./components/template/ListView";
160
- import ListViewActionButtons from "./components/infra/Containers/ModalViewContainer/ListViewActionButtons";
161
- import ModalViewContainer from "./components/infra/Containers/ModalViewContainer/ModalViewContainer";
162
- import MultiReferenceReadOnly from "./components/template/MultiReferenceReadOnly";
163
- import Multiselect from "./components/field/Multiselect/Multiselect";
164
- import MultiStep from "./components/infra/MultiStep";
165
- import NarrowWide from "./components/template/NarrowWide/NarrowWide";
166
- import NarrowWideDetails from "./components/template/NarrowWide/NarrowWideDetails";
167
- import NarrowWideForm from "./components/template/NarrowWide/NarrowWideForm";
168
- import NarrowWidePage from "./components/template/NarrowWide/NarrowWidePage";
169
- import NavBar from "./components/infra/NavBar";
170
- import OneColumn from "./components/template/OneColumn/OneColumn";
171
- import OneColumnPage from "./components/template/OneColumn/OneColumnPage";
172
- import OneColumnTab from "./components/template/OneColumn/OneColumnTab";
173
- import Operator from "./components/designSystemExtension/Operator";
174
- import Percentage from "./components/field/Percentage";
175
- import Phone from "./components/field/Phone/Phone";
176
- import PromotedFilters from "./components/template/PromotedFilters";
177
- import Pulse from "./components/designSystemExtension/Pulse";
178
- import QuickCreate from "./components/widget/QuickCreate";
179
- import Reference from "./components/infra/Reference/Reference";
180
- import RadioButtons from "./components/field/RadioButtons";
181
- import Region from "./components/infra/Region/Region";
182
- import RichText from "./components/field/RichText";
183
- import RichTextEditor from "./components/designSystemExtension/RichTextEditor";
184
- import RootContainer from "./components/infra/RootContainer/RootContainer";
185
- import ScalarList from "./components/field/ScalarList";
186
- import SearchForm from "./components/template/DataReference/SearchForm";
187
- import SearchGroups from "./components/template/AdvancedSearch/SearchGroups";
188
- import SemanticLink from "./components/field/SemanticLink";
189
- import SimpleTable from "./components/template/SimpleTable/SimpleTable";
190
- import SimpleTableManual from "./components/template/SimpleTable/SimpleTableManual";
191
- import SimpleTableSelect from "./components/template/SimpleTable/SimpleTableSelect";
192
- import SingleReferenceReadOnly from "./components/template/SingleReferenceReadOnly";
193
- import Stages from "./components/infra/Stages";
194
- import SubTabs from "./components/template/SubTabs";
195
- import SummaryItem from "./components/widget/SummaryItem";
196
- import SummaryList from "./components/widget/SummaryList";
197
- import TextArea from "./components/field/TextArea";
198
- import TextContent from "./components/field/TextContent";
199
- import TextInput from "./components/field/TextInput/TextInput";
200
- import Time from "./components/field/Time";
201
- import ToDo from "./components/widget/ToDo";
202
- import TwoColumn from "./components/template/TwoColumn/TwoColumn";
203
- import TwoColumnPage from "./components/template/TwoColumn/TwoColumnPage";
204
- import TwoColumnTab from "./components/template/TwoColumn/TwoColumnTab";
205
- import URL from "./components/field/URL";
206
- import UserReference from "./components/field/UserReference";
207
- import VerticalTabs from "./components/infra/VerticalTabs/VerticalTabs";
208
- import View from "./components/infra/View";
209
- import ViewContainer from "./components/infra/Containers/ViewContainer";
210
- import WideNarrow from "./components/template/WideNarrow/WideNarrow";
211
- import WideNarrowDetails from "./components/template/WideNarrow/WideNarrowDetails";
212
- import WideNarrowForm from "./components/template/WideNarrow/WideNarrowForm";
213
- import WideNarrowPage from "./components/template/WideNarrow/WideNarrowPage";
214
- import WssNavBar from "./components/template/WssNavBar/WssNavBar";
215
- import WssQuickCreate from "./components/designSystemExtension/WssQuickCreate";
110
+ import ActionButtons from './components/infra/ActionButtons';
111
+ import ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';
112
+ import AdvancedSearch from './components/template/AdvancedSearch';
113
+ import AlertBanner from './components/designSystemExtension/AlertBanner';
114
+ import AppAnnouncement from './components/widget/AppAnnouncement';
115
+ import AppShell from './components/template/AppShell/AppShell';
116
+ import Assignment from './components/infra/Assignment/Assignment';
117
+ import AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';
118
+ import Attachment from './components/widget/Attachment';
119
+ import AutoComplete from './components/field/AutoComplete';
120
+ import Banner from './components/designSystemExtension/Banner';
121
+ import BannerPage from './components/template/BannerPage';
122
+ import CancelAlert from './components/field/CancelAlert';
123
+ import CaseHistory from './components/widget/CaseHistory';
124
+ import CaseSummary from './components/template/CaseSummary';
125
+ import CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';
126
+ import CaseView from './components/template/CaseView';
127
+ import CaseViewActionsMenu from './components/template/CaseViewActionsMenu';
128
+ import Checkbox from './components/field/Checkbox';
129
+ import Confirmation from './components/template/Confirmation';
130
+ import Currency from './components/field/Currency';
131
+ import DashboardFilter from './components/infra/DashboardFilter';
132
+ import DataReference from './components/template/DataReference';
133
+ import Date from './components/field/Date';
134
+ import DateTime from './components/field/DateTime';
135
+ import Decimal from './components/field/Decimal';
136
+ import DefaultForm from './components/template/DefaultForm';
137
+ import DeferLoad from './components/infra/DeferLoad';
138
+ import Details from './components/template/Details/Details';
139
+ import DetailsSubTabs from './components/template/Details/DetailsSubTabs';
140
+ import DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';
141
+ import DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';
142
+ import Dropdown from './components/field/Dropdown';
143
+ import DynamicTabs from './components/template/Details/DynamicTabs';
144
+ import Email from './components/field/Email/Email';
145
+ import ErrorBoundary from './components/infra/ErrorBoundary';
146
+ import FieldGroup from './components/designSystemExtension/FieldGroup';
147
+ import FieldGroupList from './components/designSystemExtension/FieldGroupList';
148
+ import FieldGroupTemplate from './components/template/FieldGroupTemplate';
149
+ import FieldValueList from './components/designSystemExtension/FieldValueList';
150
+ import FileUtility from './components/widget/FileUtility/FileUtility';
151
+ import FlowContainer from './components/infra/Containers/FlowContainer';
152
+ import Followers from './components/widget/Followers';
153
+ import Group from './components/field/Group';
154
+ import InlineDashboard from './components/template/InlineDashboard';
155
+ import InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';
156
+ import Integer from './components/field/Integer';
157
+ import LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';
158
+ import ListPage from './components/template/ListPage/ListPage';
159
+ import ListView from './components/template/ListView';
160
+ import ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';
161
+ import ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';
162
+ import MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';
163
+ import Multiselect from './components/field/Multiselect/Multiselect';
164
+ import MultiStep from './components/infra/MultiStep';
165
+ import NarrowWide from './components/template/NarrowWide/NarrowWide';
166
+ import NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';
167
+ import NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';
168
+ import NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';
169
+ import NavBar from './components/infra/NavBar';
170
+ import OneColumn from './components/template/OneColumn/OneColumn';
171
+ import OneColumnPage from './components/template/OneColumn/OneColumnPage';
172
+ import OneColumnTab from './components/template/OneColumn/OneColumnTab';
173
+ import Operator from './components/designSystemExtension/Operator';
174
+ import Percentage from './components/field/Percentage';
175
+ import Phone from './components/field/Phone/Phone';
176
+ import PromotedFilters from './components/template/PromotedFilters';
177
+ import Pulse from './components/designSystemExtension/Pulse';
178
+ import QuickCreate from './components/widget/QuickCreate';
179
+ import Reference from './components/infra/Reference/Reference';
180
+ import RadioButtons from './components/field/RadioButtons';
181
+ import Region from './components/infra/Region/Region';
182
+ import RichText from './components/field/RichText';
183
+ import RichTextEditor from './components/designSystemExtension/RichTextEditor';
184
+ import RootContainer from './components/infra/RootContainer/RootContainer';
185
+ import ScalarList from './components/field/ScalarList';
186
+ import SearchForm from './components/template/DataReference/SearchForm';
187
+ import SearchGroups from './components/template/AdvancedSearch/SearchGroups';
188
+ import SemanticLink from './components/field/SemanticLink';
189
+ import SimpleTable from './components/template/SimpleTable/SimpleTable';
190
+ import SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';
191
+ import SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';
192
+ import SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';
193
+ import Stages from './components/infra/Stages';
194
+ import SubTabs from './components/template/SubTabs';
195
+ import SummaryItem from './components/widget/SummaryItem';
196
+ import SummaryList from './components/widget/SummaryList';
197
+ import TextArea from './components/field/TextArea';
198
+ import TextContent from './components/field/TextContent';
199
+ import TextInput from './components/field/TextInput/TextInput';
200
+ import Time from './components/field/Time';
201
+ import ToDo from './components/widget/ToDo';
202
+ import TwoColumn from './components/template/TwoColumn/TwoColumn';
203
+ import TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';
204
+ import TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';
205
+ import URL from './components/field/URL';
206
+ import UserReference from './components/field/UserReference';
207
+ import VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';
208
+ import View from './components/infra/View';
209
+ import ViewContainer from './components/infra/Containers/ViewContainer';
210
+ import WideNarrow from './components/template/WideNarrow/WideNarrow';
211
+ import WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';
212
+ import WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';
213
+ import WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';
214
+ import WssNavBar from './components/template/WssNavBar/WssNavBar';
215
+ import WssQuickCreate from './components/designSystemExtension/WssQuickCreate';
216
216
  //# sourceMappingURL=sdk-pega-component-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-pega-component-map.d.ts","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"sdk-pega-component-map.d.ts","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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vC,kCAAkC;qBAChC,6BAA6B;2BACvB,mDAAmD;0BACpD,gDAAgD;uBACnD,+BAA+B;uBAC/B,gDAAgD;yBAC9C,mDAAmD;yBACnD,iCAAiC;wBAClC,+CAA+C;8BACzC,qDAAqD;8BACrD,qDAAqD;oCAC/C,+CAA+C;mBAChE,2BAA2B;oBAC1B,+BAA+B;wBAC3B,iCAAiC;wBACjC,iCAAiC;qBACpC,6BAA6B;wBAC1B,gCAAgC;sBAClC,wCAAwC;iBAC7C,yBAAyB;iBACzB,0BAA0B;sBACrB,2CAA2C;0BACvC,+CAA+C;yBAChD,8CAA8C;gBACvD,wBAAwB;0BACd,kCAAkC;yBACnC,8CAA8C;iBACtD,yBAAyB;0BAChB,6CAA6C;uBAChD,6CAA6C;8BACtC,oDAAoD;2BACvD,iDAAiD;2BACjD,iDAAiD;sBACtD,2CAA2C;2BACtC,mDAAmD"}
@@ -185,7 +185,7 @@ const pegaSdkComponentMap = {
185
185
  PromotedFilters,
186
186
  Pulse,
187
187
  QuickCreate,
188
- reference: Reference,
188
+ reference: Reference, // See note about about non-standard capitalization
189
189
  RadioButtons,
190
190
  Region,
191
191
  RichText,
@@ -207,7 +207,7 @@ const pegaSdkComponentMap = {
207
207
  TextContent,
208
208
  TextInput,
209
209
  Time,
210
- Todo: ToDo,
210
+ Todo: ToDo, // See note about about non-standard capitalization
211
211
  TwoColumn,
212
212
  TwoColumnPage,
213
213
  TwoColumnTab,