@pega/react-sdk-components 0.24.4 → 0.25.1

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 (347) hide show
  1. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  2. package/lib/bridge/react_pconnect.js +2 -1
  3. package/lib/bridge/react_pconnect.js.map +1 -1
  4. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +1 -1
  5. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  6. package/lib/components/designSystemExtension/Banner/Banner.js +1 -1
  7. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  8. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  9. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  10. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +11 -11
  11. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  12. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +4 -4
  13. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  14. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +4 -4
  15. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  16. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -4
  17. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  18. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -6
  19. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  20. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  21. package/lib/components/designSystemExtension/Operator/Operator.js +6 -6
  22. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  23. package/lib/components/designSystemExtension/Pulse/Pulse.js +2 -2
  24. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  25. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +3 -2
  27. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  28. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +1 -1
  29. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  30. package/lib/components/field/AutoComplete/AutoComplete.js +4 -4
  31. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  32. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  33. package/lib/components/field/CancelAlert/CancelAlert.js +3 -6
  34. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  35. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  36. package/lib/components/field/Checkbox/Checkbox.js +4 -4
  37. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  38. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  39. package/lib/components/field/Currency/Currency.js +9 -8
  40. package/lib/components/field/Currency/Currency.js.map +1 -1
  41. package/lib/components/field/Date/Date.d.ts.map +1 -1
  42. package/lib/components/field/Date/Date.js +21 -9
  43. package/lib/components/field/Date/Date.js.map +1 -1
  44. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  45. package/lib/components/field/DateTime/DateTime.js +38 -9
  46. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  47. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  48. package/lib/components/field/Decimal/Decimal.js +8 -5
  49. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  50. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  51. package/lib/components/field/Dropdown/Dropdown.js +18 -12
  52. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  53. package/lib/components/field/Email/Email.d.ts.map +1 -1
  54. package/lib/components/field/Email/Email.js +21 -5
  55. package/lib/components/field/Email/Email.js.map +1 -1
  56. package/lib/components/field/Group/Group.js +2 -2
  57. package/lib/components/field/Group/Group.js.map +1 -1
  58. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  59. package/lib/components/field/Integer/Integer.js +17 -6
  60. package/lib/components/field/Integer/Integer.js.map +1 -1
  61. package/lib/components/field/Multiselect/Multiselect.d.ts.map +1 -1
  62. package/lib/components/field/Multiselect/Multiselect.js +12 -8
  63. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  64. package/lib/components/field/Multiselect/utils.js +1 -1
  65. package/lib/components/field/Multiselect/utils.js.map +1 -1
  66. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  67. package/lib/components/field/Percentage/Percentage.js +7 -4
  68. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  69. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  70. package/lib/components/field/Phone/Phone.js +4 -4
  71. package/lib/components/field/Phone/Phone.js.map +1 -1
  72. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  73. package/lib/components/field/RadioButtons/RadioButtons.js +6 -12
  74. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  75. package/lib/components/field/RichText/RichText.js +1 -1
  76. package/lib/components/field/RichText/RichText.js.map +1 -1
  77. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  78. package/lib/components/field/ScalarList/ScalarList.js +5 -5
  79. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  80. package/lib/components/field/SemanticLink/SemanticLink.js +4 -4
  81. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  82. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  83. package/lib/components/field/TextArea/TextArea.js +20 -4
  84. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  85. package/lib/components/field/TextContent/TextContent.js +1 -1
  86. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  87. package/lib/components/field/TextInput/TextInput.js +2 -2
  88. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  89. package/lib/components/field/Time/Time.d.ts.map +1 -1
  90. package/lib/components/field/Time/Time.js +31 -8
  91. package/lib/components/field/Time/Time.js.map +1 -1
  92. package/lib/components/field/URL/URL.d.ts.map +1 -1
  93. package/lib/components/field/URL/URL.js +19 -4
  94. package/lib/components/field/URL/URL.js.map +1 -1
  95. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  96. package/lib/components/field/UserReference/UserReference.js +3 -5
  97. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  98. package/lib/components/helpers/common-utils.d.ts +7 -0
  99. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  100. package/lib/components/helpers/common-utils.js +21 -1
  101. package/lib/components/helpers/common-utils.js.map +1 -1
  102. package/lib/components/helpers/field-group-utils.js +2 -2
  103. package/lib/components/helpers/field-group-utils.js.map +1 -1
  104. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  105. package/lib/components/helpers/formatters/Currency.js +12 -15
  106. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  107. package/lib/components/helpers/formatters/common.d.ts +2 -2
  108. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  109. package/lib/components/helpers/formatters/common.js +2 -1
  110. package/lib/components/helpers/formatters/common.js.map +1 -1
  111. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  112. package/lib/components/helpers/formatters/index.js +2 -3
  113. package/lib/components/helpers/formatters/index.js.map +1 -1
  114. package/lib/components/helpers/simpleTableHelpers.d.ts +1 -1
  115. package/lib/components/helpers/simpleTableHelpers.js +1 -1
  116. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  117. package/lib/components/infra/ActionButtons/ActionButtons.js +3 -3
  118. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  119. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  120. package/lib/components/infra/Assignment/Assignment.js +11 -13
  121. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  122. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  123. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +12 -22
  124. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  125. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  126. package/lib/components/infra/Containers/FlowContainer/helpers.js +1 -5
  127. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  128. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  129. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +9 -4
  130. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  131. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +7 -7
  132. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  133. package/lib/components/infra/Containers/SimpleView/helper.js +1 -1
  134. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  135. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +1 -1
  136. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  137. package/lib/components/infra/Containers/container-helpers.d.ts +2 -0
  138. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -0
  139. package/lib/components/infra/Containers/{helpers.js → container-helpers.js} +1 -1
  140. package/lib/components/infra/Containers/container-helpers.js.map +1 -0
  141. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  142. package/lib/components/infra/DashboardFilter/DashboardFilter.js +4 -6
  143. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  144. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  145. package/lib/components/infra/DashboardFilter/filterUtils.js +3 -5
  146. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  147. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +1 -0
  148. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  149. package/lib/components/infra/DeferLoad/DeferLoad.js +7 -8
  150. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  151. package/lib/components/infra/MultiStep/MultiStep.d.ts +1 -1
  152. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  153. package/lib/components/infra/MultiStep/MultiStep.js +12 -11
  154. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  155. package/lib/components/infra/NavBar/NavBar.css +1 -0
  156. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  157. package/lib/components/infra/NavBar/NavBar.js +24 -16
  158. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  159. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  160. package/lib/components/infra/RootContainer/RootContainer.js +5 -6
  161. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  162. package/lib/components/infra/Stages/Stages.js +4 -4
  163. package/lib/components/infra/Stages/Stages.js.map +1 -1
  164. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  165. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +4 -3
  166. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  167. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +2 -2
  168. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  169. package/lib/components/infra/View/View.d.ts +1 -0
  170. package/lib/components/infra/View/View.d.ts.map +1 -1
  171. package/lib/components/infra/View/View.js +32 -2
  172. package/lib/components/infra/View/View.js.map +1 -1
  173. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
  174. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
  175. package/lib/components/template/AdvancedSearch/AdvancedSearch.js +69 -0
  176. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
  177. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +24 -0
  178. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
  179. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +32 -0
  180. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
  181. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
  182. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
  183. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +181 -0
  184. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
  185. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
  186. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
  187. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +26 -0
  188. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
  189. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
  190. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
  191. package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
  192. package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
  193. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
  194. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
  195. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
  196. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
  197. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +11 -0
  198. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
  199. package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
  200. package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
  201. package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
  202. package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
  203. package/lib/components/template/AdvancedSearch/index.js +2 -0
  204. package/lib/components/template/AdvancedSearch/index.js.map +1 -0
  205. package/lib/components/template/AppShell/AppShell.d.ts +2 -0
  206. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  207. package/lib/components/template/AppShell/AppShell.js +33 -10
  208. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  209. package/lib/components/template/CaseView/CaseView.d.ts +1 -0
  210. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  211. package/lib/components/template/CaseView/CaseView.js +7 -7
  212. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  213. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +6 -6
  214. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  215. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  216. package/lib/components/template/Confirmation/Confirmation.js +3 -2
  217. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  218. package/lib/components/template/DataReference/DataReference.d.ts +7 -0
  219. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  220. package/lib/components/template/DataReference/DataReference.js +245 -81
  221. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  222. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
  223. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
  224. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
  225. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
  226. package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
  227. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
  228. package/lib/components/template/DataReference/SearchForm.js +86 -0
  229. package/lib/components/template/DataReference/SearchForm.js.map +1 -0
  230. package/lib/components/template/DataReference/utils.d.ts +15 -0
  231. package/lib/components/template/DataReference/utils.d.ts.map +1 -0
  232. package/lib/components/template/DataReference/utils.js +75 -0
  233. package/lib/components/template/DataReference/utils.js.map +1 -0
  234. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  235. package/lib/components/template/DefaultForm/utils/index.js +1 -2
  236. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  237. package/lib/components/template/Details/Details/Details.js +2 -2
  238. package/lib/components/template/Details/Details/Details.js.map +1 -1
  239. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +3 -3
  240. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  241. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -2
  242. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  243. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -2
  244. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  245. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  246. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +4 -4
  247. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  248. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  249. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +9 -5
  250. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  251. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  252. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  253. package/lib/components/template/ListView/ListView.d.ts +3 -0
  254. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  255. package/lib/components/template/ListView/ListView.js +151 -66
  256. package/lib/components/template/ListView/ListView.js.map +1 -1
  257. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  258. package/lib/components/template/ListView/utils.js +29 -6
  259. package/lib/components/template/ListView/utils.js.map +1 -1
  260. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -2
  261. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  262. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  263. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  264. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  265. package/lib/components/template/PromotedFilters/PromotedFilters.js +1 -2
  266. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  267. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  268. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +0 -2
  269. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  270. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +2 -0
  271. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  272. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +67 -44
  273. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  274. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  275. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +2 -4
  276. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  277. package/lib/components/template/SubTabs/SubTabs.js +2 -2
  278. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  279. package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
  280. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  281. package/lib/components/template/SubTabs/tabUtils.js +102 -1
  282. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  283. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -2
  284. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  285. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -2
  286. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  287. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -2
  288. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  289. package/lib/components/template/WssNavBar/WssNavBar.js +9 -9
  290. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  291. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +2 -2
  292. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  293. package/lib/components/widget/Attachment/Attachment.css +1 -0
  294. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  295. package/lib/components/widget/Attachment/Attachment.js +7 -10
  296. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  297. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  298. package/lib/components/widget/CaseHistory/CaseHistory.js +8 -7
  299. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  300. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  301. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  302. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  303. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +4 -4
  304. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  305. package/lib/components/widget/Followers/Followers.js +2 -2
  306. package/lib/components/widget/Followers/Followers.js.map +1 -1
  307. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  308. package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
  309. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  310. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  311. package/lib/components/widget/SummaryItem/SummaryItem.js +3 -3
  312. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  313. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  314. package/lib/components/widget/ToDo/ToDo.js +60 -17
  315. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  316. package/lib/doc/KeyReleaseUpdates.md +19 -7
  317. package/lib/hooks/index.d.ts +2 -0
  318. package/lib/hooks/index.d.ts.map +1 -1
  319. package/lib/hooks/index.js +2 -0
  320. package/lib/hooks/index.js.map +1 -1
  321. package/lib/hooks/useFocusFirstField.d.ts +7 -0
  322. package/lib/hooks/useFocusFirstField.d.ts.map +1 -0
  323. package/lib/hooks/useFocusFirstField.js +20 -0
  324. package/lib/hooks/useFocusFirstField.js.map +1 -0
  325. package/lib/hooks/useGetTabsCount.d.ts +11 -0
  326. package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
  327. package/lib/hooks/useGetTabsCount.js +166 -0
  328. package/lib/hooks/useGetTabsCount.js.map +1 -0
  329. package/lib/hooks/useIsMount.d.ts +2 -0
  330. package/lib/hooks/useIsMount.d.ts.map +1 -0
  331. package/lib/hooks/useIsMount.js +9 -0
  332. package/lib/hooks/useIsMount.js.map +1 -0
  333. package/lib/hooks/useScrolltoTop.d.ts +7 -0
  334. package/lib/hooks/useScrolltoTop.d.ts.map +1 -0
  335. package/lib/hooks/useScrolltoTop.js +13 -0
  336. package/lib/hooks/useScrolltoTop.js.map +1 -0
  337. package/lib/sdk-pega-component-map.d.ts +7 -1
  338. package/lib/sdk-pega-component-map.js +7 -1
  339. package/lib/sdk-pega-component-map.js.map +1 -1
  340. package/lib/theme.d.ts +11 -0
  341. package/lib/theme.d.ts.map +1 -0
  342. package/lib/theme.js +31 -0
  343. package/lib/theme.js.map +1 -0
  344. package/package.json +30 -1
  345. package/lib/components/infra/Containers/helpers.d.ts +0 -2
  346. package/lib/components/infra/Containers/helpers.d.ts.map +0 -1
  347. package/lib/components/infra/Containers/helpers.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Grid, Typography } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
