@pega/react-sdk-components 23.1.10 → 23.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.js +3 -3
  5. package/lib/bridge/Context/StoreContext.js.map +1 -1
  6. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  7. package/lib/bridge/helpers/sdk_component_map.js +24 -47
  8. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  9. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  10. package/lib/bridge/react_pconnect.js +17 -28
  11. package/lib/bridge/react_pconnect.js.map +1 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -2
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +30 -27
  23. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -1
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +9 -15
  27. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  28. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +5 -4
  30. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +23 -12
  32. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  33. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -1
  34. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -16
  36. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  37. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  38. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -10
  39. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  40. package/lib/components/designSystemExtension/Operator/Operator.d.ts +15 -15
  41. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  42. package/lib/components/designSystemExtension/Operator/Operator.js +49 -62
  43. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  44. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +2 -3
  45. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  46. package/lib/components/designSystemExtension/Pulse/Pulse.js +7 -10
  47. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  48. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  49. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +7 -9
  50. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  51. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -1
  52. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  53. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  54. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  55. package/lib/components/field/AutoComplete/AutoComplete.d.ts +2 -2
  56. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  57. package/lib/components/field/AutoComplete/AutoComplete.js +21 -23
  58. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  59. package/lib/components/field/CancelAlert/CancelAlert.d.ts +8 -3
  60. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  61. package/lib/components/field/CancelAlert/CancelAlert.js +76 -68
  62. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  63. package/lib/components/field/CancelAlert/index.js.map +1 -1
  64. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  65. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  66. package/lib/components/field/Checkbox/Checkbox.js +13 -41
  67. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  68. package/lib/components/field/Currency/Currency.d.ts +1 -1
  69. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  70. package/lib/components/field/Currency/Currency.js +13 -34
  71. package/lib/components/field/Currency/Currency.js.map +1 -1
  72. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  73. package/lib/components/field/Currency/currency-utils.js +4 -5
  74. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  75. package/lib/components/field/Date/Date.d.ts +1 -1
  76. package/lib/components/field/Date/Date.d.ts.map +1 -1
  77. package/lib/components/field/Date/Date.js +14 -10
  78. package/lib/components/field/Date/Date.js.map +1 -1
  79. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  80. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  81. package/lib/components/field/DateTime/DateTime.js +8 -8
  82. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  83. package/lib/components/field/Decimal/Decimal.d.ts +1 -1
  84. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  85. package/lib/components/field/Decimal/Decimal.js +10 -27
  86. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  87. package/lib/components/field/Decimal/index.js.map +1 -1
  88. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  89. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  90. package/lib/components/field/Dropdown/Dropdown.js +105 -29
  91. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  92. package/lib/components/field/Email/Email.d.ts +1 -1
  93. package/lib/components/field/Email/Email.d.ts.map +1 -1
  94. package/lib/components/field/Email/Email.js +8 -9
  95. package/lib/components/field/Email/Email.js.map +1 -1
  96. package/lib/components/field/Email/index.js.map +1 -1
  97. package/lib/components/field/Group/Group.d.ts +13 -0
  98. package/lib/components/field/Group/Group.d.ts.map +1 -0
  99. package/lib/components/field/Group/Group.js +15 -0
  100. package/lib/components/field/Group/Group.js.map +1 -0
  101. package/lib/components/field/Group/index.d.ts +2 -0
  102. package/lib/components/field/Group/index.d.ts.map +1 -0
  103. package/lib/components/field/Group/index.js +2 -0
  104. package/lib/components/field/Group/index.js.map +1 -0
  105. package/lib/components/field/Integer/Integer.d.ts +1 -1
  106. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  107. package/lib/components/field/Integer/Integer.js +6 -6
  108. package/lib/components/field/Integer/Integer.js.map +1 -1
  109. package/lib/components/field/Percentage/Percentage.d.ts +2 -1
  110. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  111. package/lib/components/field/Percentage/Percentage.js +25 -28
  112. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  113. package/lib/components/field/Phone/Phone.d.ts +1 -1
  114. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  115. package/lib/components/field/Phone/Phone.js +9 -10
  116. package/lib/components/field/Phone/Phone.js.map +1 -1
  117. package/lib/components/field/Phone/index.js.map +1 -1
  118. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  119. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  120. package/lib/components/field/RadioButtons/RadioButtons.js +18 -21
  121. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  122. package/lib/components/field/RichText/RichText.d.ts +1 -1
  123. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  124. package/lib/components/field/RichText/RichText.js +9 -8
  125. package/lib/components/field/RichText/RichText.js.map +1 -1
  126. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  127. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  128. package/lib/components/field/ScalarList/ScalarList.js +7 -9
  129. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  130. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  131. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  132. package/lib/components/field/SemanticLink/SemanticLink.js +4 -8
  133. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  134. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  135. package/lib/components/field/SemanticLink/utils.js +8 -8
  136. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  137. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  138. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  139. package/lib/components/field/TextArea/TextArea.js +5 -5
  140. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  141. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  142. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  143. package/lib/components/field/TextContent/TextContent.js +2 -2
  144. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  145. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  146. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  147. package/lib/components/field/TextInput/TextInput.js +7 -6
  148. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  149. package/lib/components/field/TextInput/index.js.map +1 -1
  150. package/lib/components/field/Time/Time.d.ts +1 -1
  151. package/lib/components/field/Time/Time.d.ts.map +1 -1
  152. package/lib/components/field/Time/Time.js +7 -7
  153. package/lib/components/field/Time/Time.js.map +1 -1
  154. package/lib/components/field/URL/URL.d.ts +1 -1
  155. package/lib/components/field/URL/URL.d.ts.map +1 -1
  156. package/lib/components/field/URL/URL.js +6 -6
  157. package/lib/components/field/URL/URL.js.map +1 -1
  158. package/lib/components/field/URL/index.js.map +1 -1
  159. package/lib/components/field/UserReference/UserReference.d.ts +3 -3
  160. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  161. package/lib/components/field/UserReference/UserReference.js +11 -11
  162. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  163. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  164. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  165. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  166. package/lib/components/helpers/attachmentHelpers.js +6 -6
  167. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  168. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  169. package/lib/components/helpers/case-utils.js +5 -5
  170. package/lib/components/helpers/case-utils.js.map +1 -1
  171. package/lib/components/helpers/common-utils.d.ts +1 -0
  172. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  173. package/lib/components/helpers/common-utils.js +4 -1
  174. package/lib/components/helpers/common-utils.js.map +1 -1
  175. package/lib/components/helpers/data_page.d.ts.map +1 -1
  176. package/lib/components/helpers/data_page.js +2 -3
  177. package/lib/components/helpers/data_page.js.map +1 -1
  178. package/lib/components/helpers/date-format-utils.js.map +1 -1
  179. package/lib/components/helpers/event-utils.js +3 -3
  180. package/lib/components/helpers/event-utils.js.map +1 -1
  181. package/lib/components/helpers/field-group-utils.js +1 -1
  182. package/lib/components/helpers/field-group-utils.js.map +1 -1
  183. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  184. package/lib/components/helpers/formatters/Boolean.js +9 -20
  185. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  186. package/lib/components/helpers/formatters/Currency.d.ts +2 -2
  187. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  188. package/lib/components/helpers/formatters/Currency.js +13 -14
  189. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  190. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  191. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  192. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  193. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  194. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  195. package/lib/components/helpers/formatters/Date.js +20 -20
  196. package/lib/components/helpers/formatters/Date.js.map +1 -1
  197. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  198. package/lib/components/helpers/formatters/common.js +1 -1
  199. package/lib/components/helpers/formatters/common.js.map +1 -1
  200. package/lib/components/helpers/formatters/index.d.ts +6 -6
  201. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  202. package/lib/components/helpers/formatters/index.js +25 -19
  203. package/lib/components/helpers/formatters/index.js.map +1 -1
  204. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  205. package/lib/components/helpers/reactContextHelpers.js +1 -1
  206. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  207. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  208. package/lib/components/helpers/simpleTableHelpers.js +44 -52
  209. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  210. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  211. package/lib/components/helpers/state-utils.js +6 -8
  212. package/lib/components/helpers/state-utils.js.map +1 -1
  213. package/lib/components/helpers/template-utils.d.ts +1 -1
  214. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  215. package/lib/components/helpers/template-utils.js +1 -2
  216. package/lib/components/helpers/template-utils.js.map +1 -1
  217. package/lib/components/helpers/utils.d.ts +1 -1
  218. package/lib/components/helpers/utils.d.ts.map +1 -1
  219. package/lib/components/helpers/utils.js +3 -8
  220. package/lib/components/helpers/utils.js.map +1 -1
  221. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  222. package/lib/components/helpers/versionHelpers.js +1 -1
  223. package/lib/components/helpers/versionHelpers.js.map +1 -1
  224. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +2 -2
  225. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  226. package/lib/components/infra/ActionButtons/ActionButtons.js +10 -14
  227. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  228. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  229. package/lib/components/infra/Assignment/Assignment.d.ts +10 -2
  230. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  231. package/lib/components/infra/Assignment/Assignment.js +68 -71
  232. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  233. package/lib/components/infra/Assignment/index.js.map +1 -1
  234. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +3 -5
  235. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  236. package/lib/components/infra/AssignmentCard/AssignmentCard.js +4 -5
  237. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  238. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  239. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +11 -1
  240. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  241. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +36 -158
  242. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  243. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  244. package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
  245. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  246. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  247. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  248. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  249. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
  250. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  251. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  252. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  253. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  254. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  255. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -1
  256. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  257. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +178 -160
  258. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  259. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  260. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  261. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  262. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  263. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  264. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  265. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  266. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  267. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  268. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  269. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  270. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  271. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  272. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  273. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  274. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +17 -24
  275. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  276. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  277. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  278. package/lib/components/infra/Containers/helpers.js +7 -0
  279. package/lib/components/infra/Containers/helpers.js.map +1 -0
  280. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +3 -4
  281. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  282. package/lib/components/infra/DashboardFilter/DashboardFilter.js +13 -17
  283. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  284. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  285. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  286. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  287. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +9 -1
  288. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  289. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -17
  290. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  291. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  292. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  293. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  294. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +15 -14
  295. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  296. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  297. package/lib/components/infra/MultiStep/MultiStep.d.ts +5 -7
  298. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  299. package/lib/components/infra/MultiStep/MultiStep.js +29 -80
  300. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  301. package/lib/components/infra/MultiStep/index.js.map +1 -1
  302. package/lib/components/infra/NavBar/NavBar.css +103 -105
  303. package/lib/components/infra/NavBar/NavBar.d.ts +3 -3
  304. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  305. package/lib/components/infra/NavBar/NavBar.js +18 -52
  306. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  307. package/lib/components/infra/Reference/Reference.d.ts +9 -1
  308. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  309. package/lib/components/infra/Reference/Reference.js +5 -12
  310. package/lib/components/infra/Reference/Reference.js.map +1 -1
  311. package/lib/components/infra/Region/Region.d.ts +2 -3
  312. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  313. package/lib/components/infra/Region/Region.js +2 -3
  314. package/lib/components/infra/Region/Region.js.map +1 -1
  315. package/lib/components/infra/RootContainer/RootContainer.d.ts +14 -1
  316. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  317. package/lib/components/infra/RootContainer/RootContainer.js +40 -62
  318. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  319. package/lib/components/infra/RootContainer/index.js.map +1 -1
  320. package/lib/components/infra/Stages/Stages.d.ts +2 -2
  321. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  322. package/lib/components/infra/Stages/Stages.js +18 -21
  323. package/lib/components/infra/Stages/Stages.js.map +1 -1
  324. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  325. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  326. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  327. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -1
  328. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  329. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +10 -9
  330. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  331. package/lib/components/infra/View/View.d.ts +3 -4
  332. package/lib/components/infra/View/View.d.ts.map +1 -1
  333. package/lib/components/infra/View/View.js +6 -11
  334. package/lib/components/infra/View/View.js.map +1 -1
  335. package/lib/components/template/AppShell/AppShell.css +22 -23
  336. package/lib/components/template/AppShell/AppShell.d.ts +6 -7
  337. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  338. package/lib/components/template/AppShell/AppShell.js +23 -29
  339. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  340. package/lib/components/template/BannerPage/BannerPage.d.ts +4 -4
  341. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  342. package/lib/components/template/BannerPage/BannerPage.js +3 -3
  343. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  344. package/lib/components/template/CaseSummary/CaseSummary.d.ts +3 -4
  345. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  346. package/lib/components/template/CaseSummary/CaseSummary.js +44 -8
  347. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  348. package/lib/components/template/CaseView/CaseView.d.ts +3 -4
  349. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  350. package/lib/components/template/CaseView/CaseView.js +18 -41
  351. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  352. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +3 -3
  353. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  354. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -7
  355. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  356. package/lib/components/template/Confirmation/Confirmation.d.ts +3 -4
  357. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  358. package/lib/components/template/Confirmation/Confirmation.js +7 -14
  359. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  360. package/lib/components/template/DataReference/DataReference.d.ts +4 -4
  361. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  362. package/lib/components/template/DataReference/DataReference.js +35 -49
  363. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  364. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  365. package/lib/components/template/DefaultForm/DefaultForm.d.ts +8 -2
  366. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  367. package/lib/components/template/DefaultForm/DefaultForm.js +5 -14
  368. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  369. package/lib/components/template/Details/Details/Details.d.ts +8 -1
  370. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  371. package/lib/components/template/Details/Details/Details.js +5 -13
  372. package/lib/components/template/Details/Details/Details.js.map +1 -1
  373. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +3 -4
  374. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  375. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +5 -10
  376. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  377. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +8 -1
  378. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  379. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +5 -16
  380. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  381. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +8 -1
  382. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  383. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +5 -16
  384. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  385. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  386. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +7 -1
  387. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  388. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +6 -17
  389. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  390. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -2
  391. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  392. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -9
  393. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  394. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +3 -4
  395. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  396. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -9
  397. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  398. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +3 -4
  399. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  400. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +7 -6
  401. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  402. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  403. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  404. package/lib/components/template/ListPage/ListPage.js +2 -2
  405. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  406. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  407. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  408. package/lib/components/template/ListView/ListView.d.ts +16 -1
  409. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  410. package/lib/components/template/ListView/ListView.js +103 -178
  411. package/lib/components/template/ListView/ListView.js.map +1 -1
  412. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  413. package/lib/components/template/ListView/hooks.js +4 -6
  414. package/lib/components/template/ListView/hooks.js.map +1 -1
  415. package/lib/components/template/ListView/utils.d.ts +1 -1
  416. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  417. package/lib/components/template/ListView/utils.js +38 -46
  418. package/lib/components/template/ListView/utils.js.map +1 -1
  419. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  420. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  421. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +3 -3
  422. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  423. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  424. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -4
  425. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  426. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  427. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  428. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +8 -1
  429. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  430. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +5 -16
  431. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  432. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  433. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -4
  434. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  435. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  436. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  437. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +4 -4
  438. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  439. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +3 -5
  440. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  441. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -4
  442. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  443. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -8
  444. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  445. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +2 -2
  446. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  447. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +2 -2
  448. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  449. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -4
  450. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  451. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -2
  452. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  453. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  454. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +10 -1
  455. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  456. package/lib/components/template/PromotedFilters/PromotedFilters.js +12 -29
  457. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  458. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  459. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  460. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +17 -20
  461. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  462. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +12 -7
  463. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  464. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +122 -132
  465. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  466. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -1
  467. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  468. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +9 -21
  469. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  470. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  471. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  472. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -5
  473. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  474. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -4
  475. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  476. package/lib/components/template/SubTabs/SubTabs.js +6 -9
  477. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  478. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  479. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  480. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  481. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  482. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +4 -4
  483. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  484. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +14 -12
  485. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  486. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +2 -2
  487. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  488. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +2 -2
  489. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  490. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +4 -4
  491. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  492. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +14 -12
  493. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  494. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  495. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -4
  496. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  497. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +2 -10
  498. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  499. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +8 -1
  500. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  501. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +5 -16
  502. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  503. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  504. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -4
  505. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  506. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  507. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  508. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +4 -4
  509. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  510. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +3 -3
  511. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  512. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  513. package/lib/components/template/WssNavBar/WssNavBar.d.ts +3 -2
  514. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  515. package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
  516. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  517. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +2 -1
  518. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  519. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +10 -19
  520. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  521. package/lib/components/widget/Attachment/Attachment.css +60 -1
  522. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  523. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  524. package/lib/components/widget/Attachment/Attachment.js +279 -353
  525. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  526. package/lib/components/widget/Attachment/index.js.map +1 -1
  527. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  528. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  529. package/lib/components/widget/CaseHistory/CaseHistory.js +37 -31
  530. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  531. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  532. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +4 -3
  533. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  534. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  535. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  536. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  537. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  538. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  539. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +107 -136
  540. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  541. package/lib/components/widget/Followers/Followers.d.ts +4 -4
  542. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  543. package/lib/components/widget/Followers/Followers.js +8 -16
  544. package/lib/components/widget/Followers/Followers.js.map +1 -1
  545. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  546. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  547. package/lib/components/widget/QuickCreate/QuickCreate.js +57 -35
  548. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  549. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  550. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +3 -2
  551. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  552. package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
  553. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  554. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  555. package/lib/components/widget/SummaryList/SummaryList.d.ts +3 -2
  556. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  557. package/lib/components/widget/SummaryList/SummaryList.js +3 -3
  558. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  559. package/lib/components/widget/ToDo/ToDo.css +4 -4
  560. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  561. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  562. package/lib/components/widget/ToDo/ToDo.js +31 -67
  563. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  564. package/lib/components_map.d.ts +2 -2
  565. package/lib/components_map.d.ts.map +1 -1
  566. package/lib/components_map.js +4 -2
  567. package/lib/components_map.js.map +1 -1
  568. package/lib/doc/KeyReleaseUpdates.md +21 -4
  569. package/lib/hooks/useConsolidatedRef.js +2 -2
  570. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  571. package/lib/sdk-local-component-map.js +2 -2
  572. package/lib/sdk-pega-component-map.d.ts +4 -0
  573. package/lib/sdk-pega-component-map.js +104 -100
  574. package/lib/sdk-pega-component-map.js.map +1 -1
  575. package/lib/types/PConnProps.d.ts +14 -15
  576. package/package.json +5 -2
  577. package/lib/components/helpers/auth.d.ts +0 -18
  578. package/lib/components/helpers/auth.d.ts.map +0 -1
  579. package/lib/components/helpers/auth.js +0 -752
  580. package/lib/components/helpers/auth.js.map +0 -1
  581. package/lib/components/helpers/authManager.d.ts +0 -21
  582. package/lib/components/helpers/authManager.d.ts.map +0 -1
  583. package/lib/components/helpers/authManager.js +0 -864
  584. package/lib/components/helpers/authManager.js.map +0 -1
  585. package/lib/components/helpers/config_access.d.ts +0 -3
  586. package/lib/components/helpers/config_access.d.ts.map +0 -1
  587. package/lib/components/helpers/config_access.js +0 -198
  588. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1,6 +1,9 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
