@pega/react-sdk-components 23.1.12 → 24.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 (300) hide show
  1. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  2. package/lib/bridge/react_pconnect.js +136 -140
  3. package/lib/bridge/react_pconnect.js.map +1 -1
  4. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +1 -2
  5. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  6. package/lib/components/designSystemExtension/Banner/Banner.d.ts +1 -2
  7. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  8. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -2
  9. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  10. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +2 -2
  11. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  12. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -2
  13. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
  15. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  16. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -2
  17. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  18. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +1 -2
  19. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  20. package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -2
  21. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
  23. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  24. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -2
  25. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  26. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -2
  27. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  28. package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -2
  29. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  30. package/lib/components/field/CancelAlert/CancelAlert.js +2 -0
  31. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  32. package/lib/components/field/Checkbox/Checkbox.d.ts +1 -2
  33. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  34. package/lib/components/field/Currency/Currency.d.ts +2 -2
  35. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  36. package/lib/components/field/Currency/Currency.js +19 -8
  37. package/lib/components/field/Currency/Currency.js.map +1 -1
  38. package/lib/components/field/Date/Date.d.ts +1 -2
  39. package/lib/components/field/Date/Date.d.ts.map +1 -1
  40. package/lib/components/field/DateTime/DateTime.d.ts +1 -2
  41. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  42. package/lib/components/field/Decimal/Decimal.d.ts +2 -3
  43. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  44. package/lib/components/field/Decimal/Decimal.js +17 -5
  45. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  46. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -2
  47. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  48. package/lib/components/field/Email/Email.d.ts +1 -2
  49. package/lib/components/field/Email/Email.d.ts.map +1 -1
  50. package/lib/components/field/Group/Group.d.ts +1 -1
  51. package/lib/components/field/Group/Group.d.ts.map +1 -1
  52. package/lib/components/field/Integer/Integer.d.ts +1 -2
  53. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  54. package/lib/components/field/Multiselect/Multiselect.d.ts +2 -0
  55. package/lib/components/field/Multiselect/Multiselect.d.ts.map +1 -0
  56. package/lib/components/field/{MultiSelect → Multiselect}/Multiselect.js.map +1 -1
  57. package/lib/components/field/Multiselect/index.d.ts.map +1 -0
  58. package/lib/components/field/{MultiSelect → Multiselect}/index.js.map +1 -1
  59. package/lib/components/field/{MultiSelect → Multiselect}/utils.d.ts.map +1 -1
  60. package/lib/components/field/{MultiSelect → Multiselect}/utils.js.map +1 -1
  61. package/lib/components/field/Percentage/Percentage.d.ts +3 -2
  62. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  63. package/lib/components/field/Percentage/Percentage.js +17 -8
  64. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  65. package/lib/components/field/Phone/Phone.d.ts +1 -2
  66. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  67. package/lib/components/field/Phone/Phone.js +13 -7
  68. package/lib/components/field/Phone/Phone.js.map +1 -1
  69. package/lib/components/field/RadioButtons/RadioButtons.d.ts +1 -2
  70. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  71. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -2
  72. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  73. package/lib/components/field/ScalarList/ScalarList.js +2 -0
  74. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  75. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -2
  76. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  77. package/lib/components/field/TextArea/TextArea.d.ts +1 -2
  78. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  79. package/lib/components/field/TextContent/TextContent.d.ts +1 -2
  80. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  81. package/lib/components/field/TextInput/TextInput.d.ts +1 -2
  82. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  83. package/lib/components/field/Time/Time.d.ts +1 -2
  84. package/lib/components/field/Time/Time.d.ts.map +1 -1
  85. package/lib/components/field/URL/URL.d.ts +1 -2
  86. package/lib/components/field/URL/URL.d.ts.map +1 -1
  87. package/lib/components/field/UserReference/UserReference.d.ts +1 -0
  88. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  89. package/lib/components/field/UserReference/UserReference.js +8 -1
  90. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  91. package/lib/components/helpers/common-utils.d.ts +0 -1
  92. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  93. package/lib/components/helpers/common-utils.js +1 -4
  94. package/lib/components/helpers/common-utils.js.map +1 -1
  95. package/lib/components/helpers/formatters/common.d.ts +2 -2
  96. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  97. package/lib/components/helpers/state-utils.d.ts +1 -2
  98. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  99. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +1 -2
  100. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  101. package/lib/components/infra/Assignment/Assignment.d.ts +1 -1
  102. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  103. package/lib/components/infra/Assignment/Assignment.js +22 -1
  104. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  105. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +1 -1
  106. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  107. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +2 -2
  108. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  109. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +2 -1
  110. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  111. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -2
  112. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
  113. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -2
  114. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  115. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +3 -3
  116. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
  117. package/lib/components/infra/Containers/SimpleView/helper.d.ts +3 -3
  118. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -2
  119. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  120. package/lib/components/infra/Containers/helpers.d.ts +1 -1
  121. package/lib/components/infra/Containers/helpers.d.ts.map +1 -1
  122. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +1 -1
  123. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  124. package/lib/components/infra/DashboardFilter/DashboardFilter.js +1 -1
  125. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  126. package/lib/components/infra/DashboardFilter/filterUtils.d.ts +1 -2
  127. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  128. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  129. package/lib/components/infra/DeferLoad/DeferLoad.js +5 -1
  130. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  131. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -2
  132. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  133. package/lib/components/infra/MultiStep/MultiStep.d.ts +1 -1
  134. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  135. package/lib/components/infra/MultiStep/MultiStep.js +1 -1
  136. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  137. package/lib/components/infra/NavBar/NavBar.d.ts +1 -2
  138. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  139. package/lib/components/infra/NavBar/NavBar.js +1 -1
  140. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  141. package/lib/components/infra/Reference/Reference.d.ts +1 -2
  142. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  143. package/lib/components/infra/Region/Region.d.ts +1 -1
  144. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  145. package/lib/components/infra/Stages/Stages.d.ts +1 -2
  146. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  147. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -2
  148. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  149. package/lib/components/infra/View/View.d.ts +1 -1
  150. package/lib/components/infra/View/View.d.ts.map +1 -1
  151. package/lib/components/template/AppShell/AppShell.d.ts +1 -1
  152. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  153. package/lib/components/template/BannerPage/BannerPage.d.ts +1 -1
  154. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  155. package/lib/components/template/CaseSummary/CaseSummary.d.ts +1 -1
  156. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  157. package/lib/components/template/CaseView/CaseView.d.ts +1 -1
  158. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  159. package/lib/components/template/CaseView/CaseView.js +2 -2
  160. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  161. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -2
  162. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  163. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
  164. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  165. package/lib/components/template/Confirmation/Confirmation.d.ts +1 -1
  166. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  167. package/lib/components/template/DataReference/DataReference.d.ts +1 -1
  168. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  169. package/lib/components/template/DataReference/DataReference.js +1 -1
  170. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  171. package/lib/components/template/DefaultForm/DefaultForm.d.ts +1 -1
  172. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  173. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
  174. package/lib/components/template/DefaultForm/utils/index.js +2 -6
  175. package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
  176. package/lib/components/template/Details/Details/Details.d.ts +1 -2
  177. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  178. package/lib/components/template/Details/Details/Details.js +1 -1
  179. package/lib/components/template/Details/Details/Details.js.map +1 -1
  180. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +1 -1
  181. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  182. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -2
  183. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  184. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +1 -1
  185. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  186. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -2
  187. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  188. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +1 -1
  189. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  190. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -2
  191. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  192. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -2
  193. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  194. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +2 -0
  195. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  196. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +1 -1
  197. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  198. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +1 -1
  199. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  200. package/lib/components/template/ListPage/ListPage.d.ts +1 -2
  201. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  202. package/lib/components/template/ListView/ListView.d.ts +1 -2
  203. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  204. package/lib/components/template/ListView/ListView.js +19 -26
  205. package/lib/components/template/ListView/ListView.js.map +1 -1
  206. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -2
  207. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  208. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +1 -1
  209. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  210. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +1 -1
  211. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  212. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -2
  213. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  214. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +1 -1
  215. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  216. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +1 -1
  217. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  218. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +1 -1
  219. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  220. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +1 -1
  221. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  222. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -2
  223. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  224. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +1 -1
  225. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  226. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -2
  227. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  228. package/lib/components/template/PromotedFilters/PromotedFilters.js +1 -0
  229. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  230. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -2
  231. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  232. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +1 -1
  233. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  234. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +4 -0
  235. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  236. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -2
  237. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  238. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -2
  239. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  240. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +1 -1
  241. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  242. package/lib/components/template/SubTabs/SubTabs.d.ts +1 -1
  243. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  244. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +1 -1
  245. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  246. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -2
  247. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  248. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +1 -1
  249. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  250. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +1 -1
  251. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  252. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -2
  253. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  254. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +1 -1
  255. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  256. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +1 -1
  257. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  258. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +1 -1
  259. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  260. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -2
  261. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  262. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -2
  263. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  264. package/lib/components/widget/Attachment/Attachment.d.ts +1 -2
  265. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  266. package/lib/components/widget/Attachment/Attachment.js +3 -2
  267. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  268. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -2
  269. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  270. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -2
  271. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  272. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -2
  273. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  274. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +1 -1
  275. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  276. package/lib/components/widget/Followers/Followers.d.ts +1 -1
  277. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  278. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -2
  279. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  280. package/lib/components/widget/QuickCreate/QuickCreate.js +1 -0
  281. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  282. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -2
  283. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  284. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -2
  285. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  286. package/lib/components/widget/ToDo/ToDo.d.ts +1 -2
  287. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  288. package/lib/doc/KeyReleaseUpdates.md +19 -7
  289. package/lib/sdk-pega-component-map.d.ts +1 -1
  290. package/lib/sdk-pega-component-map.js +1 -1
  291. package/lib/sdk-pega-component-map.js.map +1 -1
  292. package/package.json +1 -1
  293. package/lib/components/field/MultiSelect/Multiselect.d.ts +0 -3
  294. package/lib/components/field/MultiSelect/Multiselect.d.ts.map +0 -1
  295. package/lib/components/field/MultiSelect/index.d.ts.map +0 -1
  296. /package/lib/components/field/{MultiSelect → Multiselect}/Multiselect.js +0 -0
  297. /package/lib/components/field/{MultiSelect → Multiselect}/index.d.ts +0 -0
  298. /package/lib/components/field/{MultiSelect → Multiselect}/index.js +0 -0
  299. /package/lib/components/field/{MultiSelect → Multiselect}/utils.d.ts +0 -0
  300. /package/lib/components/field/{MultiSelect → Multiselect}/utils.js +0 -0
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  interface FieldGroupListProps {
3
2
  items: any[] | any;
4
3
  onDelete: any;
5
4
  onAdd: any;
6
5
  }
