@pega/react-sdk-components 23.1.10 → 23.1.12

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 (605) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.js +3 -3
  5. package/lib/bridge/Context/StoreContext.js.map +1 -1
  6. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  7. package/lib/bridge/helpers/sdk_component_map.js +24 -47
  8. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  9. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  10. package/lib/bridge/react_pconnect.js +17 -28
  11. package/lib/bridge/react_pconnect.js.map +1 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -2
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +30 -27
  23. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -1
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +9 -15
  27. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  28. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +5 -4
  30. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +23 -12
  32. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  33. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -1
  34. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -16
  36. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  37. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +1 -0
  38. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +7 -11
  40. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  41. package/lib/components/designSystemExtension/Operator/Operator.d.ts +15 -15
  42. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/Operator/Operator.js +49 -62
  44. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  45. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +2 -3
  46. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  47. package/lib/components/designSystemExtension/Pulse/Pulse.js +7 -10
  48. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  49. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  50. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +7 -9
  51. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  52. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -1
  53. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  54. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  55. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  56. package/lib/components/field/AutoComplete/AutoComplete.d.ts +2 -2
  57. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  58. package/lib/components/field/AutoComplete/AutoComplete.js +21 -23
  59. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  60. package/lib/components/field/CancelAlert/CancelAlert.d.ts +8 -3
  61. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  62. package/lib/components/field/CancelAlert/CancelAlert.js +76 -68
  63. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  64. package/lib/components/field/CancelAlert/index.js.map +1 -1
  65. package/lib/components/field/Checkbox/Checkbox.d.ts +16 -1
  66. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  67. package/lib/components/field/Checkbox/Checkbox.js +59 -45
  68. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  69. package/lib/components/field/Currency/Currency.d.ts +1 -1
  70. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  71. package/lib/components/field/Currency/Currency.js +13 -34
  72. package/lib/components/field/Currency/Currency.js.map +1 -1
  73. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  74. package/lib/components/field/Currency/currency-utils.js +4 -5
  75. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  76. package/lib/components/field/Date/Date.d.ts +1 -1
  77. package/lib/components/field/Date/Date.d.ts.map +1 -1
  78. package/lib/components/field/Date/Date.js +14 -10
  79. package/lib/components/field/Date/Date.js.map +1 -1
  80. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  81. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  82. package/lib/components/field/DateTime/DateTime.js +8 -8
  83. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  84. package/lib/components/field/Decimal/Decimal.d.ts +2 -1
  85. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  86. package/lib/components/field/Decimal/Decimal.js +18 -28
  87. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  88. package/lib/components/field/Decimal/index.js.map +1 -1
  89. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  90. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  91. package/lib/components/field/Dropdown/Dropdown.js +105 -29
  92. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  93. package/lib/components/field/Email/Email.d.ts +1 -1
  94. package/lib/components/field/Email/Email.d.ts.map +1 -1
  95. package/lib/components/field/Email/Email.js +8 -9
  96. package/lib/components/field/Email/Email.js.map +1 -1
  97. package/lib/components/field/Email/index.js.map +1 -1
  98. package/lib/components/field/Group/Group.d.ts +13 -0
  99. package/lib/components/field/Group/Group.d.ts.map +1 -0
  100. package/lib/components/field/Group/Group.js +15 -0
  101. package/lib/components/field/Group/Group.js.map +1 -0
  102. package/lib/components/field/Group/index.d.ts +2 -0
  103. package/lib/components/field/Group/index.d.ts.map +1 -0
  104. package/lib/components/field/Group/index.js +2 -0
  105. package/lib/components/field/Group/index.js.map +1 -0
  106. package/lib/components/field/Integer/Integer.d.ts +1 -1
  107. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  108. package/lib/components/field/Integer/Integer.js +6 -6
  109. package/lib/components/field/Integer/Integer.js.map +1 -1
  110. package/lib/components/field/MultiSelect/Multiselect.d.ts +3 -0
  111. package/lib/components/field/MultiSelect/Multiselect.d.ts.map +1 -0
  112. package/lib/components/field/MultiSelect/Multiselect.js +175 -0
  113. package/lib/components/field/MultiSelect/Multiselect.js.map +1 -0
  114. package/lib/components/field/MultiSelect/index.d.ts +2 -0
  115. package/lib/components/field/MultiSelect/index.d.ts.map +1 -0
  116. package/lib/components/field/MultiSelect/index.js +2 -0
  117. package/lib/components/field/MultiSelect/index.js.map +1 -0
  118. package/lib/components/field/MultiSelect/utils.d.ts +10 -0
  119. package/lib/components/field/MultiSelect/utils.d.ts.map +1 -0
  120. package/lib/components/field/MultiSelect/utils.js +197 -0
  121. package/lib/components/field/MultiSelect/utils.js.map +1 -0
  122. package/lib/components/field/Percentage/Percentage.d.ts +2 -1
  123. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  124. package/lib/components/field/Percentage/Percentage.js +25 -28
  125. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  126. package/lib/components/field/Phone/Phone.d.ts +1 -1
  127. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  128. package/lib/components/field/Phone/Phone.js +9 -10
  129. package/lib/components/field/Phone/Phone.js.map +1 -1
  130. package/lib/components/field/Phone/index.js.map +1 -1
  131. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  132. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  133. package/lib/components/field/RadioButtons/RadioButtons.js +18 -21
  134. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  135. package/lib/components/field/RichText/RichText.d.ts +1 -1
  136. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  137. package/lib/components/field/RichText/RichText.js +9 -8
  138. package/lib/components/field/RichText/RichText.js.map +1 -1
  139. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  140. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  141. package/lib/components/field/ScalarList/ScalarList.js +7 -9
  142. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  143. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  144. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  145. package/lib/components/field/SemanticLink/SemanticLink.js +4 -8
  146. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  147. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  148. package/lib/components/field/SemanticLink/utils.js +8 -8
  149. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  150. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  151. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  152. package/lib/components/field/TextArea/TextArea.js +5 -5
  153. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  154. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  155. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  156. package/lib/components/field/TextContent/TextContent.js +2 -2
  157. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  158. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  159. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  160. package/lib/components/field/TextInput/TextInput.js +7 -6
  161. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  162. package/lib/components/field/TextInput/index.js.map +1 -1
  163. package/lib/components/field/Time/Time.d.ts +1 -1
  164. package/lib/components/field/Time/Time.d.ts.map +1 -1
  165. package/lib/components/field/Time/Time.js +7 -7
  166. package/lib/components/field/Time/Time.js.map +1 -1
  167. package/lib/components/field/URL/URL.d.ts +1 -1
  168. package/lib/components/field/URL/URL.d.ts.map +1 -1
  169. package/lib/components/field/URL/URL.js +6 -6
  170. package/lib/components/field/URL/URL.js.map +1 -1
  171. package/lib/components/field/URL/index.js.map +1 -1
  172. package/lib/components/field/UserReference/UserReference.d.ts +3 -3
  173. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  174. package/lib/components/field/UserReference/UserReference.js +11 -11
  175. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  176. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  177. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  178. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  179. package/lib/components/helpers/attachmentHelpers.js +6 -6
  180. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  181. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  182. package/lib/components/helpers/case-utils.js +5 -5
  183. package/lib/components/helpers/case-utils.js.map +1 -1
  184. package/lib/components/helpers/common-utils.d.ts +1 -0
  185. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  186. package/lib/components/helpers/common-utils.js +4 -1
  187. package/lib/components/helpers/common-utils.js.map +1 -1
  188. package/lib/components/helpers/data_page.d.ts.map +1 -1
  189. package/lib/components/helpers/data_page.js +2 -3
  190. package/lib/components/helpers/data_page.js.map +1 -1
  191. package/lib/components/helpers/date-format-utils.js.map +1 -1
  192. package/lib/components/helpers/event-utils.js +3 -3
  193. package/lib/components/helpers/event-utils.js.map +1 -1
  194. package/lib/components/helpers/field-group-utils.js +1 -1
  195. package/lib/components/helpers/field-group-utils.js.map +1 -1
  196. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  197. package/lib/components/helpers/formatters/Boolean.js +9 -20
  198. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  199. package/lib/components/helpers/formatters/Currency.d.ts +2 -2
  200. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  201. package/lib/components/helpers/formatters/Currency.js +13 -14
  202. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  203. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  204. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  205. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  206. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  207. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  208. package/lib/components/helpers/formatters/Date.js +20 -20
  209. package/lib/components/helpers/formatters/Date.js.map +1 -1
  210. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  211. package/lib/components/helpers/formatters/common.js +1 -1
  212. package/lib/components/helpers/formatters/common.js.map +1 -1
  213. package/lib/components/helpers/formatters/index.d.ts +6 -6
  214. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  215. package/lib/components/helpers/formatters/index.js +25 -19
  216. package/lib/components/helpers/formatters/index.js.map +1 -1
  217. package/lib/components/helpers/instructions-utils.d.ts +5 -0
  218. package/lib/components/helpers/instructions-utils.d.ts.map +1 -0
  219. package/lib/components/helpers/instructions-utils.js +36 -0
  220. package/lib/components/helpers/instructions-utils.js.map +1 -0
  221. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  222. package/lib/components/helpers/reactContextHelpers.js +1 -1
  223. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  224. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  225. package/lib/components/helpers/simpleTableHelpers.js +44 -52
  226. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  227. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  228. package/lib/components/helpers/state-utils.js +6 -8
  229. package/lib/components/helpers/state-utils.js.map +1 -1
  230. package/lib/components/helpers/template-utils.d.ts +1 -1
  231. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  232. package/lib/components/helpers/template-utils.js +1 -2
  233. package/lib/components/helpers/template-utils.js.map +1 -1
  234. package/lib/components/helpers/utils.d.ts +1 -1
  235. package/lib/components/helpers/utils.d.ts.map +1 -1
  236. package/lib/components/helpers/utils.js +3 -8
  237. package/lib/components/helpers/utils.js.map +1 -1
  238. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  239. package/lib/components/helpers/versionHelpers.js +1 -1
  240. package/lib/components/helpers/versionHelpers.js.map +1 -1
  241. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +2 -2
  242. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  243. package/lib/components/infra/ActionButtons/ActionButtons.js +10 -14
  244. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  245. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  246. package/lib/components/infra/Assignment/Assignment.d.ts +10 -2
  247. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  248. package/lib/components/infra/Assignment/Assignment.js +68 -71
  249. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  250. package/lib/components/infra/Assignment/index.js.map +1 -1
  251. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +3 -5
  252. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  253. package/lib/components/infra/AssignmentCard/AssignmentCard.js +4 -5
  254. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  255. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  256. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +11 -1
  257. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  258. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +36 -158
  259. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  260. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  261. package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
  262. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  263. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  264. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  265. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  266. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
  267. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  268. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  269. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  270. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  271. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  272. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -1
  273. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  274. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +178 -160
  275. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  276. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  277. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  278. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  279. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  280. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  281. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  282. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  283. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  284. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  285. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  286. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  287. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  288. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  289. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  290. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  291. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +17 -24
  292. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  293. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  294. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  295. package/lib/components/infra/Containers/helpers.js +7 -0
  296. package/lib/components/infra/Containers/helpers.js.map +1 -0
  297. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +3 -4
  298. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  299. package/lib/components/infra/DashboardFilter/DashboardFilter.js +13 -17
  300. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  301. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  302. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  303. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  304. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +9 -1
  305. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  306. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -17
  307. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  308. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  309. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  310. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  311. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +15 -14
  312. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  313. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  314. package/lib/components/infra/MultiStep/MultiStep.d.ts +5 -7
  315. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  316. package/lib/components/infra/MultiStep/MultiStep.js +29 -80
  317. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  318. package/lib/components/infra/MultiStep/index.js.map +1 -1
  319. package/lib/components/infra/NavBar/NavBar.css +103 -105
  320. package/lib/components/infra/NavBar/NavBar.d.ts +3 -3
  321. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  322. package/lib/components/infra/NavBar/NavBar.js +18 -52
  323. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  324. package/lib/components/infra/Reference/Reference.d.ts +9 -1
  325. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  326. package/lib/components/infra/Reference/Reference.js +6 -13
  327. package/lib/components/infra/Reference/Reference.js.map +1 -1
  328. package/lib/components/infra/Region/Region.d.ts +2 -3
  329. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  330. package/lib/components/infra/Region/Region.js +2 -3
  331. package/lib/components/infra/Region/Region.js.map +1 -1
  332. package/lib/components/infra/RootContainer/RootContainer.d.ts +14 -1
  333. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  334. package/lib/components/infra/RootContainer/RootContainer.js +40 -62
  335. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  336. package/lib/components/infra/RootContainer/index.js.map +1 -1
  337. package/lib/components/infra/Stages/Stages.d.ts +2 -2
  338. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  339. package/lib/components/infra/Stages/Stages.js +18 -21
  340. package/lib/components/infra/Stages/Stages.js.map +1 -1
  341. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  342. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  343. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  344. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -1
  345. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  346. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +10 -9
  347. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  348. package/lib/components/infra/View/View.d.ts +3 -4
  349. package/lib/components/infra/View/View.d.ts.map +1 -1
  350. package/lib/components/infra/View/View.js +6 -11
  351. package/lib/components/infra/View/View.js.map +1 -1
  352. package/lib/components/template/AppShell/AppShell.css +22 -23
  353. package/lib/components/template/AppShell/AppShell.d.ts +6 -7
  354. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  355. package/lib/components/template/AppShell/AppShell.js +23 -29
  356. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  357. package/lib/components/template/BannerPage/BannerPage.d.ts +4 -4
  358. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  359. package/lib/components/template/BannerPage/BannerPage.js +3 -3
  360. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  361. package/lib/components/template/CaseSummary/CaseSummary.d.ts +3 -4
  362. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  363. package/lib/components/template/CaseSummary/CaseSummary.js +44 -8
  364. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  365. package/lib/components/template/CaseView/CaseView.d.ts +3 -4
  366. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  367. package/lib/components/template/CaseView/CaseView.js +18 -41
  368. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  369. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +3 -3
  370. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  371. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -7
  372. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  373. package/lib/components/template/Confirmation/Confirmation.d.ts +3 -4
  374. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  375. package/lib/components/template/Confirmation/Confirmation.js +7 -14
  376. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  377. package/lib/components/template/DataReference/DataReference.d.ts +4 -4
  378. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  379. package/lib/components/template/DataReference/DataReference.js +35 -49
  380. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  381. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  382. package/lib/components/template/DefaultForm/DefaultForm.d.ts +8 -2
  383. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  384. package/lib/components/template/DefaultForm/DefaultForm.js +5 -14
  385. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  386. package/lib/components/template/Details/Details/Details.d.ts +8 -1
  387. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  388. package/lib/components/template/Details/Details/Details.js +5 -13
  389. package/lib/components/template/Details/Details/Details.js.map +1 -1
  390. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +3 -4
  391. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  392. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +5 -10
  393. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  394. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +8 -1
  395. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  396. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +5 -16
  397. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  398. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +8 -1
  399. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  400. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +5 -16
  401. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  402. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  403. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +7 -1
  404. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  405. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +6 -17
  406. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  407. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -2
  408. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  409. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -9
  410. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  411. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +3 -4
  412. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  413. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -9
  414. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  415. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +3 -4
  416. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  417. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +7 -6
  418. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  419. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  420. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  421. package/lib/components/template/ListPage/ListPage.js +2 -2
  422. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  423. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  424. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  425. package/lib/components/template/ListView/ListView.d.ts +16 -1
  426. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  427. package/lib/components/template/ListView/ListView.js +106 -181
  428. package/lib/components/template/ListView/ListView.js.map +1 -1
  429. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  430. package/lib/components/template/ListView/hooks.js +4 -6
  431. package/lib/components/template/ListView/hooks.js.map +1 -1
  432. package/lib/components/template/ListView/utils.d.ts +1 -1
  433. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  434. package/lib/components/template/ListView/utils.js +38 -46
  435. package/lib/components/template/ListView/utils.js.map +1 -1
  436. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  437. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  438. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +3 -3
  439. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  440. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  441. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -4
  442. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  443. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  444. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  445. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +8 -1
  446. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  447. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +5 -16
  448. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  449. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  450. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -4
  451. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  452. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  453. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  454. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +4 -4
  455. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  456. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +3 -5
  457. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  458. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -4
  459. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  460. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -8
  461. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  462. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +2 -2
  463. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  464. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +2 -2
  465. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  466. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -4
  467. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  468. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -2
  469. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  470. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  471. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +10 -1
  472. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  473. package/lib/components/template/PromotedFilters/PromotedFilters.js +12 -29
  474. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  475. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  476. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  477. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +17 -20
  478. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  479. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +12 -7
  480. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  481. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +124 -134
  482. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  483. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -1
  484. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  485. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +9 -21
  486. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  487. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  488. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  489. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -5
  490. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  491. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -4
  492. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  493. package/lib/components/template/SubTabs/SubTabs.js +6 -9
  494. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  495. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  496. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  497. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  498. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  499. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +4 -4
  500. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  501. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +14 -12
  502. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  503. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +2 -2
  504. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  505. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +2 -2
  506. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  507. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +4 -4
  508. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  509. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +14 -12
  510. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  511. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  512. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -4
  513. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  514. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +2 -10
  515. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  516. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +8 -1
  517. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  518. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +5 -16
  519. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  520. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  521. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -4
  522. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  523. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  524. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  525. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +4 -4
  526. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  527. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +3 -3
  528. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  529. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  530. package/lib/components/template/WssNavBar/WssNavBar.d.ts +3 -2
  531. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  532. package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
  533. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  534. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +2 -1
  535. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  536. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +10 -19
  537. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  538. package/lib/components/widget/Attachment/Attachment.css +60 -1
  539. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  540. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  541. package/lib/components/widget/Attachment/Attachment.js +279 -353
  542. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  543. package/lib/components/widget/Attachment/index.js.map +1 -1
  544. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  545. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  546. package/lib/components/widget/CaseHistory/CaseHistory.js +37 -31
  547. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  548. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  549. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +4 -3
  550. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  551. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  552. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  553. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  554. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  555. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  556. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +107 -136
  557. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  558. package/lib/components/widget/Followers/Followers.d.ts +4 -4
  559. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  560. package/lib/components/widget/Followers/Followers.js +8 -16
  561. package/lib/components/widget/Followers/Followers.js.map +1 -1
  562. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  563. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  564. package/lib/components/widget/QuickCreate/QuickCreate.js +57 -35
  565. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  566. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  567. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +3 -2
  568. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  569. package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
  570. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  571. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  572. package/lib/components/widget/SummaryList/SummaryList.d.ts +3 -2
  573. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  574. package/lib/components/widget/SummaryList/SummaryList.js +3 -3
  575. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  576. package/lib/components/widget/ToDo/ToDo.css +4 -4
  577. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  578. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  579. package/lib/components/widget/ToDo/ToDo.js +31 -67
  580. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  581. package/lib/components_map.d.ts +2 -2
  582. package/lib/components_map.d.ts.map +1 -1
  583. package/lib/components_map.js +4 -2
  584. package/lib/components_map.js.map +1 -1
  585. package/lib/doc/KeyReleaseUpdates.md +21 -4
  586. package/lib/hooks/useConsolidatedRef.js +2 -2
  587. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  588. package/lib/sdk-local-component-map.js +2 -2
  589. package/lib/sdk-pega-component-map.d.ts +6 -0
  590. package/lib/sdk-pega-component-map.js +106 -100
  591. package/lib/sdk-pega-component-map.js.map +1 -1
  592. package/lib/types/PConnProps.d.ts +14 -15
  593. package/package.json +5 -2
  594. package/lib/components/helpers/auth.d.ts +0 -18
  595. package/lib/components/helpers/auth.d.ts.map +0 -1
  596. package/lib/components/helpers/auth.js +0 -752
  597. package/lib/components/helpers/auth.js.map +0 -1
  598. package/lib/components/helpers/authManager.d.ts +0 -21
  599. package/lib/components/helpers/authManager.d.ts.map +0 -1
  600. package/lib/components/helpers/authManager.js +0 -864
  601. package/lib/components/helpers/authManager.js.map +0 -1
  602. package/lib/components/helpers/config_access.d.ts +0 -3
  603. package/lib/components/helpers/config_access.d.ts.map +0 -1
  604. package/lib/components/helpers/config_access.js +0 -198
  605. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"authManager.js","sourceRoot":"","sources":["../../../src/components/helpers/authManager.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,8EAA8E;;;;;;;;;;;;;AAE9E,6EAA6E;AAC7E,kCAAkC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,QAAQ,MAAM,QAAQ,CAAC;AAK9B,uDAAuD;AACvD,MAAM,WAAW;IA8Bf;;QA7BA,mCAAsB,IAAI,EAAC;QAC3B,8DAA8D;QAC9D,gCAAgB,IAAI,EAAC;QAErB,uCAA0B,EAAE,EAAC;QAC7B,wCAA2B,EAAE,EAAC;QAC9B,sCAAyB,EAAE,EAAC;QAC5B,kCAAqB,GAAG,uBAAA,IAAI,gCAAa,OAAO,EAAC;QACjD,kCAAkB,EAAE,EAAC;QACrB,oCAAoB,EAAE,EAAC;QACvB,kCAA0B,IAAI,EAAC;QAE/B,8CAA8C;QAC9C;;;;mBAAY,EAAC,QAAQ,EAAC,KAAK,EAAE,iBAAiB,EAAC,KAAK,EAAC;WAAC;QACtD;;;;mBAAmC,KAAK;WAAC;QACzC;;;;mBAAuB,KAAK;WAAC;QAC7B,yCAAgB;QAChB,wCAAe;QACf;;;;mBAAsB,KAAK;WAAC;QAC5B;;;;mBAAqB,IAAI;WAAC;QAC1B;;;;mBAA0B,KAAK;WAAC;QAChC;;;;mBAAsB,KAAK;WAAC;QAC5B,qEAAqE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;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;AACtC,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,uHAAuH;IACvH,OAAO,CAAC,QAAQ,CAAC,iBAAiB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC;AAC3E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,OAAO,QAAQ,CAAC,UAAU,CAAC;AAC7B,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACzB,OAAO,QAAQ,CAAC,MAAM,EAAE,CAAC;AAC3B,CAAC,CAAC;AAEF,mFAAmF;AACnF,mCAAmC;AACnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAU,EAAE,EAAE;IAC7C,QAAQ,CAAC,WAAW,GAAG,CAAC,CAAC,UAAU,CAAC;IACpC,kCAAkC;IAClC,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,IAAI,EAAE;IAC5C,OAAO,QAAQ,CAAC,mBAAmB,EAAE,CAAC;AACxC,CAAC,CAAC","sourcesContent":["// This file wraps various calls related to logging in, logging out, etc.\n// that use the auth.html/auth.js to do the work of logging in via OAuth 2.0.\n\n// It utilizes a JS Class and private members to protect any sensitive tokens\n// and token obfuscation routines\n\nimport { isEmptyObject } from './common-utils';\nimport { getSdkConfig, SdkConfigAccess } from './config_access';\nimport PegaAuth from './auth';\n\ndeclare const window: any;\ndeclare const PCore: any;\n\n// Meant to be a singleton...only one instance per page\nclass AuthManager {\n #ssKeyPrefix:string = 'rs';\n // will store the PegaAuth (OAuth 2.0 client library) instance\n #pegaAuth:any = null;\n\n #ssKeyConfigInfo:string = '';\n #ssKeySessionInfo:string = '';\n #ssKeyTokenInfo:string = '';\n #ssKeyState:string = `${this.#ssKeyPrefix}State`;\n #authConfig:any = {};\n #authDynState:any = {};\n #authHeader:string|null = null;\n\n // state that should be persisted across loads\n state:any = {usePopup:false, noInitialRedirect:false};\n bC11NBootstrapInProgress:boolean = false;\n bCustomAuth: boolean = false;\n #tokenInfo: any;\n #userInfo: any;\n onLoadDone: boolean = false;\n msReauthStart: any = null;\n initInProgress: boolean = false;\n isLoggedIn: boolean = false;\n // Whether to pass a session storage key or structure to auth library\n #usePASS: boolean = false;\n #pageHideAdded: boolean = false;\n #tokenStorage: string = 'temp';\n #transform:boolean = true;\n #foldSpot: number = 2;\n\n constructor () {\n // Auth Manager specific state is saved within session storage as important in redirect and popup window scenarios\n this.#loadState();\n }\n\n #transformAndParse(ssKey, ssItem, bForce=false) {\n let obj = {};\n try {\n obj = JSON.parse(this.#transformer(ssKey, ssItem, false, bForce));\n } catch (e) {\n // fall thru and return empty object\n }\n return obj;\n }\n\n // helper routine to retrieve JSON object stored in a session storage key\n // a 2nd optional arg can also retrieve an individual attribute\n #getStorage(ssKey, sAttrib:string|null = null) {\n const ssItem = ssKey ? window.sessionStorage.getItem(ssKey) : null;\n let obj = {};\n if (ssItem) {\n try {\n obj = JSON.parse(ssItem);\n } catch (e) {\n obj = this.#transformAndParse(ssKey, ssItem, true);\n }\n }\n return sAttrib ? obj[sAttrib] : obj;\n }\n\n // helper routine to set storage to the passed in JSON\n #setStorage(ssKey, obj) {\n // Set storage only if obj is not empty, else delete the storage\n if (!obj || isEmptyObject(obj) ) {\n window.sessionStorage.removeItem(ssKey);\n } else {\n // const bClear = (ssKey === this.#ssKeyState || ssKey === this.#ssKeySessionInfo);\n const bClear = false;\n const sValue = bClear ? JSON.stringify(obj) : this.#transformer(ssKey, JSON.stringify(obj), true);\n window.sessionStorage.setItem(ssKey, sValue);\n }\n }\n\n #calcFoldSpot(s:string) {\n const nOffset = 1;\n const sChar = s.length > nOffset ? s.charAt(nOffset) : '2';\n const nSpot:number = parseInt(sChar,10);\n this.#foldSpot = Number.isNaN(nSpot) ? 2 : (nSpot % 4)+2;\n }\n\n // helper function to encode storage\n #transformer(ssKey:string, s:string, bIn:boolean, bForce:boolean=false) {\n const bTransform = bForce || this.#transform;\n const fnFold = (x:string) => {\n const nLen = x.length;\n const nExtra = nLen % this.#foldSpot;\n const nOffset = Math.floor(nLen / this.#foldSpot) + nExtra;\n const nRem = x.length - nOffset;\n return x.substring(bIn ? nOffset : nRem) + x.substring(0, bIn ? nOffset : nRem);\n };\n const bTknInfo = ssKey === this.#ssKeyTokenInfo;\n if (bTknInfo && !bIn && bTransform) {\n s = window.atob(fnFold(s));\n }\n // eslint-disable-next-line no-nested-ternary\n let result = bTransform ? (bIn ? window.btoa(s) : window.atob(s)) : s;\n if (bTknInfo && bIn && bTransform) {\n result = fnFold(window.btoa(result));\n }\n return result;\n }\n\n // Setter for authHeader (no getter)\n set authHeader(value:string|null) {\n this.#authHeader = value;\n // setAuthorizationHeader method not available til 8.8 so do safety check\n if( window.PCore?.getAuthUtils().setAuthorizationHeader ) {\n const authHdr:string = value===null ? '' : value;\n window.PCore.getAuthUtils().setAuthorizationHeader(authHdr);\n }\n this.#updateLoginStatus();\n }\n\n // Setter/getter for usePopupForRestOfSession\n set usePopupForRestOfSession(usePopup:boolean) {\n this.state.usePopup = usePopup;\n this.#setStorage(this.#ssKeyState, this.state);\n }\n\n get usePopupForRestOfSession() {\n return this.state.usePopup;\n }\n\n // Setter/getter for noInitialRedirect\n set noInitialRedirect(bNoInitialRedirect:boolean) {\n if (bNoInitialRedirect) {\n this.usePopupForRestOfSession = true;\n }\n this.state.noInitialRedirect = bNoInitialRedirect;\n this.#setStorage(this.#ssKeyState, this.state);\n }\n\n get noInitialRedirect() {\n return this.state.noInitialRedirect || false;\n }\n\n // Init/getter for loginStart\n set loginStart(msValue:number) {\n if( msValue ) {\n this.state.msLoginStart = msValue;\n } else if( this.state.msLoginStart ) {\n delete this.state.msLoginStart;\n }\n this.#setStorage(this.#ssKeyState, this.state);\n }\n\n get loginStart() {\n return this.state.msLoginStart || 0;\n }\n\n // Init/getter for reauthStart\n set reauthStart(msValue:number|null) {\n if( msValue ) {\n this.msReauthStart = msValue;\n } else if( this.msReauthStart ) {\n delete this.msReauthStart;\n }\n this.#setStorage(this.#ssKeyState, this.state);\n }\n\n get reauthStart() {\n return this.msReauthStart || 0;\n }\n\n // Setter for clientId\n set keySuffix(s:string) {\n this.state.sfx = s || undefined;\n this.#setStorage(this.#ssKeyState, this.state);\n if( s ) {\n // To make it a bit more obtuse reverse the string and use that as the actual suffix\n const sSfx = s.split(\"\").reverse().join(\"\");\n this.#ssKeyConfigInfo = `${this.#ssKeyPrefix}CI_${sSfx}`;\n this.#ssKeySessionInfo = `${this.#ssKeyPrefix}SI_${sSfx}`;\n this.#ssKeyTokenInfo = `${this.#ssKeyPrefix}TI_${sSfx}`;\n this.#calcFoldSpot(sSfx);\n }\n }\n\n isLoginExpired() {\n let bExpired = true;\n if( this.loginStart ) {\n const currTime = Date.now();\n bExpired = currTime - this.loginStart > 60000;\n }\n return bExpired;\n }\n\n /**\n * Clean up any session storage allocated for the user session.\n */\n clear(bFullReauth=false){\n if (!this.bCustomAuth) {\n this.#authHeader = null;\n }\n if( !bFullReauth ) {\n if( this.#usePASS ) {\n sessionStorage.removeItem(this.#ssKeyConfigInfo);\n } else {\n this.#authConfig={};\n this.#authDynState={};\n }\n sessionStorage.removeItem(this.#ssKeySessionInfo);\n }\n // Clear any established auth tokens\n this.#tokenInfo = null;\n sessionStorage.removeItem(this.#ssKeyTokenInfo);\n this.loginStart = 0;\n this.isLoggedIn = false;\n // reset the initial redirect as well by using this setter\n this.usePopupForRestOfSession = bFullReauth;\n this.keySuffix = '';\n }\n\n #doPageHide() {\n // Safari and particularly Safari on mobile devices doesn't seem to load this on first main redirect or\n // reliably, so have moved to having PegaAuth manage writing all state props to session storage\n this.#setStorage(this.#ssKeyState, this.state);\n this.#setStorage(this.#ssKeySessionInfo, this.#authDynState);\n\n // If tokenStorage was always, token would already be there\n if( this.#tokenStorage === 'temp' ) {\n this.#setStorage(this.#ssKeyTokenInfo, this.#tokenInfo);\n }\n }\n\n #loadState() {\n // Note: State storage key doesn't have a client id associated with it\n const oState = this.#getStorage(this.#ssKeyState);\n if( oState ) {\n Object.assign(this.state, oState);\n if( this.state.sfx ) {\n // Setter sets up the ssKey values as well\n this.keySuffix = this.state.sfx;\n }\n }\n }\n\n // This is only called from initialize after #ssKey values are setup\n #doOnLoad() {\n if( !this.onLoadDone ) {\n\n // This authConfig state doesn't collide with other calculated static state...so load it first\n // Note: transform setting will have already been loaded into #authConfig at this point\n this.#authDynState = this.#getStorage(this.#ssKeySessionInfo);\n this.#tokenInfo = this.#getStorage(this.#ssKeyTokenInfo);\n if( this.#tokenStorage !== 'always' ) {\n sessionStorage.removeItem(this.#ssKeyTokenInfo);\n sessionStorage.removeItem(this.#ssKeySessionInfo);\n }\n this.onLoadDone = true;\n }\n }\n\n // Callback when auth dynamic state has changed. Decide whether to persisting it based on\n // config settings\n #doAuthDynStateChanged() {\n // If tokenStorage is setup for always then always persist the auth dynamic state as well\n if( this.#tokenStorage === 'always' ) {\n this.#setStorage(this.#ssKeySessionInfo, this.#authDynState);\n }\n }\n\n /**\n * Initialize OAuth config structure members and create authMgr instance (if necessary)\n * bNew - governs whether to create new sessionStorage or load existing one\n */\n async #initialize( bNew:boolean = false ) {\n\n return new Promise<any>((resolve) => {\n if( !this.initInProgress && (bNew || isEmptyObject(this.#authConfig) || !this.#pegaAuth )) {\n this.initInProgress = true;\n getSdkConfig().then( sdkConfig => {\n const sdkConfigAuth:any = sdkConfig.authConfig;\n const sdkConfigServer:any = sdkConfig.serverConfig;\n\n let pegaUrl = sdkConfigServer.infinityRestServerUrl;\n const bNoInitialRedirect = this.noInitialRedirect;\n\n // Construct default OAuth endpoints (if not explicitly specified)\n if (pegaUrl) {\n // Cope with trailing slash being present\n if (!pegaUrl.endsWith('/')) {\n pegaUrl += '/';\n }\n if (!sdkConfigAuth.authorize) {\n sdkConfigAuth.authorize = `${pegaUrl}PRRestService/oauth2/v1/authorize`;\n }\n if (!sdkConfigAuth.token) {\n sdkConfigAuth.token = `${pegaUrl}PRRestService/oauth2/v1/token`;\n }\n if (!sdkConfigAuth.revoke) {\n sdkConfigAuth.revoke = `${pegaUrl}PRRestService/oauth2/v1/revoke`;\n }\n if( !sdkConfigAuth.redirectUri ) {\n sdkConfigAuth.redirectUri = `${window.location.origin}${window.location.pathname}`;\n }\n if (!sdkConfigAuth.userinfo) {\n const appAliasSeg = sdkConfigServer.appAlias ? `app/${sdkConfigServer.appAlias}/` : '';\n sdkConfigAuth.userinfo = `${pegaUrl}${appAliasSeg}api/oauthclients/v1/userinfo/JSON`;\n }\n }\n // Auth service alias\n if( !sdkConfigAuth.authService) {\n sdkConfigAuth.authService = \"pega\";\n }\n // mashupAuthService provides way to have a different auth service for embedded\n if( !sdkConfigAuth.mashupAuthService ) {\n sdkConfigAuth.mashupAuthService = sdkConfigAuth.authService;\n }\n\n // Construct path to auth.html (used for case when not doing a main window redirect)\n let sNoMainRedirectUri=sdkConfigAuth.redirectUri;\n const nLastPathSep = sNoMainRedirectUri.lastIndexOf(\"/\");\n sNoMainRedirectUri = nLastPathSep !== -1 ? `${sNoMainRedirectUri.substring(0,nLastPathSep+1)}auth.html` : `${sNoMainRedirectUri}/auth.html`;\n\n const portalGrantType = sdkConfigAuth.portalGrantType || 'authCode';\n const mashupGrantType = sdkConfigAuth.mashupGrantType || 'authCode';\n\n const pegaAuthConfig:any = {\n clientId: bNoInitialRedirect ? sdkConfigAuth.mashupClientId : sdkConfigAuth.portalClientId,\n grantType: bNoInitialRedirect ? mashupGrantType : portalGrantType,\n tokenUri: sdkConfigAuth.token,\n revokeUri: sdkConfigAuth.revoke,\n userinfoUri: sdkConfigAuth.userinfo,\n authService: bNoInitialRedirect ? sdkConfigAuth.mashupAuthService : sdkConfigAuth.authService,\n appAlias: sdkConfigServer.appAlias || '',\n useLocking: true\n };\n // Invoke keySuffix setter\n // Was using pegaAuthConfig.clientId as key but more secure to just use a random string as getting\n // both a clientId and the refresh token could yield a new access token.\n // Suffix is so we might in future move to an array of suffixes based on the appName, so might store\n // both portal and embedded tokens/session info at same time\n if( !this.state?.sfx ) {\n // Just using a random number to make the suffix unique on each session\n this.keySuffix = `${Math.ceil(Math.random()*100000000)}`;\n }\n this.#authConfig.transform = sdkConfigAuth.transform !== undefined ? sdkConfigAuth.transform : this.#transform;\n // Using property in class as authConfig may be empty at times\n this.#transform = this.#authConfig.transform;\n if( sdkConfigAuth.tokenStorage !== undefined ) {\n this.#tokenStorage = sdkConfigAuth.tokenStorage;\n }\n\n // Get latest state once client ids, transform and tokenStorage have been established\n this.#doOnLoad();\n\n // If no clientId is specified assume not OAuth but custom auth\n if( !pegaAuthConfig.clientId ) {\n this.bCustomAuth = true;\n return;\n }\n if( pegaAuthConfig.grantType === 'authCode' ) {\n const authCodeProps:any = {\n authorizeUri: sdkConfigAuth.authorize,\n // If we have already specified a redirect on the authorize redirect, we need to continue to use that\n // on token endpoint\n redirectUri: bNoInitialRedirect || this.usePopupForRestOfSession ? sNoMainRedirectUri : sdkConfigAuth.redirectUri\n };\n if( 'silentTimeout' in sdkConfigAuth ) {\n authCodeProps.silentTimeout = sdkConfigAuth.silentTimeout;\n }\n if( bNoInitialRedirect && pegaAuthConfig.authService === 'pega' &&\n sdkConfigAuth.mashupUserIdentifier && sdkConfigAuth.mashupPassword ) {\n authCodeProps.userIdentifier = sdkConfigAuth.mashupUserIdentifier;\n authCodeProps.password = sdkConfigAuth.mashupPassword;\n }\n if( 'iframeLoginUI' in sdkConfigAuth ){\n authCodeProps.iframeLoginUI = sdkConfigAuth.iframeLoginUI.toString().toLowerCase() === 'true';\n }\n Object.assign(pegaAuthConfig, authCodeProps);\n }\n Object.assign(this.#authConfig, pegaAuthConfig);\n\n // Add an on page hide handler to write out key properties that we want to survive a\n // browser reload\n if (!this.#pageHideAdded && (!this.#usePASS || this.#tokenStorage !== 'always')) {\n window.addEventListener('pagehide', this.#doPageHide.bind(this));\n this.#pageHideAdded = true;\n }\n\n // Initialise PegaAuth OAuth 2.0 client library\n if( this.#usePASS ) {\n this.#setStorage(this.#ssKeyConfigInfo, this.#authConfig);\n this.#setStorage(this.#ssKeySessionInfo, this.#authDynState);\n this.#pegaAuth = new PegaAuth(this.#ssKeyConfigInfo, this.#ssKeySessionInfo);\n } else {\n this.#authConfig.fnDynStateChangedCB = this.#doAuthDynStateChanged.bind(this);\n this.#pegaAuth = new PegaAuth(this.#authConfig, this.#authDynState);\n }\n this.initInProgress = false;\n resolve(this.#pegaAuth);\n });\n } else {\n let idNextCheck: ReturnType<typeof setInterval>;\n const fnCheckForAuthMgr = () => {\n if( !this.initInProgress ) {\n if( idNextCheck ) {\n clearInterval(idNextCheck);\n }\n resolve(this.#pegaAuth);\n }\n };\n fnCheckForAuthMgr();\n idNextCheck = setInterval(fnCheckForAuthMgr, 100);\n }\n });\n }\n\n /**\n * Initiate the process to get the Constellation bootstrap shell loaded and initialized\n * @param {Object} authConfig\n * @param {Object} tokenInfo\n * @param {Function} authTokenUpdated - callback invoked when Constellation JS Engine silently updates\n * an expired access_token\n * @param {Function} fnReauth - callback invoked when a full or custom reauth is needed\n */\n #constellationInit(authConfig, tokenInfo, authTokenUpdated, fnReauth) {\n const constellationBootConfig:any = {};\n const sdkConfigServer = SdkConfigAccess.getSdkConfigServer();\n\n // Set up constellationConfig with data that bootstrapWithAuthHeader expects\n constellationBootConfig.customRendering = true;\n constellationBootConfig.restServerUrl = sdkConfigServer.infinityRestServerUrl;\n // NOTE: Needs a trailing slash! So add one if not provided\n if( !sdkConfigServer.sdkContentServerUrl.endsWith('/') ) {\n sdkConfigServer.sdkContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}/`;\n }\n constellationBootConfig.staticContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}constellation/`;\n if( !constellationBootConfig.staticContentServerUrl.endsWith('/') ) {\n constellationBootConfig.staticContentServerUrl = `${constellationBootConfig.staticContentServerUrl}/`;\n }\n // If appAlias specified, use it\n if( sdkConfigServer.appAlias ) {\n constellationBootConfig.appAlias = sdkConfigServer.appAlias;\n }\n\n if( tokenInfo ) {\n // Pass in auth info to Constellation\n constellationBootConfig.authInfo = {\n authType: \"OAuth2.0\",\n tokenInfo,\n // Set whether we want constellation to try to do a full re-Auth or not ()\n // true doesn't seem to be working in SDK scenario so always passing false for now\n popupReauth: false /* !this.noInitialRedirect */,\n client_id: authConfig.clientId,\n authentication_service: authConfig.authService,\n redirect_uri: authConfig.redirectUri,\n endPoints: {\n authorize: authConfig.authorizeUri,\n token: authConfig.tokenUri,\n revoke: authConfig.revokeUri\n },\n // TODO: setup callback so we can update own storage\n onTokenRetrieval: this.#authTokenUpdated.bind(this)\n }\n } else {\n constellationBootConfig.authorizationHeader = this.#authHeader;\n }\n\n\n // Turn off dynamic load components (should be able to do it here instead of after load?)\n constellationBootConfig.dynamicLoadComponents = false;\n\n if( this.bC11NBootstrapInProgress ) {\n return;\n } else {\n this.bC11NBootstrapInProgress = true;\n }\n\n // Note that staticContentServerUrl already ends with a slash (see above), so no slash added.\n // In order to have this import succeed and to have it done with the webpackIgnore magic comment tag.\n // See: https://webpack.js.org/api/module-methods/\n import(/* webpackIgnore: true */ `${constellationBootConfig.staticContentServerUrl}bootstrap-shell.js`).then((bootstrapShell) => {\n // NOTE: once this callback is done, we lose the ability to access loadMashup.\n // So, create a reference to it\n window.myLoadMashup = bootstrapShell.loadMashup;\n window.myLoadPortal = bootstrapShell.loadPortal;\n window.myLoadDefaultPortal = bootstrapShell.loadDefaultPortal;\n\n bootstrapShell.bootstrapWithAuthHeader(constellationBootConfig, 'pega-root').then(() => {\n // eslint-disable-next-line no-console\n console.log('ConstellationJS bootstrap successful!');\n this.bC11NBootstrapInProgress = false;\n\n // Setup listener for the reauth event\n if( tokenInfo ) {\n PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_FULL_REAUTH, fnReauth, \"authFullReauth\");\n } else {\n // customReauth event introduced with 8.8\n const sEvent = PCore.getConstants().PUB_SUB_EVENTS.EVENT_CUSTOM_REAUTH;\n if( sEvent ) {\n PCore.getPubSubUtils().subscribe(sEvent, fnReauth, \"doReauth\");\n }\n }\n\n // Fire SdkConstellationReady event so bridge and app route can do expected post PCore initializations\n const event = new CustomEvent('SdkConstellationReady', {});\n document.dispatchEvent(event);\n })\n .catch( e => {\n // Assume error caught is because token is not valid and attempt a full reauth\n // eslint-disable-next-line no-console\n console.error(`ConstellationJS bootstrap failed. ${e}`);\n this.bC11NBootstrapInProgress = false;\n fnReauth();\n })\n });\n /* Ends here */\n\n }\n\n #customConstellationInit( fnReauth ) {\n this.#constellationInit( null, null, null, fnReauth);\n }\n\n #fireTokenAvailable(token, bLoadC11N=true) {\n if( !token ) {\n // This is used on page reload to load the token from sessionStorage and carry on\n token = this.#tokenInfo;\n if( !token ) {\n return;\n }\n }\n\n this.#tokenInfo = token;\n if( this.#tokenStorage === 'always' ) {\n this.#setStorage( this.#ssKeyTokenInfo, this.#tokenInfo );\n }\n this.#updateLoginStatus();\n\n // this.isLoggedIn is getting updated in updateLoginStatus\n this.isLoggedIn = true;\n this.loginStart = 0;\n this.usePopupForRestOfSession = true;\n\n if( !window.PCore && bLoadC11N ) {\n this.#constellationInit( this.#authConfig, token, this.#authTokenUpdated.bind(this), this.#authFullReauth.bind(this) );\n }\n\n /*\n // Create and dispatch the SdkLoggedIn event to trigger constellationInit\n const event = new CustomEvent('SdkLoggedIn', { detail: { authConfig, tokenInfo: token } });\n document.dispatchEvent(event);\n */\n }\n\n #processTokenOnLogin(token, bLoadC11N=true) {\n this.#tokenInfo = token;\n if( this.#tokenStorage === 'always' ) {\n this.#setStorage(this.#ssKeyTokenInfo, this.#tokenInfo);\n }\n if( window.PCore ) {\n PCore.getAuthUtils().setTokens(token);\n } else {\n this.#fireTokenAvailable(token, bLoadC11N);\n }\n }\n\n updateRedirectUri(sRedirectUri:string) {\n this.#authConfig.redirectUri = sRedirectUri;\n }\n\n /**\n * Get available portals which supports SDK\n * @returns list of available portals (portals other than excludingPortals list)\n */\n async getAvailablePortals() {\n\n return getSdkConfig().then( sdkConfig => {\n\n const serverConfig = sdkConfig.serverConfig;\n\n const userAccessGroup = PCore.getEnvironmentInfo().getAccessGroup();\n const dataPageName = 'D_OperatorAccessGroups';\n const serverUrl = serverConfig.infinityRestServerUrl;\n const appAlias = serverConfig.appAlias;\n const appAliasPath = appAlias ? `/app/${appAlias}` : '';\n const arExcludedPortals = serverConfig['excludePortals'];\n\n const headers: HeadersInit = {\n Authorization: this.#authHeader===null ? '': this.#authHeader,\n 'Content-Type': 'application/json'\n };\n\n // Using v1 API here as v2 data_views is not able to access same data page currently. Should move to avoid having this logic to find\n // a default portal or constellation portal and rather have Constellation JS Engine API just load the default portal\n return fetch(`${serverUrl}${appAliasPath}/api/v1/data/${dataPageName}`, {\n method: 'GET',\n headers\n })\n .then(response => {\n if (response.ok && response.status === 200) {\n return response.json();\n } else {\n if (response.status === 401) {\n // Might be either a real token expiration or revoke, but more likely that the \"api\" service package is misconfigured\n throw new Error(\n `Attempt to access ${dataPageName} failed. The \"api\" service package is likely not configured to use \"OAuth 2.0\"`\n );\n }\n throw new Error(`HTTP Error: ${response.status}`);\n }\n })\n .then(async agData => {\n const arAccessGroups = agData.pxResults;\n const availablePortals:Array<Object> = [];\n\n for (const ag of arAccessGroups) {\n if (ag.pyAccessGroup === userAccessGroup) {\n // eslint-disable-next-line no-console\n console.error(\n `Default portal for current operator (${ag.pyPortal}) is not compatible with SDK.\\nConsider using a different operator, adjusting the default portal for this operator, or using \"appPortal\" setting within sdk-config.json to specify a specific portal to load.`\n );\n let portal:any = null;\n for (portal of ag.pyUserPortals) {\n if (!arExcludedPortals.includes(portal.pyPortalLayout)) {\n availablePortals.push(portal.pyPortalLayout);\n }\n }\n break;\n }\n }\n\n // Found operator's current access group. Use its portal\n // eslint-disable-next-line no-console\n console.log(`Available portals: ${availablePortals}`);\n\n return availablePortals;\n })\n .catch(e => {\n // eslint-disable-next-line no-console\n console.error(e.message);\n // check specific error if 401, and wiped out if so stored token is stale. Fetch new tokens.\n });\n });\n }\n\n #updateLoginStatus() {\n if( !this.#authHeader && this.#tokenInfo?.access_token) {\n // Use setter to set this securely\n this.authHeader = `${this.#tokenInfo.token_type} ${this.#tokenInfo.access_token}`;\n }\n this.isLoggedIn = !!(this.#authHeader && this.#authHeader.length > 0);\n }\n\n // Initiate a full OAuth re-authorization (any refresh token has also expired).\n #authFullReauth() {\n const bHandleHere = true; // Other alternative is to raise an event and have someone else handle it\n\n if( this.reauthStart ) {\n const reauthIgnoreInterval = 300000; // 5 minutes\n const currTime = Date.now();\n const bReauthInProgress = currTime - this.reauthStart <= reauthIgnoreInterval;\n if( bReauthInProgress ) {\n return;\n }\n }\n\n if( bHandleHere ) {\n // Don't want to do a full clear of authMgr as will loose state props (like sessionIndex). Rather just clear the tokens\n this.clear(true);\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n login(true);\n } else {\n // Fire the SdkFullReauth event to indicate a new token is needed (PCore.getAuthUtils.setTokens method\n // should be used to communicate the new token to Constellation JS Engine.\n const event = new CustomEvent('SdkFullReauth', { detail: this.#processTokenOnLogin.bind(this) });\n document.dispatchEvent(event);\n }\n }\n\n // Passive update where just session storage is updated so can be used on a window refresh\n #authTokenUpdated( tokenInfo ){\n this.#tokenInfo = tokenInfo;\n };\n\n // TODO: Cope with 401 and refresh token if possible (or just hope that it succeeds during login)\n /**\n * Retrieve UserInfo for current authentication service\n */\n getUserInfo() {\n if( this.#userInfo ) {\n return this.#userInfo;\n }\n return this.#initialize(false).then( (aMgr) => {\n return aMgr.getUserinfo(this.#tokenInfo.access_token).then( data => {\n this.#userInfo = data;\n return this.#userInfo;\n });\n });\n }\n\n login( bFullReauth=false ){\n if( this.bCustomAuth ) return;\n\n // Needed so a redirect to login screen and back will know we are still in process of logging in\n this.loginStart = Date.now();\n\n this.#initialize(!bFullReauth).then( (aMgr) => {\n const bMainRedirect = !this.noInitialRedirect;\n const sdkConfigAuth = SdkConfigAccess.getSdkConfigAuth();\n let sRedirectUri=sdkConfigAuth.redirectUri;\n\n // If initial main redirect is OK, redirect to main page, otherwise will authorize in a popup window\n if (bMainRedirect && !bFullReauth) {\n // update redirect uri to be the root\n this.updateRedirectUri(sRedirectUri);\n aMgr.loginRedirect();\n // Don't have token til after the redirect\n return Promise.resolve(undefined);\n } else {\n // Construct path to redirect uri\n const nLastPathSep = sRedirectUri.lastIndexOf(\"/\");\n sRedirectUri = nLastPathSep !== -1 ? `${sRedirectUri.substring(0,nLastPathSep+1)}auth.html` : `${sRedirectUri}/auth.html`;\n // Set redirectUri to static auth.html\n this.updateRedirectUri(sRedirectUri);\n return new Promise( (resolve, reject) => {\n aMgr.login().then(token => {\n this.#processTokenOnLogin(token);\n // this.getUserInfo();\n resolve(token.access_token);\n }).catch( (e) => {\n // Use setter to update state\n this.loginStart = 0;\n // eslint-disable-next-line no-console\n console.log(e);\n reject(e);\n });\n });\n }\n });\n\n }\n\n authRedirectCallback( href, fnLoggedInCB:any=null ) {\n // Get code from href and swap for token\n const aHrefParts = href.split('?');\n const urlParams = new URLSearchParams(aHrefParts.length>1 ? `?${aHrefParts[1]}` : '');\n const code = urlParams.get('code');\n const state = urlParams.get('state');\n\n // If state should also match before accepting code\n if( code ) {\n this.#initialize(false).then( (aMgr) => {\n if( aMgr.checkStateMatch(state) ) {\n aMgr.getToken(code).then(token => {\n if( token && token.access_token ) {\n this.#processTokenOnLogin(token, false);\n // this.getUserInfo();\n if( fnLoggedInCB ) {\n fnLoggedInCB(token.access_token);\n }\n }\n });\n }\n });\n } else {\n const error = urlParams.get('error');\n const errorDesc = urlParams.get('errorDesc');\n fnLoggedInCB(null, error, errorDesc);\n }\n }\n\n loginIfNecessary(loginProps:any){\n const {appName, deferLogin, redirectDoneCB } = loginProps;\n const noMainRedirect = !loginProps.mainRedirect;\n // We need to load state before making any decisions\n this.#loadState();\n // If no initial redirect status of page changed...clear AuthMgr\n const currNoMainRedirect = this.noInitialRedirect;\n if( appName !== this.state.appName || noMainRedirect !== currNoMainRedirect) {\n this.clear(false);\n this.state.appName = appName;\n this.#setStorage(this.#ssKeyState, this.state);\n }\n this.noInitialRedirect = noMainRedirect;\n // If custom auth no need to do any OAuth logic\n if( this.bCustomAuth ) {\n this.#updateLoginStatus();\n if( !window.PCore ) {\n this.#customConstellationInit( () => {\n // Fire the SdkCustomReauth event to indicate a new authHeader is needed. Event listener should invoke sdkSetAuthHeader\n // to communicate the new token to sdk (and Constellation JS Engine)\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const event = new CustomEvent('SdkCustomReauth', { detail: sdkSetAuthHeader });\n document.dispatchEvent(event);\n } );\n }\n return;\n }\n if( window.location.href.includes(\"?code\") ) {\n // initialize authMgr (now initialize in constructor?)\n return this.#initialize(false).then(()=> {\n const cbDefault = () => {\n window.location.href = window.location.pathname;\n }\n // eslint-disable-next-line no-console\n console.log('About to invoke PegaAuth authRedirectCallback');\n this.authRedirectCallback(window.location.href, redirectDoneCB || cbDefault);\n // });\n });\n }\n if( !deferLogin && (!this.loginStart || this.isLoginExpired()) ) {\n return this.#initialize(false).then(() => {\n this.#updateLoginStatus();\n if( this.isLoggedIn ) {\n this.#fireTokenAvailable(this.#tokenInfo);\n // this.getUserInfo();\n } else {\n return this.login();\n }\n // });\n });\n }\n }\n\n\n logout(){\n sessionStorage.removeItem('rsdk_portalName');\n return new Promise((resolve) => {\n const fnClearAndResolve = () => {\n this.clear();\n\n const event = new Event('SdkLoggedOut');\n document.dispatchEvent(event);\n\n resolve(null);\n };\n if( this.bCustomAuth ) {\n fnClearAndResolve();\n return;\n }\n if( this.#tokenInfo && this.#tokenInfo.access_token ) {\n if( window.PCore ) {\n window.PCore.getAuthUtils().revokeTokens().then(() => {\n fnClearAndResolve();\n }).catch(err => {\n // eslint-disable-next-line no-console\n console.log(\"Error:\",err?.message);\n });\n } else {\n this.#initialize(false).then( (aMgr) => {\n aMgr.revokeTokens(this.#tokenInfo.access_token, this.#tokenInfo.refresh_token)\n .then(() => {\n // Go to finally\n })\n .finally(() => {\n fnClearAndResolve();\n });\n });\n }\n } else {\n fnClearAndResolve();\n }\n });\n }\n\n}\n\nconst gAuthMgr = new AuthManager();\n\n\n// TODO: Cope with 401 and refresh token if possible (or just hope that it succeeds during login)\n/**\n * Retrieve UserInfo for current authentication service\n */\nexport const getUserInfo = () => {\n return gAuthMgr.getUserInfo();\n};\n\nexport const login = (bFullReauth=false) => {\n return gAuthMgr.login( bFullReauth );\n};\n\nexport const authRedirectCallback = ( href, fnLoggedInCB:any=null ) => {\n gAuthMgr.authRedirectCallback( href, fnLoggedInCB );\n};\n\n/**\n * Silent or visible login based on login status\n * @param {string} appName - unique name for application route (will be used to clear an session storage for another route)\n * @param {boolean} noMainRedirect - avoid the initial main window redirect that happens in scenarios where it is OK to transition\n * away from the main page\n * @param {boolean} deferLogin - defer logging in (if not already authenticated)\n */\nexport const loginIfNecessary = (loginProps:any) => {\n gAuthMgr.loginIfNecessary( loginProps );\n};\n\nexport const getHomeUrl = () => {\n return `${window.location.origin}/`;\n};\n\n\nexport const authIsMainRedirect = () => {\n // Even with main redirect, we want to use it only for the first login (so it doesn't wipe out any state or the reload)\n return !gAuthMgr.noInitialRedirect && !gAuthMgr.usePopupForRestOfSession;\n};\n\nexport const sdkIsLoggedIn = () => {\n return gAuthMgr.isLoggedIn;\n}\n\nexport const logout = () => {\n return gAuthMgr.logout();\n};\n\n// Set the custom authorization header for the SDK (and Constellation JS Engine) to\n// utilize for every DX API request\nexport const sdkSetAuthHeader = (authHeader) => {\n gAuthMgr.bCustomAuth = !!authHeader;\n // Use setter to set this securely\n gAuthMgr.authHeader = authHeader;\n};\n\nexport const getAvailablePortals = async () => {\n return gAuthMgr.getAvailablePortals();\n};\n"]}
