@pega/react-sdk-components 8.23.11 → 23.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +7 -10
  2. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  3. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +0 -7
  4. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  5. package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
  6. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  7. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  8. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
  9. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  10. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +3 -7
  11. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  12. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
  13. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +1 -8
  15. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  16. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +6 -2
  17. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  18. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -3
  19. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  20. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
  21. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +3 -3
  23. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  24. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
  25. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +3 -3
  27. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  28. package/lib/components/designSystemExtension/Operator/Operator.d.ts +17 -7
  29. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  30. package/lib/components/designSystemExtension/Operator/Operator.js +1 -6
  31. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  32. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -1
  33. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  34. package/lib/components/designSystemExtension/Pulse/Pulse.js +3 -6
  35. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  36. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
  37. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  38. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +77 -0
  39. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
  40. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
  41. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
  42. package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
  43. package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
  44. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
  45. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  46. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  47. package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
  48. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  49. package/lib/components/field/AutoComplete/AutoComplete.js +18 -16
  50. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  51. package/lib/components/field/CancelAlert/CancelAlert.d.ts +7 -2
  52. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  53. package/lib/components/field/CancelAlert/CancelAlert.js +3 -3
  54. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  55. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  56. package/lib/components/field/Checkbox/Checkbox.js +35 -7
  57. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  58. package/lib/components/field/Currency/Currency.d.ts +6 -1
  59. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  60. package/lib/components/field/Currency/Currency.js +12 -12
  61. package/lib/components/field/Currency/Currency.js.map +1 -1
  62. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  63. package/lib/components/field/Currency/currency-utils.js +1 -1
  64. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  65. package/lib/components/field/Date/Date.d.ts +5 -1
  66. package/lib/components/field/Date/Date.d.ts.map +1 -1
  67. package/lib/components/field/Date/Date.js +9 -7
  68. package/lib/components/field/Date/Date.js.map +1 -1
  69. package/lib/components/field/DateTime/DateTime.d.ts +5 -1
  70. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  71. package/lib/components/field/DateTime/DateTime.js +15 -9
  72. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  73. package/lib/components/field/Decimal/Decimal.d.ts +8 -1
  74. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  75. package/lib/components/field/Decimal/Decimal.js +11 -10
  76. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  77. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  78. package/lib/components/field/Dropdown/Dropdown.js +26 -12
  79. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  80. package/lib/components/field/Email/Email.d.ts +5 -1
  81. package/lib/components/field/Email/Email.d.ts.map +1 -1
  82. package/lib/components/field/Email/Email.js +7 -5
  83. package/lib/components/field/Email/Email.js.map +1 -1
  84. package/lib/components/field/Integer/Integer.d.ts +5 -1
  85. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  86. package/lib/components/field/Integer/Integer.js +6 -4
  87. package/lib/components/field/Integer/Integer.js.map +1 -1
  88. package/lib/components/field/Percentage/Percentage.d.ts +5 -1
  89. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  90. package/lib/components/field/Percentage/Percentage.js +6 -4
  91. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  92. package/lib/components/field/Phone/Phone.d.ts +5 -1
  93. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  94. package/lib/components/field/Phone/Phone.js +8 -6
  95. package/lib/components/field/Phone/Phone.js.map +1 -1
  96. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  97. package/lib/components/field/RadioButtons/RadioButtons.js +21 -14
  98. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  99. package/lib/components/field/RichText/RichText.d.ts +7 -0
  100. package/lib/components/field/RichText/RichText.d.ts.map +1 -0
  101. package/lib/components/field/RichText/RichText.js +53 -0
  102. package/lib/components/field/RichText/RichText.js.map +1 -0
  103. package/lib/components/field/RichText/index.d.ts +2 -0
  104. package/lib/components/field/RichText/index.d.ts.map +1 -0
  105. package/lib/components/field/RichText/index.js +2 -0
  106. package/lib/components/field/RichText/index.js.map +1 -0
  107. package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
  108. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
  109. package/lib/components/field/ScalarList/ScalarList.js +34 -0
  110. package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
  111. package/lib/components/field/ScalarList/index.d.ts +2 -0
  112. package/lib/components/field/ScalarList/index.d.ts.map +1 -0
  113. package/lib/components/field/ScalarList/index.js +2 -0
  114. package/lib/components/field/ScalarList/index.js.map +1 -0
  115. package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
  116. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  117. package/lib/components/field/SemanticLink/SemanticLink.js +10 -14
  118. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  119. package/lib/components/field/TextArea/TextArea.d.ts +6 -1
  120. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  121. package/lib/components/field/TextArea/TextArea.js +5 -3
  122. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  123. package/lib/components/field/TextContent/TextContent.d.ts +7 -1
  124. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  125. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  126. package/lib/components/field/TextInput/TextInput.d.ts +6 -1
  127. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  128. package/lib/components/field/TextInput/TextInput.js +7 -5
  129. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  130. package/lib/components/field/Time/Time.d.ts +5 -1
  131. package/lib/components/field/Time/Time.d.ts.map +1 -1
  132. package/lib/components/field/Time/Time.js +10 -8
  133. package/lib/components/field/Time/Time.js.map +1 -1
  134. package/lib/components/field/URL/URL.d.ts +5 -1
  135. package/lib/components/field/URL/URL.d.ts.map +1 -1
  136. package/lib/components/field/URL/URL.js +6 -4
  137. package/lib/components/field/URL/URL.js.map +1 -1
  138. package/lib/components/field/UserReference/UserReference.d.ts +19 -40
  139. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  140. package/lib/components/field/UserReference/UserReference.js +16 -45
  141. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  142. package/lib/components/helpers/attachmentHelpers.d.ts +3 -3
  143. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  144. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  145. package/lib/components/helpers/auth.d.ts +8 -6
  146. package/lib/components/helpers/auth.d.ts.map +1 -1
  147. package/lib/components/helpers/auth.js +642 -327
  148. package/lib/components/helpers/auth.js.map +1 -1
  149. package/lib/components/helpers/authManager.d.ts +20 -17
  150. package/lib/components/helpers/authManager.d.ts.map +1 -1
  151. package/lib/components/helpers/authManager.js +711 -439
  152. package/lib/components/helpers/authManager.js.map +1 -1
  153. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  154. package/lib/components/helpers/case-utils.js +5 -4
  155. package/lib/components/helpers/case-utils.js.map +1 -1
  156. package/lib/components/helpers/common-utils.d.ts +1 -1
  157. package/lib/components/helpers/common-utils.js.map +1 -1
  158. package/lib/components/helpers/config_access.d.ts.map +1 -1
  159. package/lib/components/helpers/config_access.js +0 -63
  160. package/lib/components/helpers/config_access.js.map +1 -1
  161. package/lib/components/helpers/date-format-utils.d.ts +1 -6
  162. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  163. package/lib/components/helpers/date-format-utils.js.map +1 -1
  164. package/lib/components/helpers/event-utils.d.ts +1 -1
  165. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  166. package/lib/components/helpers/event-utils.js.map +1 -1
  167. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  168. package/lib/components/helpers/field-group-utils.js +4 -8
  169. package/lib/components/helpers/field-group-utils.js.map +1 -1
  170. package/lib/components/helpers/formatters/Currency.d.ts +6 -6
  171. package/lib/components/helpers/formatters/Currency.js +2 -2
  172. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  173. package/lib/components/helpers/formatters/CurrencyMap.d.ts +69 -320
  174. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  175. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  176. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  177. package/lib/components/helpers/formatters/Date.js.map +1 -1
  178. package/lib/components/helpers/formatters/common.d.ts +1 -1
  179. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  180. package/lib/components/helpers/formatters/common.js.map +1 -1
  181. package/lib/components/helpers/formatters/index.d.ts +11 -11
  182. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  183. package/lib/components/helpers/formatters/index.js.map +1 -1
  184. package/lib/components/helpers/simpleTableHelpers.d.ts +3 -1
  185. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  186. package/lib/components/helpers/simpleTableHelpers.js +5 -3
  187. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  188. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  189. package/lib/components/helpers/state-utils.js.map +1 -1
  190. package/lib/components/helpers/template-utils.d.ts +7 -3
  191. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  192. package/lib/components/helpers/template-utils.js +1 -0
  193. package/lib/components/helpers/template-utils.js.map +1 -1
  194. package/lib/components/helpers/versionHelpers.d.ts +6 -0
  195. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  196. package/lib/components/helpers/versionHelpers.js +6 -0
  197. package/lib/components/helpers/versionHelpers.js.map +1 -1
  198. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
  199. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  200. package/lib/components/infra/ActionButtons/ActionButtons.js +1 -13
  201. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  202. package/lib/components/infra/Assignment/Assignment.d.ts +1 -16
  203. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  204. package/lib/components/infra/Assignment/Assignment.js +23 -23
  205. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  206. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +8 -14
  207. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  208. package/lib/components/infra/AssignmentCard/AssignmentCard.js +3 -16
  209. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  210. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -21
  211. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  212. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +41 -48
  213. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  214. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  215. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  216. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -17
  217. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  218. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +4 -15
  219. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  220. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
  221. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  222. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +9 -22
  223. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  224. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -19
  225. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  226. package/lib/components/infra/DashboardFilter/DashboardFilter.js +2 -16
  227. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  228. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  229. package/lib/components/infra/DashboardFilter/filterUtils.js +1 -1
  230. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  231. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +1 -14
  232. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  233. package/lib/components/infra/DeferLoad/DeferLoad.js +13 -15
  234. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  235. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
  236. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  237. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +3 -13
  238. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  239. package/lib/components/infra/MultiStep/MultiStep.d.ts +11 -17
  240. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  241. package/lib/components/infra/MultiStep/MultiStep.js +4 -18
  242. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  243. package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
  244. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  245. package/lib/components/infra/NavBar/NavBar.js +3 -16
  246. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  247. package/lib/components/infra/Reference/Reference.d.ts +1 -18
  248. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  249. package/lib/components/infra/Reference/Reference.js +11 -16
  250. package/lib/components/infra/Reference/Reference.js.map +1 -1
  251. package/lib/components/infra/Region/Region.d.ts +4 -7
  252. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  253. package/lib/components/infra/Region/Region.js +0 -4
  254. package/lib/components/infra/Region/Region.js.map +1 -1
  255. package/lib/components/infra/RootContainer/RootContainer.d.ts +1 -21
  256. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  257. package/lib/components/infra/RootContainer/RootContainer.js +4 -21
  258. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  259. package/lib/components/infra/Stages/Stages.d.ts +5 -8
  260. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  261. package/lib/components/infra/Stages/Stages.js +1 -6
  262. package/lib/components/infra/Stages/Stages.js.map +1 -1
  263. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  264. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  265. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
  266. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  267. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +4 -9
  268. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  269. package/lib/components/infra/View/View.d.ts +13 -16
  270. package/lib/components/infra/View/View.d.ts.map +1 -1
  271. package/lib/components/infra/View/View.js +4 -21
  272. package/lib/components/infra/View/View.js.map +1 -1
  273. package/lib/components/template/AppShell/AppShell.d.ts +20 -15
  274. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  275. package/lib/components/template/AppShell/AppShell.js +10 -22
  276. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  277. package/lib/components/template/BannerPage/BannerPage.d.ts +11 -23
  278. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  279. package/lib/components/template/BannerPage/BannerPage.js +4 -22
  280. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  281. package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -7
  282. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  283. package/lib/components/template/CaseSummary/CaseSummary.js +6 -6
  284. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  285. package/lib/components/template/CaseView/CaseView.d.ts +10 -22
  286. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  287. package/lib/components/template/CaseView/CaseView.js +8 -21
  288. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  289. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -15
  290. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  291. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +0 -12
  292. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  293. package/lib/components/template/Confirmation/Confirmation.d.ts +10 -16
  294. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  295. package/lib/components/template/Confirmation/Confirmation.js +12 -23
  296. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  297. package/lib/components/template/DataReference/DataReference.d.ts +15 -30
  298. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  299. package/lib/components/template/DataReference/DataReference.js +25 -48
  300. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  301. package/lib/components/template/DefaultForm/DefaultForm.d.ts +1 -11
  302. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  303. package/lib/components/template/DefaultForm/DefaultForm.js +9 -10
  304. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  305. package/lib/components/template/Details/Details/Details.d.ts +1 -16
  306. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  307. package/lib/components/template/Details/Details/Details.js +10 -15
  308. package/lib/components/template/Details/Details/Details.js.map +1 -1
  309. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -15
  310. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  311. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +1 -13
  312. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  313. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -16
  314. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  315. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +14 -16
  316. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  317. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -16
  318. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  319. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +14 -16
  320. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  321. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +4 -0
  322. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
  323. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +56 -0
  324. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
  325. package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
  326. package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
  327. package/lib/components/template/Details/DynamicTabs/index.js +2 -0
  328. package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
  329. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
  330. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  331. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +7 -21
  332. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  333. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -7
  334. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  335. package/lib/components/template/InlineDashboard/InlineDashboard.js +0 -5
  336. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  337. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -15
  338. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  339. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +6 -15
  340. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  341. package/lib/components/template/ListPage/ListPage.d.ts +5 -13
  342. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  343. package/lib/components/template/ListPage/ListPage.js +6 -10
  344. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  345. package/lib/components/template/ListView/ListView.d.ts +1 -9
  346. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  347. package/lib/components/template/ListView/ListView.js +177 -192
  348. package/lib/components/template/ListView/ListView.js.map +1 -1
  349. package/lib/components/template/ListView/utils.d.ts +44 -0
  350. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  351. package/lib/components/template/ListView/utils.js +142 -1
  352. package/lib/components/template/ListView/utils.js.map +1 -1
  353. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
  354. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  355. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +2 -13
  356. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  357. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +10 -1
  358. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  359. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  360. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -16
  361. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  362. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +14 -16
  363. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  364. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +5 -1
  365. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  366. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  367. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +7 -14
  368. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  369. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +4 -13
  370. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  371. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -7
  372. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  373. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +0 -5
  374. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  375. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
  376. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  377. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +3 -6
  378. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  379. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -7
  380. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  381. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +0 -5
  382. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  383. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -15
  384. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  385. package/lib/components/template/PromotedFilters/PromotedFilters.js +15 -11
  386. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  387. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  388. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +57 -5
  389. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  390. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +18 -1
  391. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  392. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +3 -3
  393. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  394. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -29
  395. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  396. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +22 -28
  397. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  398. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
  399. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  400. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -26
  401. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  402. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -10
  403. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  404. package/lib/components/template/SubTabs/SubTabs.js +1 -8
  405. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  406. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  407. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  408. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +5 -11
  409. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  410. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +1 -12
  411. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  412. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
  413. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  414. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +3 -6
  415. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  416. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +5 -11
  417. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  418. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +1 -9
  419. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  420. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +10 -1
  421. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  422. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +1 -1
  423. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  424. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -16
  425. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  426. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +31 -23
  427. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  428. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +5 -1
  429. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  430. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  431. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +7 -14
  432. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  433. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +4 -14
  434. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  435. package/lib/components/template/WssNavBar/WssNavBar.d.ts +17 -1
  436. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  437. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  438. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +8 -17
  439. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  440. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +4 -19
  441. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  442. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  443. package/lib/components/widget/Attachment/Attachment.js +24 -16
  444. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  445. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
  446. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  447. package/lib/components/widget/CaseHistory/CaseHistory.js +4 -8
  448. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  449. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +8 -1
  450. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  451. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  452. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
  453. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  454. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +31 -21
  455. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  456. package/lib/components/widget/Followers/Followers.d.ts +4 -5
  457. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  458. package/lib/components/widget/Followers/Followers.js +3 -10
  459. package/lib/components/widget/Followers/Followers.js.map +1 -1
  460. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  461. package/lib/components/widget/QuickCreate/QuickCreate.js +10 -2
  462. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  463. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +7 -1
  464. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  465. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  466. package/lib/components/widget/SummaryList/SummaryList.d.ts +7 -1
  467. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  468. package/lib/components/widget/SummaryList/SummaryList.js +5 -2
  469. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  470. package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
  471. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  472. package/lib/components/widget/ToDo/ToDo.js +28 -64
  473. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  474. package/lib/doc/KeyReleaseUpdates.md +22 -0
  475. package/lib/hooks/index.d.ts +4 -0
  476. package/lib/hooks/index.d.ts.map +1 -0
  477. package/lib/hooks/index.js +4 -0
  478. package/lib/hooks/index.js.map +1 -0
  479. package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
  480. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
  481. package/lib/hooks/useAfterInitialEffect.js +16 -0
  482. package/lib/hooks/useAfterInitialEffect.js.map +1 -0
  483. package/lib/hooks/useConsolidatedRef.d.ts +9 -0
  484. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
  485. package/lib/hooks/useConsolidatedRef.js +30 -0
  486. package/lib/hooks/useConsolidatedRef.js.map +1 -0
  487. package/lib/hooks/useUID.d.ts +8 -0
  488. package/lib/hooks/useUID.d.ts.map +1 -0
  489. package/lib/hooks/useUID.js +14 -0
  490. package/lib/hooks/useUID.js.map +1 -0
  491. package/lib/index.d.ts +1 -0
  492. package/lib/index.d.ts.map +1 -1
  493. package/lib/index.js +2 -1
  494. package/lib/index.js.map +1 -1
  495. package/lib/sdk-pega-component-map.d.ts +17 -1
  496. package/lib/sdk-pega-component-map.js +17 -1
  497. package/lib/sdk-pega-component-map.js.map +1 -1
  498. package/lib/types/PConnProps.d.ts +42 -0
  499. package/package.json +1 -1