7
- export default function FieldGroupList(props: FieldGroupListProps): JSX.Element;
6
+ export default function FieldGroupList(props: FieldGroupListProps): import("react/jsx-runtime").JSX.Element;
8
7
  export {};
9
8
  //# sourceMappingURL=FieldGroupList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx"],"names":[],"mappings":";AAQA,UAAU,mBAAmB;IAE3B,KAAK,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eA0ChE"}
1
+ {"version":3,"file":"FieldGroupList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx"],"names":[],"mappings":"AAQA,UAAU,mBAAmB;IAE3B,KAAK,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CA0ChE"}
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  interface FieldValueListProps {
3
2
  name?: string;
4
3
  value: any;
5
4
  variant?: string;
6
5
  isHtml?: boolean;
7
6
  }
8
- export default function FieldValueList(props: FieldValueListProps): JSX.Element;
7
+ export default function FieldValueList(props: FieldValueListProps): import("react/jsx-runtime").JSX.Element;
9
8
  export {};
10
9
  //# sourceMappingURL=FieldValueList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAMA,UAAU,mBAAmB;IAE3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAmCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAqChE"}
1
+ {"version":3,"file":"FieldValueList.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":"AAMA,UAAU,mBAAmB;IAE3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAmCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAqChE"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PConnProps } from '../../../types/PConnProps';
3
2
  interface OperatorProps extends PConnProps {
4
3
  label: string;
@@ -16,6 +15,6 @@ interface OperatorProps extends PConnProps {
16
15
  };
17
16
  displayLabel?: any;
18
17
  }
19
- export default function Operator(props: OperatorProps): JSX.Element;
18
+ export default function Operator(props: OperatorProps): import("react/jsx-runtime").JSX.Element;
20
19
  export {};
21
20
  //# sourceMappingURL=Operator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD,UAAU,aAAc,SAAQ,UAAU;IAExC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAaD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,eAqLpD"}
1
+ {"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Operator/Operator.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD,UAAU,aAAc,SAAQ,UAAU;IAExC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAaD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAqLpD"}
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  interface PulseProps {
3
3
  }
4
- export default function Pulse(props: PropsWithChildren<PulseProps>): JSX.Element;
4
+ export default function Pulse(props: PropsWithChildren<PulseProps>): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
6
6
  //# sourceMappingURL=Pulse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,UAAU,UAAU;CAEnB;AAWD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,eAajE"}
1
+ {"version":3,"file":"Pulse.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/Pulse/Pulse.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,UAAU,UAAU;CAEnB;AAWD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,2CAajE"}
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import './WssQuickCreate.css';
3
2
  interface WssQuickCreateProps {
4
3
  heading: string;
5
4
  actions?: any[];
6
5
  }
7
- export default function WssQuickCreate(props: WssQuickCreateProps): JSX.Element;
6
+ export default function WssQuickCreate(props: WssQuickCreateProps): import("react/jsx-runtime").JSX.Element;
8
7
  export {};
9
8
  //# sourceMappingURL=WssQuickCreate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WssQuickCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":";AACA,OAAO,sBAAsB,CAAC;AAI9B,UAAU,mBAAmB;IAE3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,eAyBhE"}
