@pega/react-sdk-components 24.2.10 → 25.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (643) hide show
  1. package/lib/bridge/Context/StoreContext.d.ts +0 -1
  2. package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
  3. package/lib/bridge/Context/StoreContext.js.map +1 -1
  4. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  5. package/lib/bridge/helpers/sdk_component_map.js +0 -6
  6. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  7. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  8. package/lib/bridge/react_pconnect.js +11 -14
  9. package/lib/bridge/react_pconnect.js.map +1 -1
  10. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  11. package/lib/components/designSystemExtension/Banner/Banner.css +1 -1
  12. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  13. package/lib/components/designSystemExtension/Banner/Banner.js +2 -2
  14. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  15. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  16. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +50 -35
  18. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  19. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  20. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +6 -8
  21. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  22. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  23. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  24. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -5
  25. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  26. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +2 -2
  27. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  28. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  29. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -6
  30. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  31. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
  32. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  33. package/lib/components/designSystemExtension/Operator/Operator.js +12 -9
  34. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  35. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  36. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  37. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  38. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +32 -4
  40. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  41. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
  42. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +12 -2
  44. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  45. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
  46. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  47. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  48. package/lib/components/field/CancelAlert/CancelAlert.css +4 -4
  49. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
  50. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  51. package/lib/components/field/CancelAlert/CancelAlert.js +4 -7
  52. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  53. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  54. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  55. package/lib/components/field/Checkbox/Checkbox.js +52 -3
  56. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  57. package/lib/components/field/Currency/Currency.d.ts +1 -1
  58. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  59. package/lib/components/field/Currency/Currency.js +8 -7
  60. package/lib/components/field/Currency/Currency.js.map +1 -1
  61. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  62. package/lib/components/field/Currency/currency-utils.js +0 -2
  63. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  64. package/lib/components/field/Date/Date.d.ts +1 -1
  65. package/lib/components/field/Date/Date.d.ts.map +1 -1
  66. package/lib/components/field/Date/Date.js +7 -7
  67. package/lib/components/field/Date/Date.js.map +1 -1
  68. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  69. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  70. package/lib/components/field/DateTime/DateTime.js +15 -11
  71. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  72. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  73. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  74. package/lib/components/field/Decimal/Decimal.js +7 -6
  75. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  76. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
  77. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  78. package/lib/components/field/Dropdown/Dropdown.js +16 -13
  79. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  80. package/lib/components/field/Email/Email.d.ts +1 -1
  81. package/lib/components/field/Email/Email.d.ts.map +1 -1
  82. package/lib/components/field/Email/Email.js +6 -7
  83. package/lib/components/field/Email/Email.js.map +1 -1
  84. package/lib/components/field/Group/Group.d.ts +2 -2
  85. package/lib/components/field/Group/Group.d.ts.map +1 -1
  86. package/lib/components/field/Group/Group.js +4 -3
  87. package/lib/components/field/Group/Group.js.map +1 -1
  88. package/lib/components/field/Integer/Integer.d.ts +1 -1
  89. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  90. package/lib/components/field/Integer/Integer.js +4 -5
  91. package/lib/components/field/Integer/Integer.js.map +1 -1
  92. package/lib/components/field/Location/Location.css +4 -0
  93. package/lib/components/field/Location/Location.d.ts +11 -0
  94. package/lib/components/field/Location/Location.d.ts.map +1 -0
  95. package/lib/components/field/Location/Location.js +158 -0
  96. package/lib/components/field/Location/Location.js.map +1 -0
  97. package/lib/components/field/Location/index.d.ts +2 -0
  98. package/lib/components/field/Location/index.d.ts.map +1 -0
  99. package/lib/components/field/Location/index.js +2 -0
  100. package/lib/components/field/Location/index.js.map +1 -0
  101. package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
  102. package/lib/components/field/Multiselect/utils.d.ts +2 -1
  103. package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
  104. package/lib/components/field/Multiselect/utils.js +1 -1
  105. package/lib/components/field/Multiselect/utils.js.map +1 -1
  106. package/lib/components/field/ObjectReference/ObjectReference.d.ts +16 -0
  107. package/lib/components/field/ObjectReference/ObjectReference.d.ts.map +1 -0
  108. package/lib/components/field/ObjectReference/ObjectReference.js +165 -0
  109. package/lib/components/field/ObjectReference/ObjectReference.js.map +1 -0
  110. package/lib/components/field/ObjectReference/index.d.ts +2 -0
  111. package/lib/components/field/ObjectReference/index.d.ts.map +1 -0
  112. package/lib/components/field/ObjectReference/index.js +2 -0
  113. package/lib/components/field/ObjectReference/index.js.map +1 -0
  114. package/lib/components/field/ObjectReference/utils.d.ts +17 -0
  115. package/lib/components/field/ObjectReference/utils.d.ts.map +1 -0
  116. package/lib/components/field/ObjectReference/utils.js +99 -0
  117. package/lib/components/field/ObjectReference/utils.js.map +1 -0
  118. package/lib/components/field/Percentage/Percentage.d.ts +1 -1
  119. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  120. package/lib/components/field/Percentage/Percentage.js +7 -7
  121. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  122. package/lib/components/field/Phone/Phone.d.ts +1 -1
  123. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  124. package/lib/components/field/Phone/Phone.js +6 -4
  125. package/lib/components/field/Phone/Phone.js.map +1 -1
  126. package/lib/components/field/RadioButtons/RadioButtons.d.ts +8 -1
  127. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  128. package/lib/components/field/RadioButtons/RadioButtons.js +15 -10
  129. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  130. package/lib/components/field/RichText/RichText.css +79 -0
  131. package/lib/components/field/RichText/RichText.d.ts +2 -1
  132. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  133. package/lib/components/field/RichText/RichText.js +1 -0
  134. package/lib/components/field/RichText/RichText.js.map +1 -1
  135. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  136. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  137. package/lib/components/field/ScalarList/ScalarList.js +3 -4
  138. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  139. package/lib/components/field/SelectableCard/SelectableCard.d.ts +2 -0
  140. package/lib/components/field/SelectableCard/SelectableCard.d.ts.map +1 -0
  141. package/lib/components/field/SelectableCard/SelectableCard.js +57 -0
  142. package/lib/components/field/SelectableCard/SelectableCard.js.map +1 -0
  143. package/lib/components/field/SelectableCard/index.d.ts +2 -0
  144. package/lib/components/field/SelectableCard/index.d.ts.map +1 -0
  145. package/lib/components/field/SelectableCard/index.js +2 -0
  146. package/lib/components/field/SelectableCard/index.js.map +1 -0
  147. package/lib/components/field/SelectableCard/utils.d.ts +13 -0
  148. package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
  149. package/lib/components/field/SelectableCard/utils.js +183 -0
  150. package/lib/components/field/SelectableCard/utils.js.map +1 -0
  151. package/lib/components/field/SemanticLink/SemanticLink.d.ts +10 -2
  152. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  153. package/lib/components/field/SemanticLink/SemanticLink.js +128 -15
  154. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  155. package/lib/components/field/SemanticLink/utils.js +1 -1
  156. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  157. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  158. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  159. package/lib/components/field/TextArea/TextArea.js +4 -5
  160. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  161. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  162. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  163. package/lib/components/field/TextContent/TextContent.js +0 -1
  164. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  165. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  166. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  167. package/lib/components/field/TextInput/TextInput.js +4 -5
  168. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  169. package/lib/components/field/Time/Time.d.ts +1 -1
  170. package/lib/components/field/Time/Time.d.ts.map +1 -1
  171. package/lib/components/field/Time/Time.js +3 -6
  172. package/lib/components/field/Time/Time.js.map +1 -1
  173. package/lib/components/field/URL/URL.d.ts +1 -1
  174. package/lib/components/field/URL/URL.d.ts.map +1 -1
  175. package/lib/components/field/URL/URL.js +4 -5
  176. package/lib/components/field/URL/URL.js.map +1 -1
  177. package/lib/components/field/UserReference/UserReference.d.ts +1 -2
  178. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  179. package/lib/components/field/UserReference/UserReference.js +2 -5
  180. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  181. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
  182. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  183. package/lib/components/helpers/attachmentShared.d.ts +2 -0
  184. package/lib/components/helpers/attachmentShared.d.ts.map +1 -0
  185. package/lib/components/helpers/attachmentShared.js +6 -0
  186. package/lib/components/helpers/attachmentShared.js.map +1 -0
  187. package/lib/components/helpers/case-utils.js.map +1 -1
  188. package/lib/components/helpers/common-utils.d.ts +8 -1
  189. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  190. package/lib/components/helpers/common-utils.js +20 -1
  191. package/lib/components/helpers/common-utils.js.map +1 -1
  192. package/lib/components/helpers/data_page.d.ts.map +1 -1
  193. package/lib/components/helpers/data_page.js +0 -1
  194. package/lib/components/helpers/data_page.js.map +1 -1
  195. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  196. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  197. package/lib/components/helpers/event-utils.js.map +1 -1
  198. package/lib/components/helpers/field-group-utils.d.ts +1 -1
  199. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  200. package/lib/components/helpers/field-group-utils.js.map +1 -1
  201. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  202. package/lib/components/helpers/formatters/Currency.d.ts +1 -0
  203. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  204. package/lib/components/helpers/formatters/Currency.js +20 -19
  205. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  206. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  207. package/lib/components/helpers/formatters/CurrencyMap.js +0 -1
  208. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  209. package/lib/components/helpers/formatters/Date.js.map +1 -1
  210. package/lib/components/helpers/formatters/common.d.ts +2 -2
  211. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  212. package/lib/components/helpers/formatters/common.js +2 -1
  213. package/lib/components/helpers/formatters/common.js.map +1 -1
  214. package/lib/components/helpers/formatters/index.d.ts +1 -0
  215. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  216. package/lib/components/helpers/formatters/index.js +2 -3
  217. package/lib/components/helpers/formatters/index.js.map +1 -1
  218. package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
  219. package/lib/components/helpers/object-utils.d.ts +9 -0
  220. package/lib/components/helpers/object-utils.d.ts.map +1 -0
  221. package/lib/components/helpers/object-utils.js +11 -0
  222. package/lib/components/helpers/object-utils.js.map +1 -0
  223. package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
  224. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  225. package/lib/components/helpers/simpleTableHelpers.d.ts +16 -2
  226. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  227. package/lib/components/helpers/simpleTableHelpers.js +111 -5
  228. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  229. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  230. package/lib/components/helpers/state-utils.js.map +1 -1
  231. package/lib/components/helpers/template-utils.js.map +1 -1
  232. package/lib/components/helpers/utils.d.ts +1 -0
  233. package/lib/components/helpers/utils.d.ts.map +1 -1
  234. package/lib/components/helpers/utils.js +7 -1
  235. package/lib/components/helpers/utils.js.map +1 -1
  236. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  237. package/lib/components/helpers/versionHelpers.js +0 -1
  238. package/lib/components/helpers/versionHelpers.js.map +1 -1
  239. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  240. package/lib/components/infra/ActionButtons/ActionButtons.js +12 -7
  241. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  242. package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
  243. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  244. package/lib/components/infra/Assignment/Assignment.js +35 -36
  245. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  246. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
  247. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  248. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  249. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
  250. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  251. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +18 -93
  252. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  253. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  254. package/lib/components/infra/Containers/FlowContainer/helpers.js +1 -5
  255. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  256. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
  257. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  258. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +3 -2
  259. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
  260. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -1
  261. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  262. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +4 -5
  263. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  264. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
  265. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  266. package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
  267. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
  268. package/lib/components/infra/Containers/SimpleView/helper.js +1 -1
  269. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
  270. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  271. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  272. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +3 -4
  273. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  274. package/lib/components/infra/Containers/container-helpers.d.ts +3 -0
  275. package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -0
  276. package/lib/components/infra/Containers/container-helpers.js +52 -0
  277. package/lib/components/infra/Containers/container-helpers.js.map +1 -0
  278. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
  279. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  280. package/lib/components/infra/DashboardFilter/DashboardFilter.js +3 -7
  281. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  282. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  283. package/lib/components/infra/DashboardFilter/filterUtils.js +2 -5
  284. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  285. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +2 -1
  286. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  287. package/lib/components/infra/DeferLoad/DeferLoad.js +6 -9
  288. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  289. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  290. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  291. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +0 -2
  292. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  293. package/lib/components/infra/MultiStep/MultiStep.css +48 -70
  294. package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
  295. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  296. package/lib/components/infra/MultiStep/MultiStep.js +19 -41
  297. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  298. package/lib/components/infra/NavBar/NavBar.css +1 -1
  299. package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
  300. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  301. package/lib/components/infra/NavBar/NavBar.js +13 -7
  302. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  303. package/lib/components/infra/Reference/Reference.d.ts +1 -1
  304. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  305. package/lib/components/infra/Reference/Reference.js +2 -3
  306. package/lib/components/infra/Reference/Reference.js.map +1 -1
  307. package/lib/components/infra/Region/Region.d.ts +1 -1
  308. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  309. package/lib/components/infra/Region/Region.js.map +1 -1
  310. package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
  311. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  312. package/lib/components/infra/RootContainer/RootContainer.js +1 -2
  313. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  314. package/lib/components/infra/Stages/Stages.d.ts +1 -1
  315. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  316. package/lib/components/infra/Stages/Stages.js +2 -2
  317. package/lib/components/infra/Stages/Stages.js.map +1 -1
  318. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +1 -1
  319. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  320. package/lib/components/infra/View/View.d.ts +2 -2
  321. package/lib/components/infra/View/View.d.ts.map +1 -1
  322. package/lib/components/infra/View/View.js +2 -1
  323. package/lib/components/infra/View/View.js.map +1 -1
  324. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
  325. package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
  326. package/lib/components/template/AdvancedSearch/AdvancedSearch.js +68 -0
  327. package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
  328. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +23 -0
  329. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
  330. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +26 -0
  331. package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
  332. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
  333. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
  334. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +179 -0
  335. package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
  336. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
  337. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
  338. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +25 -0
  339. package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
  340. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
  341. package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
  342. package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
  343. package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
  344. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
  345. package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
  346. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
  347. package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
  348. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +10 -0
  349. package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
  350. package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
  351. package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
  352. package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
  353. package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
  354. package/lib/components/template/AdvancedSearch/index.js +2 -0
  355. package/lib/components/template/AdvancedSearch/index.js.map +1 -0
  356. package/lib/components/template/AppShell/AppShell.css +1 -1
  357. package/lib/components/template/AppShell/AppShell.d.ts +2 -2
  358. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  359. package/lib/components/template/AppShell/AppShell.js +14 -17
  360. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  361. package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
  362. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  363. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  364. package/lib/components/template/CaseSummary/CaseSummary.d.ts +4 -2
  365. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  366. package/lib/components/template/CaseSummary/CaseSummary.js +24 -37
  367. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  368. package/lib/components/template/CaseView/CaseView.d.ts +3 -2
  369. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  370. package/lib/components/template/CaseView/CaseView.js +14 -16
  371. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  372. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
  373. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  374. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
  375. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  376. package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
  377. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  378. package/lib/components/template/Confirmation/Confirmation.js +1 -2
  379. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  380. package/lib/components/template/DataReference/DataReference.d.ts +9 -2
  381. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  382. package/lib/components/template/DataReference/DataReference.js +239 -80
  383. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  384. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
  385. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
  386. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
  387. package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
  388. package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
  389. package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
  390. package/lib/components/template/DataReference/SearchForm.js +87 -0
  391. package/lib/components/template/DataReference/SearchForm.js.map +1 -0
  392. package/lib/components/template/DataReference/utils.d.ts +15 -0
  393. package/lib/components/template/DataReference/utils.d.ts.map +1 -0
  394. package/lib/components/template/DataReference/utils.js +75 -0
  395. package/lib/components/template/DataReference/utils.js.map +1 -0
  396. package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
  397. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  398. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  399. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  400. package/lib/components/template/DefaultForm/utils/index.js +1 -2
  401. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  402. package/lib/components/template/DefaultPage/DefaultPage.d.ts +36 -0
  403. package/lib/components/template/DefaultPage/DefaultPage.d.ts.map +1 -0
  404. package/lib/components/template/DefaultPage/DefaultPage.js +28 -0
  405. package/lib/components/template/DefaultPage/DefaultPage.js.map +1 -0
  406. package/lib/components/template/DefaultPage/index.d.ts +2 -0
  407. package/lib/components/template/DefaultPage/index.d.ts.map +1 -0
  408. package/lib/components/template/DefaultPage/index.js +2 -0
  409. package/lib/components/template/DefaultPage/index.js.map +1 -0
  410. package/lib/components/template/Details/Details/Details.d.ts +1 -1
  411. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  412. package/lib/components/template/Details/Details/Details.js +2 -3
  413. package/lib/components/template/Details/Details/Details.js.map +1 -1
  414. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
  415. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  416. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  417. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
  418. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  419. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -3
  420. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  421. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
  422. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  423. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -3
  424. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  425. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
  426. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  427. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +0 -1
  428. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  429. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -1
  430. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  431. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +1 -4
  432. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  433. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
  434. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  435. package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
  436. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  437. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
  438. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  439. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  440. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  441. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  442. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  443. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  444. package/lib/components/template/ListView/ListView.d.ts +4 -1
  445. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  446. package/lib/components/template/ListView/ListView.js +134 -67
  447. package/lib/components/template/ListView/ListView.js.map +1 -1
  448. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  449. package/lib/components/template/ListView/hooks.js +2 -5
  450. package/lib/components/template/ListView/hooks.js.map +1 -1
  451. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  452. package/lib/components/template/ListView/utils.js +28 -6
  453. package/lib/components/template/ListView/utils.js.map +1 -1
  454. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  455. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  456. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  457. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
  458. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  459. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  460. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
  461. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  462. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -3
  463. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  464. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
  465. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  466. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  467. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
  468. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  469. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  470. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
  471. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  472. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
  473. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  474. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
  475. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  476. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  477. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
  478. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  479. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  480. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
  481. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  482. package/lib/components/template/PromotedFilters/PromotedFilters.js +0 -2
  483. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  484. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts +2 -0
  485. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts.map +1 -0
  486. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js +73 -0
  487. package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js.map +1 -0
  488. package/lib/components/template/SelfServiceCaseView/index.d.ts +2 -0
  489. package/lib/components/template/SelfServiceCaseView/index.d.ts.map +1 -0
  490. package/lib/components/template/SelfServiceCaseView/index.js +2 -0
  491. package/lib/components/template/SelfServiceCaseView/index.js.map +1 -0
  492. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
  493. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  494. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +1 -4
  495. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  496. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +4 -2
  497. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  498. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +64 -47
  499. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  500. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
  501. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  502. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +2 -4
  503. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  504. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  505. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  506. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +3 -2
  507. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  508. package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
  509. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  510. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  511. package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
  512. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  513. package/lib/components/template/SubTabs/tabUtils.js +102 -1
  514. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  515. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
  516. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  517. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -3
  518. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  519. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
  520. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  521. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  522. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
  523. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  524. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -3
  525. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  526. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
  527. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  528. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  529. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
  530. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  531. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -3
  532. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  533. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
  534. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  535. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  536. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
  537. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  538. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  539. package/lib/components/template/WssNavBar/WssNavBar.css +1 -1
  540. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
  541. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  542. package/lib/components/template/WssNavBar/WssNavBar.js +4 -4
  543. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  544. package/lib/components/template/utils.d.ts +7 -0
  545. package/lib/components/template/utils.d.ts.map +1 -0
  546. package/lib/components/template/utils.js +52 -0
  547. package/lib/components/template/utils.js.map +1 -0
  548. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
  549. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  550. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  551. package/lib/components/widget/Attachment/Attachment.css +7 -8
  552. package/lib/components/widget/Attachment/Attachment.d.ts +4 -2
  553. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  554. package/lib/components/widget/Attachment/Attachment.js +255 -207
  555. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  556. package/lib/components/widget/Attachment/Attachment.types.d.ts +90 -0
  557. package/lib/components/widget/Attachment/Attachment.types.d.ts.map +1 -0
  558. package/lib/components/widget/Attachment/Attachment.types.js +2 -0
  559. package/lib/components/widget/Attachment/Attachment.types.js.map +1 -0
  560. package/lib/components/widget/Attachment/AttachmentUtils.d.ts +25 -0
  561. package/lib/components/widget/Attachment/AttachmentUtils.d.ts.map +1 -0
  562. package/lib/components/widget/Attachment/AttachmentUtils.js +255 -0
  563. package/lib/components/widget/Attachment/AttachmentUtils.js.map +1 -0
  564. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  565. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  566. package/lib/components/widget/CaseHistory/CaseHistory.js +2 -2
  567. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  568. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
  569. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
  570. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  571. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
  572. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  573. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +7 -6
  574. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +2 -1
  575. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  576. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +29 -17
  577. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  578. package/lib/components/widget/Followers/Followers.d.ts +2 -2
  579. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  580. package/lib/components/widget/Followers/Followers.js +0 -2
  581. package/lib/components/widget/Followers/Followers.js.map +1 -1
  582. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
  583. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  584. package/lib/components/widget/QuickCreate/QuickCreate.js +0 -2
  585. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  586. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -11
  587. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
  588. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  589. package/lib/components/widget/SummaryItem/SummaryItem.js +1 -1
  590. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  591. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
  592. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  593. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  594. package/lib/components/widget/ToDo/ToDo.css +1 -13
  595. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  596. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  597. package/lib/components/widget/ToDo/ToDo.js +22 -17
  598. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  599. package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
  600. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
  601. package/lib/hooks/useAfterInitialEffect.js.map +1 -1
  602. package/lib/hooks/useConsolidatedRef.d.ts +1 -1
  603. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  604. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  605. package/lib/hooks/useFocusFirstField.d.ts.map +1 -1
  606. package/lib/hooks/useFocusFirstField.js.map +1 -1
  607. package/lib/hooks/useGetTabsCount.d.ts +10 -0
  608. package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
  609. package/lib/hooks/useGetTabsCount.js +165 -0
  610. package/lib/hooks/useGetTabsCount.js.map +1 -0
  611. package/lib/hooks/useIsMount.d.ts +2 -0
  612. package/lib/hooks/useIsMount.d.ts.map +1 -0
  613. package/lib/hooks/useIsMount.js +9 -0
  614. package/lib/hooks/useIsMount.js.map +1 -0
  615. package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
  616. package/lib/mediaco/ToDo/ToDo.css +81 -0
  617. package/lib/mediaco/ToDo/ToDo.d.ts +16 -0
  618. package/lib/mediaco/ToDo/ToDo.d.ts.map +1 -0
  619. package/lib/mediaco/ToDo/ToDo.js +187 -0
  620. package/lib/mediaco/ToDo/ToDo.js.map +1 -0
  621. package/lib/mediaco/ToDo/index.d.ts +2 -0
  622. package/lib/mediaco/ToDo/index.d.ts.map +1 -0
  623. package/lib/mediaco/ToDo/index.js +2 -0
  624. package/lib/mediaco/ToDo/index.js.map +1 -0
  625. package/lib/samples/Embedded/styles.css +26 -0
  626. package/lib/sdk-pega-component-map.d.ts +119 -103
  627. package/lib/sdk-pega-component-map.d.ts.map +1 -1
  628. package/lib/sdk-pega-component-map.js +20 -3
  629. package/lib/sdk-pega-component-map.js.map +1 -1
  630. package/lib/theme.d.ts +30 -1
  631. package/lib/theme.d.ts.map +1 -1
  632. package/lib/theme.js +209 -2
  633. package/lib/theme.js.map +1 -1
  634. package/lib/types/PConnProps.d.ts +1 -1
  635. package/package.json +32 -1
  636. package/lib/components/helpers/attachmentHelpers.d.ts +0 -13
  637. package/lib/components/helpers/attachmentHelpers.d.ts.map +0 -1
  638. package/lib/components/helpers/attachmentHelpers.js +0 -72
  639. package/lib/components/helpers/attachmentHelpers.js.map +0 -1
  640. package/lib/components/infra/Containers/helpers.d.ts +0 -2
  641. package/lib/components/infra/Containers/helpers.d.ts.map +0 -1
  642. package/lib/components/infra/Containers/helpers.js +0 -7
  643. package/lib/components/infra/Containers/helpers.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSummaryFields.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAWlD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAA6B;IACrE,8EAA8E;IAC9E,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAEjD,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAA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ACH,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAExB,MAAM,mBAAmB,GAAG,SAAS,CAAC;IAEtC,sFAAsF;IACtF,6BAA6B;IAC7B,IAAI,UAAU,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;QAClD,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE;SAC3C,CAAC;QAEF,MAAM,KAAK,GAAG,mBAAmB,CAAC,MAAM,CAAC;QACzC,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACnC;aAAM;YACL,mBAAmB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;SAC3C;KACF;IAED,0DAA0D;IAC1D,wCAAwC;IACxC,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,EAAE;QACxD,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;KACxC;IAED,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,QAAC,SAAS,EAAC,0BAA0B,YACjD,oBAAoB,GAChB,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { useState, useEffect } from 'react';\nimport isDeepEqual from 'fast-deep-equal/react';\nimport Grid from '@mui/material/Grid';\nimport TextField from '@mui/material/TextField';\n\nimport { getDateFormatInfo } from '../../helpers/date-format-utils';\nimport { getCurrencyOptions } from '../../field/Currency/currency-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\nimport './CaseSummaryFields.css';\n\nimport { format } from '../../helpers/formatters';\n\n// CaseSummaryFields is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface CaseSummaryFieldsProps {\n // If any, enter additional props that only exist on this component\n status?: string;\n showStatus?: boolean;\n theFields: any[] | any | never;\n}\n\nexport default function CaseSummaryFields(props: CaseSummaryFieldsProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const Operator = getComponentFromMap('Operator');\n\n const { status, showStatus, theFields } = props;\n\n const [theFieldsToRender, setFieldsToRender] = useState([]);\n const [theFieldsAsGridItems, setFieldsAsGridItems] = useState<any[]>([]);\n\n function getFieldValue(field: any): any {\n const fieldTypeLower = field.type.toLowerCase();\n\n if (field.config.value === null || field.config.value === '') {\n // Special handling for missing value\n // eslint-disable-next-line sonarjs/no-small-switch\n switch (fieldTypeLower) {\n case 'caseoperator':\n return <Operator {...field.config} />;\n break;\n\n default:\n return (\n <TextField\n variant='standard'\n value='---'\n label={field.config.label}\n InputProps={{\n readOnly: true,\n disableUnderline: true\n }}\n />\n );\n }\n }\n\n switch (fieldTypeLower) {\n case 'textinput':\n case 'decimal':\n case 'integer':\n case 'dropdown':\n return (\n <TextField\n variant='standard'\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n disableUnderline: true\n }}\n />\n );\n\n case 'checkbox': {\n const { caption, label, value, trueLabel, falseLabel } = field.config;\n const fieldLabel = label || caption;\n const fieldValue = value ? trueLabel : falseLabel;\n\n return (\n <TextField\n variant='standard'\n value={fieldValue}\n label={fieldLabel}\n InputProps={{\n readOnly: true,\n disableUnderline: true\n }}\n />\n );\n }\n\n case 'status':\n return (\n <TextField\n variant='standard'\n className='psdk-csf-status-style'\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n disableUnderline: true\n }}\n />\n );\n\n case 'phone': {\n const displayPhone = field.config.value !== '' ? field.config.value : '---';\n return (\n <a href={`tel:${displayPhone}`}>\n <TextField\n variant='standard'\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n inputProps: {\n style: { cursor: 'pointer' },\n disableUnderline: true\n }\n }}\n />\n </a>\n );\n }\n\n case 'email': {\n const displayEmail = format(field.config.value, field.type);\n return (\n <a href={`mailto:${displayEmail}`}>\n <TextField\n variant='standard'\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n disableUnderline: true,\n inputProps: { style: { cursor: 'pointer' } }\n }}\n />\n </a>\n );\n }\n\n case 'date':\n case 'datetime': {\n const theDateFormatInfo = getDateFormatInfo();\n // console.log(`theDateFormatInfo: ${theDateFormatInfo}`);\n const theFormat =\n fieldTypeLower === 'datetime' ? `${theDateFormatInfo.dateFormatStringLong} hh:mm a` : theDateFormatInfo.dateFormatStringLong;\n\n return (\n <TextField\n variant='standard'\n value={format(field.config.value, field.type, {\n format: theFormat\n })}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n disableUnderline: true\n }}\n />\n );\n }\n\n case 'currency': {\n const theCurrencyOptions = getCurrencyOptions(field.config?.currencyISOCode);\n return (\n <TextField\n variant='standard'\n value={format(field.config.value, field.type, theCurrencyOptions)}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n disableUnderline: true\n }}\n />\n );\n }\n\n case 'boolean':\n case 'userreference':\n return (\n <TextField\n variant='standard'\n value={format(field.config.value, field.type)}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n disableUnderline: true\n }}\n />\n );\n\n case 'caseoperator':\n return <Operator {...field.config} />;\n\n default:\n return (\n <span>\n {field.type.toLowerCase()} {field.config.value}\n </span>\n );\n }\n }\n\n // Whenever theFieldsToRender changes, update theFieldsAsGridItems that's used during render\n useEffect(() => {\n const arGridItems = theFieldsToRender.map((field: any) => {\n // display the field when either visibility property doesn't exist or is true(if exists)\n if (field.config.visibility === undefined || field.config.visibility === true) {\n return (\n <Grid item xs={6} key={field.config.label}>\n {getFieldValue(field)}\n </Grid>\n );\n }\n\n return null;\n });\n setFieldsAsGridItems(arGridItems);\n }, [theFieldsToRender]);\n\n const theFieldsModifiable = theFields;\n\n // Special Case: if showStatus is true, splice the status value to be 2nd in theFields\n // if it's not already there\n if (showStatus && theFields?.[1].type !== 'status') {\n const oStatus = {\n type: 'status',\n config: { value: status, label: 'Status' }\n };\n\n const count = theFieldsModifiable.length;\n if (count < 2) {\n theFieldsModifiable.push(oStatus);\n } else {\n theFieldsModifiable.splice(1, 0, oStatus);\n }\n }\n\n // At this point, we know what fields we want to render...\n // So, update our state if it's changed\n if (!isDeepEqual(theFieldsToRender, theFieldsModifiable)) {\n setFieldsToRender(theFieldsModifiable);\n }\n\n return (\n <Grid container className='psdk-case-summary-fields'>\n {theFieldsAsGridItems}\n </Grid>\n );\n}\n"]}
1
+ {"version":3,"file":"CaseSummaryFields.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAWlD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAA6B;IACrE,8EAA8E;IAC9E,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAEjD,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhD,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC5D,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAQ,EAAE,CAAC,CAAC;IAEzE,SAAS,aAAa,CAAC,KAAU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ADM,KAAK,CAAC,MAAM,CAAC,KAAK,CAEvC,CACT,CAAC;YACJ,CAAC;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QACH,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAExB,MAAM,mBAAmB,GAAG,SAAS,CAAC;IAEtC,sFAAsF;IACtF,6BAA6B;IAC7B,IAAI,UAAU,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACnD,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE;SAC3C,CAAC;QAEF,MAAM,KAAK,GAAG,mBAAmB,CAAC,MAAM,CAAC;QACzC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC;aAAM,CAAC;YACN,mBAAmB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;IAED,0DAA0D;IAC1D,wCAAwC;IACxC,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,EAAE,CAAC;QACzD,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,CACL,KAAC,KAAK,IAAC,SAAS,QAAC,SAAS,EAAC,0BAA0B,YAClD,oBAAoB,GACf,CACT,CAAC;AACJ,CAAC","sourcesContent":["import { useState, useEffect } from 'react';\nimport isDeepEqual from 'fast-deep-equal/react';\nimport Grid2 from '@mui/material/Grid2';\nimport TextField from '@mui/material/TextField';\n\nimport { getDateFormatInfo } from '../../helpers/date-format-utils';\nimport { getCurrencyOptions } from '../../field/Currency/currency-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\nimport './CaseSummaryFields.css';\n\nimport { format } from '../../helpers/formatters';\n\n// CaseSummaryFields is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface CaseSummaryFieldsProps {\n // If any, enter additional props that only exist on this component\n status?: string;\n showStatus?: boolean;\n theFields: any[] | any | never;\n}\n\nexport default function CaseSummaryFields(props: CaseSummaryFieldsProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const Operator = getComponentFromMap('Operator');\n\n const { status, showStatus, theFields } = props;\n\n const [theFieldsToRender, setFieldsToRender] = useState([]);\n const [theFieldsAsGridItems, setFieldsAsGridItems] = useState<any[]>([]);\n\n function getFieldValue(field: any): any {\n const fieldTypeLower = field.type.toLowerCase();\n\n if (field.config.value === null || field.config.value === '') {\n // Special handling for missing value\n\n switch (fieldTypeLower) {\n case 'caseoperator':\n return <Operator {...field.config} />;\n break;\n\n default:\n return (\n <TextField\n variant='standard'\n value='---'\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true\n }\n }}\n />\n );\n }\n }\n\n switch (fieldTypeLower) {\n case 'textinput':\n case 'decimal':\n case 'integer':\n case 'dropdown':\n return (\n <TextField\n variant='standard'\n value={field.config.value}\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true\n }\n }}\n />\n );\n\n case 'checkbox': {\n const { caption, label, value, trueLabel, falseLabel } = field.config;\n const fieldLabel = label || caption;\n const fieldValue = value ? trueLabel : falseLabel;\n\n return (\n <TextField\n variant='standard'\n value={fieldValue}\n label={fieldLabel}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true\n }\n }}\n />\n );\n }\n\n case 'status':\n return (\n <TextField\n variant='standard'\n className='psdk-csf-status-style'\n value={field.config.value}\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true\n }\n }}\n />\n );\n\n case 'phone': {\n const displayPhone = field.config.value !== '' ? field.config.value : '---';\n return (\n <a href={`tel:${displayPhone}`}>\n <TextField\n variant='standard'\n value={field.config.value}\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true,\n inputProps: { style: { cursor: 'pointer' } }\n }\n }}\n />\n </a>\n );\n }\n\n case 'email': {\n const displayEmail = format(field.config.value, field.type);\n return (\n <a href={`mailto:${displayEmail}`}>\n <TextField\n variant='standard'\n value={field.config.value}\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true,\n inputProps: { style: { cursor: 'pointer' } }\n }\n }}\n />\n </a>\n );\n }\n\n case 'date':\n case 'datetime': {\n const theDateFormatInfo = getDateFormatInfo();\n // console.log(`theDateFormatInfo: ${theDateFormatInfo}`);\n const theFormat =\n fieldTypeLower === 'datetime' ? `${theDateFormatInfo.dateFormatStringLong} hh:mm a` : theDateFormatInfo.dateFormatStringLong;\n\n return (\n <TextField\n variant='standard'\n value={format(field.config.value, field.type, {\n format: theFormat\n })}\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true\n }\n }}\n />\n );\n }\n\n case 'currency': {\n const theCurrencyOptions = getCurrencyOptions(field.config?.currencyISOCode);\n return (\n <TextField\n variant='standard'\n value={format(field.config.value, field.type, theCurrencyOptions)}\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true\n }\n }}\n />\n );\n }\n\n case 'boolean':\n case 'userreference':\n return (\n <TextField\n variant='standard'\n value={format(field.config.value, field.type)}\n label={field.config.label}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true\n }\n }}\n />\n );\n\n case 'caseoperator':\n return <Operator {...field.config} />;\n\n default:\n return (\n <span>\n {field.type.toLowerCase()} {field.config.value}\n </span>\n );\n }\n }\n\n // Whenever theFieldsToRender changes, update theFieldsAsGridItems that's used during render\n useEffect(() => {\n const arGridItems = theFieldsToRender?.map((field: any) => {\n // display the field when either visibility property doesn't exist or is true(if exists)\n if (field.config.visibility === undefined || field.config.visibility === true) {\n return (\n <Grid2 size={{ xs: 6 }} key={field.config.label}>\n {getFieldValue(field)}\n </Grid2>\n );\n }\n\n return null;\n });\n setFieldsAsGridItems(arGridItems);\n }, [theFieldsToRender]);\n\n const theFieldsModifiable = theFields;\n\n // Special Case: if showStatus is true, splice the status value to be 2nd in theFields\n // if it's not already there\n if (showStatus && theFields?.[1].type !== 'status') {\n const oStatus = {\n type: 'status',\n config: { value: status, label: 'Status' }\n };\n\n const count = theFieldsModifiable.length;\n if (count < 2) {\n theFieldsModifiable.push(oStatus);\n } else {\n theFieldsModifiable.splice(1, 0, oStatus);\n }\n }\n\n // At this point, we know what fields we want to render...\n // So, update our state if it's changed\n if (!isDeepEqual(theFieldsToRender, theFieldsModifiable)) {\n setFieldsToRender(theFieldsModifiable);\n }\n\n return (\n <Grid2 container className='psdk-case-summary-fields'>\n {theFieldsAsGridItems}\n </Grid2>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"DetailsFields.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/DetailsFields/DetailsFields.tsx"],"names":[],"mappings":"AAWA,UAAU,kBAAkB;IAE1B,MAAM,EAAE,GAAG,EAAE,CAAC;CACf;AAwBD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAsG9D"}
1
+ {"version":3,"file":"DetailsFields.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/DetailsFields/DetailsFields.tsx"],"names":[],"mappings":"AAUA,UAAU,kBAAkB;IAE1B,MAAM,EAAE,GAAG,EAAE,CAAC;CACf;AAwBD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAqG9D"}
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /* eslint-disable react/no-array-index-key */
3
2
  import React, { createElement, isValidElement } from 'react';
4
- import Grid from '@mui/material/Grid';
3
+ import Grid2 from '@mui/material/Grid2';
5
4
  import Typography from '@mui/material/Typography';
6
5
  import makeStyles from '@mui/styles/makeStyles';
7
6
  import createPConnectComponent from '../../../bridge/react_pconnect';
@@ -49,12 +48,11 @@ export default function DetailsFields(props) {
49
48
  });
50
49
  function getGridItemLabel(field, keyVal) {
51
50
  const dispValue = field.label;
52
- return (_jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: 'body2', component: 'span', className: `${classes.fieldLabel}`, children: dispValue }) }, keyVal));
51
+ return (_jsx(Grid2, { size: { xs: 6 }, children: _jsx(Typography, { variant: 'body2', component: 'span', className: `${classes.fieldLabel}`, children: dispValue }) }, keyVal));
53
52
  }
