@pega/react-sdk-components 23.1.10 → 23.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (605) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/SECURITY.md +10 -0
  4. package/lib/bridge/Context/StoreContext.js +3 -3
  5. package/lib/bridge/Context/StoreContext.js.map +1 -1
  6. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  7. package/lib/bridge/helpers/sdk_component_map.js +24 -47
  8. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  9. package/lib/bridge/react_pconnect.d.ts.map +1 -1
  10. package/lib/bridge/react_pconnect.js +17 -28
  11. package/lib/bridge/react_pconnect.js.map +1 -1
  12. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +1 -1
  13. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -2
  15. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  16. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  17. package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
  18. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  19. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  20. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +1 -1
  21. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +30 -27
  23. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  24. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +1 -1
  25. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +9 -15
  27. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  28. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
  29. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +5 -4
  30. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  31. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +23 -12
  32. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  33. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +1 -1
  34. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  35. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -16
  36. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  37. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +1 -0
  38. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  39. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +7 -11
  40. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  41. package/lib/components/designSystemExtension/Operator/Operator.d.ts +15 -15
  42. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  43. package/lib/components/designSystemExtension/Operator/Operator.js +49 -62
  44. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  45. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +2 -3
  46. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  47. package/lib/components/designSystemExtension/Pulse/Pulse.js +7 -10
  48. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  49. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  50. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +7 -9
  51. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
  52. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -1
  53. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  54. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
  55. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  56. package/lib/components/field/AutoComplete/AutoComplete.d.ts +2 -2
  57. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  58. package/lib/components/field/AutoComplete/AutoComplete.js +21 -23
  59. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  60. package/lib/components/field/CancelAlert/CancelAlert.d.ts +8 -3
  61. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  62. package/lib/components/field/CancelAlert/CancelAlert.js +76 -68
  63. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  64. package/lib/components/field/CancelAlert/index.js.map +1 -1
  65. package/lib/components/field/Checkbox/Checkbox.d.ts +16 -1
  66. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  67. package/lib/components/field/Checkbox/Checkbox.js +59 -45
  68. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  69. package/lib/components/field/Currency/Currency.d.ts +1 -1
  70. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  71. package/lib/components/field/Currency/Currency.js +13 -34
  72. package/lib/components/field/Currency/Currency.js.map +1 -1
  73. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  74. package/lib/components/field/Currency/currency-utils.js +4 -5
  75. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  76. package/lib/components/field/Date/Date.d.ts +1 -1
  77. package/lib/components/field/Date/Date.d.ts.map +1 -1
  78. package/lib/components/field/Date/Date.js +14 -10
  79. package/lib/components/field/Date/Date.js.map +1 -1
  80. package/lib/components/field/DateTime/DateTime.d.ts +1 -1
  81. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  82. package/lib/components/field/DateTime/DateTime.js +8 -8
  83. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  84. package/lib/components/field/Decimal/Decimal.d.ts +2 -1
  85. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  86. package/lib/components/field/Decimal/Decimal.js +18 -28
  87. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  88. package/lib/components/field/Decimal/index.js.map +1 -1
  89. package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
  90. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  91. package/lib/components/field/Dropdown/Dropdown.js +105 -29
  92. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  93. package/lib/components/field/Email/Email.d.ts +1 -1
  94. package/lib/components/field/Email/Email.d.ts.map +1 -1
  95. package/lib/components/field/Email/Email.js +8 -9
  96. package/lib/components/field/Email/Email.js.map +1 -1
  97. package/lib/components/field/Email/index.js.map +1 -1
  98. package/lib/components/field/Group/Group.d.ts +13 -0
  99. package/lib/components/field/Group/Group.d.ts.map +1 -0
  100. package/lib/components/field/Group/Group.js +15 -0
  101. package/lib/components/field/Group/Group.js.map +1 -0
  102. package/lib/components/field/Group/index.d.ts +2 -0
  103. package/lib/components/field/Group/index.d.ts.map +1 -0
  104. package/lib/components/field/Group/index.js +2 -0
  105. package/lib/components/field/Group/index.js.map +1 -0
  106. package/lib/components/field/Integer/Integer.d.ts +1 -1
  107. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  108. package/lib/components/field/Integer/Integer.js +6 -6
  109. package/lib/components/field/Integer/Integer.js.map +1 -1
  110. package/lib/components/field/MultiSelect/Multiselect.d.ts +3 -0
  111. package/lib/components/field/MultiSelect/Multiselect.d.ts.map +1 -0
  112. package/lib/components/field/MultiSelect/Multiselect.js +175 -0
  113. package/lib/components/field/MultiSelect/Multiselect.js.map +1 -0
  114. package/lib/components/field/MultiSelect/index.d.ts +2 -0
  115. package/lib/components/field/MultiSelect/index.d.ts.map +1 -0
  116. package/lib/components/field/MultiSelect/index.js +2 -0
  117. package/lib/components/field/MultiSelect/index.js.map +1 -0
  118. package/lib/components/field/MultiSelect/utils.d.ts +10 -0
  119. package/lib/components/field/MultiSelect/utils.d.ts.map +1 -0
  120. package/lib/components/field/MultiSelect/utils.js +197 -0
  121. package/lib/components/field/MultiSelect/utils.js.map +1 -0
  122. package/lib/components/field/Percentage/Percentage.d.ts +2 -1
  123. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  124. package/lib/components/field/Percentage/Percentage.js +25 -28
  125. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  126. package/lib/components/field/Phone/Phone.d.ts +1 -1
  127. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  128. package/lib/components/field/Phone/Phone.js +9 -10
  129. package/lib/components/field/Phone/Phone.js.map +1 -1
  130. package/lib/components/field/Phone/index.js.map +1 -1
  131. package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
  132. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  133. package/lib/components/field/RadioButtons/RadioButtons.js +18 -21
  134. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  135. package/lib/components/field/RichText/RichText.d.ts +1 -1
  136. package/lib/components/field/RichText/RichText.d.ts.map +1 -1
  137. package/lib/components/field/RichText/RichText.js +9 -8
  138. package/lib/components/field/RichText/RichText.js.map +1 -1
  139. package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
  140. package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
  141. package/lib/components/field/ScalarList/ScalarList.js +7 -9
  142. package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
  143. package/lib/components/field/SemanticLink/SemanticLink.d.ts +1 -1
  144. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  145. package/lib/components/field/SemanticLink/SemanticLink.js +4 -8
  146. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  147. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
  148. package/lib/components/field/SemanticLink/utils.js +8 -8
  149. package/lib/components/field/SemanticLink/utils.js.map +1 -1
  150. package/lib/components/field/TextArea/TextArea.d.ts +1 -1
  151. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  152. package/lib/components/field/TextArea/TextArea.js +5 -5
  153. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  154. package/lib/components/field/TextContent/TextContent.d.ts +1 -1
  155. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  156. package/lib/components/field/TextContent/TextContent.js +2 -2
  157. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  158. package/lib/components/field/TextInput/TextInput.d.ts +1 -1
  159. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  160. package/lib/components/field/TextInput/TextInput.js +7 -6
  161. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  162. package/lib/components/field/TextInput/index.js.map +1 -1
  163. package/lib/components/field/Time/Time.d.ts +1 -1
  164. package/lib/components/field/Time/Time.d.ts.map +1 -1
  165. package/lib/components/field/Time/Time.js +7 -7
  166. package/lib/components/field/Time/Time.js.map +1 -1
  167. package/lib/components/field/URL/URL.d.ts +1 -1
  168. package/lib/components/field/URL/URL.d.ts.map +1 -1
  169. package/lib/components/field/URL/URL.js +6 -6
  170. package/lib/components/field/URL/URL.js.map +1 -1
  171. package/lib/components/field/URL/index.js.map +1 -1
  172. package/lib/components/field/UserReference/UserReference.d.ts +3 -3
  173. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  174. package/lib/components/field/UserReference/UserReference.js +11 -11
  175. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  176. package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
  177. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
  178. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  179. package/lib/components/helpers/attachmentHelpers.js +6 -6
  180. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  181. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  182. package/lib/components/helpers/case-utils.js +5 -5
  183. package/lib/components/helpers/case-utils.js.map +1 -1
  184. package/lib/components/helpers/common-utils.d.ts +1 -0
  185. package/lib/components/helpers/common-utils.d.ts.map +1 -1
  186. package/lib/components/helpers/common-utils.js +4 -1
  187. package/lib/components/helpers/common-utils.js.map +1 -1
  188. package/lib/components/helpers/data_page.d.ts.map +1 -1
  189. package/lib/components/helpers/data_page.js +2 -3
  190. package/lib/components/helpers/data_page.js.map +1 -1
  191. package/lib/components/helpers/date-format-utils.js.map +1 -1
  192. package/lib/components/helpers/event-utils.js +3 -3
  193. package/lib/components/helpers/event-utils.js.map +1 -1
  194. package/lib/components/helpers/field-group-utils.js +1 -1
  195. package/lib/components/helpers/field-group-utils.js.map +1 -1
  196. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
  197. package/lib/components/helpers/formatters/Boolean.js +9 -20
  198. package/lib/components/helpers/formatters/Boolean.js.map +1 -1
  199. package/lib/components/helpers/formatters/Currency.d.ts +2 -2
  200. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
  201. package/lib/components/helpers/formatters/Currency.js +13 -14
  202. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  203. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  204. package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
  205. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  206. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  207. package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
  208. package/lib/components/helpers/formatters/Date.js +20 -20
  209. package/lib/components/helpers/formatters/Date.js.map +1 -1
  210. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  211. package/lib/components/helpers/formatters/common.js +1 -1
  212. package/lib/components/helpers/formatters/common.js.map +1 -1
  213. package/lib/components/helpers/formatters/index.d.ts +6 -6
  214. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  215. package/lib/components/helpers/formatters/index.js +25 -19
  216. package/lib/components/helpers/formatters/index.js.map +1 -1
  217. package/lib/components/helpers/instructions-utils.d.ts +5 -0
  218. package/lib/components/helpers/instructions-utils.d.ts.map +1 -0
  219. package/lib/components/helpers/instructions-utils.js +36 -0
  220. package/lib/components/helpers/instructions-utils.js.map +1 -0
  221. package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
  222. package/lib/components/helpers/reactContextHelpers.js +1 -1
  223. package/lib/components/helpers/reactContextHelpers.js.map +1 -1
  224. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  225. package/lib/components/helpers/simpleTableHelpers.js +44 -52
  226. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  227. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  228. package/lib/components/helpers/state-utils.js +6 -8
  229. package/lib/components/helpers/state-utils.js.map +1 -1
  230. package/lib/components/helpers/template-utils.d.ts +1 -1
  231. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  232. package/lib/components/helpers/template-utils.js +1 -2
  233. package/lib/components/helpers/template-utils.js.map +1 -1
  234. package/lib/components/helpers/utils.d.ts +1 -1
  235. package/lib/components/helpers/utils.d.ts.map +1 -1
  236. package/lib/components/helpers/utils.js +3 -8
  237. package/lib/components/helpers/utils.js.map +1 -1
  238. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  239. package/lib/components/helpers/versionHelpers.js +1 -1
  240. package/lib/components/helpers/versionHelpers.js.map +1 -1
  241. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +2 -2
  242. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  243. package/lib/components/infra/ActionButtons/ActionButtons.js +10 -14
  244. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  245. package/lib/components/infra/ActionButtons/index.js.map +1 -1
  246. package/lib/components/infra/Assignment/Assignment.d.ts +10 -2
  247. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  248. package/lib/components/infra/Assignment/Assignment.js +68 -71
  249. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  250. package/lib/components/infra/Assignment/index.js.map +1 -1
  251. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +3 -5
  252. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  253. package/lib/components/infra/AssignmentCard/AssignmentCard.js +4 -5
  254. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  255. package/lib/components/infra/AssignmentCard/index.js.map +1 -1
  256. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +11 -1
  257. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  258. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +36 -158
  259. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  260. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  261. package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
  262. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  263. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
  264. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
  265. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
  266. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
  267. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
  268. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
  269. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
  270. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
  271. package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
  272. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -1
  273. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  274. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +178 -160
  275. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  276. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
  277. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
  278. package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
  279. package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
  280. package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
  281. package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
  282. package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
  283. package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
  284. package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
  285. package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
  286. package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
  287. package/lib/components/infra/Containers/SimpleView/index.js +2 -0
  288. package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
  289. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
  290. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  291. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +17 -24
  292. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  293. package/lib/components/infra/Containers/helpers.d.ts +2 -0
  294. package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
  295. package/lib/components/infra/Containers/helpers.js +7 -0
  296. package/lib/components/infra/Containers/helpers.js.map +1 -0
  297. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +3 -4
  298. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  299. package/lib/components/infra/DashboardFilter/DashboardFilter.js +13 -17
  300. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  301. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
  302. package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
  303. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  304. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +9 -1
  305. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  306. package/lib/components/infra/DeferLoad/DeferLoad.js +8 -17
  307. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  308. package/lib/components/infra/DeferLoad/index.js.map +1 -1
  309. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  310. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  311. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +15 -14
  312. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  313. package/lib/components/infra/MultiStep/MultiStep.css +11 -15
  314. package/lib/components/infra/MultiStep/MultiStep.d.ts +5 -7
  315. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  316. package/lib/components/infra/MultiStep/MultiStep.js +29 -80
  317. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  318. package/lib/components/infra/MultiStep/index.js.map +1 -1
  319. package/lib/components/infra/NavBar/NavBar.css +103 -105
  320. package/lib/components/infra/NavBar/NavBar.d.ts +3 -3
  321. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  322. package/lib/components/infra/NavBar/NavBar.js +18 -52
  323. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  324. package/lib/components/infra/Reference/Reference.d.ts +9 -1
  325. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  326. package/lib/components/infra/Reference/Reference.js +6 -13
  327. package/lib/components/infra/Reference/Reference.js.map +1 -1
  328. package/lib/components/infra/Region/Region.d.ts +2 -3
  329. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  330. package/lib/components/infra/Region/Region.js +2 -3
  331. package/lib/components/infra/Region/Region.js.map +1 -1
  332. package/lib/components/infra/RootContainer/RootContainer.d.ts +14 -1
  333. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  334. package/lib/components/infra/RootContainer/RootContainer.js +40 -62
  335. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  336. package/lib/components/infra/RootContainer/index.js.map +1 -1
  337. package/lib/components/infra/Stages/Stages.d.ts +2 -2
  338. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  339. package/lib/components/infra/Stages/Stages.js +18 -21
  340. package/lib/components/infra/Stages/Stages.js.map +1 -1
  341. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  342. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
  343. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  344. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +1 -1
  345. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  346. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +10 -9
  347. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  348. package/lib/components/infra/View/View.d.ts +3 -4
  349. package/lib/components/infra/View/View.d.ts.map +1 -1
  350. package/lib/components/infra/View/View.js +6 -11
  351. package/lib/components/infra/View/View.js.map +1 -1
  352. package/lib/components/template/AppShell/AppShell.css +22 -23
  353. package/lib/components/template/AppShell/AppShell.d.ts +6 -7
  354. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  355. package/lib/components/template/AppShell/AppShell.js +23 -29
  356. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  357. package/lib/components/template/BannerPage/BannerPage.d.ts +4 -4
  358. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  359. package/lib/components/template/BannerPage/BannerPage.js +3 -3
  360. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  361. package/lib/components/template/CaseSummary/CaseSummary.d.ts +3 -4
  362. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  363. package/lib/components/template/CaseSummary/CaseSummary.js +44 -8
  364. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  365. package/lib/components/template/CaseView/CaseView.d.ts +3 -4
  366. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  367. package/lib/components/template/CaseView/CaseView.js +18 -41
  368. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  369. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +3 -3
  370. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  371. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -7
  372. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  373. package/lib/components/template/Confirmation/Confirmation.d.ts +3 -4
  374. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  375. package/lib/components/template/Confirmation/Confirmation.js +7 -14
  376. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  377. package/lib/components/template/DataReference/DataReference.d.ts +4 -4
  378. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  379. package/lib/components/template/DataReference/DataReference.js +35 -49
  380. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  381. package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
  382. package/lib/components/template/DefaultForm/DefaultForm.d.ts +8 -2
  383. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  384. package/lib/components/template/DefaultForm/DefaultForm.js +5 -14
  385. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  386. package/lib/components/template/Details/Details/Details.d.ts +8 -1
  387. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  388. package/lib/components/template/Details/Details/Details.js +5 -13
  389. package/lib/components/template/Details/Details/Details.js.map +1 -1
  390. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +3 -4
  391. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  392. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +5 -10
  393. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  394. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +8 -1
  395. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  396. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +5 -16
  397. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  398. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +8 -1
  399. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  400. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +5 -16
  401. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  402. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
  403. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +7 -1
  404. package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
  405. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +6 -17
  406. package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
  407. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +2 -2
  408. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  409. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +8 -9
  410. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  411. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +3 -4
  412. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  413. package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -9
  414. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  415. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +3 -4
  416. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  417. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +7 -6
  418. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  419. package/lib/components/template/ListPage/ListPage.d.ts +1 -1
  420. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  421. package/lib/components/template/ListPage/ListPage.js +2 -2
  422. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  423. package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
  424. package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
  425. package/lib/components/template/ListView/ListView.d.ts +16 -1
  426. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  427. package/lib/components/template/ListView/ListView.js +106 -181
  428. package/lib/components/template/ListView/ListView.js.map +1 -1
  429. package/lib/components/template/ListView/hooks.d.ts.map +1 -1
  430. package/lib/components/template/ListView/hooks.js +4 -6
  431. package/lib/components/template/ListView/hooks.js.map +1 -1
  432. package/lib/components/template/ListView/utils.d.ts +1 -1
  433. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  434. package/lib/components/template/ListView/utils.js +38 -46
  435. package/lib/components/template/ListView/utils.js.map +1 -1
  436. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
  437. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  438. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +3 -3
  439. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  440. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
  441. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -4
  442. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  443. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
  444. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  445. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +8 -1
  446. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  447. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +5 -16
  448. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  449. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
  450. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -4
  451. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  452. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
  453. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  454. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +4 -4
  455. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  456. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +3 -5
  457. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  458. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +4 -4
  459. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  460. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -8
  461. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  462. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +2 -2
  463. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  464. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +2 -2
  465. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  466. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +4 -4
  467. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  468. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -2
  469. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  470. package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
  471. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +10 -1
  472. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  473. package/lib/components/template/PromotedFilters/PromotedFilters.js +12 -29
  474. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  475. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
  476. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  477. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +17 -20
  478. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  479. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +12 -7
  480. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  481. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +124 -134
  482. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  483. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -1
  484. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  485. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +9 -21
  486. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  487. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
  488. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  489. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +5 -5
  490. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  491. package/lib/components/template/SubTabs/SubTabs.d.ts +4 -4
  492. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  493. package/lib/components/template/SubTabs/SubTabs.js +6 -9
  494. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  495. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  496. package/lib/components/template/SubTabs/tabUtils.js +2 -4
  497. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  498. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
  499. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +4 -4
  500. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  501. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +14 -12
  502. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  503. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +2 -2
  504. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  505. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +2 -2
  506. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  507. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +4 -4
  508. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  509. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +14 -12
  510. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  511. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
  512. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -4
  513. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  514. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +2 -10
  515. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  516. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +8 -1
  517. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  518. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +5 -16
  519. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  520. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
  521. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -4
  522. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  523. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
  524. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  525. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +4 -4
  526. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  527. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +3 -3
  528. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  529. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
  530. package/lib/components/template/WssNavBar/WssNavBar.d.ts +3 -2
  531. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  532. package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
  533. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  534. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +2 -1
  535. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  536. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +10 -19
  537. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  538. package/lib/components/widget/Attachment/Attachment.css +60 -1
  539. package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
  540. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  541. package/lib/components/widget/Attachment/Attachment.js +279 -353
  542. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  543. package/lib/components/widget/Attachment/index.js.map +1 -1
  544. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
  545. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  546. package/lib/components/widget/CaseHistory/CaseHistory.js +37 -31
  547. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  548. package/lib/components/widget/CaseHistory/index.js.map +1 -1
  549. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +4 -3
  550. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  551. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
  552. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  553. package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
  554. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
  555. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  556. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +107 -136
  557. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  558. package/lib/components/widget/Followers/Followers.d.ts +4 -4
  559. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  560. package/lib/components/widget/Followers/Followers.js +8 -16
  561. package/lib/components/widget/Followers/Followers.js.map +1 -1
  562. package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
  563. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  564. package/lib/components/widget/QuickCreate/QuickCreate.js +57 -35
  565. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  566. package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
  567. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +3 -2
  568. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  569. package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
  570. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  571. package/lib/components/widget/SummaryItem/index.js.map +1 -1
  572. package/lib/components/widget/SummaryList/SummaryList.d.ts +3 -2
  573. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  574. package/lib/components/widget/SummaryList/SummaryList.js +3 -3
  575. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  576. package/lib/components/widget/ToDo/ToDo.css +4 -4
  577. package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
  578. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  579. package/lib/components/widget/ToDo/ToDo.js +31 -67
  580. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  581. package/lib/components_map.d.ts +2 -2
  582. package/lib/components_map.d.ts.map +1 -1
  583. package/lib/components_map.js +4 -2
  584. package/lib/components_map.js.map +1 -1
  585. package/lib/doc/KeyReleaseUpdates.md +21 -4
  586. package/lib/hooks/useConsolidatedRef.js +2 -2
  587. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  588. package/lib/sdk-local-component-map.js +2 -2
  589. package/lib/sdk-pega-component-map.d.ts +6 -0
  590. package/lib/sdk-pega-component-map.js +106 -100
  591. package/lib/sdk-pega-component-map.js.map +1 -1
  592. package/lib/types/PConnProps.d.ts +14 -15
  593. package/package.json +5 -2
  594. package/lib/components/helpers/auth.d.ts +0 -18
  595. package/lib/components/helpers/auth.d.ts.map +0 -1
  596. package/lib/components/helpers/auth.js +0 -752
  597. package/lib/components/helpers/auth.js.map +0 -1
  598. package/lib/components/helpers/authManager.d.ts +0 -21
  599. package/lib/components/helpers/authManager.d.ts.map +0 -1
  600. package/lib/components/helpers/authManager.js +0 -864
  601. package/lib/components/helpers/authManager.js.map +0 -1
  602. package/lib/components/helpers/config_access.d.ts +0 -3
  603. package/lib/components/helpers/config_access.d.ts.map +0 -1
  604. package/lib/components/helpers/config_access.js +0 -198
  605. package/lib/components/helpers/config_access.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryItem.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryItem/SummaryItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,mBAAmB,CAAA;AAC1B,OAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,YAAY,MAAM,6BAA6B,CAAC;AAYvD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAsB;IACxD,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,iBAAiB,CAAC;IACtB,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;IAC3C,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC9D,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC5B,MAAM,MAAM,GAAG,GAAG,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAA;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/B,IAAI,iBAAiB,EAAE;QACrB,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAG,KAAK,C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,IAAI,CAAC,gCAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,qBAAqB,EAAC,OAAO,EAAE,gBAAgB;gBAClG,6BAAK,SAAS,EAAC,mCAAmC,EAAC,GAAG,EAAE,iBAAiB,GAAQ,CAC5E,CAAC;YACT,CAAC,iBAAiB,IAAI,CAAC;gBACtB,oBAAC,UAAU,IACT,EAAE,EAAC,gBAAgB,mBACJ,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,mBAC9B,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,mBAC1B,MAAM,EACpB,OAAO,EAAE,WAAW;oBAEtB,oBAAC,YAAY,OAAG,CACH;gBACb,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAC,SAAS,EAAE,MAAM,EAAC,EAC9B,EAAE,EAAC,WAAW,EACd,QAAQ,EAAE,QAAQ,EAClB,WAAW,QACX,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,IAErB,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAC5C,oBAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,IACxF,MAAM,CAAC,IAAI,CACH,CACZ,CAAC,CACK,CACH,CAAC,CACH,CACF,CACP,CAAA;AACH,CAAC","sourcesContent":["import React, { useState } from \"react\";\nimport { Utils } from \"../../helpers/utils\";\nimport './SummaryItem.css'\nimport { IconButton, Menu, MenuItem } from '@material-ui/core';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\n\n// SummaryItem does NOT have getPConnect. So, no need to extend from PConnProps\n\ninterface SummaryItemProps {\n // If any, enter additional props that only exist on this component\n menuIconOverride$: string,\n menuIconOverrideAction$: any,\n arItems$: Array<any> | any\n}\n\n\nexport default function SummaryItem(props:SummaryItemProps) {\n let imagePath$ = \"\";\n let menuIconOverride$;\n menuIconOverride$ = props.menuIconOverride$\n imagePath$ = Utils.getIconPath(Utils.getSDKStaticConentUrl());\n const item = props.arItems$;\n const srcImg = `${imagePath$}${item.visual.icon}.svg`\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n if (menuIconOverride$) {\n menuIconOverride$ = Utils.getImageSrc(menuIconOverride$ , Utils.getSDKStaticConentUrl());\n }\n\n function removeAttachment() {\n props.menuIconOverrideAction$(item)\n }\n\n const handleClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n return (\n <div className=\"psdk-utility-card\">\n <div className=\"psdk-utility-card-icon\">\n <img className=\"psdk-utility-card-svg-icon\" src={srcImg}></img>\n </div>\n <div className=\"psdk-utility-card-main\">\n {item.primary.type !== 'URL' && (<div className=\"psdk-utility-card-main-primary-label\">{item.primary.name}</div>)}\n {item.primary.type === 'URL' && (<div className=\"psdk-utility-card-main-primary-url\">\n <button type=\"button\" className=\"psdk-link-button\">\n {item.primary.name}&nbsp;\n <img className=\"psdk-utility-card-actions-svg-icon\" src={`${imagePath$}${item.primary.icon}.svg`}></img>\n </button>\n </div>)}\n {item.secondary.text && (<div style={{ color: item.secondary.error ? 'red' : undefined }}>{item.secondary.text}</div>)}\n </div>\n <div className=\"psdk-utility-action\">\n {menuIconOverride$ && (<button type=\"button\" className=\"psdk-utility-button\" onClick={removeAttachment}>\n <img className=\"psdk-utility-card-action-svg-icon\" src={menuIconOverride$}></img>\n </button>)}\n {!menuIconOverride$ && (<div>\n <IconButton\n id=\"setting-button\"\n aria-controls={open ? 'file-menu' : undefined}\n aria-expanded={open ? 'true' : undefined}\n aria-haspopup=\"true\"\n onClick={handleClick}\n >\n <MoreVertIcon />\n </IconButton>\n <Menu style={{marginTop: '3rem'}}\n id=\"file-menu\"\n anchorEl={anchorEl}\n keepMounted\n open={Boolean(anchorEl)}\n onClose={handleClose}\n >\n {item.actions && item.actions.map((option) => (\n <MenuItem style={{fontSize: '14px'}} key={option.id || option.text} onClick={option.onClick}>\n {option.text}\n </MenuItem>\n ))}\n </Menu>\n </div>)}\n </div>\n </div>\n )\n}\n"]}