2
3
  import Grid from '@material-ui/core/Grid';
3
4
  import { makeStyles } from '@material-ui/core/styles';
5
+ import KeyboardArrowRightIcon from '@material-ui/icons/KeyboardArrowRight';
6
+ import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown';
4
7
  const useStyles = makeStyles(theme => ({
5
8
  root: {
6
9
  marginRight: theme.spacing(1),
@@ -15,19 +18,27 @@ const useStyles = makeStyles(theme => ({
15
18
  },
16
19
  fullWidth: {
17
20
  width: '100%'
21
+ },
22
+ fieldGroupHeader: {
23
+ display: 'flex',
24
+ alignItems: 'center',
25
+ gap: '5px',
26
+ cursor: collapsible => (collapsible ? 'pointer' : 'auto')
27
+ },
28
+ instructionText: {
29
+ padding: '5px 0'
18
30
  }
19
31
  }));
20
32
  export default function FieldGroup(props) {
21
- const { children, name } = props;
22
- const classes = useStyles();
23
- const descAndChildren = (React.createElement(Grid, { container: true },
24
- React.createElement("div", { className: classes.fullWidth }, children)));
25
- return (React.createElement(React.Fragment, null,
26
- React.createElement(Grid, { container: true, spacing: 4, justifyContent: 'space-between' },
27
- React.createElement(Grid, { item: true, style: { width: '100%' } },
28
- name && (React.createElement("div", { className: classes.fieldMargin },
29
- React.createElement("b", null, props.name))),
30
- descAndChildren))));
33
+ const { children, name, collapsible = false, instructions } = props;
34
+ const classes = useStyles(collapsible);
35
+ const [collapsed, setCollapsed] = useState(false);
36
+ const descAndChildren = (_jsx(Grid, { container: true, children: _jsx("div", { className: classes.fullWidth, children: children }) }));
37
+ const headerClickHandler = () => {
38
+ setCollapsed(current => !current);
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] }) }));
31
43
  }
