@pega/react-sdk-components 24.2.10 → 25.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (643) hide show
  1. package/lib/bridge/Context/StoreContext.d.ts +0 -1
  2. package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
  3. package/lib/bridge/Context/StoreContext.js.map +1 -1
  4. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  5. package/lib/bridge/helpers/sdk_component_map.js +0 -6
  6. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  7. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  8. package/lib/bridge/react_pconnect.js +11 -14
  9. package/lib/bridge/react_pconnect.js.map +1 -1
  10. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  11. package/lib/components/designSystemExtension/Banner/Banner.css +1 -1
  12. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  13. package/lib/components/designSystemExtension/Banner/Banner.js +2 -2
  14. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  15. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  16. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +50 -35
  18. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  19. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  20. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +6 -8
  21. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  22. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  23. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  24. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -5
  25. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  26. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +2 -2
  27. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  28. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  29. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -6
  30. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  31. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
  32. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  33. package/lib/components/designSystemExtension/Operator/Operator.js +12 -9
  34. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  35. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  36. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  37. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  38. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +32 -4
  40. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  41. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
  42. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +12 -2
  44. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  45. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
  46. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  47. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  48. package/lib/components/field/CancelAlert/CancelAlert.css +4 -4
  49. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
  50. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  51. package/lib/components/field/CancelAlert/CancelAlert.js +4 -7
  52. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  53. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  54. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  55. package/lib/components/field/Checkbox/Checkbox.js +52 -3
  56. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  57. package/lib/components/field/Currency/Currency.d.ts +1 -1
  58. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  59. package/lib/components/field/Currency/Currency.js +8 -7
  60. package/lib/components/field/Currency/Currency.js.map +1 -1
  61. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  62. package/lib/components/field/Currency/currency-utils.js +0 -2
  63. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  64. package/lib/components/field/Date/Date.d.ts +1 -1
  65. package/lib/components/field/Date/Date.d.ts.map +1 -1
  66. package/lib/components/field/Date/Date.js +7 -7
  67. package/lib/components/field/Date/Date.js.map +1 -1
  68. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  69. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  70. package/lib/components/field/DateTime/DateTime.js +15 -11
  71. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  72. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  73. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  74. package/lib/components/field/Decimal/Decimal.js +7 -6
  75. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  76. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
  77. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  78. package/lib/components/field/Dropdown/Dropdown.js +16 -13
  79. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  80. package/lib/components/field/Email/Email.d.ts +1 -1
  81. package/lib/components/field/Email/Email.d.ts.map +1 -1
  82. package/lib/components/field/Email/Email.js +6 -7
  83. package/lib/components/field/Email/Email.js.map +1 -1
  84. package/lib/components/field/Group/Group.d.ts +2 -2
  85. package/lib/components/field/Group/Group.d.ts.map +1 -1
  86. package/lib/components/field/Group/Group.js +4 -3
  87. package/lib/components/field/Group/Group.js.map +1 -1
  88. package/lib/components/field/Integer/Integer.d.ts +1 -1
  89. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  90. package/lib/components/field/Integer/Integer.js +4 -5
  91. package/lib/components/field/Integer/Integer.js.map +1 -1
  92. package/lib/components/field/Location/Location.css +4 -0
  93. package/lib/components/field/Location/Location.d.ts +11 -0
  94. package/lib/components/field/Location/Location.d.ts.map +1 -0
  95. package/lib/components/field/Location/Location.js +158 -0
  96. package/lib/components/field/Location/Location.js.map +1 -0
  97. package/lib/components/field/Location/index.d.ts +2 -0
  98. package/lib/components/field/Location/index.d.ts.map +1 -0
  99. package/lib/components/field/Location/index.js +2 -0
  100. package/lib/components/field/Location/index.js.map +1 -0
  101. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  102. package/lib/components/field/Multiselect/utils.d.ts +2 -1
  103. package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
  104. package/lib/components/field/Multiselect/utils.js +1 -1
  105. package/lib/components/field/Multiselect/utils.js.map +1 -1
  106. package/lib/components/field/ObjectReference/ObjectReference.d.ts +16 -0
  107. package/lib/components/field/ObjectReference/ObjectReference.d.ts.map +1 -0
  108. package/lib/components/field/ObjectReference/ObjectReference.js +165 -0
  109. package/lib/components/field/ObjectReference/ObjectReference.js.map +1 -0
  110. package/lib/components/field/ObjectReference/index.d.ts +2 -0
  111. package/lib/components/field/ObjectReference/index.d.ts.map +1 -0
  112. package/lib/components/field/ObjectReference/index.js +2 -0
  113. package/lib/components/field/ObjectReference/index.js.map +1 -0
  114. package/lib/components/field/ObjectReference/utils.d.ts +17 -0
  115. package/lib/components/field/ObjectReference/utils.d.ts.map +1 -0
  116. package/lib/components/field/ObjectReference/utils.js +99 -0
  117. package/lib/components/field/ObjectReference/utils.js.map +1 -0
  118. package/lib/components/field/Percentage/Percentage.d.ts +1 -1
  119. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  120. package/lib/components/field/Percentage/Percentage.js +7 -7
  121. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  122. package/lib/components/field/Phone/Phone.d.ts +1 -1
  123. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  124. package/lib/components/field/Phone/Phone.js +6 -4
  125. package/lib/components/field/Phone/Phone.js.map +1 -1
  126. package/lib/components/field/RadioButtons/RadioButtons.d.ts +8 -1
  127. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  128. package/lib/components/field/RadioButtons/RadioButtons.js +15 -10
  129. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  130. package/lib/components/field/RichText/RichText.css +79 -0
  131. package/lib/components/field/RichText/RichText.d.ts +2 -1
  132. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  133. package/lib/components/field/RichText/RichText.js +1 -0
  134. package/lib/components/field/RichText/RichText.js.map +1 -1
  135. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  136. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  137. package/lib/components/field/ScalarList/ScalarList.js +3 -4
  138. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  139. package/lib/components/field/SelectableCard/SelectableCard.d.ts +2 -0
  140. package/lib/components/field/SelectableCard/SelectableCard.d.ts.map +1 -0
  141. package/lib/components/field/SelectableCard/SelectableCard.js +57 -0
  142. package/lib/components/field/SelectableCard/SelectableCard.js.map +1 -0
  143. package/lib/components/field/SelectableCard/index.d.ts +2 -0
  144. package/lib/components/field/SelectableCard/index.d.ts.map +1 -0
  145. package/lib/components/field/SelectableCard/index.js +2 -0
  146. package/lib/components/field/SelectableCard/index.js.map +1 -0
  147. package/lib/components/field/SelectableCard/utils.d.ts +13 -0
  148. package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
  149. package/lib/components/field/SelectableCard/utils.js +183 -0
  150. package/lib/components/field/SelectableCard/utils.js.map +1 -0
  151. package/lib/components/field/SemanticLink/SemanticLink.d.ts +10 -2
  152. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  153. package/lib/components/field/SemanticLink/SemanticLink.js +128 -15
  154. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  155. package/lib/components/field/SemanticLink/utils.js +1 -1
  156. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  157. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  158. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  159. package/lib/components/field/TextArea/TextArea.js +4 -5
  160. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  161. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  162. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  163. package/lib/components/field/TextContent/TextContent.js +0 -1
  164. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  165. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  166. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  167. package/lib/components/field/TextInput/TextInput.js +4 -5
  168. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  169. package/lib/components/field/Time/Time.d.ts +1 -1
  170. package/lib/components/field/Time/Time.d.ts.map +1 -1
  171. package/lib/components/field/Time/Time.js +3 -6
  172. package/lib/components/field/Time/Time.js.map +1 -1
  173. package/lib/components/field/URL/URL.d.ts +1 -1
  174. package/lib/components/field/URL/URL.d.ts.map +1 -1
  175. package/lib/components/field/URL/URL.js +4 -5
  176. package/lib/components/field/URL/URL.js.map +1 -1
  177. package/lib/components/field/UserReference/UserReference.d.ts +1 -2
  178. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  179. package/lib/components/field/UserReference/UserReference.js +2 -5
  180. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  181. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
  182. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  183. package/lib/components/helpers/attachmentShared.d.ts +2 -0
  184. package/lib/components/helpers/attachmentShared.d.ts.map +1 -0
  185. package/lib/components/helpers/attachmentShared.js +6 -0
  186. package/lib/components/helpers/attachmentShared.js.map +1 -0
  187. package/lib/components/helpers/case-utils.js.map +1 -1
  188. package/lib/components/helpers/common-utils.d.ts +8 -1
  189. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  190. package/lib/components/helpers/common-utils.js +20 -1
  191. package/lib/components/helpers/common-utils.js.map +1 -1
  192. package/lib/components/helpers/data_page.d.ts.map +1 -1
  193. package/lib/components/helpers/data_page.js +0 -1
  194. package/lib/components/helpers/data_page.js.map +1 -1
  195. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  196. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  197. package/lib/components/helpers/event-utils.js.map +1 -1
  198. package/lib/components/helpers/field-group-utils.d.ts +1 -1
  199. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  200. package/lib/components/helpers/field-group-utils.js.map +1 -1
  201. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  202. package/lib/components/helpers/formatters/Currency.d.ts +1 -0
  203. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  204. package/lib/components/helpers/formatters/Currency.js +20 -19
  205. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  206. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  207. package/lib/components/helpers/formatters/CurrencyMap.js +0 -1
  208. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  209. package/lib/components/helpers/formatters/Date.js.map +1 -1
  210. package/lib/components/helpers/formatters/common.d.ts +2 -2
  211. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  212. package/lib/components/helpers/formatters/common.js +2 -1
  213. package/lib/components/helpers/formatters/common.js.map +1 -1
  214. package/lib/components/helpers/formatters/index.d.ts +1 -0
  215. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  216. package/lib/components/helpers/formatters/index.js +2 -3
  217. package/lib/components/helpers/formatters/index.js.map +1 -1
  218. package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
  219. package/lib/components/helpers/object-utils.d.ts +9 -0
  220. package/lib/components/helpers/object-utils.d.ts.map +1 -0
  221. package/lib/components/helpers/object-utils.js +11 -0
  222. package/lib/components/helpers/object-utils.js.map +1 -0
  223. package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
  224. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  225. package/lib/components/helpers/simpleTableHelpers.d.ts +16 -2
  226. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  227. package/lib/components/helpers/simpleTableHelpers.js +111 -5
  228. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  229. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  230. package/lib/components/helpers/state-utils.js.map +1 -1
  231. package/lib/components/helpers/template-utils.js.map +1 -1
  232. package/lib/components/helpers/utils.d.ts +1 -0
  233. package/lib/components/helpers/utils.d.ts.map +1 -1
  234. package/lib/components/helpers/utils.js +7 -1
  235. package/lib/components/helpers/utils.js.map +1 -1
  236. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  237. package/lib/components/helpers/versionHelpers.js +0 -1
  238. package/lib/components/helpers/versionHelpers.js.map +1 -1
  239. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  240. package/lib/components/infra/ActionButtons/ActionButtons.js +12 -7
  241. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  242. package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
  243. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  244. package/lib/components/infra/Assignment/Assignment.js +35 -36
  245. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  246. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
  247. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  248. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  249. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
  250. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  251. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +18 -93
  252. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  253. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  254. package/lib/components/infra/Containers/FlowContainer/helpers.js +1 -5
  255. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  256. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
  257. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  258. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +3 -2
  259. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  260. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -1
  261. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  262. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +4 -5
  263. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  264. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
  265. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  266. package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
  267. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
  268. package/lib/components/infra/Containers/SimpleView/helper.js +1 -1
  269. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  270. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  271. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  272. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +3 -4
  273. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  274. package/lib/components/infra/Containers/container-helpers.d.ts +3 -0
  275. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -0
  276. package/lib/components/infra/Containers/container-helpers.js +52 -0
  277. package/lib/components/infra/Containers/container-helpers.js.map +1 -0
  278. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
  279. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  280. package/lib/components/infra/DashboardFilter/DashboardFilter.js +3 -7
  281. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  282. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  283. package/lib/components/infra/DashboardFilter/filterUtils.js +2 -5
  284. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  285. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +2 -1
  286. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  287. package/lib/components/infra/DeferLoad/DeferLoad.js +6 -9
  288. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  289. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  290. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  291. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +0 -2
  292. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  293. package/lib/components/infra/MultiStep/MultiStep.css +48 -70
  294. package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
  295. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  296. package/lib/components/infra/MultiStep/MultiStep.js +19 -41
  297. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  298. package/lib/components/infra/NavBar/NavBar.css +1 -1
  299. package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
  300. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  301. package/lib/components/infra/NavBar/NavBar.js +13 -7
  302. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  303. package/lib/components/infra/Reference/Reference.d.ts +1 -1
  304. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  305. package/lib/components/infra/Reference/Reference.js +2 -3
  306. package/lib/components/infra/Reference/Reference.js.map +1 -1
  307. package/lib/components/infra/Region/Region.d.ts +1 -1
  308. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  309. package/lib/components/infra/Region/Region.js.map +1 -1
  310. package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
  311. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  312. package/lib/components/infra/RootContainer/RootContainer.js +1 -2
  313. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  314. package/lib/components/infra/Stages/Stages.d.ts +1 -1
  315. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  316. package/lib/components/infra/Stages/Stages.js +2 -2
  317. package/lib/components/infra/Stages/Stages.js.map +1 -1
  318. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +1 -1
  319. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  320. package/lib/components/infra/View/View.d.ts +2 -2
  321. package/lib/components/infra/View/View.d.ts.map +1 -1
  322. package/lib/components/infra/View/View.js +2 -1
  323. package/lib/components/infra/View/View.js.map +1 -1
  324. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
  325. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
  326. package/lib/components/template/AdvancedSearch/AdvancedSearch.js +68 -0
  327. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
  328. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +23 -0
  329. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
  330. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +26 -0
  331. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
  332. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
  333. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
  334. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +179 -0
  335. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
  336. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
  337. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
  338. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +25 -0
  339. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
  340. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
  341. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
  342. package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
  343. package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
  344. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
  345. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
  346. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
  347. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
  348. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +10 -0
  349. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
  350. package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
  351. package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
  352. package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
  353. package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
  354. package/lib/components/template/AdvancedSearch/index.js +2 -0
  355. package/lib/components/template/AdvancedSearch/index.js.map +1 -0
  356. package/lib/components/template/AppShell/AppShell.css +1 -1
  357. package/lib/components/template/AppShell/AppShell.d.ts +2 -2
  358. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  359. package/lib/components/template/AppShell/AppShell.js +14 -17
  360. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  361. package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
  362. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  363. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  364. package/lib/components/template/CaseSummary/CaseSummary.d.ts +4 -2
  365. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  366. package/lib/components/template/CaseSummary/CaseSummary.js +24 -37
  367. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  368. package/lib/components/template/CaseView/CaseView.d.ts +3 -2
  369. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  370. package/lib/components/template/CaseView/CaseView.js +14 -16
  371. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  372. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
  373. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  374. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
  375. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  376. package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
  377. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  378. package/lib/components/template/Confirmation/Confirmation.js +1 -2
  379. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  380. package/lib/components/template/DataReference/DataReference.d.ts +9 -2
  381. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  382. package/lib/components/template/DataReference/DataReference.js +239 -80
  383. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  384. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
  385. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
  386. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
  387. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
  388. package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
  389. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
  390. package/lib/components/template/DataReference/SearchForm.js +87 -0
  391. package/lib/components/template/DataReference/SearchForm.js.map +1 -0
  392. package/lib/components/template/DataReference/utils.d.ts +15 -0
  393. package/lib/components/template/DataReference/utils.d.ts.map +1 -0
  394. package/lib/components/template/DataReference/utils.js +75 -0
  395. package/lib/components/template/DataReference/utils.js.map +1 -0
  396. package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
  397. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  398. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  399. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  400. package/lib/components/template/DefaultForm/utils/index.js +1 -2
  401. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  402. package/lib/components/template/DefaultPage/DefaultPage.d.ts +36 -0
  403. package/lib/components/template/DefaultPage/DefaultPage.d.ts.map +1 -0
  404. package/lib/components/template/DefaultPage/DefaultPage.js +28 -0
  405. package/lib/components/template/DefaultPage/DefaultPage.js.map +1 -0
  406. package/lib/components/template/DefaultPage/index.d.ts +2 -0
  407. package/lib/components/template/DefaultPage/index.d.ts.map +1 -0
  408. package/lib/components/template/DefaultPage/index.js +2 -0
  409. package/lib/components/template/DefaultPage/index.js.map +1 -0
  410. package/lib/components/template/Details/Details/Details.d.ts +1 -1
  411. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  412. package/lib/components/template/Details/Details/Details.js +2 -3
  413. package/lib/components/template/Details/Details/Details.js.map +1 -1
  414. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
  415. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  416. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  417. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
  418. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  419. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -3
  420. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  421. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
  422. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  423. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -3
  424. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  425. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
  426. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  427. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +0 -1
  428. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  429. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -1
  430. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  431. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +1 -4
  432. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  433. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
  434. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  435. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  436. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  437. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
  438. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  439. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  440. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  441. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  442. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  443. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  444. package/lib/components/template/ListView/ListView.d.ts +4 -1
  445. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  446. package/lib/components/template/ListView/ListView.js +134 -67
  447. package/lib/components/template/ListView/ListView.js.map +1 -1
  448. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  449. package/lib/components/template/ListView/hooks.js +2 -5
  450. package/lib/components/template/ListView/hooks.js.map +1 -1
  451. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  452. package/lib/components/template/ListView/utils.js +28 -6
  453. package/lib/components/template/ListView/utils.js.map +1 -1
  454. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  455. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  456. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  457. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
  458. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  459. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  460. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
  461. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  462. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -3
  463. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  464. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
  465. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  466. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  467. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
  468. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  469. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  470. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
  471. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  472. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  473. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  474. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
  475. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  476. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  477. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
  478. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  479. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  480. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
  481. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  482. package/lib/components/template/PromotedFilters/PromotedFilters.js +0 -2
  483. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  484. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts +2 -0
  485. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts.map +1 -0
  486. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js +73 -0
  487. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js.map +1 -0
  488. package/lib/components/template/SelfServiceCaseView/index.d.ts +2 -0
  489. package/lib/components/template/SelfServiceCaseView/index.d.ts.map +1 -0
  490. package/lib/components/template/SelfServiceCaseView/index.js +2 -0
  491. package/lib/components/template/SelfServiceCaseView/index.js.map +1 -0
  492. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
  493. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  494. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +1 -4
  495. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  496. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +4 -2
  497. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  498. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +64 -47
  499. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  500. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
  501. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  502. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +2 -4
  503. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  504. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  505. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  506. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +3 -2
  507. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  508. package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
  509. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  510. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  511. package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
  512. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  513. package/lib/components/template/SubTabs/tabUtils.js +102 -1
  514. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  515. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
  516. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  517. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -3
  518. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  519. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
  520. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  521. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  522. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
  523. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  524. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -3
  525. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  526. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
  527. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  528. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  529. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
  530. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  531. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -3
  532. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  533. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
  534. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  535. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  536. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
  537. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  538. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  539. package/lib/components/template/WssNavBar/WssNavBar.css +1 -1
  540. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
  541. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  542. package/lib/components/template/WssNavBar/WssNavBar.js +4 -4
  543. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  544. package/lib/components/template/utils.d.ts +7 -0
  545. package/lib/components/template/utils.d.ts.map +1 -0
  546. package/lib/components/template/utils.js +52 -0
  547. package/lib/components/template/utils.js.map +1 -0
  548. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
  549. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  550. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  551. package/lib/components/widget/Attachment/Attachment.css +7 -8
  552. package/lib/components/widget/Attachment/Attachment.d.ts +4 -2
  553. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  554. package/lib/components/widget/Attachment/Attachment.js +255 -207
  555. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  556. package/lib/components/widget/Attachment/Attachment.types.d.ts +90 -0
  557. package/lib/components/widget/Attachment/Attachment.types.d.ts.map +1 -0
  558. package/lib/components/widget/Attachment/Attachment.types.js +2 -0
  559. package/lib/components/widget/Attachment/Attachment.types.js.map +1 -0
  560. package/lib/components/widget/Attachment/AttachmentUtils.d.ts +25 -0
  561. package/lib/components/widget/Attachment/AttachmentUtils.d.ts.map +1 -0
  562. package/lib/components/widget/Attachment/AttachmentUtils.js +255 -0
  563. package/lib/components/widget/Attachment/AttachmentUtils.js.map +1 -0
  564. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  565. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  566. package/lib/components/widget/CaseHistory/CaseHistory.js +2 -2
  567. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  568. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
  569. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
  570. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  571. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  572. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  573. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +7 -6
  574. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +2 -1
  575. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  576. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +29 -17
  577. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  578. package/lib/components/widget/Followers/Followers.d.ts +2 -2
  579. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  580. package/lib/components/widget/Followers/Followers.js +0 -2
  581. package/lib/components/widget/Followers/Followers.js.map +1 -1
  582. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
  583. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  584. package/lib/components/widget/QuickCreate/QuickCreate.js +0 -2
  585. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  586. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -11
  587. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
  588. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  589. package/lib/components/widget/SummaryItem/SummaryItem.js +1 -1
  590. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  591. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
  592. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  593. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  594. package/lib/components/widget/ToDo/ToDo.css +1 -13
  595. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  596. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  597. package/lib/components/widget/ToDo/ToDo.js +22 -17
  598. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  599. package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
  600. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
  601. package/lib/hooks/useAfterInitialEffect.js.map +1 -1
  602. package/lib/hooks/useConsolidatedRef.d.ts +1 -1
  603. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  604. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  605. package/lib/hooks/useFocusFirstField.d.ts.map +1 -1
  606. package/lib/hooks/useFocusFirstField.js.map +1 -1
  607. package/lib/hooks/useGetTabsCount.d.ts +10 -0
  608. package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
  609. package/lib/hooks/useGetTabsCount.js +165 -0
  610. package/lib/hooks/useGetTabsCount.js.map +1 -0
  611. package/lib/hooks/useIsMount.d.ts +2 -0
  612. package/lib/hooks/useIsMount.d.ts.map +1 -0
  613. package/lib/hooks/useIsMount.js +9 -0
  614. package/lib/hooks/useIsMount.js.map +1 -0
  615. package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
  616. package/lib/mediaco/ToDo/ToDo.css +81 -0
  617. package/lib/mediaco/ToDo/ToDo.d.ts +16 -0
  618. package/lib/mediaco/ToDo/ToDo.d.ts.map +1 -0
  619. package/lib/mediaco/ToDo/ToDo.js +187 -0
  620. package/lib/mediaco/ToDo/ToDo.js.map +1 -0
  621. package/lib/mediaco/ToDo/index.d.ts +2 -0
  622. package/lib/mediaco/ToDo/index.d.ts.map +1 -0
  623. package/lib/mediaco/ToDo/index.js +2 -0
  624. package/lib/mediaco/ToDo/index.js.map +1 -0
  625. package/lib/samples/Embedded/styles.css +26 -0
  626. package/lib/sdk-pega-component-map.d.ts +119 -103
  627. package/lib/sdk-pega-component-map.d.ts.map +1 -1
  628. package/lib/sdk-pega-component-map.js +20 -3
  629. package/lib/sdk-pega-component-map.js.map +1 -1
  630. package/lib/theme.d.ts +30 -1
  631. package/lib/theme.d.ts.map +1 -1
  632. package/lib/theme.js +209 -2
  633. package/lib/theme.js.map +1 -1
  634. package/lib/types/PConnProps.d.ts +1 -1
  635. package/package.json +32 -1
  636. package/lib/components/helpers/attachmentHelpers.d.ts +0 -13
  637. package/lib/components/helpers/attachmentHelpers.d.ts.map +0 -1
  638. package/lib/components/helpers/attachmentHelpers.js +0 -72
  639. package/lib/components/helpers/attachmentHelpers.js.map +0 -1
  640. package/lib/components/infra/Containers/helpers.d.ts +0 -2
  641. package/lib/components/infra/Containers/helpers.d.ts.map +0 -1
  642. package/lib/components/infra/Containers/helpers.js +0 -7
  643. package/lib/components/infra/Containers/helpers.js.map +0 -1