1
+ {"version":3,"file":"SummaryItem.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryItem/SummaryItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,OAAO,mBAAmB,CAAC;AAS3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,iBAAiB,CAAC;IACtB,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC5C,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC9D,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC5B,MAAM,MAAM,GAAG,GAAG,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/B,IAAI,iBAAiB,EAAE;QACrB,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC;KACzF;IAED,SAAS,gBAAgB;QACvB,KAAK,CAA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K,SAAS,EAAC,mCAAmC,EAAC,GAAG,EAAE,iBAAiB,GAAI,GACtE,CACV,EACA,CAAC,iBAAiB,IAAI,CACrB,0BACE,KAAC,UAAU,IACT,EAAE,EAAC,gBAAgB,mBACJ,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,mBAC9B,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,mBAC1B,MAAM,EACpB,OAAO,EAAE,WAAW,YAEpB,KAAC,YAAY,KAAG,GACL,EACb,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,EAAC,WAAW,EAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,QAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,WAAW,YAC7H,IAAI,CAAC,OAAO;oCACX,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACzB,KAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAiC,OAAO,EAAE,MAAM,CAAC,OAAO,YAC1F,MAAM,CAAC,IAAI,IAD8B,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,CAEzD,CACZ,CAAC,GACC,IACH,CACP,IACG,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useState } from 'react';\nimport { IconButton, Menu, MenuItem } from '@material-ui/core';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\nimport { Utils } from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './SummaryItem.css';\n\ninterface SummaryItemProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n menuIconOverride$: string;\n menuIconOverrideAction$: any;\n arItems$: any[] | any;\n}\n\nexport default function SummaryItem(props: SummaryItemProps) {\n let imagePath$ = '';\n let menuIconOverride$;\n menuIconOverride$ = props.menuIconOverride$;\n imagePath$ = Utils.getIconPath(Utils.getSDKStaticConentUrl());\n const item = props.arItems$;\n const srcImg = `${imagePath$}${item.visual.icon}.svg`;\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n if (menuIconOverride$) {\n menuIconOverride$ = Utils.getImageSrc(menuIconOverride$, Utils.getSDKStaticConentUrl());\n }\n\n function removeAttachment() {\n props.menuIconOverrideAction$(item);\n }\n\n const handleClick = event => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n return (\n <div className='psdk-utility-card'>\n <div className='psdk-utility-card-icon'>\n <img className='psdk-utility-card-svg-icon' src={srcImg} />\n </div>\n <div className='psdk-utility-card-main'>\n {item.primary.type !== 'URL' && <div className='psdk-utility-card-main-primary-label'>{item.primary.name}</div>}\n {item.primary.type === 'URL' && (\n <div className='psdk-utility-card-main-primary-url'>\n <button type='button' className='psdk-link-button'>\n {item.primary.name}&nbsp;\n <img className='psdk-utility-card-actions-svg-icon' src={`${imagePath$}${item.primary.icon}.svg`} />\n </button>\n </div>\n )}\n {item.secondary.text && <div style={{ color: item.secondary.error ? 'red' : undefined }}>{item.secondary.text}</div>}\n </div>\n <div className='psdk-utility-action'>\n {menuIconOverride$ && (\n <button type='button' className='psdk-utility-button' aria-label='Delete Attachment' onClick={removeAttachment}>\n <img className='psdk-utility-card-action-svg-icon' src={menuIconOverride$} />\n </button>\n )}\n {!menuIconOverride$ && (\n <div>\n <IconButton\n id='setting-button'\n aria-controls={open ? 'file-menu' : undefined}\n aria-expanded={open ? 'true' : undefined}\n aria-haspopup='true'\n onClick={handleClick}\n >\n <MoreVertIcon />\n </IconButton>\n <Menu style={{ marginTop: '3rem' }} id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>\n {item.actions &&\n item.actions.map(option => (\n <MenuItem style={{ fontSize: '14px' }} key={option.id || option.text} onClick={option.onClick}>\n {option.text}\n </MenuItem>\n ))}\n </Menu>\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './SummaryItem';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './SummaryItem';\n"]}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- interface SummaryListProps {
3
- arItems$: Array<any>;
2
+ import { PConnProps } from '../../../types/PConnProps';
3
+ interface SummaryListProps extends PConnProps {
4
+ arItems$: any[];
4
5
  menuIconOverride$?: string;
5
6
  menuIconOverrideAction$?: any;
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryList.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAKA,UAAU,gBAAgB;IAExB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,GAAG,CAAA;CAC9B;AAGD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAY1D"}
1
+ {"version":3,"file":"SummaryList.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,gBAAiB,SAAQ,UAAU;IAE3C,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,GAAG,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAY1D"}
@@ -1,9 +1,9 @@
1
- import React from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
3
3
  export default function SummaryList(props) {
4
4
  // Get emitted components from map (so we can get any override that may exist)
5
5
  const SummaryItem = getComponentFromMap('SummaryItem');
6
- const { menuIconOverride$: menuOverride = "" } = props;
7
- return (React.createElement("div", null, props.arItems$.map(file => (React.createElement(SummaryItem, { key: file.id, "menuIconOverride$": menuOverride, "arItems$": file, "menuIconOverrideAction$": props.menuIconOverrideAction$ })))));
6
+ const { menuIconOverride$: menuOverride = '' } = props;
7
+ return (_jsx("div", { children: props.arItems$.map(file => (_jsx(SummaryItem, { "menuIconOverride$": menuOverride, "arItems$": file, "menuIconOverrideAction$": props.menuIconOverrideAction$ }, file.id))) }));
8
8
  }
9
9
  //# sourceMappingURL=SummaryList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryList/SummaryList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAYhF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,8EAA8E;IAC9E,MAAM,WAAW,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAEvD,MAAM,EAAE,iBAAiB,EAAE,YAAY,GAAG,EAAE,EAAC,GAAG,KAAK,CAAC;IACtD,OAAO,CACL,iCACG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAC1B,oBAAC,WAAW,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,uBAAqB,YAAY,cAAY,IAAI,6BAA2B,KAAK,CAAC,uBAAuB,GAAgB,CACnJ,CAAC,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\n\n// SummaryList does NOT have getPConnect. So, no need to extend from PConnProps\n\ninterface SummaryListProps {\n // If any, enter additional props that only exist on this component\n arItems$: Array<any>,\n menuIconOverride$?: string,\n menuIconOverrideAction$?: any\n}\n\n\nexport default function SummaryList(props: SummaryListProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const SummaryItem = getComponentFromMap('SummaryItem');\n\n const { menuIconOverride$: menuOverride = \"\"} = props;\n return (\n <div>\n {props.arItems$.map(file => (\n <SummaryItem key={file.id} menuIconOverride$={menuOverride} arItems$={file} menuIconOverrideAction$={props.menuIconOverrideAction$}></SummaryItem>\n ))}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../../src/components/widget/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAUhF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,8EAA8E;IAC9E,MAAM,WAAW,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAEvD,MAAM,EAAE,iBAAiB,EAAE,YAAY,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IACvD,OAAO,CACL,wBACG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAC1B,KAAC,WAAW,yBAAkC,YAAY,cAAY,IAAI,6BAA2B,KAAK,CAAC,uBAAuB,IAAhH,IAAI,CAAC,EAAE,CAA6G,CACvI,CAAC,GACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface SummaryListProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n arItems$: any[];\n menuIconOverride$?: string;\n menuIconOverrideAction$?: any;\n}\n\nexport default function SummaryList(props: SummaryListProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const SummaryItem = getComponentFromMap('SummaryItem');\n\n const { menuIconOverride$: menuOverride = '' } = props;\n return (\n <div>\n {props.arItems$.map(file => (\n <SummaryItem key={file.id} menuIconOverride$={menuOverride} arItems$={file} menuIconOverrideAction$={props.menuIconOverrideAction$} />\n ))}\n </div>\n );\n}\n"]}
@@ -18,9 +18,9 @@
18
18
 
19
19
  .psdk-assignment-count {
20
20
  background-color: var(--app-primary-light-color);
21
- margin: .5rem;
21
+ margin: 0.5rem;
22
22
  border-radius: 45%;
23
- padding: 0.15rem .4rem;
23
+ padding: 0.15rem 0.4rem;
24
24
  }
25
25
 
26
26
  .psdk-todo-id {
@@ -48,7 +48,7 @@
48
48
 
49
49
  .psdk-todo-assignment {
50
50
  display: inline-flex;
51
- width:100%;
51
+ width: 100%;
52
52
  padding: 0.625rem 0rem;
53
53
  }
54
54
 
@@ -86,7 +86,7 @@
86
86
  text-align: center;
87
87
  }
88
88
 
89
- .psdk-todo-avatar-header{
89
+ .psdk-todo-avatar-header {
90
90
  display: flex;
91
91
  align-items: center;
92
92
  padding: 16px;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { PConnProps } from '../../../types/PConnProps';
2
3
  import './ToDo.css';
3
- import type { PConnProps } from '../../../types/PConnProps';
4
4
  interface ToDoProps extends PConnProps {
5
5
  datasource?: any;
6
6
  myWorkList?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"ToDo.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AA2BA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,SAAU,SAAQ,UAAU;IAEpC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAyCD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,SAAS,eA4O5C"}
1
+ {"version":3,"file":"ToDo.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AAwBA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,YAAY,CAAC;AAEpB,UAAU,SAAU,SAAQ,UAAU;IAEpC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAwCD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,SAAS,eA+O5C"}
@@ -1,17 +1,16 @@
1
- /* eslint-disable no-shadow */
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /* eslint-disable @typescript-eslint/no-shadow */
3
- import React, { Fragment, useState } from 'react';
4
- import { Utils } from '../../helpers/utils';
3
+ import { useState } from 'react';
5
4
  import { Box, Button, Card, CardContent, CardHeader, Avatar, Typography, Badge, List, ListItem, ListItemText, ListItemSecondaryAction } from '@material-ui/core';
6
5
  import Snackbar from '@material-ui/core/Snackbar';
7
6
  import IconButton from '@material-ui/core/IconButton';
8
7
  import CloseIcon from '@material-ui/icons/Close';
9
8
  import ArrowForwardIosOutlinedIcon from '@material-ui/icons/ArrowForwardIosOutlined';
10
- import { makeStyles } from '@material-ui/core/styles';
11
- import { useTheme } from '@material-ui/core/styles';
9
+ import { makeStyles, useTheme } from '@material-ui/core/styles';
12
10
  import useMediaQuery from '@material-ui/core/useMediaQuery';
11
+ import { Utils } from '../../helpers/utils';
13
12
  import './ToDo.css';
14
- const isChildCase = (assignment) => {
13
+ const isChildCase = assignment => {
15
14
  return assignment.isChild;
16
15
  };
17
16
  function topThreeAssignments(assignmentsSource) {
@@ -22,13 +21,11 @@ function getID(assignment) {
22
21
  const refKey = assignment.value;
23
22
  return refKey.substring(refKey.lastIndexOf(' ') + 1);
24
23
  }
25
- else {
26
- const refKey = assignment.ID;
27
- const arKeys = refKey.split('!')[0].split(' ');
28
- return arKeys[2];
29
- }
24
+ const refKey = assignment.ID;
25
+ const arKeys = refKey.split('!')[0].split(' ');
26
+ return arKeys[2];
30
27
  }
31
- const useStyles = makeStyles((theme) => ({
28
+ const useStyles = makeStyles(theme => ({
32
29
  root: {
33
30
  marginTop: theme.spacing(1),
34
31
  marginBottom: theme.spacing(1),
@@ -68,24 +65,23 @@ export default function ToDo(props) {
68
65
  const localeCategory = 'Todo';
69
66
  const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');
70
67
  const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');
68
+ const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;
71
69
  // const { setOpen } = useNavBar();
72
70
  function initAssignments() {
73
71
  if (assignmentsSource) {
74
72
  assignmentCount = assignmentsSource.length;
75
73
  return topThreeAssignments(assignmentsSource);
76
74
  }
77
- else {
78
- // turn off todolist
79
- return [];
80
- }
75
+ // turn off todolist
76
+ return [];
81
77
  }
82
- const getAssignmentId = (assignment) => {
78
+ const getAssignmentId = assignment => {
83
79
  return type === CONSTS.TODO ? assignment.ID : assignment.id;
84
80
  };
85
- const getPriority = (assignment) => {
81
+ const getPriority = assignment => {
86
82
  return type === CONSTS.TODO ? assignment.urgency : assignment.priority;
87
83
  };
88
- const getAssignmentName = (assignment) => {
84
+ const getAssignmentName = assignment => {
89
85
  return type === CONSTS.TODO ? assignment.name : assignment.stepName;
90
86
  };
91
87
  function showToast(message) {
@@ -114,19 +110,22 @@ export default function ToDo(props) {
114
110
  let { classname = '' } = assignment;
115
111
  const sTarget = thePConn.getContainerName();
116
112
  const sTargetContainerName = sTarget;
117
- const options = { containerName: sTargetContainerName, channelName: '' };
113
+ const options = {
114
+ containerName: sTargetContainerName,
115
+ channelName: ''
116
+ };
118
117
  if (classname === null || classname === '') {
119
118
  classname = thePConn.getCaseInfo().getClassName();
120
119
  }
121
120
  if (sTarget === 'workarea') {
122
- options['isActionFromToDoList'] = true;
123
- options['target'] = '';
124
- options['context'] = null;
125
- options['isChild'] = isChildCase(assignment);
121
+ options.isActionFromToDoList = true;
122
+ options.target = '';
123
+ options.context = null;
124
+ options.isChild = isChildCase(assignment);
126
125
  }
127
126
  else {
128
- options['isActionFromToDoList'] = false;
129
- options['target'] = sTarget;
127
+ options.isActionFromToDoList = false;
128
+ options.target = sTarget;
130
129
  }
131
130
  thePConn
132
131
  .getActionsApi()
@@ -145,52 +144,17 @@ export default function ToDo(props) {
145
144
  const displayID = getID(assignment);
146
145
  if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {
147
146
  /* Supress link for todo inside flow step */
148
- return React.createElement(Button, { size: "small", color: "primary" }, `${assignment.name} ${getID(assignment)}`);
147
+ return _jsx(Button, { size: 'small', color: 'primary', children: `${assignment.name} ${getID(assignment)}` });
149
148
  }
150
149
  return displayID;
151
150
  };
152
- const getListItemComponent = (assignment) => {
151
+ const getListItemComponent = assignment => {
153
152
  if (isDesktop) {
154
- return (React.createElement(React.Fragment, null,
155
- localizedVal('Task in', localeCategory),
156
- renderTaskId(type, getPConnect, showTodoList, assignment),
157
- type === CONSTS.WORKLIST && assignment.status ? `\u2022 ` : undefined,
158
- type === CONSTS.WORKLIST && assignment.status ? React.createElement("span", { className: "psdk-todo-assignment-status" }, assignment.status) : undefined,
159
- ` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`));
153
+ return (_jsxs(_Fragment, { children: [localizedVal('Task in', localeCategory), renderTaskId(type, getPConnect, showTodoList, assignment), type === CONSTS.WORKLIST && assignment.status ? `\u2022 ` : undefined, type === CONSTS.WORKLIST && assignment.status ? _jsx("span", { className: 'psdk-todo-assignment-status', children: assignment.status }) : undefined, ` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`] }));
160
154
  }
161
- return (React.createElement(React.Fragment, null,
162
- React.createElement(Button, { size: "small", color: "primary" }, `${assignment.name} ${getID(assignment)}`),
163
- ` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`));
155
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { size: 'small', color: 'primary', children: `${assignment.name} ${getID(assignment)}` }), ` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`] }));
164
156
  };
165
- const toDoContent = (React.createElement(React.Fragment, null,
166
- showTodoList && (React.createElement(CardHeader, { title: React.createElement(Badge, { badgeContent: assignmentCount, overlap: "rectangular", color: "primary" },
167
- React.createElement(Typography, { variant: "h6" },
168
- headerText,
169
- "\u00A0\u00A0\u00A0")) })),
170
- React.createElement(List, null, assignments.map((assignment) => (React.createElement("div", { className: "psdk-todo-avatar-header", key: getAssignmentId(assignment) },
171
- React.createElement(Avatar, { className: classes.avatar, style: { marginRight: '16px' } }, currentUserInitials),
172
- React.createElement("div", { style: { display: 'block' } },
173
- React.createElement(Typography, { variant: "h6" }, assignment?.name),
174
- `${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`),
175
- !isConfirm && (React.createElement("div", { style: { marginLeft: 'auto' } },
176
- React.createElement(IconButton, { onClick: () => clickGo(assignment) },
177
- React.createElement(ArrowForwardIosOutlinedIcon, null))))))))));
178
- return (React.createElement(React.Fragment, null,
179
- type === CONSTS.WORKLIST && (React.createElement(Card, { className: classes.root },
180
- showTodoList && (React.createElement(CardHeader, { title: React.createElement(Badge, { badgeContent: assignmentCount, overlap: "rectangular", color: "primary" },
181
- React.createElement(Typography, { variant: "h6" },
182
- headerText,
183
- "\u00A0\u00A0\u00A0")), avatar: React.createElement(Avatar, { className: classes.avatar }, currentUserInitials) })),
184
- React.createElement(CardContent, null,
185
- React.createElement(List, null, assignments.map((assignment) => (React.createElement(ListItem, { key: getAssignmentId(assignment), dense: true, divider: true, onClick: () => clickGo(assignment) },
186
- React.createElement(ListItemText, { primary: getAssignmentName(assignment), secondary: getListItemComponent(assignment) }),
187
- React.createElement(ListItemSecondaryAction, null,
188
- React.createElement(IconButton, { onClick: () => clickGo(assignment) },
189
- React.createElement(ArrowForwardIosOutlinedIcon, null)))))))))),
190
- type === CONSTS.TODO && !isConfirm && React.createElement(Card, { className: classes.todoWrapper }, toDoContent),
191
- type === CONSTS.TODO && isConfirm && React.createElement(Fragment, null, toDoContent),
192
- assignmentCount > 3 && (React.createElement(Box, { display: "flex", justifyContent: "center" }, bShowMore ? (React.createElement(Button, { color: "primary", onClick: _showMore }, showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue)) : (React.createElement(Button, { onClick: _showLess }, showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue)))),
193
- React.createElement(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: React.createElement(IconButton, { size: "small", "aria-label": "close", color: "inherit", onClick: handleSnackbarClose },
194
- React.createElement(CloseIcon, { fontSize: "small" })) })));
157
+ const toDoContent = (_jsxs(_Fragment, { children: [showTodoList && (_jsx(CardHeader, { title: _jsx(Badge, { badgeContent: assignmentCount, overlap: 'rectangular', color: 'primary', children: _jsxs(Typography, { variant: 'h6', children: [headerText, "\u00A0\u00A0\u00A0"] }) }) })), _jsx(List, { children: assignments.map(assignment => (_jsxs("div", { className: 'psdk-todo-avatar-header', children: [_jsx(Avatar, { className: classes.avatar, style: { marginRight: '16px' }, children: currentUserInitials }), _jsxs("div", { style: { display: 'block' }, children: [_jsx(Typography, { variant: 'h6', children: assignment?.name }), `${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`] }), (!isConfirm || canPerform) && (_jsx("div", { style: { marginLeft: 'auto' }, children: _jsx(IconButton, { id: 'go-btn', onClick: () => clickGo(assignment), children: _jsx(ArrowForwardIosOutlinedIcon, {}) }) }))] }, getAssignmentId(assignment)))) })] }));
158
+ return (_jsxs(_Fragment, { children: [type === CONSTS.WORKLIST && (_jsxs(Card, { className: classes.root, children: [showTodoList && (_jsx(CardHeader, { title: _jsx(Badge, { badgeContent: assignmentCount, overlap: 'rectangular', color: 'primary', children: _jsxs(Typography, { variant: 'h6', children: [headerText, "\u00A0\u00A0\u00A0"] }) }), avatar: _jsx(Avatar, { className: classes.avatar, children: currentUserInitials }) })), _jsx(CardContent, { children: _jsx(List, { children: assignments.map(assignment => (_jsxs(ListItem, { dense: true, divider: true, onClick: () => clickGo(assignment), children: [_jsx(ListItemText, { primary: getAssignmentName(assignment), secondary: getListItemComponent(assignment) }), _jsx(ListItemSecondaryAction, { children: _jsx(IconButton, { onClick: () => clickGo(assignment), children: _jsx(ArrowForwardIosOutlinedIcon, {}) }) })] }, getAssignmentId(assignment)))) }) })] })), type === CONSTS.TODO && !isConfirm && _jsx(Card, { className: classes.todoWrapper, children: toDoContent }), type === CONSTS.TODO && isConfirm && _jsx(_Fragment, { children: toDoContent }), assignmentCount > 3 && (_jsx(Box, { display: 'flex', justifyContent: 'center', children: bShowMore ? (_jsx(Button, { color: 'primary', onClick: _showMore, children: showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue })) : (_jsx(Button, { onClick: _showLess, children: showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue })) })), _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' }) }) })] }));
195
159
  }
196
160
  //# sourceMappingURL=ToDo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,iDAAiD;AACjD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAClD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAE5D,OAAO,YAAY,CAAC;AAoBpB,MAAM,WAAW,GAAG,CAAC,UAAU,EAAE,EAAE;IACjC,OAAO,UAAU,CAAC,OAAO,CAAC;AAC5B,CAAC,CAAC;AAEF,SAAS,mBAAmB,CAAC,iBAA6B;IACxD,OAAO,KAAK,CAAC,OAAO,CAAC,iBAAi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,CAAC;4BAC5C,oBAAC,2BAA2B,OAAG,CACpB,CACW,CACjB,CACZ,CAAC,CACG,CACK,CACT,CACR;QAEA,IAAI,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,oBAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,WAAW,IAAG,WAAW,CAAQ;QAChG,IAAI,KAAK,MAAM,CAAC,IAAI,IAAI,SAAS,IAAI,oBAAC,QAAQ,QAAE,WAAW,CAAY;QAEvE,eAAe,GAAG,CAAC,IAAI,CACtB,oBAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,cAAc,EAAC,QAAQ,IACxC,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,SAAS,IACvC,sBAAsB,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,CACvE,CACV,CAAC,CAAC,CAAC,CACF,oBAAC,MAAM,IAAC,OAAO,EAAE,SAAS,IAAG,sBAAsB,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAU,CACrH,CACG,CACP;QAED,oBAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,oBAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB;gBACtF,oBAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,CACnB,GAEf,CACa,CAClB,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable no-shadow */\n/* eslint-disable @typescript-eslint/no-shadow */\nimport React, { Fragment, useState } from 'react';\nimport { Utils } from '../../helpers/utils';\nimport {\n Box,\n Button,\n Card,\n CardContent,\n CardHeader,\n Avatar,\n Typography,\n Badge,\n List,\n ListItem,\n ListItemText,\n ListItemSecondaryAction\n} from '@material-ui/core';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport CloseIcon from '@material-ui/icons/Close';\n\nimport ArrowForwardIosOutlinedIcon from '@material-ui/icons/ArrowForwardIosOutlined';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { useTheme } from '@material-ui/core/styles';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\n\nimport './ToDo.css';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\ninterface ToDoProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n datasource?: any;\n myWorkList?: any;\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID?: string;\n headerText?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey?: string;\n showTodoList?: boolean;\n type?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n context?: string;\n isConfirm?: boolean;\n}\n\nconst isChildCase = (assignment) => {\n return assignment.isChild;\n};\n\nfunction topThreeAssignments(assignmentsSource: Array<any>): Array<any> {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n } else {\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n }\n}\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n },\n todoWrapper: {\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light,\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function ToDo(props: ToDoProps) {\n const { getPConnect, datasource = [], headerText = 'To do', showTodoList = true, myWorkList = {}, type = 'worklist', isConfirm = false } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n let assignmentCount = 0;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName();\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<Array<any>>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Todo';\n const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');\n const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');\n // const { setOpen } = useNavBar();\n\n function initAssignments(): Array<any> {\n if (assignmentsSource) {\n assignmentCount = assignmentsSource.length;\n return topThreeAssignments(assignmentsSource);\n } else {\n // turn off todolist\n return [];\n }\n }\n\n const getAssignmentId = (assignment) => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = (assignment) => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = (assignment) => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n setAssignments(assignmentsSource);\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(topThreeAssignments(assignmentsSource));\n }\n\n function clickGo(assignment) {\n const id = getAssignmentId(assignment);\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options = { containerName: sTargetContainerName, channelName: '' };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options['isActionFromToDoList'] = true;\n options['target'] = '';\n options['context'] = null;\n options['isChild'] = isChildCase(assignment);\n } else {\n options['isActionFromToDoList'] = false;\n options['target'] = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const renderTaskId = (type, getPConnect, showTodoList, assignment) => {\n const displayID = getID(assignment);\n\n if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {\n /* Supress link for todo inside flow step */\n return <Button size=\"small\" color=\"primary\">{`${assignment.name} ${getID(assignment)}`}</Button>;\n }\n return displayID;\n };\n\n const getListItemComponent = (assignment) => {\n if (isDesktop) {\n return (\n <>\n {localizedVal('Task in', localeCategory)}\n {renderTaskId(type, getPConnect, showTodoList, assignment)}\n {type === CONSTS.WORKLIST && assignment.status ? `\\u2022 ` : undefined}\n {type === CONSTS.WORKLIST && assignment.status ? <span className=\"psdk-todo-assignment-status\">{assignment.status}</span> : undefined}\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size=\"small\" color=\"primary\">{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n };\n\n const toDoContent = (\n <>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} overlap=\"rectangular\" color=\"primary\">\n <Typography variant=\"h6\">{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n ></CardHeader>\n )}\n <List>\n {assignments.map((assignment) => (\n <div className=\"psdk-todo-avatar-header\" key={getAssignmentId(assignment)}>\n <Avatar className={classes.avatar} style={{ marginRight: '16px' }}>\n {currentUserInitials}\n </Avatar>\n <div style={{ display: 'block' }}>\n <Typography variant=\"h6\">{assignment?.name}</Typography>\n {`${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \\u2022 ${localizedVal(\n 'Urgency',\n localeCategory\n )} ${getPriority(assignment)}`}\n </div>\n {!isConfirm && (\n <div style={{ marginLeft: 'auto' }}>\n <IconButton onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </div>\n )}\n </div>\n ))}\n </List>\n </>\n );\n\n return (\n <React.Fragment>\n {type === CONSTS.WORKLIST && (\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} overlap=\"rectangular\" color=\"primary\">\n <Typography variant=\"h6\">{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n ></CardHeader>\n )}\n <CardContent>\n <List>\n {assignments.map((assignment) => (\n <ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>\n <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n )}\n\n {type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}\n {type === CONSTS.TODO && isConfirm && <Fragment>{toDoContent}</Fragment>}\n\n {assignmentCount > 3 && (\n <Box display=\"flex\" justifyContent=\"center\">\n {bShowMore ? (\n <Button color=\"primary\" onClick={_showMore}>\n {showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue}\n </Button>\n ) : (\n <Button onClick={_showLess}>{showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue}</Button>\n )}\n </Box>\n )}\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size=\"small\" aria-label=\"close\" color=\"inherit\" onClick={handleSnackbarClose}>\n <CloseIcon fontSize=\"small\" />\n </IconButton>\n }\n />\n </React.Fragment>\n );\n}\n"]}
1
+ {"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/widget/ToDo/ToDo.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAClD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,OAAO,YAAY,CAAC;AAkBpB,MAAM,WAAW,GAAG,UAAU,CAAC,EAAE;IAC/B,OAAO,UAAU,CAAC,OAAO,CAAC;AAC5B,CAAC,CAAC;AAEF,SAAS,mBAAmB,CAAC,iBAAwB;IACnD,OAAO,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,CA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O/B,CACZ,CAAC,GACG,GACK,IACT,CACR,EAEA,IAAI,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,KAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,WAAW,YAAG,WAAW,GAAQ,EAChG,IAAI,KAAK,MAAM,CAAC,IAAI,IAAI,SAAS,IAAI,4BAAG,WAAW,GAAI,EAEvD,eAAe,GAAG,CAAC,IAAI,CACtB,KAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,cAAc,EAAC,QAAQ,YACxC,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,MAAM,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,SAAS,YACvC,sBAAsB,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,GACvE,CACV,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAC,OAAO,EAAE,SAAS,YAAG,sBAAsB,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,GAAU,CACrH,GACG,CACP,EAED,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-shadow */\nimport React, { useState } from 'react';\nimport {\n Box,\n Button,\n Card,\n CardContent,\n CardHeader,\n Avatar,\n Typography,\n Badge,\n List,\n ListItem,\n ListItemText,\n ListItemSecondaryAction\n} from '@material-ui/core';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport CloseIcon from '@material-ui/icons/Close';\nimport ArrowForwardIosOutlinedIcon from '@material-ui/icons/ArrowForwardIosOutlined';\nimport { makeStyles, useTheme } from '@material-ui/core/styles';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\n\nimport { Utils } from '../../helpers/utils';\nimport { PConnProps } from '../../../types/PConnProps';\n\nimport './ToDo.css';\n\ninterface ToDoProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n datasource?: any;\n myWorkList?: any;\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID?: string;\n headerText?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey?: string;\n showTodoList?: boolean;\n type?: string;\n // eslint-disable-next-line react/no-unused-prop-types\n context?: string;\n isConfirm?: boolean;\n}\n\nconst isChildCase = assignment => {\n return assignment.isChild;\n};\n\nfunction topThreeAssignments(assignmentsSource: any[]): any[] {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n }\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n },\n todoWrapper: {\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light,\n padding: theme.spacing(1),\n margin: theme.spacing(1)\n }\n}));\n\nexport default function ToDo(props: ToDoProps) {\n const { getPConnect, datasource = [], headerText = 'To do', showTodoList = true, myWorkList = {}, type = 'worklist', isConfirm = false } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n let assignmentCount = 0;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName();\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<any[]>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'Todo';\n const showlessLocalizedValue = localizedVal('show_less', 'CosmosFields');\n const showMoreLocalizedValue = localizedVal('show_more', 'CosmosFields');\n const canPerform = assignments?.[0]?.canPerform === 'true' || assignments?.[0]?.canPerform === true;\n // const { setOpen } = useNavBar();\n\n function initAssignments(): any[] {\n if (assignmentsSource) {\n assignmentCount = assignmentsSource.length;\n return topThreeAssignments(assignmentsSource);\n }\n // turn off todolist\n return [];\n }\n\n const getAssignmentId = assignment => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = assignment => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = assignment => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n setAssignments(assignmentsSource);\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(topThreeAssignments(assignmentsSource));\n }\n\n function clickGo(assignment) {\n const id = getAssignmentId(assignment);\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options: any = {\n containerName: sTargetContainerName,\n channelName: ''\n };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options.isActionFromToDoList = true;\n options.target = '';\n options.context = null;\n options.isChild = isChildCase(assignment);\n } else {\n options.isActionFromToDoList = false;\n options.target = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const renderTaskId = (type, getPConnect, showTodoList, assignment) => {\n const displayID = getID(assignment);\n\n if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {\n /* Supress link for todo inside flow step */\n return <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>;\n }\n return displayID;\n };\n\n const getListItemComponent = assignment => {\n if (isDesktop) {\n return (\n <>\n {localizedVal('Task in', localeCategory)}\n {renderTaskId(type, getPConnect, showTodoList, assignment)}\n {type === CONSTS.WORKLIST && assignment.status ? `\\u2022 ` : undefined}\n {type === CONSTS.WORKLIST && assignment.status ? <span className='psdk-todo-assignment-status'>{assignment.status}</span> : undefined}\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`}\n </>\n );\n };\n\n const toDoContent = (\n <>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n />\n )}\n <List>\n {assignments.map(assignment => (\n <div className='psdk-todo-avatar-header' key={getAssignmentId(assignment)}>\n <Avatar className={classes.avatar} style={{ marginRight: '16px' }}>\n {currentUserInitials}\n </Avatar>\n <div style={{ display: 'block' }}>\n <Typography variant='h6'>{assignment?.name}</Typography>\n {`${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \\u2022 ${localizedVal(\n 'Urgency',\n localeCategory\n )} ${getPriority(assignment)}`}\n </div>\n {(!isConfirm || canPerform) && (\n <div style={{ marginLeft: 'auto' }}>\n <IconButton id='go-btn' onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </div>\n )}\n </div>\n ))}\n </List>\n </>\n );\n\n return (\n <>\n {type === CONSTS.WORKLIST && (\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} overlap='rectangular' color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n />\n )}\n <CardContent>\n <List>\n {assignments.map(assignment => (\n <ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>\n <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))}\n </List>\n </CardContent>\n </Card>\n )}\n\n {type === CONSTS.TODO && !isConfirm && <Card className={classes.todoWrapper}>{toDoContent}</Card>}\n {type === CONSTS.TODO && isConfirm && <>{toDoContent}</>}\n\n {assignmentCount > 3 && (\n <Box display='flex' justifyContent='center'>\n {bShowMore ? (\n <Button color='primary' onClick={_showMore}>\n {showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue}\n </Button>\n ) : (\n <Button onClick={_showLess}>{showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue}</Button>\n )}\n </Box>\n )}\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </>\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
- declare const ComponentMap: Array<any>;
2
- export declare const LazyMap: Array<any>;
1
+ declare const ComponentMap: any[];
2
+ export declare const LazyMap: any[];
3
3
  export default ComponentMap;
4
4
  //# sourceMappingURL=components_map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components_map.d.ts","sourceRoot":"","sources":["../src/components_map.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,EAAC,KAAK,CAAC,GAAG,CAgzBzB,CAAC;AAEJ,eAAO,MAAM,OAAO,EAAC,KAAK,CAAC,GAAG,CAAQ,CAAC;AAEvC,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"components_map.d.ts","sourceRoot":"","sources":["../src/components_map.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,EAAE,GAAG,EAkzBtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,GAAG,EAAS,CAAC;AAEnC,eAAe,YAAY,CAAC"}
@@ -1,5 +1,6 @@
1
1
  // import loadable from "@loadable/component";
2
- const ComponentMap = [{
2
+ const ComponentMap = [
3
+ {
3
4
  // Currency: {
4
5
  // modules: [
5
6
  // loadable(() =>
@@ -815,7 +816,8 @@ const ComponentMap = [{
815
816
  // )
816
817
  // ]
817
818
  // }
818
- }];
819
+ }
820
+ ];
819
821
  export const LazyMap = [{}];
820
822
  export default ComponentMap;
821
823
  //# sourceMappingURL=components_map.js.map