2
+ import { Grid, Typography } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
4
  const useStyles = makeStyles(( /* theme */) => ({
5
5
  headerStyles: {
6
6
  fontWeight: 500,
@@ -1 +1 @@
1
- {"version":3,"file":"InlineDashboard.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAStD,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,YAAY,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,SAAS;KACpB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;IACD,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,mBAAmB,EAAE,iBAAiB;KACvC;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;QACxB,SAAS,EAAE,MAAM;KAClB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAA8C;IACpF,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAClD,MAAM,gBAAgB,GAAG,QAA0B,CAAC;IAEpD,MAAM,SAAS,GAAG,cAAc,KAAK,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5E,OAAO,CACL,8BACE,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAE,OAAO,CAAC,YAAY,YACrD,KAAK,GACK,EAEZ,cAAc,KAAK,aAAa,IAAI,CACnC,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAC,gBAAgB,EAAC,SAAS,EAAE,OAAO,CAAC,eAAe,aACvF,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,YAC5C,gBAAgB,CAAC,CAAC,CAAC,GACf,EACP,KAAC,IAAI,IAAC,EAAE,EAAC,SAAS,EAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,qBAAqB,YACrE,gBAAgB,CAAC,CAAC,CAAC,GACf,IACF,CACR,EACA,cAAc,KAAK,aAAa,IAAI,CACnC,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,eAAe,aAClF,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACb,gBAAgB,CAAC,CAAC,CAAC,GACf,EACP,KAAC,IAAI,IAAC,EAAE,EAAC,SAAS,EAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,YAAY,YAC3D,gBAAgB,CAAC,CAAC,CAAC,GACf,IACF,CACR,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, ReactElement } from 'react';\nimport { Grid, Typography } from '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface InlineDashboardProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n title: string;\n filterPosition?: string;\n}\n\nconst useStyles = makeStyles((/* theme */) => ({\n headerStyles: {\n fontWeight: 500,\n fontSize: '1.25rem'\n },\n containerStyles: {\n marginTop: '1rem',\n marginBottom: '1rem'\n },\n colStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline'\n },\n filterContainerStyles: {\n display: 'grid',\n gap: '1rem',\n gridTemplateColumns: 'repeat(7, 1fr);'\n },\n inlineStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline',\n marginTop: '1rem'\n }\n}));\n\nexport default function InlineDashboard(props: PropsWithChildren<InlineDashboardProps>) {\n const classes = useStyles();\n\n const { children, title, filterPosition } = props;\n const childrenToRender = children as ReactElement[];\n\n const direction = filterPosition === 'inline-start' ? 'row-reverse' : 'row';\n return (\n <>\n <Typography variant='h4' className={classes.headerStyles}>\n {title}\n </Typography>\n\n {filterPosition === 'block-start' && (\n <Grid container spacing={2} direction='column-reverse' className={classes.containerStyles}>\n <Grid item xs={12} className={classes.colStyles}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={12} className={classes.filterContainerStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n {filterPosition !== 'block-start' && (\n <Grid container spacing={2} direction={direction} className={classes.containerStyles}>\n <Grid item xs={9}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={3} className={classes.inlineStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"InlineDashboard.js","sourceRoot":"","sources":["../../../../src/components/template/InlineDashboard/InlineDashboard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAShD,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,YAAY,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,SAAS;KACpB;IACD,eAAe,EAAE;QACf,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;IACD,SAAS,EAAE;QACT,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;KACzB;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,mBAAmB,EAAE,iBAAiB;KACvC;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,MAAM;QACX,YAAY,EAAE,UAAU;QACxB,SAAS,EAAE,MAAM;KAClB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAA8C;IACpF,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAClD,MAAM,gBAAgB,GAAG,QAA0B,CAAC;IAEpD,MAAM,SAAS,GAAG,cAAc,KAAK,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5E,OAAO,CACL,8BACE,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAE,OAAO,CAAC,YAAY,YACrD,KAAK,GACK,EAEZ,cAAc,KAAK,aAAa,IAAI,CACnC,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAC,gBAAgB,EAAC,SAAS,EAAE,OAAO,CAAC,eAAe,aACvF,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,YAC5C,gBAAgB,CAAC,CAAC,CAAC,GACf,EACP,KAAC,IAAI,IAAC,EAAE,EAAC,SAAS,EAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,qBAAqB,YACrE,gBAAgB,CAAC,CAAC,CAAC,GACf,IACF,CACR,EACA,cAAc,KAAK,aAAa,IAAI,CACnC,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,eAAe,aAClF,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACb,gBAAgB,CAAC,CAAC,CAAC,GACf,EACP,KAAC,IAAI,IAAC,EAAE,EAAC,SAAS,EAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,YAAY,YAC3D,gBAAgB,CAAC,CAAC,CAAC,GACf,IACF,CACR,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, ReactElement } from 'react';\nimport { Grid, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface InlineDashboardProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n title: string;\n filterPosition?: string;\n}\n\nconst useStyles = makeStyles((/* theme */) => ({\n headerStyles: {\n fontWeight: 500,\n fontSize: '1.25rem'\n },\n containerStyles: {\n marginTop: '1rem',\n marginBottom: '1rem'\n },\n colStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline'\n },\n filterContainerStyles: {\n display: 'grid',\n gap: '1rem',\n gridTemplateColumns: 'repeat(7, 1fr);'\n },\n inlineStyles: {\n display: 'grid',\n gap: '1rem',\n alignContent: 'baseline',\n marginTop: '1rem'\n }\n}));\n\nexport default function InlineDashboard(props: PropsWithChildren<InlineDashboardProps>) {\n const classes = useStyles();\n\n const { children, title, filterPosition } = props;\n const childrenToRender = children as ReactElement[];\n\n const direction = filterPosition === 'inline-start' ? 'row-reverse' : 'row';\n return (\n <>\n <Typography variant='h4' className={classes.headerStyles}>\n {title}\n </Typography>\n\n {filterPosition === 'block-start' && (\n <Grid container spacing={2} direction='column-reverse' className={classes.containerStyles}>\n <Grid item xs={12} className={classes.colStyles}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={12} className={classes.filterContainerStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n {filterPosition !== 'block-start' && (\n <Grid container spacing={2} direction={direction} className={classes.containerStyles}>\n <Grid item xs={9}>\n {childrenToRender[0]}\n </Grid>\n <Grid id='filters' item xs={3} className={classes.inlineStyles}>\n {childrenToRender[1]}\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n"]}
@@ -12,6 +12,9 @@ interface ListViewProps extends PConnProps {
12
12
  showDynamicFields?: boolean;
13
13
  readonlyContextList?: any;
14
14
  value: any;
15
+ viewName?: string;
16
+ showRecords?: boolean;
17
+ displayAs?: string;
15
18
  }
16
19
  export default function ListView(props: ListViewProps): import("react/jsx-runtime").JSX.Element;
17
20
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListView/ListView.tsx"],"names":[],"mappings":"AAwCA,OAAO,gBAAgB,CAAC;AAMxB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,aAAc,SAAQ,UAAU;IAExC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;CACZ;AAcD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA+oCpD"}
1
+ {"version":3,"file":"ListView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/ListView/ListView.tsx"],"names":[],"mappings":"AAyCA,OAAO,gBAAgB,CAAC;AAOxB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,aAAc,SAAQ,UAAU;IAExC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IAEtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAcD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAovCpD"}
@@ -2,42 +2,44 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  /* eslint-disable no-plusplus */
3
3
  /* eslint-disable @typescript-eslint/no-use-before-define */
4
4
  /* eslint-disable @typescript-eslint/no-shadow */
5
- import { useState, useEffect, useRef } from 'react';
6
- import { createStyles, makeStyles } from '@material-ui/core/styles';
7
- import Table from '@material-ui/core/Table';
8
- import TableBody from '@material-ui/core/TableBody';
9
- import TableCell from '@material-ui/core/TableCell';
10
- import TableContainer from '@material-ui/core/TableContainer';
11
- import TableHead from '@material-ui/core/TableHead';
12
- import TablePagination from '@material-ui/core/TablePagination';
13
- import TableRow from '@material-ui/core/TableRow';
14
- import TableSortLabel from '@material-ui/core/TableSortLabel';
15
- import Paper from '@material-ui/core/Paper';
16
- import MoreIcon from '@material-ui/icons/MoreVert';
17
- import FilterListIcon from '@material-ui/icons/FilterList';
18
- import SubjectIcon from '@material-ui/icons/Subject';
19
- import SearchIcon from '@material-ui/icons/Search';
20
- import TextField from '@material-ui/core/TextField';
21
- import Grid from '@material-ui/core/Grid';
22
- import Menu from '@material-ui/core/Menu';
23
- import MenuItem from '@material-ui/core/MenuItem';
24
- import Dialog from '@material-ui/core/Dialog';
25
- import DialogActions from '@material-ui/core/DialogActions';
26
- import DialogContent from '@material-ui/core/DialogContent';
27
- import DialogTitle from '@material-ui/core/DialogTitle';
28
- import Select from '@material-ui/core/Select';
29
- import Button from '@material-ui/core/Button';
30
- import Link from '@material-ui/core/Link';
31
- import Typography from '@material-ui/core/Typography';
32
- import Snackbar from '@material-ui/core/Snackbar';
33
- import IconButton from '@material-ui/core/IconButton';
34
- import CloseIcon from '@material-ui/icons/Close';
35
- import { Radio } from '@material-ui/core';
36
- import Checkbox from '@material-ui/core/Checkbox';
5
+ import { useState, useEffect, useRef, useCallback } from 'react';
6
+ import createStyles from '@mui/styles/createStyles';
7
+ import makeStyles from '@mui/styles/makeStyles';
8
+ import Table from '@mui/material/Table';
9
+ import TableBody from '@mui/material/TableBody';
10
+ import TableCell from '@mui/material/TableCell';
11
+ import TableContainer from '@mui/material/TableContainer';
12
+ import TableHead from '@mui/material/TableHead';
13
+ import TablePagination from '@mui/material/TablePagination';
14
+ import TableRow from '@mui/material/TableRow';
15
+ import TableSortLabel from '@mui/material/TableSortLabel';
16
+ import Paper from '@mui/material/Paper';
17
+ import MoreIcon from '@mui/icons-material/MoreVert';
18
+ import FilterListIcon from '@mui/icons-material/FilterList';
19
+ import SubjectIcon from '@mui/icons-material/Subject';
20
+ import SearchIcon from '@mui/icons-material/Search';
21
+ import TextField from '@mui/material/TextField';
22
+ import Grid from '@mui/material/Grid';
23
+ import Menu from '@mui/material/Menu';
24
+ import MenuItem from '@mui/material/MenuItem';
25
+ import Dialog from '@mui/material/Dialog';
26
+ import DialogActions from '@mui/material/DialogActions';
27
+ import DialogContent from '@mui/material/DialogContent';
28
+ import DialogTitle from '@mui/material/DialogTitle';
29
+ import Select from '@mui/material/Select';
30
+ import Button from '@mui/material/Button';
31
+ import Link from '@mui/material/Link';
32
+ import Typography from '@mui/material/Typography';
33
+ import Snackbar from '@mui/material/Snackbar';
34
+ import IconButton from '@mui/material/IconButton';
35
+ import CloseIcon from '@mui/icons-material/Close';
36
+ import { Radio } from '@mui/material';
37
+ import Checkbox from '@mui/material/Checkbox';
37
38
  import { filterData } from '../../helpers/simpleTableHelpers';
38
39
  import './ListView.css';
39
40
  import { getDateFormatInfo } from '../../helpers/date-format-utils';
40
41
  import { getCurrencyOptions } from '../../field/Currency/currency-utils';
42
+ import { getGenericFieldsLocalizedValue } from '../../helpers/common-utils';
41
43
  import { format } from '../../helpers/formatters';
42
44
  import useInit from './hooks';
43
45
  const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
@@ -51,7 +53,8 @@ export default function ListView(props) {
51
53
  const { getPConnect, bInForm = true } = props;
52
54
  const { globalSearch, referenceList,
53
55
  /* rowClickAction, */
54
- selectionMode, referenceType, payload, parameters, compositeKeys, showDynamicFields, readonlyContextList: selectedValues, value } = props;
56
+ selectionMode, referenceType, payload, parameters, compositeKeys, showDynamicFields, viewName, readonlyContextList: selectedValues, value, displayAs } = props;
57
+ let { showRecords } = props;
55
58
  const ref = useRef({}).current;
56
59
  const cosmosTableRef = useRef();
57
60
  // List component context
@@ -59,6 +62,7 @@ export default function ListView(props) {
59
62
  const { meta } = listContext;
60
63
  const xRayApis = PCore.getDebugger().getXRayRuntime();
61
64
  const xRayUid = xRayApis.startXRay();
65
+ const { current: uniqueId } = useRef(crypto.randomUUID());
62
66
  useInit({
63
67
  ...props,
64
68
  setListContext,
@@ -67,8 +71,8 @@ export default function ListView(props) {
67
71
  xRayUid,
68
72
  cosmosTableRef
69
73
  });
74
+ useClearSelectionsAndUpdateTable({ getPConnect, uniqueId, viewName });
70
75
  const thePConn = getPConnect();
71
- // @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'.
72
76
  const componentConfig = thePConn.getComponentConfig();
73
77
  const resolvedConfigProps = thePConn.getConfigProps();
74
78
  /** By default, pyGUID is used for Data classes and pyID is for Work classes as row-id/key */
@@ -143,6 +147,32 @@ export default function ListView(props) {
143
147
  }
144
148
  }));
145
149
  const classes = useStyles();
150
+ // Hook to clear the selections and update table in AdvancedSearch template when switching between search views
151
+ function useClearSelectionsAndUpdateTable({ getPConnect, uniqueId, viewName }) {
152
+ const clearSelectionsAndRefreshList = useCallback(({ viewName: name, clearSelections }) => {
153
+ if (name === viewName) {
154
+ const { selectionMode } = getPConnect().getRawConfigProps();
155
+ if (!selectionMode) {
156
+ return;
157
+ }
158
+ if (clearSelections) {
159
+ if (selectionMode === 'single') {
160
+ getPConnect().getListActions().setSelectedRows({});
161
+ }
162
+ else {
163
+ getPConnect().getListActions().clearSelectedRows();
164
+ }
165
+ }
166
+ }
167
+ }, [getPConnect, viewName]);
168
+ useEffect(() => {
169
+ const identifier = `clear-and-update-advanced-search-selections-${uniqueId}`;
170
+ PCore.getPubSubUtils().subscribe('update-advanced-search-selections', clearSelectionsAndRefreshList, identifier);
171
+ return () => {
172
+ PCore.getPubSubUtils().unsubscribe('update-advanced-search-selections', identifier);
173
+ };
174
+ }, [uniqueId, clearSelectionsAndRefreshList]);
175
+ }
146
176
  const handleRequestSort = (event, property) => {
147
177
  const isAsc = orderBy === property && order === 'asc';
148
178
  setOrder(isAsc ? 'desc' : 'asc');
@@ -191,18 +221,24 @@ export default function ListView(props) {
191
221
  theField = theField.substring(1);
192
222
  }
193
223
  const colIndex = fields.findIndex(ele => ele.name === theField);
194
- const displayAsLink = field.config.displayAsLink;
224
+ // const displayAsLink = field.config.displayAsLink;
225
+ const { additionalDetails = {} } = field.config;
226
+ let shouldDisplayAsSemanticLink = additionalDetails.type === 'DISPLAY_LINK';
227
+ // TODO: This "if" check has been added for backward compatibility, to be removed once the users are notified about the changes in view metadata of US-517164
228
+ if (!shouldDisplayAsSemanticLink) {
229
+ shouldDisplayAsSemanticLink = 'displayAsLink' in field.config && field.config.displayAsLink;
230
+ }
195
231
  const headerRow = {};
196
232
  headerRow.id = fields[index].id;
197
233
  headerRow.type = field.type;
198
- headerRow.displayAsLink = displayAsLink;
234
+ headerRow.displayAsLink = shouldDisplayAsSemanticLink;
199
235
  headerRow.numeric = field.type === 'Decimal' || field.type === 'Integer' || field.type === 'Percentage' || field.type === 'Currency' || false;
200
236
  headerRow.disablePadding = false;
201
237
  headerRow.label = fields[index].label;
202
238
  if (colIndex > -1) {
203
239
  headerRow.classID = fields[colIndex].classID;
204
240
  }
205
- if (displayAsLink) {
241
+ if (shouldDisplayAsSemanticLink) {
206
242
  headerRow.isAssignmentLink = AssignDashObjects.includes(headerRow.classID);
207
243
  if (field.config.value?.startsWith('@CA')) {
208
244
  headerRow.isAssociation = true;
@@ -236,29 +272,43 @@ export default function ListView(props) {
236
272
  }
237
273
  // Will be triggered when EVENT_DASHBOARD_FILTER_CHANGE fires
238
274
  function processFilterChange(data) {
239
- const { filterId, filterExpression } = data;
275
+ let filterId;
276
+ let filterExpression;
277
+ let isDateRange;
278
+ let field;
240
279
  let dashboardFilterPayload = {
241
280
  query: {
242
281
  filter: {},
243
282
  select: []
244
283
  }
245
284
  };
246
- filters.current[filterId] = filterExpression;
247
- let isDateRange = data.filterExpression?.AND;
248
- // Will be AND by default but making it dynamic in case we support dynamic relational ops in future
249
- const relationalOp = 'AND';
250
- let field = getFieldFromFilter(filterExpression, isDateRange);
251
- selectParam = [];
252
- // Constructing the select parameters list (will be sent in dashboardFilterPayload)
253
- columnList.current.forEach(col => {
254
- selectParam.push({
255
- field: col
285
+ if (displayAs === 'advancedSearch') {
286
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
287
+ Object.entries(data).reduce((acc, [item, value]) => {
288
+ const { filterId, filterExpression } = value;
289
+ filters.current[filterId] = filterExpression;
290
+ return acc; // Ensure the accumulator is returned
291
+ }, {});
292
+ }
293
+ else {
294
+ ({ filterId, filterExpression } = data);
295
+ filters.current[filterId] = filterExpression;
296
+ isDateRange = data.filterExpression?.AND;
297
+ field = getFieldFromFilter(filterExpression, isDateRange);
298
+ selectParam = [];
299
+ // Constructing the select parameters list (will be sent in dashboardFilterPayload)
300
+ columnList.current.forEach(col => {
301
+ selectParam.push({
302
+ field: col
303
+ });
256
304
  });
257
- });
258
- // Checking if the triggered filter is applicable for this list
259
- if (data.filterExpression !== null && !(columnList.current?.length && columnList.current?.includes(field))) {
260
- return;
305
+ // Checking if the triggered filter is applicable for this list
306
+ if (data.filterExpression !== null && !(columnList.current?.length && columnList.current?.includes(field))) {
307
+ return;
308
+ }
261
309
  }
310
+ // Will be AND by default but making it dynamic in case we support dynamic relational ops in future
311
+ const relationalOp = 'AND';
262
312
  // This is a flag which will be used to reset dashboardFilterPayload in case we don't find any valid filters
263
313
  let validFilter = false;
264
314
  let index = 1;
@@ -300,7 +350,7 @@ export default function ListView(props) {
300
350
  else {
301
351
  dashboardFilterPayload.query.filter.filterConditions = {
302
352
  ...dashboardFilterPayload.query.filter.filterConditions,
303
- [`T${index++}`]: { ...filter.condition, ignoreCase: true }
353
+ [`T${index++}`]: { ...filter.condition, ...(filter.condition.comparator === 'CONTAINS' ? { ignoreCase: true } : {}) }
304
354
  };
305
355
  if (dashboardFilterPayload.query.filter.logic) {
306
356
  dashboardFilterPayload.query.filter.logic = `${dashboardFilterPayload.query.filter.logic} ${relationalOp} T${index - 1}`;
@@ -324,6 +374,9 @@ export default function ListView(props) {
324
374
  fetchDataFromServer();
325
375
  }
326
376
  function fetchAllData(fields) {
377
+ if (displayAs === 'advancedSearch' && !showRecords) {
378
+ return Promise.resolve({ data: null });
379
+ }
327
380
  let query = null;
328
381
  if (payload) {
329
382
  query = payload.query;
@@ -454,8 +507,35 @@ export default function ListView(props) {
454
507
  bCallSetRowsColumns = false;
455
508
  };
456
509
  }
510
+ function prepareFilters(data) {
511
+ return Object.entries(data.payload).reduce((acc, [field, value]) => {
512
+ if (value) {
513
+ let comparator = 'EQ';
514
+ const filterRecord = listContext.meta.fieldDefs.filter(item => item.id === field);
515
+ if (filterRecord?.[0]?.meta.type === 'TextInput') {
516
+ comparator = 'CONTAINS';
517
+ }
518
+ acc[field] = {
519
+ filterExpression: {
520
+ condition: {
521
+ lhs: {
522
+ field
523
+ },
524
+ comparator,
525
+ rhs: {
526
+ value
527
+ }
528
+ }
529
+ },
530
+ filterId: field
531
+ };
532
+ }
533
+ return acc;
534
+ }, {});
535
+ }
457
536
  useEffect(() => {
458
537
  if (listContext.meta) {
538
+ const identifier = `promoted-filters-queryable-${uniqueId}`;
459
539
  fetchDataFromServer();
460
540
  setTimeout(() => {
461
541
  PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, data => {
@@ -465,10 +545,16 @@ export default function ListView(props) {
465
545
  filters.current = {};
466
546
  processFilterClear();
467
547
  }, `dashboard-component-${'id'}`, false, getPConnect().getContextName());
548
+ PCore.getPubSubUtils().subscribe(PCore.getEvents().getTransientEvent().UPDATE_PROMOTED_FILTERS, data => {
549
+ showRecords = data.showRecords;
550
+ const filterData = prepareFilters(data);
551
+ processFilterChange(filterData);
552
+ }, identifier);
468
553
  }, 0);
469
554
  return function cleanupSubscriptions() {
470
555
  PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, `dashboard-component-${'id'}`, getPConnect().getContextName());
471
556
  PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL, `dashboard-component-${'id'}`, getPConnect().getContextName());
557
+ PCore.getPubSubUtils().unsubscribe(PCore.getEvents().getTransientEvent().UPDATE_PROMOTED_FILTERS, identifier);
472
558
  };
473
559
  }
474
560
  }, [listContext]);
@@ -510,7 +596,6 @@ export default function ListView(props) {
510
596
  const options = { containerName: sTarget, channelName: '' };
511
597
  thePConn
512
598
  .getActionsApi()
513
- // @ts-ignore
514
599
  .openAssignment(pzInsKey, pxRefObjectClass, options)
515
600
  .then(() => {
516
601
  // console.log("openAssignment successful");
@@ -711,7 +796,6 @@ export default function ListView(props) {
711
796
  pzInsKey = row[`${associationCategory}:pzInsKey`];
712
797
  }
713
798
  if (column.isAssignmentLink) {
714
- // @ts-ignore
715
799
  thePConn.getActionsApi().openAssignment(pzInsKey, pxObjClass, {
716
800
  containerName: 'primary',
717
801
  channelName: ''
@@ -810,16 +894,17 @@ export default function ListView(props) {
810
894
  return (_jsxs(TableCell, { className: classes.cell, sortDirection: orderBy === column.id ? order : false, children: [_jsxs(TableSortLabel, { active: orderBy === column.id, direction: orderBy === column.id ? order : 'asc', onClick: createSortHandler(column.id), children: [column.label, _showFilteredIcon(column.id) && _jsx(FilterListIcon, { className: classes.filteredIcon }), orderBy === column.id ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }), _jsx(MoreIcon, { className: classes.moreIcon, onClick: event => {
811
895
  _menuClick(event, column.id, column.type, column.label);
812
896
  } })] }, column.id));
813
- }) }) }), _jsx(TableBody, { children: stableSort(arRows, getComparator(order, orderBy))
814
- .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
815
- .map(row => {
816
- return (_jsx(TableRow, { children: arColumns.map(column => {
817
- const value = row[column.id];
818
- return (_jsx(TableCell, { align: column.align, className: classes.cell, children: _showButton(column.id, row) || column.displayAsLink ? (_jsx(Link, { component: 'button', onClick: () => {
819
- _listViewClick(row, column);
820
- }, children: column.format && typeof value === 'number' ? column.format(value) : value })) : (_jsx(_Fragment, { children: column.format && typeof value === 'number' ? column.format(value) : value || '---' })) }, column.id));
821
- }) }, row.pxRefObjectInsName || row.pyID));
822
- }) })] }) })) : (_jsxs(TableContainer, { id: 'list-view', children: [_jsxs(Table, { children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [(selectionMode === SELECTION_MODE.SINGLE || selectionMode === SELECTION_MODE.MULTI) && _jsx(TableCell, {}), arColumns.map(column => {
897
+ }) }) }), _jsx(TableBody, { children: arRows &&
898
+ stableSort(arRows, getComparator(order, orderBy))
899
+ .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
900
+ .map(row => {
901
+ return (_jsx(TableRow, { children: arColumns.map(column => {
902
+ const value = row[column.id];
903
+ return (_jsx(TableCell, { align: column.align, className: classes.cell, children: _showButton(column.id, row) || column.displayAsLink ? (_jsx(Link, { component: 'button', onClick: () => {
904
+ _listViewClick(row, column);
905
+ }, underline: 'hover', children: column.format && typeof value === 'number' ? column.format(value) : value })) : (_jsx(_Fragment, { children: column.format && typeof value === 'number' ? column.format(value) : value || '---' })) }, column.id));
906
+ }) }, row.pxRefObjectInsName || row.pyID));
907
+ }) })] }) })) : (_jsxs(TableContainer, { id: 'list-view', children: [_jsxs(Table, { children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [(selectionMode === SELECTION_MODE.SINGLE || selectionMode === SELECTION_MODE.MULTI) && _jsx(TableCell, {}), arColumns.map(column => {
823
908
  return (_jsx(TableCell, { className: classes.cell, sortDirection: orderBy === column.id ? order : false, children: _jsxs(TableSortLabel, { active: orderBy === column.id, direction: orderBy === column.id ? order : 'asc', onClick: createSortHandler(column.id), children: [column.label, orderBy === column.id ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }) }, column.id));
824
909
  })] }) }), _jsx(TableBody, { children: arRows &&
825
910
  arRows.length > 0 &&
@@ -830,6 +915,6 @@ export default function ListView(props) {
830
915
  const value = row[column.id];
831
916
  return (_jsx(TableCell, { className: classes.cell, align: column.align, children: processColumnValue(column, value) }, column.id));
832
917
  })] }, row[rowID]));
833
- }) })] }), arRows && arRows.length === 0 && _jsx("div", { className: 'no-records', children: "No records found." })] })) }), arRows && arRows.length > 0 && (_jsx(TablePagination, { id: 'pagination', rowsPerPageOptions: [10, 25, 100], component: 'div', count: arRows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage }))] })), _jsxs(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: _menuClose, children: [_jsxs(MenuItem, { onClick: _filterMenu, children: [_jsx(FilterListIcon, {}), " Filter"] }), _jsxs(MenuItem, { onClick: _groupMenu, children: [_jsx(SubjectIcon, {}), " Group"] })] }), _jsxs(Dialog, { open: open, onClose: _closeDialog, "aria-labelledby": 'form-dialog-title', children: [_jsxs(DialogTitle, { id: 'form-dialog-title', children: ["Filter: ", filterBy] }), _jsx(DialogContent, { children: containsDateOrTime ? (_jsxs(_Fragment, { children: [_jsxs(Select, { value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true, children: [_jsx(MenuItem, { value: 'notequal', children: "is not equal to" }), _jsx(MenuItem, { value: 'after', children: "after" }), _jsx(MenuItem, { value: 'before', children: "before" }), _jsx(MenuItem, { value: 'null', children: "is null" }), _jsx(MenuItem, { value: 'notnull', children: "is not null" })] }), filterType === 'Date' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'DateTime' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'Time' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue }))] })) : (_jsxs(_Fragment, { children: [_jsxs(Select, { fullWidth: true, onChange: _dialogContainsFilter, value: displayDialogContainsFilter, children: [_jsx(MenuItem, { value: 'contains', children: "Contains" }), _jsx(MenuItem, { value: 'equals', children: "Equals" }), _jsx(MenuItem, { value: 'startswith', children: "Starts with" })] }), _jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'text', fullWidth: true, value: displayDialogContainsValue, onChange: _dialogContainsValue })] })) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: _closeDialog, color: 'secondary', children: "Cancel" }), _jsx(Button, { onClick: _submitFilter, color: 'primary', children: "Submit" })] })] }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }));
918
+ }) })] }), (!arRows || arRows.length === 0) && (_jsx("div", { className: 'no-records', children: getGenericFieldsLocalizedValue('CosmosFields.fields.lists', 'No records found.') }))] })) }), arRows && arRows.length > 0 && (_jsx(TablePagination, { id: 'pagination', rowsPerPageOptions: [10, 25, 100], component: 'div', count: arRows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage }))] })), _jsxs(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: _menuClose, children: [_jsxs(MenuItem, { onClick: _filterMenu, children: [_jsx(FilterListIcon, {}), " Filter"] }), _jsxs(MenuItem, { onClick: _groupMenu, children: [_jsx(SubjectIcon, {}), " Group"] })] }), _jsxs(Dialog, { open: open, onClose: _closeDialog, "aria-labelledby": 'form-dialog-title', children: [_jsxs(DialogTitle, { id: 'form-dialog-title', children: ["Filter: ", filterBy] }), _jsx(DialogContent, { children: containsDateOrTime ? (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true, children: [_jsx(MenuItem, { value: 'notequal', children: "is not equal to" }), _jsx(MenuItem, { value: 'after', children: "after" }), _jsx(MenuItem, { value: 'before', children: "before" }), _jsx(MenuItem, { value: 'null', children: "is null" }), _jsx(MenuItem, { value: 'notnull', children: "is not null" })] }), filterType === 'Date' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'DateTime' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'Time' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue }))] })) : (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', fullWidth: true, onChange: _dialogContainsFilter, value: displayDialogContainsFilter, children: [_jsx(MenuItem, { value: 'contains', children: "Contains" }), _jsx(MenuItem, { value: 'equals', children: "Equals" }), _jsx(MenuItem, { value: 'startswith', children: "Starts with" })] }), _jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'text', fullWidth: true, value: displayDialogContainsValue, onChange: _dialogContainsValue })] })) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: _closeDialog, color: 'secondary', children: "Cancel" }), _jsx(Button, { onClick: _submitFilter, color: 'primary', children: "Submit" })] })] }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }));
834
919
  }
835
920
  //# sourceMappingURL=ListView.js.map