1
+ {"version":3,"file":"WssQuickCreate.d.ts","sourceRoot":"","sources":["../../../../src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAI9B,UAAU,mBAAmB;IAE3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAyBhE"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface AutoCompleteProps extends PConnFieldProps {
4
3
  displayMode?: string;
@@ -12,6 +11,6 @@ interface AutoCompleteProps extends PConnFieldProps {
12
11
  datasource: any;
13
12
  columns: any[];
14
13
  }
15
- export default function AutoComplete(props: AutoCompleteProps): JSX.Element;
14
+ export default function AutoComplete(props: AutoCompleteProps): import("react/jsx-runtime").JSX.Element;
16
15
  export {};
17
16
  //# sourceMappingURL=AutoComplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/field/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AA8B5D,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,GAAG,EAAE,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAoK5D"}
1
+ {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/field/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AA8B5D,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,GAAG,EAAE,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAoK5D"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  import './CancelAlert.css';
4
3
  interface CancelAlertProps extends PConnFieldProps {
@@ -10,6 +9,6 @@ interface CancelAlertProps extends PConnFieldProps {
10
9
  skipReleaseLockRequest: any;
11
10
  dismiss: Function;
12
11
  }
13
- export default function CancelAlert(props: CancelAlertProps): JSX.Element;
12
+ export default function CancelAlert(props: CancelAlertProps): import("react/jsx-runtime").JSX.Element;
14
13
  export {};
15
14
  //# 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,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAiB,SAAQ,eAAe;IAEhD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAkI1D"}
1
+ {"version":3,"file":"CancelAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAiB,SAAQ,eAAe;IAEhD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAoI1D"}
@@ -8,6 +8,7 @@ export default function CancelAlert(props) {
8
8
  const actionsAPI = getPConnect().getActionsApi();
9
9
  const containerManagerAPI = getPConnect().getContainerManager();
10
10
  const isLocalAction = getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION);
11
+ // @ts-ignore - Property 'options' is private and only accessible within class 'C11nEnv'.
11
12
  const isBulkAction = getPConnect()?.options?.isBulkAction;
12
13
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
13
14
  const broadCastUtils = PCore.getCoexistenceManager().getBroadcastUtils();
@@ -69,6 +70,7 @@ export default function CancelAlert(props) {
69
70
  }
70
71
  else {
71
72
  dismiss(true);
73
+ // @ts-ignore - Argument of type '{ containerItemID: string; skipReleaseLockRequest: any; }' is not assignable to parameter of type 'ContainerInfo'.
72
74
  containerManagerAPI.removeContainerItem({ containerItemID, skipReleaseLockRequest });
73
75
  }
74
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CancelAlert.js","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAAA,OAAc,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;AAGjD,OAAO,mBAAmB,CAAC;AAa3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACrI,MAAM,UAAU,GAAG,WAAW,EAAE,CAAC,aAAa,EAAE,CAAC;IACjD,MAAM,mBAAmB,GAAG,WAAW,EAAE,CAAC,mBAAmB,EAAE,CAAC;IAChE,MAAM,aAAa,GAAG,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAC7F,MAAM,YAAY,GAAG,WAAW,EAAE,EAAE,OAAO,EAAE,YAAY,CAAC;IAC1D,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC;IAC3D,MAAM,cAAc,GAAQ,KAAK,CAAC,qBAAqB,EAAE,CAAC,iBAAiB,EAAE,CAAC;IAC9E,MAA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Content":["import React, { useState } from 'react';\nimport { Button, Grid, IconButton, Snackbar } from '@material-ui/core';\nimport CloseIcon from '@material-ui/icons/Close';\n\nimport { PConnFieldProps } from '../../../types/PConnProps';\nimport './CancelAlert.css';\n\ninterface CancelAlertProps extends PConnFieldProps {\n // If any, enter additional props that only exist on CancelAlert here\n heading: string;\n content: string;\n itemKey: string;\n hideDelete: boolean;\n isDataObject: boolean;\n skipReleaseLockRequest: any;\n dismiss: Function;\n}\n\nexport default function CancelAlert(props: CancelAlertProps) {\n const { heading, content, getPConnect, itemKey: containerItemID, hideDelete, isDataObject, skipReleaseLockRequest, dismiss } = props;\n const actionsAPI = getPConnect().getActionsApi();\n const containerManagerAPI = getPConnect().getContainerManager();\n const isLocalAction = getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION);\n const isBulkAction = getPConnect()?.options?.isBulkAction;\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const broadCastUtils: any = PCore.getCoexistenceManager().getBroadcastUtils();\n const isReverseCoexistence = broadCastUtils.isReverseCoexistenceCaseLoaded();\n const localeCategory = 'ModalContainer';\n const btnIds = {\n SAVE_AND_CLOSE: 'saveAndClose',\n CONTINUE_WORKING: 'continueWorking',\n DELETE: 'delete'\n };\n\n const [buttonsState, setButtonsState] = useState({\n [btnIds.SAVE_AND_CLOSE]: false,\n [btnIds.DELETE]: false\n });\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n function disableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: true\n }));\n }\n\n function enableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: false\n }));\n }\n\n function cancelHandler() {\n if (isReverseCoexistence) {\n dismiss(true);\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.REVERSE_COEXISTENCE_EVENTS.HANDLE_DISCARD);\n } else if (!isDataObject && !isLocalAction && !isBulkAction) {\n disableButton(btnIds.DELETE);\n actionsAPI\n .deleteCaseInCreateStage(containerItemID, hideDelete)\n .then(() => {\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);\n })\n .catch(() => {\n setSnackbarMessage(localizedVal('Delete failed.', localeCategory));\n setShowSnackbar(true);\n })\n .finally(() => {\n enableButton(btnIds.DELETE);\n dismiss(true);\n });\n } else if (isLocalAction) {\n dismiss(true);\n actionsAPI.cancelAssignment(containerItemID);\n } else if (isBulkAction) {\n dismiss(true);\n actionsAPI.cancelBulkAction(containerItemID);\n } else {\n dismiss(true);\n containerManagerAPI.removeContainerItem({ containerItemID, skipReleaseLockRequest });\n }\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 leftButton = (\n <Button\n name={btnIds.CONTINUE_WORKING}\n variant='contained'\n color='secondary'\n onClick={() => {\n dismiss();\n if (isReverseCoexistence) {\n broadCastUtils.setCallBackFunction(null);\n broadCastUtils.setIsDirtyDialogActive(false);\n }\n }}\n >\n {localizedVal('Go back', localeCategory)}\n </Button>\n );\n\n const rightButton = (\n <Button name={btnIds.DELETE} variant='contained' color='primary' disabled={buttonsState[btnIds.DELETE]} onClick={cancelHandler}>\n {localizedVal('Discard', localeCategory)}\n </Button>\n );\n\n return (\n <>\n <div className='cancel-alert-background'>\n <div className='cancel-alert-top'>\n <h3>{localizedVal(heading, localeCategory)}</h3>\n <div>\n <p>{localizedVal(content, localeCategory)}</p>\n </div>\n <div className='action-controls'>\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>{leftButton}</Grid>\n <Grid item>{rightButton}</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
+ {"version":3,"file":"CancelAlert.js","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAAA,OAAc,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;AAGjD,OAAO,mBAAmB,CAAC;AAa3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACrI,MAAM,UAAU,GAAG,WAAW,EAAE,CAAC,aAAa,EAAE,CAAC;IACjD,MAAM,mBAAmB,GAAG,WAAW,EAAE,CAAC,mBAAmB,EAAE,CAAC;IAChE,MAAM,aAAa,GAAG,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAC7F,yFAAyF;IACzF,MAAM,YAAY,GAAG,WAAW,EAAE,EAAE,OAAO,EAAE,YAAY,CAAC;IAC1D,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC;IAC3D,MAAM,cAAc,GAAQ,KAAK,CAAC,qBAAqB,EAAE,CAAC,iBAAiB,EAAE,CAAC;IAC9E,MAAM,oBAAoB,GAAG,cAAc,CAAC,8BAA8B,EAAE,CAAC;IAC7E,MAAM,cAAc,GAAG,gBAAgB,CAAC;IACxC,MAAM,MAAM,GAAG;QACb,cAAc,EAAE,cAAc;QAC9B,gBAAgB,EAAE,iBAAiB;QACnC,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S,EAAE,cAAc,CAAC,GACjC,CACV,CAAC;IAEF,MAAM,WAAW,GAAG,CAClB,KAAC,MAAM,IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,EAAC,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,aAAa,YAC3H,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,GACjC,CACV,CAAC;IAEF,OAAO,CACL,8BACE,cAAK,SAAS,EAAC,yBAAyB,YACtC,eAAK,SAAS,EAAC,kBAAkB,aAC/B,uBAAK,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,GAAM,EAChD,wBACE,sBAAI,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,GAAK,GAC1C,EACN,cAAK,SAAS,EAAC,iBAAiB,YAC9B,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe,aACxD,KAAC,IAAI,IAAC,IAAI,kBAAE,UAAU,GAAQ,EAC9B,KAAC,IAAI,IAAC,IAAI,kBAAE,WAAW,GAAQ,IAC1B,GACH,IACF,GACF,EACN,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,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 { PConnFieldProps } from '../../../types/PConnProps';\nimport './CancelAlert.css';\n\ninterface CancelAlertProps extends PConnFieldProps {\n // If any, enter additional props that only exist on CancelAlert here\n heading: string;\n content: string;\n itemKey: string;\n hideDelete: boolean;\n isDataObject: boolean;\n skipReleaseLockRequest: any;\n dismiss: Function;\n}\n\nexport default function CancelAlert(props: CancelAlertProps) {\n const { heading, content, getPConnect, itemKey: containerItemID, hideDelete, isDataObject, skipReleaseLockRequest, dismiss } = props;\n const actionsAPI = getPConnect().getActionsApi();\n const containerManagerAPI = getPConnect().getContainerManager();\n const isLocalAction = getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION);\n // @ts-ignore - Property 'options' is private and only accessible within class 'C11nEnv'.\n const isBulkAction = getPConnect()?.options?.isBulkAction;\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const broadCastUtils: any = PCore.getCoexistenceManager().getBroadcastUtils();\n const isReverseCoexistence = broadCastUtils.isReverseCoexistenceCaseLoaded();\n const localeCategory = 'ModalContainer';\n const btnIds = {\n SAVE_AND_CLOSE: 'saveAndClose',\n CONTINUE_WORKING: 'continueWorking',\n DELETE: 'delete'\n };\n\n const [buttonsState, setButtonsState] = useState({\n [btnIds.SAVE_AND_CLOSE]: false,\n [btnIds.DELETE]: false\n });\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n function disableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: true\n }));\n }\n\n function enableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: false\n }));\n }\n\n function cancelHandler() {\n if (isReverseCoexistence) {\n dismiss(true);\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.REVERSE_COEXISTENCE_EVENTS.HANDLE_DISCARD);\n } else if (!isDataObject && !isLocalAction && !isBulkAction) {\n disableButton(btnIds.DELETE);\n actionsAPI\n .deleteCaseInCreateStage(containerItemID, hideDelete)\n .then(() => {\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);\n })\n .catch(() => {\n setSnackbarMessage(localizedVal('Delete failed.', localeCategory));\n setShowSnackbar(true);\n })\n .finally(() => {\n enableButton(btnIds.DELETE);\n dismiss(true);\n });\n } else if (isLocalAction) {\n dismiss(true);\n actionsAPI.cancelAssignment(containerItemID);\n } else if (isBulkAction) {\n dismiss(true);\n actionsAPI.cancelBulkAction(containerItemID);\n } else {\n dismiss(true);\n // @ts-ignore - Argument of type '{ containerItemID: string; skipReleaseLockRequest: any; }' is not assignable to parameter of type 'ContainerInfo'.\n containerManagerAPI.removeContainerItem({ containerItemID, skipReleaseLockRequest });\n }\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 leftButton = (\n <Button\n name={btnIds.CONTINUE_WORKING}\n variant='contained'\n color='secondary'\n onClick={() => {\n dismiss();\n if (isReverseCoexistence) {\n broadCastUtils.setCallBackFunction(null);\n broadCastUtils.setIsDirtyDialogActive(false);\n }\n }}\n >\n {localizedVal('Go back', localeCategory)}\n </Button>\n );\n\n const rightButton = (\n <Button name={btnIds.DELETE} variant='contained' color='primary' disabled={buttonsState[btnIds.DELETE]} onClick={cancelHandler}>\n {localizedVal('Discard', localeCategory)}\n </Button>\n );\n\n return (\n <>\n <div className='cancel-alert-background'>\n <div className='cancel-alert-top'>\n <h3>{localizedVal(heading, localeCategory)}</h3>\n <div>\n <p>{localizedVal(content, localeCategory)}</p>\n </div>\n <div className='action-controls'>\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>{leftButton}</Grid>\n <Grid item>{rightButton}</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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
4
3
  value?: boolean;
@@ -13,6 +12,6 @@ interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
13
12
  readonlyContextList: any;
14
13
  referenceList: string;
15
14
  }
16
- export default function CheckboxComponent(props: CheckboxProps): JSX.Element;
15
+ export default function CheckboxComponent(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
17
16
  export {};
18
17
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D,UAAU,aAAc,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IAE5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,GAAG,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB;AASD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,aAAa,eAyI7D"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D,UAAU,aAAc,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IAE5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,GAAG,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB;AASD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,aAAa,2CAyI7D"}
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface CurrrencyProps extends PConnFieldProps {
4
3
  currencyISOCode?: string;
4
+ allowDecimals: boolean;
5
5
  }
6
- export default function Currency(props: CurrrencyProps): JSX.Element;
6
+ export default function Currency(props: CurrrencyProps): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
8
8
  //# sourceMappingURL=Currency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Currency/Currency.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAS5D,UAAU,cAAe,SAAQ,eAAe;IAE9C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,cAAc,eAgFrD"}
1
+ {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Currency/Currency.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAQ5D,UAAU,cAAe,SAAQ,eAAe;IAE9C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAyFrD"}
@@ -1,5 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import CurrencyTextField from '@unicef/material-ui-currency-textfield';
2
+ import { TextField } from '@material-ui/core';
3
+ import { useState } from 'react';
4
+ import { NumericFormat } from 'react-number-format';
3
5
  import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
4
6
  import handleEvent from '../../helpers/event-utils';
5
7
  import { format } from '../../helpers/formatters';
@@ -9,12 +11,12 @@ export default function Currency(props) {
9
11
  const FieldValueList = getComponentFromMap('FieldValueList');
10
12
  const { getPConnect, label, required, disabled, value = '', validatemessage, status,
11
13
  /* onChange, onBlur, */
12
- readOnly, testId, helperText, displayMode, hideLabel, currencyISOCode = 'USD', placeholder } = props;
14
+ readOnly, testId, helperText, displayMode, hideLabel, currencyISOCode = 'USD', placeholder, allowDecimals } = props;
13
15
  const pConn = getPConnect();
14
16
  const actions = pConn.getActionsApi();
15
17
  const propName = pConn.getStateProps().value;
16
18
  const helperTextToDisplay = validatemessage || helperText;
17
- // console.log(`Currency: label: ${label} value: ${value}`);
19
+ const [values, setValues] = useState(value.toString());
18
20
  const testProp = {
19
21
  'data-test-id': testId
20
22
  };
@@ -25,17 +27,26 @@ export default function Currency(props) {
25
27
  const theCurrSep = theSymbols.theDigitGroupSeparator;
26
28
  const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
27
29
  const formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);
30
+ let readOnlyProp = {}; // Note: empty if NOT ReadOnly
31
+ if (readOnly) {
32
+ readOnlyProp = { readOnly: true };
33
+ }
34
+ let currencyProp = {};
35
+ currencyProp = { prefix: theCurrSym, decimalSeparator: theCurrDec, thousandSeparator: theCurrSep };
28
36
  if (displayMode === 'LABELS_LEFT') {
29
37
  return _jsx(FieldValueList, { name: hideLabel ? '' : label, value: formattedValue });
30
38
  }
31
39
  if (displayMode === 'STACKED_LARGE_VAL') {
32
40
  return _jsx(FieldValueList, { name: hideLabel ? '' : label, value: formattedValue, variant: 'stacked' });
33
41
  }
34
- function currOnBlur(event, inValue) {
35
- // console.log(`Currency currOnBlur inValue: ${inValue}`);
36
- handleEvent(actions, 'changeNblur', propName, inValue !== '' ? Number(inValue) : inValue);
42
+ function currOnBlur() {
43
+ handleEvent(actions, 'changeNblur', propName, values);
37
44
  }
38
- // console.log(`theCurrSym: ${theCurrSym} | theCurrDec: ${theCurrDec} | theCurrSep: ${theCurrSep}`);
39
- return (_jsx(CurrencyTextField, { fullWidth: true, variant: readOnly ? 'standard' : 'outlined', helperText: helperTextToDisplay, placeholder: placeholder ?? '', size: 'small', required: required, disabled: disabled, readOnly: !!readOnly, error: status === 'error', label: label, value: value, type: 'text', outputFormat: 'number', textAlign: 'left', InputProps: { inputProps: { ...testProp } }, currencySymbol: theCurrSym, decimalCharacter: theCurrDec, digitGroupSeparator: theCurrSep, onBlur: !readOnly ? currOnBlur : undefined }));
45
+ const handleChange = val => {
46
+ setValues(val.value);
47
+ };
48
+ return (_jsx(NumericFormat, { valueIsNumericString: true, label: label, helperText: helperTextToDisplay, placeholder: placeholder ?? '', required: required, disabled: disabled, onValueChange: val => {
49
+ handleChange(val);
50
+ }, onBlur: !readOnly ? currOnBlur : undefined, error: status === 'error', name: 'numberformat', value: values, ...currencyProp, decimalScale: allowDecimals !== false ? 2 : 0, fixedDecimalScale: allowDecimals, InputProps: { ...readOnlyProp, inputProps: { ...testProp } }, customInput: TextField }));
40
51
  }
41
52
  //# sourceMappingURL=Currency.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../../../src/components/field/Currency/Currency.tsx"],"names":[],"mappings":";AAAA,OAAO,iBAA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,EAAE,UAAU,EAC5B,mBAAmB,EAAE,UAAU,EAC/B,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,GAC1C,CACH,CAAC;AACJ,CAAC","sourcesContent":["import CurrencyTextField from '@unicef/material-ui-currency-textfield';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnFieldProps } from '../../../types/PConnProps';\nimport handleEvent from '../../helpers/event-utils';\nimport { format } from '../../helpers/formatters';\nimport { getCurrencyCharacters, getCurrencyOptions } from './currency-utils';\n\n/* Using @unicef/material-ui-currency-textfield component here, since it allows formatting decimal values,\nas per the locale.\n*/\n\ninterface CurrrencyProps extends PConnFieldProps {\n // If any, enter additional props that only exist on Currency here\n currencyISOCode?: string;\n}\n\nexport default function Currency(props: CurrrencyProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldValueList = getComponentFromMap('FieldValueList');\n\n const {\n getPConnect,\n label,\n required,\n disabled,\n value = '',\n validatemessage,\n status,\n /* onChange, onBlur, */\n readOnly,\n testId,\n helperText,\n displayMode,\n hideLabel,\n currencyISOCode = 'USD',\n placeholder\n } = props;\n\n const pConn = getPConnect();\n const actions = pConn.getActionsApi();\n const propName = (pConn.getStateProps() as any).value;\n const helperTextToDisplay = validatemessage || helperText;\n\n // console.log(`Currency: label: ${label} value: ${value}`);\n\n const testProp = {\n 'data-test-id': testId\n };\n\n // currencySymbols looks like this: { theCurrencySymbol: '$', theDecimalIndicator: '.', theSeparator: ',' }\n const theSymbols = getCurrencyCharacters(currencyISOCode);\n const theCurrSym = theSymbols.theCurrencySymbol;\n const theCurrDec = theSymbols.theDecimalIndicator;\n const theCurrSep = theSymbols.theDigitGroupSeparator;\n\n const theCurrencyOptions = getCurrencyOptions(currencyISOCode);\n const formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);\n\n if (displayMode === 'LABELS_LEFT') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;\n }\n\n function currOnBlur(event, inValue) {\n // console.log(`Currency currOnBlur inValue: ${inValue}`);\n handleEvent(actions, 'changeNblur', propName, inValue !== '' ? Number(inValue) : inValue);\n }\n\n // console.log(`theCurrSym: ${theCurrSym} | theCurrDec: ${theCurrDec} | theCurrSep: ${theCurrSep}`);\n\n return (\n <CurrencyTextField\n fullWidth\n variant={readOnly ? 'standard' : 'outlined'}\n helperText={helperTextToDisplay}\n placeholder={placeholder ?? ''}\n size='small'\n required={required}\n disabled={disabled}\n readOnly={!!readOnly}\n error={status === 'error'}\n label={label}\n value={value}\n type='text'\n outputFormat='number'\n textAlign='left'\n InputProps={{ inputProps: { ...testProp } }}\n currencySymbol={theCurrSym}\n decimalCharacter={theCurrDec}\n digitGroupSeparator={theCurrSep}\n onBlur={!readOnly ? currOnBlur : undefined}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../../../src/components/field/Currency/Currency.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAW7E,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAqB;IACpD,8EAA8E;IAC9E,MAAM,cAAc,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAE7D,MAAM,EACJ,WAAW,EACX,KAAK,EACL,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GAAG,QAAQ,EAAE,EAAE,EAC5D,WAAW,EAAE,SAAS,GACtB,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { TextField } from '@material-ui/core';\nimport { useState } from 'react';\nimport { NumericFormat } from 'react-number-format';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnFieldProps } from '../../../types/PConnProps';\nimport handleEvent from '../../helpers/event-utils';\nimport { format } from '../../helpers/formatters';\nimport { getCurrencyCharacters, getCurrencyOptions } from './currency-utils';\n\n/* Using react-number-format component here, since it allows formatting decimal values,\nas per the locale.\n*/\ninterface CurrrencyProps extends PConnFieldProps {\n // If any, enter additional props that only exist on Currency here\n currencyISOCode?: string;\n allowDecimals: boolean;\n}\n\nexport default function Currency(props: CurrrencyProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldValueList = getComponentFromMap('FieldValueList');\n\n const {\n getPConnect,\n label,\n required,\n disabled,\n value = '',\n validatemessage,\n status,\n /* onChange, onBlur, */\n readOnly,\n testId,\n helperText,\n displayMode,\n hideLabel,\n currencyISOCode = 'USD',\n placeholder,\n allowDecimals\n } = props;\n\n const pConn = getPConnect();\n const actions = pConn.getActionsApi();\n const propName = (pConn.getStateProps() as any).value;\n const helperTextToDisplay = validatemessage || helperText;\n const [values, setValues] = useState(value.toString());\n\n const testProp = {\n 'data-test-id': testId\n };\n\n // currencySymbols looks like this: { theCurrencySymbol: '$', theDecimalIndicator: '.', theSeparator: ',' }\n const theSymbols = getCurrencyCharacters(currencyISOCode);\n const theCurrSym = theSymbols.theCurrencySymbol;\n const theCurrDec = theSymbols.theDecimalIndicator;\n const theCurrSep = theSymbols.theDigitGroupSeparator;\n\n const theCurrencyOptions = getCurrencyOptions(currencyISOCode);\n const formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);\n\n let readOnlyProp = {}; // Note: empty if NOT ReadOnly\n\n if (readOnly) {\n readOnlyProp = { readOnly: true };\n }\n\n let currencyProp = {};\n currencyProp = { prefix: theCurrSym, decimalSeparator: theCurrDec, thousandSeparator: theCurrSep };\n\n if (displayMode === 'LABELS_LEFT') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;\n }\n\n function currOnBlur() {\n handleEvent(actions, 'changeNblur', propName, values);\n }\n\n const handleChange = val => {\n setValues(val.value);\n };\n\n return (\n <NumericFormat\n valueIsNumericString\n label={label}\n helperText={helperTextToDisplay}\n placeholder={placeholder ?? ''}\n required={required}\n disabled={disabled}\n onValueChange={val => {\n handleChange(val);\n }}\n onBlur={!readOnly ? currOnBlur : undefined}\n error={status === 'error'}\n name='numberformat'\n value={values}\n {...currencyProp}\n decimalScale={allowDecimals !== false ? 2 : 0}\n fixedDecimalScale={allowDecimals}\n InputProps={{ ...readOnlyProp, inputProps: { ...testProp } }}\n customInput={TextField}\n />\n );\n}\n"]}
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface DateProps extends PConnFieldProps {
4
3
  }
5
- export default function Date(props: DateProps): JSX.Element;
4
+ export default function Date(props: DateProps): import("react/jsx-runtime").JSX.Element;
6
5
  export {};
7
6
  //# sourceMappingURL=Date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Date/Date.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAO5D,UAAU,SAAU,SAAQ,eAAe;CAE1C;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,SAAS,eA+F5C"}
1
+ {"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Date/Date.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAO5D,UAAU,SAAU,SAAQ,eAAe;CAE1C;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,SAAS,2CA+F5C"}
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface DateTimeProps extends PConnFieldProps {
4
3
  }
5
- export default function DateTime(props: DateTimeProps): JSX.Element;
4
+ export default function DateTime(props: DateTimeProps): import("react/jsx-runtime").JSX.Element;
6
5
  export {};
7
6
  //# sourceMappingURL=DateTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../src/components/field/DateTime/DateTime.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,aAAc,SAAQ,eAAe;CAE9C;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,eA0FpD"}
1
+ {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../src/components/field/DateTime/DateTime.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,aAAc,SAAQ,eAAe;CAE9C;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA0FpD"}
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface DecimalProps extends PConnFieldProps {
4
3
  currencyISOCode?: string;
5
4
  decimalPrecision?: number;
6
- showGroupSeparators?: string;
5
+ showGroupSeparators?: boolean;
7
6
  formatter?: string;
8
7
  }
9
- export default function Decimal(props: DecimalProps): JSX.Element;
8
+ export default function Decimal(props: DecimalProps): import("react/jsx-runtime").JSX.Element;
10
9
  export {};
11
10
  //# sourceMappingURL=Decimal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Decimal.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Decimal/Decimal.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAM5D,UAAU,YAAa,SAAQ,eAAe;IAE5C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,eAoFlD"}
1
+ {"version":3,"file":"Decimal.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Decimal/Decimal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAM5D,UAAU,YAAa,SAAQ,eAAe;IAE5C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,2CAiGlD"}
@@ -1,5 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import CurrencyTextField from '@unicef/material-ui-currency-textfield';
2
+ import { TextField } from '@material-ui/core';
3
+ import { NumericFormat } from 'react-number-format';
4
+ import { useState } from 'react';
3
5
  import { getCurrencyCharacters, getCurrencyOptions } from '../Currency/currency-utils';
4
6
  import handleEvent from '../../helpers/event-utils';
5
7
  import { format } from '../../helpers/formatters';
@@ -9,7 +11,8 @@ export default function Decimal(props) {
9
11
  const FieldValueList = getComponentFromMap('FieldValueList');
10
12
  const { getPConnect, label, required, disabled, value = '', validatemessage, status,
11
13
  /* onChange, onBlur, */
12
- readOnly, helperText, displayMode, hideLabel, currencyISOCode = 'USD', decimalPrecision = 2, showGroupSeparators = true, testId, placeholder, formatter } = props;
14
+ readOnly, helperText, displayMode, hideLabel, currencyISOCode = 'USD', decimalPrecision, showGroupSeparators, testId, placeholder, formatter } = props;
15
+ const [values, setValues] = useState(value.toString());
13
16
  const pConn = getPConnect();
14
17
  const actions = pConn.getActionsApi();
15
18
  const propName = pConn.getStateProps().value;
@@ -19,6 +22,10 @@ export default function Decimal(props) {
19
22
  const theCurrSep = theSymbols.theDigitGroupSeparator;
20
23
  const theCurrSym = theSymbols.theCurrencySymbol;
21
24
  const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
25
+ let readOnlyProp = {}; // Note: empty if NOT ReadOnly
26
+ if (readOnly) {
27
+ readOnlyProp = { readOnly: true };
28
+ }
22
29
  let formattedValue = '';
23
30
  if (formatter === 'Currency') {
24
31
  formattedValue = format(value, formatter.toLowerCase(), theCurrencyOptions);
@@ -35,9 +42,14 @@ export default function Decimal(props) {
35
42
  const testProp = {
36
43
  'data-test-id': testId
37
44
  };
38
- function decimalOnBlur(event, inValue) {
39
- handleEvent(actions, 'changeNblur', propName, inValue !== '' ? Number(inValue) : inValue);
45
+ function decimalOnBlur() {
46
+ handleEvent(actions, 'changeNblur', propName, values);
40
47
  }
41
- return (_jsx(CurrencyTextField, { fullWidth: true, variant: readOnly ? 'standard' : 'outlined', helperText: helperTextToDisplay, placeholder: placeholder ?? '', size: 'small', required: required, disabled: disabled, error: status === 'error', label: label, value: value, readOnly: !!readOnly, type: 'text', outputFormat: 'number', textAlign: 'left', InputProps: { inputProps: { ...testProp } }, currencySymbol: readOnly && formatter === 'Currency' ? theCurrSym : '', decimalCharacter: theCurrDec, digitGroupSeparator: showGroupSeparators ? theCurrSep : '', decimalPlaces: decimalPrecision, onBlur: !readOnly ? decimalOnBlur : undefined }));
48
+ const handleChange = val => {
49
+ setValues(val.value);
50
+ };
51
+ return (_jsx(NumericFormat, { valueIsNumericString: true, fullWidth: true, variant: readOnly ? 'standard' : 'outlined', helperText: helperTextToDisplay, placeholder: placeholder ?? '', size: 'small', required: required, disabled: disabled, error: status === 'error', label: label, value: values, onValueChange: val => {
52
+ handleChange(val);
53
+ }, onBlur: !readOnly ? decimalOnBlur : undefined, prefix: readOnly && formatter === 'Currency' ? theCurrSym : '', decimalSeparator: theCurrDec, thousandSeparator: showGroupSeparators ? theCurrSep : '', decimalScale: readOnly && formatter === 'Currency' ? undefined : decimalPrecision, InputProps: { ...readOnlyProp, inputProps: { ...testProp } }, customInput: TextField }));
42
54
  }
43
55
  //# sourceMappingURL=Decimal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Decimal.js","sourceRoot":"","sources":["../../../../src/components/field/Decimal/Decimal.tsx"],"names":[],"mappings":";AAAA,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAehF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAmB;IACjD,8EAA8E;IAC9E,MAAM,cAAc,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAE7D,MAAM,EACJ,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,eAAe,EACf,MAAM;IACN,uBAAuB;IACvB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,eAAe,GAAG,KAAK,EACvB,gBAAgB,GAAG,CAAC,EACpB,mBAAmB,GAAG,IAAI,EAC1B,MAAM,EACN,WAAW,EACX,SAAS,EACV,GAAG,KAAK,CAAC;IAEV,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IACtC,MAAM,QAAQ,GAAI,KAAK,CAAC,a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,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED,OAAO,CACL,KAAC,iBAAiB,IAChB,SAAS,QACT,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAC3C,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAE,WAAW,IAAI,EAAE,EAC9B,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,KAAK,OAAO,EACzB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,QAAQ,EACpB,IAAI,EAAC,MAAM,EACX,YAAY,EAAC,QAAQ,EACrB,SAAS,EAAC,MAAM,EAChB,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,EAC3C,cAAc,EAAE,QAAQ,IAAI,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EACtE,gBAAgB,EAAE,UAAU,EAC5B,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAC1D,aAAa,EAAE,gBAAgB,EAC/B,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,GAC7C,CACH,CAAC;AACJ,CAAC","sourcesContent":["import CurrencyTextField from '@unicef/material-ui-currency-textfield';\n\nimport { getCurrencyCharacters, getCurrencyOptions } from '../Currency/currency-utils';\nimport handleEvent from '../../helpers/event-utils';\nimport { format } from '../../helpers/formatters';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnFieldProps } from '../../../types/PConnProps';\n\n/* Using @unicef/material-ui-currency-textfield component here, since it allows formatting decimal values,\nas per the locale.\n*/\n\ninterface DecimalProps extends PConnFieldProps {\n // If any, enter additional props that only exist on Decimal here\n currencyISOCode?: string;\n decimalPrecision?: number;\n showGroupSeparators?: string;\n formatter?: string;\n}\n\nexport default function Decimal(props: DecimalProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldValueList = getComponentFromMap('FieldValueList');\n\n const {\n getPConnect,\n label,\n required,\n disabled,\n value = '',\n validatemessage,\n status,\n /* onChange, onBlur, */\n readOnly,\n helperText,\n displayMode,\n hideLabel,\n currencyISOCode = 'USD',\n decimalPrecision = 2,\n showGroupSeparators = true,\n testId,\n placeholder,\n formatter\n } = props;\n\n const pConn = getPConnect();\n const actions = pConn.getActionsApi();\n const propName = (pConn.getStateProps() as any).value;\n const helperTextToDisplay = validatemessage || helperText;\n\n const theSymbols = getCurrencyCharacters(currencyISOCode);\n const theCurrDec = theSymbols.theDecimalIndicator;\n const theCurrSep = theSymbols.theDigitGroupSeparator;\n const theCurrSym = theSymbols.theCurrencySymbol;\n\n const theCurrencyOptions = getCurrencyOptions(currencyISOCode);\n\n let formattedValue = '';\n if (formatter === 'Currency') {\n formattedValue = format(value, formatter.toLowerCase(), theCurrencyOptions);\n } else {\n formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);\n }\n\n if (displayMode === 'LABELS_LEFT') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;\n }\n\n const testProp = {\n 'data-test-id': testId\n };\n\n function decimalOnBlur(event, inValue) {\n handleEvent(actions, 'changeNblur', propName, inValue !== '' ? Number(inValue) : inValue);\n }\n\n return (\n <CurrencyTextField\n fullWidth\n variant={readOnly ? 'standard' : 'outlined'}\n helperText={helperTextToDisplay}\n placeholder={placeholder ?? ''}\n size='small'\n required={required}\n disabled={disabled}\n error={status === 'error'}\n label={label}\n value={value}\n readOnly={!!readOnly}\n type='text'\n outputFormat='number'\n textAlign='left'\n InputProps={{ inputProps: { ...testProp } }}\n currencySymbol={readOnly && formatter === 'Currency' ? theCurrSym : ''}\n decimalCharacter={theCurrDec}\n digitGroupSeparator={showGroupSeparators ? theCurrSep : ''}\n decimalPlaces={decimalPrecision}\n onBlur={!readOnly ? decimalOnBlur : undefined}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"Decimal.js","sourceRoot":"","sources":["../../../../src/components/field/Decimal/Decimal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAehF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAmB;IACjD,8EAA8E;IAC9E,MAAM,cAAc,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAE7D,MAAM,EACJ,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,eAAe,EACf,MAAM;IACN,uBAAuB;IACvB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,eAAe,GAAG,KAAK,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,MAAM,EACN,WAAW,EACX,SAAS,EACV,GAAG,KAAK,CAAC;IAEV,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEvD,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IACtC,M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 'react-number-format';\nimport { useState } from 'react';\nimport { getCurrencyCharacters, getCurrencyOptions } from '../Currency/currency-utils';\nimport handleEvent from '../../helpers/event-utils';\nimport { format } from '../../helpers/formatters';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnFieldProps } from '../../../types/PConnProps';\n\n/* Using react-number-format component here, since it allows formatting decimal values,\nas per the locale.\n*/\n\ninterface DecimalProps extends PConnFieldProps {\n // If any, enter additional props that only exist on Decimal here\n currencyISOCode?: string;\n decimalPrecision?: number;\n showGroupSeparators?: boolean;\n formatter?: string;\n}\n\nexport default function Decimal(props: DecimalProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldValueList = getComponentFromMap('FieldValueList');\n\n const {\n getPConnect,\n label,\n required,\n disabled,\n value = '',\n validatemessage,\n status,\n /* onChange, onBlur, */\n readOnly,\n helperText,\n displayMode,\n hideLabel,\n currencyISOCode = 'USD',\n decimalPrecision,\n showGroupSeparators,\n testId,\n placeholder,\n formatter\n } = props;\n\n const [values, setValues] = useState(value.toString());\n\n const pConn = getPConnect();\n const actions = pConn.getActionsApi();\n const propName = (pConn.getStateProps() as any).value;\n const helperTextToDisplay = validatemessage || helperText;\n\n const theSymbols = getCurrencyCharacters(currencyISOCode);\n const theCurrDec = theSymbols.theDecimalIndicator;\n const theCurrSep = theSymbols.theDigitGroupSeparator;\n const theCurrSym = theSymbols.theCurrencySymbol;\n\n const theCurrencyOptions = getCurrencyOptions(currencyISOCode);\n\n let readOnlyProp = {}; // Note: empty if NOT ReadOnly\n\n if (readOnly) {\n readOnlyProp = { readOnly: true };\n }\n\n let formattedValue = '';\n if (formatter === 'Currency') {\n formattedValue = format(value, formatter.toLowerCase(), theCurrencyOptions);\n } else {\n formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);\n }\n\n if (displayMode === 'LABELS_LEFT') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} />;\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={formattedValue} variant='stacked' />;\n }\n\n const testProp = {\n 'data-test-id': testId\n };\n\n function decimalOnBlur() {\n handleEvent(actions, 'changeNblur', propName, values);\n }\n\n const handleChange = val => {\n setValues(val.value);\n };\n\n return (\n <NumericFormat\n valueIsNumericString\n fullWidth\n variant={readOnly ? 'standard' : 'outlined'}\n helperText={helperTextToDisplay}\n placeholder={placeholder ?? ''}\n size='small'\n required={required}\n disabled={disabled}\n error={status === 'error'}\n label={label}\n value={values}\n onValueChange={val => {\n handleChange(val);\n }}\n onBlur={!readOnly ? decimalOnBlur : undefined}\n prefix={readOnly && formatter === 'Currency' ? theCurrSym : ''}\n decimalSeparator={theCurrDec}\n thousandSeparator={showGroupSeparators ? theCurrSep : ''}\n decimalScale={readOnly && formatter === 'Currency' ? undefined : decimalPrecision}\n InputProps={{ ...readOnlyProp, inputProps: { ...testProp } }}\n customInput={TextField}\n />\n );\n}\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface DropdownProps extends PConnFieldProps {
4
3
  datasource?: any[];
@@ -10,6 +9,6 @@ interface DropdownProps extends PConnFieldProps {
10
9
  parameters?: any;
11
10
  columns: any[];
12
11
  }
13
- export default function Dropdown(props: DropdownProps): JSX.Element | null;
12
+ export default function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX.Element | null;
14
13
  export {};
15
14
  //# sourceMappingURL=Dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Dropdown/Dropdown.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAwC5D,UAAU,aAAc,SAAQ,eAAe;IAE7C,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,OAAO,EAAE,GAAG,EAAE,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,sBA4KpD"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAwC5D,UAAU,aAAc,SAAQ,eAAe;IAE7C,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,OAAO,EAAE,GAAG,EAAE,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,kDA4KpD"}
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface EmailProps extends PConnFieldProps {
4
3
  }
5
- export default function Email(props: EmailProps): JSX.Element;
4
+ export default function Email(props: EmailProps): import("react/jsx-runtime").JSX.Element;
6
5
  export {};
7
6
  //# sourceMappingURL=Email.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Email/Email.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,UAAW,SAAQ,eAAe;CAE3C;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,eAkE9C"}
1
+ {"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Email/Email.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,UAAW,SAAQ,eAAe;CAE3C;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,2CAkE9C"}
@@ -8,6 +8,6 @@ interface GroupProps extends PConnFieldProps {
8
8
  collapsible: boolean;
9
9
  type: string;
10
10
  }
11
- export default function Group(props: GroupProps): JSX.Element | null;
11
+ export default function Group(props: GroupProps): import("react/jsx-runtime").JSX.Element | null;
12
12
  export {};
13
13
  //# sourceMappingURL=Group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,UAAW,SAAQ,eAAe;IAC1C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,sBAwB9C"}
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,UAAW,SAAQ,eAAe;IAC1C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,kDAwB9C"}
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { PConnFieldProps } from '../../../types/PConnProps';
3
2
  interface IntegerProps extends PConnFieldProps {
4
3
  }
5
- export default function Integer(props: IntegerProps): JSX.Element;
4
+ export default function Integer(props: IntegerProps): import("react/jsx-runtime").JSX.Element;
6
5
  export {};
7
6
  //# sourceMappingURL=Integer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Integer/Integer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,YAAa,SAAQ,eAAe;CAE7C;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,eA8ElD"}
1
+ {"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Integer/Integer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,YAAa,SAAQ,eAAe;CAE7C;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,2CA8ElD"}
@@ -0,0 +1,2 @@
1
+ export default function Multiselect(props: any): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Multiselect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Multiselect.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Multiselect/Multiselect.tsx"],"names":[],"mappings":"AAYA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,KAAA,2CAuOxC"}