@pega/react-sdk-components 0.23.26 → 0.23.27

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 (654) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.d.ts +3 -2
  5. package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
  6. package/lib/bridge/Context/StoreContext.js +5 -6
  7. package/lib/bridge/Context/StoreContext.js.map +1 -1
  8. package/lib/bridge/helpers/sdk_component_map.d.ts +1 -0
  9. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  10. package/lib/bridge/helpers/sdk_component_map.js +45 -46
  11. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  12. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  13. package/lib/bridge/react_pconnect.js +18 -41
  14. package/lib/bridge/react_pconnect.js.map +1 -1
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +10 -0
  16. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -0
  17. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +19 -0
  18. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -0
  19. package/lib/components/designSystemExtension/AlertBanner/index.d.ts +2 -0
  20. package/lib/components/designSystemExtension/AlertBanner/index.d.ts.map +1 -0
  21. package/lib/components/designSystemExtension/AlertBanner/index.js +2 -0
  22. package/lib/components/designSystemExtension/AlertBanner/index.js.map +1 -0
  23. package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
  24. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  25. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  26. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  27. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  28. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
  29. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  30. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +32 -33
  31. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  32. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
  33. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  34. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +10 -23
  35. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  36. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  37. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +8 -3
  38. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +25 -14
  40. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  41. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
  42. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +7 -19
  44. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  45. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
  46. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  47. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -12
  48. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  49. package/lib/components/designSystemExtension/Operator/Operator.d.ts +16 -7
  50. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  51. package/lib/components/designSystemExtension/Operator/Operator.js +56 -73
  52. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  53. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -2
  54. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  55. package/lib/components/designSystemExtension/Pulse/Pulse.js +9 -15
  56. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  57. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
  58. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  59. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +75 -0
  60. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
  61. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
  62. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
  63. package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
  64. package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
  65. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
  66. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  67. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  68. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  69. package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
  70. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  71. package/lib/components/field/AutoComplete/AutoComplete.js +17 -17
  72. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  73. package/lib/components/field/CancelAlert/CancelAlert.d.ts +7 -2
  74. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  75. package/lib/components/field/CancelAlert/CancelAlert.js +11 -22
  76. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  77. package/lib/components/field/CancelAlert/index.js.map +1 -1
  78. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  79. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  80. package/lib/components/field/Checkbox/Checkbox.js +12 -12
  81. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  82. package/lib/components/field/Currency/Currency.d.ts +6 -1
  83. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  84. package/lib/components/field/Currency/Currency.js +14 -29
  85. package/lib/components/field/Currency/Currency.js.map +1 -1
  86. package/lib/components/field/Currency/currency-utils.d.ts +1 -1
  87. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  88. package/lib/components/field/Currency/currency-utils.js +5 -6
  89. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  90. package/lib/components/field/Date/Date.d.ts +5 -1
  91. package/lib/components/field/Date/Date.d.ts.map +1 -1
  92. package/lib/components/field/Date/Date.js +26 -14
  93. package/lib/components/field/Date/Date.js.map +1 -1
  94. package/lib/components/field/DateTime/DateTime.d.ts +5 -1
  95. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  96. package/lib/components/field/DateTime/DateTime.js +16 -10
  97. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  98. package/lib/components/field/Decimal/Decimal.d.ts +8 -1
  99. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  100. package/lib/components/field/Decimal/Decimal.js +32 -10
  101. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  102. package/lib/components/field/Decimal/index.js.map +1 -1
  103. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  104. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  105. package/lib/components/field/Dropdown/Dropdown.js +115 -11
  106. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  107. package/lib/components/field/Email/Email.d.ts +5 -1
  108. package/lib/components/field/Email/Email.d.ts.map +1 -1
  109. package/lib/components/field/Email/Email.js +12 -11
  110. package/lib/components/field/Email/Email.js.map +1 -1
  111. package/lib/components/field/Email/index.js.map +1 -1
  112. package/lib/components/field/Group/Group.d.ts +13 -0
  113. package/lib/components/field/Group/Group.d.ts.map +1 -0
  114. package/lib/components/field/Group/Group.js +13 -0
  115. package/lib/components/field/Group/Group.js.map +1 -0
  116. package/lib/components/field/Group/index.d.ts +2 -0
  117. package/lib/components/field/Group/index.d.ts.map +1 -0
  118. package/lib/components/field/Group/index.js +2 -0
  119. package/lib/components/field/Group/index.js.map +1 -0
  120. package/lib/components/field/Integer/Integer.d.ts +5 -1
  121. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  122. package/lib/components/field/Integer/Integer.js +10 -8
  123. package/lib/components/field/Integer/Integer.js.map +1 -1
  124. package/lib/components/field/Percentage/Percentage.d.ts +5 -1
  125. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  126. package/lib/components/field/Percentage/Percentage.js +10 -8
  127. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  128. package/lib/components/field/Phone/Phone.d.ts +5 -1
  129. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  130. package/lib/components/field/Phone/Phone.js +12 -10
  131. package/lib/components/field/Phone/Phone.js.map +1 -1
  132. package/lib/components/field/Phone/index.js.map +1 -1
  133. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  134. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  135. package/lib/components/field/RadioButtons/RadioButtons.js +30 -13
  136. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  137. package/lib/components/field/RichText/RichText.d.ts +7 -0
  138. package/lib/components/field/RichText/RichText.d.ts.map +1 -0
  139. package/lib/components/field/RichText/RichText.js +54 -0
  140. package/lib/components/field/RichText/RichText.js.map +1 -0
  141. package/lib/components/field/RichText/index.d.ts +2 -0
  142. package/lib/components/field/RichText/index.d.ts.map +1 -0
  143. package/lib/components/field/RichText/index.js +2 -0
  144. package/lib/components/field/RichText/index.js.map +1 -0
  145. package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
  146. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
  147. package/lib/components/field/ScalarList/ScalarList.js +32 -0
  148. package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
  149. package/lib/components/field/ScalarList/index.d.ts +2 -0
  150. package/lib/components/field/ScalarList/index.d.ts.map +1 -0
  151. package/lib/components/field/ScalarList/index.js +2 -0
  152. package/lib/components/field/ScalarList/index.js.map +1 -0
  153. package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
  154. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  155. package/lib/components/field/SemanticLink/SemanticLink.js +11 -19
  156. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  157. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  158. package/lib/components/field/SemanticLink/utils.js +8 -8
  159. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  160. package/lib/components/field/TextArea/TextArea.d.ts +6 -1
  161. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  162. package/lib/components/field/TextArea/TextArea.js +8 -6
  163. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  164. package/lib/components/field/TextContent/TextContent.d.ts +7 -1
  165. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  166. package/lib/components/field/TextContent/TextContent.js +2 -2
  167. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  168. package/lib/components/field/TextInput/TextInput.d.ts +6 -1
  169. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  170. package/lib/components/field/TextInput/TextInput.js +26 -6
  171. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  172. package/lib/components/field/TextInput/index.js.map +1 -1
  173. package/lib/components/field/Time/Time.d.ts +5 -1
  174. package/lib/components/field/Time/Time.d.ts.map +1 -1
  175. package/lib/components/field/Time/Time.js +15 -9
  176. package/lib/components/field/Time/Time.js.map +1 -1
  177. package/lib/components/field/URL/URL.d.ts +5 -1
  178. package/lib/components/field/URL/URL.d.ts.map +1 -1
  179. package/lib/components/field/URL/URL.js +14 -8
  180. package/lib/components/field/URL/URL.js.map +1 -1
  181. package/lib/components/field/URL/index.js.map +1 -1
  182. package/lib/components/field/UserReference/UserReference.d.ts +20 -41
  183. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  184. package/lib/components/field/UserReference/UserReference.js +17 -46
  185. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  186. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  187. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  188. package/lib/components/helpers/attachmentHelpers.d.ts +6 -6
  189. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  190. package/lib/components/helpers/attachmentHelpers.js +8 -8
  191. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  192. package/lib/components/helpers/case-utils.d.ts +20 -0
  193. package/lib/components/helpers/case-utils.d.ts.map +1 -0
  194. package/lib/components/helpers/case-utils.js +82 -0
  195. package/lib/components/helpers/case-utils.js.map +1 -0
  196. package/lib/components/helpers/common-utils.d.ts +3 -0
  197. package/lib/components/helpers/common-utils.d.ts.map +1 -0
  198. package/lib/components/helpers/common-utils.js +8 -0
  199. package/lib/components/helpers/common-utils.js.map +1 -0
  200. package/lib/components/helpers/data_page.d.ts.map +1 -1
  201. package/lib/components/helpers/data_page.js +2 -3
  202. package/lib/components/helpers/data_page.js.map +1 -1
  203. package/lib/components/helpers/date-format-utils.d.ts +1 -6
  204. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  205. package/lib/components/helpers/date-format-utils.js +23 -14
  206. package/lib/components/helpers/date-format-utils.js.map +1 -1
  207. package/lib/components/helpers/event-utils.d.ts +1 -1
  208. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  209. package/lib/components/helpers/event-utils.js +3 -3
  210. package/lib/components/helpers/event-utils.js.map +1 -1
  211. package/lib/components/helpers/field-group-utils.d.ts +15 -2
  212. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  213. package/lib/components/helpers/field-group-utils.js +5 -9
  214. package/lib/components/helpers/field-group-utils.js.map +1 -1
  215. package/lib/components/helpers/formatters/Boolean.d.ts +3 -3
  216. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  217. package/lib/components/helpers/formatters/Boolean.js +9 -20
  218. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  219. package/lib/components/helpers/formatters/Currency.d.ts +6 -6
  220. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  221. package/lib/components/helpers/formatters/Currency.js +13 -13
  222. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  223. package/lib/components/helpers/formatters/CurrencyMap.d.ts +881 -1399
  224. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  225. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  226. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  227. package/lib/components/helpers/formatters/Date.d.ts +5 -5
  228. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  229. package/lib/components/helpers/formatters/Date.js +20 -20
  230. package/lib/components/helpers/formatters/Date.js.map +1 -1
  231. package/lib/components/helpers/formatters/common.d.ts +2 -2
  232. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  233. package/lib/components/helpers/formatters/common.js +4 -5
  234. package/lib/components/helpers/formatters/common.js.map +1 -1
  235. package/lib/components/helpers/formatters/index.d.ts +12 -12
  236. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  237. package/lib/components/helpers/formatters/index.js +19 -19
  238. package/lib/components/helpers/formatters/index.js.map +1 -1
  239. package/lib/components/helpers/reactContextHelpers.d.ts +3 -2
  240. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  241. package/lib/components/helpers/reactContextHelpers.js +1 -1
  242. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  243. package/lib/components/helpers/simpleTableHelpers.d.ts +5 -3
  244. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  245. package/lib/components/helpers/simpleTableHelpers.js +51 -54
  246. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  247. package/lib/components/helpers/state-utils.d.ts +4 -0
  248. package/lib/components/helpers/state-utils.d.ts.map +1 -0
  249. package/lib/components/helpers/state-utils.js +34 -0
  250. package/lib/components/helpers/state-utils.js.map +1 -0
  251. package/lib/components/helpers/template-utils.d.ts +7 -3
  252. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  253. package/lib/components/helpers/template-utils.js +1 -2
  254. package/lib/components/helpers/template-utils.js.map +1 -1
  255. package/lib/components/helpers/utils.d.ts +2 -2
  256. package/lib/components/helpers/utils.d.ts.map +1 -1
  257. package/lib/components/helpers/utils.js +11 -10
  258. package/lib/components/helpers/utils.js.map +1 -1
  259. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  260. package/lib/components/helpers/versionHelpers.js +1 -1
  261. package/lib/components/helpers/versionHelpers.js.map +1 -1
  262. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
  263. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  264. package/lib/components/infra/ActionButtons/ActionButtons.js +13 -27
  265. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  266. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  267. package/lib/components/infra/Assignment/Assignment.d.ts +9 -15
  268. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  269. package/lib/components/infra/Assignment/Assignment.js +67 -70
  270. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  271. package/lib/components/infra/Assignment/index.js.map +1 -1
  272. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +7 -15
  273. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  274. package/lib/components/infra/AssignmentCard/AssignmentCard.js +6 -20
  275. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  276. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  277. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +10 -20
  278. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  279. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +69 -190
  280. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  281. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts +12 -12
  282. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  283. package/lib/components/infra/Containers/FlowContainer/helpers.js +46 -45
  284. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  285. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  286. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  287. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  288. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +37 -0
  289. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  290. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  291. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  292. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  293. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  294. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -17
  295. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  296. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +62 -42
  297. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  298. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  299. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  300. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  301. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  302. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  303. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  304. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  305. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  306. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  307. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  308. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  309. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  310. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  311. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
  312. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  313. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +27 -45
  314. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  315. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  316. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  317. package/lib/components/infra/Containers/helpers.js +7 -0
  318. package/lib/components/infra/Containers/helpers.js.map +1 -0
  319. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -20
  320. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  321. package/lib/components/infra/DashboardFilter/DashboardFilter.js +15 -33
  322. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  323. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  324. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  325. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  326. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +8 -13
  327. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  328. package/lib/components/infra/DeferLoad/DeferLoad.js +11 -22
  329. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  330. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  331. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
  332. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  333. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +21 -27
  334. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  335. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  336. package/lib/components/infra/MultiStep/MultiStep.d.ts +10 -18
  337. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  338. package/lib/components/infra/MultiStep/MultiStep.js +34 -99
  339. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  340. package/lib/components/infra/MultiStep/index.js.map +1 -1
  341. package/lib/components/infra/NavBar/NavBar.css +103 -105
  342. package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
  343. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  344. package/lib/components/infra/NavBar/NavBar.js +22 -69
  345. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  346. package/lib/components/infra/Reference/Reference.d.ts +8 -17
  347. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  348. package/lib/components/infra/Reference/Reference.js +5 -17
  349. package/lib/components/infra/Reference/Reference.js.map +1 -1
  350. package/lib/components/infra/Region/Region.d.ts +4 -8
  351. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  352. package/lib/components/infra/Region/Region.js +2 -7
  353. package/lib/components/infra/Region/Region.js.map +1 -1
  354. package/lib/components/infra/RootContainer/RootContainer.d.ts +13 -20
  355. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  356. package/lib/components/infra/RootContainer/RootContainer.js +46 -88
  357. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  358. package/lib/components/infra/RootContainer/index.js.map +1 -1
  359. package/lib/components/infra/Stages/Stages.d.ts +5 -8
  360. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  361. package/lib/components/infra/Stages/Stages.js +20 -27
  362. package/lib/components/infra/Stages/Stages.js.map +1 -1
  363. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  364. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  365. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  366. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
  367. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  368. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +13 -17
  369. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  370. package/lib/components/infra/View/View.d.ts +13 -17
  371. package/lib/components/infra/View/View.d.ts.map +1 -1
  372. package/lib/components/infra/View/View.js +16 -66
  373. package/lib/components/infra/View/View.js.map +1 -1
  374. package/lib/components/template/AppShell/AppShell.css +22 -23
  375. package/lib/components/template/AppShell/AppShell.d.ts +20 -16
  376. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  377. package/lib/components/template/AppShell/AppShell.js +32 -50
  378. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  379. package/lib/components/template/BannerPage/BannerPage.d.ts +12 -24
  380. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  381. package/lib/components/template/BannerPage/BannerPage.js +7 -25
  382. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  383. package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -8
  384. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  385. package/lib/components/template/CaseSummary/CaseSummary.js +10 -12
  386. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  387. package/lib/components/template/CaseView/CaseView.d.ts +10 -23
  388. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  389. package/lib/components/template/CaseView/CaseView.js +38 -65
  390. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  391. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -13
  392. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  393. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +24 -20
  394. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  395. package/lib/components/template/Confirmation/Confirmation.d.ts +10 -17
  396. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  397. package/lib/components/template/Confirmation/Confirmation.js +10 -28
  398. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  399. package/lib/components/template/DataReference/DataReference.d.ts +15 -30
  400. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  401. package/lib/components/template/DataReference/DataReference.js +35 -72
  402. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  403. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  404. package/lib/components/template/DefaultForm/DefaultForm.d.ts +7 -11
  405. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  406. package/lib/components/template/DefaultForm/DefaultForm.js +11 -17
  407. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  408. package/lib/components/template/DefaultForm/utils/index.d.ts +3 -0
  409. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -0
  410. package/lib/components/template/DefaultForm/utils/index.js +27 -0
  411. package/lib/components/template/DefaultForm/utils/index.js.map +1 -0
  412. package/lib/components/template/Details/Details/Details.d.ts +7 -15
  413. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  414. package/lib/components/template/Details/Details/Details.js +8 -21
  415. package/lib/components/template/Details/Details/Details.js.map +1 -1
  416. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -16
  417. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  418. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +6 -23
  419. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  420. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -15
  421. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  422. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +9 -22
  423. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  424. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -15
  425. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  426. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +9 -22
  427. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  428. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  429. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +10 -0
  430. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
  431. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +45 -0
  432. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
  433. package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
  434. package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
  435. package/lib/components/template/Details/DynamicTabs/index.js +2 -0
  436. package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
  437. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
  438. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  439. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +12 -27
  440. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  441. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -8
  442. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  443. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -14
  444. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  445. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -16
  446. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  447. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +9 -17
  448. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  449. package/lib/components/template/ListPage/ListPage.d.ts +5 -13
  450. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  451. package/lib/components/template/ListPage/ListPage.js +7 -11
  452. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  453. package/lib/components/template/ListView/DefaultViewMeta.d.ts +1 -90
  454. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  455. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  456. package/lib/components/template/ListView/ListView.d.ts +15 -8
  457. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  458. package/lib/components/template/ListView/ListView.js +166 -257
  459. package/lib/components/template/ListView/ListView.js.map +1 -1
  460. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  461. package/lib/components/template/ListView/hooks.js +4 -7
  462. package/lib/components/template/ListView/hooks.js.map +1 -1
  463. package/lib/components/template/ListView/utils.d.ts +72 -16
  464. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  465. package/lib/components/template/ListView/utils.js +163 -33
  466. package/lib/components/template/ListView/utils.js.map +1 -1
  467. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
  468. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  469. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +5 -16
  470. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  471. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  472. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +11 -2
  473. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  474. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  475. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  476. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -15
  477. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  478. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +9 -22
  479. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  480. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  481. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +6 -2
  482. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  483. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  484. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  485. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +8 -15
  486. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  487. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +7 -18
  488. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  489. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +5 -8
  490. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  491. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -13
  492. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  493. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
  494. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  495. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +5 -8
  496. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  497. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +5 -8
  498. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  499. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -7
  500. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  501. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  502. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +9 -14
  503. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  504. package/lib/components/template/PromotedFilters/PromotedFilters.js +16 -29
  505. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  506. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  507. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  508. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +62 -13
  509. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  510. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +24 -2
  511. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  512. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +109 -129
  513. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  514. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -29
  515. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  516. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +15 -33
  517. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  518. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
  519. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  520. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +8 -29
  521. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  522. package/lib/components/template/SubTabs/SubTabs.d.ts +5 -11
  523. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  524. package/lib/components/template/SubTabs/SubTabs.js +7 -17
  525. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  526. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  527. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  528. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  529. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  530. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +6 -12
  531. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  532. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +15 -24
  533. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  534. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
  535. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  536. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +5 -8
  537. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  538. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +6 -12
  539. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  540. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +15 -21
  541. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  542. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  543. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +11 -2
  544. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  545. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +3 -11
  546. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  547. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -15
  548. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  549. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +23 -26
  550. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  551. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  552. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +6 -2
  553. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  554. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  555. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  556. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +8 -15
  557. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  558. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +7 -17
  559. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  560. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  561. package/lib/components/template/WssNavBar/WssNavBar.d.ts +18 -1
  562. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  563. package/lib/components/template/WssNavBar/WssNavBar.js +18 -37
  564. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  565. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +9 -17
  566. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  567. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +13 -37
  568. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  569. package/lib/components/widget/Attachment/Attachment.css +75 -4
  570. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  571. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  572. package/lib/components/widget/Attachment/Attachment.js +267 -340
  573. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  574. package/lib/components/widget/Attachment/index.js.map +1 -1
  575. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
  576. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  577. package/lib/components/widget/CaseHistory/CaseHistory.js +38 -36
  578. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  579. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  580. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +9 -1
  581. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  582. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  583. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  584. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  585. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
  586. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  587. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +122 -141
  588. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  589. package/lib/components/widget/Followers/Followers.d.ts +5 -6
  590. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  591. package/lib/components/widget/Followers/Followers.js +10 -25
  592. package/lib/components/widget/Followers/Followers.js.map +1 -1
  593. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  594. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  595. package/lib/components/widget/QuickCreate/QuickCreate.js +11 -10
  596. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  597. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  598. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +8 -1
  599. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  600. package/lib/components/widget/SummaryItem/SummaryItem.js +10 -25
  601. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  602. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  603. package/lib/components/widget/SummaryList/SummaryList.d.ts +8 -1
  604. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  605. package/lib/components/widget/SummaryList/SummaryList.js +6 -3
  606. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  607. package/lib/components/widget/ToDo/ToDo.css +4 -4
  608. package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
  609. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  610. package/lib/components/widget/ToDo/ToDo.js +30 -98
  611. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  612. package/lib/components_map.d.ts +3 -3
  613. package/lib/components_map.d.ts.map +1 -1
  614. package/lib/components_map.js +821 -818
  615. package/lib/components_map.js.map +1 -1
  616. package/lib/doc/KeyReleaseUpdates.md +66 -9
  617. package/lib/hooks/index.d.ts +4 -0
  618. package/lib/hooks/index.d.ts.map +1 -0
  619. package/lib/hooks/index.js +4 -0
  620. package/lib/hooks/index.js.map +1 -0
  621. package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
  622. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
  623. package/lib/hooks/useAfterInitialEffect.js +16 -0
  624. package/lib/hooks/useAfterInitialEffect.js.map +1 -0
  625. package/lib/hooks/useConsolidatedRef.d.ts +9 -0
  626. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
  627. package/lib/hooks/useConsolidatedRef.js +30 -0
  628. package/lib/hooks/useConsolidatedRef.js.map +1 -0
  629. package/lib/hooks/useUID.d.ts +8 -0
  630. package/lib/hooks/useUID.d.ts.map +1 -0
  631. package/lib/hooks/useUID.js +14 -0
  632. package/lib/hooks/useUID.js.map +1 -0
  633. package/lib/index.d.ts +1 -0
  634. package/lib/index.d.ts.map +1 -1
  635. package/lib/index.js +2 -1
  636. package/lib/index.js.map +1 -1
  637. package/lib/sdk-local-component-map.js +2 -2
  638. package/lib/sdk-pega-component-map.d.ts +21 -1
  639. package/lib/sdk-pega-component-map.js +112 -92
  640. package/lib/sdk-pega-component-map.js.map +1 -1
  641. package/lib/types/PConnProps.d.ts +41 -0
  642. package/package.json +5 -2
  643. package/lib/components/helpers/auth.d.ts +0 -16
  644. package/lib/components/helpers/auth.d.ts.map +0 -1
  645. package/lib/components/helpers/auth.js +0 -437
  646. package/lib/components/helpers/auth.js.map +0 -1
  647. package/lib/components/helpers/authManager.d.ts +0 -18
  648. package/lib/components/helpers/authManager.d.ts.map +0 -1
  649. package/lib/components/helpers/authManager.js +0 -589
  650. package/lib/components/helpers/authManager.js.map +0 -1
  651. package/lib/components/helpers/config_access.d.ts +0 -3
  652. package/lib/components/helpers/config_access.d.ts.map +0 -1
  653. package/lib/components/helpers/config_access.js +0 -268
  654. package/lib/components/helpers/config_access.js.map +0 -1
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Function that accepts array of messages as input and group them by their type and returns the resulting object
3
+ * @param {Array} inputMessages
4
+ * Eg: [
5
+ * {message: 'First Name is required', type: 'error'},
6
+ * {message: 'Last Name is required', type: 'error'},
7
+ * {message: 'Address field should be clear and precise', type: 'info'}
8
+ * ]
9
+ *
10
+ * @returns {object}
11
+ *
12
+ * Eg: {
13
+ * error: ['First Name is required', 'Last Name is required'],
14
+ * info: ['Address field should be clear and precise']
15
+ * }
16
+ */
17
+ declare function getMessagesGrouped(inputMessages: any): {};
18
+ declare function getBanners(config: any): any;
19
+ export { getMessagesGrouped, getBanners };
20
+ //# sourceMappingURL=case-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/case-utils.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AAEH,iBAAS,kBAAkB,CAAC,aAAa,KAAA,MAUxC;AA8BD,iBAAS,UAAU,CAAC,MAAM,KAAA,OAqCzB;AAED,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,82 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getComponentFromMap } from '../../bridge/helpers/sdk_component_map';
3
+ /**
4
+ * Function that accepts array of messages as input and group them by their type and returns the resulting object
5
+ * @param {Array} inputMessages
6
+ * Eg: [
7
+ * {message: 'First Name is required', type: 'error'},
8
+ * {message: 'Last Name is required', type: 'error'},
9
+ * {message: 'Address field should be clear and precise', type: 'info'}
10
+ * ]
11
+ *
12
+ * @returns {object}
13
+ *
14
+ * Eg: {
15
+ * error: ['First Name is required', 'Last Name is required'],
16
+ * info: ['Address field should be clear and precise']
17
+ * }
18
+ */
19
+ function getMessagesGrouped(inputMessages) {
20
+ const messages = {};
21
+ if (inputMessages && inputMessages instanceof Array && inputMessages.length > 0) {
22
+ inputMessages.forEach(item => {
23
+ const { message, type } = item;
24
+ messages[type] = [...(messages[type] || []), message];
25
+ });
26
+ }
27
+ return messages;
28
+ }
29
+ /**
30
+ * Function accepts a error type and variant of the banner
31
+ * @param {string} type
32
+ * Eg: 'error'
33
+ * @returns {string}
34
+ * Eg: 'urgent'
35
+ */
36
+ function getVariant(type) {
37
+ const { BANNER_VARIANT_SUCCESS, BANNER_VARIANT_INFO, BANNER_VARIANT_URGENT, MESSAGES } = PCore.getConstants();
38
+ const { MESSAGES_TYPE_ERROR, MESSAGES_TYPE_INFO, MESSAGES_TYPE_SUCCESS } = MESSAGES;
39
+ let variant;
40
+ switch (type) {
41
+ case MESSAGES_TYPE_ERROR:
42
+ variant = BANNER_VARIANT_URGENT;
43
+ break;
44
+ case MESSAGES_TYPE_INFO:
45
+ variant = BANNER_VARIANT_INFO;
46
+ break;
47
+ case MESSAGES_TYPE_SUCCESS:
48
+ variant = BANNER_VARIANT_SUCCESS;
49
+ break;
50
+ default:
51
+ variant = '';
52
+ }
53
+ return variant;
54
+ }
55
+ function getBanners(config) {
56
+ const AlertBanner = getComponentFromMap('AlertBanner');
57
+ const { target, pageMessages, httpMessages } = config;
58
+ const { PAGE } = PCore.getConstants();
59
+ const { clearMessages } = PCore.getMessageManager();
60
+ const banners = [];
61
+ const groupedPageMessages = getMessagesGrouped(pageMessages);
62
+ Object.keys(groupedPageMessages).forEach(type => {
63
+ const messagesByType = groupedPageMessages[type];
64
+ const variant = getVariant(type);
65
+ const pageMessagesBannerID = `${target}_${PAGE}_${type}`.toLowerCase().replace('/', '_');
66
+ banners.push(_jsx(AlertBanner, { id: pageMessagesBannerID, variant: variant, messages: messagesByType, onDismiss: variant === 'urgent'
67
+ ? ''
68
+ : () => {
69
+ clearMessages({
70
+ category: PAGE,
71
+ type,
72
+ context: target
73
+ });
74
+ } }));
75
+ });
76
+ if (httpMessages && httpMessages.length > 0) {
77
+ banners.push(_jsx(AlertBanner, { id: 'modalViewContainerBanner', variant: 'urgent', messages: httpMessages }));
78
+ }
79
+ return banners;
80
+ }
81
+ export { getMessagesGrouped, getBanners };
82
+ //# sourceMappingURL=case-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/case-utils.tsx"],"names":[],"mappings":"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","sourcesContent":["import { getComponentFromMap } from '../../bridge/helpers/sdk_component_map';\n\n/**\n * Function that accepts array of messages as input and group them by their type and returns the resulting object\n * @param {Array} inputMessages\n * Eg: [\n * {message: 'First Name is required', type: 'error'},\n * {message: 'Last Name is required', type: 'error'},\n * {message: 'Address field should be clear and precise', type: 'info'}\n * ]\n *\n * @returns {object}\n *\n * Eg: {\n * error: ['First Name is required', 'Last Name is required'],\n * info: ['Address field should be clear and precise']\n * }\n */\n\nfunction getMessagesGrouped(inputMessages) {\n const messages = {};\n\n if (inputMessages && inputMessages instanceof Array && inputMessages.length > 0) {\n inputMessages.forEach(item => {\n const { message, type } = item;\n messages[type] = [...(messages[type] || []), message];\n });\n }\n return messages;\n}\n\n/**\n * Function accepts a error type and variant of the banner\n * @param {string} type\n * Eg: 'error'\n * @returns {string}\n * Eg: 'urgent'\n */\nfunction getVariant(type) {\n const { BANNER_VARIANT_SUCCESS, BANNER_VARIANT_INFO, BANNER_VARIANT_URGENT, MESSAGES } = PCore.getConstants();\n const { MESSAGES_TYPE_ERROR, MESSAGES_TYPE_INFO, MESSAGES_TYPE_SUCCESS } = MESSAGES;\n\n let variant;\n switch (type) {\n case MESSAGES_TYPE_ERROR:\n variant = BANNER_VARIANT_URGENT;\n break;\n case MESSAGES_TYPE_INFO:\n variant = BANNER_VARIANT_INFO;\n break;\n case MESSAGES_TYPE_SUCCESS:\n variant = BANNER_VARIANT_SUCCESS;\n break;\n default:\n variant = '';\n }\n return variant;\n}\n\nfunction getBanners(config) {\n const AlertBanner = getComponentFromMap('AlertBanner');\n const { target, pageMessages, httpMessages } = config;\n const { PAGE } = PCore.getConstants();\n const { clearMessages } = PCore.getMessageManager();\n const banners: any = [];\n const groupedPageMessages = getMessagesGrouped(pageMessages);\n\n Object.keys(groupedPageMessages).forEach(type => {\n const messagesByType = groupedPageMessages[type];\n const variant = getVariant(type);\n const pageMessagesBannerID = `${target}_${PAGE}_${type}`.toLowerCase().replace('/', '_');\n banners.push(\n <AlertBanner\n id={pageMessagesBannerID}\n variant={variant}\n messages={messagesByType}\n onDismiss={\n variant === 'urgent'\n ? ''\n : () => {\n clearMessages({\n category: PAGE,\n type,\n context: target\n } as any);\n }\n }\n />\n );\n });\n\n if (httpMessages && httpMessages.length > 0) {\n banners.push(<AlertBanner id='modalViewContainerBanner' variant='urgent' messages={httpMessages} />);\n }\n\n return banners;\n}\n\nexport { getMessagesGrouped, getBanners };\n"]}
@@ -0,0 +1,3 @@
1
+ export declare function isEmptyObject(obj: Object): boolean;
2
+ export declare function isInfinity23OrHigher(): boolean;
3
+ //# sourceMappingURL=common-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/common-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,YAGnC"}
@@ -0,0 +1,8 @@
1
+ export function isEmptyObject(obj) {
2
+ return Object.keys(obj).length === 0;
3
+ }
4
+ export function isInfinity23OrHigher() {
5
+ const pCoreVersion = PCore.getPCoreVersion();
6
+ return ['8.23.0', '23.1.1'].includes(pCoreVersion);
7
+ }
8
+ //# sourceMappingURL=common-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/common-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,MAAM,YAAY,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;IAC7C,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;AACrD,CAAC","sourcesContent":["export function isEmptyObject(obj: Object): boolean {\n return Object.keys(obj).length === 0;\n}\n\nexport function isInfinity23OrHigher() {\n const pCoreVersion = PCore.getPCoreVersion();\n return ['8.23.0', '23.1.1'].includes(pCoreVersion);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"data_page.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/data_page.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,wEAoBvB,CAAC"}
1
+ {"version":3,"file":"data_page.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/data_page.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,wEAmBvB,CAAC"}
@@ -3,12 +3,11 @@ export const getDataPage = (dataPageName, parameters, context) => {
3
3
  let dataViewParams;
4
4
  if (parameters) {
5
5
  dataViewParams = {
6
- 'dataViewParameters': parameters
6
+ dataViewParameters: parameters
7
7
  };
8
8
  }
9
9
  return new Promise((resolve, reject) => {
10
- PCore.getDataApiUtils()
11
- .getData(dataPageName, dataViewParams, context)
10
+ PCore.getDataApiUtils().getData(dataPageName, dataViewParams, context)
12
11
  .then(response => {
13
12
  resolve(response.data.data);
14
13
  })
@@ -1 +1 @@
1
- {"version":3,"file":"data_page.js","sourceRoot":"","sources":["../../../src/components/helpers/data_page.ts"],"names":[],"mappings":"AAEA,wDAAwD;AACxD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;IAC/D,IAAI,cAAc,CAAC;IACnB,IAAG,UAAU,EAAC;QACZ,cAAc,GAAG;YACf,oBAAoB,EAAE,UAAU;SACjC,CAAC;KACH;IACD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,KAAK,CAAC,eAAe,EAAE;aACpB,OAAO,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC;aAC9C,IAAI,CAAC,QAAQ,CAAC,EAAE;YACf,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE;YACT,IAAI,CAAC,EAAE;gBACL,8FAA8F;gBAC9F,MAAM,CAAC,CAAC,CAAC,CAAC;aACX;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["declare const PCore;\n\n// eslint-disable-next-line import/prefer-default-export\nexport const getDataPage = (dataPageName, parameters, context) => {\n let dataViewParams;\n if(parameters){\n dataViewParams = {\n 'dataViewParameters': parameters\n };\n }\n return new Promise((resolve, reject) => {\n PCore.getDataApiUtils()\n .getData(dataPageName, dataViewParams, context)\n .then(response => {\n resolve(response.data.data);\n })\n .catch(e => {\n if (e) {\n // check specific error if 401, and wiped out if so stored token is stale. Fetcch new tokens.\n reject(e);\n }\n });\n });\n};\n"]}
1
+ {"version":3,"file":"data_page.js","sourceRoot":"","sources":["../../../src/components/helpers/data_page.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;IAC/D,IAAI,cAAc,CAAC;IACnB,IAAI,UAAU,EAAE;QACd,cAAc,GAAG;YACf,kBAAkB,EAAE,UAAU;SAC/B,CAAC;KACH;IACD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACpC,KAAK,CAAC,eAAe,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAS;aAC5E,IAAI,CAAC,QAAQ,CAAC,EAAE;YACf,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE;YACT,IAAI,CAAC,EAAE;gBACL,8FAA8F;gBAC9F,MAAM,CAAC,CAAC,CAAC,CAAC;aACX;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/prefer-default-export\nexport const getDataPage = (dataPageName, parameters, context) => {\n let dataViewParams;\n if (parameters) {\n dataViewParams = {\n dataViewParameters: parameters\n };\n }\n return new Promise((resolve, reject) => {\n (PCore.getDataApiUtils().getData(dataPageName, dataViewParams, context) as any)\n .then(response => {\n resolve(response.data.data);\n })\n .catch(e => {\n if (e) {\n // check specific error if 401, and wiped out if so stored token is stale. Fetcch new tokens.\n reject(e);\n }\n });\n });\n};\n"]}
@@ -4,10 +4,5 @@ export declare const dateFormatInfoDefault: {
4
4
  dateFormatStringLC: string;
5
5
  dateFormatMask: string;
6
6
  };
7
- export declare const getDateFormatInfo: () => {
8
- dateFormatString: string;
9
- dateFormatStringLong: string;
10
- dateFormatStringLC: string;
11
- dateFormatMask: string;
12
- };
7
+ export declare const getDateFormatInfo: () => typeof dateFormatInfoDefault;
13
8
  //# sourceMappingURL=date-format-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-format-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/date-format-utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;CAuD7B,CAAA"}
1
+ {"version":3,"file":"date-format-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/date-format-utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,4BAkEpC,CAAC"}
@@ -1,13 +1,15 @@
1
1
  import { getLocale } from './formatters/common';
2
2
  export const dateFormatInfoDefault = {
3
- dateFormatString: "MM/DD/YYYY",
4
- dateFormatStringLong: "MMM DD, YYYY",
5
- dateFormatStringLC: "mm/dd/yyyy",
6
- dateFormatMask: "__/__/____"
3
+ dateFormatString: 'MM/DD/YYYY',
4
+ dateFormatStringLong: 'MMM DD, YYYY',
5
+ dateFormatStringLC: 'mm/dd/yyyy',
6
+ dateFormatMask: '__/__/____'
7
7
  };
8
8
  export const getDateFormatInfo = () => {
9
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
10
+ const localeCategory = 'CosmosFields';
9
11
  const theDateFormatInfo = dateFormatInfoDefault;
10
- const theLocale = getLocale(); // PCore.getEnvironmentInfo().getUseLocale() || "US-en";
12
+ const theLocale = getLocale();
11
13
  // NOTE: this date was chosen since it has a day larger than 12. If you change it,
12
14
  // you'll need to change the indexOf values below!
13
15
  const theTestDate = new Date(Date.parse('30 November 2023 12:00:00 GMT'));
@@ -18,27 +20,34 @@ export const getDateFormatInfo = () => {
18
20
  const locMM = theTestDateLocaleString.indexOf('11');
19
21
  const locDD = theTestDateLocaleString.indexOf('30');
20
22
  const locYYYY = theTestDateLocaleString.indexOf('2023');
23
+ // If localized placeholder exists for one of day/month/year then show it otherwise fall back to ddmmyyyy
24
+ const localizedPlaceholderExists = localizedVal('month_placeholder', localeCategory) !== 'month_placeholder' ||
25
+ localizedVal('day_placeholder', localeCategory) !== 'day_placeholder' ||
26
+ localizedVal('year_placeholder', localeCategory) !== 'year_placeholder';
21
27
  const arrPieces = [
22
28
  {
23
29
  loc: locMM,
24
30
  format: 'MM',
25
31
  longFormat: 'MMM',
26
- placeholder: 'mm',
27
- mask: '__'
32
+ placeholder: localizedPlaceholderExists ? localizedVal('month_placeholder', localeCategory) : 'mm',
33
+ mask: '__',
34
+ separator: theTestDateLocaleString[locMM + 2]
28
35
  },
29
36
  {
30
37
  loc: locDD,
31
38
  format: 'DD',
32
39
  longFormat: 'DD',
33
- placeholder: 'dd',
34
- mask: '__'
40
+ placeholder: localizedPlaceholderExists ? localizedVal('day_placeholder', localeCategory) : 'dd',
41
+ mask: '__',
42
+ separator: theTestDateLocaleString[locDD + 2]
35
43
  },
36
44
  {
37
45
  loc: locYYYY,
38
46
  format: 'YYYY',
39
47
  longFormat: 'YYYY',
40
- placeholder: 'yyyy',
41
- mask: '____'
48
+ placeholder: localizedPlaceholderExists ? localizedVal('year_placeholder', localeCategory) : 'yyyy',
49
+ mask: '____',
50
+ separator: theTestDateLocaleString[locYYYY + 4]
42
51
  }
43
52
  ];
44
53
  // Sort the associative array by order of appearance (loc) of each piece
@@ -50,10 +59,10 @@ export const getDateFormatInfo = () => {
50
59
  return 0;
51
60
  });
52
61
  // Construct the structure to return...
53
- theDateFormatInfo.dateFormatString = `${arrPieces[0].format}/${arrPieces[1].format}/${arrPieces[2].format}`;
62
+ theDateFormatInfo.dateFormatString = `${arrPieces[0].format}${arrPieces[0].separator}${arrPieces[1].format}${arrPieces[1].separator}${arrPieces[2].format}`;
54
63
  theDateFormatInfo.dateFormatStringLong = `${arrPieces[0].longFormat} ${arrPieces[1].longFormat}, ${arrPieces[2].longFormat}`;
55
- theDateFormatInfo.dateFormatStringLC = `${arrPieces[0].placeholder}/${arrPieces[1].placeholder}/${arrPieces[2].placeholder}`;
56
- theDateFormatInfo.dateFormatMask = `${arrPieces[0].mask}/${arrPieces[1].mask}/${arrPieces[2].mask}`;
64
+ theDateFormatInfo.dateFormatStringLC = `${arrPieces[0].placeholder}${arrPieces[0].separator}${arrPieces[1].placeholder}${arrPieces[1].separator}${arrPieces[2].placeholder}`;
65
+ theDateFormatInfo.dateFormatMask = `${arrPieces[0].mask}${arrPieces[0].separator}${arrPieces[1].mask}${arrPieces[1].separator}${arrPieces[2].mask}`;
57
66
  return theDateFormatInfo;
58
67
  };
59
68
  //# sourceMappingURL=date-format-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-format-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/date-format-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,gBAAgB,EAAE,YAAY;IAC9B,oBAAoB,EAAE,cAAc;IACpC,kBAAkB,EAAE,YAAY;IAChC,cAAc,EAAE,YAAY;CAC7B,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;IAChD,MAAM,SAAS,GAAG,SAAS,EAAE,CAAC,CAAC,wDAAwD;IAEvF,kFAAkF;IAClF,mDAAmD;IACnD,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC;IAC1E,MAAM,uBAAuB,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAEvF,8FAA8F;IAE9F,qFAAqF;IACrF,sEAAsE;IACtE,MAAM,KAAK,GAAG,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,OAAO,GAAG,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAExD,MAAM,SAAS,GAAG;QAChB;YACE,GAAG,EAAE,KAAK;YACV,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,KAAK;YACjB,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,IAAI;SACX;QACD;YACE,GAAG,EAAE,KAAK;YACV,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,IAAI;SACX;QACD;YACE,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;SACb;KACD,CAAC;IAEH,wEAAwE;IACxE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACtB,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG;YAAE,OAAO,CAAC,CAAC,CAAC;QAC7B,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG;YAAE,OAAO,CAAC,CAAC;QAC5B,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;IAEH,uCAAuC;IACvC,iBAAiB,CAAC,gBAAgB,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5G,iBAAiB,CAAC,oBAAoB,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7H,iBAAiB,CAAC,kBAAkB,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7H,iBAAiB,CAAC,cAAc,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEpG,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAA","sourcesContent":["import { getLocale } from './formatters/common';\n\n\nexport const dateFormatInfoDefault = {\n dateFormatString: \"MM/DD/YYYY\",\n dateFormatStringLong: \"MMM DD, YYYY\",\n dateFormatStringLC: \"mm/dd/yyyy\",\n dateFormatMask: \"__/__/____\"\n}\n\nexport const getDateFormatInfo = () => {\n const theDateFormatInfo = dateFormatInfoDefault;\n const theLocale = getLocale(); // PCore.getEnvironmentInfo().getUseLocale() || \"US-en\";\n\n // NOTE: this date was chosen since it has a day larger than 12. If you change it,\n // you'll need to change the indexOf values below!\n const theTestDate = new Date(Date.parse('30 November 2023 12:00:00 GMT'));\n const theTestDateLocaleString = new Intl.DateTimeFormat(theLocale).format(theTestDate);\n\n // console.log(`theLocale: ${theLocale} theTestDateLocaleString: ${theTestDateLocaleString}`);\n\n // Build the format string based on where '11' (mm), '30' (dd), and '2023' (yyyy) are\n // Example: US locations are 0, 3, 6 but for NL locations are 3, 0, 6\n const locMM = theTestDateLocaleString.indexOf('11');\n const locDD = theTestDateLocaleString.indexOf('30');\n const locYYYY = theTestDateLocaleString.indexOf('2023');\n\n const arrPieces = [\n {\n loc: locMM,\n format: 'MM',\n longFormat: 'MMM',\n placeholder: 'mm',\n mask: '__'\n },\n {\n loc: locDD,\n format: 'DD',\n longFormat: 'DD',\n placeholder: 'dd',\n mask: '__'\n },\n {\n loc: locYYYY,\n format: 'YYYY',\n longFormat: 'YYYY',\n placeholder: 'yyyy',\n mask: '____'\n }\n ];\n\n // Sort the associative array by order of appearance (loc) of each piece\n arrPieces.sort((a, b) => {\n if (a.loc < b.loc) return -1;\n if (a.loc > b.loc) return 1;\n return 0;\n });\n\n // Construct the structure to return...\n theDateFormatInfo.dateFormatString = `${arrPieces[0].format}/${arrPieces[1].format}/${arrPieces[2].format}`;\n theDateFormatInfo.dateFormatStringLong = `${arrPieces[0].longFormat} ${arrPieces[1].longFormat}, ${arrPieces[2].longFormat}`;\n theDateFormatInfo.dateFormatStringLC = `${arrPieces[0].placeholder}/${arrPieces[1].placeholder}/${arrPieces[2].placeholder}`;\n theDateFormatInfo.dateFormatMask = `${arrPieces[0].mask}/${arrPieces[1].mask}/${arrPieces[2].mask}`;\n\n return theDateFormatInfo;\n}\n"]}
1
+ {"version":3,"file":"date-format-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/date-format-utils.ts"],"names":[],"mappings":"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","sourcesContent":["import { getLocale } from './formatters/common';\n\nexport const dateFormatInfoDefault = {\n dateFormatString: 'MM/DD/YYYY',\n dateFormatStringLong: 'MMM DD, YYYY',\n dateFormatStringLC: 'mm/dd/yyyy',\n dateFormatMask: '__/__/____'\n};\n\nexport const getDateFormatInfo = (): typeof dateFormatInfoDefault => {\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'CosmosFields';\n const theDateFormatInfo = dateFormatInfoDefault;\n const theLocale = getLocale();\n\n // NOTE: this date was chosen since it has a day larger than 12. If you change it,\n // you'll need to change the indexOf values below!\n const theTestDate = new Date(Date.parse('30 November 2023 12:00:00 GMT'));\n const theTestDateLocaleString = new Intl.DateTimeFormat(theLocale).format(theTestDate);\n\n // console.log(`theLocale: ${theLocale} theTestDateLocaleString: ${theTestDateLocaleString}`);\n\n // Build the format string based on where '11' (mm), '30' (dd), and '2023' (yyyy) are\n // Example: US locations are 0, 3, 6 but for NL locations are 3, 0, 6\n const locMM = theTestDateLocaleString.indexOf('11');\n const locDD = theTestDateLocaleString.indexOf('30');\n const locYYYY = theTestDateLocaleString.indexOf('2023');\n\n // If localized placeholder exists for one of day/month/year then show it otherwise fall back to ddmmyyyy\n const localizedPlaceholderExists =\n localizedVal('month_placeholder', localeCategory) !== 'month_placeholder' ||\n localizedVal('day_placeholder', localeCategory) !== 'day_placeholder' ||\n localizedVal('year_placeholder', localeCategory) !== 'year_placeholder';\n\n const arrPieces = [\n {\n loc: locMM,\n format: 'MM',\n longFormat: 'MMM',\n placeholder: localizedPlaceholderExists ? localizedVal('month_placeholder', localeCategory) : 'mm',\n mask: '__',\n separator: theTestDateLocaleString[locMM + 2]\n },\n {\n loc: locDD,\n format: 'DD',\n longFormat: 'DD',\n placeholder: localizedPlaceholderExists ? localizedVal('day_placeholder', localeCategory) : 'dd',\n mask: '__',\n separator: theTestDateLocaleString[locDD + 2]\n },\n {\n loc: locYYYY,\n format: 'YYYY',\n longFormat: 'YYYY',\n placeholder: localizedPlaceholderExists ? localizedVal('year_placeholder', localeCategory) : 'yyyy',\n mask: '____',\n separator: theTestDateLocaleString[locYYYY + 4]\n }\n ];\n\n // Sort the associative array by order of appearance (loc) of each piece\n arrPieces.sort((a, b) => {\n if (a.loc < b.loc) return -1;\n if (a.loc > b.loc) return 1;\n return 0;\n });\n\n // Construct the structure to return...\n theDateFormatInfo.dateFormatString = `${arrPieces[0].format}${arrPieces[0].separator}${arrPieces[1].format}${arrPieces[1].separator}${arrPieces[2].format}`;\n theDateFormatInfo.dateFormatStringLong = `${arrPieces[0].longFormat} ${arrPieces[1].longFormat}, ${arrPieces[2].longFormat}`;\n theDateFormatInfo.dateFormatStringLC = `${arrPieces[0].placeholder}${arrPieces[0].separator}${arrPieces[1].placeholder}${arrPieces[1].separator}${arrPieces[2].placeholder}`;\n theDateFormatInfo.dateFormatMask = `${arrPieces[0].mask}${arrPieces[0].separator}${arrPieces[1].mask}${arrPieces[1].separator}${arrPieces[2].mask}`;\n\n return theDateFormatInfo;\n};\n"]}
@@ -1,3 +1,3 @@
1
+ declare const handleEvent: (actions: any, eventType: string, propName: string, value: string) => void;
1
2
  export default handleEvent;
2
- declare function handleEvent(actions: any, eventType: any, propName: any, value: any): void;
3
3
  //# sourceMappingURL=event-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/event-utils.js"],"names":[],"mappings":";AAEA,4FAeC"}
1
+ {"version":3,"file":"event-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/event-utils.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,YAAa,GAAG,aAAa,MAAM,YAAY,MAAM,SAAS,MAAM,SAepF,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,13 +1,13 @@
1
1
  // From DX Components src/utils/event-utils.js
2
2
  const handleEvent = (actions, eventType, propName, value) => {
3
3
  switch (eventType) {
4
- case "change":
4
+ case 'change':
5
5
  actions.updateFieldValue(propName, value);
6
6
  break;
7
- case "blur":
7
+ case 'blur':
8
8
  actions.triggerFieldChange(propName, value);
9
9
  break;
10
- case "changeNblur":
10
+ case 'changeNblur':
11
11
  actions.updateFieldValue(propName, value);
12
12
  actions.triggerFieldChange(propName, value);
13
13
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"event-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/event-utils.js"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAC1D,QAAQ,SAAS,EAAE;QACjB,KAAK,QAAQ;YACX,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC1C,MAAM;QACR,KAAK,MAAM;YACT,OAAO,CAAC,kBAAkB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC5C,MAAM;QACR,KAAK,aAAa;YAChB,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC1C,OAAO,CAAC,kBAAkB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC5C,MAAM;QACR;YACE,MAAM;KACT;AACH,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["// From DX Components src/utils/event-utils.js\n\nconst handleEvent = (actions, eventType, propName, value) => {\n switch (eventType) {\n case \"change\":\n actions.updateFieldValue(propName, value);\n break;\n case \"blur\":\n actions.triggerFieldChange(propName, value);\n break;\n case \"changeNblur\":\n actions.updateFieldValue(propName, value);\n actions.triggerFieldChange(propName, value);\n break;\n default:\n break;\n }\n};\n\nexport default handleEvent;\n"]}
1
+ {"version":3,"file":"event-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/event-utils.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,MAAM,WAAW,GAAG,CAAC,OAAY,EAAE,SAAiB,EAAE,QAAgB,EAAE,KAAa,EAAE,EAAE;IACvF,QAAQ,SAAS,EAAE;QACjB,KAAK,QAAQ;YACX,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC1C,MAAM;QACR,KAAK,MAAM;YACT,OAAO,CAAC,kBAAkB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC5C,MAAM;QACR,KAAK,aAAa;YAChB,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC1C,OAAO,CAAC,kBAAkB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC5C,MAAM;QACR;YACE,MAAM;KACT;AACH,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["// From DX Components src/utils/event-utils.js\n\nconst handleEvent = (actions: any, eventType: string, propName: string, value: string) => {\n switch (eventType) {\n case 'change':\n actions.updateFieldValue(propName, value);\n break;\n case 'blur':\n actions.triggerFieldChange(propName, value);\n break;\n case 'changeNblur':\n actions.updateFieldValue(propName, value);\n actions.triggerFieldChange(propName, value);\n break;\n default:\n break;\n }\n};\n\nexport default handleEvent;\n"]}
@@ -1,3 +1,16 @@
1
- export function getReferenceList(pConn: any): string;
2
- export function buildView(pConn: any, index: any, viewConfigPath: any): any;
1
+ import { ReactElement } from 'react';
2
+ /**
3
+ *
4
+ * @param {*} pConn - pConnect object of the view
5
+ * @returns {string} - returns the name of referenceList
6
+ */
7
+ export declare const getReferenceList: (pConn: any) => any;
8
+ /**
9
+ * creates and returns react element of the view
10
+ * @param {*} pConn - pConnect object of the view
11
+ * @param {*} index - index of the fieldGroup item
12
+ * @param {*} viewConfigPath - boolean value to check for children in config
13
+ * @returns {*} - return the react element of the view
14
+ */
15
+ export declare function buildView(pConn: any, index: any, viewConfigPath: any): ReactElement;
3
16
  //# sourceMappingURL=field-group-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-group-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/field-group-utils.js"],"names":[],"mappings":"AAUO,8CAHM,MAAM,CAclB;AASM,4EA0BN"}
1
+ {"version":3,"file":"field-group-utils.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/field-group-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAIpD;;;;GAIG;AAEH,eAAO,MAAM,gBAAgB,qBAW5B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA,EAAE,cAAc,KAAA,GAAG,YAAY,CAyBpE"}
@@ -25,16 +25,13 @@ export const getReferenceList = pConn => {
25
25
  * @param {*} viewConfigPath - boolean value to check for children in config
26
26
  * @returns {*} - return the react element of the view
27
27
  */
28
- export const buildView = (pConn, index, viewConfigPath) => {
28
+ export function buildView(pConn, index, viewConfigPath) {
29
29
  const context = pConn.getContextName();
30
30
  const referenceList = getReferenceList(pConn);
31
31
  const isDatapage = referenceList.startsWith('D_');
32
- const pageReference = isDatapage
33
- ? `${referenceList}[${index}]`
34
- : `${pConn.getPageReference()}${referenceList}[${index}]`;
35
- const meta = viewConfigPath
36
- ? pConn.getRawMetadata().children[0].children[0]
37
- : pConn.getRawMetadata().children[0];
32
+ const pageReference = isDatapage ? `${referenceList}[${index}]` : `${pConn.getPageReference()}${referenceList}[${index}]`;
33
+ const meta = viewConfigPath ? pConn.getRawMetadata().children[0].children[0] : pConn.getRawMetadata().children[0];
34
+ delete meta?.config?.ruleClass;
38
35
  const config = {
39
36
  meta,
40
37
  options: {
@@ -44,11 +41,10 @@ export const buildView = (pConn, index, viewConfigPath) => {
44
41
  hasForm: true
45
42
  }
46
43
  };
47
- // eslint-disable-next-line no-undef
48
44
  const view = PCore.createPConnect(config);
49
45
  if (pConn.getConfigProps()?.displayMode === 'LABELS_LEFT') {
50
46
  view.getPConnect()?.setInheritedProp('displayMode', 'LABELS_LEFT');
51
47
  }
52
48
  return createElement(createPConnectComponent(), view);
53
- };
49
+ }
54
50
  //# sourceMappingURL=field-group-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-group-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/field-group-utils.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,uBAAuB,MAAM,6BAA6B,CAAC;AAElE;;;;GAIG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,EAAE;IACtC,IAAI,WAAW,GAAG,KAAK,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC9E,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QAC9B,WAAW,GAAG,KAAK,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAAC;QAC5D,IAAI,WAAW,EAAE,SAAS,EAAE;YAC1B,WAAW,GAAG,WAAW,EAAE,SAAS,CAAC;SACtC;aAAM,IAAI,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;YAC9E,WAAW,GAAG,GAAG,WAAW,YAAY,CAAC;SAC1C;KACF;IACD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IACxD,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;IACvC,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,aAAa,GAAG,UAAU;QAC9B,CAAC,CAAC,GAAG,aAAa,IAAI,KAAK,GAAG;QAC9B,CAAC,CAAC,GAAG,KAAK,CAAC,gBAAgB,EAAE,GAAG,aAAa,IAAI,KAAK,GAAG,CAAC;IAC5D,MAAM,IAAI,GAAG,cAAc;QACzB,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,MAAM,GAAG;QACb,IAAI;QACJ,OAAO,EAAE;YACP,OAAO;YACP,aAAa;YACb,aAAa;YACb,OAAO,EAAE,IAAI;SACd;KACF,CAAC;IACF,oCAAoC;IACpC,MAAM,IAAI,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,KAAK,CAAC,cAAc,EAAE,EAAE,WAAW,KAAK,aAAa,EAAE;QACzD,IAAI,CAAC,WAAW,EAAE,EAAE,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;KACpE;IACD,OAAO,aAAa,CAAC,uBAAuB,EAAE,EAAE,IAAI,CAAC,CAAC;AACxD,CAAC,CAAC","sourcesContent":["import { createElement } from 'react';\n\nimport createPConnectComponent from '../../bridge/react_pconnect';\n\n/**\n *\n * @param {*} pConn - pConnect object of the view\n * @returns {string} - returns the name of referenceList\n */\n\nexport const getReferenceList = pConn => {\n let resolvePage = pConn.getComponentConfig().referenceList.replace('@P ', '');\n if (resolvePage.includes('D_')) {\n resolvePage = pConn.resolveDatasourceReference(resolvePage);\n if (resolvePage?.pxResults) {\n resolvePage = resolvePage?.pxResults;\n } else if (resolvePage.startsWith('D_') && !resolvePage.endsWith('.pxResults')) {\n resolvePage = `${resolvePage}.pxResults`;\n }\n }\n return resolvePage;\n};\n\n/**\n * creates and returns react element of the view\n * @param {*} pConn - pConnect object of the view\n * @param {*} index - index of the fieldGroup item\n * @param {*} viewConfigPath - boolean value to check for children in config\n * @returns {*} - return the react element of the view\n */\nexport const buildView = (pConn, index, viewConfigPath) => {\n const context = pConn.getContextName();\n const referenceList = getReferenceList(pConn);\n\n const isDatapage = referenceList.startsWith('D_');\n const pageReference = isDatapage\n ? `${referenceList}[${index}]`\n : `${pConn.getPageReference()}${referenceList}[${index}]`;\n const meta = viewConfigPath\n ? pConn.getRawMetadata().children[0].children[0]\n : pConn.getRawMetadata().children[0];\n const config = {\n meta,\n options: {\n context,\n pageReference,\n referenceList,\n hasForm: true\n }\n };\n // eslint-disable-next-line no-undef\n const view = PCore.createPConnect(config);\n if (pConn.getConfigProps()?.displayMode === 'LABELS_LEFT') {\n view.getPConnect()?.setInheritedProp('displayMode', 'LABELS_LEFT');\n }\n return createElement(createPConnectComponent(), view);\n};\n"]}
1
+ {"version":3,"file":"field-group-utils.js","sourceRoot":"","sources":["../../../src/components/helpers/field-group-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAEpD,OAAO,uBAAuB,MAAM,6BAA6B,CAAC;AAElE;;;;GAIG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,EAAE;IACtC,IAAI,WAAW,GAAG,KAAK,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC9E,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QAC9B,WAAW,GAAG,KAAK,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAAC;QAC5D,IAAI,WAAW,EAAE,SAAS,EAAE;YAC1B,WAAW,GAAG,WAAW,EAAE,SAAS,CAAC;SACtC;aAAM,IAAI,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;YAC9E,WAAW,GAAG,GAAG,WAAW,YAAY,CAAC;SAC1C;KACF;IACD,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc;IACpD,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;IACvC,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,aAAa,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,gBAAgB,EAAE,GAAG,aAAa,IAAI,KAAK,GAAG,CAAC;IAC1H,MAAM,IAAI,GAAG,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElH,OAAO,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC;IAE/B,MAAM,MAAM,GAAG;QACb,IAAI;QACJ,OAAO,EAAE;YACP,OAAO;YACP,aAAa;YACb,aAAa;YACb,OAAO,EAAE,IAAI;SACd;KACF,CAAC;IAEF,MAAM,IAAI,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,KAAK,CAAC,cAAc,EAAE,EAAE,WAAW,KAAK,aAAa,EAAE;QACzD,IAAI,CAAC,WAAW,EAAE,EAAE,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;KACpE;IACD,OAAO,aAAa,CAAC,uBAAuB,EAAE,EAAE,IAAI,CAAC,CAAC;AACxD,CAAC","sourcesContent":["import { createElement, ReactElement } from 'react';\n\nimport createPConnectComponent from '../../bridge/react_pconnect';\n\n/**\n *\n * @param {*} pConn - pConnect object of the view\n * @returns {string} - returns the name of referenceList\n */\n\nexport const getReferenceList = pConn => {\n let resolvePage = pConn.getComponentConfig().referenceList.replace('@P ', '');\n if (resolvePage.includes('D_')) {\n resolvePage = pConn.resolveDatasourceReference(resolvePage);\n if (resolvePage?.pxResults) {\n resolvePage = resolvePage?.pxResults;\n } else if (resolvePage.startsWith('D_') && !resolvePage.endsWith('.pxResults')) {\n resolvePage = `${resolvePage}.pxResults`;\n }\n }\n return resolvePage;\n};\n\n/**\n * creates and returns react element of the view\n * @param {*} pConn - pConnect object of the view\n * @param {*} index - index of the fieldGroup item\n * @param {*} viewConfigPath - boolean value to check for children in config\n * @returns {*} - return the react element of the view\n */\nexport function buildView(pConn, index, viewConfigPath): ReactElement {\n const context = pConn.getContextName();\n const referenceList = getReferenceList(pConn);\n\n const isDatapage = referenceList.startsWith('D_');\n const pageReference = isDatapage ? `${referenceList}[${index}]` : `${pConn.getPageReference()}${referenceList}[${index}]`;\n const meta = viewConfigPath ? pConn.getRawMetadata().children[0].children[0] : pConn.getRawMetadata().children[0];\n\n delete meta?.config?.ruleClass;\n\n const config = {\n meta,\n options: {\n context,\n pageReference,\n referenceList,\n hasForm: true\n }\n };\n\n const view = PCore.createPConnect(config);\n if (pConn.getConfigProps()?.displayMode === 'LABELS_LEFT') {\n view.getPConnect()?.setInheritedProp('displayMode', 'LABELS_LEFT');\n }\n return createElement(createPConnectComponent(), view);\n}\n"]}
@@ -1,5 +1,5 @@
1
- declare namespace _default {
2
- function TrueFalse(value: any, options: any): any;
3
- }
1
+ declare const _default: {
2
+ TrueFalse: (value: any, options: any) => any;
3
+ };
4
4
  export default _default;
5
5
  //# sourceMappingURL=Boolean.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../../src/components/helpers/formatters/Boolean.js"],"names":[],"mappings":";IA+Ba,kDAKP"}
1
+ {"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../../src/components/helpers/formatters/Boolean.ts"],"names":[],"mappings":";;;AAaA,wBAOE"}
@@ -1,31 +1,20 @@
1
- function Boolean(value, { allowEmpty = true, tick = "", cross = "" } = {}) {
2
- if ((!allowEmpty && !value) ||
3
- value === false ||
4
- value?.toString()?.toLowerCase() === "false" ||
5
- value === 0 ||
6
- value === "0") {
7
- return cross || "";
1
+ function Boolean(value, { allowEmpty = true, tick = '', cross = '' } = {}) {
2
+ if ((!allowEmpty && !value) || value === false || value?.toString()?.toLowerCase() === 'false' || value === 0 || value === '0') {
3
+ return cross || '';
8
4
  }
9
- if (value === true ||
10
- value?.toString()?.toLowerCase() === "true" ||
11
- value === 1 ||
12
- value === "1") {
13
- return tick || "";
5
+ if (value === true || value?.toString()?.toLowerCase() === 'true' || value === 1 || value === '1') {
6
+ return tick || '';
14
7
  }
15
- if (allowEmpty &&
16
- (value === "null" ||
17
- value === "" ||
18
- value === null ||
19
- typeof value === "undefined")) {
20
- return "- -";
8
+ if (allowEmpty && (value === 'null' || value === '' || value === null || typeof value === 'undefined')) {
9
+ return '- -';
21
10
  }
22
11
  return value;
23
12
  }
24
13
  export default {
25
14
  TrueFalse: (value, options) => Boolean(value, {
26
15
  ...options,
27
- tick: "True",
28
- cross: "False"
16
+ tick: options.trueLabel || 'True',
17
+ cross: options.falseLabel || 'False'
29
18
  })
30
19
  };
31
20
  //# sourceMappingURL=Boolean.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Boolean.js","sourceRoot":"","sources":["../../../../src/components/helpers/formatters/Boolean.js"],"names":[],"mappings":"AAAA,SAAS,OAAO,CAAC,KAAK,EAAE,EAAE,UAAU,GAAG,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,EAAE;IACvE,IACE,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC;QACvB,KAAK,KAAK,KAAK;QACf,KAAK,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,OAAO;QAC5C,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,GAAG,EACb;QACA,OAAO,KAAK,IAAI,EAAE,CAAC;KACpB;IACD,IACE,KAAK,KAAK,IAAI;QACd,KAAK,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,MAAM;QAC3C,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,GAAG,EACb;QACA,OAAO,IAAI,IAAI,EAAE,CAAC;KACnB;IACD,IACE,UAAU;QACV,CAAC,KAAK,KAAK,MAAM;YACf,KAAK,KAAK,EAAE;YACZ,KAAK,KAAK,IAAI;YACd,OAAO,KAAK,KAAK,WAAW,CAAC,EAC/B;QACA,OAAO,KAAK,CAAC;KACd;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,eAAe;IACb,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAC5B,OAAO,CAAC,KAAK,EAAE;QACb,GAAG,OAAO;QACV,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;KACf,CAAC;CACL,CAAC","sourcesContent":["function Boolean(value, { allowEmpty = true, tick = \"\", cross = \"\" } = {}) {\n if (\n (!allowEmpty && !value) ||\n value === false ||\n value?.toString()?.toLowerCase() === \"false\" ||\n value === 0 ||\n value === \"0\"\n ) {\n return cross || \"\";\n }\n if (\n value === true ||\n value?.toString()?.toLowerCase() === \"true\" ||\n value === 1 ||\n value === \"1\"\n ) {\n return tick || \"\";\n }\n if (\n allowEmpty &&\n (value === \"null\" ||\n value === \"\" ||\n value === null ||\n typeof value === \"undefined\")\n ) {\n return \"- -\";\n }\n return value;\n}\n\nexport default {\n TrueFalse: (value, options) =>\n Boolean(value, {\n ...options,\n tick: \"True\",\n cross: \"False\"\n })\n};\n"]}
1
+ {"version":3,"file":"Boolean.js","sourceRoot":"","sources":["../../../../src/components/helpers/formatters/Boolean.ts"],"names":[],"mappings":"AAAA,SAAS,OAAO,CAAC,KAAK,EAAE,EAAE,UAAU,GAAG,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,EAAE;IACvE,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,OAAO,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,GAAG,EAAE;QAC9H,OAAO,KAAK,IAAI,EAAE,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,MAAM,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,GAAG,EAAE;QACjG,OAAO,IAAI,IAAI,EAAE,CAAC;KACnB;IACD,IAAI,UAAU,IAAI,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,WAAW,CAAC,EAAE;QACtG,OAAO,KAAK,CAAC;KACd;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,eAAe;IACb,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAC5B,OAAO,CAAC,KAAK,EAAE;QACb,GAAG,OAAO;QACV,IAAI,EAAE,OAAO,CAAC,SAAS,IAAI,MAAM;QACjC,KAAK,EAAE,OAAO,CAAC,UAAU,IAAI,OAAO;KACrC,CAAC;CACL,CAAC","sourcesContent":["function Boolean(value, { allowEmpty = true, tick = '', cross = '' } = {}) {\n if ((!allowEmpty && !value) || value === false || value?.toString()?.toLowerCase() === 'false' || value === 0 || value === '0') {\n return cross || '';\n }\n if (value === true || value?.toString()?.toLowerCase() === 'true' || value === 1 || value === '1') {\n return tick || '';\n }\n if (allowEmpty && (value === 'null' || value === '' || value === null || typeof value === 'undefined')) {\n return '- -';\n }\n return value;\n}\n\nexport default {\n TrueFalse: (value, options) =>\n Boolean(value, {\n ...options,\n tick: options.trueLabel || 'True',\n cross: options.falseLabel || 'False'\n })\n};\n"]}
@@ -1,10 +1,10 @@
1
1
  declare const _default: {
2
- Currency: (value: any, options: any) => any;
3
- "Currency-Code": (value: any, options: any) => any;
4
- Decimal: (value: any, options: any) => any;
5
- "Decimal-Auto": (value: any, options: any) => any;
6
- Integer: (value: any, options: any) => any;
7
- Percentage: (value: any, options: any) => any;
2
+ Currency: (value: any, options: any) => string;
3
+ 'Currency-Code': (value: any, options: any) => string;
4
+ Decimal: (value: any, options: any) => string;
5
+ 'Decimal-Auto': (value: any, options: any) => string;
6
+ Integer: (value: any, options: any) => string;
7
+ Percentage: (value: any, options: any) => string;
8
8
  };
9
9
  export default _default;
10
10
  //# sourceMappingURL=Currency.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/helpers/formatters/Currency.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/helpers/formatters/Currency.ts"],"names":[],"mappings":";;;;;;;;AAiEA,wBAWE"}
@@ -1,6 +1,7 @@
1
- import { getLocale } from "./common";
2
- import CurrencyMap from "./CurrencyMap";
3
- function NumberFormatter(value, { locale, decPlaces = 2 } = {}) {
1
+ import { getLocale } from './common';
2
+ import CurrencyMap from './CurrencyMap';
3
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
+ function NumberFormatter(value, { locale = 'en-US', decPlaces = 2, style = '', currency = 'USD' } = {}) {
4
5
  const currentLocale = getLocale(locale);
5
6
  if (value !== null && value !== undefined) {
6
7
  return Number(value).toLocaleString(currentLocale, {
@@ -10,7 +11,7 @@ function NumberFormatter(value, { locale, decPlaces = 2 } = {}) {
10
11
  }
11
12
  return value;
12
13
  }
13
- function CurrencyFormatter(value, { symbol = true, position, locale, decPlaces = 2, style = "currency", currency = "USD" } = {}) {
14
+ function CurrencyFormatter(value, { symbol = true, position = 'before', locale = 'en-US', decPlaces = 2, style = 'currency', currency = 'USD' } = {}) {
14
15
  const currentLocale = getLocale(locale);
15
16
  let formattedValue = value;
16
17
  if (value !== null && value !== undefined && value !== '') {
@@ -20,7 +21,7 @@ function CurrencyFormatter(value, { symbol = true, position, locale, decPlaces =
20
21
  style,
21
22
  currency
22
23
  });
23
- let countryCode = currentLocale.split("-")[1].toUpperCase();
24
+ let countryCode = currentLocale?.split('-')[1].toUpperCase();
24
25
  // If countryCode is still undefined, setting it as US
25
26
  if (!countryCode) {
26
27
  countryCode = 'US';
@@ -34,19 +35,18 @@ function CurrencyFormatter(value, { symbol = true, position, locale, decPlaces =
34
35
  }
35
36
  // if position is provided, change placeholder accordingly.
36
37
  if (position && code) {
37
- if (position.toLowerCase() === "before" && code.indexOf("{#}") === 0) {
38
+ if (position.toLowerCase() === 'before' && code.startsWith('{#}')) {
38
39
  code = code.slice(3) + code.slice(0, 3);
39
40
  }
40
- else if (position.toLowerCase() === "after" &&
41
- code.indexOf("{#}") === code.length - 3) {
41
+ else if (position.toLowerCase() === 'after' && code.indexOf('{#}') === code.length - 3) {
42
42
  code = code.slice(-3) + code.slice(0, -3);
43
43
  }
44
44
  }
45
- return code?.replace("{#}", formattedValue) || formattedValue;
45
+ return code?.replace('{#}', formattedValue) || formattedValue;
46
46
  }
47
47
  return formattedValue;
48
48
  }
49
- function SymbolFormatter(value, { symbol, suffix = true, locale } = {}) {
49
+ function SymbolFormatter(value, { symbol = '$', suffix = true, locale = 'en-US' } = {}) {
50
50
  let formattedValue = value;
51
51
  if (value !== null && value !== undefined) {
52
52
  formattedValue = NumberFormatter(value, { locale });
@@ -56,13 +56,13 @@ function SymbolFormatter(value, { symbol, suffix = true, locale } = {}) {
56
56
  }
57
57
  export default {
58
58
  Currency: (value, options) => CurrencyFormatter(value, options),
59
- "Currency-Code": (value, options) => CurrencyFormatter(value, { ...options, symbol: false }),
59
+ 'Currency-Code': (value, options) => CurrencyFormatter(value, { ...options, symbol: false }),
60
60
  Decimal: (value, options) => NumberFormatter(value, options),
61
- "Decimal-Auto": (value, options) => NumberFormatter(value, {
61
+ 'Decimal-Auto': (value, options) => NumberFormatter(value, {
62
62
  ...options,
63
63
  decPlaces: Number.isInteger(value) ? 0 : 2
64
64
  }),
65
65
  Integer: (value, options) => NumberFormatter(value, { ...options, decPlaces: 0 }),
66
- Percentage: (value, options) => SymbolFormatter(value, { ...options, symbol: "%" })
66
+ Percentage: (value, options) => SymbolFormatter(value, { ...options, symbol: '%' })
67
67
  };
68
68
  //# sourceMappingURL=Currency.js.map