32
- ;
33
44
  //# sourceMappingURL=FieldGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroup.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroup/FieldGroup.tsx"],"names":[],"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AE,OAAO,CAAC,WAAW;oBACjC,+BAAI,KAAK,CAAC,IAAI,CAAK,CACf,CACP;gBACA,eAAe,CACX,CACF,CACQ,CAClB,CAAC;AACJ,CAAC;AAAA,CAAC","sourcesContent":["import React from 'react';\nimport Grid from '@material-ui/core/Grid';\nimport { makeStyles } from '@material-ui/core/styles';\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 children: Array<any> | any,\n name: string | object,\n}\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}));\n\nexport default function FieldGroup(props: FieldGroupProps) {\n const { children, name } = props;\n const classes = useStyles();\n\n const descAndChildren = (\n <Grid container>\n <div className={classes.fullWidth}>{children}</div>\n </Grid>\n );\n\n return (\n <React.Fragment>\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item style={{ width: '100%' }}>\n {name && (\n <div className={classes.fieldMargin}>\n <b>{props.name}</b>\n </div>\n )}\n {descAndChildren}\n </Grid>\n </Grid>\n </React.Fragment>\n );\n};\n"]}
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,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AAWzE,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE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,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 '@material-ui/core/Grid';\nimport { makeStyles } from '@material-ui/core/styles';\nimport KeyboardArrowRightIcon from '@material-ui/icons/KeyboardArrowRight';\nimport KeyboardArrowDownIcon from '@material-ui/icons/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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface FieldGroupListProps {
3
- items: Array<any> | any;
3
+ items: any[] | any;
4
4
  onDelete: any;