@@ -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,YAAY,CAAC;AACnC,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,CA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AG,EACvB,CAAA;AAED,QAAQ,CAAC,SAAS,GAAG;IACnB,YAAY,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;CAC1C,CAAC","sourcesContent":["import React, {useState} from \"react\";\nimport PropTypes from \"prop-types\";\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\nimport PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';\n\ndeclare const PCore: typeof PCoreType;\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) {\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 = null;\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\nOperator.defaultProps = {\n}\n\nOperator.propTypes = {\n caseOpConfig: PropTypes.object.isRequired,\n};\n"]}
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,CAA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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,3 +1,7 @@
1
1
  /// <reference types="react" />
2
- export default function Pulse(): JSX.Element;
2
+ interface PulseProps {
3
+ children?: Array<any>;
4
+ }
5
+ export default function Pulse(props: PulseProps): JSX.Element;
6
+ export {};
3
7
  //# sourceMappingURL=Pulse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":";AAcA,MAAM,CAAC,OAAO,UAAU,KAAK,gBAY5B"}
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,5 +1,4 @@
1
1
  import React from "react";
2
- // import PropTypes from "prop-types";
3
2
  import { Card, CardContent, CardHeader, Typography } from "@material-ui/core";
4
3
  import { makeStyles } from '@material-ui/core/styles';