54
53
  function formatItemValue(inField) {
55
54
  const { type, value } = inField;
56
55
  let formattedVal = value;
57
- // eslint-disable-next-line sonarjs/no-small-switch
58
56
  switch (type) {
59
57
  case 'date':
60
58
  formattedVal = format(value, type);
@@ -71,10 +69,10 @@ export default function DetailsFields(props) {
71
69
  }
72
70
  function getGridItemValue(field, keyVal) {
73
71
  const formattedValue = formatItemValue(field);
74
- return (_jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: 'body2', component: 'span', className: classes.fieldValue, children: formattedValue }) }, keyVal));
72
+ return (_jsx(Grid2, { size: { xs: 6 }, children: _jsx(Typography, { variant: 'body2', component: 'span', className: classes.fieldValue, children: formattedValue }) }, keyVal));
75
73
  }
76
74
  function getGridItem(field, keyVal) {
77
- return (_jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { variant: 'body2', component: 'span', className: classes.fieldValue, children: field?.value }) }, keyVal));
75
+ return (_jsx(Grid2, { size: { xs: 12 }, children: _jsx(Typography, { variant: 'body2', component: 'span', className: classes.fieldValue, children: field?.value }) }, keyVal));
78
76
  }
79
77
  function getGridItems() {
80
78
  const gridItems = fieldComponents.map((field, index) => {
@@ -82,9 +80,9 @@ export default function DetailsFields(props) {
82
80
  return field?.value;
83
81
  }
84
82
  if (isValidElement(field?.value)) {
85
- return (_jsx(Grid, { container: true, spacing: 1, style: { padding: '4px 0px' }, children: getGridItem(field, `${index}-item`) }, index));
83
+ return (_jsx(Grid2, { container: true, spacing: 1, style: { padding: '4px 0px' }, children: getGridItem(field, `${index}-item`) }, index));
86
84
  }
87
- return (_jsxs(Grid, { container: true, spacing: 1, style: { padding: '4px 0px' }, children: [getGridItemLabel(field, `${index}-label`), getGridItemValue(field, `${index}-value`)] }, index));
85
+ return (_jsxs(Grid2, { container: true, spacing: 1, style: { padding: '4px 0px' }, children: [getGridItemLabel(field, `${index}-label`), getGridItemValue(field, `${index}-value`)] }, index));
88
86
  });
89
87
  return gridItems;
90
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DetailsFields.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/DetailsFields/DetailsFields.tsx"],"names":[],"mappings":";AAAA,6CAA6C;AAC7C,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AASlD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,SAAS,EAAE,KAAK,CAAC,OAAO,CAA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AAc,GACJ,IAHQ,MAAM,CAItB,CACR,CAAC;IACJ,CAAC;IAED,SAAS,WAAW,CAAC,KAAU,EAAE,MAAc;QAC7C,OAAO,CACL,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,YACf,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,OAAO,CAAC,UAAU,YACvE,KAAK,EAAE,KAAK,GACF,IAHS,MAAM,CAIvB,CACR,CAAC;IACJ,CAAC;IAED,SAAS,YAAY;QACnB,MAAM,SAAS,GAAU,eAAe,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC5D,IAAI,KAAK,EAAE,IAAI,KAAK,WAAW,EAAE;gBAC/B,OAAO,KAAK,EAAE,KAAK,CAAC;aACrB;YACD,IAAI,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;gBAChC,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,YACtD,WAAW,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,IAD0B,KAAK,CAE9D,CACR,CAAC;aACH;YACD,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,aACtD,gBAAgB,CAAC,KAAK,EAAE,GAAG,KAAK,QAAQ,CAAC,EACzC,gBAAgB,CAAC,KAAK,EAAE,GAAG,KAAK,QAAQ,CAAC,KAFoB,KAAK,CAG9D,CACR,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,4BAAG,YAAY,EAAE,GAAI,CAAC;AAC/B,CAAC","sourcesContent":["/* eslint-disable react/no-array-index-key */\nimport React, { createElement, isValidElement } from 'react';\nimport Grid from '@mui/material/Grid';\nimport Typography from '@mui/material/Typography';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\nimport { format } from '../../helpers/formatters';\n\n// DetailsFields is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface DetailsFieldsProps {\n // If any, enter additional props that only exist on this component\n fields: any[];\n}\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 fieldLabel: {\n display: 'block',\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n fontWeight: 400,\n color: theme.palette.text.primary\n }\n}));\n\nexport default function DetailsFields(props: DetailsFieldsProps) {\n // const componentName = \"DetailsFields\";\n const { fields = [] } = props;\n const classes = useStyles();\n const fieldComponents: any[] = [];\n\n fields?.forEach((field, index) => {\n const thePConn = field.getPConnect();\n const theCompType = thePConn.getComponentName().toLowerCase();\n const { label } = thePConn.getConfigProps();\n const configObj = thePConn?.getReferencedView();\n configObj.config.readOnly = true;\n configObj.config.displayMode = 'DISPLAY_ONLY';\n const propToUse = { ...thePConn.getInheritedProps() };\n configObj.config.label = theCompType === 'reference' ? propToUse?.label : label;\n fieldComponents.push({\n type: theCompType,\n label,\n value: <React.Fragment key={index}>{createElement(createPConnectComponent(), thePConn.getReferencedViewPConnect())}</React.Fragment>\n });\n });\n\n function getGridItemLabel(field: any, keyVal: string) {\n const dispValue = field.label;\n\n return (\n <Grid item xs={6} key={keyVal}>\n <Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>\n {dispValue}\n </Typography>\n </Grid>\n );\n }\n\n function formatItemValue(inField: any) {\n const { type, value } = inField;\n let formattedVal = value;\n\n // eslint-disable-next-line sonarjs/no-small-switch\n switch (type) {\n case 'date':\n formattedVal = format(value, type);\n break;\n\n default:\n // No match means we return the value as we received it\n break;\n }\n\n // Finally, if the value is undefined or an empty string, we want to display it as \"---\"\n if (formattedVal === undefined || formattedVal === '') {\n formattedVal = '---';\n }\n\n return formattedVal;\n }\n\n function getGridItemValue(field: any, keyVal: string) {\n const formattedValue = formatItemValue(field);\n\n return (\n <Grid item xs={6} key={keyVal}>\n <Typography variant='body2' component='span' className={classes.fieldValue}>\n {formattedValue}\n </Typography>\n </Grid>\n );\n }\n\n function getGridItem(field: any, keyVal: string) {\n return (\n <Grid item xs={12} key={keyVal}>\n <Typography variant='body2' component='span' className={classes.fieldValue}>\n {field?.value}\n </Typography>\n </Grid>\n );\n }\n\n function getGridItems() {\n const gridItems: any[] = fieldComponents.map((field, index) => {\n if (field?.type === 'reference') {\n return field?.value;\n }\n if (isValidElement(field?.value)) {\n return (\n <Grid container spacing={1} style={{ padding: '4px 0px' }} key={index}>\n {getGridItem(field, `${index}-item`)}\n </Grid>\n );\n }\n return (\n <Grid container spacing={1} style={{ padding: '4px 0px' }} key={index}>\n {getGridItemLabel(field, `${index}-label`)}\n {getGridItemValue(field, `${index}-value`)}\n </Grid>\n );\n });\n return gridItems;\n }\n\n return <>{getGridItems()}</>;\n}\n"]}
1
+ {"version":3,"file":"DetailsFields.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/DetailsFields/DetailsFields.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AASlD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EA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YACD,OAAO,CACL,MAAC,KAAK,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,aACvD,gBAAgB,CAAC,KAAK,EAAE,GAAG,KAAK,QAAQ,CAAC,EACzC,gBAAgB,CAAC,KAAK,EAAE,GAAG,KAAK,QAAQ,CAAC,KAFqB,KAAK,CAG9D,CACT,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,4BAAG,YAAY,EAAE,GAAI,CAAC;AAC/B,CAAC","sourcesContent":["import React, { createElement, isValidElement } from 'react';\nimport Grid2 from '@mui/material/Grid2';\nimport Typography from '@mui/material/Typography';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\nimport { format } from '../../helpers/formatters';\n\n// DetailsFields is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface DetailsFieldsProps {\n // If any, enter additional props that only exist on this component\n fields: any[];\n}\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 fieldLabel: {\n display: 'block',\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n fontWeight: 400,\n color: theme.palette.text.primary\n }\n}));\n\nexport default function DetailsFields(props: DetailsFieldsProps) {\n // const componentName = \"DetailsFields\";\n const { fields = [] } = props;\n const classes = useStyles();\n const fieldComponents: any[] = [];\n\n fields?.forEach((field, index) => {\n const thePConn = field.getPConnect();\n const theCompType = thePConn.getComponentName().toLowerCase();\n const { label } = thePConn.getConfigProps();\n const configObj = thePConn?.getReferencedView();\n configObj.config.readOnly = true;\n configObj.config.displayMode = 'DISPLAY_ONLY';\n const propToUse = { ...thePConn.getInheritedProps() };\n configObj.config.label = theCompType === 'reference' ? propToUse?.label : label;\n fieldComponents.push({\n type: theCompType,\n label,\n value: <React.Fragment key={index}>{createElement(createPConnectComponent(), thePConn.getReferencedViewPConnect())}</React.Fragment>\n });\n });\n\n function getGridItemLabel(field: any, keyVal: string) {\n const dispValue = field.label;\n\n return (\n <Grid2 size={{ xs: 6 }} key={keyVal}>\n <Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>\n {dispValue}\n </Typography>\n </Grid2>\n );\n }\n\n function formatItemValue(inField: any) {\n const { type, value } = inField;\n let formattedVal = value;\n\n switch (type) {\n case 'date':\n formattedVal = format(value, type);\n break;\n\n default:\n // No match means we return the value as we received it\n break;\n }\n\n // Finally, if the value is undefined or an empty string, we want to display it as \"---\"\n if (formattedVal === undefined || formattedVal === '') {\n formattedVal = '---';\n }\n\n return formattedVal;\n }\n\n function getGridItemValue(field: any, keyVal: string) {\n const formattedValue = formatItemValue(field);\n\n return (\n <Grid2 size={{ xs: 6 }} key={keyVal}>\n <Typography variant='body2' component='span' className={classes.fieldValue}>\n {formattedValue}\n </Typography>\n </Grid2>\n );\n }\n\n function getGridItem(field: any, keyVal: string) {\n return (\n <Grid2 size={{ xs: 12 }} key={keyVal}>\n <Typography variant='body2' component='span' className={classes.fieldValue}>\n {field?.value}\n </Typography>\n </Grid2>\n );\n }\n\n function getGridItems() {\n const gridItems: any[] = fieldComponents.map((field, index) => {\n if (field?.type === 'reference') {\n return field?.value;\n }\n if (isValidElement(field?.value)) {\n return (\n <Grid2 container spacing={1} style={{ padding: '4px 0px' }} key={index}>\n {getGridItem(field, `${index}-item`)}\n </Grid2>\n );\n }\n return (\n <Grid2 container spacing={1} style={{ padding: '4px 0px' }} key={index}>\n {getGridItemLabel(field, `${index}-label`)}\n {getGridItemValue(field, `${index}-value`)}\n </Grid2>\n );\n });\n return gridItems;\n }\n\n return <>{getGridItems()}</>;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { type PropsWithChildren } from 'react';
2
2
  interface FieldGroupProps {
3
3
  name?: string;
4
4
  collapsible?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAQpD,UAAU,eAAe;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA4BD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,2CAsC3E"}
1
+ {"version":3,"file":"FieldGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAQzD,UAAU,eAAe;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA4BD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,2CAqC3E"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
- import Grid from '@mui/material/Grid';
3
+ import Grid2 from '@mui/material/Grid2';
4
4
  import makeStyles from '@mui/styles/makeStyles';
5
5
  import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
6
6
  import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
@@ -33,12 +33,10 @@ export default function FieldGroup(props) {
33
33
  const { children, name, collapsible = false, instructions } = props;
34
34
  const classes = useStyles(collapsible);
35
35
  const [collapsed, setCollapsed] = useState(false);
36
- const descAndChildren = (_jsx(Grid, { container: true, children: _jsx("div", { className: classes.fullWidth, children: children }) }));
36
+ const descAndChildren = (_jsx(Grid2, { container: true, children: _jsx("div", { className: classes.fullWidth, children: children }) }));
37
37
  const headerClickHandler = () => {
38
38
  setCollapsed(current => !current);
39
39
  };
40
- return (_jsx(Grid, { container: true, spacing: 4, justifyContent: 'space-between', children: _jsxs(Grid, { item: true, style: { width: '100%' }, children: [name && (_jsx("div", { className: classes.fieldMargin, children: collapsible ? (_jsxs("span", { id: 'field-group-header', className: classes.fieldGroupHeader, onClick: headerClickHandler, children: [collapsed ? _jsx(KeyboardArrowRightIcon, {}) : _jsx(KeyboardArrowDownIcon, {}), _jsx("b", { children: name })] })) : (_jsx("b", { children: name })) })), instructions && instructions !== 'none' && (
41
- // eslint-disable-next-line react/no-danger
42
- _jsx("div", { className: classes.instructionText, dangerouslySetInnerHTML: { __html: instructions } }, 'instructions')), !collapsed && descAndChildren] }) }));
40
+ return (_jsx(Grid2, { container: true, spacing: 4, justifyContent: 'space-between', children: _jsxs(Grid2, { style: { width: '100%' }, children: [name && (_jsx("div", { className: classes.fieldMargin, children: collapsible ? (_jsxs("span", { id: 'field-group-header', className: classes.fieldGroupHeader, onClick: headerClickHandler, children: [collapsed ? _jsx(KeyboardArrowRightIcon, {}) : _jsx(KeyboardArrowDownIcon, {}), _jsx("b", { children: name })] })) : (_jsx("b", { children: name })) })), instructions && instructions !== 'none' && (_jsx("div", { className: classes.instructionText, dangerouslySetInnerHTML: { __html: instructions } }, 'instructions')), !collapsed && descAndChildren] }) }));
43
41
  }
44
42
  //# sourceMappingURL=FieldGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroup.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,IA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AK,CAAC,CAAC;IAElD,MAAM,eAAe,GAAG,CACtB,KAAC,IAAI,IAAC,SAAS,kBACb,cAAK,SAAS,EAAE,OAAO,CAAC,SAAS,YAAG,QAAQ,GAAO,GAC9C,CACR,CAAC;IAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,YACxD,MAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAChC,IAAI,IAAI,CACP,cAAK,SAAS,EAAE,OAAO,CAAC,WAAW,YAChC,WAAW,CAAC,CAAC,CAAC,CACb,gBAAM,EAAE,EAAC,oBAAoB,EAAC,SAAS,EAAE,OAAO,CAAC,gBAAgB,EAAE,OAAO,EAAE,kBAAkB,aAC3F,SAAS,CAAC,CAAC,CAAC,KAAC,sBAAsB,KAAG,CAAC,CAAC,CAAC,KAAC,qBAAqB,KAAG,EACnE,sBAAI,IAAI,GAAK,IACR,CACR,CAAC,CAAC,CAAC,CACF,sBAAI,IAAI,GAAK,CACd,GACG,CACP,EACA,YAAY,IAAI,YAAY,KAAK,MAAM,IAAI;gBAC1C,2CAA2C;gBAC3C,cAAwB,SAAS,EAAE,OAAO,CAAC,eAAe,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,IAApG,cAAc,CAA0F,CAClH,EACA,CAAC,SAAS,IAAI,eAAe,IACzB,GACF,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren, useState } from 'react';\nimport Grid from '@mui/material/Grid';\nimport makeStyles from '@mui/styles/makeStyles';\nimport KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';\n\n// FieldGroupProps is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface FieldGroupProps {\n // If any, enter additional props that only exist on this component\n name?: string;\n collapsible?: boolean;\n instructions?: string;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldMargin: {\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginTop: theme.spacing(1)\n },\n fullWidth: {\n width: '100%'\n },\n fieldGroupHeader: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px',\n cursor: collapsible => (collapsible ? 'pointer' : 'auto')\n },\n instructionText: {\n padding: '5px 0'\n }\n}));\n\nexport default function FieldGroup(props: PropsWithChildren<FieldGroupProps>) {\n const { children, name, collapsible = false, instructions } = props;\n const classes = useStyles(collapsible);\n const [collapsed, setCollapsed] = useState(false);\n\n const descAndChildren = (\n <Grid container>\n <div className={classes.fullWidth}>{children}</div>\n </Grid>\n );\n\n const headerClickHandler = () => {\n setCollapsed(current => !current);\n };\n\n return (\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item style={{ width: '100%' }}>\n {name && (\n <div className={classes.fieldMargin}>\n {collapsible ? (\n <span id='field-group-header' className={classes.fieldGroupHeader} onClick={headerClickHandler}>\n {collapsed ? <KeyboardArrowRightIcon /> : <KeyboardArrowDownIcon />}\n <b>{name}</b>\n </span>\n ) : (\n <b>{name}</b>\n )}\n </div>\n )}\n {instructions && instructions !== 'none' && (\n // eslint-disable-next-line react/no-danger\n <div key='instructions' className={classes.instructionText} dangerouslySetInnerHTML={{ __html: instructions }} />\n )}\n {!collapsed && descAndChildren}\n </Grid>\n </Grid>\n );\n}\n"]}
1
+ {"version":3,"file":"FieldGroup.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA0B,QAAQ,EAAE,MAAM,O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AC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,MAAM,eAAe,GAAG,CACtB,KAAC,KAAK,IAAC,SAAS,kBACd,cAAK,SAAS,EAAE,OAAO,CAAC,SAAS,YAAG,QAAQ,GAAO,GAC7C,CACT,CAAC;IAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,KAAK,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,YACzD,MAAC,KAAK,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAC5B,IAAI,IAAI,CACP,cAAK,SAAS,EAAE,OAAO,CAAC,WAAW,YAChC,WAAW,CAAC,CAAC,CAAC,CACb,gBAAM,EAAE,EAAC,oBAAoB,EAAC,SAAS,EAAE,OAAO,CAAC,gBAAgB,EAAE,OAAO,EAAE,kBAAkB,aAC3F,SAAS,CAAC,CAAC,CAAC,KAAC,sBAAsB,KAAG,CAAC,CAAC,CAAC,KAAC,qBAAqB,KAAG,EACnE,sBAAI,IAAI,GAAK,IACR,CACR,CAAC,CAAC,CAAC,CACF,sBAAI,IAAI,GAAK,CACd,GACG,CACP,EACA,YAAY,IAAI,YAAY,KAAK,MAAM,IAAI,CAC1C,cAAwB,SAAS,EAAE,OAAO,CAAC,eAAe,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,IAApG,cAAc,CAA0F,CAClH,EACA,CAAC,SAAS,IAAI,eAAe,IACxB,GACF,CACT,CAAC;AACJ,CAAC","sourcesContent":["import { type PropsWithChildren, useState } from 'react';\nimport Grid2 from '@mui/material/Grid2';\nimport makeStyles from '@mui/styles/makeStyles';\nimport KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';\n\n// FieldGroupProps is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface FieldGroupProps {\n // If any, enter additional props that only exist on this component\n name?: string;\n collapsible?: boolean;\n instructions?: string;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldMargin: {\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginTop: theme.spacing(1)\n },\n fullWidth: {\n width: '100%'\n },\n fieldGroupHeader: {\n display: 'flex',\n alignItems: 'center',\n gap: '5px',\n cursor: collapsible => (collapsible ? 'pointer' : 'auto')\n },\n instructionText: {\n padding: '5px 0'\n }\n}));\n\nexport default function FieldGroup(props: PropsWithChildren<FieldGroupProps>) {\n const { children, name, collapsible = false, instructions } = props;\n const classes = useStyles(collapsible);\n const [collapsed, setCollapsed] = useState(false);\n\n const descAndChildren = (\n <Grid2 container>\n <div className={classes.fullWidth}>{children}</div>\n </Grid2>\n );\n\n const headerClickHandler = () => {\n setCollapsed(current => !current);\n };\n\n return (\n <Grid2 container spacing={4} justifyContent='space-between'>\n <Grid2 style={{ width: '100%' }}>\n {name && (\n <div className={classes.fieldMargin}>\n {collapsible ? (\n <span id='field-group-header' className={classes.fieldGroupHeader} onClick={headerClickHandler}>\n {collapsed ? <KeyboardArrowRightIcon /> : <KeyboardArrowDownIcon />}\n <b>{name}</b>\n </span>\n ) : (\n <b>{name}</b>\n )}\n </div>\n )}\n {instructions && instructions !== 'none' && (\n <div key='instructions' className={classes.instructionText} dangerouslySetInnerHTML={{ __html: instructions }} />\n )}\n {!collapsed && descAndChildren}\n </Grid2>\n </Grid2>\n );\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Grid from '@mui/material/Grid';
2
+ import Grid2 from '@mui/material/Grid2';
3
3
  import Divider from '@mui/material/Divider';
4
4
  import Link from '@mui/material/Link';
5
5
  import { Utils } from '../../helpers/utils';
@@ -8,7 +8,7 @@ export default function FieldGroupList(props) {
8
8
  if (menuIconOverride$) {
9
9
  menuIconOverride$ = Utils.getImageSrc(menuIconOverride$, Utils.getSDKStaticConentUrl());
10
10
  }
11
- return (_jsx(Grid, { container: true, spacing: 4, justifyContent: 'space-between', children: _jsx(Grid, { item: true, style: { width: '100%' }, children: _jsxs(Grid, { container: true, spacing: 1, children: [props.items.map(item => (_jsxs(Grid, { item: true, style: { width: '100%' }, children: [_jsx("b", { children: item.name }), props.onDelete && (_jsx("button", { type: 'button', style: { float: 'right' }, className: 'psdk-utility-button', id: `delete-row-${item.id}`, "aria-label": 'Delete Row', onClick: () => {
11
+ return (_jsx(Grid2, { container: true, spacing: 4, justifyContent: 'space-between', children: _jsx(Grid2, { style: { width: '100%' }, children: _jsxs(Grid2, { container: true, spacing: 1, children: [props.items.map(item => (_jsxs(Grid2, { style: { width: '100%' }, children: [_jsx("b", { children: item.name }), props.onDelete && (_jsx("button", { type: 'button', style: { float: 'right' }, className: 'psdk-utility-button', id: `delete-row-${item.id}`, "aria-label": 'Delete Row', onClick: () => {
12
12
  props.onDelete(item.id);
13
13
  }, children: _jsx("img", { className: 'psdk-utility-card-action-svg-icon', src: menuIconOverride$ }) })), item.children, _jsx("br", {}), props.onAdd && _jsx(Divider, {}), _jsx("br", {})] }))), props.onAdd && (_jsx(Link, { onClick: props.onAdd, style: { cursor: 'pointer' }, underline: 'hover', children: "+Add" }))] }) }) }));
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,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AAE,SAAS,EAAE,EAAE,SAAS,EAAC,OAAO,qBAEpE,CACR,IACI,GACF,GACF,CACR,CAAC;AACJ,CAAC","sourcesContent":["import Grid from '@mui/material/Grid';\nimport Divider from '@mui/material/Divider';\nimport Link from '@mui/material/Link';\n\nimport { Utils } from '../../helpers/utils';\n\n// FieldGroupList is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface FieldGroupListProps {\n // If any, enter additional props that only exist on this component\n items: any[] | any;\n onDelete: any;\n onAdd: any;\n}\n\nexport default function FieldGroupList(props: FieldGroupListProps) {\n let menuIconOverride$ = 'trash';\n if (menuIconOverride$) {\n menuIconOverride$ = Utils.getImageSrc(menuIconOverride$, Utils.getSDKStaticConentUrl());\n }\n\n return (\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item style={{ width: '100%' }}>\n <Grid container spacing={1}>\n {props.items.map(item => (\n <Grid item style={{ width: '100%' }}>\n <b>{item.name}</b>\n {props.onDelete && (\n <button\n type='button'\n style={{ float: 'right' }}\n className='psdk-utility-button'\n id={`delete-row-${item.id}`}\n aria-label='Delete Row'\n onClick={() => {\n props.onDelete(item.id);\n }}\n >\n <img className='psdk-utility-card-action-svg-icon' src={menuIconOverride$} />\n </button>\n )}\n {item.children}\n <br />\n {props.onAdd && <Divider />}\n <br />\n </Grid>\n ))}\n {props.onAdd && (\n <Link onClick={props.onAdd} style={{ cursor: 'pointer' }} underline='hover'>\n +Add\n </Link>\n )}\n </Grid>\n </Grid>\n </Grid>\n );\n}\n"]}
1
+ {"version":3,"file":"FieldGroupList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAW5C,MAAM,CAAC,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,OAAO,qBAEpE,CACR,IACK,GACF,GACF,CACT,CAAC;AACJ,CAAC","sourcesContent":["import Grid2 from '@mui/material/Grid2';\nimport Divider from '@mui/material/Divider';\nimport Link from '@mui/material/Link';\n\nimport { Utils } from '../../helpers/utils';\n\n// FieldGroupList is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface FieldGroupListProps {\n // If any, enter additional props that only exist on this component\n items: any[] | any;\n onDelete: any;\n onAdd: any;\n}\n\nexport default function FieldGroupList(props: FieldGroupListProps) {\n let menuIconOverride$ = 'trash';\n if (menuIconOverride$) {\n menuIconOverride$ = Utils.getImageSrc(menuIconOverride$, Utils.getSDKStaticConentUrl());\n }\n\n return (\n <Grid2 container spacing={4} justifyContent='space-between'>\n <Grid2 style={{ width: '100%' }}>\n <Grid2 container spacing={1}>\n {props.items.map(item => (\n <Grid2 style={{ width: '100%' }}>\n <b>{item.name}</b>\n {props.onDelete && (\n <button\n type='button'\n style={{ float: 'right' }}\n className='psdk-utility-button'\n id={`delete-row-${item.id}`}\n aria-label='Delete Row'\n onClick={() => {\n props.onDelete(item.id);\n }}\n >\n <img className='psdk-utility-card-action-svg-icon' src={menuIconOverride$} />\n </button>\n )}\n {item.children}\n <br />\n {props.onAdd && <Divider />}\n <br />\n </Grid2>\n ))}\n {props.onAdd && (\n <Link onClick={props.onAdd} style={{ cursor: 'pointer' }} underline='hover'>\n +Add\n </Link>\n )}\n </Grid2>\n </Grid2>\n </Grid2>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":"AAMA,UAAU,mBAAmB;IAE3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAmCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAqChE"}
1
+ {"version":3,"file":"FieldValueList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":"AAMA,UAAU,mBAAmB;IAE3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAmCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAoChE"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Grid from '@mui/material/Grid';
2
+ import Grid2 from '@mui/material/Grid2';
3
3
  import Typography from '@mui/material/Typography';
4
4
  import makeStyles from '@mui/styles/makeStyles';
5
5
  const useStyles = makeStyles(theme => ({
@@ -35,14 +35,12 @@ export default function FieldValueList(props) {
35
35
  const { name, value, variant = 'inline', isHtml = false } = props;
36
36
  const classes = useStyles();
37
37
  function getGridItemLabel() {
38
- return (_jsx(Grid, { item: true, xs: variant === 'stacked' ? 12 : 4, className: variant === 'stacked' ? classes.noPaddingBottom : '', children: _jsx(Typography, { variant: 'body2', component: 'span', className: `${classes.fieldLabel}`, children: name }) }));
38
+ return (_jsx(Grid2, { size: { xs: variant === 'stacked' ? 12 : 4 }, className: variant === 'stacked' ? classes.noPaddingBottom : '', children: _jsx(Typography, { variant: 'body2', component: 'span', className: `${classes.fieldLabel}`, children: name }) }));
39
39
  }
40
40
  function getGridItemValue() {
41
41
  const formattedValue = formatItemValue(value);
42
- return (_jsx(Grid, { item: true, xs: variant === 'stacked' ? 12 : 8, className: variant === 'stacked' ? classes.noPaddingTop : '', children: isHtml ? (
43
- // eslint-disable-next-line react/no-danger
44
- _jsx("div", { dangerouslySetInnerHTML: { __html: formattedValue } })) : (_jsx(Typography, { variant: variant === 'stacked' ? 'h6' : 'body2', component: 'span', className: classes.fieldValue, children: formattedValue })) }));
42
+ return (_jsx(Grid2, { size: { xs: variant === 'stacked' || !name ? 12 : 8 }, className: variant === 'stacked' ? classes.noPaddingTop : '', children: isHtml ? (_jsx("div", { dangerouslySetInnerHTML: { __html: formattedValue } })) : (_jsx(Typography, { variant: variant === 'stacked' ? 'h6' : 'body2', component: 'span', className: classes.fieldValue, children: formattedValue })) }));
45
43
  }
46
- return (_jsxs(Grid, { container: true, spacing: 4, justifyContent: 'space-between', children: [getGridItemLabel(), getGridItemValue()] }));
44
+ return (_jsxs(Grid2, { container: true, spacing: 4, justifyContent: 'space-between', children: [name ? getGridItemLabel() : null, getGridItemValue()] }));
47
45
  }
48
46
  //# sourceMappingURL=FieldValueList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAYhD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;KAC/B;IACD,UAAU,EAAE;QACV,UAAU,EAAE,GAAG;QACf,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS;KACpC;IACD,UAAU,EAAE;QACV,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;KAClC;IACD,YAAY,EAAE;QACZ,U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AC,CAAC;YACR,2CAA2C;YAC3C,cAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,GAAI,CAC7D,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,OAAO,CAAC,UAAU,YACxG,cAAc,GACJ,CACd,GACI,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,aACvD,gBAAgB,EAAE,EAClB,gBAAgB,EAAE,IACd,CACR,CAAC;AACJ,CAAC","sourcesContent":["import Grid from '@mui/material/Grid';\nimport Typography from '@mui/material/Typography';\nimport makeStyles from '@mui/styles/makeStyles';\n\n// FieldValueList is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface FieldValueListProps {\n // If any, enter additional props that only exist on this component\n name?: string;\n value: any;\n variant?: string;\n isHtml?: boolean;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldLabel: {\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n color: theme.palette.text.primary\n },\n noPaddingTop: {\n paddingTop: '0 !important'\n },\n noPaddingBottom: {\n paddingBottom: '0 !important'\n }\n}));\n\nfunction formatItemValue(value) {\n let formattedVal = value;\n\n // if the value is undefined or an empty string, we want to display it as \"---\"\n if (formattedVal === undefined || formattedVal === '') {\n formattedVal = '---';\n }\n\n return formattedVal;\n}\n\nexport default function FieldValueList(props: FieldValueListProps) {\n const { name, value, variant = 'inline', isHtml = false } = props;\n const classes = useStyles();\n\n function getGridItemLabel() {\n return (\n <Grid item xs={variant === 'stacked' ? 12 : 4} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>\n <Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>\n {name}\n </Typography>\n </Grid>\n );\n }\n\n function getGridItemValue() {\n const formattedValue = formatItemValue(value);\n\n return (\n <Grid item xs={variant === 'stacked' ? 12 : 8} className={variant === 'stacked' ? classes.noPaddingTop : ''}>\n {isHtml ? (\n // eslint-disable-next-line react/no-danger\n <div dangerouslySetInnerHTML={{ __html: formattedValue }} />\n ) : (\n <Typography variant={variant === 'stacked' ? 'h6' : 'body2'} component='span' className={classes.fieldValue}>\n {formattedValue}\n </Typography>\n )}\n </Grid>\n );\n }\n\n return (\n <Grid container spacing={4} justifyContent='space-between'>\n {getGridItemLabel()}\n {getGridItemValue()}\n </Grid>\n );\n}\n"]}
1
+ {"version":3,"file":"FieldValueList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAYhD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5B,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;KAC/B;IACD,UAAU,EAAE;QACV,UAAU,EAAE,GAAG;QACf,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS;KACpC;IACD,UAAU,EAAE;QACV,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;KAClC;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,cAAc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AAC,CAAC,EAAE,YACvH,MAAM,CAAC,CAAC,CAAC,CACR,cAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,GAAI,CAC7D,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,OAAO,CAAC,UAAU,YACxG,cAAc,GACJ,CACd,GACK,CACT,CAAC;IACJ,CAAC;IAED,OAAO,CACL,MAAC,KAAK,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,aACxD,IAAI,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,EAChC,gBAAgB,EAAE,IACb,CACT,CAAC;AACJ,CAAC","sourcesContent":["import Grid2 from '@mui/material/Grid2';\nimport Typography from '@mui/material/Typography';\nimport makeStyles from '@mui/styles/makeStyles';\n\n// FieldValueList is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface FieldValueListProps {\n // If any, enter additional props that only exist on this component\n name?: string;\n value: any;\n variant?: string;\n isHtml?: boolean;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldLabel: {\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n color: theme.palette.text.primary\n },\n noPaddingTop: {\n paddingTop: '0 !important'\n },\n noPaddingBottom: {\n paddingBottom: '0 !important'\n }\n}));\n\nfunction formatItemValue(value) {\n let formattedVal = value;\n\n // if the value is undefined or an empty string, we want to display it as \"---\"\n if (formattedVal === undefined || formattedVal === '') {\n formattedVal = '---';\n }\n\n return formattedVal;\n}\n\nexport default function FieldValueList(props: FieldValueListProps) {\n const { name, value, variant = 'inline', isHtml = false } = props;\n const classes = useStyles();\n\n function getGridItemLabel() {\n return (\n <Grid2 size={{ xs: variant === 'stacked' ? 12 : 4 }} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>\n <Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>\n {name}\n </Typography>\n </Grid2>\n );\n }\n\n function getGridItemValue() {\n const formattedValue = formatItemValue(value);\n\n return (\n <Grid2 size={{ xs: variant === 'stacked' || !name ? 12 : 8 }} className={variant === 'stacked' ? classes.noPaddingTop : ''}>\n {isHtml ? (\n <div dangerouslySetInnerHTML={{ __html: formattedValue }} />\n ) : (\n <Typography variant={variant === 'stacked' ? 'h6' : 'body2'} component='span' className={classes.fieldValue}>\n {formattedValue}\n </Typography>\n )}\n </Grid2>\n );\n }\n\n return (\n <Grid2 container spacing={4} justifyContent='space-between'>\n {name ? getGridItemLabel() : null}\n {getGridItemValue()}\n </Grid2>\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { PConnProps } from '../../../types/PConnProps';
1
+ import type { PConnProps } from '../../../types/PConnProps';
2
2
  interface OperatorProps extends PConnProps {
3
3
  label: string;
4
4
  createDateTime: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD,UAAU,aAAc,SAAQ,UAAU;IAExC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAaD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAsLpD"}
1
+ {"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAI5D,UAAU,aAAc,SAAQ,UAAU;IAExC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAaD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAwLpD"}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import React, { useState } from 'react';
3
3
  import TextField from '@mui/material/TextField';
4
4
  import Popover from '@mui/material/Popover';
5
- import Grid from '@mui/material/Grid';
5
+ import Grid2 from '@mui/material/Grid2';
6
6
  import Typography from '@mui/material/Typography';
7
7
  import makeStyles from '@mui/styles/makeStyles';
8
8
  import Utils from '../../helpers/utils';
@@ -82,7 +82,6 @@ export default function Operator(props) {
82
82
  ];
83
83
  }
84
84
  else {
85
- // eslint-disable-next-line no-console
86
85
  console.log(`Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`);
87
86
  fields = [
88
87
  {
@@ -125,15 +124,19 @@ export default function Operator(props) {
125
124
  return;
126
125
  }
127
126
  // There are fields, so build the grid.
128
- return (_jsxs(Grid, { container: true, className: classes.popover, spacing: 1, children: [_jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { variant: 'h6', children: caseOpName }) }), popoverFields.map(field => {
129
- return (_jsx(React.Fragment, { children: _jsxs(Grid, { container: true, item: true, xs: 12, spacing: 1, children: [_jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: 'caption', children: field.name }) }), _jsx(Grid, { item: true, xs: 6, children: _jsx(Typography, { variant: 'subtitle2', children: field.value }) })] }) }, field.id));
127
+ return (_jsxs(Grid2, { container: true, className: classes.popover, spacing: 1, children: [_jsx(Grid2, { size: { xs: 12 }, children: _jsx(Typography, { variant: 'h6', children: caseOpName }) }), popoverFields.map(field => {
128
+ return (_jsx(React.Fragment, { children: _jsxs(Grid2, { container: true, size: { xs: 12 }, spacing: 1, children: [_jsx(Grid2, { size: { xs: 6 }, children: _jsx(Typography, { variant: 'caption', children: field.name }) }), _jsx(Grid2, { size: { xs: 6 }, children: _jsx(Typography, { variant: 'subtitle2', children: field.value }) })] }) }, field.id));
130
129
  })] }));
131
130
  }
132
131
  // End of popover-related
133
- return (_jsxs(_Fragment, { children: [_jsx(TextField, { variant: 'standard', defaultValue: caseOpName, label: caseOpLabel, onClick: showOperatorDetails, InputProps: {
134
- readOnly: true,
135
- disableUnderline: true,
136
- inputProps: { style: { cursor: 'pointer' } }
137
- } }), _jsx("br", {}), Utils.generateDateTime(caseTime, 'DateTime-Since'), _jsx(Popover, { id: popoverId, open: popoverOpen, anchorEl: popoverAnchorEl, onClose: handlePopoverClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, PaperProps: { style: { maxWidth: '45ch' } }, children: getPopoverGrid() })] }));
132
+ return (_jsxs(_Fragment, { children: [_jsx(TextField, { variant: 'standard', defaultValue: caseOpName, label: caseOpLabel, onClick: showOperatorDetails, slotProps: {
133
+ input: {
134
+ readOnly: true,
135
+ disableUnderline: true,
136
+ inputProps: { style: { cursor: 'pointer' } }
137
+ }
138
+ } }), _jsx("br", {}), Utils.generateDateTime(caseTime, 'DateTime-Since'), _jsx(Popover, { id: popoverId, open: popoverOpen, anchorEl: popoverAnchorEl, onClose: handlePopoverClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, slotProps: {
139
+ paper: { style: { maxWidth: '45ch' } }
140
+ }, children: getPopoverGrid() })] }));
138
141
  }
139
142
  //# sourceMappingURL=Operator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAiBxC,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;KACzB;IACD,OAAO,EAAE;QACP,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;KACzB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAoB;IACnD,oCAAoC;IACpC,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,MAAM,UAA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B;IAEzB,OAAO,CACL,8BACE,KAAC,SAAS,IACR,OAAO,EAAC,UAAU,EAClB,YAAY,EAAE,UAAU,EACxB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE;oBACV,QAAQ,EAAE,IAAI;oBACd,gBAAgB,EAAE,IAAI;oBACtB,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;iBAC7C,GACD,EACF,cAAM,EACL,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAEnD,KAAC,OAAO,IACN,EAAE,EAAE,SAAS,EACb,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,kBAAkB,EAC3B,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAC1D,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAC1D,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,YAE1C,cAAc,EAAE,GACT,IACT,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport TextField from '@mui/material/TextField';\nimport Popover from '@mui/material/Popover';\nimport Grid from '@mui/material/Grid';\nimport Typography from '@mui/material/Typography';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport Utils from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\n// Operator is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface OperatorProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n label: string;\n createDateTime: string;\n createLabel: string;\n createOperator: { userName: string; userId: string };\n updateDateTime: string;\n updateLabel: string;\n updateOperator: { userName: string; userId: string };\n displayLabel?: any;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n },\n popover: {\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function Operator(props: OperatorProps) {\n // const componentName = \"Operator\";\n const classes = useStyles();\n\n const fieldLabel = props?.label?.toLowerCase();\n const displayLabel = props?.displayLabel?.toLowerCase();\n let caseOpLabel = '---';\n let caseOpName = '---';\n let caseOpId = '';\n let caseTime = '';\n\n if (fieldLabel === 'create operator' || displayLabel === 'create operator') {\n caseOpLabel = props.createLabel;\n caseOpName = props.createOperator.userName;\n caseTime = props.createDateTime;\n caseOpId = props.createOperator.userId;\n } else if (fieldLabel === 'update operator' || displayLabel === 'update operator') {\n caseOpLabel = props.updateLabel;\n caseOpName = props.updateOperator.userName;\n caseTime = props.updateDateTime;\n caseOpId = props.updateOperator.userId;\n }\n\n // Popover-related\n const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);\n const [popoverFields, setPopoverFields] = useState<any[]>([]);\n\n const popoverOpen = Boolean(popoverAnchorEl);\n const popoverId = popoverOpen ? 'operator-details-popover' : undefined;\n\n const handlePopoverClose = () => {\n setPopoverAnchorEl(null);\n };\n\n function showOperatorDetails(event) {\n const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Operator';\n\n operatorPreviewPromise.then((res: any) => {\n const fillerString = '---';\n let fields: any = [];\n if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {\n fields = [\n {\n id: 'pyPosition',\n name: localizedVal('Position', localeCategory),\n value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString\n },\n {\n id: 'pyOrganization',\n name: localizedVal('Organization', localeCategory),\n value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString\n },\n {\n id: 'ReportToUserName',\n name: localizedVal('Reports to', localeCategory),\n value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString\n },\n {\n id: 'pyTelephone',\n name: localizedVal('Telephone', localeCategory),\n value: res.data.pyOperatorInfo.pyTelephone ? (\n <a href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>{res.data.pyOperatorInfo.pyTelephone}</a>\n ) : (\n fillerString\n )\n },\n {\n id: 'pyEmailAddress',\n name: localizedVal('Email address', localeCategory),\n value: res.data.pyOperatorInfo.pyEmailAddress ? (\n <a href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>{res.data.pyOperatorInfo.pyEmailAddress}</a>\n ) : (\n fillerString\n )\n }\n ];\n } else {\n // eslint-disable-next-line no-console\n console.log(\n `Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`\n );\n fields = [\n {\n id: 'pyPosition',\n name: localizedVal('Position', localeCategory),\n value: fillerString\n },\n {\n id: 'pyOrganization',\n name: localizedVal('Organization', localeCategory),\n value: fillerString\n },\n {\n id: 'ReportToUserName',\n name: localizedVal('Reports to', localeCategory),\n value: fillerString\n },\n {\n id: 'pyTelephone',\n name: localizedVal('Telephone', localeCategory),\n value: fillerString\n },\n {\n id: 'pyEmailAddress',\n name: localizedVal('Email address', localeCategory),\n value: fillerString\n }\n ];\n }\n // Whatever the fields are, update the component's popoverFields\n setPopoverFields(fields);\n });\n\n setPopoverAnchorEl(event.currentTarget);\n }\n\n function getPopoverGrid() {\n // return popoverFields.map((field) => {\n // return <div className={classes.popover}>{field.name}: {field.value}</div>\n // })\n\n if (popoverFields.length === 0) {\n return;\n }\n\n // There are fields, so build the grid.\n return (\n <Grid container className={classes.popover} spacing={1}>\n <Grid item xs={12}>\n <Typography variant='h6'>{caseOpName}</Typography>\n </Grid>\n {popoverFields.map(field => {\n return (\n <React.Fragment key={field.id}>\n <Grid container item xs={12} spacing={1}>\n <Grid item xs={6}>\n <Typography variant='caption'>{field.name}</Typography>\n </Grid>\n <Grid item xs={6}>\n <Typography variant='subtitle2'>{field.value}</Typography>\n </Grid>\n </Grid>\n </React.Fragment>\n );\n })}\n </Grid>\n );\n }\n\n // End of popover-related\n\n return (\n <>\n <TextField\n variant='standard'\n defaultValue={caseOpName}\n label={caseOpLabel}\n onClick={showOperatorDetails}\n InputProps={{\n readOnly: true,\n disableUnderline: true,\n inputProps: { style: { cursor: 'pointer' } }\n }}\n />\n <br />\n {Utils.generateDateTime(caseTime, 'DateTime-Since')}\n\n <Popover\n id={popoverId}\n open={popoverOpen}\n anchorEl={popoverAnchorEl}\n onClose={handlePopoverClose}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n transformOrigin={{ vertical: 'top', horizontal: 'center' }}\n PaperProps={{ style: { maxWidth: '45ch' } }}\n >\n {getPopoverGrid()}\n </Popover>\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAiBxC,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;KACzB;IACD,OAAO,EAAE;QACP,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;KACzB;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM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,EAAE,EAAE,EAAE,CAAC,EAAE,YACpB,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,YAAE,KAAK,CAAC,KAAK,GAAc,GACpD,IACF,IARW,KAAK,CAAC,EAAE,CASZ,CAClB,CAAC;gBACJ,CAAC,CAAC,IACI,CACT,CAAC;IACJ,CAAC;IAED,yBAAyB;IAEzB,OAAO,CACL,8BACE,KAAC,SAAS,IACR,OAAO,EAAC,UAAU,EAClB,YAAY,EAAE,UAAU,EACxB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE;oBACT,KAAK,EAAE;wBACL,QAAQ,EAAE,IAAI;wBACd,gBAAgB,EAAE,IAAI;wBACtB,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;qBAC7C;iBACF,GACD,EACF,cAAM,EACL,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EACnD,KAAC,OAAO,IACN,EAAE,EAAE,SAAS,EACb,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,kBAAkB,EAC3B,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAC1D,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAC1D,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE;iBACvC,YAEA,cAAc,EAAE,GACT,IACT,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport TextField from '@mui/material/TextField';\nimport Popover from '@mui/material/Popover';\nimport Grid2 from '@mui/material/Grid2';\nimport Typography from '@mui/material/Typography';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport Utils from '../../helpers/utils';\nimport type { PConnProps } from '../../../types/PConnProps';\n\n// Operator is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface OperatorProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n label: string;\n createDateTime: string;\n createLabel: string;\n createOperator: { userName: string; userId: string };\n updateDateTime: string;\n updateLabel: string;\n updateOperator: { userName: string; userId: string };\n displayLabel?: any;\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n },\n popover: {\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function Operator(props: OperatorProps) {\n // const componentName = \"Operator\";\n const classes = useStyles();\n\n const fieldLabel = props?.label?.toLowerCase();\n const displayLabel = props?.displayLabel?.toLowerCase();\n let caseOpLabel = '---';\n let caseOpName = '---';\n let caseOpId = '';\n let caseTime = '';\n\n if (fieldLabel === 'create operator' || displayLabel === 'create operator') {\n caseOpLabel = props.createLabel;\n caseOpName = props.createOperator.userName;\n caseTime = props.createDateTime;\n caseOpId = props.createOperator.userId;\n } else if (fieldLabel === 'update operator' || displayLabel === 'update operator') {\n caseOpLabel = props.updateLabel;\n caseOpName = props.updateOperator.userName;\n caseTime = props.updateDateTime;\n caseOpId = props.updateOperator.userId;\n }\n\n // Popover-related\n const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);\n const [popoverFields, setPopoverFields] = useState<any[]>([]);\n\n const popoverOpen = Boolean(popoverAnchorEl);\n const popoverId = popoverOpen ? 'operator-details-popover' : undefined;\n\n const handlePopoverClose = () => {\n setPopoverAnchorEl(null);\n };\n\n function showOperatorDetails(event) {\n const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Operator';\n\n operatorPreviewPromise.then((res: any) => {\n const fillerString = '---';\n let fields: any = [];\n if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {\n fields = [\n {\n id: 'pyPosition',\n name: localizedVal('Position', localeCategory),\n value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString\n },\n {\n id: 'pyOrganization',\n name: localizedVal('Organization', localeCategory),\n value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString\n },\n {\n id: 'ReportToUserName',\n name: localizedVal('Reports to', localeCategory),\n value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString\n },\n {\n id: 'pyTelephone',\n name: localizedVal('Telephone', localeCategory),\n value: res.data.pyOperatorInfo.pyTelephone ? (\n <a href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>{res.data.pyOperatorInfo.pyTelephone}</a>\n ) : (\n fillerString\n )\n },\n {\n id: 'pyEmailAddress',\n name: localizedVal('Email address', localeCategory),\n value: res.data.pyOperatorInfo.pyEmailAddress ? (\n <a href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>{res.data.pyOperatorInfo.pyEmailAddress}</a>\n ) : (\n fillerString\n )\n }\n ];\n } else {\n console.log(\n `Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`\n );\n fields = [\n {\n id: 'pyPosition',\n name: localizedVal('Position', localeCategory),\n value: fillerString\n },\n {\n id: 'pyOrganization',\n name: localizedVal('Organization', localeCategory),\n value: fillerString\n },\n {\n id: 'ReportToUserName',\n name: localizedVal('Reports to', localeCategory),\n value: fillerString\n },\n {\n id: 'pyTelephone',\n name: localizedVal('Telephone', localeCategory),\n value: fillerString\n },\n {\n id: 'pyEmailAddress',\n name: localizedVal('Email address', localeCategory),\n value: fillerString\n }\n ];\n }\n // Whatever the fields are, update the component's popoverFields\n setPopoverFields(fields);\n });\n\n setPopoverAnchorEl(event.currentTarget);\n }\n\n function getPopoverGrid() {\n // return popoverFields.map((field) => {\n // return <div className={classes.popover}>{field.name}: {field.value}</div>\n // })\n\n if (popoverFields.length === 0) {\n return;\n }\n\n // There are fields, so build the grid.\n return (\n <Grid2 container className={classes.popover} spacing={1}>\n <Grid2 size={{ xs: 12 }}>\n <Typography variant='h6'>{caseOpName}</Typography>\n </Grid2>\n {popoverFields.map(field => {\n return (\n <React.Fragment key={field.id}>\n <Grid2 container size={{ xs: 12 }} spacing={1}>\n <Grid2 size={{ xs: 6 }}>\n <Typography variant='caption'>{field.name}</Typography>\n </Grid2>\n <Grid2 size={{ xs: 6 }}>\n <Typography variant='subtitle2'>{field.value}</Typography>\n </Grid2>\n </Grid2>\n </React.Fragment>\n );\n })}\n </Grid2>\n );\n }\n\n // End of popover-related\n\n return (\n <>\n <TextField\n variant='standard'\n defaultValue={caseOpName}\n label={caseOpLabel}\n onClick={showOperatorDetails}\n slotProps={{\n input: {\n readOnly: true,\n disableUnderline: true,\n inputProps: { style: { cursor: 'pointer' } }\n }\n }}\n />\n <br />\n {Utils.generateDateTime(caseTime, 'DateTime-Since')}\n <Popover\n id={popoverId}\n open={popoverOpen}\n anchorEl={popoverAnchorEl}\n onClose={handlePopoverClose}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n transformOrigin={{ vertical: 'top', horizontal: 'center' }}\n slotProps={{\n paper: { style: { maxWidth: '45ch' } }\n }}\n >\n {getPopoverGrid()}\n </Popover>\n </>\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  interface PulseProps {
3
3
  }
4
4
  export default function Pulse(props: PropsWithChildren<PulseProps>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,UAAU,UAAU;CAEnB;AAWD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,2CAajE"}
1
+ {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM/C,UAAU,UAAU;CAEnB;AAWD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,2CAajE"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAQhD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,UAAU,EAAE,WAAW;QACvB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;KAC7C;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAoC;IAChE,6DAA6D;IAC7D,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI,aAC3B,KAAC,UAAU,IAAC,KAAK,EAAE,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,sBAAmB,GAAI,EAClE,KAAC,WAAW,cACV,KAAC,UAAU,wBAAmB,GAClB,IACT,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { PropsWithChildren } from 'react';\nimport { Card, CardContent, CardHeader, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\n\n// Pulse is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface PulseProps {\n // If any, enter additional props that only exist on this component\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n }\n}));\n\nexport default function Pulse(props: PropsWithChildren<PulseProps>) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { children } = props;\n const classes = useStyles();\n\n return (\n <Card className={classes.root}>\n <CardHeader title={<Typography variant='h6'>Pulse</Typography>} />\n <CardContent>\n <Typography>Pulse</Typography>\n </CardContent>\n </Card>\n );\n}\n"]}
1
+ {"version":3,"file":"Pulse.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAQhD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,UAAU,EAAE,WAAW;QACvB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;KAC7C;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAoC;IAChE,6DAA6D;IAC7D,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI,aAC3B,KAAC,UAAU,IAAC,KAAK,EAAE,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,sBAAmB,GAAI,EAClE,KAAC,WAAW,cACV,KAAC,UAAU,wBAAmB,GAClB,IACT,CACR,CAAC;AACJ,CAAC","sourcesContent":["import type { PropsWithChildren } from 'react';\nimport { Card, CardContent, CardHeader, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\n\n// Pulse is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface PulseProps {\n // If any, enter additional props that only exist on this component\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n }\n}));\n\nexport default function Pulse(props: PropsWithChildren<PulseProps>) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { children } = props;\n const classes = useStyles();\n\n return (\n <Card className={classes.root}>\n <CardHeader title={<Typography variant='h6'>Pulse</Typography>} />\n <CardContent>\n <Typography>Pulse</Typography>\n </CardContent>\n </Card>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAgB1C,UAAU,mBAAmB;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,cAAc,qFAwFlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAe1C,UAAU,mBAAmB;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,cAAc,qFAqHlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
2
+ import React, { forwardRef } from 'react';
3
3
  import { Editor } from '@tinymce/tinymce-react';
4
- import { FormControl, FormHelperText, InputLabel } from '@mui/material';
4
+ import { FormControl, FormHelperText, InputLabel, useTheme } from '@mui/material';
5
5
  import makeStyles from '@mui/styles/makeStyles';
6
6
  import { useAfterInitialEffect, useConsolidatedRef, useUID } from '../../../hooks';
7
7
  const useStyles = makeStyles(theme => ({
@@ -13,6 +13,7 @@ const useStyles = makeStyles(theme => ({
13
13
  }
14
14
  }));
15
15
  const RichTextEditor = forwardRef(function RichTextEditor(props, ref) {
16
+ const theme = useTheme();
16
17
  const classes = useStyles();
17
18
  const uid = useUID();
18
19
  const { id = uid, defaultValue, label, labelHidden, info, testId, placeholder, disabled, required, readOnly, error, onBlur, onChange } = props;
@@ -48,13 +49,40 @@ const RichTextEditor = forwardRef(function RichTextEditor(props, ref) {
48
49
  };
49
50
  if (readOnly) {
50
51
  const value = defaultValue || '--';
51
- // eslint-disable-next-line react/no-danger
52
52
  richTextComponent = _jsx("div", { id: id, className: 'readonly-richtext-editor', dangerouslySetInnerHTML: { __html: value } }, id);
53
53
  }
54
54
  else {
55
55
  richTextComponent = (_jsx(Editor, { tinymceScriptSrc: 'tinymce/tinymce.min.js', onInit: (_evt, editor) => {
56
56
  editorRef.current = editor;
57
57
  }, id: id, initialValue: defaultValue, disabled: disabled, init: {
58
+ skin: theme.palette.mode === 'dark' ? 'oxide-dark' : 'oxide',
59
+ // ...other TinyMCE config...
60
+ content_style: `
61
+ body {
62
+ font-family: ${theme.typography.fontFamily};
63
+ font-size: ${theme.typography.fontSize}px;
64
+ color: ${theme.palette.text.primary};
65
+ background: ${theme.palette.background.paper};
66
+ }
67
+ a { color: ${theme.palette.primary.main}; }
68
+ h1, h2, h3, h4, h5, h6 { color: ${theme.palette.text.primary}; font-family: ${theme.typography.fontFamily}; }
69
+ blockquote { color: ${theme.palette.text.secondary}; border-left: 4px solid ${theme.palette.primary.light}; padding-left: 8px; }
70
+ ul, ol { color: ${theme.palette.text.primary}; }
71
+ input, textarea, select {
72
+ background: ${theme.palette.background.paper};
73
+ color: ${theme.palette.text.primary};
74
+ border: 1px solid ${theme.palette.divider};
75
+ border-radius: 4px;
76
+ padding: 6px 10px;
77
+ font-size: 1em;
78
+ font-family: inherit;
79
+ }
80
+ .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
81
+ color: ${theme.palette.text.secondary};
82
+ opacity: 0.7;
83
+ }
84
+ /* Add more styles as needed */
85
+ `,
58
86
  placeholder,
59
87
  menubar: false,
60
88
  statusbar: false,
@@ -63,7 +91,7 @@ const RichTextEditor = forwardRef(function RichTextEditor(props, ref) {
63
91
  autoresize_bottom_margin: 0,
64
92
  toolbar: disabled ? false : 'blocks | bold italic strikethrough | bullist numlist outdent indent | link image',
65
93
  toolbar_location: 'bottom',
66
- content_style: 'body { font-family:Helvetica, Arial,sans-serif; font-size:14px }',
94
+ // content_style: 'body { font-family:Helvetica, Arial,sans-serif; font-size:14px }',
67
95
  branding: false,
68
96
  paste_data_images: true,
69
97
  file_picker_types: 'image',