5
5
  onAdd: any;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx"],"names":[],"mappings":";AAUA,UAAU,mBAAmB;IAE3B,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IACxB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,GAAG,CAAA;CACX;AAGD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eA4ChE"}
1
+ {"version":3,"file":"FieldGroupList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx"],"names":[],"mappings":";AAQA,UAAU,mBAAmB;IAE3B,KAAK,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eA0ChE"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Grid from '@material-ui/core/Grid';
3
3
  import Divider from '@material-ui/core/Divider';
4
4
  import Link from '@material-ui/core/Link';
@@ -8,20 +8,8 @@ export default function FieldGroupList(props) {
8
8
  if (menuIconOverride$) {
9
9
  menuIconOverride$ = Utils.getImageSrc(menuIconOverride$, Utils.getSDKStaticConentUrl());
10
10
  }
11
- return (React.createElement(Grid, { container: true, spacing: 4, justifyContent: 'space-between' },
12
- React.createElement(Grid, { item: true, style: { width: '100%' } },
13
- React.createElement(Grid, { container: true, spacing: 1 },
14
- props.items.map(item => (React.createElement(Grid, { item: true, style: { width: '100%' } },
15
- React.createElement("b", null, item.name),
16
- props.onDelete && (React.createElement("button", { type: 'button', style: { float: 'right' }, className: 'psdk-utility-button', id: `delete-row-${item.id}`, onClick: () => {
17
- props.onDelete(item.id);
18
- } },
19
- React.createElement("img", { className: 'psdk-utility-card-action-svg-icon', src: menuIconOverride$ }))),
20
- item.children,
21
- React.createElement("br", null),
22
- props.onAdd && React.createElement(Divider, null),
23
- React.createElement("br", null)))),
24
- props.onAdd && (React.createElement(Link, { onClick: props.onAdd, style: { cursor: 'pointer' } }, "+Add"))))));
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: () => {
12
+ props.onDelete(item.id);
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' }, children: "+Add" }))] }) }) }));
25
14
  }
26
- ;
27
15
  //# sourceMappingURL=FieldGroupList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAY5C,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA0B;IAC/D,IAAI,iBAAiB,GAAG,OAAO,CAAC;IAChC,IAAI,iBAAiB,EAAE;QACrB,iBAAiB,GAAG,KAAK,CAAC,WAAW,CACnC,iBAAiB,EACjB,KAAK,CAAC,qBAAqB,EAAE,CAC9B,CAAC;KACH;IAED,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe;QACxD,oBAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;YACjC,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;gBACvB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACvB,oBAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;oBACjC,+BAAI,IAAI,CAAC,IAAI,CAAK;oBACjB,KAAK,CAAC,QAAQ,IAAI,CACjB,gCACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EACzB,SAAS,EAAC,qBAAqB,EAC/B,EAAE,EAAE,cAAc,IAAI,CAAC,EAAE,EAAE,EAC3B,OAAO,EAAE,GAAG,EAAE;4BACZ,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;wBAC1B,CAAC;wBAED,6BAAK,SAAS,EAAC,mCAAmC,EAAC,GAAG,EAAE,iBAAiB,GAAQ,CAC1E,CACV;oBACA,IAAI,CAAC,QAAQ;oBACd,+BAAM;oBACL,KAAK,CAAC,KAAK,IAAI,oBAAC,OAAO,OAAG;oBAC3B,+BAAM,CACD,CACR,CAAC;gBACD,KAAK,CAAC,KAAK,IAAI,CACd,oBAAC,IAAI,IAAC,OAAO,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,WAEjD,CACR,CACI,CACF,CACF,CACR,CAAC;AACJ,CAAC;AAAA,CAAC","sourcesContent":["import React from 'react';\n\nimport Grid from '@material-ui/core/Grid';\nimport Divider from '@material-ui/core/Divider';\nimport Link from '@material-ui/core/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: Array<any> | any,\n onDelete: any,\n onAdd: any\n}\n\n\nexport default function FieldGroupList(props: FieldGroupListProps) {\n let menuIconOverride$ = 'trash';\n if (menuIconOverride$) {\n menuIconOverride$ = Utils.getImageSrc(\n menuIconOverride$,\n Utils.getSDKStaticConentUrl()\n );\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 onClick={() => {\n props.onDelete(item.id);\n }}\n >\n <img className='psdk-utility-card-action-svg-icon' src={menuIconOverride$}></img>\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' }}>\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,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAW5C,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA0B;IAC/D,IAAI,iBAAiB,GAAG,OAAO,CAAC;IAChC,IAAI,iBAAiB,EAAE;QACrB,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;KACzF;IAED,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,YACxD,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YACjC,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,aACvB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACvB,MAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aACjC,sBAAI,IAAI,CAAC,IAAI,GAAK,EACjB,KAAK,CAAC,QAAQ,IAAI,CACjB,iBACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EACzB,SAAS,EAAC,qBAAqB,EAC/B,EAAE,EAAE,cAAc,IAAI,CAAC,EAAE,EAAE,gBAChB,YAAY,EACvB,OAAO,EAAE,GAAG,EAAE;oCACZ,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gCAC1B,CAAC,YAED,cAAK,SAAS,EAAC,mCAAmC,EAAC,GAAG,EAAE,iBAAiB,GAAI,GACtE,CACV,EACA,IAAI,CAAC,QAAQ,EACd,cAAM,EACL,KAAK,CAAC,KAAK,IAAI,KAAC,OAAO,KAAG,EAC3B,cAAM,IACD,CACR,CAAC,EACD,KAAK,CAAC,KAAK,IAAI,CACd,KAAC,IAAI,IAAC,OAAO,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,qBAEjD,CACR,IACI,GACF,GACF,CACR,CAAC;AACJ,CAAC","sourcesContent":["import Grid from '@material-ui/core/Grid';\nimport Divider from '@material-ui/core/Divider';\nimport Link from '@material-ui/core/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' }}>\n +Add\n </Link>\n )}\n </Grid>\n </Grid>\n </Grid>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAQA,UAAU,mBAAmB;IAE3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAoCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eA8ChE"}
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;CAClB;AAmCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAgChE"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Grid from '@material-ui/core/Grid';
3
3
  import Typography from '@material-ui/core/Typography';
4
4
  import { makeStyles } from '@material-ui/core/styles';
@@ -35,18 +35,12 @@ export default function FieldValueList(props) {
35
35
  const { name, value, variant = 'inline' } = props;
36
36
  const classes = useStyles();
37
37
  function getGridItemLabel() {
38
- return (React.createElement(Grid, { item: true, xs: variant === 'stacked' ? 12 : 6, className: variant === 'stacked' ? classes.noPaddingBottom : '' },
39
- React.createElement(Typography, { variant: 'body2', component: 'span', className: `${classes.fieldLabel}` }, name)));
38
+ return (_jsx(Grid, { item: true, xs: variant === 'stacked' ? 12 : 6, className: variant === 'stacked' ? classes.noPaddingBottom : '', children: _jsx(Typography, { variant: 'body2', component: 'span', className: `${classes.fieldLabel}`, children: name }) }));
40
39
  }
41
40
  function getGridItemValue() {
42
41
  const formattedValue = formatItemValue(value);
43
- return (React.createElement(Grid, { item: true, xs: variant === 'stacked' ? 12 : 6, className: variant === 'stacked' ? classes.noPaddingTop : '' },
44
- React.createElement(Typography, { variant: variant === 'stacked' ? 'h6' : 'body2', component: 'span', className: classes.fieldValue }, formattedValue)));
42
+ return (_jsx(Grid, { item: true, xs: variant === 'stacked' ? 12 : 6, className: variant === 'stacked' ? classes.noPaddingTop : '', children: _jsx(Typography, { variant: variant === 'stacked' ? 'h6' : 'body2', component: 'span', className: classes.fieldValue, children: formattedValue }) }));
45
43
  }
46
- return (React.createElement(React.Fragment, null,
47
- React.createElement(Grid, { container: true, spacing: 4, justifyContent: 'space-between' },
48
- getGridItemLabel(),
49
- getGridItemValue())));
44
+ return (_jsxs(Grid, { container: true, spacing: 4, justifyContent: 'space-between', children: [getGridItemLabel(), getGridItemValue()] }));
50
45
  }
51
- ;
52
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,KAAK,MAAM,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,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAClC,SAAS,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;YAE/D,oBAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,IAC5E,IAAI,CACM,CACR,CACR,CAAC;IACJ,CAAC;IAED,SAAS,gBAAgB;QACvB,MAAM,cAAc,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO,CACL,oBAAC,IAAI,IACH,IAAI,QACJ,EAAE,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAClC,SAAS,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;YAE5D,oBAAC,UAAU,IACT,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAC/C,SAAS,EAAC,MAAM,EAChB,SAAS,EAAE,OAAO,CAAC,UAAU,IAE5B,cAAc,CACJ,CACR,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe;YACvD,gBAAgB,EAAE;YAClB,gBAAgB,EAAE,CACd,CACQ,CAClB,CAAC;AACJ,CAAC;AAAA,CAAC","sourcesContent":["import React from 'react';\n\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\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}\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' } = props;\n const classes = useStyles();\n\n function getGridItemLabel() {\n return (\n <Grid\n item\n xs={variant === 'stacked' ? 12 : 6}\n className={variant === 'stacked' ? classes.noPaddingBottom : ''}\n >\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\n item\n xs={variant === 'stacked' ? 12 : 6}\n className={variant === 'stacked' ? classes.noPaddingTop : ''}\n >\n <Typography\n variant={variant === 'stacked' ? 'h6' : 'body2'}\n component='span'\n className={classes.fieldValue}\n >\n {formattedValue}\n </Typography>\n </Grid>\n );\n }\n\n return (\n <React.Fragment>\n <Grid container spacing={4} justifyContent='space-between'>\n {getGridItemLabel()}\n {getGridItemValue()}\n </Grid>\n </React.Fragment>\n );\n};\n"]}
1
+ {"version":3,"file":"FieldValueList.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CA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,CAAC,CAAC,CAAC,EAAE,YAC5G,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,YAC5E,IAAI,GACM,GACR,CACR,CAAC;IACJ,CAAC;IAED,SAAS,gBAAgB;QACvB,MAAM,cAAc,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO,CACL,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YACzG,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,GACR,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 '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\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}\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' } = props;\n const classes = useStyles();\n\n function getGridItemLabel() {\n return (\n <Grid item xs={variant === 'stacked' ? 12 : 6} 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 : 6} className={variant === 'stacked' ? classes.noPaddingTop : ''}>\n <Typography variant={variant === 'stacked' ? 'h6' : 'body2'} component='span' className={classes.fieldValue}>\n {formattedValue}\n </Typography>\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,20 +1,20 @@
1
1
  /// <reference types="react" />
2
- interface OperatorProps {
3
- caseOpConfig: {
4
- label: string;
5
- createDateTime: string;
6
- createLabel: string;
7
- createOperator: {
8
- userName: string;
9
- userId: string;
10
- };
11
- updateDateTime: string;
12
- updateLabel: string;
13
- updateOperator: {
14
- userName: string;
15
- userId: string;
16
- };
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface OperatorProps extends PConnProps {
4
+ label: string;
5
+ createDateTime: string;
6
+ createLabel: string;
7
+ createOperator: {
8
+ userName: string;
9
+ userId: string;
17
10
  };
11
+ updateDateTime: string;
12
+ updateLabel: string;
13
+ updateOperator: {
14
+ userName: string;
15
+ userId: string;
16
+ };
17
+ displayLabel?: any;
18
18
  }
19
19
  export default function Operator(props: OperatorProps): JSX.Element;
20
20
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":";AAYA,UAAU,aAAa;IAErB,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACrD,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KACrD,CAAA;CACF;AAeD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,eAsKpD"}
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,eAqLpD"}
@@ -1,84 +1,83 @@
1
- import React, { useState } from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React, { useState } from 'react';
2
3
  import TextField from '@material-ui/core/TextField';
3
4
  import Popover from '@material-ui/core/Popover';
4
5
  import Grid from '@material-ui/core/Grid';
5
6
  import Typography from '@material-ui/core/Typography';
6
7
  import { makeStyles } from '@material-ui/core/styles';
7
8
  import Utils from '../../helpers/utils';
8
- const useStyles = makeStyles((theme) => ({
9
+ const useStyles = makeStyles(theme => ({
9
10
  root: {
10
11
  padding: theme.spacing(1),
11
- margin: theme.spacing(1),
12
+ margin: theme.spacing(1)
12
13
  },
13
14
  popover: {
14
15
  padding: theme.spacing(1),
15
- margin: theme.spacing(1),
16
+ margin: theme.spacing(1)
16
17
  }
17
18
  }));
18
19
  export default function Operator(props) {
19
20
  // const componentName = "Operator";
20
- const { caseOpConfig } = props;
21
21
  const classes = useStyles();
22
- const fieldLabel = caseOpConfig.label.toLowerCase();
23
- let caseOpLabel = "---";
24
- let caseOpName = "---";
25
- let caseOpId = "";
26
- let caseTime = "";
27
- if (fieldLabel === "create operator") {
28
- caseOpLabel = caseOpConfig.createLabel;
29
- caseOpName = caseOpConfig.createOperator.userName;
30
- caseTime = caseOpConfig.createDateTime;
31
- caseOpId = caseOpConfig.createOperator.userId;
22
+ const fieldLabel = props?.label?.toLowerCase();
23
+ const displayLabel = props?.displayLabel?.toLowerCase();
24
+ let caseOpLabel = '---';
25
+ let caseOpName = '---';
26
+ let caseOpId = '';
27
+ let caseTime = '';
28
+ if (fieldLabel === 'create operator' || displayLabel === 'create operator') {
29
+ caseOpLabel = props.createLabel;
30
+ caseOpName = props.createOperator.userName;
31
+ caseTime = props.createDateTime;
32
+ caseOpId = props.createOperator.userId;
32
33
  }
33
- else if (fieldLabel === "update operator") {
34
- caseOpLabel = caseOpConfig.updateLabel;
35
- caseOpName = caseOpConfig.updateOperator.userName;
36
- caseTime = caseOpConfig.updateDateTime;
37
- caseOpId = caseOpConfig.updateOperator.userId;
34
+ else if (fieldLabel === 'update operator' || displayLabel === 'update operator') {
35
+ caseOpLabel = props.updateLabel;
36
+ caseOpName = props.updateOperator.userName;
37
+ caseTime = props.updateDateTime;
38
+ caseOpId = props.updateOperator.userId;
38
39
  }
39
40
  // Popover-related
40
41
  const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);
41
42
  const [popoverFields, setPopoverFields] = useState([]);
42
43
  const popoverOpen = Boolean(popoverAnchorEl);
43
44
  const popoverId = popoverOpen ? 'operator-details-popover' : undefined;
44
- const handlePopoverClose = (() => {
45
+ const handlePopoverClose = () => {
45
46
  setPopoverAnchorEl(null);
46
- });
47
+ };
47
48
  function showOperatorDetails(event) {
48
49
  const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);
49
50
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
50
51
  const localeCategory = 'Operator';
51
52
  operatorPreviewPromise.then((res) => {
52
- const fillerString = "---";
53
+ const fillerString = '---';
53
54
  let fields = [];
54
- if (res.data &&
55
- res.data.pyOperatorInfo &&
56
- res.data.pyOperatorInfo.pyUserName) {
55
+ if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {
57
56
  fields = [
58
57
  {
59
- id: "pyPosition",
60
- name: localizedVal("Position", localeCategory),
58
+ id: 'pyPosition',
59
+ name: localizedVal('Position', localeCategory),
61
60
  value: res.data.pyOperatorInfo.pyPosition ? res.data.pyOperatorInfo.pyPosition : fillerString
62
61
  },
63
62
  {
64
- id: "pyOrganization",
65
- name: localizedVal("Organization", localeCategory),
63
+ id: 'pyOrganization',
64
+ name: localizedVal('Organization', localeCategory),
66
65
  value: res.data.pyOperatorInfo.pyOrganization ? res.data.pyOperatorInfo.pyOrganization : fillerString
67
66
  },
68
67
  {
69
- id: "ReportToUserName",
68
+ id: 'ReportToUserName',
70
69
  name: localizedVal('Reports to', localeCategory),
71
70
  value: res.data.pyOperatorInfo.pyReportToUserName ? res.data.pyOperatorInfo.pyReportToUserName : fillerString
72
71
  },
73
72
  {
74
- id: "pyTelephone",
73
+ id: 'pyTelephone',
75
74
  name: localizedVal('Telephone', localeCategory),
76
- value: res.data.pyOperatorInfo.pyTelephone ? React.createElement("a", { href: `tel:${res.data.pyOperatorInfo.pyTelephone}` }, res.data.pyOperatorInfo.pyTelephone) : fillerString
75
+ value: res.data.pyOperatorInfo.pyTelephone ? (_jsx("a", { href: `tel:${res.data.pyOperatorInfo.pyTelephone}`, children: res.data.pyOperatorInfo.pyTelephone })) : (fillerString)
77
76
  },
78
77
  {
79
- id: "pyEmailAddress",
78
+ id: 'pyEmailAddress',
80
79
  name: localizedVal('Email address', localeCategory),
81
- value: res.data.pyOperatorInfo.pyEmailAddress ? React.createElement("a", { href: `mailto:${res.data.pyOperatorInfo.pyEmailAddress}` }, res.data.pyOperatorInfo.pyEmailAddress) : fillerString
80
+ value: res.data.pyOperatorInfo.pyEmailAddress ? (_jsx("a", { href: `mailto:${res.data.pyOperatorInfo.pyEmailAddress}`, children: res.data.pyOperatorInfo.pyEmailAddress })) : (fillerString)
82
81
  }
83
82
  ];
84
83
  }
@@ -87,27 +86,27 @@ export default function Operator(props) {
87
86
  console.log(`Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`);
88
87
  fields = [
89
88
  {
90
- id: "pyPosition",
91
- name: localizedVal("Position", localeCategory),
89
+ id: 'pyPosition',
90
+ name: localizedVal('Position', localeCategory),
92
91
  value: fillerString
93
92
  },
94
93
  {
95
- id: "pyOrganization",
96
- name: localizedVal("Organization", localeCategory),
94
+ id: 'pyOrganization',
95
+ name: localizedVal('Organization', localeCategory),
97
96
  value: fillerString
98
97
  },
99
98
  {
100
- id: "ReportToUserName",
99
+ id: 'ReportToUserName',
101
100
  name: localizedVal('Reports to', localeCategory),
102
101
  value: fillerString
103
102
  },
104
103
  {
105
- id: "pyTelephone",
104
+ id: 'pyTelephone',
106
105
  name: localizedVal('Telephone', localeCategory),
107
106
  value: fillerString
108
107
  },
109
108
  {
110
- id: "pyEmailAddress",
109
+ id: 'pyEmailAddress',
111
110
  name: localizedVal('Email address', localeCategory),
112
111
  value: fillerString
113
112
  }
@@ -126,27 +125,15 @@ export default function Operator(props) {
126
125
  return;
127
126
  }
128
127
  // There are fields, so build the grid.
129
- return React.createElement(Grid, { container: true, className: classes.popover, spacing: 1 },
130
- React.createElement(Grid, { item: true, xs: 12 },
131
- React.createElement(Typography, { variant: "h6" }, caseOpName)),
132
- popoverFields.map((field) => {
133
- return React.createElement(React.Fragment, { key: field.id },
134
- React.createElement(Grid, { container: true, item: true, xs: 12, spacing: 1 },
135
- React.createElement(Grid, { item: true, xs: 6 },
136
- React.createElement(Typography, { variant: "caption" }, field.name)),
137
- React.createElement(Grid, { item: true, xs: 6 },
138
- React.createElement(Typography, { variant: "subtitle2" }, field.value))));
139
- }));
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));
130
+ })] }));
140
131
  }
141
132
  // End of popover-related
142
- return React.createElement(React.Fragment, null,
143
- React.createElement(TextField, { defaultValue: caseOpName, label: caseOpLabel, onClick: showOperatorDetails, InputProps: {
144
- readOnly: true,
145
- disableUnderline: true,
146
- inputProps: { style: { cursor: 'pointer' } }
147
- } }),
148
- React.createElement("br", null),
149
- Utils.generateDateTime(caseTime, "DateTime-Since"),
150
- React.createElement(Popover, { id: popoverId, open: popoverOpen, anchorEl: popoverAnchorEl, onClose: handlePopoverClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, PaperProps: { style: { maxWidth: '45ch' } } }, getPopoverGrid()));
133
+ return (_jsxs(_Fragment, { children: [_jsx(TextField, { 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() })] }));
151
138
  }
152
139
  //# 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,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAmBxC,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACvC,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;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AAc,CAAO,CAC9E,CACQ,CAAA;YACnB,CAAC,CAAC,CACG,CAAA;IAET,CAAC;IAED,yBAAyB;IAEzB,OAAO,oBAAC,KAAK,CAAC,QAAQ;QAClB,oBAAC,SAAS,IACR,YAAY,EAAE,UAAU,EACxB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,gBAAgB,EAAE,IAAI;gBACtB,UAAU,EAAE,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,SAAS,EAAC,EAAC;aACzC,GACD;QACF,+BAAM;QACL,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC;QAEnD,oBAAC,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,EAAC,EACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAC,EACzD,UAAU,EAAE,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,EAAC,IAEvC,cAAc,EAAE,CACT,CACK,CAAC;AAEtB,CAAC","sourcesContent":["import React, {useState} from \"react\";\nimport TextField from '@material-ui/core/TextField';\nimport Popover from '@material-ui/core/Popover';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\n\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport Utils from '../../helpers/utils';\n\n// Operator is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface OperatorProps{\n // If any, enter additional props that only exist on this component\n caseOpConfig: {\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 }\n}\n\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 { caseOpConfig } = props;\n const classes = useStyles();\n\n const fieldLabel = caseOpConfig.label.toLowerCase();\n let caseOpLabel = \"---\";\n let caseOpName = \"---\";\n let caseOpId = \"\";\n let caseTime = \"\";\n\n if (fieldLabel === \"create operator\") {\n caseOpLabel = caseOpConfig.createLabel;\n caseOpName = caseOpConfig.createOperator.userName;\n caseTime = caseOpConfig.createDateTime;\n caseOpId = caseOpConfig.createOperator.userId;\n } else if (fieldLabel === \"update operator\") {\n caseOpLabel = caseOpConfig.updateLabel;\n caseOpName = caseOpConfig.updateOperator.userName;\n caseTime = caseOpConfig.updateDateTime;\n caseOpId = caseOpConfig.updateOperator.userId;\n }\n\n // Popover-related\n const [popoverAnchorEl, setPopoverAnchorEl] = useState(null);\n const [popoverFields, setPopoverFields] = useState<Array<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\n const operatorPreviewPromise = PCore.getUserApi().getOperatorDetails(caseOpId);\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Operator';\n\n operatorPreviewPromise.then((res) => {\n const fillerString = \"---\";\n let fields: any = [];\n if (\n res.data &&\n res.data.pyOperatorInfo &&\n res.data.pyOperatorInfo.pyUserName\n ) {\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 ? <a href={`tel:${res.data.pyOperatorInfo.pyTelephone}`}>{res.data.pyOperatorInfo.pyTelephone}</a> : fillerString\n },\n {\n id: \"pyEmailAddress\",\n name: localizedVal('Email address', localeCategory),\n value: res.data.pyOperatorInfo.pyEmailAddress ? <a href={`mailto:${res.data.pyOperatorInfo.pyEmailAddress}`}>{res.data.pyOperatorInfo.pyEmailAddress}</a> : fillerString\n }\n ];\n } else {\n // eslint-disable-next-line no-console\n console.log(`Operator: PCore.getUserApi().getOperatorDetails(${caseOpId}); returned empty res.data.pyOperatorInfo.pyUserName - adding default`);\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 <Grid container className={classes.popover} spacing={1}>\n <Grid item xs={12}><Typography variant=\"h6\">{caseOpName}</Typography></Grid>\n {popoverFields.map((field) => {\n return <React.Fragment key={field.id}>\n <Grid container item xs={12} spacing={1}>\n <Grid item xs={6}><Typography variant=\"caption\">{field.name}</Typography></Grid>\n <Grid item xs={6}><Typography variant=\"subtitle2\">{field.value}</Typography></Grid>\n </Grid>\n </React.Fragment>\n })}\n </Grid>\n\n }\n\n // End of popover-related\n\n return <React.Fragment>\n <TextField\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 </React.Fragment>;\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,6BAA6B,CAAC;AACpD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,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,MA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,EAAE,EAAE,CAAC,YACd,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,YAAE,KAAK,CAAC,KAAK,GAAc,GACrD,IACF,IARY,KAAK,CAAC,EAAE,CASZ,CAClB,CAAC;gBACJ,CAAC,CAAC,IACG,CACR,CAAC;IACJ,CAAC;IAED,yBAAyB;IAEzB,OAAO,CACL,8BACE,KAAC,SAAS,IACR,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 '@material-ui/core/TextField';\nimport Popover from '@material-ui/core/Popover';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\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 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,7 +1,6 @@
1
- /// <reference types="react" />
1
+ import { PropsWithChildren } from 'react';
2
2
  interface PulseProps {
3
- children?: Array<any>;
4
3
  }
5
- export default function Pulse(props: PulseProps): JSX.Element;
4
+ export default function Pulse(props: PropsWithChildren<PulseProps>): JSX.Element;
6
5
  export {};
7
6
  //# sourceMappingURL=Pulse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":";AAMA,UAAU,UAAU;IAElB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;CACtB;AAYD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,eAa9C"}
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,eAajE"}
@@ -1,21 +1,18 @@
1
- import React from "react";
2
- import { Card, CardContent, CardHeader, Typography } from "@material-ui/core";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card, CardContent, CardHeader, Typography } from '@material-ui/core';
3
3
  import { makeStyles } from '@material-ui/core/styles';
4
- const useStyles = makeStyles((theme) => ({
4
+ const useStyles = makeStyles(theme => ({
5
5
  root: {
6
6
  marginTop: theme.spacing(1),
7
7
  marginBottom: theme.spacing(1),
8
- borderLeft: "6px solid",
8
+ borderLeft: '6px solid',
9
9
  borderLeftColor: theme.palette.primary.light
10
- },
10
+ }
11
11
  }));
12
12
  export default function Pulse(props) {
13
- // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
14
  const { children } = props;
15
15
  const classes = useStyles();
16
- return (React.createElement(Card, { className: classes.root },
17
- React.createElement(CardHeader, { title: React.createElement(Typography, { variant: "h6" }, "Pulse") }),
18
- React.createElement(CardContent, null,
19
- React.createElement(Typography, null, "Pulse"))));
16
+ return (_jsxs(Card, { className: classes.root, children: [_jsx(CardHeader, { title: _jsx(Typography, { variant: 'h6', children: "Pulse" }) }), _jsx(CardContent, { children: _jsx(Typography, { children: "Pulse" }) })] }));
20
17
  }
21
18
  //# sourceMappingURL=Pulse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAUtD,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACvC,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,KAAiB;IAC7C,6EAA6E;IAC7E,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,OAAO,CACH,oBAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI;QAC3B,oBAAC,UAAU,IAAC,KAAK,EAAE,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,YAAmB,GAAI;QAClE,oBAAC,WAAW;YACV,oBAAC,UAAU,gBAAmB,CAClB,CACT,CACR,CAAC;AACN,CAAC","sourcesContent":["import React from \"react\";\nimport { Card, CardContent, CardHeader, Typography } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\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 children?: Array<any>\n}\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: PulseProps) {\n // eslint-disable-next-line no-unused-vars, @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,mBAAmB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAQtD,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 '@material-ui/core';\nimport { makeStyles } from '@material-ui/core/styles';\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;AAc1C,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,qFAwFlB,CAAC;AAEH,eAAe,cAAc,CAAC"}