@@ -1,3 +0,0 @@
1
- export let SdkConfigAccess: any;
2
- export function getSdkConfig(): Promise<any>;
3
- //# sourceMappingURL=config_access.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config_access.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/config_access.js"],"names":[],"mappings":"AAOA,gCAAoB;AA4IpB,6CAgCC"}
@@ -1,198 +0,0 @@
1
- // Helper singleton class to assist with loading and accessing
2
- // the SDK Config JSON
3
- import { isEmptyObject } from './common-utils';
4
- // Create a singleton for this class (with async loading of config file) and export it
5
- // Note: Initialzing SdkConfigAccess to null seems to cause lots of compile issues with references
6
- // within other components and the value potentially being null (so try to leave it undefined)
7
- let SdkConfigAccess;
8
- let SdkConfigAccessCreateInProgress = false;
9
- class ConfigAccess {
10
- constructor() {
11
- /**
12
- *
13
- * @returns the sdk-config JSON object
14
- */
15
- Object.defineProperty(this, "getSdkConfig", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: async () => {
20
- if (isEmptyObject(this.sdkConfig)) {
21
- await getSdkConfig();
22
- }
23
- return this.sdkConfig;
24
- }
25
- });
26
- /**
27
- *
28
- * @returns the authConfig block in the SDK Config object
29
- */
30
- Object.defineProperty(this, "getSdkConfigAuth", {
31
- enumerable: true,
32
- configurable: true,
33
- writable: true,
34
- value: () => {
35
- if (isEmptyObject(this.sdkConfig)) {
36
- const config = this.getSdkConfig();
37
- }
38
- return this.sdkConfig['authConfig'];
39
- }
40
- });
41
- /**
42
- *
43
- * @returns the serverConfig bloc from the sdk-config.json file
44
- */
45
- Object.defineProperty(this, "getSdkConfigServer", {
46
- enumerable: true,
47
- configurable: true,
48
- writable: true,
49
- value: () => {
50
- if (isEmptyObject(this.sdkConfig)) {
51
- const config = this.getSdkConfig();
52
- }
53
- return this.sdkConfig['serverConfig'];
54
- }
55
- });
56
- /**
57
- * @param {String} key the key to be inserted/updated in serverConfig
58
- * @param {String} value the value to be assigned to the given key
59
- */
60
- Object.defineProperty(this, "setSdkConfigServer", {
61
- enumerable: true,
62
- configurable: true,
63
- writable: true,
64
- value: (key, value) => {
65
- this.sdkConfig.serverConfig[key] = value;
66
- }
67
- });
68
- /**
69
- * Path to the BootstrapCSS
70
- * @returns the locBootstrapCSS from the serverConfig block of the sdk-config.json file
71
- */
72
- Object.defineProperty(this, "getSdkConfigBootstrapCSS", {
73
- enumerable: true,
74
- configurable: true,
75
- writable: true,
76
- value: () => {
77
- const serverConfig = this.getSdkConfigServer();
78
- const locBootstrapCSS = serverConfig.locBootstrapCSS;
79
- if (locBootstrapCSS === undefined) {
80
- console.error(`locBootstrapCSS: ${locBootstrapCSS}`);
81
- }
82
- return locBootstrapCSS;
83
- }
84
- });
85
- // sdkConfig is the JSON object read from the sdk-config.json file
86
- this.sdkConfig = {};
87
- // isConfigLoaded will be updated to true after the async load is complete
88
- this.isConfigLoaded = false;
89
- // The "work" to load the config file is done (asynchronously) via the initialize
90
- // (Factory function) below)
91
- }
92
- /**
93
- * Asynchronous initialization of the config file contents.
94
- * @returns Promise of config file fetch
95
- */
96
- async readSdkConfig() {
97
- if (isEmptyObject(this.sdkConfig)) {
98
- return fetch('./sdk-config.json')
99
- .then(response => {
100
- if (response.ok) {
101
- return response.json();
102
- }
103
- else {
104
- throw new Error(`Failed with status:${response.status}`);
105
- }
106
- })
107
- .then(data => {
108
- this.sdkConfig = data;
109
- this.fixupConfigSettings();
110
- return Promise.resolve(this.sdkConfig);
111
- })
112
- .catch(err => {
113
- console.error('Fetch for sdk-config.js failed.');
114
- console.error(err);
115
- return Promise.reject(err);
116
- });
117
- }
118
- else {
119
- return Promise.resolve(this.sdkConfig);
120
- }
121
- }
122
- // Adjust any settings like setting up defaults or making sure URIs have a trailing slash
123
- fixupConfigSettings() {
124
- const oServerConfig = this.sdkConfig['serverConfig'];
125
- // If not present, then use current root path
126
- oServerConfig.sdkContentServerUrl = oServerConfig.sdkContentServerUrl || window.location.origin;
127
- // Needs a trailing slash so add one if not there
128
- if (!oServerConfig.sdkContentServerUrl.endsWith('/')) {
129
- oServerConfig.sdkContentServerUrl = `${oServerConfig.sdkContentServerUrl}/`;
130
- }
131
- console.log(`Using sdkContentServerUrl: ${this.sdkConfig['serverConfig'].sdkContentServerUrl}`);
132
- // Don't want a trailing slash for infinityRestServerUrl
133
- if (oServerConfig.infinityRestServerUrl.endsWith('/')) {
134
- oServerConfig.infinityRestServerUrl = oServerConfig.infinityRestServerUrl.slice(0, -1);
135
- }
136
- // Specify our own internal list of well known portals to exclude (if one not specified)
137
- if (!oServerConfig.excludePortals) {
138
- oServerConfig.excludePortals = [
139
- 'pxExpress',
140
- 'Developer',
141
- 'pxPredictionStudio',
142
- 'pxAdminStudio',
143
- 'pyCaseWorker',
144
- 'pyCaseManager7'
145
- ];
146
- console.warn(`No exludePortals entry found within serverConfig section of sdk-config.json. Using the following default list: ["pxExpress", "Developer", "pxPredictionStudio", "pxAdminStudio", "pyCaseWorker", "pyCaseManager7"]`);
147
- }
148
- }
149
- }
150
- // Implement Factory function to allow async load
151
- // See https://stackoverflow.com/questions/49905178/asynchronous-operations-in-constructor/49906064#49906064 for inspiration
152
- async function createSdkConfigAccess() {
153
- // Note that our initialize function returns a promise...
154
- let singleton = new ConfigAccess();
155
- await singleton.readSdkConfig();
156
- return singleton;
157
- }
158
- // Initialize exported SdkConfigAccess structure
159
- async function getSdkConfig() {
160
- return new Promise(resolve => {
161
- let idNextCheck = null;
162
- if (!SdkConfigAccess && !SdkConfigAccessCreateInProgress) {
163
- SdkConfigAccessCreateInProgress = true;
164
- createSdkConfigAccess().then(theConfigAccess => {
165
- // Key initialization of SdkConfigAccess
166
- SdkConfigAccess = theConfigAccess;
167
- SdkConfigAccessCreateInProgress = false;
168
- // console.log(`SdkConfigAccess: ${JSON.stringify(SdkConfigAccess)}`);
169
- // Create and dispatch the SdkConfigAccessReady event
170
- const event = new CustomEvent('SdkConfigAccessReady', {});
171
- document.dispatchEvent(event);
172
- return resolve(SdkConfigAccess.sdkConfig);
173
- });
174
- }
175
- else {
176
- const fnCheckForConfig = () => {
177
- if (SdkConfigAccess) {
178
- if (idNextCheck) {
179
- clearInterval(idNextCheck);
180
- }
181
- return resolve(SdkConfigAccess.sdkConfig);
182
- }
183
- idNextCheck = setInterval(fnCheckForConfig, 500);
184
- };
185
- if (SdkConfigAccess) {
186
- return resolve(SdkConfigAccess.sdkConfig);
187
- }
188
- else {
189
- idNextCheck = setInterval(fnCheckForConfig, 500);
190
- }
191
- }
192
- });
193
- }
194
- if (true) {
195
- let ignore = getSdkConfig();
196
- }
197
- export { SdkConfigAccess, getSdkConfig };
198
- //# sourceMappingURL=config_access.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config_access.js","sourceRoot":"","sources":["../../../src/components/helpers/config_access.js"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,uBAAuB;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,sFAAsF;AACtF,kGAAkG;AAClG,+FAA+F;AAC/F,IAAI,eAAe,CAAC;AACpB,IAAI,+BAA+B,GAAG,KAAK,CAAC;AAE5C,MAAM,YAAY;IAChB;QAuEA;;;WAGG;QACH;;;;mBAAe,KAAK,IAAI,EAAE;gBACxB,IAAI,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;oBACjC,MAAM,YAAY,EAAE,CAAC;iBACtB;gBACD,OAAO,IAAI,CAAC,SAAS,CAAC;YACxB,CAAC;WAAC;QAEF;;;WAGG;QACH;;;;mBAAmB,GAAG,EAAE;gBACtB,IAAI,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;oBACjC,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;iBACpC;gBACD,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;YACtC,CAAC;WAAC;QAEF;;;WAGG;QACH;;;;mBAAqB,GAAG,EAAE;gBACxB,IAAI,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;oBACjC,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;iBACpC;gBACD,OAAO,IAA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,CAAC,CAAC;aAClD;SACF;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,IAAI,IAAI,EAAE;IACR,IAAI,MAAM,GAAG,YAAY,EAAE,CAAC;CAC7B;AAED,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC","sourcesContent":["// Helper singleton class to assist with loading and accessing\n// the SDK Config JSON\nimport { isEmptyObject } from './common-utils';\n\n// Create a singleton for this class (with async loading of config file) and export it\n// Note: Initialzing SdkConfigAccess to null seems to cause lots of compile issues with references\n// within other components and the value potentially being null (so try to leave it undefined)\nlet SdkConfigAccess;\nlet SdkConfigAccessCreateInProgress = false;\n\nclass ConfigAccess {\n constructor() {\n // sdkConfig is the JSON object read from the sdk-config.json file\n this.sdkConfig = {};\n // isConfigLoaded will be updated to true after the async load is complete\n this.isConfigLoaded = false;\n\n // The \"work\" to load the config file is done (asynchronously) via the initialize\n // (Factory function) below)\n }\n\n /**\n * Asynchronous initialization of the config file contents.\n * @returns Promise of config file fetch\n */\n async readSdkConfig() {\n if (isEmptyObject(this.sdkConfig)) {\n return fetch('./sdk-config.json')\n .then(response => {\n if (response.ok) {\n return response.json();\n } else {\n throw new Error(`Failed with status:${response.status}`);\n }\n })\n .then(data => {\n this.sdkConfig = data;\n this.fixupConfigSettings();\n return Promise.resolve(this.sdkConfig);\n })\n .catch(err => {\n console.error('Fetch for sdk-config.js failed.');\n console.error(err);\n return Promise.reject(err);\n });\n } else {\n return Promise.resolve(this.sdkConfig);\n }\n }\n\n // Adjust any settings like setting up defaults or making sure URIs have a trailing slash\n fixupConfigSettings() {\n const oServerConfig = this.sdkConfig['serverConfig'];\n // If not present, then use current root path\n oServerConfig.sdkContentServerUrl = oServerConfig.sdkContentServerUrl || window.location.origin;\n // Needs a trailing slash so add one if not there\n if (!oServerConfig.sdkContentServerUrl.endsWith('/')) {\n oServerConfig.sdkContentServerUrl = `${oServerConfig.sdkContentServerUrl}/`;\n }\n console.log(`Using sdkContentServerUrl: ${this.sdkConfig['serverConfig'].sdkContentServerUrl}`);\n\n // Don't want a trailing slash for infinityRestServerUrl\n if (oServerConfig.infinityRestServerUrl.endsWith('/')) {\n oServerConfig.infinityRestServerUrl = oServerConfig.infinityRestServerUrl.slice(0, -1);\n }\n\n // Specify our own internal list of well known portals to exclude (if one not specified)\n if (!oServerConfig.excludePortals) {\n oServerConfig.excludePortals = [\n 'pxExpress',\n 'Developer',\n 'pxPredictionStudio',\n 'pxAdminStudio',\n 'pyCaseWorker',\n 'pyCaseManager7'\n ];\n console.warn(\n `No exludePortals entry found within serverConfig section of sdk-config.json. Using the following default list: [\"pxExpress\", \"Developer\", \"pxPredictionStudio\", \"pxAdminStudio\", \"pyCaseWorker\", \"pyCaseManager7\"]`\n );\n }\n }\n\n /**\n *\n * @returns the sdk-config JSON object\n */\n getSdkConfig = async () => {\n if (isEmptyObject(this.sdkConfig)) {\n await getSdkConfig();\n }\n return this.sdkConfig;\n };\n\n /**\n *\n * @returns the authConfig block in the SDK Config object\n */\n getSdkConfigAuth = () => {\n if (isEmptyObject(this.sdkConfig)) {\n const config = this.getSdkConfig();\n }\n return this.sdkConfig['authConfig'];\n };\n\n /**\n *\n * @returns the serverConfig bloc from the sdk-config.json file\n */\n getSdkConfigServer = () => {\n if (isEmptyObject(this.sdkConfig)) {\n const config = this.getSdkConfig();\n }\n return this.sdkConfig['serverConfig'];\n };\n\n /**\n * @param {String} key the key to be inserted/updated in serverConfig\n * @param {String} value the value to be assigned to the given key\n */\n setSdkConfigServer = (key, value) => {\n this.sdkConfig.serverConfig[key] = value;\n };\n\n /**\n * Path to the BootstrapCSS\n * @returns the locBootstrapCSS from the serverConfig block of the sdk-config.json file\n */\n getSdkConfigBootstrapCSS = () => {\n const serverConfig = this.getSdkConfigServer();\n const locBootstrapCSS = serverConfig.locBootstrapCSS;\n if (locBootstrapCSS === undefined) {\n console.error(`locBootstrapCSS: ${locBootstrapCSS}`);\n }\n return locBootstrapCSS;\n };\n}\n\n// Implement Factory function to allow async load\n// See https://stackoverflow.com/questions/49905178/asynchronous-operations-in-constructor/49906064#49906064 for inspiration\nasync function createSdkConfigAccess() {\n // Note that our initialize function returns a promise...\n let singleton = new ConfigAccess();\n await singleton.readSdkConfig();\n return singleton;\n}\n\n// Initialize exported SdkConfigAccess structure\nasync function getSdkConfig() {\n return new Promise(resolve => {\n let idNextCheck = null;\n if (!SdkConfigAccess && !SdkConfigAccessCreateInProgress) {\n SdkConfigAccessCreateInProgress = true;\n createSdkConfigAccess().then(theConfigAccess => {\n // Key initialization of SdkConfigAccess\n SdkConfigAccess = theConfigAccess;\n SdkConfigAccessCreateInProgress = false;\n // console.log(`SdkConfigAccess: ${JSON.stringify(SdkConfigAccess)}`);\n // Create and dispatch the SdkConfigAccessReady event\n const event = new CustomEvent('SdkConfigAccessReady', {});\n document.dispatchEvent(event);\n return resolve(SdkConfigAccess.sdkConfig);\n });\n } else {\n const fnCheckForConfig = () => {\n if (SdkConfigAccess) {\n if (idNextCheck) {\n clearInterval(idNextCheck);\n }\n return resolve(SdkConfigAccess.sdkConfig);\n }\n idNextCheck = setInterval(fnCheckForConfig, 500);\n };\n if (SdkConfigAccess) {\n return resolve(SdkConfigAccess.sdkConfig);\n } else {\n idNextCheck = setInterval(fnCheckForConfig, 500);\n }\n }\n });\n}\n\nif (true) {\n let ignore = getSdkConfig();\n}\n\nexport { SdkConfigAccess, getSdkConfig };\n"]}