@pega/react-sdk-components 24.2.11 → 25.1.11

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 (665) 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.css +46 -0
  11. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +2 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +18 -16
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  15. package/lib/components/designSystemExtension/Banner/Banner.css +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -2
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +50 -35
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  23. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +6 -8
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  26. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  27. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  28. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -5
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  30. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +3 -3
  31. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  32. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  33. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -6
  34. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  35. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
  36. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  37. package/lib/components/designSystemExtension/Operator/Operator.js +12 -9
  38. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  39. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  40. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  41. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  42. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +32 -4
  44. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  45. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
  46. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  47. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +12 -2
  48. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  49. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
  50. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  51. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  52. package/lib/components/field/CancelAlert/CancelAlert.css +4 -4
  53. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
  54. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  55. package/lib/components/field/CancelAlert/CancelAlert.js +3 -3
  56. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  57. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  58. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  59. package/lib/components/field/Checkbox/Checkbox.js +52 -3
  60. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  61. package/lib/components/field/Currency/Currency.d.ts +1 -1
  62. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  63. package/lib/components/field/Currency/Currency.js +2 -2
  64. package/lib/components/field/Currency/Currency.js.map +1 -1
  65. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  66. package/lib/components/field/Currency/currency-utils.js +0 -2
  67. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  68. package/lib/components/field/Date/Date.d.ts +1 -1
  69. package/lib/components/field/Date/Date.d.ts.map +1 -1
  70. package/lib/components/field/Date/Date.js +3 -6
  71. package/lib/components/field/Date/Date.js.map +1 -1
  72. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  73. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  74. package/lib/components/field/DateTime/DateTime.js +4 -7
  75. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  76. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  77. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  78. package/lib/components/field/Decimal/Decimal.js +2 -4
  79. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  80. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
  81. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  82. package/lib/components/field/Dropdown/Dropdown.js +6 -9
  83. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  84. package/lib/components/field/Email/Email.d.ts +1 -1
  85. package/lib/components/field/Email/Email.d.ts.map +1 -1
  86. package/lib/components/field/Email/Email.js +6 -7
  87. package/lib/components/field/Email/Email.js.map +1 -1
  88. package/lib/components/field/Group/Group.d.ts +2 -2
  89. package/lib/components/field/Group/Group.d.ts.map +1 -1
  90. package/lib/components/field/Group/Group.js +4 -3
  91. package/lib/components/field/Group/Group.js.map +1 -1
  92. package/lib/components/field/Integer/Integer.d.ts +1 -1
  93. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  94. package/lib/components/field/Integer/Integer.js +4 -5
  95. package/lib/components/field/Integer/Integer.js.map +1 -1
  96. package/lib/components/field/Location/Location.css +4 -0
  97. package/lib/components/field/Location/Location.d.ts +11 -0
  98. package/lib/components/field/Location/Location.d.ts.map +1 -0
  99. package/lib/components/field/Location/Location.js +158 -0
  100. package/lib/components/field/Location/Location.js.map +1 -0
  101. package/lib/components/field/Location/index.d.ts +2 -0
  102. package/lib/components/field/Location/index.d.ts.map +1 -0
  103. package/lib/components/field/Location/index.js +2 -0
  104. package/lib/components/field/Location/index.js.map +1 -0
  105. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  106. package/lib/components/field/Multiselect/utils.d.ts +2 -1
  107. package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
  108. package/lib/components/field/Multiselect/utils.js +1 -1
  109. package/lib/components/field/Multiselect/utils.js.map +1 -1
  110. package/lib/components/field/ObjectReference/ObjectReference.d.ts +16 -0
  111. package/lib/components/field/ObjectReference/ObjectReference.d.ts.map +1 -0
  112. package/lib/components/field/ObjectReference/ObjectReference.js +165 -0
  113. package/lib/components/field/ObjectReference/ObjectReference.js.map +1 -0
  114. package/lib/components/field/ObjectReference/index.d.ts +2 -0
  115. package/lib/components/field/ObjectReference/index.d.ts.map +1 -0
  116. package/lib/components/field/ObjectReference/index.js +2 -0
  117. package/lib/components/field/ObjectReference/index.js.map +1 -0
  118. package/lib/components/field/ObjectReference/utils.d.ts +17 -0
  119. package/lib/components/field/ObjectReference/utils.d.ts.map +1 -0
  120. package/lib/components/field/ObjectReference/utils.js +99 -0
  121. package/lib/components/field/ObjectReference/utils.js.map +1 -0
  122. package/lib/components/field/Percentage/Percentage.d.ts +1 -1
  123. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  124. package/lib/components/field/Percentage/Percentage.js +2 -5
  125. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  126. package/lib/components/field/Phone/Phone.d.ts +1 -1
  127. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  128. package/lib/components/field/Phone/Phone.js +6 -4
  129. package/lib/components/field/Phone/Phone.js.map +1 -1
  130. package/lib/components/field/RadioButtons/RadioButtons.d.ts +8 -1
  131. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  132. package/lib/components/field/RadioButtons/RadioButtons.js +12 -1
  133. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  134. package/lib/components/field/RichText/RichText.css +79 -0
  135. package/lib/components/field/RichText/RichText.d.ts +2 -1
  136. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  137. package/lib/components/field/RichText/RichText.js +1 -0
  138. package/lib/components/field/RichText/RichText.js.map +1 -1
  139. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  140. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  141. package/lib/components/field/ScalarList/ScalarList.js +1 -2
  142. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  143. package/lib/components/field/SelectableCard/SelectableCard.d.ts +2 -0
  144. package/lib/components/field/SelectableCard/SelectableCard.d.ts.map +1 -0
  145. package/lib/components/field/SelectableCard/SelectableCard.js +68 -0
  146. package/lib/components/field/SelectableCard/SelectableCard.js.map +1 -0
  147. package/lib/components/field/SelectableCard/index.d.ts +2 -0
  148. package/lib/components/field/SelectableCard/index.d.ts.map +1 -0
  149. package/lib/components/field/SelectableCard/index.js +2 -0
  150. package/lib/components/field/SelectableCard/index.js.map +1 -0
  151. package/lib/components/field/SelectableCard/utils.d.ts +13 -0
  152. package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
  153. package/lib/components/field/SelectableCard/utils.js +183 -0
  154. package/lib/components/field/SelectableCard/utils.js.map +1 -0
  155. package/lib/components/field/SemanticLink/SemanticLink.d.ts +10 -2
  156. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  157. package/lib/components/field/SemanticLink/SemanticLink.js +128 -15
  158. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  159. package/lib/components/field/SemanticLink/utils.js +1 -1
  160. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  161. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  162. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  163. package/lib/components/field/TextArea/TextArea.js +4 -5
  164. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  165. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  166. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  167. package/lib/components/field/TextContent/TextContent.js +0 -1
  168. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  169. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  170. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  171. package/lib/components/field/TextInput/TextInput.js +4 -5
  172. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  173. package/lib/components/field/Time/Time.d.ts +1 -1
  174. package/lib/components/field/Time/Time.d.ts.map +1 -1
  175. package/lib/components/field/Time/Time.js +2 -5
  176. package/lib/components/field/Time/Time.js.map +1 -1
  177. package/lib/components/field/URL/URL.d.ts +1 -1
  178. package/lib/components/field/URL/URL.d.ts.map +1 -1
  179. package/lib/components/field/URL/URL.js +4 -5
  180. package/lib/components/field/URL/URL.js.map +1 -1
  181. package/lib/components/field/UserReference/UserReference.d.ts +1 -2
  182. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  183. package/lib/components/field/UserReference/UserReference.js +1 -2
  184. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  185. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
  186. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  187. package/lib/components/helpers/attachmentShared.d.ts +2 -0
  188. package/lib/components/helpers/attachmentShared.d.ts.map +1 -0
  189. package/lib/components/helpers/attachmentShared.js +6 -0
  190. package/lib/components/helpers/attachmentShared.js.map +1 -0
  191. package/lib/components/helpers/case-utils.js.map +1 -1
  192. package/lib/components/helpers/common-utils.d.ts +1 -1
  193. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  194. package/lib/components/helpers/common-utils.js +1 -2
  195. package/lib/components/helpers/common-utils.js.map +1 -1
  196. package/lib/components/helpers/data_page.d.ts.map +1 -1
  197. package/lib/components/helpers/data_page.js +0 -1
  198. package/lib/components/helpers/data_page.js.map +1 -1
  199. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  200. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  201. package/lib/components/helpers/event-utils.js.map +1 -1
  202. package/lib/components/helpers/field-group-utils.d.ts +1 -1
  203. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  204. package/lib/components/helpers/field-group-utils.js.map +1 -1
  205. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  206. package/lib/components/helpers/formatters/Currency.d.ts +1 -0
  207. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  208. package/lib/components/helpers/formatters/Currency.js +8 -4
  209. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  210. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  211. package/lib/components/helpers/formatters/CurrencyMap.js +0 -1
  212. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  213. package/lib/components/helpers/formatters/Date.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.map +1 -1
  217. package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
  218. package/lib/components/helpers/object-utils.d.ts +9 -0
  219. package/lib/components/helpers/object-utils.d.ts.map +1 -0
  220. package/lib/components/helpers/object-utils.js +11 -0
  221. package/lib/components/helpers/object-utils.js.map +1 -0
  222. package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
  223. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  224. package/lib/components/helpers/simpleTableHelpers.d.ts +15 -1
  225. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  226. package/lib/components/helpers/simpleTableHelpers.js +111 -5
  227. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  228. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  229. package/lib/components/helpers/state-utils.js.map +1 -1
  230. package/lib/components/helpers/template-utils.js.map +1 -1
  231. package/lib/components/helpers/utils.d.ts +1 -0
  232. package/lib/components/helpers/utils.d.ts.map +1 -1
  233. package/lib/components/helpers/utils.js +7 -1
  234. package/lib/components/helpers/utils.js.map +1 -1
  235. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  236. package/lib/components/helpers/versionHelpers.js +0 -1
  237. package/lib/components/helpers/versionHelpers.js.map +1 -1
  238. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  239. package/lib/components/infra/ActionButtons/ActionButtons.js +12 -7
  240. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  241. package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
  242. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  243. package/lib/components/infra/Assignment/Assignment.js +38 -30
  244. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  245. package/lib/components/infra/Assignment/useValidationBanner.d.ts +7 -0
  246. package/lib/components/infra/Assignment/useValidationBanner.d.ts.map +1 -0
  247. package/lib/components/infra/Assignment/useValidationBanner.js +26 -0
  248. package/lib/components/infra/Assignment/useValidationBanner.js.map +1 -0
  249. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
  250. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  251. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  252. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
  253. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  254. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +20 -85
  255. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  256. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  257. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  258. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
  259. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  260. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +0 -1
  261. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  262. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +5 -1
  263. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  264. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +4 -5
  265. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  266. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
  267. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  268. package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
  269. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
  270. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  271. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +5 -1
  272. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  273. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +7 -11
  274. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  275. package/lib/components/infra/Containers/container-helpers.d.ts +1 -0
  276. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -1
  277. package/lib/components/infra/Containers/container-helpers.js +46 -1
  278. package/lib/components/infra/Containers/container-helpers.js.map +1 -1
  279. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
  280. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  281. package/lib/components/infra/DashboardFilter/DashboardFilter.js +1 -4
  282. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  283. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  284. package/lib/components/infra/DashboardFilter/filterUtils.js +2 -3
  285. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  286. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +2 -1
  287. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  288. package/lib/components/infra/DeferLoad/DeferLoad.js +26 -13
  289. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  290. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  291. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  292. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +0 -2
  293. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  294. package/lib/components/infra/MultiStep/MultiStep.css +48 -70
  295. package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
  296. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  297. package/lib/components/infra/MultiStep/MultiStep.js +19 -37
  298. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  299. package/lib/components/infra/NavBar/NavBar.css +1 -1
  300. package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
  301. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  302. package/lib/components/infra/NavBar/NavBar.js +19 -7
  303. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  304. package/lib/components/infra/Reference/Reference.d.ts +1 -1
  305. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  306. package/lib/components/infra/Reference/Reference.js +6 -3
  307. package/lib/components/infra/Reference/Reference.js.map +1 -1
  308. package/lib/components/infra/Region/Region.d.ts +1 -1
  309. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  310. package/lib/components/infra/Region/Region.js.map +1 -1
  311. package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
  312. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  313. package/lib/components/infra/RootContainer/RootContainer.js +4 -6
  314. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  315. package/lib/components/infra/Stages/Stages.d.ts +1 -1
  316. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  317. package/lib/components/infra/Stages/Stages.js +2 -2
  318. package/lib/components/infra/Stages/Stages.js.map +1 -1
  319. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +1 -1
  320. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  321. package/lib/components/infra/View/View.d.ts +2 -2
  322. package/lib/components/infra/View/View.d.ts.map +1 -1
  323. package/lib/components/infra/View/View.js +7 -7
  324. package/lib/components/infra/View/View.js.map +1 -1
  325. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
  326. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
  327. package/lib/components/template/AdvancedSearch/AdvancedSearch.js +68 -0
  328. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
  329. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +23 -0
  330. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
  331. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +26 -0
  332. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
  333. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
  334. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
  335. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +179 -0
  336. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
  337. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
  338. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
  339. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +25 -0
  340. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
  341. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
  342. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
  343. package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
  344. package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
  345. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
  346. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
  347. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
  348. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
  349. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +10 -0
  350. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
  351. package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
  352. package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
  353. package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
  354. package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
  355. package/lib/components/template/AdvancedSearch/index.js +2 -0
  356. package/lib/components/template/AdvancedSearch/index.js.map +1 -0
  357. package/lib/components/template/AppShell/AppShell.css +1 -5
  358. package/lib/components/template/AppShell/AppShell.d.ts +2 -2
  359. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  360. package/lib/components/template/AppShell/AppShell.js +10 -13
  361. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  362. package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
  363. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  364. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  365. package/lib/components/template/CaseSummary/CaseSummary.d.ts +4 -2
  366. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  367. package/lib/components/template/CaseSummary/CaseSummary.js +22 -39
  368. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  369. package/lib/components/template/CaseView/CaseView.d.ts +2 -2
  370. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  371. package/lib/components/template/CaseView/CaseView.js +13 -15
  372. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  373. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
  374. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  375. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
  376. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  377. package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
  378. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  379. package/lib/components/template/Confirmation/Confirmation.js +0 -1
  380. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  381. package/lib/components/template/DataReference/DataReference.d.ts +9 -2
  382. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  383. package/lib/components/template/DataReference/DataReference.js +239 -80
  384. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  385. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
  386. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
  387. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
  388. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
  389. package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
  390. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
  391. package/lib/components/template/DataReference/SearchForm.js +87 -0
  392. package/lib/components/template/DataReference/SearchForm.js.map +1 -0
  393. package/lib/components/template/DataReference/utils.d.ts +15 -0
  394. package/lib/components/template/DataReference/utils.d.ts.map +1 -0
  395. package/lib/components/template/DataReference/utils.js +75 -0
  396. package/lib/components/template/DataReference/utils.js.map +1 -0
  397. package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
  398. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  399. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  400. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  401. package/lib/components/template/DefaultForm/utils/index.js +1 -2
  402. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  403. package/lib/components/template/DefaultPage/DefaultPage.d.ts +36 -0
  404. package/lib/components/template/DefaultPage/DefaultPage.d.ts.map +1 -0
  405. package/lib/components/template/DefaultPage/DefaultPage.js +28 -0
  406. package/lib/components/template/DefaultPage/DefaultPage.js.map +1 -0
  407. package/lib/components/template/DefaultPage/index.d.ts +2 -0
  408. package/lib/components/template/DefaultPage/index.d.ts.map +1 -0
  409. package/lib/components/template/DefaultPage/index.js +2 -0
  410. package/lib/components/template/DefaultPage/index.js.map +1 -0
  411. package/lib/components/template/Details/Details/Details.d.ts +1 -1
  412. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  413. package/lib/components/template/Details/Details/Details.js +2 -3
  414. package/lib/components/template/Details/Details/Details.js.map +1 -1
  415. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
  416. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  417. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  418. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
  419. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  420. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -3
  421. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  422. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
  423. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  424. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -3
  425. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  426. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
  427. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  428. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  429. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -1
  430. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  431. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -5
  432. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  433. package/lib/components/template/HierarchicalForm/HierarchicalForm.d.ts +4 -0
  434. package/lib/components/template/HierarchicalForm/HierarchicalForm.d.ts.map +1 -0
  435. package/lib/components/template/HierarchicalForm/HierarchicalForm.js +16 -0
  436. package/lib/components/template/HierarchicalForm/HierarchicalForm.js.map +1 -0
  437. package/lib/components/template/HierarchicalForm/hooks.d.ts +15 -0
  438. package/lib/components/template/HierarchicalForm/hooks.d.ts.map +1 -0
  439. package/lib/components/template/HierarchicalForm/hooks.js +163 -0
  440. package/lib/components/template/HierarchicalForm/hooks.js.map +1 -0
  441. package/lib/components/template/HierarchicalForm/index.d.ts +2 -0
  442. package/lib/components/template/HierarchicalForm/index.d.ts.map +1 -0
  443. package/lib/components/template/HierarchicalForm/index.js +2 -0
  444. package/lib/components/template/HierarchicalForm/index.js.map +1 -0
  445. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
  446. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  447. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  448. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  449. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
  450. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  451. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  452. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  453. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  454. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  455. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  456. package/lib/components/template/ListView/ListView.d.ts +5 -1
  457. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  458. package/lib/components/template/ListView/ListView.js +186 -70
  459. package/lib/components/template/ListView/ListView.js.map +1 -1
  460. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  461. package/lib/components/template/ListView/hooks.js +2 -5
  462. package/lib/components/template/ListView/hooks.js.map +1 -1
  463. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  464. package/lib/components/template/ListView/utils.js +28 -5
  465. package/lib/components/template/ListView/utils.js.map +1 -1
  466. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +4 -2
  467. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  468. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +13 -1
  469. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  470. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
  471. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  472. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  473. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
  474. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  475. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -3
  476. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  477. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
  478. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  479. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  480. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
  481. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  482. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  483. package/lib/components/template/ObjectPage/index.d.ts +2 -0
  484. package/lib/components/template/ObjectPage/index.d.ts.map +1 -0
  485. package/lib/components/template/ObjectPage/index.js +2 -0
  486. package/lib/components/template/ObjectPage/index.js.map +1 -0
  487. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
  488. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  489. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  490. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  491. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
  492. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  493. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  494. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
  495. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  496. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  497. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
  498. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  499. package/lib/components/template/PromotedFilters/PromotedFilters.js +0 -1
  500. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  501. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts +2 -0
  502. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts.map +1 -0
  503. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js +84 -0
  504. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js.map +1 -0
  505. package/lib/components/template/SelfServiceCaseView/index.d.ts +2 -0
  506. package/lib/components/template/SelfServiceCaseView/index.d.ts.map +1 -0
  507. package/lib/components/template/SelfServiceCaseView/index.js +2 -0
  508. package/lib/components/template/SelfServiceCaseView/index.js.map +1 -0
  509. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
  510. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  511. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +1 -2
  512. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  513. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +2 -2
  514. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  515. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +37 -33
  516. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  517. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
  518. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  519. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  520. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.d.ts +17 -0
  521. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.d.ts.map +1 -0
  522. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.js +94 -0
  523. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.js.map +1 -0
  524. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.d.ts +2 -0
  525. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.d.ts.map +1 -0
  526. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.js +2 -0
  527. package/lib/components/template/SimpleTable/SimpleTableSelectReadonly/index.js.map +1 -0
  528. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  529. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  530. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +3 -2
  531. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  532. package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
  533. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  534. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  535. package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
  536. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  537. package/lib/components/template/SubTabs/tabUtils.js +102 -1
  538. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  539. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
  540. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  541. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -3
  542. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  543. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
  544. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  545. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  546. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
  547. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  548. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -3
  549. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  550. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
  551. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  552. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  553. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
  554. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  555. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -3
  556. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  557. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
  558. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  559. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  560. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
  561. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  562. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  563. package/lib/components/template/WssNavBar/WssNavBar.css +1 -1
  564. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
  565. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  566. package/lib/components/template/WssNavBar/WssNavBar.js +4 -4
  567. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  568. package/lib/components/template/utils.d.ts +7 -0
  569. package/lib/components/template/utils.d.ts.map +1 -0
  570. package/lib/components/template/utils.js +52 -0
  571. package/lib/components/template/utils.js.map +1 -0
  572. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
  573. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  574. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  575. package/lib/components/widget/Attachment/Attachment.css +6 -8
  576. package/lib/components/widget/Attachment/Attachment.d.ts +4 -2
  577. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  578. package/lib/components/widget/Attachment/Attachment.js +255 -202
  579. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  580. package/lib/components/widget/Attachment/Attachment.types.d.ts +90 -0
  581. package/lib/components/widget/Attachment/Attachment.types.d.ts.map +1 -0
  582. package/lib/components/widget/Attachment/Attachment.types.js +2 -0
  583. package/lib/components/widget/Attachment/Attachment.types.js.map +1 -0
  584. package/lib/components/widget/Attachment/AttachmentUtils.d.ts +25 -0
  585. package/lib/components/widget/Attachment/AttachmentUtils.d.ts.map +1 -0
  586. package/lib/components/widget/Attachment/AttachmentUtils.js +255 -0
  587. package/lib/components/widget/Attachment/AttachmentUtils.js.map +1 -0
  588. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  589. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  590. package/lib/components/widget/CaseHistory/CaseHistory.js +2 -2
  591. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  592. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
  593. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
  594. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  595. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  596. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  597. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +7 -6
  598. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +2 -1
  599. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  600. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +29 -17
  601. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  602. package/lib/components/widget/Followers/Followers.d.ts +2 -2
  603. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  604. package/lib/components/widget/Followers/Followers.js +0 -2
  605. package/lib/components/widget/Followers/Followers.js.map +1 -1
  606. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
  607. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  608. package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
  609. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  610. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -11
  611. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
  612. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  613. package/lib/components/widget/SummaryItem/SummaryItem.js +1 -1
  614. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  615. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
  616. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  617. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  618. package/lib/components/widget/ToDo/ToDo.css +1 -13
  619. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  620. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  621. package/lib/components/widget/ToDo/ToDo.js +21 -16
  622. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  623. package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
  624. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
  625. package/lib/hooks/useAfterInitialEffect.js.map +1 -1
  626. package/lib/hooks/useConsolidatedRef.d.ts +1 -1
  627. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  628. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  629. package/lib/hooks/useFocusFirstField.d.ts +3 -3
  630. package/lib/hooks/useFocusFirstField.d.ts.map +1 -1
  631. package/lib/hooks/useFocusFirstField.js +19 -12
  632. package/lib/hooks/useFocusFirstField.js.map +1 -1
  633. package/lib/hooks/useGetTabsCount.d.ts +10 -0
  634. package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
  635. package/lib/hooks/useGetTabsCount.js +165 -0
  636. package/lib/hooks/useGetTabsCount.js.map +1 -0
  637. package/lib/hooks/useIsMount.d.ts +2 -0
  638. package/lib/hooks/useIsMount.d.ts.map +1 -0
  639. package/lib/hooks/useIsMount.js +9 -0
  640. package/lib/hooks/useIsMount.js.map +1 -0
  641. package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
  642. package/lib/mediaco/ToDo/ToDo.css +81 -0
  643. package/lib/mediaco/ToDo/ToDo.d.ts +16 -0
  644. package/lib/mediaco/ToDo/ToDo.d.ts.map +1 -0
  645. package/lib/mediaco/ToDo/ToDo.js +187 -0
  646. package/lib/mediaco/ToDo/ToDo.js.map +1 -0
  647. package/lib/mediaco/ToDo/index.d.ts +2 -0
  648. package/lib/mediaco/ToDo/index.d.ts.map +1 -0
  649. package/lib/mediaco/ToDo/index.js +2 -0
  650. package/lib/mediaco/ToDo/index.js.map +1 -0
  651. package/lib/samples/Embedded/styles.css +26 -0
  652. package/lib/sdk-pega-component-map.d.ts +125 -103
  653. package/lib/sdk-pega-component-map.d.ts.map +1 -1
  654. package/lib/sdk-pega-component-map.js +26 -3
  655. package/lib/sdk-pega-component-map.js.map +1 -1
  656. package/lib/theme.d.ts +30 -1
  657. package/lib/theme.d.ts.map +1 -1
  658. package/lib/theme.js +209 -2
  659. package/lib/theme.js.map +1 -1
  660. package/lib/types/PConnProps.d.ts +1 -1
  661. package/package.json +32 -1
  662. package/lib/components/helpers/attachmentHelpers.d.ts +0 -13
  663. package/lib/components/helpers/attachmentHelpers.d.ts.map +0 -1
  664. package/lib/components/helpers/attachmentHelpers.js +0 -72
  665. package/lib/components/helpers/attachmentHelpers.js.map +0 -1
