@pega/react-sdk-components 8.8.21 → 8.23.11-debug

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 (490) hide show
  1. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +10 -7
  2. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
  3. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +7 -0
  4. package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
  5. package/lib/components/designSystemExtension/Banner/Banner.d.ts +1 -15
  6. package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
  7. package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
  8. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +9 -6
  9. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
  10. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +7 -3
  11. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
  12. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +10 -4
  13. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
  14. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +8 -1
  15. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
  16. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +2 -6
  17. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
  18. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -3
  19. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
  20. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +2 -7
  21. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
  22. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +3 -3
  23. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
  24. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +2 -7
  25. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
  26. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +3 -3
  27. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
  28. package/lib/components/designSystemExtension/Operator/Operator.d.ts +7 -17
  29. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
  30. package/lib/components/designSystemExtension/Operator/Operator.js +6 -1
  31. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
  32. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -5
  33. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
  34. package/lib/components/designSystemExtension/Pulse/Pulse.js +6 -3
  35. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
  36. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +1 -6
  37. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
  38. package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
  39. package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -15
  40. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
  41. package/lib/components/field/AutoComplete/AutoComplete.js +15 -17
  42. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
  43. package/lib/components/field/CancelAlert/CancelAlert.d.ts +2 -7
  44. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
  45. package/lib/components/field/CancelAlert/CancelAlert.js +3 -3
  46. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
  47. package/lib/components/field/Checkbox/Checkbox.d.ts +1 -19
  48. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
  49. package/lib/components/field/Checkbox/Checkbox.js +8 -10
  50. package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
  51. package/lib/components/field/Currency/Currency.d.ts +1 -6
  52. package/lib/components/field/Currency/Currency.d.ts.map +1 -1
  53. package/lib/components/field/Currency/Currency.js +11 -11
  54. package/lib/components/field/Currency/Currency.js.map +1 -1
  55. package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
  56. package/lib/components/field/Currency/currency-utils.js +1 -1
  57. package/lib/components/field/Currency/currency-utils.js.map +1 -1
  58. package/lib/components/field/Date/Date.d.ts +1 -5
  59. package/lib/components/field/Date/Date.d.ts.map +1 -1
  60. package/lib/components/field/Date/Date.js +6 -8
  61. package/lib/components/field/Date/Date.js.map +1 -1
  62. package/lib/components/field/DateTime/DateTime.d.ts +1 -5
  63. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
  64. package/lib/components/field/DateTime/DateTime.js +8 -14
  65. package/lib/components/field/DateTime/DateTime.js.map +1 -1
  66. package/lib/components/field/Decimal/Decimal.d.ts +1 -8
  67. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
  68. package/lib/components/field/Decimal/Decimal.js +9 -10
  69. package/lib/components/field/Decimal/Decimal.js.map +1 -1
  70. package/lib/components/field/Dropdown/Dropdown.d.ts +1 -10
  71. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
  72. package/lib/components/field/Dropdown/Dropdown.js +9 -12
  73. package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
  74. package/lib/components/field/Email/Email.d.ts +1 -5
  75. package/lib/components/field/Email/Email.d.ts.map +1 -1
  76. package/lib/components/field/Email/Email.js +5 -7
  77. package/lib/components/field/Email/Email.js.map +1 -1
  78. package/lib/components/field/Integer/Integer.d.ts +1 -5
  79. package/lib/components/field/Integer/Integer.d.ts.map +1 -1
  80. package/lib/components/field/Integer/Integer.js +4 -6
  81. package/lib/components/field/Integer/Integer.js.map +1 -1
  82. package/lib/components/field/Percentage/Percentage.d.ts +1 -5
  83. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
  84. package/lib/components/field/Percentage/Percentage.js +4 -6
  85. package/lib/components/field/Percentage/Percentage.js.map +1 -1
  86. package/lib/components/field/Phone/Phone.d.ts +1 -5
  87. package/lib/components/field/Phone/Phone.d.ts.map +1 -1
  88. package/lib/components/field/Phone/Phone.js +6 -8
  89. package/lib/components/field/Phone/Phone.js.map +1 -1
  90. package/lib/components/field/RadioButtons/RadioButtons.d.ts +1 -7
  91. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
  92. package/lib/components/field/RadioButtons/RadioButtons.js +12 -12
  93. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
  94. package/lib/components/field/SemanticLink/SemanticLink.d.ts +9 -5
  95. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
  96. package/lib/components/field/SemanticLink/SemanticLink.js +14 -10
  97. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
  98. package/lib/components/field/TextArea/TextArea.d.ts +1 -6
  99. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
  100. package/lib/components/field/TextArea/TextArea.js +3 -5
  101. package/lib/components/field/TextArea/TextArea.js.map +1 -1
  102. package/lib/components/field/TextContent/TextContent.d.ts +1 -7
  103. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
  104. package/lib/components/field/TextContent/TextContent.js.map +1 -1
  105. package/lib/components/field/TextInput/TextInput.d.ts +1 -6
  106. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
  107. package/lib/components/field/TextInput/TextInput.js +4 -6
  108. package/lib/components/field/TextInput/TextInput.js.map +1 -1
  109. package/lib/components/field/Time/Time.d.ts +1 -5
  110. package/lib/components/field/Time/Time.d.ts.map +1 -1
  111. package/lib/components/field/Time/Time.js +8 -10
  112. package/lib/components/field/Time/Time.js.map +1 -1
  113. package/lib/components/field/URL/URL.d.ts +1 -5
  114. package/lib/components/field/URL/URL.d.ts.map +1 -1
  115. package/lib/components/field/URL/URL.js +4 -6
  116. package/lib/components/field/URL/URL.js.map +1 -1
  117. package/lib/components/field/UserReference/UserReference.d.ts +40 -19
  118. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
  119. package/lib/components/field/UserReference/UserReference.js +45 -16
  120. package/lib/components/field/UserReference/UserReference.js.map +1 -1
  121. package/lib/components/helpers/attachmentHelpers.d.ts +3 -3
  122. package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
  123. package/lib/components/helpers/attachmentHelpers.js.map +1 -1
  124. package/lib/components/helpers/auth.d.ts +6 -8
  125. package/lib/components/helpers/auth.d.ts.map +1 -1
  126. package/lib/components/helpers/auth.js +335 -642
  127. package/lib/components/helpers/auth.js.map +1 -1
  128. package/lib/components/helpers/authManager.d.ts +17 -20
  129. package/lib/components/helpers/authManager.d.ts.map +1 -1
  130. package/lib/components/helpers/authManager.js +439 -711
  131. package/lib/components/helpers/authManager.js.map +1 -1
  132. package/lib/components/helpers/case-utils.d.ts.map +1 -1
  133. package/lib/components/helpers/case-utils.js +4 -5
  134. package/lib/components/helpers/case-utils.js.map +1 -1
  135. package/lib/components/helpers/common-utils.d.ts +1 -1
  136. package/lib/components/helpers/common-utils.js.map +1 -1
  137. package/lib/components/helpers/config_access.d.ts.map +1 -1
  138. package/lib/components/helpers/config_access.js +63 -0
  139. package/lib/components/helpers/config_access.js.map +1 -1
  140. package/lib/components/helpers/date-format-utils.d.ts +6 -1
  141. package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
  142. package/lib/components/helpers/date-format-utils.js.map +1 -1
  143. package/lib/components/helpers/event-utils.d.ts +1 -1
  144. package/lib/components/helpers/event-utils.d.ts.map +1 -1
  145. package/lib/components/helpers/event-utils.js.map +1 -1
  146. package/lib/components/helpers/formatters/Currency.d.ts +6 -6
  147. package/lib/components/helpers/formatters/Currency.js +2 -2
  148. package/lib/components/helpers/formatters/Currency.js.map +1 -1
  149. package/lib/components/helpers/formatters/CurrencyMap.d.ts +320 -69
  150. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
  151. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
  152. package/lib/components/helpers/formatters/Date.d.ts +4 -4
  153. package/lib/components/helpers/formatters/Date.js.map +1 -1
  154. package/lib/components/helpers/formatters/common.d.ts +1 -1
  155. package/lib/components/helpers/formatters/common.d.ts.map +1 -1
  156. package/lib/components/helpers/formatters/common.js.map +1 -1
  157. package/lib/components/helpers/formatters/index.d.ts +11 -11
  158. package/lib/components/helpers/formatters/index.d.ts.map +1 -1
  159. package/lib/components/helpers/formatters/index.js.map +1 -1
  160. package/lib/components/helpers/simpleTableHelpers.d.ts +1 -3
  161. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
  162. package/lib/components/helpers/simpleTableHelpers.js +3 -5
  163. package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
  164. package/lib/components/helpers/state-utils.d.ts.map +1 -1
  165. package/lib/components/helpers/state-utils.js.map +1 -1
  166. package/lib/components/helpers/template-utils.d.ts +3 -7
  167. package/lib/components/helpers/template-utils.d.ts.map +1 -1
  168. package/lib/components/helpers/template-utils.js +0 -1
  169. package/lib/components/helpers/template-utils.js.map +1 -1
  170. package/lib/components/helpers/versionHelpers.d.ts +0 -6
  171. package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
  172. package/lib/components/helpers/versionHelpers.js +0 -6
  173. package/lib/components/helpers/versionHelpers.js.map +1 -1
  174. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +13 -6
  175. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
  176. package/lib/components/infra/ActionButtons/ActionButtons.js +13 -1
  177. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
  178. package/lib/components/infra/Assignment/Assignment.d.ts +15 -9
  179. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
  180. package/lib/components/infra/Assignment/Assignment.js +21 -8
  181. package/lib/components/infra/Assignment/Assignment.js.map +1 -1
  182. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +14 -8
  183. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
  184. package/lib/components/infra/AssignmentCard/AssignmentCard.js +16 -3
  185. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
  186. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +21 -1
  187. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
  188. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +48 -41
  189. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  190. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
  191. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
  192. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +17 -8
  193. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
  194. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +17 -6
  195. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  196. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +22 -9
  197. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
  198. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +20 -3
  199. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
  200. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +19 -9
  201. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
  202. package/lib/components/infra/DashboardFilter/DashboardFilter.js +16 -2
  203. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
  204. package/lib/components/infra/DashboardFilter/filterUtils.js +1 -1
  205. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
  206. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +14 -1
  207. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
  208. package/lib/components/infra/DeferLoad/DeferLoad.js +15 -13
  209. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
  210. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +12 -5
  211. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  212. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +12 -2
  213. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
  214. package/lib/components/infra/MultiStep/MultiStep.d.ts +17 -11
  215. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
  216. package/lib/components/infra/MultiStep/MultiStep.js +18 -4
  217. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
  218. package/lib/components/infra/NavBar/NavBar.d.ts +16 -8
  219. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
  220. package/lib/components/infra/NavBar/NavBar.js +16 -3
  221. package/lib/components/infra/NavBar/NavBar.js.map +1 -1
  222. package/lib/components/infra/Reference/Reference.d.ts +17 -8
  223. package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
  224. package/lib/components/infra/Reference/Reference.js +15 -1
  225. package/lib/components/infra/Reference/Reference.js.map +1 -1
  226. package/lib/components/infra/Region/Region.d.ts +7 -4
  227. package/lib/components/infra/Region/Region.d.ts.map +1 -1
  228. package/lib/components/infra/Region/Region.js +4 -0
  229. package/lib/components/infra/Region/Region.js.map +1 -1
  230. package/lib/components/infra/RootContainer/RootContainer.d.ts +21 -1
  231. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
  232. package/lib/components/infra/RootContainer/RootContainer.js +21 -4
  233. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
  234. package/lib/components/infra/Stages/Stages.d.ts +8 -5
  235. package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
  236. package/lib/components/infra/Stages/Stages.js +6 -1
  237. package/lib/components/infra/Stages/Stages.js.map +1 -1
  238. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
  239. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
  240. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +10 -4
  241. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
  242. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +9 -4
  243. package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
  244. package/lib/components/infra/View/View.d.ts +16 -13
  245. package/lib/components/infra/View/View.d.ts.map +1 -1
  246. package/lib/components/infra/View/View.js +20 -2
  247. package/lib/components/infra/View/View.js.map +1 -1
  248. package/lib/components/template/AppShell/AppShell.d.ts +15 -20
  249. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
  250. package/lib/components/template/AppShell/AppShell.js +22 -10
  251. package/lib/components/template/AppShell/AppShell.js.map +1 -1
  252. package/lib/components/template/BannerPage/BannerPage.d.ts +23 -11
  253. package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
  254. package/lib/components/template/BannerPage/BannerPage.js +22 -4
  255. package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
  256. package/lib/components/template/CaseSummary/CaseSummary.d.ts +7 -5
  257. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
  258. package/lib/components/template/CaseSummary/CaseSummary.js +6 -6
  259. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
  260. package/lib/components/template/CaseView/CaseView.d.ts +22 -10
  261. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
  262. package/lib/components/template/CaseView/CaseView.js +21 -8
  263. package/lib/components/template/CaseView/CaseView.js.map +1 -1
  264. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +15 -8
  265. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  266. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +12 -0
  267. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  268. package/lib/components/template/Confirmation/Confirmation.d.ts +16 -10
  269. package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
  270. package/lib/components/template/Confirmation/Confirmation.js +23 -12
  271. package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
  272. package/lib/components/template/DataReference/DataReference.d.ts +31 -1
  273. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
  274. package/lib/components/template/DataReference/DataReference.js +48 -41
  275. package/lib/components/template/DataReference/DataReference.js.map +1 -1
  276. package/lib/components/template/DefaultForm/DefaultForm.d.ts +11 -1
  277. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
  278. package/lib/components/template/DefaultForm/DefaultForm.js +10 -9
  279. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
  280. package/lib/components/template/Details/Details/Details.d.ts +16 -1
  281. package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
  282. package/lib/components/template/Details/Details/Details.js +15 -10
  283. package/lib/components/template/Details/Details/Details.js.map +1 -1
  284. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +15 -7
  285. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
  286. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +13 -1
  287. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
  288. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +16 -1
  289. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
  290. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +16 -14
  291. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
  292. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +16 -1
  293. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
  294. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +16 -14
  295. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
  296. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +19 -12
  297. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
  298. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +21 -7
  299. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
  300. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -7
  301. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
  302. package/lib/components/template/InlineDashboard/InlineDashboard.js +5 -0
  303. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
  304. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +15 -8
  305. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
  306. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +14 -5
  307. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
  308. package/lib/components/template/ListPage/ListPage.d.ts +13 -5
  309. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
  310. package/lib/components/template/ListPage/ListPage.js +10 -6
  311. package/lib/components/template/ListPage/ListPage.js.map +1 -1
  312. package/lib/components/template/ListView/ListView.d.ts +9 -1
  313. package/lib/components/template/ListView/ListView.d.ts.map +1 -1
  314. package/lib/components/template/ListView/ListView.js +123 -127
  315. package/lib/components/template/ListView/ListView.js.map +1 -1
  316. package/lib/components/template/ListView/utils.d.ts +0 -44
  317. package/lib/components/template/ListView/utils.d.ts.map +1 -1
  318. package/lib/components/template/ListView/utils.js +1 -142
  319. package/lib/components/template/ListView/utils.js.map +1 -1
  320. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +13 -9
  321. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
  322. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +13 -2
  323. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
  324. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +1 -10
  325. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
  326. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
  327. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +16 -1
  328. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
  329. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +16 -14
  330. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
  331. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +1 -5
  332. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
  333. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
  334. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +14 -7
  335. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
  336. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +13 -4
  337. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
  338. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +7 -4
  339. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
  340. package/lib/components/template/OneColumn/OneColumn/OneColumn.js +5 -0
  341. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
  342. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +8 -4
  343. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
  344. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +6 -3
  345. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
  346. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +7 -4
  347. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
  348. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +5 -0
  349. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
  350. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +15 -1
  351. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
  352. package/lib/components/template/PromotedFilters/PromotedFilters.js +11 -15
  353. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
  354. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
  355. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +5 -57
  356. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
  357. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +1 -18
  358. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
  359. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +2 -2
  360. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
  361. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +29 -1
  362. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
  363. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +28 -22
  364. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
  365. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +26 -14
  366. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
  367. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +26 -5
  368. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
  369. package/lib/components/template/SubTabs/SubTabs.d.ts +10 -4
  370. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
  371. package/lib/components/template/SubTabs/SubTabs.js +8 -1
  372. package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
  373. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
  374. package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
  375. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +11 -5
  376. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
  377. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +12 -1
  378. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
  379. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +8 -4
  380. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
  381. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +6 -3
  382. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
  383. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +11 -5
  384. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
  385. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +9 -1
  386. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
  387. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +1 -10
  388. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
  389. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +1 -1
  390. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
  391. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +16 -1
  392. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
  393. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +23 -31
  394. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
  395. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +1 -5
  396. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
  397. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
  398. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +14 -7
  399. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
  400. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +14 -4
  401. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
  402. package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -17
  403. package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
  404. package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
  405. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +17 -8
  406. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  407. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +19 -4
  408. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
  409. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
  410. package/lib/components/widget/Attachment/Attachment.js +16 -24
  411. package/lib/components/widget/Attachment/Attachment.js.map +1 -1
  412. package/lib/components/widget/CaseHistory/CaseHistory.d.ts +7 -4
  413. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
  414. package/lib/components/widget/CaseHistory/CaseHistory.js +8 -4
  415. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
  416. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -8
  417. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
  418. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
  419. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -5
  420. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
  421. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +21 -31
  422. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
  423. package/lib/components/widget/Followers/Followers.d.ts +5 -4
  424. package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
  425. package/lib/components/widget/Followers/Followers.js +10 -3
  426. package/lib/components/widget/Followers/Followers.js.map +1 -1
  427. package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
  428. package/lib/components/widget/QuickCreate/QuickCreate.js +2 -10
  429. package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
  430. package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -7
  431. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
  432. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
  433. package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -7
  434. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
  435. package/lib/components/widget/SummaryList/SummaryList.js +2 -5
  436. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
  437. package/lib/components/widget/ToDo/ToDo.d.ts +27 -13
  438. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
  439. package/lib/components/widget/ToDo/ToDo.js +64 -28
  440. package/lib/components/widget/ToDo/ToDo.js.map +1 -1
  441. package/lib/doc/KeyReleaseUpdates.md +0 -21
  442. package/lib/index.d.ts +0 -1
  443. package/lib/index.d.ts.map +1 -1
  444. package/lib/index.js +1 -2
  445. package/lib/index.js.map +1 -1
  446. package/lib/sdk-pega-component-map.d.ts +1 -15
  447. package/lib/sdk-pega-component-map.js +1 -15
  448. package/lib/sdk-pega-component-map.js.map +1 -1
  449. package/package.json +1 -1
  450. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +0 -19
  451. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +0 -1
  452. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +0 -77
  453. package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +0 -1
  454. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +0 -2
  455. package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +0 -1
  456. package/lib/components/designSystemExtension/RichTextEditor/index.js +0 -2
  457. package/lib/components/designSystemExtension/RichTextEditor/index.js.map +0 -1
  458. package/lib/components/field/RichText/RichText.d.ts +0 -7
  459. package/lib/components/field/RichText/RichText.d.ts.map +0 -1
  460. package/lib/components/field/RichText/RichText.js +0 -51
  461. package/lib/components/field/RichText/RichText.js.map +0 -1
  462. package/lib/components/field/RichText/index.d.ts +0 -2
  463. package/lib/components/field/RichText/index.d.ts.map +0 -1
  464. package/lib/components/field/RichText/index.js +0 -2
  465. package/lib/components/field/RichText/index.js.map +0 -1
  466. package/lib/components/field/ScalarList/ScalarList.d.ts +0 -13
  467. package/lib/components/field/ScalarList/ScalarList.d.ts.map +0 -1
  468. package/lib/components/field/ScalarList/ScalarList.js +0 -34
  469. package/lib/components/field/ScalarList/ScalarList.js.map +0 -1
  470. package/lib/components/field/ScalarList/index.d.ts +0 -2
  471. package/lib/components/field/ScalarList/index.d.ts.map +0 -1
  472. package/lib/components/field/ScalarList/index.js +0 -2
  473. package/lib/components/field/ScalarList/index.js.map +0 -1
  474. package/lib/hooks/index.d.ts +0 -4
  475. package/lib/hooks/index.d.ts.map +0 -1
  476. package/lib/hooks/index.js +0 -4
  477. package/lib/hooks/index.js.map +0 -1
  478. package/lib/hooks/useAfterInitialEffect.d.ts +0 -9
  479. package/lib/hooks/useAfterInitialEffect.d.ts.map +0 -1
  480. package/lib/hooks/useAfterInitialEffect.js +0 -16
  481. package/lib/hooks/useAfterInitialEffect.js.map +0 -1
  482. package/lib/hooks/useConsolidatedRef.d.ts +0 -9
  483. package/lib/hooks/useConsolidatedRef.d.ts.map +0 -1
  484. package/lib/hooks/useConsolidatedRef.js +0 -30
  485. package/lib/hooks/useConsolidatedRef.js.map +0 -1
  486. package/lib/hooks/useUID.d.ts +0 -8
  487. package/lib/hooks/useUID.d.ts.map +0 -1
  488. package/lib/hooks/useUID.js +0 -14
  489. package/lib/hooks/useUID.js.map +0 -1
  490. package/lib/types/PConnProps.d.ts +0 -42
