@pega/react-sdk-components 0.24.3 → 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 +137 -140
  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 +16 -10
  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 +31 -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 +166 -90
  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;AAeD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA2pCpD"}
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,47 +2,48 @@ 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' };
44
46
  let myRows;
45
- let myDisplayColumnList;
46
47
  let menuColumnId = '';
47
48
  let menuColumnType = '';
48
49
  let menuColumnLabel = '';
@@ -52,7 +53,8 @@ export default function ListView(props) {
52
53
  const { getPConnect, bInForm = true } = props;
53
54
  const { globalSearch, referenceList,
54
55
  /* rowClickAction, */
55
- 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;
56
58
  const ref = useRef({}).current;
57
59
  const cosmosTableRef = useRef();
58
60
  // List component context
@@ -60,6 +62,7 @@ export default function ListView(props) {
60
62
  const { meta } = listContext;
61
63
  const xRayApis = PCore.getDebugger().getXRayRuntime();
62
64
  const xRayUid = xRayApis.startXRay();
65
+ const { current: uniqueId } = useRef(crypto.randomUUID());
63
66
  useInit({
64
67
  ...props,
65
68
  setListContext,
@@ -68,8 +71,8 @@ export default function ListView(props) {
68
71
  xRayUid,
69
72
  cosmosTableRef
70
73
  });
74
+ useClearSelectionsAndUpdateTable({ getPConnect, uniqueId, viewName });
71
75
  const thePConn = getPConnect();
72
- // @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'.
73
76
  const componentConfig = thePConn.getComponentConfig();
74
77
  const resolvedConfigProps = thePConn.getConfigProps();
75
78
  /** By default, pyGUID is used for Data classes and pyID is for Work classes as row-id/key */
@@ -77,6 +80,7 @@ export default function ListView(props) {
77
80
  /** If compositeKeys is defined, use dynamic value, else fallback to pyID or pyGUID. */
78
81
  const rowID = compositeKeys && compositeKeys?.length === 1 ? compositeKeys[0] : defRowID;
79
82
  const [arRows, setRows] = useState([]);
83
+ const [rowsData, setRowsData] = useState([]);
80
84
  const [arColumns, setColumns] = useState([]);
81
85
  const [response, setResponse] = useState([]);
82
86
  const [order, setOrder] = useState('asc');
@@ -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;
@@ -223,13 +259,6 @@ export default function ListView(props) {
223
259
  return data;
224
260
  });
225
261
  }
226
- function getMyColumnList(arCols) {
227
- const myColList = [];
228
- arCols.forEach(col => {
229
- myColList.push(col.id);
230
- });
231
- return myColList;
232
- }
233
262
  /** Will return field from a filter expression */
234
263
  function getFieldFromFilter(filter, dateRange = false) {
235
264
  let fieldValue;
@@ -243,29 +272,43 @@ export default function ListView(props) {
243
272
  }
244
273
  // Will be triggered when EVENT_DASHBOARD_FILTER_CHANGE fires
245
274
  function processFilterChange(data) {
246
- const { filterId, filterExpression } = data;
275
+ let filterId;
276
+ let filterExpression;
277
+ let isDateRange;
278
+ let field;
247
279
  let dashboardFilterPayload = {
248
280
  query: {
249
281
  filter: {},
250
282
  select: []
251
283
  }
252
284
  };
253
- filters.current[filterId] = filterExpression;
254
- let isDateRange = data.filterExpression?.AND;
255
- // Will be AND by default but making it dynamic in case we support dynamic relational ops in future
256
- const relationalOp = 'AND';
257
- let field = getFieldFromFilter(filterExpression, isDateRange);
258
- selectParam = [];
259
- // Constructing the select parameters list (will be sent in dashboardFilterPayload)
260
- columnList.current.forEach(col => {
261
- selectParam.push({
262
- 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
+ });
263
304
  });
264
- });
265
- // Checking if the triggered filter is applicable for this list
266
- if (data.filterExpression !== null && !(columnList.current?.length && columnList.current?.includes(field))) {
267
- 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
+ }
268
309
  }
310
+ // Will be AND by default but making it dynamic in case we support dynamic relational ops in future
311
+ const relationalOp = 'AND';
269
312
  // This is a flag which will be used to reset dashboardFilterPayload in case we don't find any valid filters
270
313
  let validFilter = false;
271
314
  let index = 1;
@@ -307,7 +350,7 @@ export default function ListView(props) {
307
350
  else {
308
351
  dashboardFilterPayload.query.filter.filterConditions = {
309
352
  ...dashboardFilterPayload.query.filter.filterConditions,
310
- [`T${index++}`]: { ...filter.condition, ignoreCase: true }
353
+ [`T${index++}`]: { ...filter.condition, ...(filter.condition.comparator === 'CONTAINS' ? { ignoreCase: true } : {}) }
311
354
  };
312
355
  if (dashboardFilterPayload.query.filter.logic) {
313
356
  dashboardFilterPayload.query.filter.logic = `${dashboardFilterPayload.query.filter.logic} ${relationalOp} T${index - 1}`;
@@ -331,6 +374,9 @@ export default function ListView(props) {
331
374
  fetchDataFromServer();
332
375
  }
333
376
  function fetchAllData(fields) {
377
+ if (displayAs === 'advancedSearch' && !showRecords) {
378
+ return Promise.resolve({ data: null });
379
+ }
334
380
  let query = null;
335
381
  if (payload) {
336
382
  query = payload.query;
@@ -444,7 +490,7 @@ export default function ListView(props) {
444
490
  const usingDataResults = getUsingData(tableDataResults);
445
491
  // store globally, so can be searched, filtered, etc.
446
492
  myRows = usingDataResults;
447
- myDisplayColumnList = getMyColumnList(myColumns);
493
+ setRowsData(myRows);
448
494
  // At this point, if we have data ready to render and haven't been asked
449
495
  // to NOT call setRows and setColumns, call them
450
496
  if (bCallSetRowsColumns) {
@@ -461,8 +507,35 @@ export default function ListView(props) {
461
507
  bCallSetRowsColumns = false;
462
508
  };
463
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
+ }
464
536
  useEffect(() => {
465
537
  if (listContext.meta) {
538
+ const identifier = `promoted-filters-queryable-${uniqueId}`;
466
539
  fetchDataFromServer();
467
540
  setTimeout(() => {
468
541
  PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, data => {
@@ -472,38 +545,42 @@ export default function ListView(props) {
472
545
  filters.current = {};
473
546
  processFilterClear();
474
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);
475
553
  }, 0);
476
554
  return function cleanupSubscriptions() {
477
555
  PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, `dashboard-component-${'id'}`, getPConnect().getContextName());
478
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);
479
558
  };
480
559
  }
481
560
  }, [listContext]);
482
561
  function searchFilter(value, rows) {
562
+ const cols = arColumns.map(ele => {
563
+ return ele.id;
564
+ });
483
565
  function filterArray(el) {
484
- const bReturn = false;
485
- for (const key of Object.keys(el)) {
486
- // only search columsn that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
487
- if (myDisplayColumnList.includes(key)) {
488
- let myVal = el[key];
489
- if (myVal !== null) {
490
- if (typeof myVal !== 'string') {
491
- myVal = myVal.toString();
492
- }
493
- if (myVal.toLowerCase().indexOf(value.toLowerCase()) >= 0) {
494
- return true;
495
- }
566
+ return Object.keys(el).some(key => {
567
+ // only search columns that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
568
+ if (cols.includes(key)) {
569
+ const myVal = el[key];
570
+ if (myVal !== null && typeof myVal !== 'undefined') {
571
+ const strVal = String(myVal); // Ensure myVal is a string
572
+ return strVal.toLowerCase().includes(value.toLowerCase());
496
573
  }
497
574
  }
498
- }
499
- return bReturn;
575
+ return false;
576
+ });
500
577
  }
501
578
  rows = rows.filter(filterArray);
502
579
  return rows;
503
580
  }
504
581
  function _onSearch(event) {
505
582
  const searchValue = event.target.value;
506
- const filteredRows = searchFilter(searchValue, myRows.slice());
583
+ const filteredRows = searchFilter(searchValue, rowsData?.slice());
507
584
  setRows(filteredRows);
508
585
  }
509
586
  function showToast(message) {
@@ -519,7 +596,6 @@ export default function ListView(props) {
519
596
  const options = { containerName: sTarget, channelName: '' };
520
597
  thePConn
521
598
  .getActionsApi()
522
- // @ts-ignore
523
599
  .openAssignment(pzInsKey, pxRefObjectClass, options)
524
600
  .then(() => {
525
601
  // console.log("openAssignment successful");
@@ -720,7 +796,6 @@ export default function ListView(props) {
720
796
  pzInsKey = row[`${associationCategory}:pzInsKey`];
721
797
  }
722
798
  if (column.isAssignmentLink) {
723
- // @ts-ignore
724
799
  thePConn.getActionsApi().openAssignment(pzInsKey, pxObjClass, {
725
800
  containerName: 'primary',
726
801
  channelName: ''
@@ -819,16 +894,17 @@ export default function ListView(props) {
819
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 => {
820
895
  _menuClick(event, column.id, column.type, column.label);
821
896
  } })] }, column.id));
822
- }) }) }), _jsx(TableBody, { children: stableSort(arRows, getComparator(order, orderBy))
823
- .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
824
- .map(row => {
825
- return (_jsx(TableRow, { children: arColumns.map(column => {
826
- const value = row[column.id];
827
- return (_jsx(TableCell, { align: column.align, className: classes.cell, children: _showButton(column.id, row) || column.displayAsLink ? (_jsx(Link, { component: 'button', onClick: () => {
828
- _listViewClick(row, column);
829
- }, children: column.format && typeof value === 'number' ? column.format(value) : value })) : (_jsx(_Fragment, { children: column.format && typeof value === 'number' ? column.format(value) : value || '---' })) }, column.id));
830
- }) }, row.pxRefObjectInsName || row.pyID));
831
- }) })] }) })) : (_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 => {
832
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));
833
909
  })] }) }), _jsx(TableBody, { children: arRows &&
834
910
  arRows.length > 0 &&
@@ -839,6 +915,6 @@ export default function ListView(props) {
839
915
  const value = row[column.id];
840
916
  return (_jsx(TableCell, { className: classes.cell, align: column.align, children: processColumnValue(column, value) }, column.id));
841
917
  })] }, row[rowID]));
842
- }) })] }), 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' }) }) })] }));
843
919
  }
844
920
  //# sourceMappingURL=ListView.js.map