@pega/react-sdk-components 0.23.25 → 0.23.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.d.ts +3 -2
  5. package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
  6. package/lib/bridge/Context/StoreContext.js +5 -6
  7. package/lib/bridge/Context/StoreContext.js.map +1 -1
  8. package/lib/bridge/helpers/sdk_component_map.d.ts +1 -0
  9. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  10. package/lib/bridge/helpers/sdk_component_map.js +45 -46
  11. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  12. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  13. package/lib/bridge/react_pconnect.js +18 -41
  14. package/lib/bridge/react_pconnect.js.map +1 -1
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +10 -0
  16. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -0
  17. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +19 -0
  18. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -0
  19. package/lib/components/designSystemExtension/AlertBanner/index.d.ts +2 -0
  20. package/lib/components/designSystemExtension/AlertBanner/index.d.ts.map +1 -0
  21. package/lib/components/designSystemExtension/AlertBanner/index.js +2 -0
  22. package/lib/components/designSystemExtension/AlertBanner/index.js.map +1 -0
  23. package/lib/components/designSystemExtension/Banner/Banner.css +4 -0
  24. package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
  25. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/Banner/Banner.js +8 -12
  27. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  28. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  29. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
  30. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +32 -33
  32. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  33. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
  34. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +10 -23
  36. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  37. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  38. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +8 -3
  39. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  40. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +25 -14
  41. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  42. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
  43. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  44. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +7 -19
  45. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  46. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
  47. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  48. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -12
  49. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  50. package/lib/components/designSystemExtension/Operator/Operator.d.ts +16 -7
  51. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  52. package/lib/components/designSystemExtension/Operator/Operator.js +56 -73
  53. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  54. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -2
  55. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  56. package/lib/components/designSystemExtension/Pulse/Pulse.js +9 -15
  57. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  58. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
  59. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
  60. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +75 -0
  61. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
  62. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
  63. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
  64. package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
  65. package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
  66. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +6 -2
  67. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
  68. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  69. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  70. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  71. package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
  72. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  73. package/lib/components/field/AutoComplete/AutoComplete.js +17 -17
  74. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  75. package/lib/components/field/CancelAlert/CancelAlert.d.ts +7 -2
  76. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  77. package/lib/components/field/CancelAlert/CancelAlert.js +11 -22
  78. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  79. package/lib/components/field/CancelAlert/index.js.map +1 -1
  80. package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
  81. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  82. package/lib/components/field/Checkbox/Checkbox.js +12 -12
  83. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  84. package/lib/components/field/Currency/Currency.d.ts +6 -1
  85. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  86. package/lib/components/field/Currency/Currency.js +14 -29
  87. package/lib/components/field/Currency/Currency.js.map +1 -1
  88. package/lib/components/field/Currency/currency-utils.d.ts +1 -1
  89. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  90. package/lib/components/field/Currency/currency-utils.js +5 -6
  91. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  92. package/lib/components/field/Date/Date.d.ts +5 -1
  93. package/lib/components/field/Date/Date.d.ts.map +1 -1
  94. package/lib/components/field/Date/Date.js +26 -14
  95. package/lib/components/field/Date/Date.js.map +1 -1
  96. package/lib/components/field/DateTime/DateTime.d.ts +5 -1
  97. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  98. package/lib/components/field/DateTime/DateTime.js +16 -10
  99. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  100. package/lib/components/field/Decimal/Decimal.d.ts +8 -1
  101. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  102. package/lib/components/field/Decimal/Decimal.js +32 -10
  103. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  104. package/lib/components/field/Decimal/index.js.map +1 -1
  105. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  106. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  107. package/lib/components/field/Dropdown/Dropdown.js +115 -11
  108. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  109. package/lib/components/field/Email/Email.d.ts +5 -1
  110. package/lib/components/field/Email/Email.d.ts.map +1 -1
  111. package/lib/components/field/Email/Email.js +12 -11
  112. package/lib/components/field/Email/Email.js.map +1 -1
  113. package/lib/components/field/Email/index.js.map +1 -1
  114. package/lib/components/field/Group/Group.d.ts +13 -0
  115. package/lib/components/field/Group/Group.d.ts.map +1 -0
  116. package/lib/components/field/Group/Group.js +13 -0
  117. package/lib/components/field/Group/Group.js.map +1 -0
  118. package/lib/components/field/Group/index.d.ts +2 -0
  119. package/lib/components/field/Group/index.d.ts.map +1 -0
  120. package/lib/components/field/Group/index.js +2 -0
  121. package/lib/components/field/Group/index.js.map +1 -0
  122. package/lib/components/field/Integer/Integer.d.ts +5 -1
  123. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  124. package/lib/components/field/Integer/Integer.js +10 -8
  125. package/lib/components/field/Integer/Integer.js.map +1 -1
  126. package/lib/components/field/Percentage/Percentage.d.ts +5 -1
  127. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  128. package/lib/components/field/Percentage/Percentage.js +10 -8
  129. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  130. package/lib/components/field/Phone/Phone.d.ts +5 -1
  131. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  132. package/lib/components/field/Phone/Phone.js +12 -10
  133. package/lib/components/field/Phone/Phone.js.map +1 -1
  134. package/lib/components/field/Phone/index.js.map +1 -1
  135. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  136. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  137. package/lib/components/field/RadioButtons/RadioButtons.js +30 -13
  138. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  139. package/lib/components/field/RichText/RichText.d.ts +7 -0
  140. package/lib/components/field/RichText/RichText.d.ts.map +1 -0
  141. package/lib/components/field/RichText/RichText.js +54 -0
  142. package/lib/components/field/RichText/RichText.js.map +1 -0
  143. package/lib/components/field/RichText/index.d.ts +2 -0
  144. package/lib/components/field/RichText/index.d.ts.map +1 -0
  145. package/lib/components/field/RichText/index.js +2 -0
  146. package/lib/components/field/RichText/index.js.map +1 -0
  147. package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
  148. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
  149. package/lib/components/field/ScalarList/ScalarList.js +32 -0
  150. package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
  151. package/lib/components/field/ScalarList/index.d.ts +2 -0
  152. package/lib/components/field/ScalarList/index.d.ts.map +1 -0
  153. package/lib/components/field/ScalarList/index.js +2 -0
  154. package/lib/components/field/ScalarList/index.js.map +1 -0
  155. package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
  156. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  157. package/lib/components/field/SemanticLink/SemanticLink.js +11 -19
  158. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  159. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  160. package/lib/components/field/SemanticLink/utils.js +8 -8
  161. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  162. package/lib/components/field/TextArea/TextArea.d.ts +6 -1
  163. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  164. package/lib/components/field/TextArea/TextArea.js +8 -6
  165. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  166. package/lib/components/field/TextContent/TextContent.d.ts +7 -1
  167. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  168. package/lib/components/field/TextContent/TextContent.js +2 -2
  169. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  170. package/lib/components/field/TextInput/TextInput.d.ts +6 -1
  171. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  172. package/lib/components/field/TextInput/TextInput.js +26 -6
  173. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  174. package/lib/components/field/TextInput/index.js.map +1 -1
  175. package/lib/components/field/Time/Time.d.ts +5 -1
  176. package/lib/components/field/Time/Time.d.ts.map +1 -1
  177. package/lib/components/field/Time/Time.js +15 -9
  178. package/lib/components/field/Time/Time.js.map +1 -1
  179. package/lib/components/field/URL/URL.d.ts +5 -1
  180. package/lib/components/field/URL/URL.d.ts.map +1 -1
  181. package/lib/components/field/URL/URL.js +14 -8
  182. package/lib/components/field/URL/URL.js.map +1 -1
  183. package/lib/components/field/URL/index.js.map +1 -1
  184. package/lib/components/field/UserReference/UserReference.d.ts +20 -41
  185. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  186. package/lib/components/field/UserReference/UserReference.js +17 -46
  187. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  188. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  189. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  190. package/lib/components/helpers/attachmentHelpers.d.ts +6 -6
  191. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  192. package/lib/components/helpers/attachmentHelpers.js +8 -8
  193. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  194. package/lib/components/helpers/case-utils.d.ts +20 -0
  195. package/lib/components/helpers/case-utils.d.ts.map +1 -0
  196. package/lib/components/helpers/case-utils.js +82 -0
  197. package/lib/components/helpers/case-utils.js.map +1 -0
  198. package/lib/components/helpers/common-utils.d.ts +3 -0
  199. package/lib/components/helpers/common-utils.d.ts.map +1 -0
  200. package/lib/components/helpers/common-utils.js +8 -0
  201. package/lib/components/helpers/common-utils.js.map +1 -0
  202. package/lib/components/helpers/data_page.d.ts.map +1 -1
  203. package/lib/components/helpers/data_page.js +2 -3
  204. package/lib/components/helpers/data_page.js.map +1 -1
  205. package/lib/components/helpers/date-format-utils.d.ts +1 -6
  206. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  207. package/lib/components/helpers/date-format-utils.js +23 -14
  208. package/lib/components/helpers/date-format-utils.js.map +1 -1
  209. package/lib/components/helpers/event-utils.d.ts +1 -1
  210. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  211. package/lib/components/helpers/event-utils.js +3 -3
  212. package/lib/components/helpers/event-utils.js.map +1 -1
  213. package/lib/components/helpers/field-group-utils.d.ts +15 -2
  214. package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
  215. package/lib/components/helpers/field-group-utils.js +5 -9
  216. package/lib/components/helpers/field-group-utils.js.map +1 -1
  217. package/lib/components/helpers/formatters/Boolean.d.ts +3 -3
  218. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  219. package/lib/components/helpers/formatters/Boolean.js +9 -20
  220. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  221. package/lib/components/helpers/formatters/Currency.d.ts +6 -6
  222. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  223. package/lib/components/helpers/formatters/Currency.js +13 -13
  224. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  225. package/lib/components/helpers/formatters/CurrencyMap.d.ts +881 -1399
  226. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  227. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  228. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  229. package/lib/components/helpers/formatters/Date.d.ts +5 -5
  230. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  231. package/lib/components/helpers/formatters/Date.js +20 -20
  232. package/lib/components/helpers/formatters/Date.js.map +1 -1
  233. package/lib/components/helpers/formatters/common.d.ts +2 -2
  234. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  235. package/lib/components/helpers/formatters/common.js +4 -5
  236. package/lib/components/helpers/formatters/common.js.map +1 -1
  237. package/lib/components/helpers/formatters/index.d.ts +12 -12
  238. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  239. package/lib/components/helpers/formatters/index.js +19 -19
  240. package/lib/components/helpers/formatters/index.js.map +1 -1
  241. package/lib/components/helpers/reactContextHelpers.d.ts +3 -2
  242. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  243. package/lib/components/helpers/reactContextHelpers.js +1 -1
  244. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  245. package/lib/components/helpers/simpleTableHelpers.d.ts +5 -3
  246. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  247. package/lib/components/helpers/simpleTableHelpers.js +51 -54
  248. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  249. package/lib/components/helpers/state-utils.d.ts +4 -0
  250. package/lib/components/helpers/state-utils.d.ts.map +1 -0
  251. package/lib/components/helpers/state-utils.js +34 -0
  252. package/lib/components/helpers/state-utils.js.map +1 -0
  253. package/lib/components/helpers/template-utils.d.ts +7 -3
  254. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  255. package/lib/components/helpers/template-utils.js +1 -2
  256. package/lib/components/helpers/template-utils.js.map +1 -1
  257. package/lib/components/helpers/utils.d.ts +2 -2
  258. package/lib/components/helpers/utils.d.ts.map +1 -1
  259. package/lib/components/helpers/utils.js +11 -10
  260. package/lib/components/helpers/utils.js.map +1 -1
  261. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  262. package/lib/components/helpers/versionHelpers.js +1 -1
  263. package/lib/components/helpers/versionHelpers.js.map +1 -1
  264. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
  265. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  266. package/lib/components/infra/ActionButtons/ActionButtons.js +13 -27
  267. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  268. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  269. package/lib/components/infra/Assignment/Assignment.d.ts +9 -15
  270. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  271. package/lib/components/infra/Assignment/Assignment.js +67 -70
  272. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  273. package/lib/components/infra/Assignment/index.js.map +1 -1
  274. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +7 -15
  275. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  276. package/lib/components/infra/AssignmentCard/AssignmentCard.js +6 -20
  277. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  278. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  279. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +10 -20
  280. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  281. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +69 -190
  282. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  283. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts +12 -12
  284. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  285. package/lib/components/infra/Containers/FlowContainer/helpers.js +46 -45
  286. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  287. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  288. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  289. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  290. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +37 -0
  291. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  292. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  293. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  294. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  295. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  296. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -17
  297. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  298. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +62 -42
  299. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  300. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  301. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  302. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  303. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  304. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  305. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  306. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  307. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  308. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  309. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  310. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  311. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  312. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  313. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
  314. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  315. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +27 -45
  316. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  317. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  318. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  319. package/lib/components/infra/Containers/helpers.js +7 -0
  320. package/lib/components/infra/Containers/helpers.js.map +1 -0
  321. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -20
  322. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  323. package/lib/components/infra/DashboardFilter/DashboardFilter.js +15 -33
  324. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  325. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  326. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  327. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  328. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +8 -13
  329. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  330. package/lib/components/infra/DeferLoad/DeferLoad.js +11 -22
  331. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  332. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  333. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
  334. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  335. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +21 -27
  336. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  337. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  338. package/lib/components/infra/MultiStep/MultiStep.d.ts +10 -18
  339. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  340. package/lib/components/infra/MultiStep/MultiStep.js +34 -99
  341. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  342. package/lib/components/infra/MultiStep/index.js.map +1 -1
  343. package/lib/components/infra/NavBar/NavBar.css +103 -105
  344. package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
  345. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  346. package/lib/components/infra/NavBar/NavBar.js +22 -69
  347. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  348. package/lib/components/infra/Reference/Reference.d.ts +8 -17
  349. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  350. package/lib/components/infra/Reference/Reference.js +5 -17
  351. package/lib/components/infra/Reference/Reference.js.map +1 -1
  352. package/lib/components/infra/Region/Region.d.ts +4 -8
  353. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  354. package/lib/components/infra/Region/Region.js +2 -7
  355. package/lib/components/infra/Region/Region.js.map +1 -1
  356. package/lib/components/infra/RootContainer/RootContainer.d.ts +13 -20
  357. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  358. package/lib/components/infra/RootContainer/RootContainer.js +46 -88
  359. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  360. package/lib/components/infra/RootContainer/index.js.map +1 -1
  361. package/lib/components/infra/Stages/Stages.d.ts +5 -8
  362. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  363. package/lib/components/infra/Stages/Stages.js +20 -27
  364. package/lib/components/infra/Stages/Stages.js.map +1 -1
  365. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  366. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  367. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  368. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
  369. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  370. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +13 -17
  371. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  372. package/lib/components/infra/View/View.d.ts +13 -17
  373. package/lib/components/infra/View/View.d.ts.map +1 -1
  374. package/lib/components/infra/View/View.js +17 -69
  375. package/lib/components/infra/View/View.js.map +1 -1
  376. package/lib/components/template/AppShell/AppShell.css +22 -23
  377. package/lib/components/template/AppShell/AppShell.d.ts +20 -16
  378. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  379. package/lib/components/template/AppShell/AppShell.js +32 -50
  380. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  381. package/lib/components/template/BannerPage/BannerPage.d.ts +12 -24
  382. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  383. package/lib/components/template/BannerPage/BannerPage.js +7 -25
  384. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  385. package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -8
  386. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  387. package/lib/components/template/CaseSummary/CaseSummary.js +10 -12
  388. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  389. package/lib/components/template/CaseView/CaseView.d.ts +10 -23
  390. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  391. package/lib/components/template/CaseView/CaseView.js +38 -65
  392. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  393. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -13
  394. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  395. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +24 -20
  396. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  397. package/lib/components/template/Confirmation/Confirmation.d.ts +10 -17
  398. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  399. package/lib/components/template/Confirmation/Confirmation.js +10 -28
  400. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  401. package/lib/components/template/DataReference/DataReference.d.ts +15 -30
  402. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  403. package/lib/components/template/DataReference/DataReference.js +35 -72
  404. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  405. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  406. package/lib/components/template/DefaultForm/DefaultForm.d.ts +7 -11
  407. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  408. package/lib/components/template/DefaultForm/DefaultForm.js +11 -17
  409. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  410. package/lib/components/template/DefaultForm/utils/index.d.ts +3 -0
  411. package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -0
  412. package/lib/components/template/DefaultForm/utils/index.js +27 -0
  413. package/lib/components/template/DefaultForm/utils/index.js.map +1 -0
  414. package/lib/components/template/Details/Details/Details.d.ts +7 -15
  415. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  416. package/lib/components/template/Details/Details/Details.js +8 -21
  417. package/lib/components/template/Details/Details/Details.js.map +1 -1
  418. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -16
  419. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  420. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +6 -23
  421. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  422. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -15
  423. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  424. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +9 -22
  425. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  426. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -15
  427. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  428. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +9 -22
  429. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  430. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  431. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +10 -0
  432. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
  433. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +45 -0
  434. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
  435. package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
  436. package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
  437. package/lib/components/template/Details/DynamicTabs/index.js +2 -0
  438. package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
  439. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
  440. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  441. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +12 -27
  442. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  443. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -8
  444. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  445. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -14
  446. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  447. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -16
  448. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  449. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +9 -17
  450. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  451. package/lib/components/template/ListPage/ListPage.d.ts +5 -13
  452. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  453. package/lib/components/template/ListPage/ListPage.js +7 -11
  454. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  455. package/lib/components/template/ListView/DefaultViewMeta.d.ts +1 -90
  456. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  457. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  458. package/lib/components/template/ListView/ListView.d.ts +15 -8
  459. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  460. package/lib/components/template/ListView/ListView.js +166 -257
  461. package/lib/components/template/ListView/ListView.js.map +1 -1
  462. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  463. package/lib/components/template/ListView/hooks.js +4 -7
  464. package/lib/components/template/ListView/hooks.js.map +1 -1
  465. package/lib/components/template/ListView/utils.d.ts +72 -16
  466. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  467. package/lib/components/template/ListView/utils.js +163 -33
  468. package/lib/components/template/ListView/utils.js.map +1 -1
  469. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
  470. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  471. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +5 -16
  472. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  473. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  474. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +11 -2
  475. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  476. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  477. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  478. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -15
  479. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  480. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +9 -22
  481. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  482. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  483. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +6 -2
  484. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  485. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  486. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  487. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +8 -15
  488. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  489. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +7 -18
  490. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  491. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +5 -8
  492. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  493. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -13
  494. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  495. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
  496. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  497. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +5 -8
  498. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  499. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +5 -8
  500. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  501. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -7
  502. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  503. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  504. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +9 -14
  505. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  506. package/lib/components/template/PromotedFilters/PromotedFilters.js +16 -29
  507. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  508. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  509. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  510. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +62 -13
  511. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  512. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +24 -2
  513. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  514. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +109 -129
  515. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  516. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -29
  517. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  518. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +15 -33
  519. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  520. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
  521. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  522. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +8 -29
  523. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  524. package/lib/components/template/SubTabs/SubTabs.d.ts +5 -11
  525. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  526. package/lib/components/template/SubTabs/SubTabs.js +7 -17
  527. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  528. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  529. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  530. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  531. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  532. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +6 -12
  533. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  534. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +15 -24
  535. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  536. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
  537. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  538. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +5 -8
  539. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  540. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +6 -12
  541. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  542. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +15 -21
  543. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  544. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  545. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +11 -2
  546. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  547. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +3 -11
  548. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  549. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -15
  550. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  551. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +23 -26
  552. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  553. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  554. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +6 -2
  555. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  556. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  557. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  558. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +8 -15
  559. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  560. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +7 -17
  561. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  562. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  563. package/lib/components/template/WssNavBar/WssNavBar.d.ts +18 -1
  564. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  565. package/lib/components/template/WssNavBar/WssNavBar.js +19 -36
  566. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  567. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +9 -17
  568. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  569. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +13 -37
  570. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  571. package/lib/components/widget/Attachment/Attachment.css +75 -4
  572. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  573. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  574. package/lib/components/widget/Attachment/Attachment.js +267 -340
  575. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  576. package/lib/components/widget/Attachment/index.js.map +1 -1
  577. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
  578. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  579. package/lib/components/widget/CaseHistory/CaseHistory.js +38 -36
  580. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  581. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  582. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +9 -1
  583. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  584. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  585. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  586. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  587. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
  588. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  589. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +122 -141
  590. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  591. package/lib/components/widget/Followers/Followers.d.ts +5 -6
  592. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  593. package/lib/components/widget/Followers/Followers.js +10 -25
  594. package/lib/components/widget/Followers/Followers.js.map +1 -1
  595. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  596. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  597. package/lib/components/widget/QuickCreate/QuickCreate.js +11 -10
  598. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  599. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  600. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +8 -1
  601. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  602. package/lib/components/widget/SummaryItem/SummaryItem.js +10 -25
  603. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  604. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  605. package/lib/components/widget/SummaryList/SummaryList.d.ts +8 -1
  606. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  607. package/lib/components/widget/SummaryList/SummaryList.js +6 -3
  608. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  609. package/lib/components/widget/ToDo/ToDo.css +4 -4
  610. package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
  611. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  612. package/lib/components/widget/ToDo/ToDo.js +30 -98
  613. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  614. package/lib/components_map.d.ts +3 -3
  615. package/lib/components_map.d.ts.map +1 -1
  616. package/lib/components_map.js +821 -818
  617. package/lib/components_map.js.map +1 -1
  618. package/lib/doc/KeyReleaseUpdates.md +66 -9
  619. package/lib/hooks/index.d.ts +4 -0
  620. package/lib/hooks/index.d.ts.map +1 -0
  621. package/lib/hooks/index.js +4 -0
  622. package/lib/hooks/index.js.map +1 -0
  623. package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
  624. package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
  625. package/lib/hooks/useAfterInitialEffect.js +16 -0
  626. package/lib/hooks/useAfterInitialEffect.js.map +1 -0
  627. package/lib/hooks/useConsolidatedRef.d.ts +9 -0
  628. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
  629. package/lib/hooks/useConsolidatedRef.js +30 -0
  630. package/lib/hooks/useConsolidatedRef.js.map +1 -0
  631. package/lib/hooks/useUID.d.ts +8 -0
  632. package/lib/hooks/useUID.d.ts.map +1 -0
  633. package/lib/hooks/useUID.js +14 -0
  634. package/lib/hooks/useUID.js.map +1 -0
  635. package/lib/index.d.ts +1 -0
  636. package/lib/index.d.ts.map +1 -1
  637. package/lib/index.js +2 -1
  638. package/lib/index.js.map +1 -1
  639. package/lib/sdk-local-component-map.js +2 -2
  640. package/lib/sdk-pega-component-map.d.ts +21 -1
  641. package/lib/sdk-pega-component-map.js +112 -92
  642. package/lib/sdk-pega-component-map.js.map +1 -1
  643. package/lib/types/PConnProps.d.ts +41 -0
  644. package/package.json +5 -2
  645. package/lib/components/helpers/auth.d.ts +0 -16
  646. package/lib/components/helpers/auth.d.ts.map +0 -1
  647. package/lib/components/helpers/auth.js +0 -437
  648. package/lib/components/helpers/auth.js.map +0 -1
  649. package/lib/components/helpers/authManager.d.ts +0 -18
  650. package/lib/components/helpers/authManager.d.ts.map +0 -1
  651. package/lib/components/helpers/authManager.js +0 -589
  652. package/lib/components/helpers/authManager.js.map +0 -1
  653. package/lib/components/helpers/config_access.d.ts +0 -3
  654. package/lib/components/helpers/config_access.d.ts.map +0 -1
  655. package/lib/components/helpers/config_access.js +0 -268
  656. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AAErD,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC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gBAClE,IAAI,GAAG,mBAAmB,CAAC;aAC5B;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,UAAU;QACpC,IAAI,IAAI,CAAC;QACT,QAAQ,UAAU,CAAC,IAAI,EAAE;YACvB,KAAK,MAAM;gBACT,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACrD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,GAAG,OAAO,CAAC;gBACf,MAAM;YACR;gBACE,IAAI,GAAG,cAAc,CAAC;SACzB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAI;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,GAAW;QAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,QAAQ;QACtB,OAAO,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,WAAW,KAAK,MAAM,CAAC;IACrF,CAAC;;AAhUM;;;;WAAwB,CAAC;GAAC;AAmUnC,eAAe,KAAK,CAAC","sourcesContent":["import dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport relativeTime from 'dayjs/plugin/relativeTime';\n\ndayjs.extend(customParseFormat);\ndayjs.extend(localizedFormat);\ndayjs.extend(relativeTime);\n\nexport class Utils {\n static lastControlID: number = 0;\n\n static getUniqueControlID(): string {\n const sPrefix = 'control-';\n\n this.lastControlID += 1;\n\n return sPrefix + this.lastControlID.toString();\n }\n\n static getOptionList(configProps: any, dataObject: any): Array<any> {\n const listType = configProps.listType;\n let arReturn: Array<any> = [];\n\n if (listType) {\n switch (listType.toLowerCase()) {\n case 'associated':\n // data source should be an array\n if (typeof configProps.datasource === 'object') {\n arReturn = configProps.datasource;\n }\n break;\n\n case 'datapage':\n // get data page\n // eslint-disable-next-line no-case-declarations\n const dataPage = configProps.datasource;\n if (dataObject[dataPage]) {\n // eslint-disable-next-line no-alert\n alert('need to handle data page');\n } else {\n let listSourceItems = configProps.listOutput;\n if (typeof dataPage === 'object' && !Array.isArray(listSourceItems)) {\n listSourceItems = dataPage.source ? dataPage.source : [];\n }\n (listSourceItems || []).forEach(item => {\n item.value = item.text ? item.text : item.value;\n });\n arReturn = listSourceItems || [];\n }\n break;\n\n default:\n break;\n }\n }\n\n return arReturn;\n }\n\n static getInitials(userName: string): string {\n let userInitials = userName;\n\n if (userName && userName !== '') {\n userInitials = userName.charAt(0);\n\n if (userName.lastIndexOf(' ') > 0) {\n const lastName = userName.substring(userName.lastIndexOf(' ') + 1);\n userInitials += lastName.charAt(0);\n } else if (userName.lastIndexOf('.') > 0) {\n const lastName = userName.substring(userName.lastIndexOf('.') + 1);\n userInitials += lastName.charAt(0);\n }\n } else {\n userInitials = '';\n }\n\n return userInitials.toUpperCase();\n }\n\n static getImageSrc(name: string, serverUrl: string): string {\n let iconName = name.replace('pi-', '').replace('pi ', '').trim();\n if (iconName === 'line-chart') {\n iconName = 'chart-line';\n }\n\n return this.getIconPath(serverUrl).concat(iconName).concat('.svg');\n }\n\n static getIconPath(serverUrl: string): string {\n // Directory in the constellation folder where the icons will be\n return serverUrl.concat('icons/');\n }\n\n static getBooleanValue(inValue: any): boolean {\n let bReturn = false;\n\n if (typeof inValue === 'string') {\n // Experiment with having \"\" be true, too (and \"on\")\n if (inValue.toLowerCase() === 'true' || inValue.toLowerCase() === 'on' || inValue === '') {\n bReturn = true;\n }\n } else {\n bReturn = inValue;\n }\n\n return bReturn;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDate(dateVal, dateFormat) {\n let sReturnDate = dateVal;\n\n if (dateVal === null || dateVal === '') {\n return dateVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n // if date has a \".\", then of the format YYYMMDD[T]HHmmss[.]SSS Z, need to change to YYYYMMDD\n if (dateVal.indexOf('.') >= 0) {\n // VRS: Dont think we need the dateVal.replace(\"GMT\", \"+0000\"). Commenting out for now. (2020.05.20)\n // dateVal = dayjs(dateVal.replace(\"GMT\", \"+0000\"), \"YYYYMMDD[T]HHmmss[.]SSS Z\").format(\"YYYYMMDD\");\n // dateVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Don't change the dateVal passed to dayjs (rather just set a default sReturnDate--if that is what we want to do)\n // (better might be just doing that in a default switch block)\n sReturnDate = dayjs(dateVal).format('YYYYMMDD');\n }\n\n switch (dateFormat) {\n case 'Date-Short':\n // 1/1/01\n sReturnDate = dayjs(dateVal).format('M/D/YY');\n break;\n case 'Date-Short-YYYY':\n // 1/1/2001\n sReturnDate = dayjs(dateVal).format('M/D/YYYY');\n break;\n case 'Date-Short-Custom':\n // 01/01/01\n sReturnDate = dayjs(dateVal).format('MM/DD/YY');\n break;\n case 'Date-Short-Custom-YYYY':\n // 01/01/2001\n sReturnDate = dayjs(dateVal).format('L');\n break;\n case 'Date-Medium':\n // Jan 1, 2001\n sReturnDate = dayjs(dateVal).format('ll');\n break;\n case 'Date-DayMonthYear-Custom':\n // 01-Jan-2001\n sReturnDate = dayjs(dateVal).format('DD-MMM-YYYY');\n break;\n case 'Date-Full':\n // Monday, January 1, 2001\n sReturnDate = dayjs(dateVal).format('dddd, MMMM D, YYYY');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateVal).fromNow();\n break;\n case 'Date-Long':\n // January 1, 2001\n sReturnDate = dayjs(dateVal).format('MMMM D, YYYY');\n break;\n case 'Date-ISO-8601':\n // 2001/01/01 y/m/d\n sReturnDate = dayjs(dateVal).format('YYYY/MM/DD');\n break;\n case 'Date-Gregorian-1':\n // 01 January, 2001\n sReturnDate = dayjs(dateVal).format('DD MMMM, YYYY');\n break;\n case 'Date-Gregorian-2':\n // January 01, 2001\n sReturnDate = dayjs(dateVal).format('MMMM DD, YYYY');\n break;\n case 'Date-Gregorian-3':\n // 2001, January 01\n sReturnDate = dayjs(dateVal).format('YYYY, MMMM DD');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDateTime(dateTimeVal, dateFormat) {\n let sReturnDate = dateTimeVal;\n\n if (dateTimeVal === null || dateTimeVal === '') {\n return dateTimeVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // dateTimeVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n switch (dateFormat) {\n case 'DateTime-Short':\n // 1/1/01 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YY h:mm A');\n break;\n case 'DateTime-Short-Custom':\n // 01/01/01 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MM/DD/YY hh:mm A');\n break;\n case 'DateTime-Short-YYYY-Custom':\n // 01/01/2001 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY hh:mm A');\n break;\n case 'DateTime-Short-YYYY':\n // 1/1/2001 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY h:mm A');\n break;\n case 'DateTime-Medium':\n // Jan 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-Long':\n // January 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-DayMonthYear-Custom':\n // 01-Jan-2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD-MMM-YYYY h:mm:ss A');\n break;\n case 'DateTime-Full':\n // Monday, January 1, 2001 1:00 AM EDT\n sReturnDate = dayjs(dateTimeVal).format('dddd, MMMM D, YYYY h:mm A z');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateTimeVal).fromNow();\n break;\n case 'DateTime-ISO-8601':\n // 2001/01/01 1:00:00 AM y/m/d\n sReturnDate = dayjs(dateTimeVal).format('YYYY/MM/DD h:mm:ss A');\n break;\n case 'DateTime-Gregorian-1':\n // 01 January, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD MMMM, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-2':\n // January 01, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM DD, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-3':\n // 2001, January 01 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('YYYY, MMMM DD h:mm:ss A');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n static getSeconds(sTime): any {\n return dayjs(sTime).valueOf();\n }\n\n static getIconFromFileType(fileType): string {\n let icon = 'document-doc';\n if (!fileType) return icon;\n if (fileType.startsWith('audio')) {\n icon = 'audio';\n } else if (fileType.startsWith('video')) {\n icon = 'video';\n } else if (fileType.startsWith('image')) {\n icon = 'picture';\n } else if (fileType.includes('pdf')) {\n icon = 'document-pdf';\n } else {\n const [, subtype] = fileType.split('/');\n const foundMatch = sources => {\n return sources.some(key => subtype.includes(key));\n };\n\n if (foundMatch(['excel', 'spreadsheet'])) {\n icon = 'document-xls';\n } else if (foundMatch(['zip', 'compressed', 'gzip', 'rar', 'tar'])) {\n icon = 'document-compress';\n }\n }\n\n return icon;\n }\n\n static getIconForAttachment(attachment) {\n let icon;\n switch (attachment.type) {\n case 'FILE':\n icon = this.getIconFromFileType(attachment.mimeType);\n break;\n case 'URL':\n icon = 'chain';\n break;\n default:\n icon = 'document-doc';\n }\n return icon;\n }\n\n static getLastChar(text) {\n return text.charAt(text.length - 1);\n }\n\n static isEmptyObject(obj: Object): Boolean {\n return Object.keys(obj).length === 0;\n }\n\n static isObject(objValue) {\n return objValue && typeof objValue === 'object' && objValue.constructor === Object;\n }\n}\n\nexport default Utils;\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAChC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC9B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3B,MAAM,OAAO,KAAK;IAChB,MAAM,CAAC,aAAa,GAAG,CAAC,CAAC;IAEzB,MAAM,CAAC,qBAAqB;QAC1B,MAAM,eAAe,GAAG,eAAe,CAAC,kBAAkB,EAAE,CAAC;QAE7D,2DAA2D;QAC3D,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACtD,eAAe,CAAC,mBAAmB,GAAG,GAAG,eAAe,CAAC,mBAAmB,GAAG,CAAC;SACjF;QAED,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SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,UAAU;QACpC,IAAI,IAAI,CAAC;QACT,QAAQ,UAAU,CAAC,IAAI,EAAE;YACvB,KAAK,MAAM;gBACT,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACrD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,GAAG,OAAO,CAAC;gBACf,MAAM;YACR;gBACE,IAAI,GAAG,cAAc,CAAC;SACzB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAI;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,QAAQ;QACtB,OAAO,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,WAAW,KAAK,MAAM,CAAC;IACrF,CAAC;;AAGH,eAAe,KAAK,CAAC","sourcesContent":["import dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport { SdkConfigAccess } from '@pega/auth/lib/sdk-auth-manager';\n\ndayjs.extend(customParseFormat);\ndayjs.extend(localizedFormat);\ndayjs.extend(relativeTime);\n\nexport class Utils {\n static lastControlID = 0;\n\n static getSDKStaticConentUrl() {\n const sdkConfigServer = SdkConfigAccess.getSdkConfigServer();\n\n // NOTE: Needs a trailing slash! So add one if not provided\n if (!sdkConfigServer.sdkContentServerUrl.endsWith('/')) {\n sdkConfigServer.sdkContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}/`;\n }\n\n return `${sdkConfigServer.sdkContentServerUrl}constellation/`;\n }\n\n static getUniqueControlID(): string {\n const sPrefix = 'control-';\n\n this.lastControlID += 1;\n\n return sPrefix + this.lastControlID.toString();\n }\n\n static getOptionList(configProps: any, dataObject: any): any[] {\n const listType = configProps.listType;\n let arReturn: any[] = [];\n\n if (listType) {\n switch (listType.toLowerCase()) {\n case 'associated':\n // data source should be an array\n if (typeof configProps.datasource === 'object') {\n arReturn = configProps.datasource;\n }\n break;\n\n case 'datapage':\n // get data page\n // eslint-disable-next-line no-case-declarations\n const dataPage = configProps.datasource;\n if (typeof dataPage === 'string' && dataObject[dataPage]) {\n // eslint-disable-next-line no-alert\n alert('need to handle data page');\n } else {\n let listSourceItems = configProps.listOutput;\n if (typeof dataPage === 'object' && !Array.isArray(listSourceItems)) {\n listSourceItems = dataPage.source ? dataPage.source : [];\n }\n (listSourceItems || []).forEach(item => {\n item.value = item.text ? item.text : item.value;\n });\n arReturn = listSourceItems || [];\n }\n break;\n\n default:\n break;\n }\n }\n\n return arReturn;\n }\n\n static getInitials(userName: string): string {\n let userInitials = userName;\n\n if (userName && userName !== '') {\n userInitials = userName.charAt(0);\n\n if (userName.lastIndexOf(' ') > 0) {\n const lastName = userName.substring(userName.lastIndexOf(' ') + 1);\n userInitials += lastName.charAt(0);\n } else if (userName.lastIndexOf('.') > 0) {\n const lastName = userName.substring(userName.lastIndexOf('.') + 1);\n userInitials += lastName.charAt(0);\n }\n } else {\n userInitials = '';\n }\n\n return userInitials.toUpperCase();\n }\n\n static getImageSrc(name: string, serverUrl: string): string {\n let iconName = name.replace('pi-', '').replace('pi ', '').trim();\n if (iconName === 'line-chart') {\n iconName = 'chart-line';\n }\n\n return this.getIconPath(serverUrl).concat(iconName).concat('.svg');\n }\n\n static getIconPath(serverUrl: string): string {\n // Directory in the constellation folder where the icons will be\n return serverUrl.concat('icons/');\n }\n\n static getBooleanValue(inValue: any): boolean {\n let bReturn = false;\n\n if (typeof inValue === 'string') {\n // Experiment with having \"\" be true, too (and \"on\")\n if (inValue.toLowerCase() === 'true' || inValue.toLowerCase() === 'on' || inValue === '') {\n bReturn = true;\n }\n } else {\n bReturn = inValue;\n }\n\n return bReturn;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDate(dateVal, dateFormat) {\n let sReturnDate = dateVal;\n\n if (dateVal === null || dateVal === '') {\n return dateVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n // if date has a \".\", then of the format YYYMMDD[T]HHmmss[.]SSS Z, need to change to YYYYMMDD\n if (dateVal.indexOf('.') >= 0) {\n // VRS: Dont think we need the dateVal.replace(\"GMT\", \"+0000\"). Commenting out for now. (2020.05.20)\n // dateVal = dayjs(dateVal.replace(\"GMT\", \"+0000\"), \"YYYYMMDD[T]HHmmss[.]SSS Z\").format(\"YYYYMMDD\");\n // dateVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Don't change the dateVal passed to dayjs (rather just set a default sReturnDate--if that is what we want to do)\n // (better might be just doing that in a default switch block)\n sReturnDate = dayjs(dateVal).format('YYYYMMDD');\n }\n\n switch (dateFormat) {\n case 'Date-Short':\n // 1/1/01\n sReturnDate = dayjs(dateVal).format('M/D/YY');\n break;\n case 'Date-Short-YYYY':\n // 1/1/2001\n sReturnDate = dayjs(dateVal).format('M/D/YYYY');\n break;\n case 'Date-Short-Custom':\n // 01/01/01\n sReturnDate = dayjs(dateVal).format('MM/DD/YY');\n break;\n case 'Date-Short-Custom-YYYY':\n // 01/01/2001\n sReturnDate = dayjs(dateVal).format('L');\n break;\n case 'Date-Medium':\n // Jan 1, 2001\n sReturnDate = dayjs(dateVal).format('ll');\n break;\n case 'Date-DayMonthYear-Custom':\n // 01-Jan-2001\n sReturnDate = dayjs(dateVal).format('DD-MMM-YYYY');\n break;\n case 'Date-Full':\n // Monday, January 1, 2001\n sReturnDate = dayjs(dateVal).format('dddd, MMMM D, YYYY');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateVal).fromNow();\n break;\n case 'Date-Long':\n // January 1, 2001\n sReturnDate = dayjs(dateVal).format('MMMM D, YYYY');\n break;\n case 'Date-ISO-8601':\n // 2001/01/01 y/m/d\n sReturnDate = dayjs(dateVal).format('YYYY/MM/DD');\n break;\n case 'Date-Gregorian-1':\n // 01 January, 2001\n sReturnDate = dayjs(dateVal).format('DD MMMM, YYYY');\n break;\n case 'Date-Gregorian-2':\n // January 01, 2001\n sReturnDate = dayjs(dateVal).format('MMMM DD, YYYY');\n break;\n case 'Date-Gregorian-3':\n // 2001, January 01\n sReturnDate = dayjs(dateVal).format('YYYY, MMMM DD');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDateTime(dateTimeVal, dateFormat) {\n let sReturnDate = dateTimeVal;\n\n if (dateTimeVal === null || dateTimeVal === '') {\n return dateTimeVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // dateTimeVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n switch (dateFormat) {\n case 'DateTime-Short':\n // 1/1/01 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YY h:mm A');\n break;\n case 'DateTime-Short-Custom':\n // 01/01/01 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MM/DD/YY hh:mm A');\n break;\n case 'DateTime-Short-YYYY-Custom':\n // 01/01/2001 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY hh:mm A');\n break;\n case 'DateTime-Short-YYYY':\n // 1/1/2001 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY h:mm A');\n break;\n case 'DateTime-Medium':\n // Jan 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-Long':\n // January 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-DayMonthYear-Custom':\n // 01-Jan-2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD-MMM-YYYY h:mm:ss A');\n break;\n case 'DateTime-Full':\n // Monday, January 1, 2001 1:00 AM EDT\n sReturnDate = dayjs(dateTimeVal).format('dddd, MMMM D, YYYY h:mm A z');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateTimeVal).fromNow();\n break;\n case 'DateTime-ISO-8601':\n // 2001/01/01 1:00:00 AM y/m/d\n sReturnDate = dayjs(dateTimeVal).format('YYYY/MM/DD h:mm:ss A');\n break;\n case 'DateTime-Gregorian-1':\n // 01 January, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD MMMM, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-2':\n // January 01, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM DD, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-3':\n // 2001, January 01 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('YYYY, MMMM DD h:mm:ss A');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n static getSeconds(sTime): any {\n return dayjs(sTime).valueOf();\n }\n\n static getIconFromFileType(fileType): string {\n let icon = 'document-doc';\n if (!fileType) return icon;\n if (fileType.startsWith('audio')) {\n icon = 'audio';\n } else if (fileType.startsWith('video')) {\n icon = 'video';\n } else if (fileType.startsWith('image')) {\n icon = 'picture';\n } else if (fileType.includes('pdf')) {\n icon = 'document-pdf';\n } else {\n const [, subtype] = fileType.split('/');\n const foundMatch = sources => {\n return sources.some(key => subtype.includes(key));\n };\n\n if (foundMatch(['excel', 'spreadsheet'])) {\n icon = 'document-xls';\n } else if (foundMatch(['zip', 'compressed', 'gzip', 'rar', 'tar'])) {\n icon = 'document-compress';\n }\n }\n\n return icon;\n }\n\n static getIconForAttachment(attachment) {\n let icon;\n switch (attachment.type) {\n case 'FILE':\n icon = this.getIconFromFileType(attachment.mimeType);\n break;\n case 'URL':\n icon = 'chain';\n break;\n default:\n icon = 'document-doc';\n }\n return icon;\n }\n\n static getLastChar(text) {\n return text.charAt(text.length - 1);\n }\n\n static isObject(objValue) {\n return objValue && typeof objValue === 'object' && objValue.constructor === Object;\n }\n}\n\nexport default Utils;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"versionHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,wBAAgB,uBAAuB,SAOtC"}
1
+ {"version":3,"file":"versionHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,wBAAgB,uBAAuB,SAKtC"}
@@ -4,7 +4,7 @@
4
4
  * Container helper functions that can identify which version of
5
5
  * PCore/PConnect is being run
6
6
  */
7
- export const sdkVersion = "8.7";
7
+ export const sdkVersion = '8.7';
8
8
  export function compareSdkPCoreVersions() {
9
9
  // const theConstellationVersion = PCore.getPCoreVersion();
10
10
  // eslint-disable-next-line no-console
@@ -1 +1 @@
1
- {"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IAErC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;AAEnI,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\ndeclare const PCore;\n\nexport const sdkVersion = \"8.7\";\n\nexport function compareSdkPCoreVersions() {\n\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n // eslint-disable-next-line no-console\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n\n}\n"]}
1
+ {"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IACrC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;AACnI,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\nexport const sdkVersion = '8.7';\n\nexport function compareSdkPCoreVersions() {\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n // eslint-disable-next-line no-console\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n}\n"]}
@@ -1,16 +1,9 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from "prop-types";
3
- declare function ActionButtons(props: any): JSX.Element;
4
- declare namespace ActionButtons {
5
- var propTypes: {
6
- arMainButtons: PropTypes.Requireable<any[]>;
7
- arSecondaryButtons: PropTypes.Requireable<any[]>;
8
- onButtonPress: PropTypes.Requireable<(...args: any[]) => any>;
9
- };
10
- var defaultProps: {
11
- arMainButtons: never[];
12
- arSecondaryButtons: never[];
13
- };
2
+ interface ActionButtonsProps {
3
+ arMainButtons?: any[];
4
+ arSecondaryButtons?: any[];
5
+ onButtonPress: any;
14
6
  }
15
- export default ActionButtons;
7
+ export default function ActionButtons(props: ActionButtonsProps): JSX.Element;
8
+ export {};
16
9
  //# sourceMappingURL=ActionButtons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAmBnC,iBAAwB,aAAa,CAAC,KAAK,KAAA,eAoC1C;kBApCuB,aAAa;;;;;;;;;;;eAAb,aAAa"}
1
+ {"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AAKA,UAAU,kBAAkB;IAE1B,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC3B,aAAa,EAAE,GAAG,CAAC;CACpB;AAYD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAmD9D"}
@@ -1,42 +1,28 @@
1
- import React from "react";
2
- import PropTypes from "prop-types";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
2
  import { makeStyles } from '@material-ui/core/styles';
4
3
  import Button from '@material-ui/core/Button';
5
- import { Grid, Divider } from "@material-ui/core";
4
+ import { Grid, Divider } from '@material-ui/core';
6
5
  const useStyles = makeStyles(( /* theme */) => ({
7
6
  button: {
8
- padding: "0px 5px",
7
+ padding: '0px 5px'
9
8
  },
10
9
  divider: {
11
- marginTop: "10px",
12
- marginBottom: "10px"
10
+ marginTop: '10px',
11
+ marginBottom: '10px'
13
12
  }
14
13
  }));
15
14
  export default function ActionButtons(props) {
16
- const { arMainButtons, arSecondaryButtons, onButtonPress } = props;
15
+ const { arMainButtons = [], arSecondaryButtons = [], onButtonPress } = props;
17
16
  const classes = useStyles();
17
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
18
+ const localeCategory = 'Assignment';
18
19
  function _onButtonPress(sAction, sButtonType) {
19
20
  onButtonPress(sAction, sButtonType);
20
21
  }
21
- return (React.createElement(React.Fragment, null,
22
- React.createElement(Divider, { className: classes.divider }),
23
- React.createElement(Grid, { container: true, spacing: 4, justifyContent: "space-between" },
24
- React.createElement(Grid, { item: true },
25
- React.createElement(Grid, { container: true, spacing: 1 }, arSecondaryButtons.map((sButton) => (React.createElement(Grid, { item: true, key: sButton.name },
26
- React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => { _onButtonPress(sButton.jsAction, "secondary"); } }, sButton.name)))))),
27
- React.createElement(Grid, { item: true },
28
- React.createElement(Grid, { container: true, spacing: 1 }, arMainButtons.map((mButton) => (React.createElement(Grid, { item: true, key: mButton.name },
29
- React.createElement(Button, { variant: "contained", color: "primary", onClick: () => { _onButtonPress(mButton.jsAction, "primary"); } }, mButton.name)))))))));
22
+ return (_jsxs(_Fragment, { children: [_jsx(Divider, { className: classes.divider }), _jsxs(Grid, { container: true, spacing: 4, justifyContent: 'space-between', children: [_jsx(Grid, { item: true, children: _jsx(Grid, { container: true, spacing: 1, children: arSecondaryButtons.map(sButton => (_jsx(Grid, { item: true, children: _jsx(Button, { variant: 'contained', color: 'secondary', onClick: () => {
23
+ _onButtonPress(sButton.jsAction, 'secondary');
24
+ }, children: localizedVal(sButton.name, localeCategory) }) }, sButton.name))) }) }), _jsx(Grid, { item: true, children: _jsx(Grid, { container: true, spacing: 1, children: arMainButtons.map(mButton => (_jsx(Grid, { item: true, children: _jsx(Button, { variant: 'contained', color: 'primary', onClick: () => {
25
+ _onButtonPress(mButton.jsAction, 'primary');
26
+ }, children: localizedVal(mButton.name, localeCategory) }) }, mButton.name))) }) })] })] }));
30
27
  }
31
- ActionButtons.propTypes = {
32
- arMainButtons: PropTypes.array,
33
- arSecondaryButtons: PropTypes.array,
34
- onButtonPress: PropTypes.func
35
- // buildName: PropTypes.string
36
- };
37
- ActionButtons.defaultProps = {
38
- arMainButtons: [],
39
- arSecondaryButtons: []
40
- // buildName: null
41
- };
42
28
  //# sourceMappingURL=ActionButtons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtons.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIlD,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE;QACN,OAAO,EAAE,SAAS;KACnB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;CACF,CAAC,CAAC,CAAC;AAGJ,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK;IACzC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACnE,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,SAAS,cAAc,CAAC,OAAe,EAAE,WAAmB;QAE1D,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,oBAAC,OAAO,IAAC,SAAS,EAAE,OAAO,CAAC,OAAO,GAAG;QACtC,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,eAAe;YACxD,oBAAC,IAAI,IAAC,IAA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@material-ui/core/styles';\n\nimport Button from '@material-ui/core/Button';\nimport { Grid, Divider } from \"@material-ui/core\";\n\n\n\nconst useStyles = makeStyles((/* theme */) => ({\n button: {\n padding: \"0px 5px\",\n },\n divider: {\n marginTop: \"10px\",\n marginBottom: \"10px\"\n }\n}));\n\n\nexport default function ActionButtons(props) {\n const { arMainButtons, arSecondaryButtons, onButtonPress } = props;\n const classes = useStyles();\n\n function _onButtonPress(sAction: string, sButtonType: string) {\n\n onButtonPress(sAction, sButtonType);\n }\n\n return (\n <React.Fragment>\n <Divider className={classes.divider}/>\n <Grid container spacing={4} justifyContent=\"space-between\">\n <Grid item>\n <Grid container spacing={1}>\n {arSecondaryButtons.map((sButton) => (\n <Grid item key={sButton.name}>\n <Button variant=\"contained\" color=\"secondary\" onClick={() => { _onButtonPress(sButton.jsAction, \"secondary\")}} >{sButton.name}</Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n <Grid item>\n <Grid container spacing={1}>\n {arMainButtons.map((mButton) => (\n <Grid item key={mButton.name}>\n <Button variant=\"contained\" color=\"primary\" onClick={() => { _onButtonPress(mButton.jsAction, \"primary\")}} >{mButton.name}</Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n </Grid>\n\n </React.Fragment>\n\n )\n}\n\nActionButtons.propTypes = {\n arMainButtons: PropTypes.array,\n arSecondaryButtons: PropTypes.array,\n onButtonPress: PropTypes.func\n // buildName: PropTypes.string\n};\n\nActionButtons.defaultProps = {\n arMainButtons: [],\n arSecondaryButtons: []\n // buildName: null\n};\n"]}
1
+ {"version":3,"file":"ActionButtons.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAUlD,MAAM,SAAS,GAAG,UAAU,C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,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,YACvB,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAC5B,KAAC,IAAI,IAAC,IAAI,kBACR,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,GAAG,EAAE;wCACZ,cAAc,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;oCAC9C,CAAC,YAEA,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,GACpC,IATK,OAAO,CAAC,IAAI,CAUrB,CACR,CAAC,GACG,GACF,IACF,IACN,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { makeStyles } from '@material-ui/core/styles';\nimport Button from '@material-ui/core/Button';\nimport { Grid, Divider } from '@material-ui/core';\n\n// ActionButtons does NOT have getPConnect. So, no need to extend from PConnProps\ninterface ActionButtonsProps {\n // If any, enter additional props that only exist on this component\n arMainButtons?: any[];\n arSecondaryButtons?: any[];\n onButtonPress: any;\n}\n\nconst useStyles = makeStyles((/* theme */) => ({\n button: {\n padding: '0px 5px'\n },\n divider: {\n marginTop: '10px',\n marginBottom: '10px'\n }\n}));\n\nexport default function ActionButtons(props: ActionButtonsProps) {\n const { arMainButtons = [], arSecondaryButtons = [], onButtonPress } = props;\n const classes = useStyles();\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Assignment';\n\n function _onButtonPress(sAction: string, sButtonType: string) {\n onButtonPress(sAction, sButtonType);\n }\n\n return (\n <>\n <Divider className={classes.divider} />\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>\n <Grid container spacing={1}>\n {arSecondaryButtons.map(sButton => (\n <Grid item key={sButton.name}>\n <Button\n variant='contained'\n color='secondary'\n onClick={() => {\n _onButtonPress(sButton.jsAction, 'secondary');\n }}\n >\n {localizedVal(sButton.name, localeCategory)}\n </Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n <Grid item>\n <Grid container spacing={1}>\n {arMainButtons.map(mButton => (\n <Grid item key={mButton.name}>\n <Button\n variant='contained'\n color='primary'\n onClick={() => {\n _onButtonPress(mButton.jsAction, 'primary');\n }}\n >\n {localizedVal(mButton.name, localeCategory)}\n </Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n </Grid>\n </>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { default } from './ActionButtons';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { default } from './ActionButtons';\n"]}
@@ -1,17 +1,11 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function Assignment(props: any): JSX.Element;
4
- declare namespace Assignment {
5
- var propTypes: {
6
- children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
7
- getPConnect: PropTypes.Validator<(...args: any[]) => any>;
8
- itemKey: PropTypes.Requireable<string>;
9
- isInModal: PropTypes.Requireable<boolean>;
10
- };
11
- var defaultProps: {
12
- itemKey: null;
13
- isInModal: boolean;
14
- };
1
+ import { PropsWithChildren } from 'react';
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface AssignmentProps extends PConnProps {
4
+ itemKey: string;
5
+ isInModal: boolean;
6
+ banners: any[];
7
+ actionButtons: any[];
15
8
  }
16
- export default Assignment;
9
+ export default function Assignment(props: PropsWithChildren<AssignmentProps>): JSX.Element;
10
+ export {};
17
11
  //# sourceMappingURL=Assignment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Assignment.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/Assignment/Assignment.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAUnC,iBAAwB,UAAU,CAAC,KAAK,KAAA,eA6QvC;kBA7QuB,UAAU;;;;;;;;;;;;eAAV,UAAU"}
1
+ {"version":3,"file":"Assignment.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/Assignment/Assignment.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAOtE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,eAAgB,SAAQ,UAAU;IAE1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,GAAG,EAAE,CAAC;IAEf,aAAa,EAAE,GAAG,EAAE,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,eAoS3E"}
@@ -1,19 +1,24 @@
1
- import React, { useState, useEffect } from 'react';
2
- import PropTypes from 'prop-types';
3
- import AssignmentCard from '../AssignmentCard';
4
- import MultiStep from '../MultiStep';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
5
3
  import Snackbar from '@material-ui/core/Snackbar';
6
4
  import IconButton from '@material-ui/core/IconButton';
7
5
  import CloseIcon from '@material-ui/icons/Close';
6
+ import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
8
7
  export default function Assignment(props) {
9
- const { getPConnect, children, itemKey, isInModal } = props;
8
+ // Get emitted components from map (so we can get any override that may exist)
9
+ const AssignmentCard = getComponentFromMap('AssignmentCard');
10
+ const MultiStep = getComponentFromMap('MultiStep');
11
+ const { getPConnect, children, itemKey = '', isInModal = false, banners = [] } = props;
10
12
  const thePConn = getPConnect();
11
13
  const [bHasNavigation, setHasNavigation] = useState(false);
12
- const [actionButtons, setActionButtons] = useState({});
14
+ const [actionButtons, setActionButtons] = useState([]);
13
15
  const [bIsVertical, setIsVertical] = useState(false);
14
16
  const [arCurrentStepIndicies, setArCurrentStepIndicies] = useState([]);
15
17
  const [arNavigationSteps, setArNavigationSteps] = useState([]);
16
18
  const actionsAPI = thePConn.getActionsApi();
19
+ const localizedVal = PCore.getLocaleUtils().getLocaleValue;
20
+ const localeCategory = 'Assignment';
21
+ const localeReference = `${getPConnect().getCaseInfo().getClassName()}!CASE!${getPConnect().getCaseInfo().getName()}`.toUpperCase();
17
22
  // store off bound functions to above pointers
18
23
  const finishAssignment = actionsAPI.finishAssignment.bind(actionsAPI);
19
24
  const navigateToStep = actionsAPI.navigateToStep.bind(actionsAPI);
@@ -29,7 +34,7 @@ export default function Assignment(props) {
29
34
  if (step.visited_status === 'current') {
30
35
  arIndicies[depth] = count;
31
36
  // add in
32
- step['step_status'] = '';
37
+ step.step_status = '';
33
38
  }
34
39
  else if (step.visited_status === 'success') {
35
40
  count += 1;
@@ -46,11 +51,11 @@ export default function Assignment(props) {
46
51
  return arIndicies;
47
52
  }
48
53
  useEffect(() => {
49
- if (children && children.length > 0) {
50
- // debugger;
51
- const oWorkItem = children[0].props.getPConnect();
54
+ if (children) {
55
+ const firstChild = Array.isArray(children) ? children[0] : children;
56
+ const oWorkItem = firstChild.props.getPConnect();
52
57
  const oWorkData = oWorkItem.getDataObject();
53
- const oData = thePConn.getDataObject();
58
+ const oData = thePConn.getDataObject(''); // 1st arg empty string until typedefs allow it to be optional
54
59
  if (oWorkData?.caseInfo && oWorkData.caseInfo.assignments !== null) {
55
60
  const oCaseInfo = oData.caseInfo;
56
61
  if (oCaseInfo && oCaseInfo.actionButtons) {
@@ -58,18 +63,23 @@ export default function Assignment(props) {
58
63
  }
59
64
  if (oCaseInfo?.navigation /* was oCaseInfo.navigation != null */) {
60
65
  setHasNavigation(true);
61
- if (oCaseInfo.navigation.template &&
62
- oCaseInfo.navigation.template.toLowerCase() === 'standard') {
66
+ if ((oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'standard') ||
67
+ oCaseInfo?.navigation?.steps?.length === 1) {
63
68
  setHasNavigation(false);
64
69
  }
65
- else if (oCaseInfo.navigation.template &&
66
- oCaseInfo.navigation.template.toLowerCase() === 'vertical') {
70
+ else if (oCaseInfo.navigation.template && oCaseInfo.navigation.template.toLowerCase() === 'vertical') {
67
71
  setIsVertical(true);
68
72
  }
69
73
  else {
70
74
  setIsVertical(false);
71
75
  }
72
- setArNavigationSteps(JSON.parse(JSON.stringify(oCaseInfo.navigation.steps)));
76
+ const steps = JSON.parse(JSON.stringify(oCaseInfo?.navigation?.steps));
77
+ steps.forEach(step => {
78
+ if (step.name) {
79
+ step.name = PCore.getLocaleUtils().getLocaleValue(step.name, undefined, localeReference);
80
+ }
81
+ });
82
+ setArNavigationSteps(steps);
73
83
  setArCurrentStepIndicies(findCurrentIndicies(arNavigationSteps, arCurrentStepIndicies, 0));
74
84
  }
75
85
  }
@@ -101,7 +111,7 @@ export default function Assignment(props) {
101
111
  navigatePromise
102
112
  .then(() => { })
103
113
  .catch(() => {
104
- showToast(`Navigation failed!`);
114
+ showToast(`${localizedVal('Navigation failed!', localeCategory)}`);
105
115
  });
106
116
  break;
107
117
  }
@@ -111,13 +121,11 @@ export default function Assignment(props) {
111
121
  const savePromise = saveAssignment(itemKey);
112
122
  savePromise
113
123
  .then(() => {
114
- const caseType = thePConn
115
- .getCaseInfo()
116
- .c11nEnv.getValue(PCore.getConstants().CASE_INFO.CASE_TYPE_ID);
124
+ const caseType = thePConn.getCaseInfo().c11nEnv.getValue(PCore.getConstants().CASE_INFO.CASE_TYPE_ID);
117
125
  onSaveActionSuccess({ caseType, caseID, assignmentID });
118
126
  })
119
127
  .catch(() => {
120
- showToast('Save failed');
128
+ showToast(`${localizedVal('Save failed', localeCategory)}`);
121
129
  });
122
130
  break;
123
131
  }
@@ -125,10 +133,12 @@ export default function Assignment(props) {
125
133
  // check if create stage (modal)
126
134
  const { PUB_SUB_EVENTS } = PCore.getConstants();
127
135
  const { publish } = PCore.getPubSubUtils();
136
+ // @ts-ignore - Property 'isAssignmentInCreateStage' is private and only accessible within class 'CaseInfo'
128
137
  const isAssignmentInCreateStage = thePConn.getCaseInfo().isAssignmentInCreateStage();
129
- const isLocalAction = thePConn.getCaseInfo().isLocalAction() ||
130
- (PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION &&
131
- getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION));
138
+ const isLocalAction =
139
+ // @ts-ignore - Property 'isLocalAction' is private and only accessible within class 'CaseInfo'.
140
+ thePConn.getCaseInfo().isLocalAction() ||
141
+ (PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION && getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION));
132
142
  if (isAssignmentInCreateStage && isInModal && !isLocalAction) {
133
143
  const cancelPromise = cancelCreateStageAssignment(itemKey);
134
144
  cancelPromise
@@ -136,7 +146,7 @@ export default function Assignment(props) {
136
146
  publish(PUB_SUB_EVENTS.EVENT_CANCEL, data);
137
147
  })
138
148
  .catch(() => {
139
- showToast(`Cancel failed!`);
149
+ showToast(`${localizedVal('Cancel failed!', localeCategory)}`);
140
150
  });
141
151
  }
142
152
  else {
@@ -146,7 +156,7 @@ export default function Assignment(props) {
146
156
  publish(PUB_SUB_EVENTS.EVENT_CANCEL, data);
147
157
  })
148
158
  .catch(() => {
149
- showToast(`Cancel failed!`);
159
+ showToast(`${localizedVal('Cancel failed!', localeCategory)}`);
150
160
  });
151
161
  }
152
162
  break;
@@ -163,7 +173,7 @@ export default function Assignment(props) {
163
173
  finishPromise
164
174
  .then(() => { })
165
175
  .catch(() => {
166
- showToast(`Submit failed!`);
176
+ showToast(`${localizedVal('Submit failed!', localeCategory)}`);
167
177
  });
168
178
  break;
169
179
  }
@@ -172,48 +182,35 @@ export default function Assignment(props) {
172
182
  }
173
183
  }
174
184
  }
175
- return (React.createElement("div", { id: 'Assignment' }, bHasNavigation ? (React.createElement(React.Fragment, null,
176
- React.createElement(MultiStep, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, bIsVertical: bIsVertical, arCurrentStepIndicies: arCurrentStepIndicies, arNavigationSteps: arNavigationSteps }, children),
177
- React.createElement(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: React.createElement(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose },
178
- React.createElement(CloseIcon, { fontSize: 'small' })) }))) : (React.createElement(React.Fragment, null,
179
- React.createElement(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress }, children),
180
- React.createElement(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: React.createElement(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose },
181
- React.createElement(CloseIcon, { fontSize: 'small' })) })))));
185
+ function getRefreshProps(refreshConditions) {
186
+ // refreshConditions cuurently supports only "Changes" event
187
+ if (!refreshConditions) {
188
+ return [];
189
+ }
190
+ return refreshConditions.filter(item => item.event && item.event === 'Changes').map(item => [item.field, item.field?.substring(1)]) || [];
191
+ }
192
+ // expected format of refreshConditions : [{field: ".Name", event: "Changes"}]
193
+ // @ts-ignore - Property 'getActionRefreshConditions' is private and only accessible within class 'CaseInfo'
194
+ const refreshConditions = thePConn.getCaseInfo()?.getActionRefreshConditions();
195
+ const context = thePConn.getContextName();
196
+ const pageReference = thePConn.getPageReference();
197
+ // refresh api de-registration
198
+ PCore.getRefreshManager().deRegisterForRefresh(context);
199
+ // refresh api registration
200
+ const refreshProps = getRefreshProps(refreshConditions);
201
+ const caseKey = thePConn.getCaseInfo().getKey();
202
+ const refreshOptions = {
203
+ autoDetectRefresh: true,
204
+ preserveClientChanges: false
205
+ };
206
+ if (refreshProps.length > 0) {
207
+ refreshProps.forEach(prop => {
208
+ PCore.getRefreshManager().registerForRefresh('PROP_CHANGE', thePConn.getActionsApi().refreshCaseView.bind(thePConn.getActionsApi(), caseKey, null, pageReference, {
209
+ ...refreshOptions,
210
+ refreshFor: prop[0]
211
+ }), `${pageReference}.${prop[1]}`, `${context}/${pageReference}`, context);
212
+ });
213
+ }
214
+ return (_jsxs("div", { id: 'Assignment', children: [banners, bHasNavigation ? (_jsxs(_Fragment, { children: [_jsx(MultiStep, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, bIsVertical: bIsVertical, arCurrentStepIndicies: arCurrentStepIndicies, arNavigationSteps: arNavigationSteps, children: children }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] })) : (_jsxs(_Fragment, { children: [_jsx(AssignmentCard, { getPConnect: getPConnect, itemKey: itemKey, actionButtons: actionButtons, onButtonPress: buttonPress, children: children }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }))] }));
182
215
  }
183
- // From WC SDK
184
- // const aHtml = html`
185
- // ${this.bHasNavigation?
186
- // html`
187
- // <div class="psdk-stepper">
188
- // <multi-step-component .pConn=${this.pConn} .arChildren=${this.arChildren} itemKey=${this.itemKey}
189
- // .arMainButtons=${this.arMainButtons} .arSecondaryButtons=${this.arSecondaryButtons}
190
- // .bIsVertical=${this.bIsVertical} .arCurrentStepIndicies=${this.arCurrentStepIndicies}
191
- // .arNavigationSteps=${this.arNavigationSteps}
192
- // @MultiStepActionButtonClick="${this._onActionButtonClick}">
193
- // </multi-step-component>
194
- // <lit-toast></lit-toast>
195
- // </div>`
196
- // :
197
- // html`
198
- // <div>
199
- // <assignment-card-component .pConn=${this.pConn} .arChildren=${this.arChildren} itemKey=${this.itemKey}
200
- // .arMainButtons=${this.arMainButtons} .arSecondaryButtons=${this.arSecondaryButtons}
201
- // @AssignmentActionButtonClick="${this._onActionButtonClick}">
202
- // </assignment-card-component>
203
- // <lit-toast></lit-toast>
204
- // </div>`}
205
- // `;
206
- Assignment.propTypes = {
207
- children: PropTypes.node.isRequired,
208
- getPConnect: PropTypes.func.isRequired,
209
- itemKey: PropTypes.string,
210
- isInModal: PropTypes.bool
211
- // actionButtons: PropTypes.object
212
- // buildName: PropTypes.string
213
- };
214
- Assignment.defaultProps = {
215
- itemKey: null,
216
- isInModal: false
217
- // buildName: null
218
- };
219
216
  //# sourceMappingURL=Assignment.js.map