@@ -41,7 +41,6 @@ function Filters({ filters, transientItemID, localeReference }) {
41
41
  contextName: transientItemID
42
42
  }
43
43
  });
44
- // eslint-disable-next-line react/no-array-index-key
45
44
  return _jsx(React.Fragment, { children: createElement(createPConnectComponent(), c11nEnv) }, index);
46
45
  });
47
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PromotedFilters.js","sourceRoot":"","sources":["../../../../src/components/template/PromotedFilters/PromotedFilters.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAE1C,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,uBAAuB,CAAC;AAe/B,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,mCAAmC,GAAG;IAC1C,WAAW;IACX,YAAY;IACZ,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,MAAM;IACN,MAAM;IACN,MAAM;IACN,UAAU;IACV,UAAU;IACV,KAAK;IACL,U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Ae,CAAC,EAAE,CAAC,CAAC,CAAC,4CAA4C;IACtG,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,8BACE,wBAAM,aAAa,CAAC,KAAK,GAAO,EAChC,cAAK,SAAS,EAAC,kBAAkB,YAC/B,KAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,CAAC,eAAe,GAAI,GAC3G,EACN,0BACE,KAAC,MAAM,IAAS,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,eAAe,iBAAc,OAAO,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,YAC5G,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,IAD5B,GAAG,CAEN,EACT,KAAC,MAAM,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAU,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,aAAa,iBAAc,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,YACtI,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,IADF,GAAG,CAEjC,IACL,EACL,SAAS,IAAI,CACZ,KAAC,QAAQ,OACH,aAAa,EACjB,KAAK,EAAC,EAAE,EACR,OAAO,EAAE,OAAO,EAChB,YAAY,QACZ,YAAY,EAAE;oBACZ,IAAI,EAAE,SAAS;iBAChB,GACD,CACH,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useCallback, useMemo, useState, createElement } from 'react';\nimport Button from '@mui/material/Button';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\nimport { isEmptyObject } from '../../helpers/common-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport './PromotedFilters.css';\n\nimport { PConnProps } from '../../../types/PConnProps';\n\n// Can't use PromotedFilterProps until getContainerManager() knows about addTransientItem\n// Currently just expects \"object\"\ninterface PromotedFilterProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n viewName: string;\n filters: any[];\n listViewProps: any;\n pageClass: string;\n parameters?: object;\n}\n\nconst localeCategory = 'SimpleTable';\nconst SUPPORTED_TYPES_IN_PROMOTED_FILTERS = [\n 'TextInput',\n 'Percentage',\n 'Email',\n 'Integer',\n 'Decimal',\n 'Checkbox',\n 'DateTime',\n 'Date',\n 'Time',\n 'Text',\n 'TextArea',\n 'Currency',\n 'URL',\n 'RichText'\n];\n\nfunction Filters({ filters, transientItemID, localeReference }) {\n return filters.map((filter, index) => {\n const filterClone = { ...filter };\n // convert any field which is not supported to TextInput and delete the placeholder as it may contain placeholder specific to original type.\n if (!SUPPORTED_TYPES_IN_PROMOTED_FILTERS.includes(filterClone.type)) {\n filterClone.type = 'TextInput';\n delete filterClone.config.placeholder;\n }\n filterClone.config.contextName = transientItemID;\n filterClone.config.readOnly = false;\n filterClone.config.context = transientItemID;\n filterClone.config.localeReference = localeReference;\n const c11nEnv = PCore.createPConnect({\n meta: filterClone,\n options: {\n hasForm: true,\n contextName: transientItemID\n }\n });\n\n // eslint-disable-next-line react/no-array-index-key\n return <React.Fragment key={index}>{createElement(createPConnectComponent(), c11nEnv)}</React.Fragment>;\n });\n}\n\nfunction isValidInput(input) {\n return Object.values(input).findIndex(v => v) >= 0;\n}\n\nexport default function PromotedFilters(props: PromotedFilterProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const { getPConnect, viewName, filters, listViewProps, pageClass, parameters } = props;\n const [initTable, setInitTable] = useState(false);\n const [payload, setPayload] = useState({});\n const filtersProperties = {};\n\n filters.forEach(filter => {\n filtersProperties[PCore.getAnnotationUtils().getPropertyName(filter.config.value)] = '';\n });\n\n const transientItemID = useMemo(() => {\n const filtersWithClassID = {\n ...filtersProperties,\n classID: pageClass\n };\n return getPConnect().getContainerManager().addTransientItem({\n id: viewName,\n data: filtersWithClassID\n });\n }, []);\n\n function formatPromotedFilters(promotedFilters) {\n return Object.entries(promotedFilters).reduce((acc, [field, value]) => {\n if (value) {\n acc[field] = {\n lhs: {\n field\n },\n comparator: 'EQ',\n rhs: {\n value\n }\n };\n }\n return acc;\n }, {});\n }\n\n const getFilterData = useCallback(\n e => {\n e.preventDefault(); // to prevent un-intended forms submission.\n\n const changes = PCore.getFormUtils().getChanges(transientItemID);\n const formValues = {};\n Object.keys(changes).forEach(key => {\n if (!['context_data', 'pageInstructions'].includes(key)) {\n formValues[key] = changes[key];\n }\n });\n const promotedFilters = formatPromotedFilters(formValues);\n if (PCore.getFormUtils().isFormValid(transientItemID) && isValidInput(formValues)) {\n setInitTable(true);\n const Query: any = {\n dataViewParameters: parameters\n };\n\n if (!isEmptyObject(promotedFilters)) {\n Query.query = { filter: { filterConditions: promotedFilters } };\n }\n setPayload(Query);\n }\n },\n [transientItemID]\n );\n\n const clearFilterData = useCallback(() => {\n PCore.getContainerUtils().clearTransientData(transientItemID);\n setInitTable(false);\n getPConnect()?.getListActions?.()?.setSelectedRows([]); // Clear the selection (if any made by user)\n }, [transientItemID]);\n\n return (\n <>\n <div>{listViewProps.title}</div>\n <div className='psdk-grid-filter'>\n <Filters filters={filters} transientItemID={transientItemID} localeReference={listViewProps.localeReference} />\n </div>\n <div>\n <Button key='1' type='button' onClick={clearFilterData} data-testid='clear' variant='contained' color='primary'>\n {localizedVal('Clear', localeCategory)}\n </Button>\n <Button style={{ float: 'right' }} key='2' type='submit' onClick={getFilterData} data-testid='search' variant='contained' color='primary'>\n {localizedVal('Search', localeCategory)}\n </Button>\n </div>\n {initTable && (\n <ListView\n {...listViewProps}\n title=''\n payload={payload}\n isSearchable\n tableDisplay={{\n show: initTable\n }}\n />\n )}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"PromotedFilters.js","sourceRoot":"","sources":["../../../../src/components/template/PromotedFilters/PromotedFilters.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OA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CAAC,IADF,GAAG,CAEjC,IACL,EACL,SAAS,IAAI,CACZ,KAAC,QAAQ,OACH,aAAa,EACjB,KAAK,EAAC,EAAE,EACR,OAAO,EAAE,OAAO,EAChB,YAAY,QACZ,YAAY,EAAE;oBACZ,IAAI,EAAE,SAAS;iBAChB,GACD,CACH,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useCallback, useMemo, useState, createElement } from 'react';\nimport Button from '@mui/material/Button';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\nimport { isEmptyObject } from '../../helpers/common-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport './PromotedFilters.css';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\n// Can't use PromotedFilterProps until getContainerManager() knows about addTransientItem\n// Currently just expects \"object\"\ninterface PromotedFilterProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n viewName: string;\n filters: any[];\n listViewProps: any;\n pageClass: string;\n parameters?: object;\n}\n\nconst localeCategory = 'SimpleTable';\nconst SUPPORTED_TYPES_IN_PROMOTED_FILTERS = [\n 'TextInput',\n 'Percentage',\n 'Email',\n 'Integer',\n 'Decimal',\n 'Checkbox',\n 'DateTime',\n 'Date',\n 'Time',\n 'Text',\n 'TextArea',\n 'Currency',\n 'URL',\n 'RichText'\n];\n\nfunction Filters({ filters, transientItemID, localeReference }) {\n return filters.map((filter, index) => {\n const filterClone = { ...filter };\n // convert any field which is not supported to TextInput and delete the placeholder as it may contain placeholder specific to original type.\n if (!SUPPORTED_TYPES_IN_PROMOTED_FILTERS.includes(filterClone.type)) {\n filterClone.type = 'TextInput';\n delete filterClone.config.placeholder;\n }\n filterClone.config.contextName = transientItemID;\n filterClone.config.readOnly = false;\n filterClone.config.context = transientItemID;\n filterClone.config.localeReference = localeReference;\n const c11nEnv = PCore.createPConnect({\n meta: filterClone,\n options: {\n hasForm: true,\n contextName: transientItemID\n }\n });\n\n return <React.Fragment key={index}>{createElement(createPConnectComponent(), c11nEnv)}</React.Fragment>;\n });\n}\n\nfunction isValidInput(input) {\n return Object.values(input).findIndex(v => v) >= 0;\n}\n\nexport default function PromotedFilters(props: PromotedFilterProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const { getPConnect, viewName, filters, listViewProps, pageClass, parameters } = props;\n const [initTable, setInitTable] = useState(false);\n const [payload, setPayload] = useState({});\n const filtersProperties = {};\n\n filters.forEach(filter => {\n filtersProperties[PCore.getAnnotationUtils().getPropertyName(filter.config.value)] = '';\n });\n\n const transientItemID = useMemo(() => {\n const filtersWithClassID = {\n ...filtersProperties,\n classID: pageClass\n };\n return getPConnect().getContainerManager().addTransientItem({\n id: viewName,\n data: filtersWithClassID\n });\n }, []);\n\n function formatPromotedFilters(promotedFilters) {\n return Object.entries(promotedFilters).reduce((acc, [field, value]) => {\n if (value) {\n acc[field] = {\n lhs: {\n field\n },\n comparator: 'EQ',\n rhs: {\n value\n }\n };\n }\n return acc;\n }, {});\n }\n\n const getFilterData = useCallback(\n e => {\n e.preventDefault(); // to prevent un-intended forms submission.\n\n const changes = PCore.getFormUtils().getChanges(transientItemID);\n const formValues = {};\n Object.keys(changes).forEach(key => {\n if (!['context_data', 'pageInstructions'].includes(key)) {\n formValues[key] = changes[key];\n }\n });\n const promotedFilters = formatPromotedFilters(formValues);\n if (PCore.getFormUtils().isFormValid(transientItemID) && isValidInput(formValues)) {\n setInitTable(true);\n const Query: any = {\n dataViewParameters: parameters\n };\n\n if (!isEmptyObject(promotedFilters)) {\n Query.query = { filter: { filterConditions: promotedFilters } };\n }\n setPayload(Query);\n }\n },\n [transientItemID]\n );\n\n const clearFilterData = useCallback(() => {\n PCore.getContainerUtils().clearTransientData(transientItemID);\n setInitTable(false);\n getPConnect()?.getListActions?.()?.setSelectedRows([]); // Clear the selection (if any made by user)\n }, [transientItemID]);\n\n return (\n <>\n <div>{listViewProps.title}</div>\n <div className='psdk-grid-filter'>\n <Filters filters={filters} transientItemID={transientItemID} localeReference={listViewProps.localeReference} />\n </div>\n <div>\n <Button key='1' type='button' onClick={clearFilterData} data-testid='clear' variant='contained' color='primary'>\n {localizedVal('Clear', localeCategory)}\n </Button>\n <Button style={{ float: 'right' }} key='2' type='submit' onClick={getFilterData} data-testid='search' variant='contained' color='primary'>\n {localizedVal('Search', localeCategory)}\n </Button>\n </div>\n {initTable && (\n <ListView\n {...listViewProps}\n title=''\n payload={payload}\n isSearchable\n tableDisplay={{\n show: initTable\n }}\n />\n )}\n </>\n );\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export default function SelfServiceCaseView(props: any): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=SelfServiceCaseView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelfServiceCaseView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/SelfServiceCaseView/SelfServiceCaseView.tsx"],"names":[],"mappings":"AA2CA,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,KAAA,2CA6GhD"}
@@ -0,0 +1,84 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Avatar, Card, CardHeader, Divider, Typography } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
5
+ import { prepareCaseSummaryData, filterUtilities } from '../utils';
6
+ import { Utils } from '../../helpers/utils';
7
+ const useStyles = makeStyles(theme => ({
8
+ root: {
9
+ paddingRight: theme.spacing(1),
10
+ paddingLeft: theme.spacing(1),
11
+ paddingTop: theme.spacing(1),
12
+ paddingBottom: theme.spacing(1),
13
+ marginRight: theme.spacing(1),
14
+ marginLeft: theme.spacing(1),
15
+ marginTop: theme.spacing(1),
16
+ marginBottom: theme.spacing(1)
17
+ },
18
+ caseViewHeader: {
19
+ backgroundColor: theme.palette.info.light,
20
+ color: theme.palette.getContrastText(theme.palette.info.light),
21
+ borderRadius: 'inherit'
22
+ },
23
+ caseViewIconBox: {
24
+ backgroundColor: theme.palette.info.dark,
25
+ width: theme.spacing(8),
26
+ height: theme.spacing(8),
27
+ padding: theme.spacing(1)
28
+ },
29
+ caseViewIconImage: {
30
+ filter: 'var(--svg-color)'
31
+ },
32
+ selfServiceCaseViewHeader: {
33
+ margin: '10px 8px 0px 8px',
34
+ height: '50px',
35
+ display: 'flex',
36
+ justifyContent: 'space-between',
37
+ alignItems: 'center',
38
+ backgroundColor: theme.palette.primary.light,
39
+ color: theme.palette.getContrastText(theme.palette.primary.light),
40
+ padding: '0 8px'
41
+ }
42
+ }));
43
+ export default function SelfServiceCaseView(props) {
44
+ const classes = useStyles();
45
+ const CaseViewActionsMenu = getComponentFromMap('CaseViewActionsMenu');
46
+ const CaseSummary = getComponentFromMap('CaseSummary');
47
+ const { icon = '', getPConnect, header, subheader, showCaseLifecycle = true, showSummaryRegion = true, showUtilitiesRegion = true, showCaseActions = true, children, caseClass, caseInfo: { availableActions = [], availableProcesses = [], caseTypeID = '', caseTypeName = '' } } = props;
48
+ const pConnect = getPConnect();
49
+ const [bShowCaseLifecycle, bShowSummaryRegion, bShowUtilitiesRegion, bShowCaseActions] = [
50
+ showCaseLifecycle,
51
+ showSummaryRegion,
52
+ showUtilitiesRegion,
53
+ showCaseActions
54
+ ].map((prop) => prop === true || prop === 'true');
55
+ const isObjectType = PCore.getCaseUtils().isObjectCaseType(caseClass);
56
+ const localeKey = pConnect?.getCaseLocaleReference();
57
+ const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());
58
+ const renderedRegions = isObjectType
59
+ ? {
60
+ caseSummary: children[0],
61
+ utilities: filterUtilities(children[2])
62
+ }
63
+ : {
64
+ caseSummary: children[0],
65
+ stages: children[1],
66
+ todo: children[2],
67
+ utilities: filterUtilities(children[4])
68
+ };
69
+ const { primarySummaryFields, secondarySummaryFields } = prepareCaseSummaryData(renderedRegions.caseSummary, (config) => config?.availableInChannel?.selfService === true);
70
+ const isUtilitiesRegionNotEmpty = () => {
71
+ const utilitiesElement = renderedRegions.utilities;
72
+ if (utilitiesElement?.props?.getPConnect()?.getChildren()?.length > 0) {
73
+ return utilitiesElement.props
74
+ .getPConnect()
75
+ .getChildren()
76
+ .some((prop) => prop.getPConnect().getConfigProps().visibility !== false);
77
+ }
78
+ return false;
79
+ };
80
+ const showSummary = bShowSummaryRegion && (primarySummaryFields.length > 0 || secondarySummaryFields.length > 0);
81
+ const showUtilities = bShowUtilitiesRegion && isUtilitiesRegionNotEmpty();
82
+ return (_jsxs("div", { children: [_jsxs("div", { className: classes.selfServiceCaseViewHeader, children: [_jsx("div", { children: PCore.getLocaleUtils().getLocaleValue(header, '', localeKey) }), bShowCaseActions && (_jsx(CaseViewActionsMenu, { getPConnect: getPConnect, availableActions: availableActions, availableProcesses: availableProcesses, caseTypeName: caseTypeName, caseTypeID: caseTypeID }))] }), _jsxs("div", { style: { display: 'flex', flexDirection: 'row' }, children: [showSummary && (_jsx("div", { style: { flex: '0 0 25%' }, children: _jsxs(Card, { className: classes.root, children: [_jsx(CardHeader, { className: classes.caseViewHeader, title: _jsx(Typography, { variant: 'h6', component: 'div', id: 'case-name', children: PCore.getLocaleUtils().getLocaleValue(header, '', localeKey) }), subheader: _jsx(Typography, { variant: 'body1', component: 'div', id: 'caseId', children: subheader }), avatar: _jsx(Avatar, { className: classes.caseViewIconBox, variant: 'square', children: _jsx("img", { src: svgCase, className: classes.caseViewIconImage }) }) }), _jsx(Divider, {}), _jsx(CaseSummary, { arPrimaryFields: primarySummaryFields, arSecondaryFields: secondarySummaryFields }), _jsx(Divider, {})] }) })), _jsxs("div", { style: { flex: 1 }, children: [bShowCaseLifecycle && renderedRegions.stages, renderedRegions.todo] }), showUtilities && _jsx("div", { style: { flex: '0 0 25%' }, children: renderedRegions.utilities })] })] }));
83
+ }
84
+ //# sourceMappingURL=SelfServiceCaseView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelfServiceCase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AAC,KAAK,EAAC,EAAE,EAAC,QAAQ,YACpD,SAAS,GACC,EAEf,MAAM,EACJ,KAAC,MAAM,IAAC,SAAS,EAAE,OAAO,CAAC,eAAe,EAAE,OAAO,EAAC,QAAQ,YAC1D,cAAK,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,iBAAiB,GAAI,GACpD,GAEX,EACF,KAAC,OAAO,KAAG,EACX,KAAC,WAAW,IAAC,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,sBAAsB,GAAgB,EAC7G,KAAC,OAAO,KAAG,IACN,GACH,CACP,EAED,eAAK,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,aACpB,kBAAkB,IAAI,eAAe,CAAC,MAAM,EAC5C,eAAe,CAAC,IAAI,IACjB,EAEL,aAAa,IAAI,cAAK,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAG,eAAe,CAAC,SAAS,GAAO,IAChF,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { Avatar, Card, CardHeader, Divider, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { prepareCaseSummaryData, filterUtilities } from '../utils';\nimport { Utils } from '../../helpers/utils';\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n caseViewHeader: {\n backgroundColor: theme.palette.info.light,\n color: theme.palette.getContrastText(theme.palette.info.light),\n borderRadius: 'inherit'\n },\n caseViewIconBox: {\n backgroundColor: theme.palette.info.dark,\n width: theme.spacing(8),\n height: theme.spacing(8),\n padding: theme.spacing(1)\n },\n caseViewIconImage: {\n filter: 'var(--svg-color)'\n },\n selfServiceCaseViewHeader: {\n margin: '10px 8px 0px 8px',\n height: '50px',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light),\n padding: '0 8px'\n }\n}));\n\nexport default function SelfServiceCaseView(props) {\n const classes = useStyles();\n const CaseViewActionsMenu = getComponentFromMap('CaseViewActionsMenu');\n const CaseSummary = getComponentFromMap('CaseSummary');\n const {\n icon = '',\n getPConnect,\n header,\n subheader,\n showCaseLifecycle = true,\n showSummaryRegion = true,\n showUtilitiesRegion = true,\n showCaseActions = true,\n children,\n caseClass,\n caseInfo: { availableActions = [], availableProcesses = [], caseTypeID = '', caseTypeName = '' }\n } = props;\n const pConnect = getPConnect();\n const [bShowCaseLifecycle, bShowSummaryRegion, bShowUtilitiesRegion, bShowCaseActions] = [\n showCaseLifecycle,\n showSummaryRegion,\n showUtilitiesRegion,\n showCaseActions\n ].map((prop: boolean | string) => prop === true || prop === 'true');\n const isObjectType: boolean = (PCore.getCaseUtils() as any).isObjectCaseType(caseClass);\n const localeKey = pConnect?.getCaseLocaleReference();\n const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());\n const renderedRegions: any = isObjectType\n ? {\n caseSummary: children[0],\n utilities: filterUtilities(children[2])\n }\n : {\n caseSummary: children[0],\n stages: children[1],\n todo: children[2],\n utilities: filterUtilities(children[4])\n };\n const { primarySummaryFields, secondarySummaryFields } = prepareCaseSummaryData(\n renderedRegions.caseSummary,\n (config: any) => config?.availableInChannel?.selfService === true\n );\n\n const isUtilitiesRegionNotEmpty: () => boolean = () => {\n const utilitiesElement = renderedRegions.utilities;\n if (utilitiesElement?.props?.getPConnect()?.getChildren()?.length > 0) {\n return utilitiesElement.props\n .getPConnect()\n .getChildren()\n .some((prop: { getPConnect: () => any }) => prop.getPConnect().getConfigProps().visibility !== false);\n }\n return false;\n };\n\n const showSummary = bShowSummaryRegion && (primarySummaryFields.length > 0 || secondarySummaryFields.length > 0);\n const showUtilities = bShowUtilitiesRegion && isUtilitiesRegionNotEmpty();\n\n return (\n <div>\n <div className={classes.selfServiceCaseViewHeader}>\n <div>{PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)}</div>\n {bShowCaseActions && (\n <CaseViewActionsMenu\n getPConnect={getPConnect}\n availableActions={availableActions}\n availableProcesses={availableProcesses}\n caseTypeName={caseTypeName}\n caseTypeID={caseTypeID}\n />\n )}\n </div>\n <div style={{ display: 'flex', flexDirection: 'row' }}>\n {showSummary && (\n <div style={{ flex: '0 0 25%' }}>\n <Card className={classes.root}>\n <CardHeader\n className={classes.caseViewHeader}\n title={\n <Typography variant='h6' component='div' id='case-name'>\n {PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)}\n </Typography>\n }\n subheader={\n <Typography variant='body1' component='div' id='caseId'>\n {subheader}\n </Typography>\n }\n avatar={\n <Avatar className={classes.caseViewIconBox} variant='square'>\n <img src={svgCase} className={classes.caseViewIconImage} />\n </Avatar>\n }\n />\n <Divider />\n <CaseSummary arPrimaryFields={primarySummaryFields} arSecondaryFields={secondarySummaryFields}></CaseSummary>\n <Divider />\n </Card>\n </div>\n )}\n\n <div style={{ flex: 1 }}>\n {bShowCaseLifecycle && renderedRegions.stages}\n {renderedRegions.todo}\n </div>\n\n {showUtilities && <div style={{ flex: '0 0 25%' }}>{renderedRegions.utilities}</div>}\n </div>\n </div>\n );\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './SelfServiceCaseView';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/SelfServiceCaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './SelfServiceCaseView';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/template/SelfServiceCaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { default } from './SelfServiceCaseView';\n"]}
@@ -1,4 +1,4 @@
1
- import { PConnProps } from '../../../../types/PConnProps';
1
+ import type { PConnProps } from '../../../../types/PConnProps';
2
2
  interface SimpleTableProps extends PConnProps {
3
3
  multiRecordDisplayAs: string;
4
4
  allowTableEdit: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG1D,UAAU,gBAAiB,SAAQ,UAAU;IAE3C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,GAAG,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAmG1D"}
1
+ {"version":3,"file":"SimpleTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG/D,UAAU,gBAAiB,SAAQ,UAAU;IAE3C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,GAAG,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAmG1D"}
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- /* eslint-disable react-hooks/rules-of-hooks */
3
2
  import { useRef } from 'react';
4
3
  import { buildMetaForListView, getContext } from '../../../helpers/simpleTableHelpers';
5
4
  import { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';
@@ -37,7 +36,7 @@ export default function SimpleTable(props) {
37
36
  const metaForListView = buildMetaForListView(fieldMetadata, rawFields, type, ruleClass, name, propsToUse.label, isDataObject, parameters // resolved params
38
37
  );
39
38
  const metaForPConnect = JSON.parse(JSON.stringify(metaForListView));
40
- // @ts-ignore - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.
39
+ // @ts-expect-error - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.
41
40
  metaForPConnect.config.parameters = rawParams ?? PCore.getMetadataUtils().getPropertyMetadata(name)?.datasource?.parameters;
42
41
  const { referenceListStr: referenceList } = getContext(getPConnect());
43
42
  let requiredContextForQueryInDisplayMode = {};
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleTable.js","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAuBnF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,8EAA8E;IAC9E,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;IACrE,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IAEnE,MAAM,EACJ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,KAAK,EAAE,SAAS,EAChB,aAAa,EACb,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,aAAa,EACb,IAAI,EACL,GAAG,KAAK,CAAC;IAEV,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAC7B,IAAI,CAAC,YAAY,EAAE;QACjB,IAAI,QAAQ,GAAG,WAAW,EAAE,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC;QAChE,QAAQ,GAAG,KAAK,CAAC,kBAAkB,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAChE,6EAA6E;QAC7E,MAAM,gBAAgB,GAAG,WAAW,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAClE,IAAI,gBAAgB,EAAE;YACpB,YAAY,GAAG,gBAAgB,CAAC,SAAS,CAAC;SAC3C;aAAM;YACL,YAAY,GAAG,SAAS,CAAC;SAC1B;KACF;IACD,IAAI,oBAAoB,KA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oBAAoB,EAAE;YACxB,oCAAoC,GAAG;gBACrC,aAAa;aACd,CAAC;SACH;QACD,MAAM,OAAO,GAAG;YACd,OAAO,EAAE,WAAW,EAAE,CAAC,cAAc,EAAE;YACvC,aAAa,EAAE,WAAW,EAAE,CAAC,gBAAgB,EAAE;YAC/C,GAAG,oCAAoC;SACxC,CAAC;QAEF,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,2CAA2C;QACvJ,uCAAuC;QACvC,MAAM,aAAa,GAAG;YACpB,GAAG,eAAe,CAAC,MAAM;YACzB,WAAW,EAAE,aAAa;YAC1B,WAAW;YACX,SAAS,EAAE,aAAa;YACxB,OAAO,EAAE,IAAI;SACd,CAAC;QACF,OAAO,KAAC,QAAQ,OAAK,aAAa,GAAI,CAAC;KACxC;IACD,MAAM,sBAAsB,GAAQ,EAAE,GAAG,KAAK,EAAE,YAAY,EAAE,CAAC;IAC/D,IAAI,cAAc,KAAK,KAAK,EAAE;QAC5B,sBAAsB,CAAC,UAAU,GAAG,IAAI,CAAC;QACzC,sBAAsB,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5C,sBAAsB,CAAC,eAAe,GAAG,IAAI,CAAC;KAC/C;IACD,OAAO,KAAC,iBAAiB,OAAK,sBAAsB,GAAI,CAAC;AAC3D,CAAC","sourcesContent":["/* eslint-disable react-hooks/rules-of-hooks */\nimport { useRef } from 'react';\n\nimport { buildMetaForListView, getContext } from '../../../helpers/simpleTableHelpers';\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\nimport { PConnProps } from '../../../../types/PConnProps';\n\n// Can't use SimpleTableProps until getComponentConfig() and getFieldMetadata() are NOT private\ninterface SimpleTableProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n multiRecordDisplayAs: string;\n allowTableEdit: boolean;\n contextClass: any;\n label: string;\n propertyLabel?: string;\n displayMode?: string;\n fieldMetadata?: any;\n hideLabel?: boolean;\n parameters?: any;\n isDataObject?: boolean;\n type?: string;\n ruleClass?: string;\n authorContext?: string;\n name?: string;\n}\n\nexport default function SimpleTable(props: SimpleTableProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n const FieldGroupTemplate = getComponentFromMap('FieldGroupTemplate');\n const SimpleTableManual = getComponentFromMap('SimpleTableManual');\n\n const {\n getPConnect,\n multiRecordDisplayAs,\n allowTableEdit,\n label: labelProp,\n propertyLabel,\n displayMode,\n fieldMetadata,\n hideLabel,\n parameters,\n isDataObject,\n type,\n ruleClass,\n authorContext,\n name\n } = props;\n\n let { contextClass } = props;\n if (!contextClass) {\n let listName = getPConnect().getComponentConfig().referenceList;\n listName = PCore.getAnnotationUtils().getPropertyName(listName);\n // was... contextClass = getPConnect().getFieldMetadata(listName)?.pageClass;\n const theFieldMetadata = getPConnect().getFieldMetadata(listName);\n if (theFieldMetadata) {\n contextClass = theFieldMetadata.pageClass;\n } else {\n contextClass = undefined;\n }\n }\n if (multiRecordDisplayAs === 'fieldGroup') {\n const fieldGroupProps = { ...props, contextClass };\n return <FieldGroupTemplate {...fieldGroupProps} />;\n }\n\n const label = labelProp || propertyLabel;\n const propsToUse = { label, ...getPConnect().getInheritedProps() };\n const isDisplayModeEnabled = displayMode === 'DISPLAY_ONLY';\n\n if (fieldMetadata && fieldMetadata.type === 'Page List' && fieldMetadata.dataRetrievalType === 'refer') {\n const {\n children: [{ children: rawFields }],\n parameters: rawParams\n } = (getPConnect().getRawMetadata() as any).config;\n if (isDisplayModeEnabled && hideLabel) {\n propsToUse.label = '';\n }\n\n const metaForListView = buildMetaForListView(\n fieldMetadata,\n rawFields,\n type,\n ruleClass,\n name,\n propsToUse.label,\n isDataObject,\n parameters // resolved params\n );\n\n const metaForPConnect = JSON.parse(JSON.stringify(metaForListView));\n // @ts-ignore - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.\n metaForPConnect.config.parameters = rawParams ?? PCore.getMetadataUtils().getPropertyMetadata(name)?.datasource?.parameters;\n\n const { referenceListStr: referenceList } = getContext(getPConnect());\n let requiredContextForQueryInDisplayMode = {};\n if (isDisplayModeEnabled) {\n requiredContextForQueryInDisplayMode = {\n referenceList\n };\n }\n const options = {\n context: getPConnect().getContextName(),\n pageReference: getPConnect().getPageReference(),\n ...requiredContextForQueryInDisplayMode\n };\n\n const refToPConnect = useRef(PCore.createPConnect({ meta: metaForPConnect, options }).getPConnect).current; // getPConnect should be created only once.\n /* BUG-637178 : need to send context */\n const listViewProps = {\n ...metaForListView.config,\n getPConnect: refToPConnect,\n displayMode,\n fieldName: authorContext,\n bInForm: true\n };\n return <ListView {...listViewProps} />;\n }\n const simpleTableManualProps: any = { ...props, contextClass };\n if (allowTableEdit === false) {\n simpleTableManualProps.hideAddRow = true;\n simpleTableManualProps.hideDeleteRow = true;\n simpleTableManualProps.disableDragDrop = true;\n }\n return <SimpleTableManual {...simpleTableManualProps} />;\n}\n"]}
1
+ {"version":3,"file":"SimpleTable.js","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAuBnF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,8EAA8E;IAC9E,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;IACrE,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IAEnE,MAAM,EACJ,WAAW,EACX,oBAAoB,EACpB,cAAc,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AO,EAAE,IAAI;SACd,CAAC;QACF,OAAO,KAAC,QAAQ,OAAK,aAAa,GAAI,CAAC;IACzC,CAAC;IACD,MAAM,sBAAsB,GAAQ,EAAE,GAAG,KAAK,EAAE,YAAY,EAAE,CAAC;IAC/D,IAAI,cAAc,KAAK,KAAK,EAAE,CAAC;QAC7B,sBAAsB,CAAC,UAAU,GAAG,IAAI,CAAC;QACzC,sBAAsB,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5C,sBAAsB,CAAC,eAAe,GAAG,IAAI,CAAC;IAChD,CAAC;IACD,OAAO,KAAC,iBAAiB,OAAK,sBAAsB,GAAI,CAAC;AAC3D,CAAC","sourcesContent":["import { useRef } from 'react';\n\nimport { buildMetaForListView, getContext } from '../../../helpers/simpleTableHelpers';\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\nimport type { PConnProps } from '../../../../types/PConnProps';\n\n// Can't use SimpleTableProps until getComponentConfig() and getFieldMetadata() are NOT private\ninterface SimpleTableProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n multiRecordDisplayAs: string;\n allowTableEdit: boolean;\n contextClass: any;\n label: string;\n propertyLabel?: string;\n displayMode?: string;\n fieldMetadata?: any;\n hideLabel?: boolean;\n parameters?: any;\n isDataObject?: boolean;\n type?: string;\n ruleClass?: string;\n authorContext?: string;\n name?: string;\n}\n\nexport default function SimpleTable(props: SimpleTableProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n const FieldGroupTemplate = getComponentFromMap('FieldGroupTemplate');\n const SimpleTableManual = getComponentFromMap('SimpleTableManual');\n\n const {\n getPConnect,\n multiRecordDisplayAs,\n allowTableEdit,\n label: labelProp,\n propertyLabel,\n displayMode,\n fieldMetadata,\n hideLabel,\n parameters,\n isDataObject,\n type,\n ruleClass,\n authorContext,\n name\n } = props;\n\n let { contextClass } = props;\n if (!contextClass) {\n let listName = getPConnect().getComponentConfig().referenceList;\n listName = PCore.getAnnotationUtils().getPropertyName(listName);\n // was... contextClass = getPConnect().getFieldMetadata(listName)?.pageClass;\n const theFieldMetadata = getPConnect().getFieldMetadata(listName);\n if (theFieldMetadata) {\n contextClass = theFieldMetadata.pageClass;\n } else {\n contextClass = undefined;\n }\n }\n if (multiRecordDisplayAs === 'fieldGroup') {\n const fieldGroupProps = { ...props, contextClass };\n return <FieldGroupTemplate {...fieldGroupProps} />;\n }\n\n const label = labelProp || propertyLabel;\n const propsToUse = { label, ...getPConnect().getInheritedProps() };\n const isDisplayModeEnabled = displayMode === 'DISPLAY_ONLY';\n\n if (fieldMetadata && fieldMetadata.type === 'Page List' && fieldMetadata.dataRetrievalType === 'refer') {\n const {\n children: [{ children: rawFields }],\n parameters: rawParams\n } = (getPConnect().getRawMetadata() as any).config;\n if (isDisplayModeEnabled && hideLabel) {\n propsToUse.label = '';\n }\n\n const metaForListView = buildMetaForListView(\n fieldMetadata,\n rawFields,\n type,\n ruleClass,\n name,\n propsToUse.label,\n isDataObject,\n parameters // resolved params\n );\n\n const metaForPConnect = JSON.parse(JSON.stringify(metaForListView));\n // @ts-expect-error - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.\n metaForPConnect.config.parameters = rawParams ?? PCore.getMetadataUtils().getPropertyMetadata(name)?.datasource?.parameters;\n\n const { referenceListStr: referenceList } = getContext(getPConnect());\n let requiredContextForQueryInDisplayMode = {};\n if (isDisplayModeEnabled) {\n requiredContextForQueryInDisplayMode = {\n referenceList\n };\n }\n const options = {\n context: getPConnect().getContextName(),\n pageReference: getPConnect().getPageReference(),\n ...requiredContextForQueryInDisplayMode\n };\n\n const refToPConnect = useRef(PCore.createPConnect({ meta: metaForPConnect, options }).getPConnect).current; // getPConnect should be created only once.\n /* BUG-637178 : need to send context */\n const listViewProps = {\n ...metaForListView.config,\n getPConnect: refToPConnect,\n displayMode,\n fieldName: authorContext,\n bInForm: true\n };\n return <ListView {...listViewProps} />;\n }\n const simpleTableManualProps: any = { ...props, contextClass };\n if (allowTableEdit === false) {\n simpleTableManualProps.hideAddRow = true;\n simpleTableManualProps.hideDeleteRow = true;\n simpleTableManualProps.disableDragDrop = true;\n }\n return <SimpleTableManual {...simpleTableManualProps} />;\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PConnProps } from '../../../../types/PConnProps';
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { PConnProps } from '../../../../types/PConnProps';
3
3
  interface SimpleTableManualProps extends PConnProps {
4
4
  hideAddRow?: boolean;
5
5
  hideDeleteRow?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleTableManual.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAgD,MAAM,OAAO,CAAC;AA+B/F,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG1D,UAAU,sBAAuB,SAAQ,UAAU;IAEjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,sBAAsB,CAAC,EAAE,GAAG,CAAC;IAC7B,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,gBAAgB,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiDD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,2CAqsBzF"}
1
+ {"version":3,"file":"SimpleTableManual.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,iBAAiB,EAAyD,MAAM,OAAO,CAAC;AA+B7G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI/D,UAAU,sBAAuB,SAAQ,UAAU;IAEjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,sBAAsB,CAAC,EAAE,GAAG,CAAC;IAC7B,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,gBAAgB,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiDD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,2CA+sBzF"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useEffect, useLayoutEffect, useRef, useState } from 'react';
2
+ import React, { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
3
3
  import Table from '@mui/material/Table';
4
4
  import TableBody from '@mui/material/TableBody';
5
5
  import TableCell from '@mui/material/TableCell';
@@ -28,8 +28,9 @@ import { Utils } from '../../../helpers/utils';
28
28
  import { getReferenceList } from '../../../helpers/field-group-utils';
29
29
  import { getDataPage } from '../../../helpers/data_page';
30
30
  import { getGenericFieldsLocalizedValue } from '../../../helpers/common-utils';
31
- import { buildFieldsForTable, filterData, getContext } from '../../../helpers/simpleTableHelpers';
31
+ import { buildFieldsForTable, filterData, getConfigFields, getContext } from '../../../helpers/simpleTableHelpers';
32
32
  import { format } from '../../../helpers/formatters';
33
+ import { initializeColumns } from '../../ListView/utils';
33
34
  const useStyles = makeStyles(( /* theme */) => ({
34
35
  label: {
35
36
  margin: '8px'
@@ -48,7 +49,7 @@ const useStyles = makeStyles(( /* theme */) => ({
48
49
  fontSize: '14px'
49
50
  },
50
51
  header: {
51
- background: '#f5f5f5'
52
+ background: 'var(--table-header-background)'
52
53
  },
53
54
  tableCell: {
54
55
  borderRight: '1px solid lightgray',
@@ -111,6 +112,7 @@ export default function SimpleTableManual(props) {
111
112
  pConn.setReferenceList(resolvedList);
112
113
  const menuIconOverride$ = Utils.getImageSrc('trash', Utils.getSDKStaticConentUrl());
113
114
  const resolvedFields = children?.[0]?.children || presets?.[0].children?.[0].children;
115
+ const primaryFieldsViewIndex = resolvedFields.findIndex(field => field.config.value === 'pyPrimaryFields');
114
116
  // NOTE: props has each child.config with datasource and value undefined
115
117
  // but getRawMetadata() has each child.config with datasource and value showing their unresolved values (ex: "@P thePropName")
116
118
  // We need to use the prop name as the "glue" to tie the table dataSource, displayColumns and data together.
@@ -133,14 +135,13 @@ export default function SimpleTableManual(props) {
133
135
  const defaultView = editModeConfig ? editModeConfig.defaultView : viewForAddAndEditModal;
134
136
  const bUseSeparateViewForEdit = editModeConfig ? editModeConfig.useSeparateViewForEdit : useSeparateViewForEdit;
135
137
  const editView = editModeConfig ? editModeConfig.editView : viewForEditModal;
138
+ const configFields = getConfigFields(rawFields, contextClass, primaryFieldsViewIndex);
136
139
  const fieldsWithPropNames = rawFields.map((field, index) => {
137
140
  return { ...resolvedFields[index], propName: field.config.value.replace('@P .', '') };
138
141
  });
139
142
  useEffect(() => {
140
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
141
143
  buildElementsForTable();
142
144
  if (readOnlyMode || allowEditingInModal) {
143
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
144
145
  generateRowsData();
145
146
  }
146
147
  }, [referenceList]);
@@ -150,7 +151,10 @@ export default function SimpleTableManual(props) {
150
151
  // Constellation DX Components do). It will also have the "label", and "meta" contains the original,
151
152
  // unchanged config info. For now, much of the info here is carried over from
152
153
  // Constellation DX Components.
153
- const fieldDefs = buildFieldsForTable(rawFields, resolvedFields, showDeleteButton);
154
+ const fieldDefs = useMemo(() => isDisplayModeEnabled || readOnlyMode
155
+ ? initializeColumns(configFields, undefined)
156
+ : // For inline edit table
157
+ buildFieldsForTable(rawFields, getPConnect(), showDeleteButton, { primaryFieldsViewIndex, fields: resolvedFields }), []);
154
158
  useLayoutEffect(() => {
155
159
  if (allowEditingInModal) {
156
160
  getPConnect()
@@ -158,7 +162,7 @@ export default function SimpleTableManual(props) {
158
162
  .initDefaultPageInstructions(getPConnect().getReferenceList(), fieldDefs.filter(item => item.name).map(item => item.name));
159
163
  }
160
164
  else {
161
- // @ts-ignore - An argument for 'fields' was not provided
165
+ // @ts-expect-error - An argument for 'fields' was not provided
162
166
  getPConnect().getListActions().initDefaultPageInstructions(getPConnect().getReferenceList());
163
167
  }
164
168
  }, []);
@@ -210,7 +214,6 @@ export default function SimpleTableManual(props) {
210
214
  setRowData(data);
211
215
  })
212
216
  .catch(e => {
213
- // eslint-disable-next-line no-console
214
217
  console.log(e);
215
218
  });
216
219
  }
@@ -250,7 +253,7 @@ export default function SimpleTableManual(props) {
250
253
  if (allowEditingInModal && defaultView) {
251
254
  pConn
252
255
  .getActionsApi()
253
- // @ts-ignore
256
+ // @ts-expect-error
254
257
  .openEmbeddedDataModal(defaultView, pConn, referenceListStr, referenceList.length, PCore.getConstants().RESOURCE_STATUS.CREATE);
255
258
  }
256
259
  else {
@@ -265,7 +268,7 @@ export default function SimpleTableManual(props) {
265
268
  if (typeof selectedRowIndex.current === 'number') {
266
269
  pConn
267
270
  .getActionsApi()
268
- // @ts-ignore
271
+ // @ts-expect-error
269
272
  .openEmbeddedDataModal(bUseSeparateViewForEdit ? editView : defaultView, pConn, referenceListStr, selectedRowIndex.current, PCore.getConstants().RESOURCE_STATUS.UPDATE);
270
273
  }
271
274
  };
@@ -282,23 +285,25 @@ export default function SimpleTableManual(props) {
282
285
  const data = [];
283
286
  rawFields.forEach(item => {
284
287
  // removing label field from config to hide title in the table cell
285
- item = { ...item, config: { ...item.config, label: '', displayMode: readOnlyMode || allowEditingInModal ? 'DISPLAY_ONLY' : undefined } };
286
- const referenceListData = getReferenceList(pConn);
287
- const isDatapage = referenceListData.startsWith('D_');
288
- const pageReferenceValue = isDatapage
289
- ? `${referenceListData}[${index}]`
290
- : `${pConn.getPageReference()}${referenceListData.substring(referenceListData.lastIndexOf('.'))}[${index}]`;
291
- const config = {
292
- meta: item,
293
- options: {
294
- context,
295
- pageReference: pageReferenceValue,
296
- referenceList: referenceListData,
297
- hasForm: true
298
- }
299
- };
300
- const view = PCore.createPConnect(config);
301
- data.push(createElement(createPConnectComponent(), view));
288
+ if (!item.config.hide) {
289
+ item = { ...item, config: { ...item.config, label: '', displayMode: readOnlyMode || allowEditingInModal ? 'DISPLAY_ONLY' : undefined } };
290
+ const referenceListData = getReferenceList(pConn);
291
+ const isDatapage = referenceListData.startsWith('D_');
292
+ const pageReferenceValue = isDatapage
293
+ ? `${referenceListData}[${index}]`
294
+ : `${pConn.getPageReference()}${referenceListData.substring(referenceListData.lastIndexOf('.'))}[${index}]`;
295
+ const config = {
296
+ meta: item,
297
+ options: {
298
+ context,
299
+ pageReference: pageReferenceValue,
300
+ referenceList: referenceListData,
301
+ hasForm: true
302
+ }
303
+ };
304
+ const view = PCore.createPConnect(config);
305
+ data.push(createElement(createPConnectComponent(), view));
306
+ }
302
307
  });
303
308
  eleData.push(data);
304
309
  });
@@ -330,7 +335,6 @@ export default function SimpleTableManual(props) {
330
335
  function stableSort(array, comparator) {
331
336
  const stabilizedThis = array.map((el, index) => [el, index]);
332
337
  stabilizedThis.sort((a, b) => {
333
- // eslint-disable-next-line @typescript-eslint/no-shadow
334
338
  const order = comparator(a[0], b[0]);
335
339
  if (order !== 0)
336
340
  return order;
@@ -463,7 +467,6 @@ export default function SimpleTableManual(props) {
463
467
  function _showFilteredIcon(columnId) {
464
468
  for (const filterObj of filterByColumns) {
465
469
  if (filterObj.ref === columnId) {
466
- // eslint-disable-next-line sonarjs/prefer-single-boolean-return
467
470
  if (filterObj.containsFilterValue !== '') {
468
471
  return true;
469
472
  }
@@ -477,6 +480,9 @@ export default function SimpleTableManual(props) {
477
480
  return len ? (_jsxs("span", { style: { fontSize: '0.9em', opacity: '0.7' }, children: [len, " result", len > 1 ? 's' : ''] })) : null;
478
481
  }
479
482
  return (_jsxs(_Fragment, { children: [_jsxs(TableContainer, { component: Paper, style: { margin: '4px 0px' }, id: 'simple-table-manual', children: [propsToUse.label && (_jsxs("h3", { className: `${classes.label} ${required ? classes.tableLabel : ''}`, children: [propsToUse.label, " ", results()] })), validatemessage && _jsx("div", { className: classes.message, children: validatemessage }), _jsxs(Table, { children: [_jsx(TableHead, { className: classes.header, children: _jsx(TableRow, { children: fieldDefs.map((field, index) => {
483
+ if (field?.meta?.config?.hide) {
484
+ return null; // Skip rendering if hide = true
485
+ }
480
486
  return (_jsx(TableCell, { className: classes.tableCell, children: (readOnlyMode || allowEditingInModal) && field.cellRenderer !== 'DeleteIcon' ? (_jsxs("div", { style: { display: 'flex' }, children: [_jsxs(TableSortLabel, { style: { width: '75%' }, active: orderBy === displayedColumns[index], direction: orderBy === displayedColumns[index] ? order : 'asc', onClick: createSortHandler(displayedColumns[index]), children: [field.label || '---', _showFilteredIcon(field.name) && _jsx(FilterListIcon, { className: classes.moreIcon }), orderBy === displayedColumns[index] ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }), _jsx(MoreIcon, { style: { cursor: 'pointer', zIndex: 1000 }, id: 'menu-icon', onClick: event => {
481
487
  _menuClick(event, field.name, field.meta.type, field.label);
482
488
  } })] })) : (field.label) }, `head-${displayedColumns[index]}`));
@@ -494,14 +500,12 @@ export default function SimpleTableManual(props) {
494
500
  stableSort(rowData, getComparator(order, orderBy))
495
501
  .slice(0)
496
502
  .map((row, index) => {
497
- return (
498
- // eslint-disable-next-line react/no-array-index-key
499
- _jsxs(TableRow, { children: [row.map((item, childIndex) => {
503
+ return (_jsxs(TableRow, { children: [row.map((item, childIndex) => {
500
504
  const theColKey = displayedColumns[childIndex];
501
505
  return (_jsx(TableCell, { className: classes.tableCell, children: item }, theColKey));
502
506
  }), showDeleteButton && (_jsx(TableCell, { className: classes.tableCell, children: _jsxs("div", { children: [_jsx(MoreIcon, { id: 'table-edit-menu-icon', className: classes.moreIcon, onClick: event => {
503
507
  editMenuClick(event, index);
504
508
  } }), _jsxs(Menu, { id: 'table-edit-menu', anchorEl: editAnchorEl, keepMounted: true, open: Boolean(editAnchorEl), onClose: _menuClose, children: [_jsx(MenuItem, { onClick: () => editRecord(), children: "Edit" }), _jsx(MenuItem, { onClick: () => deleteRecord(), children: "Delete" })] })] }) }, 'DeleteIcon'))] }, index));
505
- })] })] }), ((readOnlyMode && (!rowData || rowData?.length === 0)) || (editableMode && (!referenceList || referenceList?.length === 0))) && (_jsx("div", { className: 'no-records', id: 'no-records', children: getGenericFieldsLocalizedValue('CosmosFields.fields.lists', 'No records found.') }))] }), showAddRowButton && (_jsx("div", { style: { fontSize: '1rem' }, children: _jsxs(Link, { style: { cursor: 'pointer' }, onClick: addRecord, underline: 'hover', children: ["+ ", localizedVal('Add', localeCategory)] }) })), _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: 'equal', children: "is 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', id: 'filter', 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" })] })] })] }));
509
+ })] })] }), ((readOnlyMode && (!rowData || rowData?.length === 0)) || (editableMode && (!referenceList || referenceList?.length === 0))) && (_jsx("div", { className: 'no-records', id: 'no-records', children: getGenericFieldsLocalizedValue('COSMOSFIELDS.lists', 'No records found.') }))] }), showAddRowButton && (_jsx("div", { style: { fontSize: '1rem' }, children: _jsxs(Link, { style: { cursor: 'pointer' }, onClick: addRecord, underline: 'hover', children: ["+ ", localizedVal('Add', localeCategory)] }) })), _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: 'equal', children: "is 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', id: 'filter', 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" })] })] })] }));
506
510
  }
507
511
  //# sourceMappingURL=SimpleTableManual.js.map