@@ -1,17 +1,31 @@
1
1
  /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
2
3
  import './ToDo.css';
3
- import type { PConnProps } from '../../../types/PConnProps';
4
- interface ToDoProps extends PConnProps {
5
- datasource?: any;
6
- myWorkList?: any;
7
- caseInfoID?: string;
8
- headerText?: string;
9
- itemKey?: string;
10
- showTodoList?: boolean;
11
- type?: string;
12
- context?: string;
13
- isConfirm?: boolean;
4
+ declare function ToDo(props: any): JSX.Element;
5
+ declare namespace ToDo {
6
+ var propTypes: {
7
+ datasource: PropTypes.Requireable<Object>;
8
+ myWorkList: PropTypes.Requireable<Object>;
9
+ caseInfoID: PropTypes.Requireable<string>;
10
+ getPConnect: PropTypes.Validator<(...args: any[]) => any>;
11
+ headerText: PropTypes.Requireable<string>;
12
+ itemKey: PropTypes.Requireable<string>;
13
+ showTodoList: PropTypes.Requireable<boolean>;
14
+ type: PropTypes.Requireable<string>;
15
+ context: PropTypes.Requireable<string>;
16
+ isConfirm: PropTypes.Requireable<boolean>;
17
+ };
18
+ var defaultProps: {
19
+ caseInfoID: string;
20
+ datasource: never[];
21
+ myWorkList: {};
22
+ headerText: string;
23
+ itemKey: string;
24
+ showTodoList: boolean;
25
+ type: string;
26
+ context: string;
27
+ isConfirm: boolean;
28
+ };
14
29
  }
15
- export default function ToDo(props: ToDoProps): JSX.Element;
16
- export {};
30
+ export default ToDo;
17
31
  //# sourceMappingURL=ToDo.d.ts.map
@@ -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":";AAGA,OAAO,SAAS,MAAM,YAAY,CAAC;AA2BnC,OAAO,YAAY,CAAC;AA2CpB,iBAAwB,IAAI,CAAC,KAAK,KAAA,eAgQjC;kBAhQuB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;eAAJ,IAAI"}
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable no-shadow */
2
2
  /* eslint-disable @typescript-eslint/no-shadow */
3
3
  import React, { Fragment, useState } from 'react';
4
+ import PropTypes from 'prop-types';
4
5
  import { Utils } from '../../helpers/utils';
5
6
  import { Box, Button, Card, CardContent, CardHeader, Avatar, Typography, Badge, List, ListItem, ListItemText, ListItemSecondaryAction } from '@material-ui/core';
6
7
  import Snackbar from '@material-ui/core/Snackbar';
@@ -11,7 +12,7 @@ import { makeStyles } from '@material-ui/core/styles';
11
12
  import { useTheme } from '@material-ui/core/styles';
12
13
  import useMediaQuery from '@material-ui/core/useMediaQuery';
13
14
  import './ToDo.css';
14
- const isChildCase = (assignment) => {
15
+ const isChildCase = assignment => {
15
16
  return assignment.isChild;
16
17
  };
17
18
  function topThreeAssignments(assignmentsSource) {
@@ -28,7 +29,7 @@ function getID(assignment) {
28
29
  return arKeys[2];
29
30
  }
30
31
  }
31
- const useStyles = makeStyles((theme) => ({
32
+ const useStyles = makeStyles(theme => ({
32
33
  root: {
33
34
  marginTop: theme.spacing(1),
34
35
  marginBottom: theme.spacing(1),
@@ -48,7 +49,7 @@ const useStyles = makeStyles((theme) => ({
48
49
  }
49
50
  }));
50
51
  export default function ToDo(props) {
51
- const { getPConnect, datasource = [], headerText = 'To do', showTodoList = true, myWorkList = {}, type = 'worklist', isConfirm = false } = props;
52
+ const { datasource, getPConnect, headerText, showTodoList, myWorkList, type, isConfirm } = props;
52
53
  const CONSTS = PCore.getConstants();
53
54
  const bLogging = true;
54
55
  let assignmentCount = 0;
@@ -79,13 +80,13 @@ export default function ToDo(props) {
79
80
  return [];
80
81
  }
81
82
  }
82
- const getAssignmentId = (assignment) => {
83
+ const getAssignmentId = assignment => {
83
84
  return type === CONSTS.TODO ? assignment.ID : assignment.id;
84
85
  };
85
- const getPriority = (assignment) => {
86
+ const getPriority = assignment => {
86
87
  return type === CONSTS.TODO ? assignment.urgency : assignment.priority;
87
88
  };
88
- const getAssignmentName = (assignment) => {
89
+ const getAssignmentName = assignment => {
89
90
  return type === CONSTS.TODO ? assignment.name : assignment.stepName;
90
91
  };
91
92
  function showToast(message) {
@@ -114,7 +115,7 @@ export default function ToDo(props) {
114
115
  let { classname = '' } = assignment;
115
116
  const sTarget = thePConn.getContainerName();
116
117
  const sTargetContainerName = sTarget;
117
- const options = { containerName: sTargetContainerName, channelName: '' };
118
+ const options = { containerName: sTargetContainerName };
118
119
  if (classname === null || classname === '') {
119
120
  classname = thePConn.getCaseInfo().getClassName();
120
121
  }
@@ -145,52 +146,87 @@ export default function ToDo(props) {
145
146
  const displayID = getID(assignment);
146
147
  if ((showTodoList && type !== CONSTS.TODO) || assignment.isChild === true) {
147
148
  /* Supress link for todo inside flow step */
148
- return React.createElement(Button, { size: "small", color: "primary" }, `${assignment.name} ${getID(assignment)}`);
149
+ return (React.createElement(Button, { size: 'small', color: 'primary' }, `${assignment.name} ${getID(assignment)}`));
149
150
  }
150
151
  return displayID;
151
152
  };
152
- const getListItemComponent = (assignment) => {
153
+ const getListItemComponent = assignment => {
153
154
  if (isDesktop) {
154
155
  return (React.createElement(React.Fragment, null,
155
156
  localizedVal('Task in', localeCategory),
156
157
  renderTaskId(type, getPConnect, showTodoList, assignment),
157
158
  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
+ type === CONSTS.WORKLIST && assignment.status ? (React.createElement("span", { className: 'psdk-todo-assignment-status' }, assignment.status)) : undefined,
159
160
  ` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`));
160
161
  }
161
162
  return (React.createElement(React.Fragment, null,
162
- React.createElement(Button, { size: "small", color: "primary" }, `${assignment.name} ${getID(assignment)}`),
163
+ React.createElement(Button, { size: 'small', color: 'primary' }, `${assignment.name} ${getID(assignment)}`),
163
164
  ` \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`));
164
165
  };
165
166
  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" },
167
+ showTodoList && (React.createElement(CardHeader, { title: React.createElement(Badge, { badgeContent: assignmentCount, color: 'primary' },
168
+ React.createElement(Typography, { variant: 'h6' },
168
169
  headerText,
169
170
  "\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))))))))));
171
+ React.createElement(List, null, assignments.map(assignment => (React.createElement(React.Fragment, null,
172
+ React.createElement("div", { className: 'psdk-todo-avatar-header', key: getAssignmentId(assignment) },
173
+ React.createElement(Avatar, { className: classes.avatar, style: { marginRight: '16px' } }, currentUserInitials),
174
+ React.createElement("div", { style: { display: 'block' } },
175
+ React.createElement(Typography, { variant: 'h6' }, assignment?.name),
176
+ `${localizedVal('Task in', localeCategory)} ${renderTaskId(type, getPConnect, showTodoList, assignment)} \u2022 ${localizedVal('Urgency', localeCategory)} ${getPriority(assignment)}`),
177
+ !isConfirm && (React.createElement("div", { style: { marginLeft: 'auto' } },
178
+ React.createElement(IconButton, { onClick: () => clickGo(assignment) },
179
+ React.createElement(ArrowForwardIosOutlinedIcon, null)))))))))));
178
180
  return (React.createElement(React.Fragment, null,
179
181
  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
+ showTodoList && (React.createElement(CardHeader, { title: React.createElement(Badge, { badgeContent: assignmentCount, color: 'primary' },
183
+ React.createElement(Typography, { variant: 'h6' },
182
184
  headerText,
183
185
  "\u00A0\u00A0\u00A0")), avatar: React.createElement(Avatar, { className: classes.avatar }, currentUserInitials) })),
184
186
  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) },
187
+ React.createElement(List, null, assignments.map(assignment => (React.createElement(ListItem, { key: getAssignmentId(assignment), dense: true, divider: true, onClick: () => clickGo(assignment) },
186
188
  React.createElement(ListItemText, { primary: getAssignmentName(assignment), secondary: getListItemComponent(assignment) }),
187
189
  React.createElement(ListItemSecondaryAction, null,
188
190
  React.createElement(IconButton, { onClick: () => clickGo(assignment) },
189
191
  React.createElement(ArrowForwardIosOutlinedIcon, null)))))))))),
190
- type === CONSTS.TODO && !isConfirm && React.createElement(Card, { className: classes.todoWrapper }, toDoContent),
192
+ type === CONSTS.TODO && !isConfirm && (React.createElement(Card, { className: classes.todoWrapper }, toDoContent)),
191
193
  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" })) })));
194
+ 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)))),
195
+ React.createElement(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: React.createElement(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose },
196
+ React.createElement(CloseIcon, { fontSize: 'small' })) })));
195
197
  }
198
+ ToDo.propTypes = {
199
+ datasource: PropTypes.instanceOf(Object),
200
+ myWorkList: PropTypes.instanceOf(Object),
201
+ // eslint-disable-next-line react/no-unused-prop-types
202
+ caseInfoID: PropTypes.string,
203
+ // buildName: PropTypes.string,
204
+ getPConnect: PropTypes.func.isRequired,
205
+ headerText: PropTypes.string,
206
+ // eslint-disable-next-line react/no-unused-prop-types
207
+ itemKey: PropTypes.string,
208
+ showTodoList: PropTypes.bool,
209
+ // target: PropTypes.string,
210
+ type: PropTypes.string,
211
+ // pageMessages: PropTypes.arrayOf(PropTypes.any),
212
+ // eslint-disable-next-line react/no-unused-prop-types
213
+ context: PropTypes.string,
214
+ // hideActionButtons: PropTypes.bool
215
+ isConfirm: PropTypes.bool
216
+ };
217
+ ToDo.defaultProps = {
218
+ caseInfoID: '',
219
+ datasource: [],
220
+ myWorkList: {},
221
+ // buildName: "",
222
+ headerText: 'To do',
223
+ itemKey: '',
224
+ showTodoList: true,
225
+ // target: "",
226
+ type: 'worklist',
227
+ // pageMessages: null,
228
+ context: '',
229
+ // hideActionButtons: false
230
+ isConfirm: false
231
+ };
196
232
  //# 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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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,8BAA8B;AAC9B,iDAAiD;AACjD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,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2BAA2B;IAC3B,SAAS,EAAE,KAAK;CACjB,CAAC","sourcesContent":["/* eslint-disable no-shadow */\n/* eslint-disable @typescript-eslint/no-shadow */\nimport React, { Fragment, useState } from 'react';\nimport PropTypes from 'prop-types';\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 PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';\n\nimport './ToDo.css';\n\ndeclare const PCore: typeof PCoreType;\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) {\n const { datasource, getPConnect, headerText, showTodoList, myWorkList, type, isConfirm } = 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 };\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 (\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n );\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 ? (\n <span className='psdk-todo-assignment-status'>{assignment.status}</span>\n ) : 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} color='primary'>\n <Typography variant='h6'>{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n ></CardHeader>\n )}\n <List>\n {assignments.map(assignment => (\n <>\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(\n type,\n getPConnect,\n showTodoList,\n assignment\n )} \\u2022 ${localizedVal('Urgency', localeCategory)} ${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 ))}\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} 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\n key={getAssignmentId(assignment)}\n dense\n divider\n onClick={() => clickGo(assignment)}\n >\n <ListItemText\n primary={getAssignmentName(assignment)}\n secondary={getListItemComponent(assignment)}\n />\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 && (\n <Card className={classes.todoWrapper}>{toDoContent}</Card>\n )}\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}>\n {showlessLocalizedValue === 'show_less' ? 'Show less': showlessLocalizedValue}\n </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\nToDo.propTypes = {\n datasource: PropTypes.instanceOf(Object),\n myWorkList: PropTypes.instanceOf(Object),\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID: PropTypes.string,\n // buildName: PropTypes.string,\n getPConnect: PropTypes.func.isRequired,\n headerText: PropTypes.string,\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey: PropTypes.string,\n showTodoList: PropTypes.bool,\n // target: PropTypes.string,\n type: PropTypes.string,\n // pageMessages: PropTypes.arrayOf(PropTypes.any),\n // eslint-disable-next-line react/no-unused-prop-types\n context: PropTypes.string,\n // hideActionButtons: PropTypes.bool\n isConfirm: PropTypes.bool\n};\n\nToDo.defaultProps = {\n caseInfoID: '',\n datasource: [],\n myWorkList: {},\n // buildName: \"\",\n headerText: 'To do',\n itemKey: '',\n showTodoList: true,\n // target: \"\",\n type: 'worklist',\n // pageMessages: null,\n context: '',\n // hideActionButtons: false\n isConfirm: false\n};\n"]}
@@ -1,24 +1,3 @@
1
- # React SDK - Release Announcement - v8.8.20 (08 November 2023)
2
-
3
- This release - **SDK-R v8.8.20** - is **only compatible with Pega Infinity 8.8**. This release is related to the [**release/8.8.20** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/release/8.8.20).
4
- <br>
5
- (If you currently are using the React SDK with Pega Infinity 23, update your SDK to
6
- the [SDK-R v23.1.10 - main branch](https://github.com/pegasystems/react-sdk/tree/main).)
7
-
8
- The SDK-R v23.1.10 and v8.8.20 releases allow React SDK users to to take advantage of the latest
9
- [SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) including:
10
-
11
- * Added the use of **TypeScript typedefs** (from @pega/pcore-pconnect-typedefs) to SDK components.
12
- For more information, see [Using type definitions for PCore and PConnect APIs](https://docs.pega.com/bundle/pcore-pconnect-88/page/pcore-pconnect-public-apis/api/using-type-definitions-pcore-pconnect-apis.html)
13
- * Additional functionality including a **RichTextEditor** component and **many-to-many data reference** support
14
- * Enhanced security including token storage and item obfuscation support.
15
- * Bug fixes.
16
- * Full set of merged PRs can be found in the [react-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/react-sdk-components/pulls?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs related to the release/8.8.20 branch between (and including) PRs #166 and #231.
17
-
18
- <hr>
19
-
20
- ## Previous releases
21
-
22
1
  #### **Release SDK-R-C 8.23.11 (10 August 2023)**
23
2
 
24
3
  * Many significant improvements to localization
package/lib/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './hooks';
2
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/lib/index.js CHANGED
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/export */
1
+ "use strict";
2
2
  // This file is autogenerated. Any changes will be overwritten.
3
- export * from './hooks';
4
3
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,+DAA+D;AAC/D,cAAc,SAAS,CAAC","sourcesContent":["/* eslint-disable import/export */\n// This file is autogenerated. Any changes will be overwritten.\nexport * from './hooks';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,+DAA+D","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\n\n"]}
@@ -2,7 +2,6 @@ export default pegaSdkComponentMap;
2
2
  declare namespace pegaSdkComponentMap {
3
3
  export { ActionButtons };
4
4
  export { ActionButtonsForFileUtil };
5
- export { AlertBanner };
6
5
  export { AppAnnouncement };
7
6
  export { AppShell };
8
7
  export { Assignment };
@@ -34,10 +33,7 @@ declare namespace pegaSdkComponentMap {
34
33
  export { Dropdown };
35
34
  export { Email };
36
35
  export { ErrorBoundary };
37
- export { FieldGroup };
38
- export { FieldGroupList };
39
36
  export { FieldGroupTemplate };
40
- export { FieldValueList };
41
37
  export { FileUtility };
42
38
  export { FlowContainer };
43
39
  export { Followers };
@@ -67,10 +63,7 @@ declare namespace pegaSdkComponentMap {
67
63
  export { Reference as reference };
68
64
  export { RadioButtons };
69
65
  export { Region };
70
- export { RichText };
71
- export { RichTextEditor };
72
66
  export { RootContainer };
73
- export { ScalarList };
74
67
  export { SemanticLink };
75
68
  export { SimpleTable };
76
69
  export { SimpleTableManual };
@@ -98,11 +91,10 @@ declare namespace pegaSdkComponentMap {
98
91
  export { WideNarrowForm };
99
92
  export { WideNarrowPage };
100
93
  export { WssNavBar };
101
- export { WssQuickCreate };
94
+ export { WssQuickCreate as WssQuickcreate };
102
95
  }
103
96
  import ActionButtons from "../lib/components/infra/ActionButtons";
104
97
  import ActionButtonsForFileUtil from "./components/widget/FileUtility/ActionButtonsForFileUtil";
105
- import AlertBanner from "./components/designSystemExtension/AlertBanner";
106
98
  import AppAnnouncement from "./components/widget/AppAnnouncement";
107
99
  import AppShell from "./components/template/AppShell/AppShell";
108
100
  import Assignment from "./components/infra/Assignment/Assignment";
@@ -134,10 +126,7 @@ import DetailsTwoColumn from "./components/template/Details/DetailsTwoColumn/Det
134
126
  import Dropdown from "./components/field/Dropdown";
135
127
  import Email from "./components/field/Email/Email";
136
128
  import ErrorBoundary from "./components/infra/ErrorBoundary";
137
- import FieldGroup from "./components/designSystemExtension/FieldGroup";
138
- import FieldGroupList from "./components/designSystemExtension/FieldGroupList";
139
129
  import FieldGroupTemplate from "./components/template/FieldGroupTemplate";
140
- import FieldValueList from "./components/designSystemExtension/FieldValueList";
141
130
  import FileUtility from "./components/widget/FileUtility/FileUtility";
142
131
  import FlowContainer from "./components/infra/Containers/FlowContainer";
143
132
  import Followers from "./components/widget/Followers";
@@ -167,10 +156,7 @@ import QuickCreate from "./components/widget/QuickCreate";
167
156
  import Reference from "./components/infra/Reference/Reference";
168
157
  import RadioButtons from "./components/field/RadioButtons";
169
158
  import Region from "./components/infra/Region/Region";
170
- import RichText from "./components/field/RichText";
171
- import RichTextEditor from "./components/designSystemExtension/RichTextEditor";
172
159
  import RootContainer from "./components/infra/RootContainer/RootContainer";
173
- import ScalarList from "./components/field/ScalarList";
174
160
  import SemanticLink from "./components/field/SemanticLink";
175
161
  import SimpleTable from "./components/template/SimpleTable/SimpleTable";
176
162
  import SimpleTableManual from "./components/template/SimpleTable/SimpleTableManual";
@@ -4,7 +4,6 @@
4
4
  // dynamically rendered at runtime via calls to react_pconnect or the View component
5
5
  import ActionButtons from '../lib/components/infra/ActionButtons';
6
6
  import ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';
7
- import AlertBanner from './components/designSystemExtension/AlertBanner';
8
7
  import AppAnnouncement from './components/widget/AppAnnouncement';
9
8
  import AppShell from './components/template/AppShell/AppShell';
10
9
  import Assignment from './components/infra/Assignment/Assignment';
@@ -36,10 +35,7 @@ import DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/Det
36
35
  import Dropdown from './components/field/Dropdown';
37
36
  import Email from './components/field/Email/Email';
38
37
  import ErrorBoundary from './components/infra/ErrorBoundary';
39
- import FieldGroup from './components/designSystemExtension/FieldGroup';
40
- import FieldGroupList from './components/designSystemExtension/FieldGroupList';
41
38
  import FieldGroupTemplate from './components/template/FieldGroupTemplate';
42
- import FieldValueList from './components/designSystemExtension/FieldValueList';
43
39
  import FileUtility from './components/widget/FileUtility/FileUtility';
44
40
  import FlowContainer from './components/infra/Containers/FlowContainer';
45
41
  import Followers from './components/widget/Followers';
@@ -69,10 +65,7 @@ import QuickCreate from './components/widget/QuickCreate';
69
65
  import RadioButtons from './components/field/RadioButtons';
70
66
  import Reference from './components/infra/Reference/Reference';
71
67
  import Region from './components/infra/Region/Region';
72
- import RichText from './components/field/RichText';
73
- import RichTextEditor from './components/designSystemExtension/RichTextEditor';
74
68
  import RootContainer from './components/infra/RootContainer/RootContainer';
75
- import ScalarList from './components/field/ScalarList';
76
69
  import SemanticLink from './components/field/SemanticLink';
77
70
  import SimpleTable from './components/template/SimpleTable/SimpleTable';
78
71
  import SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';
@@ -111,7 +104,6 @@ import WssQuickCreate from './components/designSystemExtension/WssQuickCreate';
111
104
  const pegaSdkComponentMap = {
112
105
  'ActionButtons': ActionButtons,
113
106
  'ActionButtonsForFileUtil': ActionButtonsForFileUtil,
114
- 'AlertBanner': AlertBanner,
115
107
  'AppAnnouncement': AppAnnouncement,
116
108
  'AppShell': AppShell,
117
109
  'Assignment': Assignment,
@@ -143,10 +135,7 @@ const pegaSdkComponentMap = {
143
135
  'Dropdown': Dropdown,
144
136
  'Email': Email,
145
137
  'ErrorBoundary': ErrorBoundary,
146
- 'FieldGroup': FieldGroup,
147
- 'FieldGroupList': FieldGroupList,
148
138
  'FieldGroupTemplate': FieldGroupTemplate,
149
- 'FieldValueList': FieldValueList,
150
139
  'FileUtility': FileUtility,
151
140
  'FlowContainer': FlowContainer,
152
141
  'Followers': Followers,
@@ -176,10 +165,7 @@ const pegaSdkComponentMap = {
176
165
  'reference': Reference,
177
166
  'RadioButtons': RadioButtons,
178
167
  'Region': Region,
179
- 'RichText': RichText,
180
- 'RichTextEditor': RichTextEditor,
181
168
  'RootContainer': RootContainer,
182
- 'ScalarList': ScalarList,
183
169
  'SemanticLink': SemanticLink,
184
170
  'SimpleTable': SimpleTable,
185
171
  'SimpleTableManual': SimpleTableManual,
@@ -207,7 +193,7 @@ const pegaSdkComponentMap = {
207
193
  'WideNarrowForm': WideNarrowForm,
208
194
  'WideNarrowPage': WideNarrowPage,
209
195
  'WssNavBar': WssNavBar,
210
- 'WssQuickCreate': WssQuickCreate
196
+ 'WssQuickcreate': WssQuickCreate
211
197
  };
212
198
  export default pegaSdkComponentMap;
213
199
  //# sourceMappingURL=sdk-pega-component-map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,MAAM,MAAM,2CAA2C,CAAC;AAC/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,WAAW,MAAM,gCAAgC,CAAC;AACzD,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,OAAO,iBAAiB,MAAM,sDAAsD,CAAC;AACrF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAC9D,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,O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c,EAAE,YAAY;IAC5B,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,QAAQ;IACpB,gBAAgB,EAAE,cAAc;IAChC,eAAe,EAAE,aAAa;IAC9B,YAAY,EAAE,UAAU;IACxB,cAAc,EAAE,YAAY;IAC5B,aAAa,EAAE,WAAW;IAC1B,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,iBAAiB;IACtC,yBAAyB,EAAE,uBAAuB;IAClD,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,WAAW;IAC1B,UAAU,EAAE,QAAQ;IACpB,aAAa,EAAE,WAAW;IAC1B,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,KAAK,EAAE,GAAG;IACV,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,aAAa;IAC9B,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,gBAAgB,EAAE,cAAc;IAChC,gBAAgB,EAAE,cAAc;IAChC,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,cAAc;CACjC,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from '../lib/components/infra/ActionButtons';\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AlertBanner from './components/designSystemExtension/AlertBanner';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/field/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroup from './components/designSystemExtension/FieldGroup';\nimport FieldGroupList from './components/designSystemExtension/FieldGroupList';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FieldValueList from './components/designSystemExtension/FieldValueList';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RichText from './components/field/RichText';\nimport RichTextEditor from './components/designSystemExtension/RichTextEditor';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport ScalarList from './components/field/ScalarList';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n 'ActionButtons': ActionButtons,\n 'ActionButtonsForFileUtil': ActionButtonsForFileUtil,\n 'AlertBanner': AlertBanner,\n 'AppAnnouncement': AppAnnouncement,\n 'AppShell': AppShell,\n 'Assignment': Assignment,\n 'AssignmentCard': AssignmentCard,\n 'Attachment': Attachment,\n 'AutoComplete': AutoComplete,\n 'Banner': Banner,\n 'BannerPage': BannerPage,\n 'CancelAlert': CancelAlert,\n 'CaseHistory': CaseHistory,\n 'CaseSummary': CaseSummary,\n 'CaseSummaryFields': CaseSummaryFields,\n 'CaseView': CaseView,\n 'CaseViewActionsMenu': CaseViewActionsMenu,\n 'Checkbox': Checkbox,\n 'Confirmation': Confirmation,\n 'Currency': Currency,\n 'DashboardFilter': DashboardFilter,\n 'DataReference': DataReference,\n 'Date': Date,\n 'DateTime': DateTime,\n 'Decimal': Decimal,\n 'DefaultForm': DefaultForm,\n 'DeferLoad': DeferLoad,\n 'Details': Details,\n 'DetailsSubTabs': DetailsSubTabs,\n 'DetailsThreeColumn': DetailsThreeColumn,\n 'DetailsTwoColumn': DetailsTwoColumn,\n 'Dropdown': Dropdown,\n 'Email': Email,\n 'ErrorBoundary': ErrorBoundary,\n 'FieldGroup': FieldGroup,\n 'FieldGroupList': FieldGroupList,\n 'FieldGroupTemplate': FieldGroupTemplate,\n 'FieldValueList': FieldValueList,\n 'FileUtility': FileUtility,\n 'FlowContainer': FlowContainer,\n 'Followers': Followers,\n 'InlineDashboard': InlineDashboard,\n 'InlineDashboardPage': InlineDashboardPage,\n 'Integer': Integer,\n 'LeftAlignVerticalTabs': LeftAlignVerticalTabs,\n 'ListPage': ListPage,\n 'ListView': ListView,\n 'ModalViewContainer': ModalViewContainer,\n 'MultiReferenceReadOnly': MultiReferenceReadOnly,\n 'MultiStep': MultiStep,\n 'NarrowWide': NarrowWide,\n 'NarrowWideDetails': NarrowWideDetails,\n 'NarrowWideForm': NarrowWideForm,\n 'NarrowWidePage': NarrowWidePage,\n 'NavBar': NavBar,\n 'OneColumn': OneColumn,\n 'OneColumnPage': OneColumnPage,\n 'OneColumnTab': OneColumnTab,\n 'Operator': Operator,\n 'Percentage': Percentage,\n 'Phone': Phone,\n 'PromotedFilters': PromotedFilters,\n 'Pulse': Pulse,\n 'QuickCreate': QuickCreate,\n 'reference': Reference, // See note about about non-standard capitalization\n 'RadioButtons': RadioButtons,\n 'Region': Region,\n 'RichText': RichText,\n 'RichTextEditor': RichTextEditor,\n 'RootContainer': RootContainer,\n 'ScalarList': ScalarList,\n 'SemanticLink': SemanticLink,\n 'SimpleTable': SimpleTable,\n 'SimpleTableManual': SimpleTableManual,\n 'SimpleTableSelect': SimpleTableSelect,\n 'SingleReferenceReadOnly': SingleReferenceReadOnly,\n 'Stages': Stages,\n 'SubTabs': SubTabs,\n 'SummaryItem': SummaryItem,\n 'SummaryList': SummaryList,\n 'TextArea': TextArea,\n 'TextContent': TextContent,\n 'TextInput': TextInput,\n 'Time': Time,\n 'Todo': ToDo, // See note about about non-standard capitalization\n 'TwoColumn': TwoColumn,\n 'TwoColumnPage': TwoColumnPage,\n 'TwoColumnTab': TwoColumnTab,\n 'URL': URL,\n 'UserReference': UserReference,\n 'VerticalTabs': VerticalTabs,\n 'View': View,\n 'ViewContainer': ViewContainer,\n 'WideNarrow': WideNarrow,\n 'WideNarrowDetails': WideNarrowDetails,\n 'WideNarrowForm': WideNarrowForm,\n 'WideNarrowPage': WideNarrowPage,\n 'WssNavBar': WssNavBar,\n 'WssQuickCreate': WssQuickCreate\n};\n\nexport default pegaSdkComponentMap;\n"]}
1
+ {"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,MAAM,MAAM,2CAA2C,CAAC;AAC/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,WAAW,MAAM,gCAAgC,CAAC;AACzD,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,OAAO,iBAAiB,MAAM,sDAAsD,CAAC;AACrF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,OAAO,YAA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AE,WAAW;IAC1B,aAAa,EAAE,WAAW;IAC1B,UAAU,EAAE,QAAQ;IACpB,aAAa,EAAE,WAAW;IAC1B,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,KAAK,EAAE,GAAG;IACV,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,aAAa;IAC9B,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,gBAAgB,EAAE,cAAc;IAChC,gBAAgB,EAAE,cAAc;IAChC,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,cAAc;CACjC,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from '../lib/components/infra/ActionButtons';\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/field/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n 'ActionButtons': ActionButtons,\n 'ActionButtonsForFileUtil': ActionButtonsForFileUtil,\n 'AppAnnouncement': AppAnnouncement,\n 'AppShell': AppShell,\n 'Assignment': Assignment,\n 'AssignmentCard': AssignmentCard,\n 'Attachment': Attachment,\n 'AutoComplete': AutoComplete,\n 'Banner': Banner,\n 'BannerPage': BannerPage,\n 'CancelAlert': CancelAlert,\n 'CaseHistory': CaseHistory,\n 'CaseSummary': CaseSummary,\n 'CaseSummaryFields': CaseSummaryFields,\n 'CaseView': CaseView,\n 'CaseViewActionsMenu': CaseViewActionsMenu,\n 'Checkbox': Checkbox,\n 'Confirmation': Confirmation,\n 'Currency': Currency,\n 'DashboardFilter': DashboardFilter,\n 'DataReference': DataReference,\n 'Date': Date,\n 'DateTime': DateTime,\n 'Decimal': Decimal,\n 'DefaultForm': DefaultForm,\n 'DeferLoad': DeferLoad,\n 'Details': Details,\n 'DetailsSubTabs': DetailsSubTabs,\n 'DetailsThreeColumn': DetailsThreeColumn,\n 'DetailsTwoColumn': DetailsTwoColumn,\n 'Dropdown': Dropdown,\n 'Email': Email,\n 'ErrorBoundary': ErrorBoundary,\n 'FieldGroupTemplate': FieldGroupTemplate,\n 'FileUtility': FileUtility,\n 'FlowContainer': FlowContainer,\n 'Followers': Followers,\n 'InlineDashboard': InlineDashboard,\n 'InlineDashboardPage': InlineDashboardPage,\n 'Integer': Integer,\n 'LeftAlignVerticalTabs': LeftAlignVerticalTabs,\n 'ListPage': ListPage,\n 'ListView': ListView,\n 'ModalViewContainer': ModalViewContainer,\n 'MultiReferenceReadOnly': MultiReferenceReadOnly,\n 'MultiStep': MultiStep,\n 'NarrowWide': NarrowWide,\n 'NarrowWideDetails': NarrowWideDetails,\n 'NarrowWideForm': NarrowWideForm,\n 'NarrowWidePage': NarrowWidePage,\n 'NavBar': NavBar,\n 'OneColumn': OneColumn,\n 'OneColumnPage': OneColumnPage,\n 'OneColumnTab': OneColumnTab,\n 'Operator': Operator,\n 'Percentage': Percentage,\n 'Phone': Phone,\n 'PromotedFilters': PromotedFilters,\n 'Pulse': Pulse,\n 'QuickCreate': QuickCreate,\n 'reference': Reference,\n 'RadioButtons': RadioButtons,\n 'Region': Region,\n 'RootContainer': RootContainer,\n 'SemanticLink': SemanticLink,\n 'SimpleTable': SimpleTable,\n 'SimpleTableManual': SimpleTableManual,\n 'SimpleTableSelect': SimpleTableSelect,\n 'SingleReferenceReadOnly': SingleReferenceReadOnly,\n 'Stages': Stages,\n 'SubTabs': SubTabs,\n 'SummaryItem': SummaryItem,\n 'SummaryList': SummaryList,\n 'TextArea': TextArea,\n 'TextContent': TextContent,\n 'TextInput': TextInput,\n 'Time': Time,\n 'Todo': ToDo,\n 'TwoColumn': TwoColumn,\n 'TwoColumnPage': TwoColumnPage,\n 'TwoColumnTab': TwoColumnTab,\n 'URL': URL,\n 'UserReference': UserReference,\n 'VerticalTabs': VerticalTabs,\n 'View': View,\n 'ViewContainer': ViewContainer,\n 'WideNarrow': WideNarrow,\n 'WideNarrowDetails': WideNarrowDetails,\n 'WideNarrowForm': WideNarrowForm,\n 'WideNarrowPage': WideNarrowPage,\n 'WssNavBar': WssNavBar,\n 'WssQuickcreate': WssQuickCreate\n};\n\nexport default pegaSdkComponentMap;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/react-sdk-components",
3
- "version": "8.8.21",
3
+ "version": "8.23.11-debug",
4
4
  "description": "React SDK Infrastructure: bridge and components",
5
5
  "_filesComment": "During packing, npm ignores everything NOT in the files list",
6
6
  "files": [