5
4
  const useStyles = makeStyles((theme) => ({
@@ -10,15 +9,13 @@ const useStyles = makeStyles((theme) => ({
10
9
  borderLeftColor: theme.palette.primary.light
11
10
  },
12
11
  }));
13
- export default function Pulse( /* props */) {
14
- // const { children } = props;
12
+ export default function Pulse(props) {
13
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
14
+ const { children } = props;
15
15
  const classes = useStyles();
16
16
  return (React.createElement(Card, { className: classes.root },
17
17
  React.createElement(CardHeader, { title: React.createElement(Typography, { variant: "h6" }, "Pulse") }),
18
18
  React.createElement(CardContent, null,
19
19
  React.createElement(Typography, null, "Pulse"))));
20
20
  }
21
- // Pulse.propTypes = {
22
- // children: PropTypes.arrayOf(PropTypes.node).isRequired
23
- // };
24
21
  //# 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,sCAAsC;AACtC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,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,EAAC,WAAW;IACvC,8BAA8B;IAC9B,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;AAED,sBAAsB;AACtB,2DAA2D;AAC3D,KAAK","sourcesContent":["import React from \"react\";\n// import PropTypes from \"prop-types\";\nimport { Card, CardContent, CardHeader, Typography } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\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 */) {\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\n// Pulse.propTypes = {\n// children: PropTypes.arrayOf(PropTypes.node).isRequired\n// };\n"]}
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"]}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface RichTextEditorProps {
3
+ id?: string;
4
+ defaultValue: string;
5
+ label: string;
6
+ labelHidden: boolean;
7
+ info: string;
8
+ testId: string;
9
+ placeholder: string;
10
+ disabled: boolean;
11
+ required: boolean;
12
+ readOnly: boolean;
13
+ error: boolean;
14
+ onBlur: React.EventHandler<any>;
15
+ onChange: React.EventHandler<any>;
16
+ }
17
+ declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<unknown>>;
18
+ export default RichTextEditor;
19
+ //# sourceMappingURL=RichTextEditor.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,77 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { Editor } from '@tinymce/tinymce-react';
3
+ import { FormControl, FormHelperText, InputLabel, makeStyles } from '@material-ui/core';
4
+ import { useAfterInitialEffect, useConsolidatedRef, useUID } from '../../../hooks';
5
+ const useStyles = makeStyles((theme) => ({
6
+ fieldLabel: {
7
+ position: 'relative',
8
+ transform: 'translate(0, 0px) scale(1)',
9
+ marginBottom: '5px',
10
+ color: theme.palette.text.secondary
11
+ }
12
+ }));
13
+ const RichTextEditor = forwardRef(function RichTextEditor(props, ref) {
14
+ const classes = useStyles();
15
+ const uid = useUID();
16
+ const { id = uid, defaultValue, label, labelHidden, info, testId, placeholder, disabled, required, readOnly, error, onBlur, onChange } = props;
17
+ const editorRef = useConsolidatedRef(ref);
18
+ let richTextComponent = null;
19
+ useAfterInitialEffect(() => {
20
+ editorRef?.current.mode.set(readOnly || disabled ? 'readonly' : 'design');
21
+ }, [readOnly, disabled]);
22
+ const filePickerCallback = (cb) => {
23
+ const input = document.createElement('input');
24
+ input.setAttribute('type', 'file');
25
+ input.setAttribute('accept', 'image/*');
26
+ input.addEventListener('change', (e) => {
27
+ const file = e.target.files[0];
28
+ const reader = new FileReader();
29
+ reader.addEventListener('load', () => {
30
+ /*
31
+ Note: Now we need to register the blob in TinyMCEs image blob
32
+ registry. In the next release this part hopefully won't be
33
+ necessary, as we are looking to handle it internally.
34
+ */
35
+ const blobId = `blobid${new Date().getTime()}`;
36
+ const blobCache = editorRef.current.editorUpload.blobCache;
37
+ const base64 = reader.result.split(',')[1];
38
+ const blobInfo = blobCache.create(blobId, file, base64);
39
+ blobCache.add(blobInfo);
40
+ /* call the callback and populate the Title field with the file name */
41
+ cb(blobInfo.blobUri(), { title: file.name });
42
+ });
43
+ reader.readAsDataURL(file);
44
+ });
45
+ input.click();
46
+ };
47
+ if (readOnly) {
48
+ const value = defaultValue || '--';
49
+ // eslint-disable-next-line react/no-danger
50
+ richTextComponent = React.createElement("div", { key: id, id: id, className: "readonly-richtext-editor", dangerouslySetInnerHTML: { __html: value } });
51
+ }
52
+ else {
53
+ richTextComponent = (React.createElement(Editor, { tinymceScriptSrc: "tinymce/tinymce.min.js", onInit: (_evt, editor) => {
54
+ editorRef.current = editor;
55
+ }, id: id, initialValue: defaultValue, disabled: disabled, init: {
56
+ placeholder,
57
+ menubar: false,
58
+ statusbar: false,
59
+ min_height: 130,
60
+ plugins: ['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize'],
61
+ autoresize_bottom_margin: 0,
62
+ toolbar: disabled ? false : 'blocks | bold italic strikethrough | bullist numlist outdent indent | link image',
63
+ toolbar_location: 'bottom',
64
+ content_style: 'body { font-family:Helvetica, Arial,sans-serif; font-size:14px }',
65
+ branding: false,
66
+ paste_data_images: true,
67
+ file_picker_types: 'image',
68
+ file_picker_callback: filePickerCallback
69
+ }, onBlur: onBlur, onEditorChange: onChange }));
70
+ }
71
+ return (React.createElement(FormControl, { "data-test-id": testId, error: error, required: required },
72
+ !labelHidden && (React.createElement(InputLabel, { id: "demo-simple-select-error-label", className: classes.fieldLabel }, label)),
73
+ richTextComponent,
74
+ info && React.createElement(FormHelperText, null, info)));
75
+ });
76
+ export default RichTextEditor;
77
+ //# sourceMappingURL=RichTextEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,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ent":["import React, { forwardRef } from 'react';\nimport { Editor } from '@tinymce/tinymce-react';\nimport { FormControl, FormHelperText, InputLabel, makeStyles } from '@material-ui/core';\nimport { useAfterInitialEffect, useConsolidatedRef, useUID } from '../../../hooks';\n\nconst useStyles = makeStyles((theme) => ({\n fieldLabel: {\n position: 'relative',\n transform: 'translate(0, 0px) scale(1)',\n marginBottom: '5px',\n color: theme.palette.text.secondary\n }\n}));\n\ninterface RichTextEditorProps {\n id?: string;\n defaultValue: string;\n label: string;\n labelHidden: boolean;\n info: string;\n testId: string;\n placeholder: string;\n disabled: boolean;\n required: boolean;\n readOnly: boolean;\n error: boolean;\n onBlur: React.EventHandler<any>;\n onChange: React.EventHandler<any>;\n}\n\nconst RichTextEditor = forwardRef(function RichTextEditor(props: RichTextEditorProps, ref) {\n const classes = useStyles();\n const uid = useUID();\n const { id = uid, defaultValue, label, labelHidden, info, testId, placeholder, disabled, required, readOnly, error, onBlur, onChange } = props;\n\n const editorRef: any = useConsolidatedRef(ref);\n let richTextComponent: any = null;\n\n useAfterInitialEffect(() => {\n editorRef?.current.mode.set(readOnly || disabled ? 'readonly' : 'design');\n }, [readOnly, disabled]);\n\n const filePickerCallback = (cb) => {\n const input = document.createElement('input');\n input.setAttribute('type', 'file');\n input.setAttribute('accept', 'image/*');\n\n input.addEventListener('change', (e: any) => {\n const file = e.target.files[0];\n\n const reader: any = new FileReader();\n reader.addEventListener('load', () => {\n /*\n Note: Now we need to register the blob in TinyMCEs image blob\n registry. In the next release this part hopefully won't be\n necessary, as we are looking to handle it internally.\n */\n const blobId = `blobid${new Date().getTime()}`;\n const blobCache = editorRef.current.editorUpload.blobCache;\n const base64 = reader.result.split(',')[1];\n const blobInfo = blobCache.create(blobId, file, base64);\n blobCache.add(blobInfo);\n\n /* call the callback and populate the Title field with the file name */\n cb(blobInfo.blobUri(), { title: file.name });\n });\n reader.readAsDataURL(file);\n });\n\n input.click();\n };\n\n if (readOnly) {\n const value = defaultValue || '--';\n // eslint-disable-next-line react/no-danger\n richTextComponent = <div key={id} id={id} className=\"readonly-richtext-editor\" dangerouslySetInnerHTML={{ __html: value }} />;\n } else {\n richTextComponent = (\n <Editor\n tinymceScriptSrc=\"tinymce/tinymce.min.js\"\n onInit={(_evt, editor) => {\n editorRef.current = editor;\n }}\n id={id}\n initialValue={defaultValue}\n disabled={disabled}\n init={{\n placeholder,\n menubar: false,\n statusbar: false,\n min_height: 130,\n plugins: ['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize'],\n autoresize_bottom_margin: 0,\n toolbar: disabled ? false : 'blocks | bold italic strikethrough | bullist numlist outdent indent | link image',\n toolbar_location: 'bottom',\n content_style: 'body { font-family:Helvetica, Arial,sans-serif; font-size:14px }',\n branding: false,\n paste_data_images: true,\n file_picker_types: 'image',\n file_picker_callback: filePickerCallback\n }}\n onBlur={onBlur}\n onEditorChange={onChange}\n />\n );\n }\n\n return (\n <FormControl data-test-id={testId} error={error} required={required}>\n {!labelHidden && (\n <InputLabel id=\"demo-simple-select-error-label\" className={classes.fieldLabel}>\n {label}\n </InputLabel>\n )}\n {richTextComponent}\n {info && <FormHelperText>{info}</FormHelperText>}\n </FormControl>\n );\n});\n\nexport default RichTextEditor;\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './RichTextEditor';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './RichTextEditor';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/RichTextEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { default } from './RichTextEditor';\n"]}
@@ -1,4 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import './WssQuickCreate.css';
3
- export default function WssQuickCreate(props: any): JSX.Element;
3
+ interface WssQuickCreateProps {
4
+ heading: string;
5
+ actions?: Array<any>;
6
+ }
7
+ export default function WssQuickCreate(props: WssQuickCreateProps): JSX.Element;
8
+ export {};
4
9
  //# sourceMappingURL=WssQuickCreate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WssQuickCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,KAAA,eAuB3C"}
1
+ {"version":3,"file":"WssQuickCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAC;AAI9B,UAAU,mBAAmB;IAE3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;CACrB;AAGD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAuBhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"WssQuickCreate.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK;IAC1C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEnC,OAAO,CACL;QACE,4BAAI,EAAE,EAAC,qBAAqB,EAAC,SAAS,EAAC,oBAAoB,IAAE,OAAO,CAAM;QAC1E,4BAAI,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,oBAAoB,IAChD,OAAO;YACN,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBACpB,OAAO,CACP,4BAAI,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,KAAK;oBAChD,oBAAC,MAAM,IAAC,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO;wBAC5D,8BAAM,SAAS,EAAC,wBAAwB;4BACrC,OAAO,CAAC,IAAI,IAAI,6BAAK,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,GAAG;4BACtE,kCAAO,OAAO,CAAC,KAAK,CAAQ,CACvB,CACA,CACN,CACJ,CAAC;YACJ,CAAC,CAAC,CACD,CACD,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { Button } from '@material-ui/core';\nimport './WssQuickCreate.css';\n\nexport default function WssQuickCreate(props) {\n const { heading, actions } = props;\n\n return (\n <div>\n <h1 id=\"quick-links-heading\" className='quick-link-heading'>{heading}</h1>\n <ul id=\"quick-links\" className='quick-link-ul-list'>\n {actions &&\n actions.map(element => {\n return (\n <li className='quick-link-list' key={element.label}>\n <Button className='quick-link-button' onClick={element.onClick}>\n <span className='quick-link-button-span'>\n {element.icon && <img className='quick-link-icon' src={element.icon}/>}\n <span>{element.label}</span>\n </span>\n </Button>\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"WssQuickCreate.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,sBAAsB,CAAC;AAW9B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAA0B;IAC/D,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEnC,OAAO,CACL;QACE,4BAAI,EAAE,EAAC,qBAAqB,EAAC,SAAS,EAAC,oBAAoB,IAAE,OAAO,CAAM;QAC1E,4BAAI,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,oBAAoB,IAChD,OAAO;YACN,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBACpB,OAAO,CACP,4BAAI,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,KAAK;oBAChD,oBAAC,MAAM,IAAC,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO;wBAC5D,8BAAM,SAAS,EAAC,wBAAwB;4BACrC,OAAO,CAAC,IAAI,IAAI,6BAAK,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO,CAAC,IAAI,GAAG;4BACtE,kCAAO,OAAO,CAAC,KAAK,CAAQ,CACvB,CACA,CACN,CACJ,CAAC;YACJ,CAAC,CAAC,CACD,CACD,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { Button } from '@material-ui/core';\nimport './WssQuickCreate.css';\n\n// WssQuickCreate is one of the few components that does NOT have getPConnect.\n// So, no need to extend PConnProps\ninterface WssQuickCreateProps {\n // If any, enter additional props that only exist on this component\n heading: string,\n actions?: Array<any>\n}\n\n\nexport default function WssQuickCreate(props: WssQuickCreateProps) {\n const { heading, actions } = props;\n\n return (\n <div>\n <h1 id=\"quick-links-heading\" className='quick-link-heading'>{heading}</h1>\n <ul id=\"quick-links\" className='quick-link-ul-list'>\n {actions &&\n actions.map(element => {\n return (\n <li className='quick-link-list' key={element.label}>\n <Button className='quick-link-button' onClick={element.onClick}>\n <span className='quick-link-button-span'>\n {element.icon && <img className='quick-link-icon' src={element.icon}/>}\n <span>{element.label}</span>\n </span>\n </Button>\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n"]}
@@ -1,3 +1,17 @@
1
1
  /// <reference types="react" />
2
- export default function AutoComplete(props: any): JSX.Element;
2
+ import type { PConnFieldProps } from '../../../types/PConnProps';
3
+ interface AutoCompleteProps extends PConnFieldProps {
4
+ displayMode?: string;
5
+ deferDatasource?: boolean;
6
+ datasourceMetadata?: any;
7
+ status?: string;
8
+ onRecordChange?: any;
9
+ additionalProps?: object;
10
+ listType: string;
11
+ parameters?: any;
12
+ datasource: any;
13
+ columns: Array<any>;
14
+ }
15
+ export default function AutoComplete(props: AutoCompleteProps): JSX.Element;
16
+ export {};
3
17
  //# sourceMappingURL=AutoComplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/field/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":";AAsCA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,KAAA,eAkKzC"}
1
+ {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/field/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AA8BjE,UAAU,iBAAkB,SAAQ,eAAe;IAEjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,EAAE,GAAG,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAuK5D"}
@@ -1,23 +1,22 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { TextField } from '@material-ui/core';
3
3
  import Autocomplete from '@material-ui/lab/Autocomplete';
4
- import Utils from '../../helpers/utils';
5
- import TextInput from '../TextInput';
6
4
  import isDeepEqual from 'fast-deep-equal/react';
5
+ import Utils from '../../helpers/utils';
7
6
  import { getDataPage } from '../../helpers/data_page';
8
7
  import handleEvent from '../../helpers/event-utils';
9
- import FieldValueList from '../../designSystemExtension/FieldValueList';
10
- const preProcessColumns = columnList => {
11
- return columnList.map(col => {
8
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
9
+ const preProcessColumns = (columnList) => {
10
+ return columnList.map((col) => {
12
11
  const tempColObj = { ...col };
13
12
  tempColObj.value = col.value && col.value.startsWith('.') ? col.value.substring(1) : col.value;
14
13
  return tempColObj;
15
14
  });
16
15
  };
17
- const getDisplayFieldsMetaData = columnList => {
18
- const displayColumns = columnList.filter(col => col.display === 'true');
16
+ const getDisplayFieldsMetaData = (columnList) => {
17
+ const displayColumns = columnList.filter((col) => col.display === 'true');
19
18
  const metaDataObj = { key: '', primary: '', secondary: [] };
20
- const keyCol = columnList.filter(col => col.key === 'true');
19
+ const keyCol = columnList.filter((col) => col.key === 'true');
21
20
  metaDataObj.key = keyCol.length > 0 ? keyCol[0].value : 'auto';
22
21
  for (let index = 0; index < displayColumns.length; index += 1) {
23
22
  if (displayColumns[index].primary === 'true') {
@@ -30,6 +29,9 @@ const getDisplayFieldsMetaData = columnList => {
30
29
  return metaDataObj;
31
30
  };
32
31
  export default function AutoComplete(props) {
32
+ // Get emitted components from map (so we can get any override that may exist)
33
+ const TextInput = getComponentFromMap('TextInput');
34
+ const FieldValueList = getComponentFromMap('FieldValueList');
33
35
  const { getPConnect, label, required, placeholder, value = '', validatemessage, readOnly, testId, displayMode, deferDatasource, datasourceMetadata, status, helperText, hideLabel, onRecordChange } = props;
34
36
  const context = getPConnect().getContextName();
35
37
  let { listType, parameters, datasource = [], columns = [] } = props;
@@ -40,14 +42,14 @@ export default function AutoComplete(props) {
40
42
  const helperTextToDisplay = validatemessage || helperText;
41
43
  const thePConn = getPConnect();
42
44
  const actionsApi = thePConn.getActionsApi();
43
- const propName = thePConn.getStateProps().value;
45
+ const propName = thePConn.getStateProps()["value"];
44
46
  if (!isDeepEqual(datasource, theDatasource)) {
45
47
  // inbound datasource is different, so update theDatasource (to trigger useEffect)
46
48
  setDatasource(datasource);
47
49
  }
48
50
  const flattenParameters = (params = {}) => {
49
51
  const flatParams = {};
50
- Object.keys(params).forEach(key => {
52
+ Object.keys(params).forEach((key) => {
51
53
  const { name, value: theVal } = params[key];
52
54
  flatParams[name] = theVal;
53
55
  });
@@ -82,7 +84,7 @@ export default function AutoComplete(props) {
82
84
  columns = preProcessColumns(columns);
83
85
  useEffect(() => {
84
86
  if (listType === 'associated') {
85
- setOptions(Utils.getOptionList(props, getPConnect().getDataObject()));
87
+ setOptions(Utils.getOptionList(props, getPConnect().getDataObject('')));
86
88
  }
87
89
  }, [theDatasource]);
88
90
  useEffect(() => {
@@ -90,7 +92,7 @@ export default function AutoComplete(props) {
90
92
  getDataPage(datasource, parameters, context).then((results) => {
91
93
  const optionsData = [];
92
94
  const displayColumn = getDisplayFieldsMetaData(columns);
93
- results?.forEach(element => {
95
+ results?.forEach((element) => {
94
96
  const val = element[displayColumn.primary]?.toString();
95
97
  const obj = {
96
98
  key: element[displayColumn.key] || element.pyGUID,
@@ -106,10 +108,10 @@ export default function AutoComplete(props) {
106
108
  return React.createElement(FieldValueList, { name: hideLabel ? '' : label, value: value });
107
109
  }
108
110
  if (displayMode === 'STACKED_LARGE_VAL') {
109
- return React.createElement(FieldValueList, { name: hideLabel ? '' : label, value: value, variant: 'stacked' });
111
+ return React.createElement(FieldValueList, { name: hideLabel ? '' : label, value: value, variant: "stacked" });
110
112
  }
111
113
  if (value) {
112
- const index = options?.findIndex(element => element.key === value);
114
+ const index = options?.findIndex((element) => element.key === value);
113
115
  if (index > -1) {
114
116
  selectedValue = options[index].value;
115
117
  }
@@ -128,7 +130,7 @@ export default function AutoComplete(props) {
128
130
  setInputValue(newInputValue);
129
131
  };
130
132
  if (readOnly) {
131
- const theValAsString = options?.find(opt => opt.key === value)?.value;
133
+ const theValAsString = options?.find((opt) => opt.key === value)?.value;
132
134
  return React.createElement(TextInput, { ...props, value: theValAsString });
133
135
  }
134
136
  // Need to use both getOptionLabel and getOptionSelected to map our
@@ -137,6 +139,6 @@ export default function AutoComplete(props) {
137
139
  return option.value ? option.value : '';
138
140
  }, getOptionSelected: (option) => {
139
141
  return option.value ? option.value : '';
140
- }, fullWidth: true, onChange: handleChange, value: selectedValue, inputValue: inputValue || selectedValue, onInputChange: handleInputValue, renderInput: params => (React.createElement(TextField, { ...params, fullWidth: true, variant: 'outlined', helperText: helperTextToDisplay, placeholder: placeholder, size: 'small', required: required, error: status === 'error', label: label, "data-test-id": testId })) }));
142
+ }, fullWidth: true, onChange: handleChange, value: selectedValue, inputValue: inputValue || selectedValue, onInputChange: handleInputValue, renderInput: (params) => (React.createElement(TextField, { ...params, fullWidth: true, variant: "outlined", helperText: helperTextToDisplay, placeholder: placeholder, size: "small", required: required, error: status === 'error', label: label, "data-test-id": testId })) }));
141
143
  }
142
144
  //# sourceMappingURL=AutoComplete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoComplete.js","sourceRoot":"","sources":["../../../../src/components/field/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,cAAc,MAAM,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OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,CAAC,MAAe,EAAE,EAAE;YAClC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1C,CAAC,EACD,iBAAiB,EAAE,CAAC,MAAW,EAAE,EAAE;YACjC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1C,CAAC,EACD,SAAS,QACT,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,UAAU,IAAI,aAAa,EACvC,aAAa,EAAE,gBAAgB,EAC/B,WAAW,EAAE,MAAM,CAAC,EAAE,CAAC,CACrB,oBAAC,SAAS,OACJ,MAAM,EACV,SAAS,QACT,OAAO,EAAC,UAAU,EAClB,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,KAAK,OAAO,EACzB,KAAK,EAAE,KAAK,kBACE,MAAM,GACpB,CACH,GACD,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { TextField } from '@material-ui/core';\nimport Autocomplete from '@material-ui/lab/Autocomplete';\nimport Utils from '../../helpers/utils';\nimport TextInput from '../TextInput';\nimport isDeepEqual from 'fast-deep-equal/react';\nimport { getDataPage } from '../../helpers/data_page';\nimport handleEvent from '../../helpers/event-utils';\nimport FieldValueList from '../../designSystemExtension/FieldValueList';\n\ninterface IOption {\n key: string;\n value: string;\n}\n\nconst preProcessColumns = columnList => {\n return columnList.map(col => {\n const tempColObj = { ...col };\n tempColObj.value = col.value && col.value.startsWith('.') ? col.value.substring(1) : col.value;\n return tempColObj;\n });\n};\n\nconst getDisplayFieldsMetaData = columnList => {\n const displayColumns = columnList.filter(col => col.display === 'true');\n const metaDataObj: any = { key: '', primary: '', secondary: [] };\n const keyCol = columnList.filter(col => col.key === 'true');\n metaDataObj.key = keyCol.length > 0 ? keyCol[0].value : 'auto';\n for (let index = 0; index < displayColumns.length; index += 1) {\n if (displayColumns[index].primary === 'true') {\n metaDataObj.primary = displayColumns[index].value;\n } else {\n metaDataObj.secondary.push(displayColumns[index].value);\n }\n }\n return metaDataObj;\n};\n\nexport default function AutoComplete(props) {\n const {\n getPConnect,\n label,\n required,\n placeholder,\n value = '',\n validatemessage,\n readOnly,\n testId,\n displayMode,\n deferDatasource,\n datasourceMetadata,\n status,\n helperText,\n hideLabel,\n onRecordChange\n } = props;\n const context = getPConnect().getContextName();\n let { listType, parameters, datasource = [], columns = [] } = props;\n const [inputValue, setInputValue] = useState('');\n const [options, setOptions] = useState<Array<IOption>>([]);\n const [theDatasource, setDatasource] = useState(null);\n let selectedValue: any = '';\n const helperTextToDisplay = validatemessage || helperText;\n\n const thePConn = getPConnect();\n const actionsApi = thePConn.getActionsApi();\n const propName = thePConn.getStateProps().value;\n\n if (!isDeepEqual(datasource, theDatasource)) {\n // inbound datasource is different, so update theDatasource (to trigger useEffect)\n setDatasource(datasource);\n }\n\n const flattenParameters = (params = {}) => {\n const flatParams = {};\n Object.keys(params).forEach(key => {\n const { name, value: theVal } = params[key];\n flatParams[name] = theVal;\n });\n\n return flatParams;\n };\n\n // convert associated to datapage listtype and transform props\n // Process deferDatasource when datapage name is present. WHhen tableType is promptList / localList\n if (deferDatasource && datasourceMetadata?.datasource?.name) {\n listType = 'datapage';\n datasource = datasourceMetadata.datasource.name;\n parameters = flattenParameters(datasourceMetadata?.datasource?.parameters);\n const displayProp = datasourceMetadata.datasource.propertyForDisplayText.startsWith('@P')\n ? datasourceMetadata.datasource.propertyForDisplayText.substring(3)\n : datasourceMetadata.datasource.propertyForDisplayText;\n const valueProp = datasourceMetadata.datasource.propertyForValue.startsWith('@P')\n ? datasourceMetadata.datasource.propertyForValue.substring(3)\n : datasourceMetadata.datasource.propertyForValue;\n columns = [\n {\n key: 'true',\n setProperty: 'Associated property',\n value: valueProp\n },\n {\n display: 'true',\n primary: 'true',\n useForSearch: true,\n value: displayProp\n }\n ];\n }\n columns = preProcessColumns(columns);\n\n useEffect(() => {\n if (listType === 'associated') {\n setOptions(Utils.getOptionList(props, getPConnect().getDataObject()));\n }\n }, [theDatasource]);\n\n useEffect(() => {\n if (!displayMode && listType !== 'associated') {\n getDataPage(datasource, parameters, context).then((results: any) => {\n const optionsData: Array<any> = [];\n const displayColumn = getDisplayFieldsMetaData(columns);\n results?.forEach(element => {\n const val = element[displayColumn.primary]?.toString();\n const obj = {\n key: element[displayColumn.key] || element.pyGUID,\n value: val\n };\n optionsData.push(obj);\n });\n setOptions(optionsData);\n });\n }\n }, []);\n\n if (displayMode === 'LABELS_LEFT') {\n return <FieldValueList name={hideLabel ? '' : label} value={value} />;\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={value} variant='stacked' />;\n }\n\n if (value) {\n const index = options?.findIndex(element => element.key === value);\n if (index > -1) {\n selectedValue = options[index].value;\n } else {\n selectedValue = value;\n }\n }\n\n const handleChange = (event: object, newValue) => {\n const val = newValue ? newValue.key : '';\n handleEvent(actionsApi, 'changeNblur', propName, val);\n if (onRecordChange) {\n onRecordChange(event);\n }\n };\n\n const handleInputValue = (event, newInputValue) => {\n setInputValue(newInputValue);\n };\n\n if (readOnly) {\n const theValAsString = options?.find(opt => opt.key === value)?.value;\n return <TextInput {...props} value={theValAsString} />;\n }\n // Need to use both getOptionLabel and getOptionSelected to map our\n // key/value structure to what Autocomplete expects\n return (\n <Autocomplete\n options={options}\n getOptionLabel={(option: IOption) => {\n return option.value ? option.value : '';\n }}\n getOptionSelected={(option: any) => {\n return option.value ? option.value : '';\n }}\n fullWidth\n onChange={handleChange}\n value={selectedValue}\n inputValue={inputValue || selectedValue}\n onInputChange={handleInputValue}\n renderInput={params => (\n <TextField\n {...params}\n fullWidth\n variant='outlined'\n helperText={helperTextToDisplay}\n placeholder={placeholder}\n size='small'\n required={required}\n error={status === 'error'}\n label={label}\n data-test-id={testId}\n />\n )}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"AutoComplete.js","sourceRoot":"","sources":["../../../../src/components/field/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAQhF,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAE,EAAE;IACvC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QAC5B,MAAM,UAAU,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;QAC9B,UAAU,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;QAC/F,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAAC,UAAU,EAAE,EAAE;IAC9C,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC;IAC1E,MAAM,WAAW,GAAQ,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C/B,WAAW,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,oBAAC,SAAS,OACJ,MAAM,EACV,SAAS,QACT,OAAO,EAAC,UAAU,EAClB,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,KAAK,OAAO,EACzB,KAAK,EAAE,KAAK,kBACE,MAAM,GACpB,CACH,GACD,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { TextField } from '@material-ui/core';\nimport Autocomplete from '@material-ui/lab/Autocomplete';\nimport isDeepEqual from 'fast-deep-equal/react';\nimport Utils from '../../helpers/utils';\nimport { getDataPage } from '../../helpers/data_page';\nimport handleEvent from '../../helpers/event-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport type { PConnFieldProps } from '../../../types/PConnProps';\n\ninterface IOption {\n key: string;\n value: string;\n}\n\nconst preProcessColumns = (columnList) => {\n return columnList.map((col) => {\n const tempColObj = { ...col };\n tempColObj.value = col.value && col.value.startsWith('.') ? col.value.substring(1) : col.value;\n return tempColObj;\n });\n};\n\nconst getDisplayFieldsMetaData = (columnList) => {\n const displayColumns = columnList.filter((col) => col.display === 'true');\n const metaDataObj: any = { key: '', primary: '', secondary: [] };\n const keyCol = columnList.filter((col) => col.key === 'true');\n metaDataObj.key = keyCol.length > 0 ? keyCol[0].value : 'auto';\n for (let index = 0; index < displayColumns.length; index += 1) {\n if (displayColumns[index].primary === 'true') {\n metaDataObj.primary = displayColumns[index].value;\n } else {\n metaDataObj.secondary.push(displayColumns[index].value);\n }\n }\n return metaDataObj;\n};\n\ninterface AutoCompleteProps extends PConnFieldProps {\n // If any, enter additional props that only exist on AutoComplete here'\n displayMode?: string;\n deferDatasource?: boolean;\n datasourceMetadata?: any;\n status?: string;\n onRecordChange?: any;\n additionalProps?: object;\n listType: string;\n parameters?: any;\n datasource: any;\n columns: Array<any>;\n}\n\nexport default function AutoComplete(props: AutoCompleteProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const TextInput = getComponentFromMap('TextInput');\n const FieldValueList = getComponentFromMap('FieldValueList');\n\n const {\n getPConnect,\n label,\n required,\n placeholder,\n value = '',\n validatemessage,\n readOnly,\n testId,\n displayMode,\n deferDatasource,\n datasourceMetadata,\n status,\n helperText,\n hideLabel,\n onRecordChange\n } = props;\n\n const context = getPConnect().getContextName();\n let { listType, parameters, datasource = [], columns = [] } = props;\n const [inputValue, setInputValue] = useState('');\n const [options, setOptions] = useState<Array<IOption>>([]);\n const [theDatasource, setDatasource] = useState(null);\n let selectedValue: any = '';\n const helperTextToDisplay = validatemessage || helperText;\n\n const thePConn = getPConnect();\n const actionsApi = thePConn.getActionsApi();\n const propName = thePConn.getStateProps()[\"value\"];\n\n if (!isDeepEqual(datasource, theDatasource)) {\n // inbound datasource is different, so update theDatasource (to trigger useEffect)\n setDatasource(datasource);\n }\n\n const flattenParameters = (params = {}) => {\n const flatParams = {};\n Object.keys(params).forEach((key) => {\n const { name, value: theVal } = params[key];\n flatParams[name] = theVal;\n });\n\n return flatParams;\n };\n\n // convert associated to datapage listtype and transform props\n // Process deferDatasource when datapage name is present. WHhen tableType is promptList / localList\n if (deferDatasource && datasourceMetadata?.datasource?.name) {\n listType = 'datapage';\n datasource = datasourceMetadata.datasource.name;\n parameters = flattenParameters(datasourceMetadata?.datasource?.parameters);\n const displayProp = datasourceMetadata.datasource.propertyForDisplayText.startsWith('@P')\n ? datasourceMetadata.datasource.propertyForDisplayText.substring(3)\n : datasourceMetadata.datasource.propertyForDisplayText;\n const valueProp = datasourceMetadata.datasource.propertyForValue.startsWith('@P')\n ? datasourceMetadata.datasource.propertyForValue.substring(3)\n : datasourceMetadata.datasource.propertyForValue;\n columns = [\n {\n key: 'true',\n setProperty: 'Associated property',\n value: valueProp\n },\n {\n display: 'true',\n primary: 'true',\n useForSearch: true,\n value: displayProp\n }\n ];\n }\n columns = preProcessColumns(columns);\n\n useEffect(() => {\n if (listType === 'associated') {\n setOptions(Utils.getOptionList(props, getPConnect().getDataObject('')));\n }\n }, [theDatasource]);\n\n useEffect(() => {\n if (!displayMode && listType !== 'associated') {\n getDataPage(datasource, parameters, context).then((results: any) => {\n const optionsData: Array<any> = [];\n const displayColumn = getDisplayFieldsMetaData(columns);\n results?.forEach((element) => {\n const val = element[displayColumn.primary]?.toString();\n const obj = {\n key: element[displayColumn.key] || element.pyGUID,\n value: val\n };\n optionsData.push(obj);\n });\n setOptions(optionsData);\n });\n }\n }, []);\n\n if (displayMode === 'LABELS_LEFT') {\n return <FieldValueList name={hideLabel ? '' : label} value={value} />;\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={value} variant=\"stacked\" />;\n }\n\n if (value) {\n const index = options?.findIndex((element) => element.key === value);\n if (index > -1) {\n selectedValue = options[index].value;\n } else {\n selectedValue = value;\n }\n }\n\n const handleChange = (event: object, newValue) => {\n const val = newValue ? newValue.key : '';\n handleEvent(actionsApi, 'changeNblur', propName, val);\n if (onRecordChange) {\n onRecordChange(event);\n }\n };\n\n const handleInputValue = (event, newInputValue) => {\n setInputValue(newInputValue);\n };\n\n if (readOnly) {\n const theValAsString = options?.find((opt) => opt.key === value)?.value;\n return <TextInput {...props} value={theValAsString} />;\n }\n // Need to use both getOptionLabel and getOptionSelected to map our\n // key/value structure to what Autocomplete expects\n return (\n <Autocomplete\n options={options}\n getOptionLabel={(option: IOption) => {\n return option.value ? option.value : '';\n }}\n getOptionSelected={(option: any) => {\n return option.value ? option.value : '';\n }}\n fullWidth\n onChange={handleChange}\n value={selectedValue}\n inputValue={inputValue || selectedValue}\n onInputChange={handleInputValue}\n renderInput={(params) => (\n <TextField\n {...params}\n fullWidth\n variant=\"outlined\"\n helperText={helperTextToDisplay}\n placeholder={placeholder}\n size=\"small\"\n required={required}\n error={status === 'error'}\n label={label}\n data-test-id={testId}\n />\n )}\n />\n );\n}\n"]}
@@ -1,5 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import type { PConnFieldProps } from '../../../types/PConnProps';
2
3
  import './CancelAlert.css';
3
- declare const CancelAlert: (props: any) => JSX.Element;
4
- export default CancelAlert;
4
+ interface CancelAlertProps extends PConnFieldProps {
5
+ pConn: any;
6
+ updateAlertState: any;
7
+ }
8
+ export default function CancelAlert(props: CancelAlertProps): JSX.Element;
9
+ export {};
5
10
  //# sourceMappingURL=CancelAlert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CancelAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAIA,OAAO,mBAAmB,CAAC;AAM3B,QAAA,MAAM,WAAW,6BAqHhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"CancelAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,mBAAmB,CAAC;AAM3B,UAAU,gBAAiB,SAAQ,eAAe;IAEhD,KAAK,EAAE,GAAG,CAAC;IACX,gBAAgB,EAAE,GAAG,CAAA;CACtB;AAGD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAqH1D"}
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import { Button, Grid, IconButton, Snackbar } from '@material-ui/core';
3
3
  import CloseIcon from '@material-ui/icons/Close';
4
4
  import './CancelAlert.css';
5
- const CancelAlert = props => {
5
+ export default function CancelAlert(props) {
6
6
  const { pConn, updateAlertState } = props;
7
7
  const [showSnackbar, setShowSnackbar] = useState(false);
8
8
  const [snackbarMessage, setSnackbarMessage] = useState('');
@@ -78,6 +78,6 @@ const CancelAlert = props => {
78
78
  React.createElement(Button, { variant: 'contained', color: 'primary', onClick: () => buttonClick('delete') }, localizedVal('Delete', localeCategory))))))),
79
79
  React.createElement(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: React.createElement(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose },
80
80
  React.createElement(CloseIcon, { fontSize: 'small' })) })));
81
- };
82
- export default CancelAlert;
81
+ }
82
+ ;
83
83
  //# sourceMappingURL=CancelAlert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CancelAlert.js","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,mBAAmB,CAAC;AAM3B,MAAM,WAAW,GAAG,KAAK,CAAC,EAAE;IAC1B,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAC1C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE3D,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;IACvC,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;IACpC,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;IAC5B,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC;IAC3D,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAExC,SAAS,SAAS,CAAC,OAAe;QAChC,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WAAW,CAAC,QAAQ,CAAC,IAC7E,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,CAChC,CACJ,CACF,CACH,CACF,CACF;QACN,oBAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,oBAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB;gBACtF,oBAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,CACnB,GAEf,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport { Button, Grid, IconButton, Snackbar } from '@material-ui/core';\nimport CloseIcon from '@material-ui/icons/Close';\n\nimport './CancelAlert.css';\n\n// Remove this and use \"real\" PCore type once .d.ts is fixed (currently shows 2 errors)\ndeclare const PCore: any;\n\n\nconst CancelAlert = props => {\n const { pConn, updateAlertState } = props;\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n const itemKey = pConn.getContextName();\n const caseInfo = pConn.getCaseInfo();\n const caseName = caseInfo.getName();\n const ID = caseInfo.getID();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'ModalContainer';\n\n function showToast(message: string) {\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n const dismissCancelAlertOnly = () => {\n updateAlertState(true);\n };\n\n const dismissModal = () => {\n updateAlertState(false);\n };\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n const buttonClick = action => {\n const actionsAPI = pConn.getActionsApi();\n\n switch (action) {\n case 'save':\n // eslint-disable-next-line no-case-declarations\n const savePromise = actionsAPI.saveAndClose(itemKey);\n\n savePromise\n .then(() => {\n dismissModal();\n\n PCore.getPubSubUtils().publish(\n PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CASE_CREATED\n );\n })\n .catch(() => {\n showToast(localizedVal('Save failed', localeCategory));\n });\n break;\n\n case 'continue':\n dismissCancelAlertOnly();\n break;\n\n case 'delete':\n // eslint-disable-next-line no-case-declarations\n const deletePromise = actionsAPI.deleteCaseInCreateStage(itemKey);\n\n deletePromise\n .then(() => {\n dismissModal();\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);\n })\n .catch(() => {\n showToast(localizedVal('Delete failed.', localeCategory));\n });\n break;\n\n default:\n break;\n }\n };\n\n return (\n <>\n <div className='cancel-alert-background'>\n <div className='cancel-alert-top'>\n <h3>{`Delete ${caseName}(${ID})`}</h3>\n <div>\n <p>{`${localizedVal('Are you sure you want to delete', localeCategory)} ${caseName} (${ID})?`}</p>\n <p>{localizedVal('Alternatively, you can continue working or save your work for later.', localeCategory)}</p>\n </div>\n <div className='action-controls'>\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>\n <Button variant='outlined' color='primary' onClick={() => buttonClick('save')}>\n {localizedVal('Save for later', localeCategory)}\n </Button>\n </Grid>\n <Grid item>\n <Button variant='outlined' color='primary' onClick={() => buttonClick('continue')}>\n {localizedVal('Continue Working', localeCategory)}\n </Button>\n <Button variant='contained' color='primary' onClick={() => buttonClick('delete')}>\n {localizedVal('Delete', localeCategory)}\n </Button>\n </Grid>\n </Grid>\n </div>\n </div>\n </div>\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n};\n\nexport default CancelAlert;\n"]}
1
+ {"version":3,"file":"CancelAlert.js","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/Canc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AAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,CACnB,GAEf,CACD,CACJ,CAAC;AACJ,CAAC;AAAA,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport { Button, Grid, IconButton, Snackbar } from '@material-ui/core';\nimport CloseIcon from '@material-ui/icons/Close';\nimport type { PConnFieldProps } from '../../../types/PConnProps';\nimport './CancelAlert.css';\n\n// Remove this and use \"real\" PCore type once .d.ts is fixed (currently shows 2 errors)\ndeclare const PCore: any;\n\n\ninterface CancelAlertProps extends PConnFieldProps {\n // If any, enter additional props that only exist on CancelAlert here\n pConn: any,\n updateAlertState: any\n}\n\n\nexport default function CancelAlert(props: CancelAlertProps) {\n const { pConn, updateAlertState } = props;\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n const itemKey = pConn.getContextName();\n const caseInfo = pConn.getCaseInfo();\n const caseName = caseInfo.getName();\n const ID = caseInfo.getID();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'ModalContainer';\n\n function showToast(message: string) {\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n const dismissCancelAlertOnly = () => {\n updateAlertState(true);\n };\n\n const dismissModal = () => {\n updateAlertState(false);\n };\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n const buttonClick = action => {\n const actionsAPI = pConn.getActionsApi();\n\n switch (action) {\n case 'save':\n // eslint-disable-next-line no-case-declarations\n const savePromise = actionsAPI.saveAndClose(itemKey);\n\n savePromise\n .then(() => {\n dismissModal();\n\n PCore.getPubSubUtils().publish(\n PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CASE_CREATED\n );\n })\n .catch(() => {\n showToast(localizedVal('Save failed', localeCategory));\n });\n break;\n\n case 'continue':\n dismissCancelAlertOnly();\n break;\n\n case 'delete':\n // eslint-disable-next-line no-case-declarations\n const deletePromise = actionsAPI.deleteCaseInCreateStage(itemKey);\n\n deletePromise\n .then(() => {\n dismissModal();\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);\n })\n .catch(() => {\n showToast(localizedVal('Delete failed.', localeCategory));\n });\n break;\n\n default:\n break;\n }\n };\n\n return (\n <>\n <div className='cancel-alert-background'>\n <div className='cancel-alert-top'>\n <h3>{`Delete ${caseName}(${ID})`}</h3>\n <div>\n <p>{`${localizedVal('Are you sure you want to delete', localeCategory)} ${caseName} (${ID})?`}</p>\n <p>{localizedVal('Alternatively, you can continue working or save your work for later.', localeCategory)}</p>\n </div>\n <div className='action-controls'>\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>\n <Button variant='outlined' color='primary' onClick={() => buttonClick('save')}>\n {localizedVal('Save for later', localeCategory)}\n </Button>\n </Grid>\n <Grid item>\n <Button variant='outlined' color='primary' onClick={() => buttonClick('continue')}>\n {localizedVal('Continue Working', localeCategory)}\n </Button>\n <Button variant='contained' color='primary' onClick={() => buttonClick('delete')}>\n {localizedVal('Delete', localeCategory)}\n </Button>\n </Grid>\n </Grid>\n </div>\n </div>\n </div>\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAWA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,KAAA,eAqE9C"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAsCA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,KAAA,eA0E9C"}