@@ -0,0 +1,68 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useContext, useState } from 'react';
3
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
4
+ import DataReferenceAdvancedSearchContext from '../DataReference/DataReferenceAdvancedSearchContext';
5
+ import { getFirstChildConfig } from '../DataReference/utils';
6
+ export default function AdvancedSearch(props) {
7
+ const { getPConnect, targetObjectClass, localeReference } = props;
8
+ const SearchGroups = getComponentFromMap('SearchGroups');
9
+ const { dataReferenceConfigToChild, isCreateNewReferenceEnabled, disableStartingFieldsForReference, pyID, searchSelectCacheKey } = useContext(DataReferenceAdvancedSearchContext);
10
+ const { selectionMode, value: singleSelectFieldValue, readonlyContextList: multiSelectField } = dataReferenceConfigToChild;
11
+ let isSelectionExist = false;
12
+ const { MULTI } = PCore.getConstants().LIST_SELECTION_MODE;
13
+ if (selectionMode === MULTI) {
14
+ isSelectionExist = getPConnect().getValue(multiSelectField)?.length || false;
15
+ }
16
+ else {
17
+ isSelectionExist = getPConnect().getValue(singleSelectFieldValue) || false;
18
+ }
19
+ const [showRecords, setShowRecords] = useState(isSelectionExist);
20
+ const pConn = getPConnect();
21
+ const rawViewMetadata = pConn.getRawMetadata();
22
+ const searchFieldsSet = new Set();
23
+ const searchFields = [];
24
+ rawViewMetadata.config.searchGroups.forEach(group => {
25
+ group.children.forEach(child => {
26
+ if (!searchFieldsSet.has(child.config.value) && !child.config.validator) {
27
+ searchFields.push(child);
28
+ searchFieldsSet.add(child.config.value);
29
+ }
30
+ });
31
+ });
32
+ const firstChildPConnect = getPConnect().getChildren()[0].getPConnect;
33
+ const [firstChildMeta] = rawViewMetadata.children;
34
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
35
+ const cache = PCore.getNavigationUtils().getComponentCache(searchSelectCacheKey) ?? {};
36
+ const editableFieldComp = firstChildPConnect().createComponent({
37
+ type: firstChildMeta.type,
38
+ config: {
39
+ ...getFirstChildConfig({
40
+ firstChildMeta,
41
+ getPConnect,
42
+ rawViewMetadata,
43
+ contextClass: targetObjectClass,
44
+ dataReferenceConfigToChild,
45
+ isCreateNewReferenceEnabled,
46
+ disableStartingFieldsForReference,
47
+ pyID
48
+ }),
49
+ searchFields,
50
+ showRecords,
51
+ label: localizedVal('Search results', 'DataReference'),
52
+ searchSelectCacheKey,
53
+ cache
54
+ }
55
+ });
56
+ const { selectionList, dataRelationshipContext } = editableFieldComp.props.getPConnect().getConfigProps();
57
+ const editableField = selectionMode === MULTI ? selectionList.substring(1) : dataRelationshipContext;
58
+ const searchGroupsProps = {
59
+ getPConnect,
60
+ editableField,
61
+ localeReference,
62
+ setShowRecords,
63
+ searchSelectCacheKey,
64
+ cache
65
+ };
66
+ return (_jsxs(_Fragment, { children: [_jsx(SearchGroups, { ...searchGroupsProps }), editableFieldComp] }));
67
+ }
68
+ //# sourceMappingURL=AdvancedSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdvancedSearch.js","sourceRoot":"","sources":["../../../../src/components/template/AdvancedSearch/AdvancedSearch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA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,EAAE,GAAG,iBAAiB,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC;IAC1G,MAAM,aAAa,GAAG,aAAa,KAAK,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC;IAErG,MAAM,iBAAiB,GAAG;QACxB,WAAW;QACX,aAAa;QACb,eAAe;QACf,cAAc;QACd,oBAAoB;QACpB,KAAK;KACN,CAAC;IAEF,OAAO,CACL,8BACE,KAAC,YAAY,OAAK,iBAAiB,GAAI,EACtC,iBAAiB,IACjB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { useContext, useState } from 'react';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport DataReferenceAdvancedSearchContext from '../DataReference/DataReferenceAdvancedSearchContext';\nimport { getFirstChildConfig } from '../DataReference/utils';\n\nexport default function AdvancedSearch(props) {\n const { getPConnect, targetObjectClass, localeReference } = props;\n const SearchGroups = getComponentFromMap('SearchGroups');\n const { dataReferenceConfigToChild, isCreateNewReferenceEnabled, disableStartingFieldsForReference, pyID, searchSelectCacheKey } = useContext(\n DataReferenceAdvancedSearchContext\n ) as any;\n\n const { selectionMode, value: singleSelectFieldValue, readonlyContextList: multiSelectField } = dataReferenceConfigToChild;\n\n let isSelectionExist = false;\n const { MULTI } = PCore.getConstants().LIST_SELECTION_MODE;\n\n if (selectionMode === MULTI) {\n isSelectionExist = getPConnect().getValue(multiSelectField)?.length || false;\n } else {\n isSelectionExist = getPConnect().getValue(singleSelectFieldValue) || false;\n }\n\n const [showRecords, setShowRecords] = useState(isSelectionExist);\n\n const pConn = getPConnect();\n const rawViewMetadata = pConn.getRawMetadata();\n\n const searchFieldsSet = new Set();\n const searchFields: any = [];\n rawViewMetadata.config.searchGroups.forEach(group => {\n group.children.forEach(child => {\n if (!searchFieldsSet.has(child.config.value) && !child.config.validator) {\n searchFields.push(child);\n searchFieldsSet.add(child.config.value);\n }\n });\n });\n\n const firstChildPConnect = getPConnect().getChildren()[0].getPConnect;\n const [firstChildMeta] = rawViewMetadata.children;\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const cache = PCore.getNavigationUtils().getComponentCache(searchSelectCacheKey) ?? {};\n\n const editableFieldComp = firstChildPConnect().createComponent({\n type: firstChildMeta.type,\n config: {\n ...getFirstChildConfig({\n firstChildMeta,\n getPConnect,\n rawViewMetadata,\n contextClass: targetObjectClass,\n dataReferenceConfigToChild,\n isCreateNewReferenceEnabled,\n disableStartingFieldsForReference,\n pyID\n }),\n searchFields,\n showRecords,\n label: localizedVal('Search results', 'DataReference'),\n searchSelectCacheKey,\n cache\n }\n });\n\n const { selectionList, dataRelationshipContext } = editableFieldComp.props.getPConnect().getConfigProps();\n const editableField = selectionMode === MULTI ? selectionList.substring(1) : dataRelationshipContext;\n\n const searchGroupsProps = {\n getPConnect,\n editableField,\n localeReference,\n setShowRecords,\n searchSelectCacheKey,\n cache\n };\n\n return (\n <>\n <SearchGroups {...searchGroupsProps} />\n {editableFieldComp}\n </>\n );\n}\n"]}
@@ -0,0 +1,23 @@
1
+ declare const getComponentStateOptions: (getPConnect: any) => {
2
+ clearOnCancelForContext: any;
3
+ };
4
+ interface SearchCategory {
5
+ selectedCategory: string;
6
+ }
7
+ interface SearchGroup {
8
+ searchFields: unknown;
9
+ activeGroupId: string;
10
+ }
11
+ declare const componentCachePersistUtils: {
12
+ getComponentStateKey: (getPConnect: any, propertyName: string) => string;
13
+ getComponentStateOptions: (getPConnect: any) => {
14
+ clearOnCancelForContext: any;
15
+ };
16
+ setComponentCache: ({ cacheKey, state, options }: {
17
+ cacheKey: string;
18
+ state: SearchCategory | SearchGroup;
19
+ options: ReturnType<typeof getComponentStateOptions>;
20
+ }) => void;
21
+ };
22
+ export default componentCachePersistUtils;
23
+ //# sourceMappingURL=persistUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persistUtils.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroup/persistUtils.ts"],"names":[],"mappings":"AAgBA,QAAA,MAAM,wBAAwB,GAAG,gBAAW;;CAE3C,CAAC;AAEF,UAAU,cAAc;IAEtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,WAAW;IAEnB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAgBD,QAAA,MAAM,0BAA0B;2DAzCyB,MAAM;;;;sDA+B5D;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,cAAc,GAAG,WAAW,CAAC;QACpC,OAAO,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;KACtD;CAUA,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { Utils } from '../../../helpers/utils';
2
+ const SKIP_CACHE_KEY = '';
3
+ const getComponentStateKey = (getPConnect, propertyName) => {
4
+ const pConnect = getPConnect();
5
+ const caseID = `.${Utils.getMappedKey('pyID')}`; // Enhance this later when use-case arrives for data objects using S&S.
6
+ const resolvedCaseID = pConnect.getValue(caseID);
7
+ if (!resolvedCaseID) {
8
+ return SKIP_CACHE_KEY;
9
+ }
10
+ return `Search-${resolvedCaseID}-${pConnect.getPageReference()}-${propertyName}-${pConnect.getCurrentView()}`;
11
+ };
12
+ const getComponentStateOptions = getPConnect => {
13
+ return { clearOnCancelForContext: getPConnect().getContextName() };
14
+ };
15
+ const setComponentCache = ({ cacheKey, state, options }) => {
16
+ if (cacheKey !== SKIP_CACHE_KEY) {
17
+ PCore.getNavigationUtils().setComponentCache(cacheKey, state, options);
18
+ }
19
+ };
20
+ const componentCachePersistUtils = {
21
+ getComponentStateKey,
22
+ getComponentStateOptions,
23
+ setComponentCache
24
+ };
25
+ export default componentCachePersistUtils;
26
+ //# sourceMappingURL=persistUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persistUtils.js","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroup/persistUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,oBAAoB,GAAG,CAAC,WAAW,EAAE,YAAoB,EAAE,EAAE;IACjE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,uEAAuE;IACxH,MAAM,cAAc,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,OAAO,UAAU,cAAc,IAAI,QAAQ,CAAC,gBAAgB,EAAE,IAAI,YAAY,IAAI,QAAQ,CAAC,cAAc,EAAE,EAAE,CAAC;AAChH,CAAC,CAAC;AAEF,MAAM,wBAAwB,GAAG,WAAW,CAAC,EAAE;IAC7C,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC;AACrE,CAAC,CAAC;AAaF,MAAM,iBAAiB,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,OAAO,EAKR,EAAE,EAAE;IACH,IAAI,QAAQ,KAAK,cAAc,EAAE,CAAC;QAC/B,KAAK,CAAC,kBAAkB,EAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG;IACjC,oBAAoB;IACpB,wBAAwB;IACxB,iBAAiB;CAClB,CAAC;AAEF,eAAe,0BAA0B,CAAC","sourcesContent":["import { Utils } from '../../../helpers/utils';\n\nconst SKIP_CACHE_KEY = '';\n\nconst getComponentStateKey = (getPConnect, propertyName: string) => {\n const pConnect = getPConnect();\n const caseID = `.${Utils.getMappedKey('pyID')}`; // Enhance this later when use-case arrives for data objects using S&S.\n const resolvedCaseID = pConnect.getValue(caseID);\n\n if (!resolvedCaseID) {\n return SKIP_CACHE_KEY;\n }\n\n return `Search-${resolvedCaseID}-${pConnect.getPageReference()}-${propertyName}-${pConnect.getCurrentView()}`;\n};\n\nconst getComponentStateOptions = getPConnect => {\n return { clearOnCancelForContext: getPConnect().getContextName() };\n};\n\ninterface SearchCategory {\n // tabId of search category selected\n selectedCategory: string;\n}\n\ninterface SearchGroup {\n // searchFields can be any object based on what fields are authored.\n searchFields: unknown;\n activeGroupId: string;\n}\n\nconst setComponentCache = ({\n cacheKey,\n state,\n options\n}: {\n cacheKey: string;\n state: SearchCategory | SearchGroup;\n options: ReturnType<typeof getComponentStateOptions>;\n}) => {\n if (cacheKey !== SKIP_CACHE_KEY) {\n (PCore.getNavigationUtils() as any).setComponentCache(cacheKey, state, options);\n }\n};\n\nconst componentCachePersistUtils = {\n getComponentStateKey,\n getComponentStateOptions,\n setComponentCache\n};\n\nexport default componentCachePersistUtils;\n"]}
@@ -0,0 +1,3 @@
1
+ export declare const initializeSearchFields: (searchFields: any, getPConnect: any, referenceListClassID: any, searchFieldRestoreValues?: {}) => {};
2
+ export default function SearchGroups(props: any): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=SearchGroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchGroups.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/SearchGroups.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,sBAAsB,GAAI,iBAAY,EAAE,gBAAW,EAAE,yBAAoB,EAAE,6BAA6B,OAmCpH,CAAC;AAmBF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,KAAA,2CAmLzC"}
@@ -0,0 +1,179 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React, { createElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
3
+ import { Button, Grid2, Select, MenuItem, Box } from '@mui/material';
4
+ import createPConnectComponent from '../../../../bridge/react_pconnect';
5
+ import TemplateContext from '../TemplateContext';
6
+ import componentCachePersistUtils from '../SearchGroup/persistUtils';
7
+ import { getCacheInfo, isValidInput } from './utils';
8
+ import { useCacheWhenListViewReady } from './hooks';
9
+ export const initializeSearchFields = (searchFields, getPConnect, referenceListClassID, searchFieldRestoreValues = {}) => {
10
+ const filtersProperties = {};
11
+ searchFields.forEach(field => {
12
+ let val = '';
13
+ const { value, defaultValue = '' } = field.config;
14
+ const propPath = PCore.getAnnotationUtils().getPropertyName(value);
15
+ if (searchFieldRestoreValues[propPath]) {
16
+ val = searchFieldRestoreValues[propPath];
17
+ }
18
+ else if (PCore.getAnnotationUtils().isProperty(defaultValue)) {
19
+ val = getPConnect().getValue(defaultValue.split(' ')[1]);
20
+ }
21
+ else if (defaultValue.startsWith('@L')) {
22
+ val = defaultValue.split(' ')[1];
23
+ }
24
+ else {
25
+ val = defaultValue;
26
+ }
27
+ filtersProperties[propPath] = val;
28
+ const valueSplit = value.split('@P ')[1]?.split('.').filter(Boolean) ?? [];
29
+ valueSplit.pop();
30
+ if (valueSplit.length) {
31
+ let path = '';
32
+ let currentClassID = referenceListClassID;
33
+ valueSplit.forEach(item => {
34
+ path = path.length ? `${path}.${item}` : item;
35
+ currentClassID = PCore.getMetadataUtils().getPropertyMetadata(item, currentClassID).pageClass;
36
+ if (currentClassID) {
37
+ filtersProperties[`${path}.classID`] = currentClassID;
38
+ }
39
+ });
40
+ }
41
+ });
42
+ return filtersProperties;
43
+ };
44
+ const flattenObj = obj => {
45
+ const result = {};
46
+ Object.keys(obj).forEach(key => {
47
+ if (!['context_data', 'pageInstructions'].includes(key)) {
48
+ if (typeof obj[key] === 'object' && !Array.isArray(obj[key])) {
49
+ const temp = flattenObj(obj[key]);
50
+ Object.keys(temp).forEach(nestedKey => {
51
+ result[`${key}.${nestedKey}`] = temp[nestedKey];
52
+ });
53
+ }
54
+ else {
55
+ result[key] = obj[key];
56
+ }
57
+ }
58
+ });
59
+ return result;
60
+ };
61
+ export default function SearchGroups(props) {
62
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
63
+ const { getPConnect, editableField, localeReference, setShowRecords, searchSelectCacheKey, cache } = props;
64
+ const referenceFieldName = editableField.replaceAll('.', '_');
65
+ const state = useRef({ searchFields: {}, activeGroupId: '' }).current;
66
+ const options = componentCachePersistUtils.getComponentStateOptions(getPConnect);
67
+ const { searchGroups: groups, referenceList } = getPConnect().getConfigProps();
68
+ const { useCache, initialActiveGroupId } = getCacheInfo(cache, groups);
69
+ const [activeGroupId, setActiveGroupId] = useState(initialActiveGroupId);
70
+ const [transientItemID, setTransientItemID] = useState(null);
71
+ const [previousFormValues, setPreviousFormValues] = useState(null);
72
+ const viewName = getPConnect().getCurrentView();
73
+ const rawGroupsConfig = getPConnect().getRawConfigProps().searchGroups;
74
+ const activeGroupIndex = groups.findIndex(group => group.config.id === activeGroupId);
75
+ const { children: searchFieldsChildren = [] } = activeGroupIndex !== -1 ? rawGroupsConfig[activeGroupIndex] : {};
76
+ const searchFields = searchFieldsChildren.map(field => ({
77
+ ...field,
78
+ config: { ...field.config, isSearchField: true }
79
+ }));
80
+ const searchByRef = useRef(null);
81
+ const searchFieldsRef = useRef(null);
82
+ const isValidatorField = searchFields.some(field => field.config.validator);
83
+ const { classID: referenceListClassID } = PCore.getMetadataUtils().getDataPageMetadata(referenceList);
84
+ const initialSearchFields = useMemo(() => initializeSearchFields(searchFields, getPConnect, referenceListClassID, useCache && cache.activeGroupId === activeGroupId ? cache.searchFields : {}), [activeGroupId, getPConnect, cache.searchFields]);
85
+ useEffect(() => {
86
+ if (transientItemID) {
87
+ const filtersWithClassID = {
88
+ ...initialSearchFields,
89
+ classID: referenceListClassID
90
+ };
91
+ // @ts-ignore
92
+ PCore.getContainerUtils().replaceTransientData({ transientItemID, data: filtersWithClassID });
93
+ }
94
+ }, [activeGroupId]);
95
+ useEffect(() => {
96
+ const filtersWithClassID = {
97
+ ...initialSearchFields,
98
+ classID: referenceListClassID
99
+ };
100
+ const transientId = getPConnect()
101
+ .getContainerManager()
102
+ .addTransientItem({ id: `${referenceFieldName}-${viewName}`, data: filtersWithClassID });
103
+ setTransientItemID(transientId);
104
+ }, []);
105
+ const getFilterData = useCallback(() => {
106
+ // @ts-ignore
107
+ let changes = PCore.getFormUtils().getSubmitData(transientItemID, {
108
+ isTransientContext: true,
109
+ includeDisabledFields: true
110
+ });
111
+ if (Object.keys(cache.searchFields ?? {}).length > 0 && Object.keys(changes).length === 1) {
112
+ changes = cache.searchFields;
113
+ }
114
+ const formValues = flattenObj(changes);
115
+ if (!PCore.isDeepEqual(previousFormValues, formValues) && PCore.getFormUtils().isFormValid(transientItemID) && isValidInput(formValues)) {
116
+ if (isValidatorField) {
117
+ // @ts-ignore
118
+ PCore.getMessageManager().clearContextMessages({ context: transientItemID });
119
+ }
120
+ setPreviousFormValues(formValues);
121
+ setShowRecords(true);
122
+ PCore.getPubSubUtils().publish(PCore.getEvents().getTransientEvent().UPDATE_PROMOTED_FILTERS, {
123
+ payload: formValues,
124
+ showRecords: true,
125
+ viewName
126
+ });
127
+ }
128
+ state.activeGroupId = activeGroupId;
129
+ state.searchFields = changes;
130
+ state.selectedCategory = viewName;
131
+ componentCachePersistUtils.setComponentCache({ cacheKey: searchSelectCacheKey, state, options });
132
+ }, [transientItemID, setShowRecords, viewName, activeGroupId, previousFormValues]);
133
+ const resetFilterData = useCallback(() => {
134
+ // @ts-ignore
135
+ PCore.getNavigationUtils().resetComponentCache(searchSelectCacheKey);
136
+ const resetPayload = {
137
+ transientItemID,
138
+ data: initializeSearchFields(searchFields, getPConnect, referenceListClassID),
139
+ options: { reset: true }
140
+ };
141
+ // @ts-ignore
142
+ PCore.getContainerUtils().updateTransientData(resetPayload);
143
+ }, [transientItemID, initialSearchFields]);
144
+ useCacheWhenListViewReady(cache, viewName, useCache, getFilterData, searchSelectCacheKey);
145
+ const searchDropdown = groups.length > 1 && (_jsx(Grid2, { container: true, spacing: 2, children: _jsx(Select, { value: activeGroupId, onChange: e => setActiveGroupId(e.target.value), ref: searchByRef, fullWidth: true, children: groups.map(group => (_jsx(MenuItem, { value: group.config.id, children: group.config.label }, group.config.id))) }) }));
146
+ const actionButtons = (_jsxs(Box, { display: 'flex', gap: 2, children: [_jsx(Button, { variant: 'outlined', onClick: resetFilterData, children: localizedVal('Reset', 'SimpleTable') }), _jsx(Button, { variant: 'contained', onClick: getFilterData, children: localizedVal('Search', 'SimpleTable') })] }));
147
+ const searchFieldsViewConfig = {
148
+ name: 'SearchFields',
149
+ type: 'View',
150
+ config: {
151
+ template: 'DefaultForm',
152
+ NumCols: '3',
153
+ contextName: transientItemID,
154
+ readOnly: false,
155
+ context: transientItemID,
156
+ localeReference
157
+ },
158
+ children: [
159
+ {
160
+ name: 'Fields',
161
+ type: 'Region',
162
+ children: searchFields
163
+ }
164
+ ]
165
+ };
166
+ const searchFieldsC11nEnv = PCore.createPConnect({
167
+ meta: searchFieldsViewConfig,
168
+ options: {
169
+ hasForm: true,
170
+ contextName: transientItemID
171
+ }
172
+ });
173
+ const templateContext = useContext(TemplateContext);
174
+ const templateContextValue = useMemo(() => ({ ...templateContext, outerColumnCount: undefined }), []);
175
+ const searchFieldsViewComp = transientItemID ? (_jsx(TemplateContext.Provider, { value: templateContextValue, children: _jsx("div", { ref: searchFieldsRef, children: createElement(createPConnectComponent(), { ...searchFieldsC11nEnv }) }) })) : null;
176
+ const childrenToRender = [searchDropdown, searchFieldsViewComp, actionButtons];
177
+ return (_jsx(Box, { display: 'flex', flexDirection: 'column', gap: 2, children: childrenToRender.map((child, index) => (_jsx(React.Fragment, { children: child }, index))) }));
178
+ }
179
+ //# sourceMappingURL=SearchGroups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchGroups.js","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/SearchGro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AAE,oBAAoB,EAAE,aAAa,CAAC,CAAC;IAE/E,OAAO,CACL,KAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,aAAa,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,YAC9C,gBAAgB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CACtC,KAAC,KAAK,CAAC,QAAQ,cAAc,KAAK,IAAb,KAAK,CAA0B,CACrD,CAAC,GACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React, { createElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport { Button, Grid2, Select, MenuItem, Box } from '@mui/material';\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport TemplateContext from '../TemplateContext';\nimport componentCachePersistUtils from '../SearchGroup/persistUtils';\n\nimport { getCacheInfo, isValidInput } from './utils';\nimport { useCacheWhenListViewReady } from './hooks';\n\nexport const initializeSearchFields = (searchFields, getPConnect, referenceListClassID, searchFieldRestoreValues = {}) => {\n const filtersProperties = {};\n searchFields.forEach(field => {\n let val = '';\n const { value, defaultValue = '' } = field.config;\n const propPath = PCore.getAnnotationUtils().getPropertyName(value);\n\n if (searchFieldRestoreValues[propPath]) {\n val = searchFieldRestoreValues[propPath];\n } else if (PCore.getAnnotationUtils().isProperty(defaultValue)) {\n val = getPConnect().getValue(defaultValue.split(' ')[1]);\n } else if (defaultValue.startsWith('@L')) {\n val = defaultValue.split(' ')[1];\n } else {\n val = defaultValue;\n }\n\n filtersProperties[propPath] = val;\n\n const valueSplit = value.split('@P ')[1]?.split('.').filter(Boolean) ?? [];\n valueSplit.pop();\n\n if (valueSplit.length) {\n let path = '';\n let currentClassID = referenceListClassID;\n valueSplit.forEach(item => {\n path = path.length ? `${path}.${item}` : item;\n currentClassID = (PCore.getMetadataUtils().getPropertyMetadata(item, currentClassID) as any).pageClass;\n if (currentClassID) {\n filtersProperties[`${path}.classID`] = currentClassID;\n }\n });\n }\n });\n return filtersProperties;\n};\n\nconst flattenObj = obj => {\n const result = {};\n Object.keys(obj).forEach(key => {\n if (!['context_data', 'pageInstructions'].includes(key)) {\n if (typeof obj[key] === 'object' && !Array.isArray(obj[key])) {\n const temp = flattenObj(obj[key]);\n Object.keys(temp).forEach(nestedKey => {\n result[`${key}.${nestedKey}`] = temp[nestedKey];\n });\n } else {\n result[key] = obj[key];\n }\n }\n });\n return result;\n};\n\nexport default function SearchGroups(props) {\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const { getPConnect, editableField, localeReference, setShowRecords, searchSelectCacheKey, cache } = props;\n const referenceFieldName = editableField.replaceAll('.', '_');\n\n const state: any = useRef({ searchFields: {}, activeGroupId: '' }).current;\n const options = componentCachePersistUtils.getComponentStateOptions(getPConnect);\n\n const { searchGroups: groups, referenceList } = getPConnect().getConfigProps();\n const { useCache, initialActiveGroupId } = getCacheInfo(cache, groups);\n const [activeGroupId, setActiveGroupId] = useState(initialActiveGroupId);\n const [transientItemID, setTransientItemID] = useState<any>(null);\n const [previousFormValues, setPreviousFormValues] = useState<any>(null);\n const viewName = getPConnect().getCurrentView();\n\n const rawGroupsConfig = getPConnect().getRawConfigProps().searchGroups;\n const activeGroupIndex = groups.findIndex(group => group.config.id === activeGroupId);\n const { children: searchFieldsChildren = [] } = activeGroupIndex !== -1 ? rawGroupsConfig[activeGroupIndex] : {};\n const searchFields = searchFieldsChildren.map(field => ({\n ...field,\n config: { ...field.config, isSearchField: true }\n }));\n\n const searchByRef = useRef(null);\n const searchFieldsRef = useRef(null);\n const isValidatorField = searchFields.some(field => field.config.validator);\n const { classID: referenceListClassID } = PCore.getMetadataUtils().getDataPageMetadata(referenceList) as any;\n\n const initialSearchFields = useMemo(\n () =>\n initializeSearchFields(\n searchFields,\n getPConnect,\n referenceListClassID,\n useCache && cache.activeGroupId === activeGroupId ? cache.searchFields : {}\n ),\n [activeGroupId, getPConnect, cache.searchFields]\n );\n\n useEffect(() => {\n if (transientItemID) {\n const filtersWithClassID = {\n ...initialSearchFields,\n classID: referenceListClassID\n };\n // @ts-ignore\n PCore.getContainerUtils().replaceTransientData({ transientItemID, data: filtersWithClassID });\n }\n }, [activeGroupId]);\n\n useEffect(() => {\n const filtersWithClassID = {\n ...initialSearchFields,\n classID: referenceListClassID\n };\n\n const transientId = getPConnect()\n .getContainerManager()\n .addTransientItem({ id: `${referenceFieldName}-${viewName}`, data: filtersWithClassID });\n setTransientItemID(transientId);\n }, []);\n\n const getFilterData = useCallback(() => {\n // @ts-ignore\n let changes = PCore.getFormUtils().getSubmitData(transientItemID, {\n isTransientContext: true,\n includeDisabledFields: true\n });\n\n if (Object.keys(cache.searchFields ?? {}).length > 0 && Object.keys(changes).length === 1) {\n changes = cache.searchFields;\n }\n\n const formValues = flattenObj(changes);\n\n if (!PCore.isDeepEqual(previousFormValues, formValues) && PCore.getFormUtils().isFormValid(transientItemID) && isValidInput(formValues)) {\n if (isValidatorField) {\n // @ts-ignore\n PCore.getMessageManager().clearContextMessages({ context: transientItemID });\n }\n setPreviousFormValues(formValues);\n setShowRecords(true);\n PCore.getPubSubUtils().publish(PCore.getEvents().getTransientEvent().UPDATE_PROMOTED_FILTERS, {\n payload: formValues,\n showRecords: true,\n viewName\n });\n }\n\n state.activeGroupId = activeGroupId;\n state.searchFields = changes;\n state.selectedCategory = viewName;\n\n componentCachePersistUtils.setComponentCache({ cacheKey: searchSelectCacheKey, state, options });\n }, [transientItemID, setShowRecords, viewName, activeGroupId, previousFormValues]);\n\n const resetFilterData = useCallback(() => {\n // @ts-ignore\n PCore.getNavigationUtils().resetComponentCache(searchSelectCacheKey);\n const resetPayload = {\n transientItemID,\n data: initializeSearchFields(searchFields, getPConnect, referenceListClassID),\n options: { reset: true }\n };\n // @ts-ignore\n PCore.getContainerUtils().updateTransientData(resetPayload);\n }, [transientItemID, initialSearchFields]);\n\n useCacheWhenListViewReady(cache, viewName, useCache, getFilterData, searchSelectCacheKey);\n\n const searchDropdown = groups.length > 1 && (\n <Grid2 container spacing={2}>\n <Select value={activeGroupId} onChange={e => setActiveGroupId(e.target.value)} ref={searchByRef} fullWidth>\n {groups.map(group => (\n <MenuItem key={group.config.id} value={group.config.id}>\n {group.config.label}\n </MenuItem>\n ))}\n </Select>\n </Grid2>\n );\n\n const actionButtons = (\n <Box display='flex' gap={2}>\n <Button variant='outlined' onClick={resetFilterData}>\n {localizedVal('Reset', 'SimpleTable')}\n </Button>\n <Button variant='contained' onClick={getFilterData}>\n {localizedVal('Search', 'SimpleTable')}\n </Button>\n </Box>\n );\n\n const searchFieldsViewConfig = {\n name: 'SearchFields',\n type: 'View',\n config: {\n template: 'DefaultForm',\n NumCols: '3',\n contextName: transientItemID,\n readOnly: false,\n context: transientItemID,\n localeReference\n },\n children: [\n {\n name: 'Fields',\n type: 'Region',\n children: searchFields\n }\n ]\n };\n\n const searchFieldsC11nEnv = PCore.createPConnect({\n meta: searchFieldsViewConfig,\n options: {\n hasForm: true,\n contextName: transientItemID\n }\n });\n\n const templateContext = useContext(TemplateContext);\n const templateContextValue = useMemo(() => ({ ...templateContext, outerColumnCount: undefined }), []);\n\n const searchFieldsViewComp = transientItemID ? (\n <TemplateContext.Provider value={templateContextValue}>\n <div ref={searchFieldsRef}>{createElement(createPConnectComponent(), { ...searchFieldsC11nEnv })}</div>\n </TemplateContext.Provider>\n ) : null;\n\n const childrenToRender = [searchDropdown, searchFieldsViewComp, actionButtons];\n\n return (\n <Box display='flex' flexDirection='column' gap={2}>\n {childrenToRender.map((child, index) => (\n <React.Fragment key={index}>{child}</React.Fragment>\n ))}\n </Box>\n );\n}\n"]}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This hook registers a callback for the whenever list view component is ready
3
+ * then makes a call to get the data using the search fields pre-filled with cache data.
4
+ */
5
+ export declare function useCacheWhenListViewReady(cache: {
6
+ searchFields: unknown;
7
+ }, viewName: string, useCache: boolean, getFilterData: (params: {
8
+ isCalledFromCache: boolean;
9
+ }) => void, searchSelectCacheKey: string): void;
10
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/hooks.ts"],"names":[],"mappings":"AAOA;;;GAGG;AAEH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,EAChC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,EACjB,aAAa,EAAE,CAAC,MAAM,EAAE;IAAE,iBAAiB,EAAE,OAAO,CAAA;CAAE,KAAK,IAAI,EAC/D,oBAAoB,EAAE,MAAM,QAmB7B"}
@@ -0,0 +1,25 @@
1
+ import { useEffect } from 'react';
2
+ const listViewConstants = {
3
+ EVENTS: {
4
+ LIST_VIEW_READY: 'LIST_VIEW_READY'
5
+ }
6
+ };
7
+ /**
8
+ * This hook registers a callback for the whenever list view component is ready
9
+ * then makes a call to get the data using the search fields pre-filled with cache data.
10
+ */
11
+ export function useCacheWhenListViewReady(cache, viewName, useCache, getFilterData, searchSelectCacheKey) {
12
+ useEffect(() => {
13
+ if (Object.keys(cache.searchFields ?? {}).length > 0) {
14
+ PCore.getPubSubUtils().subscribe(listViewConstants.EVENTS.LIST_VIEW_READY, ({ viewName: viewNameFromListView }) => {
15
+ if (viewNameFromListView === viewName && useCache) {
16
+ getFilterData({ isCalledFromCache: true });
17
+ }
18
+ }, `${searchSelectCacheKey}-listview-ready`);
19
+ }
20
+ return () => {
21
+ PCore.getPubSubUtils().unsubscribe(listViewConstants.EVENTS.LIST_VIEW_READY, `${searchSelectCacheKey}-listview-ready`);
22
+ };
23
+ }, []);
24
+ }
25
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAE;QACN,eAAe,EAAE,iBAAiB;KACnC;CACF,CAAC;AACF;;;GAGG;AAEH,MAAM,UAAU,yBAAyB,CACvC,KAAgC,EAChC,QAAgB,EAChB,QAAiB,EACjB,aAA+D,EAC/D,oBAA4B;IAE5B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrD,KAAK,CAAC,cAAc,EAAE,CAAC,SAAS,CAC9B,iBAAiB,CAAC,MAAM,CAAC,eAAe,EACxC,CAAC,EAAE,QAAQ,EAAE,oBAAoB,EAAwB,EAAE,EAAE;gBAC3D,IAAI,oBAAoB,KAAK,QAAQ,IAAI,QAAQ,EAAE,CAAC;oBAClD,aAAa,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC7C,CAAC;YACH,CAAC,EACD,GAAG,oBAAoB,iBAAiB,CACzC,CAAC;QACJ,CAAC;QAED,OAAO,GAAG,EAAE;YACV,KAAK,CAAC,cAAc,EAAE,CAAC,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,eAAe,EAAE,GAAG,oBAAoB,iBAAiB,CAAC,CAAC;QACzH,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC","sourcesContent":["import { useEffect } from 'react';\n\nconst listViewConstants = {\n EVENTS: {\n LIST_VIEW_READY: 'LIST_VIEW_READY'\n }\n};\n/**\n * This hook registers a callback for the whenever list view component is ready\n * then makes a call to get the data using the search fields pre-filled with cache data.\n */\n\nexport function useCacheWhenListViewReady(\n cache: { searchFields: unknown },\n viewName: string,\n useCache: boolean,\n getFilterData: (params: { isCalledFromCache: boolean }) => void,\n searchSelectCacheKey: string\n) {\n useEffect(() => {\n if (Object.keys(cache.searchFields ?? {}).length > 0) {\n PCore.getPubSubUtils().subscribe(\n listViewConstants.EVENTS.LIST_VIEW_READY,\n ({ viewName: viewNameFromListView }: { viewName: string }) => {\n if (viewNameFromListView === viewName && useCache) {\n getFilterData({ isCalledFromCache: true });\n }\n },\n `${searchSelectCacheKey}-listview-ready`\n );\n }\n\n return () => {\n PCore.getPubSubUtils().unsubscribe(listViewConstants.EVENTS.LIST_VIEW_READY, `${searchSelectCacheKey}-listview-ready`);\n };\n }, []);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './SearchGroups';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './SearchGroups';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["export { default } from './SearchGroups';\n"]}
@@ -0,0 +1,16 @@
1
+ export declare function getCacheInfo(cache: {
2
+ selectedCategory: string;
3
+ activeGroupId: string;
4
+ searchFields: unknown;
5
+ }, groups: {
6
+ config: {
7
+ id: string;
8
+ };
9
+ }[]): {
10
+ useCache: boolean;
11
+ initialActiveGroupId: string;
12
+ };
13
+ export declare function isValidInput(input: {
14
+ [s: string]: unknown;
15
+ }): boolean;
16
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/utils.ts"],"names":[],"mappings":"AAWA,wBAAgB,YAAY,CAC1B,KAAK,EAAE;IAAE,gBAAgB,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,EACjF,MAAM,EAAE;IAAE,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EAAE;;;EAWrC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,WAE3D"}
@@ -0,0 +1,22 @@
1
+ function isEmpty(value) {
2
+ return (
3
+ // null or undefined
4
+ value === null ||
5
+ value === undefined ||
6
+ ((Array.isArray(value) || typeof value === 'string') && value.length === 0) ||
7
+ // is an Object and has no keys
8
+ (value.constructor === Object && Object.keys(value).length === 0));
9
+ }
10
+ export function getCacheInfo(cache, groups) {
11
+ let initialActiveGroupId = groups.length ? groups[0].config.id : '';
12
+ let useCache = false;
13
+ if (cache.activeGroupId && groups?.find(group => group.config.id === cache.activeGroupId)) {
14
+ initialActiveGroupId = cache.activeGroupId;
15
+ useCache = true;
16
+ }
17
+ return { useCache, initialActiveGroupId };
18
+ }
19
+ export function isValidInput(input) {
20
+ return Object.values(input).some(value => !isEmpty(value));
21
+ }
22
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/components/template/AdvancedSearch/SearchGroups/utils.ts"],"names":[],"mappings":"AAAA,SAAS,OAAO,CAAC,KAAU;IACzB,OAAO;IACL,oBAAoB;IACpB,KAAK,KAAK,IAAI;QACd,KAAK,KAAK,SAAS;QACnB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;QAC3E,+BAA+B;QAC/B,CAAC,KAAK,CAAC,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,KAAiF,EACjF,MAAoC;IAEpC,IAAI,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEpE,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,KAAK,CAAC,aAAa,IAAI,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QAC1F,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAAC;QAC3C,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAA+B;IAC1D,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7D,CAAC","sourcesContent":["function isEmpty(value: any): boolean {\n return (\n // null or undefined\n value === null ||\n value === undefined ||\n ((Array.isArray(value) || typeof value === 'string') && value.length === 0) ||\n // is an Object and has no keys\n (value.constructor === Object && Object.keys(value).length === 0)\n );\n}\n\nexport function getCacheInfo(\n cache: { selectedCategory: string; activeGroupId: string; searchFields: unknown },\n groups: { config: { id: string } }[]\n) {\n let initialActiveGroupId = groups.length ? groups[0].config.id : '';\n\n let useCache = false;\n if (cache.activeGroupId && groups?.find(group => group.config.id === cache.activeGroupId)) {\n initialActiveGroupId = cache.activeGroupId;\n useCache = true;\n }\n\n return { useCache, initialActiveGroupId };\n}\n\nexport function isValidInput(input: { [s: string]: unknown }) {\n return Object.values(input).some(value => !isEmpty(value));\n}\n"]}
@@ -0,0 +1,10 @@
1
+ declare const TemplateContext: import("react").Context<{
2
+ depth: number;
3
+ columnCount: number;
4
+ outerColumnCount: undefined;
5
+ templateOverrideMode: undefined;
6
+ inheritParentLayout: undefined;
7
+ lastContainerItem: undefined;
8
+ }>;
9
+ export default TemplateContext;
10
+ //# sourceMappingURL=TemplateContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateContext.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AdvancedSearch/TemplateContext.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe;;;;;;;EAOnB,CAAC;AACH,eAAe,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { createContext } from 'react';
2
+ const TemplateContext = createContext({
3
+ depth: 0,
4
+ columnCount: 1,
5
+ outerColumnCount: undefined,
6
+ templateOverrideMode: undefined,
7
+ inheritParentLayout: undefined,
8
+ lastContainerItem: undefined
9
+ });
10
+ export default TemplateContext;
11
+ //# sourceMappingURL=TemplateContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateContext.js","sourceRoot":"","sources":["../../../../src/components/template/AdvancedSearch/TemplateContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,eAAe,GAAG,aAAa,CAAC;IACpC,KAAK,EAAE,CAAC;IACR,WAAW,EAAE,CAAC;IACd,gBAAgB,EAAE,SAAS;IAC3B,oBAAoB,EAAE,SAAS;IAC/B,mBAAmB,EAAE,SAAS;IAC9B,iBAAiB,EAAE,SAAS;CAC7B,CAAC,CAAC;AACH,eAAe,eAAe,CAAC","sourcesContent":["import { createContext } from 'react';\n\nconst TemplateContext = createContext({\n depth: 0,\n columnCount: 1,\n outerColumnCount: undefined,\n templateOverrideMode: undefined,\n inheritParentLayout: undefined,\n lastContainerItem: undefined\n});\nexport default TemplateContext;\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './AdvancedSearch';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AdvancedSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './AdvancedSearch';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/template/AdvancedSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { default } from './AdvancedSearch';\n"]}
@@ -22,7 +22,7 @@
22
22
  align-items: center;
23
23
  height: 100%;
24
24
  width: 100%;
25
- background-color: whitesmoke;
25
+ background-color: 'var(--app-background-color)';
26
26
  position: fixed;
27
27
  z-index: 999;
28
28
  top: 0rem;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PConnProps } from '../../../types/PConnProps';
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { PConnProps } from '../../../types/PConnProps';
3
3
  import './AppShell.css';
4
4
  interface AppShellProps extends PConnProps {
5
5
  showAppName: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AppShell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAO/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,gBAAgB,CAAC;AAExB,UAAU,aAAc,SAAQ,UAAU;IAExC,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;KACtB,EAAE,CAAC;IACJ,SAAS,CAAC,EA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