@pega/react-sdk-components 0.23.12 → 0.23.14

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 (962) hide show
  1. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
  2. package/lib/bridge/helpers/sdk_component_map.js +0 -91
  3. package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
  4. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +13 -0
  5. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -0
  6. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +124 -0
  7. package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -0
  8. package/lib/components/designSystemExtension/CaseSummaryFields/index.d.ts.map +1 -0
  9. package/lib/components/designSystemExtension/CaseSummaryFields/index.js.map +1 -0
  10. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -0
  11. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +106 -0
  12. package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -0
  13. package/lib/components/designSystemExtension/DetailsFields/index.d.ts.map +1 -0
  14. package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -0
  15. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -0
  16. package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -0
  17. package/lib/components/designSystemExtension/FieldGroup/index.d.ts.map +1 -0
  18. package/lib/components/designSystemExtension/FieldGroup/index.js.map +1 -0
  19. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -0
  20. package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -0
  21. package/lib/components/designSystemExtension/FieldGroupList/index.d.ts.map +1 -0
  22. package/lib/components/designSystemExtension/FieldGroupList/index.js.map +1 -0
  23. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -0
  24. package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -0
  25. package/lib/components/designSystemExtension/FieldValueList/index.d.ts.map +1 -0
  26. package/lib/components/designSystemExtension/FieldValueList/index.js.map +1 -0
  27. package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -0
  28. package/lib/components/designSystemExtension/Operator/Operator.js +155 -0
  29. package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -0
  30. package/lib/components/designSystemExtension/Operator/index.d.ts.map +1 -0
  31. package/lib/components/designSystemExtension/Operator/index.js.map +1 -0
  32. package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -0
  33. package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -0
  34. package/lib/components/designSystemExtension/Pulse/index.d.ts.map +1 -0
  35. package/lib/components/designSystemExtension/Pulse/index.js.map +1 -0
  36. package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -0
  37. package/lib/components/field/AutoComplete/AutoComplete.js +140 -0
  38. package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -0
  39. package/lib/components/field/AutoComplete/index.d.ts.map +1 -0
  40. package/lib/components/field/AutoComplete/index.js.map +1 -0
  41. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -0
  42. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -0
  43. package/lib/components/field/CancelAlert/index.d.ts.map +1 -0
  44. package/lib/components/field/CancelAlert/index.js.map +1 -0
  45. package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -0
  46. package/lib/components/field/Checkbox/Checkbox.js +41 -0
  47. package/lib/components/field/Checkbox/Checkbox.js.map +1 -0
  48. package/lib/components/field/Checkbox/index.d.ts.map +1 -0
  49. package/lib/components/field/Checkbox/index.js.map +1 -0
  50. package/lib/components/field/Currency/Currency.d.ts.map +1 -0
  51. package/lib/components/field/Currency/Currency.js +46 -0
  52. package/lib/components/field/Currency/Currency.js.map +1 -0
  53. package/lib/components/field/Currency/index.d.ts.map +1 -0
  54. package/lib/components/field/Currency/index.js.map +1 -0
  55. package/lib/components/field/Date/Date.d.ts.map +1 -0
  56. package/lib/components/field/Date/Date.js +36 -0
  57. package/lib/components/field/Date/Date.js.map +1 -0
  58. package/lib/components/field/Date/index.d.ts.map +1 -0
  59. package/lib/components/field/Date/index.js.map +1 -0
  60. package/lib/components/field/DateTime/DateTime.d.ts.map +1 -0
  61. package/lib/components/field/DateTime/DateTime.js +39 -0
  62. package/lib/components/field/DateTime/DateTime.js.map +1 -0
  63. package/lib/components/field/DateTime/index.d.ts.map +1 -0
  64. package/lib/components/field/DateTime/index.js.map +1 -0
  65. package/lib/components/field/Decimal/Decimal.d.ts.map +1 -0
  66. package/lib/components/field/Decimal/Decimal.js +19 -0
  67. package/lib/components/field/Decimal/Decimal.js.map +1 -0
  68. package/lib/components/field/Decimal/index.d.ts.map +1 -0
  69. package/lib/components/field/Decimal/index.js.map +1 -0
  70. package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -0
  71. package/lib/components/field/Dropdown/Dropdown.js +41 -0
  72. package/lib/components/field/Dropdown/Dropdown.js.map +1 -0
  73. package/lib/components/field/Dropdown/index.d.ts.map +1 -0
  74. package/lib/components/field/Dropdown/index.js.map +1 -0
  75. package/lib/components/field/Email/Email.d.ts.map +1 -0
  76. package/lib/components/field/Email/Email.js +28 -0
  77. package/lib/components/field/Email/Email.js.map +1 -0
  78. package/lib/components/field/Email/index.d.ts.map +1 -0
  79. package/lib/components/field/Email/index.js.map +1 -0
  80. package/lib/components/field/Integer/Integer.d.ts.map +1 -0
  81. package/lib/components/field/Integer/Integer.js +37 -0
  82. package/lib/components/field/Integer/Integer.js.map +1 -0
  83. package/lib/components/field/Integer/index.d.ts.map +1 -0
  84. package/lib/components/field/Integer/index.js.map +1 -0
  85. package/lib/components/field/Percentage/Percentage.d.ts.map +1 -0
  86. package/lib/components/field/Percentage/Percentage.js +42 -0
  87. package/lib/components/field/Percentage/Percentage.js.map +1 -0
  88. package/lib/components/field/Percentage/index.d.ts.map +1 -0
  89. package/lib/components/field/Percentage/index.js.map +1 -0
  90. package/lib/components/field/Phone/Phone.d.ts.map +1 -0
  91. package/lib/components/field/Phone/Phone.js +36 -0
  92. package/lib/components/field/Phone/Phone.js.map +1 -0
  93. package/lib/components/field/Phone/index.d.ts.map +1 -0
  94. package/lib/components/field/Phone/index.js.map +1 -0
  95. package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -0
  96. package/lib/components/field/RadioButtons/RadioButtons.js +40 -0
  97. package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -0
  98. package/lib/components/field/RadioButtons/index.d.ts.map +1 -0
  99. package/lib/components/field/RadioButtons/index.js.map +1 -0
  100. package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -0
  101. package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -0
  102. package/lib/components/field/SemanticLink/index.d.ts.map +1 -0
  103. package/lib/components/field/SemanticLink/index.js.map +1 -0
  104. package/lib/components/field/SemanticLink/utils.d.ts.map +1 -0
  105. package/lib/components/field/SemanticLink/utils.js.map +1 -0
  106. package/lib/components/field/TextArea/TextArea.d.ts.map +1 -0
  107. package/lib/components/field/TextArea/TextArea.js +26 -0
  108. package/lib/components/field/TextArea/TextArea.js.map +1 -0
  109. package/lib/components/field/TextArea/index.d.ts.map +1 -0
  110. package/lib/components/field/TextArea/index.js.map +1 -0
  111. package/lib/components/field/TextContent/TextContent.d.ts.map +1 -0
  112. package/lib/components/field/TextContent/TextContent.js.map +1 -0
  113. package/lib/components/field/TextContent/index.d.ts.map +1 -0
  114. package/lib/components/field/TextContent/index.js.map +1 -0
  115. package/lib/components/field/TextInput/TextInput.d.ts.map +1 -0
  116. package/lib/components/field/TextInput/TextInput.js +24 -0
  117. package/lib/components/field/TextInput/TextInput.js.map +1 -0
  118. package/lib/components/field/TextInput/index.d.ts.map +1 -0
  119. package/lib/components/field/TextInput/index.js.map +1 -0
  120. package/lib/components/field/Time/Time.d.ts.map +1 -0
  121. package/lib/components/field/Time/Time.js +34 -0
  122. package/lib/components/field/Time/Time.js.map +1 -0
  123. package/lib/components/field/Time/index.d.ts.map +1 -0
  124. package/lib/components/field/Time/index.js.map +1 -0
  125. package/lib/components/field/URL/URL.d.ts.map +1 -0
  126. package/lib/components/field/URL/URL.js +22 -0
  127. package/lib/components/field/URL/URL.js.map +1 -0
  128. package/lib/components/field/URL/index.d.ts.map +1 -0
  129. package/lib/components/field/URL/index.js.map +1 -0
  130. package/lib/components/field/UserReference/UserReference.d.ts.map +1 -0
  131. package/lib/components/field/UserReference/UserReference.js.map +1 -0
  132. package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -0
  133. package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -0
  134. package/lib/components/field/UserReference/index.d.ts.map +1 -0
  135. package/lib/components/field/UserReference/index.js.map +1 -0
  136. package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -0
  137. package/lib/components/helpers/simpleTableHelpers.js +306 -0
  138. package/lib/components/helpers/simpleTableHelpers.js.map +1 -0
  139. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +1 -1
  140. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
  141. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +1 -1
  142. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
  143. package/lib/components/infra/View/View.js +1 -1
  144. package/lib/components/infra/View/View.js.map +1 -1
  145. package/lib/components/template/AppShell/AppShell.d.ts.map +1 -0
  146. package/lib/components/template/AppShell/AppShell.js.map +1 -0
  147. package/lib/components/template/AppShell/index.d.ts.map +1 -0
  148. package/lib/components/template/AppShell/index.js.map +1 -0
  149. package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -0
  150. package/lib/components/template/CaseSummary/CaseSummary.js +40 -0
  151. package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -0
  152. package/lib/components/template/CaseSummary/index.d.ts.map +1 -0
  153. package/lib/components/template/CaseSummary/index.js.map +1 -0
  154. package/lib/components/template/CaseView/CaseView.d.ts.map +1 -0
  155. package/lib/components/template/CaseView/CaseView.js.map +1 -0
  156. package/lib/components/template/CaseView/index.d.ts.map +1 -0
  157. package/lib/components/template/CaseView/index.js.map +1 -0
  158. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -0
  159. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -0
  160. package/lib/components/template/CaseViewActionsMenu/index.d.ts.map +1 -0
  161. package/lib/components/template/CaseViewActionsMenu/index.js.map +1 -0
  162. package/lib/components/template/DataReference/DataReference.d.ts.map +1 -0
  163. package/lib/components/template/DataReference/DataReference.js.map +1 -0
  164. package/lib/components/template/DataReference/index.d.ts.map +1 -0
  165. package/lib/components/template/DataReference/index.js.map +1 -0
  166. package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -0
  167. package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -0
  168. package/lib/components/template/DefaultForm/index.d.ts.map +1 -0
  169. package/lib/components/template/DefaultForm/index.js.map +1 -0
  170. package/lib/components/template/Details/Details/Details.d.ts.map +1 -0
  171. package/lib/components/template/Details/Details/Details.js +26 -0
  172. package/lib/components/template/Details/Details/Details.js.map +1 -0
  173. package/lib/components/template/Details/Details/index.d.ts.map +1 -0
  174. package/lib/components/template/Details/Details/index.js.map +1 -0
  175. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -0
  176. package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -0
  177. package/lib/components/template/Details/DetailsSubTabs/index.d.ts.map +1 -0
  178. package/lib/components/template/Details/DetailsSubTabs/index.js.map +1 -0
  179. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -0
  180. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +34 -0
  181. package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -0
  182. package/lib/components/template/Details/DetailsThreeColumn/index.d.ts.map +1 -0
  183. package/lib/components/template/Details/DetailsThreeColumn/index.js.map +1 -0
  184. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -0
  185. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +32 -0
  186. package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -0
  187. package/lib/components/template/Details/DetailsTwoColumn/index.d.ts.map +1 -0
  188. package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -0
  189. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -0
  190. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +78 -0
  191. package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -0
  192. package/lib/components/template/FieldGroupTemplate/index.d.ts.map +1 -0
  193. package/lib/components/template/FieldGroupTemplate/index.js.map +1 -0
  194. package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -0
  195. package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -0
  196. package/lib/components/template/InlineDashboard/index.d.ts.map +1 -0
  197. package/lib/components/template/InlineDashboard/index.js.map +1 -0
  198. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -0
  199. package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -0
  200. package/lib/components/template/InlineDashboardPage/index.d.ts.map +1 -0
  201. package/lib/components/template/InlineDashboardPage/index.js.map +1 -0
  202. package/lib/components/template/ListPage/ListPage.d.ts.map +1 -0
  203. package/lib/components/template/ListPage/ListPage.js.map +1 -0
  204. package/lib/components/template/ListPage/index.d.ts.map +1 -0
  205. package/lib/components/template/ListPage/index.js.map +1 -0
  206. package/lib/components/template/ListView/ListView.d.ts.map +1 -0
  207. package/lib/components/template/ListView/ListView.js +868 -0
  208. package/lib/components/template/ListView/ListView.js.map +1 -0
  209. package/lib/components/template/ListView/index.d.ts.map +1 -0
  210. package/lib/components/template/ListView/index.js.map +1 -0
  211. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -0
  212. package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -0
  213. package/lib/components/template/MultiReferenceReadOnly/index.d.ts.map +1 -0
  214. package/lib/components/template/MultiReferenceReadOnly/index.js.map +1 -0
  215. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -0
  216. package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -0
  217. package/lib/components/template/NarrowWide/NarrowWide/index.d.ts.map +1 -0
  218. package/lib/components/template/NarrowWide/NarrowWide/index.js.map +1 -0
  219. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -0
  220. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +35 -0
  221. package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -0
  222. package/lib/components/template/NarrowWide/NarrowWideDetails/index.d.ts.map +1 -0
  223. package/lib/components/template/NarrowWide/NarrowWideDetails/index.js.map +1 -0
  224. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -0
  225. package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -0
  226. package/lib/components/template/NarrowWide/NarrowWideForm/index.d.ts.map +1 -0
  227. package/lib/components/template/NarrowWide/NarrowWideForm/index.js.map +1 -0
  228. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -0
  229. package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -0
  230. package/lib/components/template/NarrowWide/NarrowWidePage/index.d.ts.map +1 -0
  231. package/lib/components/template/NarrowWide/NarrowWidePage/index.js.map +1 -0
  232. package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -0
  233. package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -0
  234. package/lib/components/template/OneColumn/OneColumn/index.d.ts.map +1 -0
  235. package/lib/components/template/OneColumn/OneColumn/index.js.map +1 -0
  236. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -0
  237. package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -0
  238. package/lib/components/template/OneColumn/OneColumnPage/index.d.ts.map +1 -0
  239. package/lib/components/template/OneColumn/OneColumnPage/index.js.map +1 -0
  240. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -0
  241. package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -0
  242. package/lib/components/template/OneColumn/OneColumnTab/index.d.ts.map +1 -0
  243. package/lib/components/template/OneColumn/OneColumnTab/index.js.map +1 -0
  244. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +18 -0
  245. package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -0
  246. package/lib/components/template/PromotedFilters/PromotedFilters.js +131 -0
  247. package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -0
  248. package/lib/components/template/PromotedFilters/index.d.ts.map +1 -0
  249. package/lib/components/template/PromotedFilters/index.js.map +1 -0
  250. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -0
  251. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +26 -0
  252. package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -0
  253. package/lib/components/template/SimpleTable/SimpleTable/index.d.ts.map +1 -0
  254. package/lib/components/template/SimpleTable/SimpleTable/index.js.map +1 -0
  255. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -0
  256. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +507 -0
  257. package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -0
  258. package/lib/components/template/SimpleTable/SimpleTableManual/index.d.ts.map +1 -0
  259. package/lib/components/template/SimpleTable/SimpleTableManual/index.js.map +1 -0
  260. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -0
  261. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +105 -0
  262. package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -0
  263. package/lib/components/template/SimpleTable/SimpleTableSelect/index.d.ts.map +1 -0
  264. package/lib/components/template/SimpleTable/SimpleTableSelect/index.js.map +1 -0
  265. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -0
  266. package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -0
  267. package/lib/components/template/SingleReferenceReadOnly/index.d.ts.map +1 -0
  268. package/lib/components/template/SingleReferenceReadOnly/index.js.map +1 -0
  269. package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -0
  270. package/lib/components/template/SubTabs/SubTabs.js.map +1 -0
  271. package/lib/components/template/SubTabs/index.d.ts.map +1 -0
  272. package/lib/components/template/SubTabs/index.js.map +1 -0
  273. package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -0
  274. package/lib/components/template/SubTabs/tabUtils.js.map +1 -0
  275. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -0
  276. package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -0
  277. package/lib/components/template/TwoColumn/TwoColumn/index.d.ts.map +1 -0
  278. package/lib/components/template/TwoColumn/TwoColumn/index.js.map +1 -0
  279. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -0
  280. package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -0
  281. package/lib/components/template/TwoColumn/TwoColumnPage/index.d.ts.map +1 -0
  282. package/lib/components/template/TwoColumn/TwoColumnPage/index.js.map +1 -0
  283. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -0
  284. package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -0
  285. package/lib/components/template/TwoColumn/TwoColumnTab/index.d.ts.map +1 -0
  286. package/lib/components/template/TwoColumn/TwoColumnTab/index.js.map +1 -0
  287. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -0
  288. package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -0
  289. package/lib/components/template/WideNarrow/WideNarrow/index.d.ts.map +1 -0
  290. package/lib/components/template/WideNarrow/WideNarrow/index.js.map +1 -0
  291. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -0
  292. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +35 -0
  293. package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -0
  294. package/lib/components/template/WideNarrow/WideNarrowDetails/index.d.ts.map +1 -0
  295. package/lib/components/template/WideNarrow/WideNarrowDetails/index.js.map +1 -0
  296. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -0
  297. package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -0
  298. package/lib/components/template/WideNarrow/WideNarrowForm/index.d.ts.map +1 -0
  299. package/lib/components/template/WideNarrow/WideNarrowForm/index.js.map +1 -0
  300. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -0
  301. package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -0
  302. package/lib/components/template/WideNarrow/WideNarrowPage/index.d.ts.map +1 -0
  303. package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -0
  304. package/lib/components/template/utils.d.ts.map +1 -0
  305. package/lib/components/template/utils.js +22 -0
  306. package/lib/components/template/utils.js.map +1 -0
  307. package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -0
  308. package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -0
  309. package/lib/components/widget/AppAnnouncement/index.d.ts.map +1 -0
  310. package/lib/components/widget/AppAnnouncement/index.js.map +1 -0
  311. package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -0
  312. package/lib/components/widget/Attachment/Attachment.js +370 -0
  313. package/lib/components/widget/Attachment/Attachment.js.map +1 -0
  314. package/lib/components/widget/Attachment/index.d.ts.map +1 -0
  315. package/lib/components/widget/Attachment/index.js.map +1 -0
  316. package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -0
  317. package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -0
  318. package/lib/components/widget/CaseHistory/index.d.ts.map +1 -0
  319. package/lib/components/widget/CaseHistory/index.js.map +1 -0
  320. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -0
  321. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -0
  322. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/index.d.ts.map +1 -0
  323. package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/index.js.map +1 -0
  324. package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -0
  325. package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -0
  326. package/lib/components/widget/FileUtility/FileUtility/index.d.ts.map +1 -0
  327. package/lib/components/widget/FileUtility/FileUtility/index.js.map +1 -0
  328. package/lib/components/widget/Followers/Followers.d.ts.map +1 -0
  329. package/lib/components/widget/Followers/Followers.js.map +1 -0
  330. package/lib/components/widget/Followers/index.d.ts.map +1 -0
  331. package/lib/components/widget/Followers/index.js.map +1 -0
  332. package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -0
  333. package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -0
  334. package/lib/components/widget/SummaryItem/index.d.ts.map +1 -0
  335. package/lib/components/widget/SummaryItem/index.js.map +1 -0
  336. package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -0
  337. package/lib/components/widget/SummaryList/SummaryList.js.map +1 -0
  338. package/lib/components/widget/SummaryList/index.d.ts.map +1 -0
  339. package/lib/components/widget/SummaryList/index.js.map +1 -0
  340. package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -0
  341. package/lib/components/widget/ToDo/ToDo.js.map +1 -0
  342. package/lib/components/widget/ToDo/index.d.ts.map +1 -0
  343. package/lib/components/widget/ToDo/index.js.map +1 -0
  344. package/lib/components_map.js +61 -61
  345. package/lib/components_map.js.map +1 -1
  346. package/lib/sdk-pega-component-map.d.ts +84 -84
  347. package/lib/sdk-pega-component-map.js +84 -84
  348. package/lib/sdk-pega-component-map.js.map +1 -1
  349. package/package.json +1 -1
  350. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts +0 -13
  351. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts.map +0 -1
  352. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js +0 -102
  353. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js.map +0 -1
  354. package/lib/components/designSystemExtensions/CaseSummaryFields/index.d.ts.map +0 -1
  355. package/lib/components/designSystemExtensions/CaseSummaryFields/index.js.map +0 -1
  356. package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.d.ts.map +0 -1
  357. package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js +0 -106
  358. package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js.map +0 -1
  359. package/lib/components/designSystemExtensions/DetailsFields/index.d.ts.map +0 -1
  360. package/lib/components/designSystemExtensions/DetailsFields/index.js.map +0 -1
  361. package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.d.ts.map +0 -1
  362. package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.js.map +0 -1
  363. package/lib/components/designSystemExtensions/FieldGroup/index.d.ts.map +0 -1
  364. package/lib/components/designSystemExtensions/FieldGroup/index.js.map +0 -1
  365. package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.d.ts.map +0 -1
  366. package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.js.map +0 -1
  367. package/lib/components/designSystemExtensions/FieldGroupList/index.d.ts.map +0 -1
  368. package/lib/components/designSystemExtensions/FieldGroupList/index.js.map +0 -1
  369. package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.d.ts.map +0 -1
  370. package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.js.map +0 -1
  371. package/lib/components/designSystemExtensions/FieldValueList/index.d.ts.map +0 -1
  372. package/lib/components/designSystemExtensions/FieldValueList/index.js.map +0 -1
  373. package/lib/components/designSystemExtensions/Operator/Operator.d.ts.map +0 -1
  374. package/lib/components/designSystemExtensions/Operator/Operator.js +0 -154
  375. package/lib/components/designSystemExtensions/Operator/Operator.js.map +0 -1
  376. package/lib/components/designSystemExtensions/Operator/index.d.ts.map +0 -1
  377. package/lib/components/designSystemExtensions/Operator/index.js.map +0 -1
  378. package/lib/components/designSystemExtensions/Pulse/Pulse.d.ts.map +0 -1
  379. package/lib/components/designSystemExtensions/Pulse/Pulse.js.map +0 -1
  380. package/lib/components/designSystemExtensions/Pulse/index.d.ts.map +0 -1
  381. package/lib/components/designSystemExtensions/Pulse/index.js.map +0 -1
  382. package/lib/components/forms/AutoComplete/AutoComplete.d.ts.map +0 -1
  383. package/lib/components/forms/AutoComplete/AutoComplete.js +0 -133
  384. package/lib/components/forms/AutoComplete/AutoComplete.js.map +0 -1
  385. package/lib/components/forms/AutoComplete/index.d.ts.map +0 -1
  386. package/lib/components/forms/AutoComplete/index.js.map +0 -1
  387. package/lib/components/forms/CancelAlert/CancelAlert.d.ts.map +0 -1
  388. package/lib/components/forms/CancelAlert/CancelAlert.js.map +0 -1
  389. package/lib/components/forms/CancelAlert/index.d.ts.map +0 -1
  390. package/lib/components/forms/CancelAlert/index.js.map +0 -1
  391. package/lib/components/forms/Checkbox/Checkbox.d.ts.map +0 -1
  392. package/lib/components/forms/Checkbox/Checkbox.js +0 -34
  393. package/lib/components/forms/Checkbox/Checkbox.js.map +0 -1
  394. package/lib/components/forms/Checkbox/index.d.ts.map +0 -1
  395. package/lib/components/forms/Checkbox/index.js.map +0 -1
  396. package/lib/components/forms/Currency/Currency.d.ts.map +0 -1
  397. package/lib/components/forms/Currency/Currency.js +0 -46
  398. package/lib/components/forms/Currency/Currency.js.map +0 -1
  399. package/lib/components/forms/Currency/index.d.ts.map +0 -1
  400. package/lib/components/forms/Currency/index.js.map +0 -1
  401. package/lib/components/forms/Date/Date.d.ts.map +0 -1
  402. package/lib/components/forms/Date/Date.js +0 -36
  403. package/lib/components/forms/Date/Date.js.map +0 -1
  404. package/lib/components/forms/Date/index.d.ts.map +0 -1
  405. package/lib/components/forms/Date/index.js.map +0 -1
  406. package/lib/components/forms/DateTime/DateTime.d.ts.map +0 -1
  407. package/lib/components/forms/DateTime/DateTime.js +0 -35
  408. package/lib/components/forms/DateTime/DateTime.js.map +0 -1
  409. package/lib/components/forms/DateTime/index.d.ts.map +0 -1
  410. package/lib/components/forms/DateTime/index.js.map +0 -1
  411. package/lib/components/forms/Decimal/Decimal.d.ts.map +0 -1
  412. package/lib/components/forms/Decimal/Decimal.js +0 -19
  413. package/lib/components/forms/Decimal/Decimal.js.map +0 -1
  414. package/lib/components/forms/Decimal/index.d.ts.map +0 -1
  415. package/lib/components/forms/Decimal/index.js.map +0 -1
  416. package/lib/components/forms/Dropdown/Dropdown.d.ts.map +0 -1
  417. package/lib/components/forms/Dropdown/Dropdown.js +0 -34
  418. package/lib/components/forms/Dropdown/Dropdown.js.map +0 -1
  419. package/lib/components/forms/Dropdown/index.d.ts.map +0 -1
  420. package/lib/components/forms/Dropdown/index.js.map +0 -1
  421. package/lib/components/forms/Email/Email.d.ts.map +0 -1
  422. package/lib/components/forms/Email/Email.js +0 -28
  423. package/lib/components/forms/Email/Email.js.map +0 -1
  424. package/lib/components/forms/Email/index.d.ts.map +0 -1
  425. package/lib/components/forms/Email/index.js.map +0 -1
  426. package/lib/components/forms/Integer/Integer.d.ts.map +0 -1
  427. package/lib/components/forms/Integer/Integer.js +0 -37
  428. package/lib/components/forms/Integer/Integer.js.map +0 -1
  429. package/lib/components/forms/Integer/index.d.ts.map +0 -1
  430. package/lib/components/forms/Integer/index.js.map +0 -1
  431. package/lib/components/forms/Percentage/Percentage.d.ts.map +0 -1
  432. package/lib/components/forms/Percentage/Percentage.js +0 -42
  433. package/lib/components/forms/Percentage/Percentage.js.map +0 -1
  434. package/lib/components/forms/Percentage/index.d.ts.map +0 -1
  435. package/lib/components/forms/Percentage/index.js.map +0 -1
  436. package/lib/components/forms/Phone/Phone.d.ts.map +0 -1
  437. package/lib/components/forms/Phone/Phone.js +0 -36
  438. package/lib/components/forms/Phone/Phone.js.map +0 -1
  439. package/lib/components/forms/Phone/index.d.ts.map +0 -1
  440. package/lib/components/forms/Phone/index.js.map +0 -1
  441. package/lib/components/forms/RadioButtons/RadioButtons.d.ts.map +0 -1
  442. package/lib/components/forms/RadioButtons/RadioButtons.js +0 -33
  443. package/lib/components/forms/RadioButtons/RadioButtons.js.map +0 -1
  444. package/lib/components/forms/RadioButtons/index.d.ts.map +0 -1
  445. package/lib/components/forms/RadioButtons/index.js.map +0 -1
  446. package/lib/components/forms/SemanticLink/SemanticLink.d.ts.map +0 -1
  447. package/lib/components/forms/SemanticLink/SemanticLink.js.map +0 -1
  448. package/lib/components/forms/SemanticLink/index.d.ts.map +0 -1
  449. package/lib/components/forms/SemanticLink/index.js.map +0 -1
  450. package/lib/components/forms/SemanticLink/utils.d.ts.map +0 -1
  451. package/lib/components/forms/SemanticLink/utils.js.map +0 -1
  452. package/lib/components/forms/TextArea/TextArea.d.ts.map +0 -1
  453. package/lib/components/forms/TextArea/TextArea.js +0 -26
  454. package/lib/components/forms/TextArea/TextArea.js.map +0 -1
  455. package/lib/components/forms/TextArea/index.d.ts.map +0 -1
  456. package/lib/components/forms/TextArea/index.js.map +0 -1
  457. package/lib/components/forms/TextContent/TextContent.d.ts.map +0 -1
  458. package/lib/components/forms/TextContent/TextContent.js.map +0 -1
  459. package/lib/components/forms/TextContent/index.d.ts.map +0 -1
  460. package/lib/components/forms/TextContent/index.js.map +0 -1
  461. package/lib/components/forms/TextInput/TextInput.d.ts.map +0 -1
  462. package/lib/components/forms/TextInput/TextInput.js +0 -24
  463. package/lib/components/forms/TextInput/TextInput.js.map +0 -1
  464. package/lib/components/forms/TextInput/index.d.ts.map +0 -1
  465. package/lib/components/forms/TextInput/index.js.map +0 -1
  466. package/lib/components/forms/Time/Time.d.ts.map +0 -1
  467. package/lib/components/forms/Time/Time.js +0 -34
  468. package/lib/components/forms/Time/Time.js.map +0 -1
  469. package/lib/components/forms/Time/index.d.ts.map +0 -1
  470. package/lib/components/forms/Time/index.js.map +0 -1
  471. package/lib/components/forms/URL/URL.d.ts.map +0 -1
  472. package/lib/components/forms/URL/URL.js +0 -22
  473. package/lib/components/forms/URL/URL.js.map +0 -1
  474. package/lib/components/forms/URL/index.d.ts.map +0 -1
  475. package/lib/components/forms/URL/index.js.map +0 -1
  476. package/lib/components/forms/UserReference/UserReference.d.ts.map +0 -1
  477. package/lib/components/forms/UserReference/UserReference.js.map +0 -1
  478. package/lib/components/forms/UserReference/UserReferenceUtils.d.ts.map +0 -1
  479. package/lib/components/forms/UserReference/UserReferenceUtils.js.map +0 -1
  480. package/lib/components/forms/UserReference/index.d.ts.map +0 -1
  481. package/lib/components/forms/UserReference/index.js.map +0 -1
  482. package/lib/components/templates/AppShell/AppShell.d.ts.map +0 -1
  483. package/lib/components/templates/AppShell/AppShell.js.map +0 -1
  484. package/lib/components/templates/AppShell/index.d.ts.map +0 -1
  485. package/lib/components/templates/AppShell/index.js.map +0 -1
  486. package/lib/components/templates/CaseSummary/CaseSummary.d.ts.map +0 -1
  487. package/lib/components/templates/CaseSummary/CaseSummary.js +0 -40
  488. package/lib/components/templates/CaseSummary/CaseSummary.js.map +0 -1
  489. package/lib/components/templates/CaseSummary/index.d.ts.map +0 -1
  490. package/lib/components/templates/CaseSummary/index.js.map +0 -1
  491. package/lib/components/templates/CaseView/CaseView.d.ts.map +0 -1
  492. package/lib/components/templates/CaseView/CaseView.js.map +0 -1
  493. package/lib/components/templates/CaseView/index.d.ts.map +0 -1
  494. package/lib/components/templates/CaseView/index.js.map +0 -1
  495. package/lib/components/templates/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +0 -1
  496. package/lib/components/templates/CaseViewActionsMenu/CaseViewActionsMenu.js.map +0 -1
  497. package/lib/components/templates/CaseViewActionsMenu/index.d.ts.map +0 -1
  498. package/lib/components/templates/CaseViewActionsMenu/index.js.map +0 -1
  499. package/lib/components/templates/DataReference/DataReference.d.ts.map +0 -1
  500. package/lib/components/templates/DataReference/DataReference.js.map +0 -1
  501. package/lib/components/templates/DataReference/index.d.ts.map +0 -1
  502. package/lib/components/templates/DataReference/index.js.map +0 -1
  503. package/lib/components/templates/DefaultForm/DefaultForm.d.ts.map +0 -1
  504. package/lib/components/templates/DefaultForm/DefaultForm.js.map +0 -1
  505. package/lib/components/templates/DefaultForm/index.d.ts.map +0 -1
  506. package/lib/components/templates/DefaultForm/index.js.map +0 -1
  507. package/lib/components/templates/Details/Details/Details.d.ts.map +0 -1
  508. package/lib/components/templates/Details/Details/Details.js +0 -26
  509. package/lib/components/templates/Details/Details/Details.js.map +0 -1
  510. package/lib/components/templates/Details/Details/index.d.ts.map +0 -1
  511. package/lib/components/templates/Details/Details/index.js.map +0 -1
  512. package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +0 -1
  513. package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.js.map +0 -1
  514. package/lib/components/templates/Details/DetailsSubTabs/index.d.ts.map +0 -1
  515. package/lib/components/templates/Details/DetailsSubTabs/index.js.map +0 -1
  516. package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +0 -1
  517. package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js +0 -34
  518. package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +0 -1
  519. package/lib/components/templates/Details/DetailsThreeColumn/index.d.ts.map +0 -1
  520. package/lib/components/templates/Details/DetailsThreeColumn/index.js.map +0 -1
  521. package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +0 -1
  522. package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js +0 -32
  523. package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +0 -1
  524. package/lib/components/templates/Details/DetailsTwoColumn/index.d.ts.map +0 -1
  525. package/lib/components/templates/Details/DetailsTwoColumn/index.js.map +0 -1
  526. package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +0 -1
  527. package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js +0 -78
  528. package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js.map +0 -1
  529. package/lib/components/templates/FieldGroupTemplate/index.d.ts.map +0 -1
  530. package/lib/components/templates/FieldGroupTemplate/index.js.map +0 -1
  531. package/lib/components/templates/InlineDashboard/InlineDashboard.d.ts.map +0 -1
  532. package/lib/components/templates/InlineDashboard/InlineDashboard.js.map +0 -1
  533. package/lib/components/templates/InlineDashboard/index.d.ts.map +0 -1
  534. package/lib/components/templates/InlineDashboard/index.js.map +0 -1
  535. package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.d.ts.map +0 -1
  536. package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.js.map +0 -1
  537. package/lib/components/templates/InlineDashboardPage/index.d.ts.map +0 -1
  538. package/lib/components/templates/InlineDashboardPage/index.js.map +0 -1
  539. package/lib/components/templates/ListPage/ListPage.d.ts.map +0 -1
  540. package/lib/components/templates/ListPage/ListPage.js.map +0 -1
  541. package/lib/components/templates/ListPage/index.d.ts.map +0 -1
  542. package/lib/components/templates/ListPage/index.js.map +0 -1
  543. package/lib/components/templates/ListView/ListView.d.ts.map +0 -1
  544. package/lib/components/templates/ListView/ListView.js +0 -842
  545. package/lib/components/templates/ListView/ListView.js.map +0 -1
  546. package/lib/components/templates/ListView/index.d.ts.map +0 -1
  547. package/lib/components/templates/ListView/index.js.map +0 -1
  548. package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +0 -1
  549. package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +0 -1
  550. package/lib/components/templates/MultiReferenceReadOnly/index.d.ts.map +0 -1
  551. package/lib/components/templates/MultiReferenceReadOnly/index.js.map +0 -1
  552. package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.d.ts.map +0 -1
  553. package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.js.map +0 -1
  554. package/lib/components/templates/NarrowWide/NarrowWide/index.d.ts.map +0 -1
  555. package/lib/components/templates/NarrowWide/NarrowWide/index.js.map +0 -1
  556. package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +0 -1
  557. package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +0 -35
  558. package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +0 -1
  559. package/lib/components/templates/NarrowWide/NarrowWideDetails/index.d.ts.map +0 -1
  560. package/lib/components/templates/NarrowWide/NarrowWideDetails/index.js.map +0 -1
  561. package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +0 -1
  562. package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +0 -1
  563. package/lib/components/templates/NarrowWide/NarrowWideForm/index.d.ts.map +0 -1
  564. package/lib/components/templates/NarrowWide/NarrowWideForm/index.js.map +0 -1
  565. package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +0 -1
  566. package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +0 -1
  567. package/lib/components/templates/NarrowWide/NarrowWidePage/index.d.ts.map +0 -1
  568. package/lib/components/templates/NarrowWide/NarrowWidePage/index.js.map +0 -1
  569. package/lib/components/templates/OneColumn/OneColumn/OneColumn.d.ts.map +0 -1
  570. package/lib/components/templates/OneColumn/OneColumn/OneColumn.js.map +0 -1
  571. package/lib/components/templates/OneColumn/OneColumn/index.d.ts.map +0 -1
  572. package/lib/components/templates/OneColumn/OneColumn/index.js.map +0 -1
  573. package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +0 -1
  574. package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.js.map +0 -1
  575. package/lib/components/templates/OneColumn/OneColumnPage/index.d.ts.map +0 -1
  576. package/lib/components/templates/OneColumn/OneColumnPage/index.js.map +0 -1
  577. package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +0 -1
  578. package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.js.map +0 -1
  579. package/lib/components/templates/OneColumn/OneColumnTab/index.d.ts.map +0 -1
  580. package/lib/components/templates/OneColumn/OneColumnTab/index.js.map +0 -1
  581. package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts +0 -17
  582. package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts.map +0 -1
  583. package/lib/components/templates/PromotedFilters/PromotedFilters.js +0 -130
  584. package/lib/components/templates/PromotedFilters/PromotedFilters.js.map +0 -1
  585. package/lib/components/templates/PromotedFilters/index.d.ts.map +0 -1
  586. package/lib/components/templates/PromotedFilters/index.js.map +0 -1
  587. package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.d.ts.map +0 -1
  588. package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js +0 -26
  589. package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js.map +0 -1
  590. package/lib/components/templates/SimpleTable/SimpleTable/index.d.ts.map +0 -1
  591. package/lib/components/templates/SimpleTable/SimpleTable/index.js.map +0 -1
  592. package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +0 -1
  593. package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.js +0 -507
  594. package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +0 -1
  595. package/lib/components/templates/SimpleTable/SimpleTableManual/index.d.ts.map +0 -1
  596. package/lib/components/templates/SimpleTable/SimpleTableManual/index.js.map +0 -1
  597. package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +0 -1
  598. package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +0 -105
  599. package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +0 -1
  600. package/lib/components/templates/SimpleTable/SimpleTableSelect/index.d.ts.map +0 -1
  601. package/lib/components/templates/SimpleTable/SimpleTableSelect/index.js.map +0 -1
  602. package/lib/components/templates/SimpleTable/simpleTableHelpers.d.ts.map +0 -1
  603. package/lib/components/templates/SimpleTable/simpleTableHelpers.js +0 -306
  604. package/lib/components/templates/SimpleTable/simpleTableHelpers.js.map +0 -1
  605. package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +0 -1
  606. package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +0 -1
  607. package/lib/components/templates/SingleReferenceReadOnly/index.d.ts.map +0 -1
  608. package/lib/components/templates/SingleReferenceReadOnly/index.js.map +0 -1
  609. package/lib/components/templates/SubTabs/SubTabs.d.ts.map +0 -1
  610. package/lib/components/templates/SubTabs/SubTabs.js.map +0 -1
  611. package/lib/components/templates/SubTabs/index.d.ts.map +0 -1
  612. package/lib/components/templates/SubTabs/index.js.map +0 -1
  613. package/lib/components/templates/SubTabs/tabUtils.d.ts.map +0 -1
  614. package/lib/components/templates/SubTabs/tabUtils.js.map +0 -1
  615. package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.d.ts.map +0 -1
  616. package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.js.map +0 -1
  617. package/lib/components/templates/TwoColumn/TwoColumn/index.d.ts.map +0 -1
  618. package/lib/components/templates/TwoColumn/TwoColumn/index.js.map +0 -1
  619. package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +0 -1
  620. package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +0 -1
  621. package/lib/components/templates/TwoColumn/TwoColumnPage/index.d.ts.map +0 -1
  622. package/lib/components/templates/TwoColumn/TwoColumnPage/index.js.map +0 -1
  623. package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +0 -1
  624. package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +0 -1
  625. package/lib/components/templates/TwoColumn/TwoColumnTab/index.d.ts.map +0 -1
  626. package/lib/components/templates/TwoColumn/TwoColumnTab/index.js.map +0 -1
  627. package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.d.ts.map +0 -1
  628. package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.js.map +0 -1
  629. package/lib/components/templates/WideNarrow/WideNarrow/index.d.ts.map +0 -1
  630. package/lib/components/templates/WideNarrow/WideNarrow/index.js.map +0 -1
  631. package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +0 -1
  632. package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +0 -35
  633. package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +0 -1
  634. package/lib/components/templates/WideNarrow/WideNarrowDetails/index.d.ts.map +0 -1
  635. package/lib/components/templates/WideNarrow/WideNarrowDetails/index.js.map +0 -1
  636. package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +0 -1
  637. package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +0 -1
  638. package/lib/components/templates/WideNarrow/WideNarrowForm/index.d.ts.map +0 -1
  639. package/lib/components/templates/WideNarrow/WideNarrowForm/index.js.map +0 -1
  640. package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +0 -1
  641. package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +0 -1
  642. package/lib/components/templates/WideNarrow/WideNarrowPage/index.d.ts.map +0 -1
  643. package/lib/components/templates/WideNarrow/WideNarrowPage/index.js.map +0 -1
  644. package/lib/components/templates/utils.d.ts.map +0 -1
  645. package/lib/components/templates/utils.js +0 -22
  646. package/lib/components/templates/utils.js.map +0 -1
  647. package/lib/components/widgets/AppAnnouncement/AppAnnouncement.d.ts.map +0 -1
  648. package/lib/components/widgets/AppAnnouncement/AppAnnouncement.js.map +0 -1
  649. package/lib/components/widgets/AppAnnouncement/index.d.ts.map +0 -1
  650. package/lib/components/widgets/AppAnnouncement/index.js.map +0 -1
  651. package/lib/components/widgets/Attachment/Attachment.d.ts.map +0 -1
  652. package/lib/components/widgets/Attachment/Attachment.js +0 -370
  653. package/lib/components/widgets/Attachment/Attachment.js.map +0 -1
  654. package/lib/components/widgets/Attachment/index.d.ts.map +0 -1
  655. package/lib/components/widgets/Attachment/index.js.map +0 -1
  656. package/lib/components/widgets/CaseHistory/CaseHistory.d.ts.map +0 -1
  657. package/lib/components/widgets/CaseHistory/CaseHistory.js.map +0 -1
  658. package/lib/components/widgets/CaseHistory/index.d.ts.map +0 -1
  659. package/lib/components/widgets/CaseHistory/index.js.map +0 -1
  660. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +0 -1
  661. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +0 -1
  662. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/index.d.ts.map +0 -1
  663. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/index.js.map +0 -1
  664. package/lib/components/widgets/FileUtility/FileUtility/FileUtility.d.ts.map +0 -1
  665. package/lib/components/widgets/FileUtility/FileUtility/FileUtility.js.map +0 -1
  666. package/lib/components/widgets/FileUtility/FileUtility/index.d.ts.map +0 -1
  667. package/lib/components/widgets/FileUtility/FileUtility/index.js.map +0 -1
  668. package/lib/components/widgets/Followers/Followers.d.ts.map +0 -1
  669. package/lib/components/widgets/Followers/Followers.js.map +0 -1
  670. package/lib/components/widgets/Followers/index.d.ts.map +0 -1
  671. package/lib/components/widgets/Followers/index.js.map +0 -1
  672. package/lib/components/widgets/SummaryItem/SummaryItem.d.ts.map +0 -1
  673. package/lib/components/widgets/SummaryItem/SummaryItem.js.map +0 -1
  674. package/lib/components/widgets/SummaryItem/index.d.ts.map +0 -1
  675. package/lib/components/widgets/SummaryItem/index.js.map +0 -1
  676. package/lib/components/widgets/SummaryList/SummaryList.d.ts.map +0 -1
  677. package/lib/components/widgets/SummaryList/SummaryList.js.map +0 -1
  678. package/lib/components/widgets/SummaryList/index.d.ts.map +0 -1
  679. package/lib/components/widgets/SummaryList/index.js.map +0 -1
  680. package/lib/components/widgets/ToDo/ToDo.d.ts.map +0 -1
  681. package/lib/components/widgets/ToDo/ToDo.js.map +0 -1
  682. package/lib/components/widgets/ToDo/index.d.ts.map +0 -1
  683. package/lib/components/widgets/ToDo/index.js.map +0 -1
  684. /package/lib/components/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/CaseSummaryFields.css +0 -0
  685. /package/lib/components/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/index.d.ts +0 -0
  686. /package/lib/components/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/index.js +0 -0
  687. /package/lib/components/{designSystemExtensions → designSystemExtension}/DetailsFields/DetailsFields.d.ts +0 -0
  688. /package/lib/components/{designSystemExtensions → designSystemExtension}/DetailsFields/index.d.ts +0 -0
  689. /package/lib/components/{designSystemExtensions → designSystemExtension}/DetailsFields/index.js +0 -0
  690. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/FieldGroup.d.ts +0 -0
  691. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/FieldGroup.js +0 -0
  692. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/index.d.ts +0 -0
  693. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/index.js +0 -0
  694. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/FieldGroupList.d.ts +0 -0
  695. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/FieldGroupList.js +0 -0
  696. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/index.d.ts +0 -0
  697. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/index.js +0 -0
  698. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/FieldValueList.d.ts +0 -0
  699. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/FieldValueList.js +0 -0
  700. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/index.d.ts +0 -0
  701. /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/index.js +0 -0
  702. /package/lib/components/{designSystemExtensions → designSystemExtension}/Operator/Operator.d.ts +0 -0
  703. /package/lib/components/{designSystemExtensions → designSystemExtension}/Operator/index.d.ts +0 -0
  704. /package/lib/components/{designSystemExtensions → designSystemExtension}/Operator/index.js +0 -0
  705. /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/Pulse.d.ts +0 -0
  706. /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/Pulse.js +0 -0
  707. /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/index.d.ts +0 -0
  708. /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/index.js +0 -0
  709. /package/lib/components/{forms → field}/AutoComplete/AutoComplete.d.ts +0 -0
  710. /package/lib/components/{forms → field}/AutoComplete/index.d.ts +0 -0
  711. /package/lib/components/{forms → field}/AutoComplete/index.js +0 -0
  712. /package/lib/components/{forms → field}/CancelAlert/CancelAlert.css +0 -0
  713. /package/lib/components/{forms → field}/CancelAlert/CancelAlert.d.ts +0 -0
  714. /package/lib/components/{forms → field}/CancelAlert/CancelAlert.js +0 -0
  715. /package/lib/components/{forms → field}/CancelAlert/index.d.ts +0 -0
  716. /package/lib/components/{forms → field}/CancelAlert/index.js +0 -0
  717. /package/lib/components/{forms → field}/Checkbox/Checkbox.d.ts +0 -0
  718. /package/lib/components/{forms → field}/Checkbox/index.d.ts +0 -0
  719. /package/lib/components/{forms → field}/Checkbox/index.js +0 -0
  720. /package/lib/components/{forms → field}/Currency/Currency.d.ts +0 -0
  721. /package/lib/components/{forms → field}/Currency/index.d.ts +0 -0
  722. /package/lib/components/{forms → field}/Currency/index.js +0 -0
  723. /package/lib/components/{forms → field}/Date/Date.d.ts +0 -0
  724. /package/lib/components/{forms → field}/Date/index.d.ts +0 -0
  725. /package/lib/components/{forms → field}/Date/index.js +0 -0
  726. /package/lib/components/{forms → field}/DateTime/DateTime.d.ts +0 -0
  727. /package/lib/components/{forms → field}/DateTime/index.d.ts +0 -0
  728. /package/lib/components/{forms → field}/DateTime/index.js +0 -0
  729. /package/lib/components/{forms → field}/Decimal/Decimal.d.ts +0 -0
  730. /package/lib/components/{forms → field}/Decimal/index.d.ts +0 -0
  731. /package/lib/components/{forms → field}/Decimal/index.js +0 -0
  732. /package/lib/components/{forms → field}/Dropdown/Dropdown.d.ts +0 -0
  733. /package/lib/components/{forms → field}/Dropdown/index.d.ts +0 -0
  734. /package/lib/components/{forms → field}/Dropdown/index.js +0 -0
  735. /package/lib/components/{forms → field}/Email/Email.d.ts +0 -0
  736. /package/lib/components/{forms → field}/Email/index.d.ts +0 -0
  737. /package/lib/components/{forms → field}/Email/index.js +0 -0
  738. /package/lib/components/{forms → field}/Integer/Integer.d.ts +0 -0
  739. /package/lib/components/{forms → field}/Integer/index.d.ts +0 -0
  740. /package/lib/components/{forms → field}/Integer/index.js +0 -0
  741. /package/lib/components/{forms → field}/Percentage/Percentage.d.ts +0 -0
  742. /package/lib/components/{forms → field}/Percentage/index.d.ts +0 -0
  743. /package/lib/components/{forms → field}/Percentage/index.js +0 -0
  744. /package/lib/components/{forms → field}/Phone/Phone.d.ts +0 -0
  745. /package/lib/components/{forms → field}/Phone/index.d.ts +0 -0
  746. /package/lib/components/{forms → field}/Phone/index.js +0 -0
  747. /package/lib/components/{forms → field}/RadioButtons/RadioButtons.d.ts +0 -0
  748. /package/lib/components/{forms → field}/RadioButtons/index.d.ts +0 -0
  749. /package/lib/components/{forms → field}/RadioButtons/index.js +0 -0
  750. /package/lib/components/{forms → field}/SemanticLink/SemanticLink.d.ts +0 -0
  751. /package/lib/components/{forms → field}/SemanticLink/SemanticLink.js +0 -0
  752. /package/lib/components/{forms → field}/SemanticLink/index.d.ts +0 -0
  753. /package/lib/components/{forms → field}/SemanticLink/index.js +0 -0
  754. /package/lib/components/{forms → field}/SemanticLink/utils.d.ts +0 -0
  755. /package/lib/components/{forms → field}/SemanticLink/utils.js +0 -0
  756. /package/lib/components/{forms → field}/TextArea/TextArea.d.ts +0 -0
  757. /package/lib/components/{forms → field}/TextArea/index.d.ts +0 -0
  758. /package/lib/components/{forms → field}/TextArea/index.js +0 -0
  759. /package/lib/components/{forms → field}/TextContent/TextContent.d.ts +0 -0
  760. /package/lib/components/{forms → field}/TextContent/TextContent.js +0 -0
  761. /package/lib/components/{forms → field}/TextContent/index.d.ts +0 -0
  762. /package/lib/components/{forms → field}/TextContent/index.js +0 -0
  763. /package/lib/components/{forms → field}/TextInput/TextInput.d.ts +0 -0
  764. /package/lib/components/{forms → field}/TextInput/index.d.ts +0 -0
  765. /package/lib/components/{forms → field}/TextInput/index.js +0 -0
  766. /package/lib/components/{forms → field}/Time/Time.d.ts +0 -0
  767. /package/lib/components/{forms → field}/Time/index.d.ts +0 -0
  768. /package/lib/components/{forms → field}/Time/index.js +0 -0
  769. /package/lib/components/{forms → field}/URL/URL.d.ts +0 -0
  770. /package/lib/components/{forms → field}/URL/index.d.ts +0 -0
  771. /package/lib/components/{forms → field}/URL/index.js +0 -0
  772. /package/lib/components/{forms → field}/UserReference/UserReference.d.ts +0 -0
  773. /package/lib/components/{forms → field}/UserReference/UserReference.js +0 -0
  774. /package/lib/components/{forms → field}/UserReference/UserReferenceUtils.d.ts +0 -0
  775. /package/lib/components/{forms → field}/UserReference/UserReferenceUtils.js +0 -0
  776. /package/lib/components/{forms → field}/UserReference/index.d.ts +0 -0
  777. /package/lib/components/{forms → field}/UserReference/index.js +0 -0
  778. /package/lib/components/{templates/SimpleTable → helpers}/simpleTableHelpers.d.ts +0 -0
  779. /package/lib/components/{templates → template}/AppShell/AppShell.css +0 -0
  780. /package/lib/components/{templates → template}/AppShell/AppShell.d.ts +0 -0
  781. /package/lib/components/{templates → template}/AppShell/AppShell.js +0 -0
  782. /package/lib/components/{templates → template}/AppShell/index.d.ts +0 -0
  783. /package/lib/components/{templates → template}/AppShell/index.js +0 -0
  784. /package/lib/components/{templates → template}/CaseSummary/CaseSummary.d.ts +0 -0
  785. /package/lib/components/{templates → template}/CaseSummary/index.d.ts +0 -0
  786. /package/lib/components/{templates → template}/CaseSummary/index.js +0 -0
  787. /package/lib/components/{templates → template}/CaseView/CaseView.d.ts +0 -0
  788. /package/lib/components/{templates → template}/CaseView/CaseView.js +0 -0
  789. /package/lib/components/{templates → template}/CaseView/index.d.ts +0 -0
  790. /package/lib/components/{templates → template}/CaseView/index.js +0 -0
  791. /package/lib/components/{templates → template}/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +0 -0
  792. /package/lib/components/{templates → template}/CaseViewActionsMenu/CaseViewActionsMenu.js +0 -0
  793. /package/lib/components/{templates → template}/CaseViewActionsMenu/index.d.ts +0 -0
  794. /package/lib/components/{templates → template}/CaseViewActionsMenu/index.js +0 -0
  795. /package/lib/components/{templates → template}/DataReference/DataReference.d.ts +0 -0
  796. /package/lib/components/{templates → template}/DataReference/DataReference.js +0 -0
  797. /package/lib/components/{templates → template}/DataReference/index.d.ts +0 -0
  798. /package/lib/components/{templates → template}/DataReference/index.js +0 -0
  799. /package/lib/components/{templates → template}/DefaultForm/DefaultForm.css +0 -0
  800. /package/lib/components/{templates → template}/DefaultForm/DefaultForm.d.ts +0 -0
  801. /package/lib/components/{templates → template}/DefaultForm/DefaultForm.js +0 -0
  802. /package/lib/components/{templates → template}/DefaultForm/index.d.ts +0 -0
  803. /package/lib/components/{templates → template}/DefaultForm/index.js +0 -0
  804. /package/lib/components/{templates → template}/Details/Details/Details.d.ts +0 -0
  805. /package/lib/components/{templates → template}/Details/Details/index.d.ts +0 -0
  806. /package/lib/components/{templates → template}/Details/Details/index.js +0 -0
  807. /package/lib/components/{templates → template}/Details/DetailsSubTabs/DetailsSubTabs.d.ts +0 -0
  808. /package/lib/components/{templates → template}/Details/DetailsSubTabs/DetailsSubTabs.js +0 -0
  809. /package/lib/components/{templates → template}/Details/DetailsSubTabs/index.d.ts +0 -0
  810. /package/lib/components/{templates → template}/Details/DetailsSubTabs/index.js +0 -0
  811. /package/lib/components/{templates → template}/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +0 -0
  812. /package/lib/components/{templates → template}/Details/DetailsThreeColumn/index.d.ts +0 -0
  813. /package/lib/components/{templates → template}/Details/DetailsThreeColumn/index.js +0 -0
  814. /package/lib/components/{templates → template}/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +0 -0
  815. /package/lib/components/{templates → template}/Details/DetailsTwoColumn/index.d.ts +0 -0
  816. /package/lib/components/{templates → template}/Details/DetailsTwoColumn/index.js +0 -0
  817. /package/lib/components/{templates → template}/FieldGroupTemplate/FieldGroupTemplate.d.ts +0 -0
  818. /package/lib/components/{templates → template}/FieldGroupTemplate/index.d.ts +0 -0
  819. /package/lib/components/{templates → template}/FieldGroupTemplate/index.js +0 -0
  820. /package/lib/components/{templates → template}/InlineDashboard/InlineDashboard.d.ts +0 -0
  821. /package/lib/components/{templates → template}/InlineDashboard/InlineDashboard.js +0 -0
  822. /package/lib/components/{templates → template}/InlineDashboard/index.d.ts +0 -0
  823. /package/lib/components/{templates → template}/InlineDashboard/index.js +0 -0
  824. /package/lib/components/{templates → template}/InlineDashboardPage/InlineDashboardPage.d.ts +0 -0
  825. /package/lib/components/{templates → template}/InlineDashboardPage/InlineDashboardPage.js +0 -0
  826. /package/lib/components/{templates → template}/InlineDashboardPage/index.d.ts +0 -0
  827. /package/lib/components/{templates → template}/InlineDashboardPage/index.js +0 -0
  828. /package/lib/components/{templates → template}/ListPage/ListPage.d.ts +0 -0
  829. /package/lib/components/{templates → template}/ListPage/ListPage.js +0 -0
  830. /package/lib/components/{templates → template}/ListPage/index.d.ts +0 -0
  831. /package/lib/components/{templates → template}/ListPage/index.js +0 -0
  832. /package/lib/components/{templates → template}/ListView/ListView.css +0 -0
  833. /package/lib/components/{templates → template}/ListView/ListView.d.ts +0 -0
  834. /package/lib/components/{templates → template}/ListView/index.d.ts +0 -0
  835. /package/lib/components/{templates → template}/ListView/index.js +0 -0
  836. /package/lib/components/{templates → template}/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +0 -0
  837. /package/lib/components/{templates → template}/MultiReferenceReadOnly/MultiReferenceReadOnly.js +0 -0
  838. /package/lib/components/{templates → template}/MultiReferenceReadOnly/index.d.ts +0 -0
  839. /package/lib/components/{templates → template}/MultiReferenceReadOnly/index.js +0 -0
  840. /package/lib/components/{templates → template}/NarrowWide/NarrowWide/NarrowWide.css +0 -0
  841. /package/lib/components/{templates → template}/NarrowWide/NarrowWide/NarrowWide.d.ts +0 -0
  842. /package/lib/components/{templates → template}/NarrowWide/NarrowWide/NarrowWide.js +0 -0
  843. /package/lib/components/{templates → template}/NarrowWide/NarrowWide/index.d.ts +0 -0
  844. /package/lib/components/{templates → template}/NarrowWide/NarrowWide/index.js +0 -0
  845. /package/lib/components/{templates → template}/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +0 -0
  846. /package/lib/components/{templates → template}/NarrowWide/NarrowWideDetails/index.d.ts +0 -0
  847. /package/lib/components/{templates → template}/NarrowWide/NarrowWideDetails/index.js +0 -0
  848. /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -0
  849. /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +0 -0
  850. /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.js +0 -0
  851. /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/index.d.ts +0 -0
  852. /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/index.js +0 -0
  853. /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +0 -0
  854. /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/NarrowWidePage.js +0 -0
  855. /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/index.d.ts +0 -0
  856. /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/index.js +0 -0
  857. /package/lib/components/{templates → template}/OneColumn/OneColumn/OneColumn.d.ts +0 -0
  858. /package/lib/components/{templates → template}/OneColumn/OneColumn/OneColumn.js +0 -0
  859. /package/lib/components/{templates → template}/OneColumn/OneColumn/index.d.ts +0 -0
  860. /package/lib/components/{templates → template}/OneColumn/OneColumn/index.js +0 -0
  861. /package/lib/components/{templates → template}/OneColumn/OneColumnPage/OneColumnPage.d.ts +0 -0
  862. /package/lib/components/{templates → template}/OneColumn/OneColumnPage/OneColumnPage.js +0 -0
  863. /package/lib/components/{templates → template}/OneColumn/OneColumnPage/index.d.ts +0 -0
  864. /package/lib/components/{templates → template}/OneColumn/OneColumnPage/index.js +0 -0
  865. /package/lib/components/{templates → template}/OneColumn/OneColumnTab/OneColumnTab.d.ts +0 -0
  866. /package/lib/components/{templates → template}/OneColumn/OneColumnTab/OneColumnTab.js +0 -0
  867. /package/lib/components/{templates → template}/OneColumn/OneColumnTab/index.d.ts +0 -0
  868. /package/lib/components/{templates → template}/OneColumn/OneColumnTab/index.js +0 -0
  869. /package/lib/components/{templates → template}/PromotedFilters/PromotedFilters.css +0 -0
  870. /package/lib/components/{templates → template}/PromotedFilters/index.d.ts +0 -0
  871. /package/lib/components/{templates → template}/PromotedFilters/index.js +0 -0
  872. /package/lib/components/{templates → template}/SimpleTable/SimpleTable/SimpleTable.d.ts +0 -0
  873. /package/lib/components/{templates → template}/SimpleTable/SimpleTable/index.d.ts +0 -0
  874. /package/lib/components/{templates → template}/SimpleTable/SimpleTable/index.js +0 -0
  875. /package/lib/components/{templates → template}/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +0 -0
  876. /package/lib/components/{templates → template}/SimpleTable/SimpleTableManual/index.d.ts +0 -0
  877. /package/lib/components/{templates → template}/SimpleTable/SimpleTableManual/index.js +0 -0
  878. /package/lib/components/{templates → template}/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +0 -0
  879. /package/lib/components/{templates → template}/SimpleTable/SimpleTableSelect/index.d.ts +0 -0
  880. /package/lib/components/{templates → template}/SimpleTable/SimpleTableSelect/index.js +0 -0
  881. /package/lib/components/{templates → template}/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +0 -0
  882. /package/lib/components/{templates → template}/SingleReferenceReadOnly/SingleReferenceReadOnly.js +0 -0
  883. /package/lib/components/{templates → template}/SingleReferenceReadOnly/index.d.ts +0 -0
  884. /package/lib/components/{templates → template}/SingleReferenceReadOnly/index.js +0 -0
  885. /package/lib/components/{templates → template}/SubTabs/SubTabs.d.ts +0 -0
  886. /package/lib/components/{templates → template}/SubTabs/SubTabs.js +0 -0
  887. /package/lib/components/{templates → template}/SubTabs/index.d.ts +0 -0
  888. /package/lib/components/{templates → template}/SubTabs/index.js +0 -0
  889. /package/lib/components/{templates → template}/SubTabs/tabUtils.d.ts +0 -0
  890. /package/lib/components/{templates → template}/SubTabs/tabUtils.js +0 -0
  891. /package/lib/components/{templates → template}/TwoColumn/TwoColumn/TwoColumn.css +0 -0
  892. /package/lib/components/{templates → template}/TwoColumn/TwoColumn/TwoColumn.d.ts +0 -0
  893. /package/lib/components/{templates → template}/TwoColumn/TwoColumn/TwoColumn.js +0 -0
  894. /package/lib/components/{templates → template}/TwoColumn/TwoColumn/index.d.ts +0 -0
  895. /package/lib/components/{templates → template}/TwoColumn/TwoColumn/index.js +0 -0
  896. /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +0 -0
  897. /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/TwoColumnPage.js +0 -0
  898. /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/index.d.ts +0 -0
  899. /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/index.js +0 -0
  900. /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.css +0 -0
  901. /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +0 -0
  902. /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.js +0 -0
  903. /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/index.d.ts +0 -0
  904. /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/index.js +0 -0
  905. /package/lib/components/{templates → template}/WideNarrow/WideNarrow/WideNarrow.css +0 -0
  906. /package/lib/components/{templates → template}/WideNarrow/WideNarrow/WideNarrow.d.ts +0 -0
  907. /package/lib/components/{templates → template}/WideNarrow/WideNarrow/WideNarrow.js +0 -0
  908. /package/lib/components/{templates → template}/WideNarrow/WideNarrow/index.d.ts +0 -0
  909. /package/lib/components/{templates → template}/WideNarrow/WideNarrow/index.js +0 -0
  910. /package/lib/components/{templates → template}/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +0 -0
  911. /package/lib/components/{templates → template}/WideNarrow/WideNarrowDetails/index.d.ts +0 -0
  912. /package/lib/components/{templates → template}/WideNarrow/WideNarrowDetails/index.js +0 -0
  913. /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -0
  914. /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +0 -0
  915. /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.js +0 -0
  916. /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/index.d.ts +0 -0
  917. /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/index.js +0 -0
  918. /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +0 -0
  919. /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/WideNarrowPage.js +0 -0
  920. /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/index.d.ts +0 -0
  921. /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/index.js +0 -0
  922. /package/lib/components/{templates → template}/utils.d.ts +0 -0
  923. /package/lib/components/{widgets → widget}/AppAnnouncement/AppAnnouncement.d.ts +0 -0
  924. /package/lib/components/{widgets → widget}/AppAnnouncement/AppAnnouncement.js +0 -0
  925. /package/lib/components/{widgets → widget}/AppAnnouncement/index.d.ts +0 -0
  926. /package/lib/components/{widgets → widget}/AppAnnouncement/index.js +0 -0
  927. /package/lib/components/{widgets → widget}/Attachment/Attachment.css +0 -0
  928. /package/lib/components/{widgets → widget}/Attachment/Attachment.d.ts +0 -0
  929. /package/lib/components/{widgets → widget}/Attachment/index.d.ts +0 -0
  930. /package/lib/components/{widgets → widget}/Attachment/index.js +0 -0
  931. /package/lib/components/{widgets → widget}/CaseHistory/CaseHistory.d.ts +0 -0
  932. /package/lib/components/{widgets → widget}/CaseHistory/CaseHistory.js +0 -0
  933. /package/lib/components/{widgets → widget}/CaseHistory/index.d.ts +0 -0
  934. /package/lib/components/{widgets → widget}/CaseHistory/index.js +0 -0
  935. /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -0
  936. /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +0 -0
  937. /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +0 -0
  938. /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/index.d.ts +0 -0
  939. /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/index.js +0 -0
  940. /package/lib/components/{widgets → widget}/FileUtility/FileUtility/FileUtility.css +0 -0
  941. /package/lib/components/{widgets → widget}/FileUtility/FileUtility/FileUtility.d.ts +0 -0
  942. /package/lib/components/{widgets → widget}/FileUtility/FileUtility/FileUtility.js +0 -0
  943. /package/lib/components/{widgets → widget}/FileUtility/FileUtility/index.d.ts +0 -0
  944. /package/lib/components/{widgets → widget}/FileUtility/FileUtility/index.js +0 -0
  945. /package/lib/components/{widgets → widget}/Followers/Followers.d.ts +0 -0
  946. /package/lib/components/{widgets → widget}/Followers/Followers.js +0 -0
  947. /package/lib/components/{widgets → widget}/Followers/index.d.ts +0 -0
  948. /package/lib/components/{widgets → widget}/Followers/index.js +0 -0
  949. /package/lib/components/{widgets → widget}/SummaryItem/SummaryItem.css +0 -0
  950. /package/lib/components/{widgets → widget}/SummaryItem/SummaryItem.d.ts +0 -0
  951. /package/lib/components/{widgets → widget}/SummaryItem/SummaryItem.js +0 -0
  952. /package/lib/components/{widgets → widget}/SummaryItem/index.d.ts +0 -0
  953. /package/lib/components/{widgets → widget}/SummaryItem/index.js +0 -0
  954. /package/lib/components/{widgets → widget}/SummaryList/SummaryList.d.ts +0 -0
  955. /package/lib/components/{widgets → widget}/SummaryList/SummaryList.js +0 -0
  956. /package/lib/components/{widgets → widget}/SummaryList/index.d.ts +0 -0
  957. /package/lib/components/{widgets → widget}/SummaryList/index.js +0 -0
  958. /package/lib/components/{widgets → widget}/ToDo/ToDo.css +0 -0
  959. /package/lib/components/{widgets → widget}/ToDo/ToDo.d.ts +0 -0
  960. /package/lib/components/{widgets → widget}/ToDo/ToDo.js +0 -0
  961. /package/lib/components/{widgets → widget}/ToDo/index.d.ts +0 -0
  962. /package/lib/components/{widgets → widget}/ToDo/index.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"FlowContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,8BAA8B;AAC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AAC,OAAO,EAAC,SAAS,IAAE,eAAe,CAAc,CAAC,CAAC,CAAC,IAAI;wBAC9F,oBAAC,uBAAuB,IAAC,KAAK,EAAE,UAAU;4BACxC,oBAAC,UAAU,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,IACnD,oBAAoB,CACV,CACW,CACrB;YACT,CAAC;gBACD;oBACE,oBAAC,IAAI,IAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EACtF,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EACxE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAS,CAC9C;QACR,CAAC;YACD,6BAAK,SAAS,EAAE,OAAO,CAAC,KAAK;gBAC3B,oBAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,IAAE,YAAY,CAAS,CAC5C,CAEJ,CACP,CAAA;AACH,CAAC;AAED,aAAa,CAAC,YAAY,GAAG;IAC3B,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,EAAE;IACR,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,aAAa,CAAC,SAAS,GAAG;IACxB,sDAAsD;IACtD,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,sDAAsD;IACtD,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;IAC9C,sDAAsD;IACtD,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["/* eslint-disable no-nested-ternary */\n/* eslint-disable camelcase */\nimport React, { useState, useEffect, useContext, createElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Card, CardHeader, Avatar, Typography } from \"@material-ui/core\";\nimport { Utils } from '../../../helpers/utils';\nimport { Alert } from '@material-ui/lab';\n\nimport Assignment from '../../Assignment';\nimport ToDo from \"../../../widgets/ToDo\";\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport StoreContext from \"../../../../bridge/Context/StoreContext\";\nimport DayjsUtils from \"@date-io/dayjs\";\nimport { MuiPickersUtilsProvider } from \"@material-ui/pickers\";\n\nimport { addContainerItem, getToDoAssignments } from './helpers';\n\ndeclare const PCore;\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n paddingRight: theme.spacing(2),\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1.5),\n paddingBottom: theme.spacing(1.5),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n alert: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light),\n }\n}));\n\n\n\nexport default function FlowContainer(props) {\n const pCoreConstants = PCore.getConstants();\n const { TODO } = pCoreConstants;\n const todo_headerText = \"To do\";\n\n const { getPConnect, routingInfo } = props;\n\n const {displayOnlyFA} = useContext(StoreContext);\n\n const thePConn = getPConnect();\n\n // const [init, setInit] = useState(true);\n // const [fcState, setFCState] = useState({ hasError: false });\n const [arNewChildren, setArNewChildren] = useState<Array<any>>(thePConn.getChildren());\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n\n const [todo_showTodo, setShowTodo] = useState(false);\n const [todo_caseInfoID, setCaseInfoID] = useState(\"\");\n const [todo_showTodoList, setShowTodoList] = useState(false);\n const [todo_datasource, setTodoDatasource] = useState({});\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [todo_context, setTodoContext] = useState(\"\");\n\n\n const [caseMessages, setCaseMessages] = useState(\"\");\n const [bHasCaseMessages, setHasCaseMessages] = useState(false);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [checkSvg, setCheckSvg] = useState(\"\");\n\n\n const [itemKey, setItemKey] = useState(\"\");\n const [containerName, setContainerName] = useState(\"\");\n const [buildName, setBuildName] = useState(\"\");\n\n const classes = useStyles();\n\n function initContainer() {\n\n const ourPConn = getPConnect();\n const containerMgr = ourPConn.getContainerManager();\n const baseContext = ourPConn.getContextName();\n const theContainerName = ourPConn.getContainerName();\n const containerType = \"single\";\n\n const flowContainerTarget = `${baseContext}/${theContainerName}`;\n const isContainerItemAvailable = PCore.getContainerUtils().getActiveContainerItemName(\n flowContainerTarget\n );\n\n window.sessionStorage.setItem(\"okToInitFlowContainer\", \"false\");\n\n if (!isContainerItemAvailable) {\n containerMgr.initializeContainers({\n type: containerType\n });\n\n // updated for 8.7 - 30-Mar-2022\n addContainerItem(ourPConn);\n }\n }\n\n\n function getBuildName(): string {\n const ourPConn = getPConnect();\n\n // let { getPConnect, name } = this.pConn$.pConn;\n const context = ourPConn.getContextName();\n let viewContainerName = ourPConn.getContainerName();\n\n if (!viewContainerName) viewContainerName = \"\";\n return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n\n function getTodoVisibility() {\n const caseViewMode = getPConnect().getValue(\"context_data.caseViewMode\");\n if (caseViewMode && caseViewMode === \"review\") {\n return true;\n }\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (caseViewMode && caseViewMode === \"perform\") {\n return false;\n }\n\n return true;\n }\n\n\n function initComponent(bLoadChildren: boolean) {\n\n const ourPConn = getPConnect();\n\n // when true, update arChildren from pConn, otherwise, arChilren will be updated in updateSelf()\n if (bLoadChildren) {\n setArNewChildren(ourPConn.getChildren());\n }\n\n // debugging/investigation help\n // console.log(`${ourPConn.getComponentName()}: children update for main draw`);\n\n // const oData = ourPConn.getDataObject();\n\n // const activeActionLabel = \"\";\n // const child0_getPConnect = arNewChildren[0].getPConnect();\n\n // this.templateName$ = this.configProps$[\"template\"];\n\n // debugger;\n setShowTodo(getTodoVisibility());\n\n // create pointers to functions\n // const containerMgr = ourPConn.getContainerManager();\n // const actionsAPI = thePConn.getActionsApi();\n const baseContext = ourPConn.getContextName();\n const acName = ourPConn.getContainerName();\n\n // for now, in general this should be overridden by updateSelf(), and not be blank\n if (itemKey === \"\") {\n // debugger;\n setItemKey(baseContext.concat(\"/\").concat(acName));\n }\n\n\n ourPConn.isBoundToState();\n\n\n // inside\n // get fist kid, get the name and displa\n // pass first kid to a view container, which will disperse it to a view which will use one column, two column, etc.\n const oWorkItem = arNewChildren[0].getPConnect(); // child0_getPConnect;\n const oWorkData = oWorkItem.getDataObject();\n\n if (bLoadChildren && oWorkData) {\n // debugger;\n setContainerName(oWorkData.caseInfo.assignments[0].name);\n }\n\n // debugger;\n setBuildName(getBuildName());\n\n }\n\n\n useEffect(() => {\n // from WC SDK connectedCallback (mount)\n initComponent(true);\n initContainer();\n }, []);\n\n\n function isCaseWideLocalAction() {\n const ourPConn = getPConnect();\n\n const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID);\n const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS);\n let bCaseWideAction = false;\n if (caseActions && actionID) {\n const actionObj = caseActions.find(\n (caseAction) => caseAction.ID === actionID\n );\n if (actionObj) {\n bCaseWideAction = actionObj.type === \"Case\";\n }\n }\n return bCaseWideAction;\n }\n\n\n function hasChildCaseAssignments() {\n const ourPConn = getPConnect();\n\n const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS);\n // const allAssignments = [];\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (childCases && childCases.length > 0) {\n return true;\n }\n return false;\n }\n\n\n function hasAssignments() {\n const ourPConn = getPConnect();\n\n let bHasAssignments = false;\n const assignmentsList: Array<any> = ourPConn.getValue(pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS);\n const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();\n // 8.7 includes assignments in Assignments List that may be assigned to\n // a different operator. So, see if there are any assignments for\n // the current operator\n let bAssignmentsForThisOperator = false;\n\n // Bail out if there isn't an assignmentsList\n if (!assignmentsList) {\n return bHasAssignments;\n }\n\n for (const assignment of assignmentsList) {\n if (assignment[\"assigneeInfo\"][\"ID\"] === thisOperator) {\n bAssignmentsForThisOperator = true;\n }\n }\n\n const bHasChildCaseAssignments = hasChildCaseAssignments();\n\n if (\n bAssignmentsForThisOperator ||\n bHasChildCaseAssignments ||\n isCaseWideLocalAction()\n ) {\n bHasAssignments = true;\n }\n\n return bHasAssignments;\n }\n\n\n\n function getActiveViewLabel() {\n const ourPConn = getPConnect();\n\n let activeActionLabel = \"\";\n\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n\n const caseActions = ourPConn.getValue(CASE_CONSTS.CASE_INFO_ACTIONS);\n const activeActionID = ourPConn.getValue(CASE_CONSTS.ACTIVE_ACTION_ID);\n const activeAction = caseActions.find(\n (action) => action.ID === activeActionID\n );\n if (activeAction) {\n activeActionLabel = activeAction.name;\n }\n return activeActionLabel;\n }\n\n\n // From WC SDK updateSelf - so do this in useEffect that's run only when the props change...\n\n useEffect(() => {\n const localPConn = arNewChildren[0].getPConnect();\n\n setBuildName(getBuildName());\n\n // routingInfo was added as component prop in populateAdditionalProps\n // let routingInfo = this.getComponentProp(\"routingInfo\");\n\n let loadingInfo: any;\n try {\n loadingInfo = thePConn.getLoadingStatus();\n }\n catch (ex) {\n // eslint-disable-next-line no-console\n console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);\n }\n\n // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());\n\n if (!loadingInfo) {\n // turn off spinner\n // this.psService.sendMessage(false);\n }\n\n const caseViewMode = thePConn.getValue(\"context_data.caseViewMode\");\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n if (caseViewMode && caseViewMode === \"review\") {\n setTimeout(() => {\n // updated for 8.7 - 30-Mar-2022\n const todoAssignments = getToDoAssignments(thePConn);\n if (todoAssignments && todoAssignments.length > 0) {\n setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID));\n setTodoDatasource({ source: todoAssignments });\n }\n setShowTodo(true);\n setShowTodoList(false);\n }, 100);\n\n // in React, when cancel is called, somehow the constructor for flowContainer is called which\n // does init/add of containers. This mimics that\n initContainer();\n }\n else if (caseViewMode && caseViewMode === \"perform\") {\n // perform\n // debugger;\n setShowTodo(false);\n\n // this is different than Angular SDK, as we need to initContainer if root container reloaded\n if (window.sessionStorage.getItem(\"okToInitFlowContainer\") === \"true\") {\n initContainer();\n }\n }\n\n // if have caseMessage show message and end\n const theCaseMessages = thePConn.getValue(\"caseMessages\");\n\n if (theCaseMessages || !hasAssignments()) {\n\n // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.\n // So, if we get here and caseMessages$ is empty, use default value in DX API response\n setCaseMessages(theCaseMessages || \"Thank you! The next step in this case has been routed appropriately.\");\n setHasCaseMessages(true);\n\n\n // publish this \"assignmentFinished\" for mashup, need to get approved as a standard\n PCore.getPubSubUtils().publish(\n \"assignmentFinished\");\n\n\n // debugger;\n setCheckSvg(Utils.getImageSrc(\"check\", PCore.getAssetLoader().getStaticServerUrl()));\n return;\n }\n else {\n // debugger;\n setHasCaseMessages(false);\n }\n\n\n // this check in routingInfo, mimic React to check and get the internals of the\n // flowContainer and force updates to pConnect/redux\n if (routingInfo && loadingInfo !== undefined) {\n\n // debugging/investigation help\n // console.log(`${thePConn.getComponentName()}: >>routingInfo: ${JSON.stringify(routingInfo)}`);\n\n const currentOrder = routingInfo.accessedOrder;\n const currentItems = routingInfo.items;\n const type = routingInfo.type;\n if (currentOrder && currentItems) { // JA - making more similar to React version\n const key = currentOrder[currentOrder.length - 1];\n\n // save off itemKey to be used for finishAssignment, etc.\n // debugger;\n setItemKey(key);\n\n if (currentOrder.length > 0 &&\n currentItems[key] &&\n currentItems[key].view &&\n type === \"single\" &&\n !Utils.isEmptyObject(currentItems[key].view)) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n\n config[\"options\"] = {\n context: currentItem.context,\n pageReference: context || localPConn.getPageReference(),\n hasForm: true,\n isFlowContainer: true,\n containerName: localPConn.getContainerName(),\n containerItemName: key,\n parentPageReference: localPConn.getPageReference()\n };\n\n const configObject = PCore.createPConnect(config);\n\n // Since we're setting an array, need to add in an appropriate key\n // to remove React warning.\n configObject[\"key\"] = config[\"options\"].parentPageReference;\n\n // keep track of these changes\n const theNewChildren: Array<Object> = [];\n theNewChildren.push(configObject);\n setArNewChildren(theNewChildren);\n\n // JEA - adapted from Nebula FlowContainer since we want to render children that are React components\n const root = createElement(createPConnectComponent(), configObject);\n setArNewChildrenAsReact([root]);\n\n const oWorkItem = configObject.getPConnect(); // was theNewChildren[0].getPConnect()\n const oWorkData = oWorkItem.getDataObject();\n\n\n // check if have oWorkData, there are times due to timing of state change, when this\n // may not be available\n if (oWorkData) {\n setContainerName(getActiveViewLabel() || oWorkData.caseInfo.assignments[0].name);\n }\n }\n }\n\n }\n\n\n }, [props]);\n\n const caseId = thePConn.getCaseSummary().content.pyID;\n const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments[0].urgency : \"\";\n const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());\n let instructionText = thePConn.getCaseSummary()?.assignments?.[0]?.instructions;\n if (instructionText === undefined) {\n instructionText = \"\";\n }\n\n return (\n <div style={{ textAlign: \"left\" }} id={buildName} className=\"psdk-flow-container-top\">\n {!bHasCaseMessages ?\n (!todo_showTodo) ?\n (!displayOnlyFA) ?\n <Card className={classes.root}>\n <CardHeader\n title={<Typography variant=\"h6\">{containerName}</Typography>}\n subheader={`Task in ${caseId} \\u2022 Priority ${urgency}`}\n avatar={\n <Avatar className={classes.avatar}>\n {operatorInitials}\n </Avatar>\n }\n ></CardHeader>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <Card className={classes.root}>\n <Typography variant=\"h6\">{containerName}</Typography>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <div>\n <ToDo getPConnect={getPConnect} caseInfoID={todo_caseInfoID} datasource={todo_datasource}\n showTodoList={todo_showTodoList} headerText={todo_headerText} type={TODO}\n context={todo_context} itemKey={itemKey}></ToDo>\n </div>\n :\n <div className={classes.alert}>\n <Alert severity=\"success\">{caseMessages}</Alert>\n </div>\n }\n </div>\n )\n}\n\nFlowContainer.defaultProps = {\n children: null,\n getPConnect: null,\n name: \"\",\n routingInfo: null,\n pageMessages: null\n};\n\nFlowContainer.propTypes = {\n // eslint-disable-next-line react/no-unused-prop-types\n children: PropTypes.node,\n getPConnect: PropTypes.func,\n // eslint-disable-next-line react/no-unused-prop-types\n name: PropTypes.string,\n routingInfo: PropTypes.objectOf(PropTypes.any),\n // eslint-disable-next-line react/no-unused-prop-types\n pageMessages: PropTypes.arrayOf(PropTypes.any)\n};\n"]}
1
+ {"version":3,"file":"FlowContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,8BAA8B;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,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AAC,IAAI;wBAC9F,oBAAC,uBAAuB,IAAC,KAAK,EAAE,UAAU;4BACxC,oBAAC,UAAU,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,IACnD,oBAAoB,CACV,CACW,CACrB;YACT,CAAC;gBACD;oBACE,oBAAC,IAAI,IAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EACtF,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EACxE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAS,CAC9C;QACR,CAAC;YACD,6BAAK,SAAS,EAAE,OAAO,CAAC,KAAK;gBAC3B,oBAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,IAAE,YAAY,CAAS,CAC5C,CAEJ,CACP,CAAA;AACH,CAAC;AAED,aAAa,CAAC,YAAY,GAAG;IAC3B,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,EAAE;IACR,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,aAAa,CAAC,SAAS,GAAG;IACxB,sDAAsD;IACtD,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,sDAAsD;IACtD,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;IAC9C,sDAAsD;IACtD,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["/* eslint-disable no-nested-ternary */\n/* eslint-disable camelcase */\nimport React, { useState, useEffect, useContext, createElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Card, CardHeader, Avatar, Typography } from \"@material-ui/core\";\nimport { Utils } from '../../../helpers/utils';\nimport { Alert } from '@material-ui/lab';\n\nimport Assignment from '../../Assignment';\nimport ToDo from \"../../../widget/ToDo\";\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport StoreContext from \"../../../../bridge/Context/StoreContext\";\nimport DayjsUtils from \"@date-io/dayjs\";\nimport { MuiPickersUtilsProvider } from \"@material-ui/pickers\";\n\nimport { addContainerItem, getToDoAssignments } from './helpers';\n\ndeclare const PCore;\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n paddingRight: theme.spacing(2),\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1.5),\n paddingBottom: theme.spacing(1.5),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n alert: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light),\n }\n}));\n\n\n\nexport default function FlowContainer(props) {\n const pCoreConstants = PCore.getConstants();\n const { TODO } = pCoreConstants;\n const todo_headerText = \"To do\";\n\n const { getPConnect, routingInfo } = props;\n\n const {displayOnlyFA} = useContext(StoreContext);\n\n const thePConn = getPConnect();\n\n // const [init, setInit] = useState(true);\n // const [fcState, setFCState] = useState({ hasError: false });\n const [arNewChildren, setArNewChildren] = useState<Array<any>>(thePConn.getChildren());\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n\n const [todo_showTodo, setShowTodo] = useState(false);\n const [todo_caseInfoID, setCaseInfoID] = useState(\"\");\n const [todo_showTodoList, setShowTodoList] = useState(false);\n const [todo_datasource, setTodoDatasource] = useState({});\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [todo_context, setTodoContext] = useState(\"\");\n\n\n const [caseMessages, setCaseMessages] = useState(\"\");\n const [bHasCaseMessages, setHasCaseMessages] = useState(false);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [checkSvg, setCheckSvg] = useState(\"\");\n\n\n const [itemKey, setItemKey] = useState(\"\");\n const [containerName, setContainerName] = useState(\"\");\n const [buildName, setBuildName] = useState(\"\");\n\n const classes = useStyles();\n\n function initContainer() {\n\n const ourPConn = getPConnect();\n const containerMgr = ourPConn.getContainerManager();\n const baseContext = ourPConn.getContextName();\n const theContainerName = ourPConn.getContainerName();\n const containerType = \"single\";\n\n const flowContainerTarget = `${baseContext}/${theContainerName}`;\n const isContainerItemAvailable = PCore.getContainerUtils().getActiveContainerItemName(\n flowContainerTarget\n );\n\n window.sessionStorage.setItem(\"okToInitFlowContainer\", \"false\");\n\n if (!isContainerItemAvailable) {\n containerMgr.initializeContainers({\n type: containerType\n });\n\n // updated for 8.7 - 30-Mar-2022\n addContainerItem(ourPConn);\n }\n }\n\n\n function getBuildName(): string {\n const ourPConn = getPConnect();\n\n // let { getPConnect, name } = this.pConn$.pConn;\n const context = ourPConn.getContextName();\n let viewContainerName = ourPConn.getContainerName();\n\n if (!viewContainerName) viewContainerName = \"\";\n return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n\n function getTodoVisibility() {\n const caseViewMode = getPConnect().getValue(\"context_data.caseViewMode\");\n if (caseViewMode && caseViewMode === \"review\") {\n return true;\n }\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (caseViewMode && caseViewMode === \"perform\") {\n return false;\n }\n\n return true;\n }\n\n\n function initComponent(bLoadChildren: boolean) {\n\n const ourPConn = getPConnect();\n\n // when true, update arChildren from pConn, otherwise, arChilren will be updated in updateSelf()\n if (bLoadChildren) {\n setArNewChildren(ourPConn.getChildren());\n }\n\n // debugging/investigation help\n // console.log(`${ourPConn.getComponentName()}: children update for main draw`);\n\n // const oData = ourPConn.getDataObject();\n\n // const activeActionLabel = \"\";\n // const child0_getPConnect = arNewChildren[0].getPConnect();\n\n // this.templateName$ = this.configProps$[\"template\"];\n\n // debugger;\n setShowTodo(getTodoVisibility());\n\n // create pointers to functions\n // const containerMgr = ourPConn.getContainerManager();\n // const actionsAPI = thePConn.getActionsApi();\n const baseContext = ourPConn.getContextName();\n const acName = ourPConn.getContainerName();\n\n // for now, in general this should be overridden by updateSelf(), and not be blank\n if (itemKey === \"\") {\n // debugger;\n setItemKey(baseContext.concat(\"/\").concat(acName));\n }\n\n\n ourPConn.isBoundToState();\n\n\n // inside\n // get fist kid, get the name and displa\n // pass first kid to a view container, which will disperse it to a view which will use one column, two column, etc.\n const oWorkItem = arNewChildren[0].getPConnect(); // child0_getPConnect;\n const oWorkData = oWorkItem.getDataObject();\n\n if (bLoadChildren && oWorkData) {\n // debugger;\n setContainerName(oWorkData.caseInfo.assignments[0].name);\n }\n\n // debugger;\n setBuildName(getBuildName());\n\n }\n\n\n useEffect(() => {\n // from WC SDK connectedCallback (mount)\n initComponent(true);\n initContainer();\n }, []);\n\n\n function isCaseWideLocalAction() {\n const ourPConn = getPConnect();\n\n const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID);\n const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS);\n let bCaseWideAction = false;\n if (caseActions && actionID) {\n const actionObj = caseActions.find(\n (caseAction) => caseAction.ID === actionID\n );\n if (actionObj) {\n bCaseWideAction = actionObj.type === \"Case\";\n }\n }\n return bCaseWideAction;\n }\n\n\n function hasChildCaseAssignments() {\n const ourPConn = getPConnect();\n\n const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS);\n // const allAssignments = [];\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (childCases && childCases.length > 0) {\n return true;\n }\n return false;\n }\n\n\n function hasAssignments() {\n const ourPConn = getPConnect();\n\n let bHasAssignments = false;\n const assignmentsList: Array<any> = ourPConn.getValue(pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS);\n const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();\n // 8.7 includes assignments in Assignments List that may be assigned to\n // a different operator. So, see if there are any assignments for\n // the current operator\n let bAssignmentsForThisOperator = false;\n\n // Bail out if there isn't an assignmentsList\n if (!assignmentsList) {\n return bHasAssignments;\n }\n\n for (const assignment of assignmentsList) {\n if (assignment[\"assigneeInfo\"][\"ID\"] === thisOperator) {\n bAssignmentsForThisOperator = true;\n }\n }\n\n const bHasChildCaseAssignments = hasChildCaseAssignments();\n\n if (\n bAssignmentsForThisOperator ||\n bHasChildCaseAssignments ||\n isCaseWideLocalAction()\n ) {\n bHasAssignments = true;\n }\n\n return bHasAssignments;\n }\n\n\n\n function getActiveViewLabel() {\n const ourPConn = getPConnect();\n\n let activeActionLabel = \"\";\n\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n\n const caseActions = ourPConn.getValue(CASE_CONSTS.CASE_INFO_ACTIONS);\n const activeActionID = ourPConn.getValue(CASE_CONSTS.ACTIVE_ACTION_ID);\n const activeAction = caseActions.find(\n (action) => action.ID === activeActionID\n );\n if (activeAction) {\n activeActionLabel = activeAction.name;\n }\n return activeActionLabel;\n }\n\n\n // From WC SDK updateSelf - so do this in useEffect that's run only when the props change...\n\n useEffect(() => {\n const localPConn = arNewChildren[0].getPConnect();\n\n setBuildName(getBuildName());\n\n // routingInfo was added as component prop in populateAdditionalProps\n // let routingInfo = this.getComponentProp(\"routingInfo\");\n\n let loadingInfo: any;\n try {\n loadingInfo = thePConn.getLoadingStatus();\n }\n catch (ex) {\n // eslint-disable-next-line no-console\n console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);\n }\n\n // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());\n\n if (!loadingInfo) {\n // turn off spinner\n // this.psService.sendMessage(false);\n }\n\n const caseViewMode = thePConn.getValue(\"context_data.caseViewMode\");\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n if (caseViewMode && caseViewMode === \"review\") {\n setTimeout(() => {\n // updated for 8.7 - 30-Mar-2022\n const todoAssignments = getToDoAssignments(thePConn);\n if (todoAssignments && todoAssignments.length > 0) {\n setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID));\n setTodoDatasource({ source: todoAssignments });\n }\n setShowTodo(true);\n setShowTodoList(false);\n }, 100);\n\n // in React, when cancel is called, somehow the constructor for flowContainer is called which\n // does init/add of containers. This mimics that\n initContainer();\n }\n else if (caseViewMode && caseViewMode === \"perform\") {\n // perform\n // debugger;\n setShowTodo(false);\n\n // this is different than Angular SDK, as we need to initContainer if root container reloaded\n if (window.sessionStorage.getItem(\"okToInitFlowContainer\") === \"true\") {\n initContainer();\n }\n }\n\n // if have caseMessage show message and end\n const theCaseMessages = thePConn.getValue(\"caseMessages\");\n\n if (theCaseMessages || !hasAssignments()) {\n\n // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.\n // So, if we get here and caseMessages$ is empty, use default value in DX API response\n setCaseMessages(theCaseMessages || \"Thank you! The next step in this case has been routed appropriately.\");\n setHasCaseMessages(true);\n\n\n // publish this \"assignmentFinished\" for mashup, need to get approved as a standard\n PCore.getPubSubUtils().publish(\n \"assignmentFinished\");\n\n\n // debugger;\n setCheckSvg(Utils.getImageSrc(\"check\", PCore.getAssetLoader().getStaticServerUrl()));\n return;\n }\n else {\n // debugger;\n setHasCaseMessages(false);\n }\n\n\n // this check in routingInfo, mimic React to check and get the internals of the\n // flowContainer and force updates to pConnect/redux\n if (routingInfo && loadingInfo !== undefined) {\n\n // debugging/investigation help\n // console.log(`${thePConn.getComponentName()}: >>routingInfo: ${JSON.stringify(routingInfo)}`);\n\n const currentOrder = routingInfo.accessedOrder;\n const currentItems = routingInfo.items;\n const type = routingInfo.type;\n if (currentOrder && currentItems) { // JA - making more similar to React version\n const key = currentOrder[currentOrder.length - 1];\n\n // save off itemKey to be used for finishAssignment, etc.\n // debugger;\n setItemKey(key);\n\n if (currentOrder.length > 0 &&\n currentItems[key] &&\n currentItems[key].view &&\n type === \"single\" &&\n !Utils.isEmptyObject(currentItems[key].view)) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n\n config[\"options\"] = {\n context: currentItem.context,\n pageReference: context || localPConn.getPageReference(),\n hasForm: true,\n isFlowContainer: true,\n containerName: localPConn.getContainerName(),\n containerItemName: key,\n parentPageReference: localPConn.getPageReference()\n };\n\n const configObject = PCore.createPConnect(config);\n\n // Since we're setting an array, need to add in an appropriate key\n // to remove React warning.\n configObject[\"key\"] = config[\"options\"].parentPageReference;\n\n // keep track of these changes\n const theNewChildren: Array<Object> = [];\n theNewChildren.push(configObject);\n setArNewChildren(theNewChildren);\n\n // JEA - adapted from Nebula FlowContainer since we want to render children that are React components\n const root = createElement(createPConnectComponent(), configObject);\n setArNewChildrenAsReact([root]);\n\n const oWorkItem = configObject.getPConnect(); // was theNewChildren[0].getPConnect()\n const oWorkData = oWorkItem.getDataObject();\n\n\n // check if have oWorkData, there are times due to timing of state change, when this\n // may not be available\n if (oWorkData) {\n setContainerName(getActiveViewLabel() || oWorkData.caseInfo.assignments[0].name);\n }\n }\n }\n\n }\n\n\n }, [props]);\n\n const caseId = thePConn.getCaseSummary().content.pyID;\n const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments[0].urgency : \"\";\n const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());\n let instructionText = thePConn.getCaseSummary()?.assignments?.[0]?.instructions;\n if (instructionText === undefined) {\n instructionText = \"\";\n }\n\n return (\n <div style={{ textAlign: \"left\" }} id={buildName} className=\"psdk-flow-container-top\">\n {!bHasCaseMessages ?\n (!todo_showTodo) ?\n (!displayOnlyFA) ?\n <Card className={classes.root}>\n <CardHeader\n title={<Typography variant=\"h6\">{containerName}</Typography>}\n subheader={`Task in ${caseId} \\u2022 Priority ${urgency}`}\n avatar={\n <Avatar className={classes.avatar}>\n {operatorInitials}\n </Avatar>\n }\n ></CardHeader>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <Card className={classes.root}>\n <Typography variant=\"h6\">{containerName}</Typography>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <div>\n <ToDo getPConnect={getPConnect} caseInfoID={todo_caseInfoID} datasource={todo_datasource}\n showTodoList={todo_showTodoList} headerText={todo_headerText} type={TODO}\n context={todo_context} itemKey={itemKey}></ToDo>\n </div>\n :\n <div className={classes.alert}>\n <Alert severity=\"success\">{caseMessages}</Alert>\n </div>\n }\n </div>\n )\n}\n\nFlowContainer.defaultProps = {\n children: null,\n getPConnect: null,\n name: \"\",\n routingInfo: null,\n pageMessages: null\n};\n\nFlowContainer.propTypes = {\n // eslint-disable-next-line react/no-unused-prop-types\n children: PropTypes.node,\n getPConnect: PropTypes.func,\n // eslint-disable-next-line react/no-unused-prop-types\n name: PropTypes.string,\n routingInfo: PropTypes.objectOf(PropTypes.any),\n // eslint-disable-next-line react/no-unused-prop-types\n pageMessages: PropTypes.arrayOf(PropTypes.any)\n};\n"]}
@@ -7,7 +7,7 @@ import DialogTitle from '@material-ui/core/DialogTitle';
7
7
  import { makeStyles } from '@material-ui/core/styles';
8
8
  import createPConnectComponent from '../../../../bridge/react_pconnect';
9
9
  import Assignment from '../../Assignment';
10
- import CancelAlert from '../../../forms/CancelAlert';
10
+ import CancelAlert from '../../../field/CancelAlert';
11
11
  import Utils from '../../../helpers/utils';
12
12
  function buildName(pConnect, name = '') {
13
13
  const context = pConnect.getContextName();
@@ -1 +1 @@
1
- {"version":3,"file":"ModalViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ModalViewContainer/ModalViewContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAC5D,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAI3C,SAAS,SAAS,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC1C,OAAO,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,mBAAmB,CAAC,WAAW,EAAE,KAAK;IAC7C,MAAM,aAAa,GAAG,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC/C,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,EAAE;QAChF,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;QAC7C,MAAM,GAAG,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpD,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,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AAU,qBAAkB,mBAAmB;YAC3D,oBAAC,WAAW,IAAC,EAAE,EAAC,mBAAmB,EAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,IAC5D,KAAK,CACM;YACd,oBAAC,aAAa,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,IACzC,UAAU,CAAC,CAAC,CAAC,CACZ,oBAAC,UAAU,IAAC,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,UAC1E,oBAAoB,CACV,CACd,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CACa,CACT;QACR,gBAAgB,IAAI,CACnB,oBAAC,WAAW,IACV,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,gBAAgB,EAC3B,gBAAgB,EAAE,gBAAgB,GAClC,CACH,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC;AAElC,kBAAkB,CAAC,YAAY,GAAG;IAChC,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,kBAAkB,CAAC,SAAS,GAAG;IAC7B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["import React, { useEffect, useRef, useState, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport isEqual from 'fast-deep-equal';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { makeStyles } from '@material-ui/core/styles';\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport Assignment from '../../Assignment';\nimport CancelAlert from '../../../forms/CancelAlert';\nimport Utils from '../../../helpers/utils';\n\ndeclare const PCore;\n\nfunction buildName(pConnect, name = '') {\n const context = pConnect.getContextName();\n return `${context}/${name}`;\n}\n\nfunction getKeyAndLatestItem(routinginfo, pConn) {\n const containerName = pConn.getContainerName();\n if (PCore.getContainerUtils().hasContainerItems(buildName(pConn, containerName))) {\n const { accessedOrder, items } = routinginfo;\n const key = accessedOrder[accessedOrder.length - 1];\n const latestItem = items[key];\n return { key, latestItem };\n }\n return {};\n}\n\nfunction getConfigObject(item, pConnect) {\n if (item) {\n const { context, view } = item;\n const config = {\n meta: view,\n options: {\n context,\n pageReference: view.config.context || pConnect.getPageReference(),\n hasForm: true\n }\n };\n return PCore.createPConnect(config);\n }\n return null;\n}\n\nconst useStyles = makeStyles(theme => ({\n dlgTitle: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(0)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n },\n dlgContent: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(0),\n marginBottom: theme.spacing(2)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n }\n}));\n\nconst ModalViewContainer = props => {\n const classes = useStyles();\n\n const routingInfoRef = useRef({});\n const { getPConnect, routingInfo, loadingInfo } = props;\n const pConn = getPConnect();\n const {\n CONTAINER_TYPE: { MULTIPLE },\n PUB_SUB_EVENTS: { EVENT_SHOW_CANCEL_ALERT }\n } = PCore.getConstants();\n const { subscribe } = PCore.getPubSubUtils();\n const [bShowModal, setShowModal] = useState(false);\n const [bSubscribed, setSubscribed] = useState(false);\n const [bShowCancelAlert, setShowCancelAlert] = useState(false);\n const [oCaseInfo, setOCaseInfo] = useState({});\n const [createdView, setCreatedView] = useState<any>(null);\n const [title, setTitle] = useState('');\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n const [itemKey, setItemKey] = useState('');\n const [cancelPConn, setCancelPConn] = useState(null);\n\n function showAlert(payload) {\n const { latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n const { isModalAction } = payload;\n\n /*\n If we are in create stage full page mode, created a new case and trying to click on cancel button\n it will show two alert dialogs which is not expected. Hence isModalAction flag to avoid that.\n */\n if (latestItem && isModalAction) {\n const configObject = getConfigObject(latestItem, pConn);\n setCancelPConn(configObject.getPConnect());\n setShowCancelAlert(true);\n }\n }\n\n function compareCaseInfoIsDifferent(oCurrentCaseInfo: Object): boolean {\n let bRet = false;\n\n // fast-deep-equal version\n if (isEqual !== undefined) {\n bRet = !isEqual(oCaseInfo, oCurrentCaseInfo);\n } else {\n const sCurrentCaseInfo = JSON.stringify(oCurrentCaseInfo);\n const sOldCaseInfo = JSON.stringify(oCaseInfo);\n // stringify compare version\n if (sCurrentCaseInfo !== sOldCaseInfo) {\n bRet = true;\n }\n }\n\n // if different, save off new case info\n if (bRet) {\n setOCaseInfo(JSON.parse(JSON.stringify(oCurrentCaseInfo)));\n }\n\n return bRet;\n }\n\n const updateAlertState = modalFlag => {\n setShowCancelAlert(false);\n setShowModal(modalFlag);\n };\n\n useEffect(() => {\n // Establish the necessary containers\n const containerMgr = pConn.getContainerManager();\n containerMgr.initializeContainers({ type: MULTIPLE });\n }, [MULTIPLE, pConn]);\n\n useEffect(() => {\n // Update routingInfoRef.current whenever routingInfo changes\n routingInfoRef.current = routingInfo;\n }, [routingInfo]);\n\n useEffect(() => {\n if (routingInfoRef.current && !loadingInfo) {\n const currentOrder = routingInfo.accessedOrder;\n\n if (undefined === currentOrder) {\n return;\n }\n\n const currentItems = routingInfo.items;\n\n const { key, latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n\n // console.log(`ModalViewContainer: key: ${key} latestItem: ${JSON.stringify(latestItem)}`);\n\n if (currentOrder.length > 0) {\n if (\n currentItems[key] &&\n currentItems[key].view &&\n !Utils.isEmptyObject(currentItems[key].view)\n ) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n config['options'] = {\n context: currentItem.context,\n hasForm: true,\n pageReference: context || pConn.getPageReference()\n };\n\n if (!bSubscribed) {\n setSubscribed(true);\n subscribe(\n EVENT_SHOW_CANCEL_ALERT,\n showAlert,\n EVENT_SHOW_CANCEL_ALERT /* Unique string for subscription */\n );\n }\n\n const configObject = PCore.createPConnect(config);\n\n // THIS is where the ViewContainer creates a View\n // The config has meta.config.type = \"view\"\n const newComp = configObject.getPConnect();\n // const newCompName = newComp.getComponentName();\n const caseInfo =\n newComp && newComp.getDataObject() && newComp.getDataObject().caseInfo\n ? newComp.getDataObject().caseInfo\n : null;\n\n // console.log(`ModalViewContainer just created newComp: ${newCompName}`);\n\n // The metadata for pyDetails changed such that the \"template\": \"CaseView\"\n // is no longer a child of the created View but is in the created View's\n // config. So, we DON'T want to replace this.pConn$ since the created\n // component is a View (and not a ViewContainer). We now look for the\n // \"template\" type directly in the created component (newComp) and NOT\n // as a child of the newly created component.\n // console.log(`---> ModalViewContainer created new ${newCompName}`);\n\n // Use the newly created component (View) info but DO NOT replace\n // this ModalViewContainer's pConn$, etc.\n // Note that we're now using the newly created View's PConnect in the\n // ViewContainer HTML template to guide what's rendered similar to what\n // the React return of React.Fragment does\n\n // right now need to check caseInfo for changes, to trigger redraw, not getting\n // changes from angularPconnect except for first draw\n if (newComp && caseInfo && compareCaseInfoIsDifferent(caseInfo)) {\n setCreatedView(configObject);\n\n const { actionName } = latestItem;\n const theNewCaseInfo = newComp.getCaseInfo();\n const caseName = theNewCaseInfo.getName();\n const ID = theNewCaseInfo.getID();\n\n setTitle(actionName || `New ${caseName} (${ID})`);\n\n let arChildrenAsReact: Array<any> = [];\n\n if (newComp.getComponentName() === 'reference') {\n // Reference component doesn't have children. It can build the View we want.\n // The Reference component getPConnect is in configObject\n\n arChildrenAsReact.push(\n createElement(createPConnectComponent(), {\n ...configObject,\n key: `${caseName}-${ID}`\n })\n );\n } else {\n // This is the 8.6 implementation. Leaving it in for reference for now.\n // And create a similar array of the children as React components\n // passed to Assignment component when rendered\n arChildrenAsReact = newComp.getChildren().map(child => {\n // Use Case Summary ID as the React element's key\n const caseSummaryID = child.getPConnect().getCaseSummary().ID;\n return createElement(createPConnectComponent(), { ...child, key: caseSummaryID });\n });\n }\n\n if (arChildrenAsReact.length > 0) setArNewChildrenAsReact(arChildrenAsReact);\n\n setShowModal(true);\n\n // save off itemKey to be used for finishAssignment, etc.\n setItemKey(key);\n }\n }\n } else {\n if (bShowModal) {\n setShowModal(false);\n }\n if (!Utils.isEmptyObject(oCaseInfo)) {\n setOCaseInfo({});\n }\n }\n }\n });\n\n // function placeholderModalClose() {\n // // Intentionally a no-op. Similar behavior in other SDKs.\n // // Does NOT close the window. This forces the user to use\n // // the cancel or submit button to close the modal (which, in turn, gets the right\n // // Constellation code to run to clean up the containers, data, etc.)\n\n // // console.log(`ModalViewContainer: placeholderModalClose setting bShowModal to false`) setShowModal(false);\n // }\n\n // if (bShowModal) {\n // console.log(`ModalViewContainer about to show modal with`);\n // console.log(`--> createdView: ${createdView} createdView.getPConnect: ${typeof createdView.getPConnect}`);\n // console.log(`--> itemKey: ${itemKey}`);\n // console.log(`--> arNewChildrenAsReact: ${JSON.stringify(arNewChildrenAsReact)}`);\n // }\n\n return (\n <>\n <Dialog open={bShowModal} aria-labelledby='form-dialog-title'>\n <DialogTitle id='form-dialog-title' className={classes.dlgTitle}>\n {title}\n </DialogTitle>\n <DialogContent className={classes.dlgContent}>\n {bShowModal ? (\n <Assignment getPConnect={createdView.getPConnect} itemKey={itemKey} isInModal>\n {arNewChildrenAsReact}\n </Assignment>\n ) : (\n <></>\n )}\n </DialogContent>\n </Dialog>\n {bShowCancelAlert && (\n <CancelAlert\n pConn={cancelPConn}\n showAlert={bShowCancelAlert}\n updateAlertState={updateAlertState}\n />\n )}\n </>\n );\n};\n\nexport default ModalViewContainer;\n\nModalViewContainer.defaultProps = {\n getPConnect: null,\n loadingInfo: false,\n routingInfo: null\n};\n\nModalViewContainer.propTypes = {\n getPConnect: PropTypes.func,\n loadingInfo: PropTypes.bool,\n routingInfo: PropTypes.objectOf(PropTypes.any)\n};\n"]}
1
+ {"version":3,"file":"ModalViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ModalViewContainer/ModalViewContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAC5D,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAI3C,SAAS,SAAS,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC1C,OAAO,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,mBAAmB,CAAC,WAAW,EAAE,KAAK;IAC7C,MAAM,aAAa,GAAG,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC/C,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,EAAE;QAChF,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;QAC7C,MAAM,GAAG,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM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AAsF;IACtF,IAAI;IAEJ,OAAO,CACL;QACE,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,qBAAkB,mBAAmB;YAC3D,oBAAC,WAAW,IAAC,EAAE,EAAC,mBAAmB,EAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,IAC5D,KAAK,CACM;YACd,oBAAC,aAAa,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,IACzC,UAAU,CAAC,CAAC,CAAC,CACZ,oBAAC,UAAU,IAAC,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,UAC1E,oBAAoB,CACV,CACd,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CACa,CACT;QACR,gBAAgB,IAAI,CACnB,oBAAC,WAAW,IACV,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,gBAAgB,EAC3B,gBAAgB,EAAE,gBAAgB,GAClC,CACH,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC;AAElC,kBAAkB,CAAC,YAAY,GAAG;IAChC,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,kBAAkB,CAAC,SAAS,GAAG;IAC7B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["import React, { useEffect, useRef, useState, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport isEqual from 'fast-deep-equal';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { makeStyles } from '@material-ui/core/styles';\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport Assignment from '../../Assignment';\nimport CancelAlert from '../../../field/CancelAlert';\nimport Utils from '../../../helpers/utils';\n\ndeclare const PCore;\n\nfunction buildName(pConnect, name = '') {\n const context = pConnect.getContextName();\n return `${context}/${name}`;\n}\n\nfunction getKeyAndLatestItem(routinginfo, pConn) {\n const containerName = pConn.getContainerName();\n if (PCore.getContainerUtils().hasContainerItems(buildName(pConn, containerName))) {\n const { accessedOrder, items } = routinginfo;\n const key = accessedOrder[accessedOrder.length - 1];\n const latestItem = items[key];\n return { key, latestItem };\n }\n return {};\n}\n\nfunction getConfigObject(item, pConnect) {\n if (item) {\n const { context, view } = item;\n const config = {\n meta: view,\n options: {\n context,\n pageReference: view.config.context || pConnect.getPageReference(),\n hasForm: true\n }\n };\n return PCore.createPConnect(config);\n }\n return null;\n}\n\nconst useStyles = makeStyles(theme => ({\n dlgTitle: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(0)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n },\n dlgContent: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(0),\n marginBottom: theme.spacing(2)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n }\n}));\n\nconst ModalViewContainer = props => {\n const classes = useStyles();\n\n const routingInfoRef = useRef({});\n const { getPConnect, routingInfo, loadingInfo } = props;\n const pConn = getPConnect();\n const {\n CONTAINER_TYPE: { MULTIPLE },\n PUB_SUB_EVENTS: { EVENT_SHOW_CANCEL_ALERT }\n } = PCore.getConstants();\n const { subscribe } = PCore.getPubSubUtils();\n const [bShowModal, setShowModal] = useState(false);\n const [bSubscribed, setSubscribed] = useState(false);\n const [bShowCancelAlert, setShowCancelAlert] = useState(false);\n const [oCaseInfo, setOCaseInfo] = useState({});\n const [createdView, setCreatedView] = useState<any>(null);\n const [title, setTitle] = useState('');\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n const [itemKey, setItemKey] = useState('');\n const [cancelPConn, setCancelPConn] = useState(null);\n\n function showAlert(payload) {\n const { latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n const { isModalAction } = payload;\n\n /*\n If we are in create stage full page mode, created a new case and trying to click on cancel button\n it will show two alert dialogs which is not expected. Hence isModalAction flag to avoid that.\n */\n if (latestItem && isModalAction) {\n const configObject = getConfigObject(latestItem, pConn);\n setCancelPConn(configObject.getPConnect());\n setShowCancelAlert(true);\n }\n }\n\n function compareCaseInfoIsDifferent(oCurrentCaseInfo: Object): boolean {\n let bRet = false;\n\n // fast-deep-equal version\n if (isEqual !== undefined) {\n bRet = !isEqual(oCaseInfo, oCurrentCaseInfo);\n } else {\n const sCurrentCaseInfo = JSON.stringify(oCurrentCaseInfo);\n const sOldCaseInfo = JSON.stringify(oCaseInfo);\n // stringify compare version\n if (sCurrentCaseInfo !== sOldCaseInfo) {\n bRet = true;\n }\n }\n\n // if different, save off new case info\n if (bRet) {\n setOCaseInfo(JSON.parse(JSON.stringify(oCurrentCaseInfo)));\n }\n\n return bRet;\n }\n\n const updateAlertState = modalFlag => {\n setShowCancelAlert(false);\n setShowModal(modalFlag);\n };\n\n useEffect(() => {\n // Establish the necessary containers\n const containerMgr = pConn.getContainerManager();\n containerMgr.initializeContainers({ type: MULTIPLE });\n }, [MULTIPLE, pConn]);\n\n useEffect(() => {\n // Update routingInfoRef.current whenever routingInfo changes\n routingInfoRef.current = routingInfo;\n }, [routingInfo]);\n\n useEffect(() => {\n if (routingInfoRef.current && !loadingInfo) {\n const currentOrder = routingInfo.accessedOrder;\n\n if (undefined === currentOrder) {\n return;\n }\n\n const currentItems = routingInfo.items;\n\n const { key, latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n\n // console.log(`ModalViewContainer: key: ${key} latestItem: ${JSON.stringify(latestItem)}`);\n\n if (currentOrder.length > 0) {\n if (\n currentItems[key] &&\n currentItems[key].view &&\n !Utils.isEmptyObject(currentItems[key].view)\n ) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n config['options'] = {\n context: currentItem.context,\n hasForm: true,\n pageReference: context || pConn.getPageReference()\n };\n\n if (!bSubscribed) {\n setSubscribed(true);\n subscribe(\n EVENT_SHOW_CANCEL_ALERT,\n showAlert,\n EVENT_SHOW_CANCEL_ALERT /* Unique string for subscription */\n );\n }\n\n const configObject = PCore.createPConnect(config);\n\n // THIS is where the ViewContainer creates a View\n // The config has meta.config.type = \"view\"\n const newComp = configObject.getPConnect();\n // const newCompName = newComp.getComponentName();\n const caseInfo =\n newComp && newComp.getDataObject() && newComp.getDataObject().caseInfo\n ? newComp.getDataObject().caseInfo\n : null;\n\n // console.log(`ModalViewContainer just created newComp: ${newCompName}`);\n\n // The metadata for pyDetails changed such that the \"template\": \"CaseView\"\n // is no longer a child of the created View but is in the created View's\n // config. So, we DON'T want to replace this.pConn$ since the created\n // component is a View (and not a ViewContainer). We now look for the\n // \"template\" type directly in the created component (newComp) and NOT\n // as a child of the newly created component.\n // console.log(`---> ModalViewContainer created new ${newCompName}`);\n\n // Use the newly created component (View) info but DO NOT replace\n // this ModalViewContainer's pConn$, etc.\n // Note that we're now using the newly created View's PConnect in the\n // ViewContainer HTML template to guide what's rendered similar to what\n // the React return of React.Fragment does\n\n // right now need to check caseInfo for changes, to trigger redraw, not getting\n // changes from angularPconnect except for first draw\n if (newComp && caseInfo && compareCaseInfoIsDifferent(caseInfo)) {\n setCreatedView(configObject);\n\n const { actionName } = latestItem;\n const theNewCaseInfo = newComp.getCaseInfo();\n const caseName = theNewCaseInfo.getName();\n const ID = theNewCaseInfo.getID();\n\n setTitle(actionName || `New ${caseName} (${ID})`);\n\n let arChildrenAsReact: Array<any> = [];\n\n if (newComp.getComponentName() === 'reference') {\n // Reference component doesn't have children. It can build the View we want.\n // The Reference component getPConnect is in configObject\n\n arChildrenAsReact.push(\n createElement(createPConnectComponent(), {\n ...configObject,\n key: `${caseName}-${ID}`\n })\n );\n } else {\n // This is the 8.6 implementation. Leaving it in for reference for now.\n // And create a similar array of the children as React components\n // passed to Assignment component when rendered\n arChildrenAsReact = newComp.getChildren().map(child => {\n // Use Case Summary ID as the React element's key\n const caseSummaryID = child.getPConnect().getCaseSummary().ID;\n return createElement(createPConnectComponent(), { ...child, key: caseSummaryID });\n });\n }\n\n if (arChildrenAsReact.length > 0) setArNewChildrenAsReact(arChildrenAsReact);\n\n setShowModal(true);\n\n // save off itemKey to be used for finishAssignment, etc.\n setItemKey(key);\n }\n }\n } else {\n if (bShowModal) {\n setShowModal(false);\n }\n if (!Utils.isEmptyObject(oCaseInfo)) {\n setOCaseInfo({});\n }\n }\n }\n });\n\n // function placeholderModalClose() {\n // // Intentionally a no-op. Similar behavior in other SDKs.\n // // Does NOT close the window. This forces the user to use\n // // the cancel or submit button to close the modal (which, in turn, gets the right\n // // Constellation code to run to clean up the containers, data, etc.)\n\n // // console.log(`ModalViewContainer: placeholderModalClose setting bShowModal to false`) setShowModal(false);\n // }\n\n // if (bShowModal) {\n // console.log(`ModalViewContainer about to show modal with`);\n // console.log(`--> createdView: ${createdView} createdView.getPConnect: ${typeof createdView.getPConnect}`);\n // console.log(`--> itemKey: ${itemKey}`);\n // console.log(`--> arNewChildrenAsReact: ${JSON.stringify(arNewChildrenAsReact)}`);\n // }\n\n return (\n <>\n <Dialog open={bShowModal} aria-labelledby='form-dialog-title'>\n <DialogTitle id='form-dialog-title' className={classes.dlgTitle}>\n {title}\n </DialogTitle>\n <DialogContent className={classes.dlgContent}>\n {bShowModal ? (\n <Assignment getPConnect={createdView.getPConnect} itemKey={itemKey} isInModal>\n {arNewChildrenAsReact}\n </Assignment>\n ) : (\n <></>\n )}\n </DialogContent>\n </Dialog>\n {bShowCancelAlert && (\n <CancelAlert\n pConn={cancelPConn}\n showAlert={bShowCancelAlert}\n updateAlertState={updateAlertState}\n />\n )}\n </>\n );\n};\n\nexport default ModalViewContainer;\n\nModalViewContainer.defaultProps = {\n getPConnect: null,\n loadingInfo: false,\n routingInfo: null\n};\n\nModalViewContainer.propTypes = {\n getPConnect: PropTypes.func,\n loadingInfo: PropTypes.bool,\n routingInfo: PropTypes.objectOf(PropTypes.any)\n};\n"]}
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4
4
  // import { LazyMap as LazyComponentMap } from "../../components_map";
5
5
  import { SdkComponentMap } from '../../../bridge/helpers/sdk_component_map';
6
6
  import ErrorBoundary from '../ErrorBoundary';
7
- import { getAllFields } from '../../templates/utils';
7
+ import { getAllFields } from '../../template/utils';
8
8
  // Need to import any templates that we might render
9
9
  import './View.css';
10
10
  //
@@ -1 +1 @@
1
- {"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,wDAAwD;AACxD,sEAAsE;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,oDAAoD;AAEpD,OAAO,YAAY,CAAC;AACpB,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM,aAAa,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAE5F,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK;IAChC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACxD,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAEzC,0HAA0H;IAC1H,gFAAgF;IAE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ACjC,SAAS,CAAC,KAAK;KAChB,CAAC,CAAC,0BAA0B;IAC7B,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,iBAAiB;IAC5C,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,SAAS,EAAE,SAAS,CAAC,IAAI;IACzB,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,KAAK,EAAE,SAAS,CAAC,MAAM;CACxB,CAAC;AAEF,kFAAkF;AAClF,IAAI,CAAC,eAAe,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE;IAC5C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAE/C,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,QAAQ,QAAQ,EAAE;QAChB,KAAK,aAAa;YAChB,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,gDAAgD;YAChD,MAAM,WAAW,GAAG;gBAClB,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;gBAC3B,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC;aAC9B,CAAC;YACF,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YACnD,MAAM;QAER,KAAK,SAAS;YACZ,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACnC,MAAM;QAER;YACE,MAAM;KACT;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n// import { FieldGroup } from \"@pega/cosmos-react-core\";\n// import { LazyMap as LazyComponentMap } from \"../../components_map\";\n\nimport { SdkComponentMap } from '../../../bridge/helpers/sdk_component_map';\nimport ErrorBoundary from '../ErrorBoundary';\n\nimport { getAllFields } from '../../templates/utils';\n\n// Need to import any templates that we might render\n\nimport './View.css';\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst FORMTEMPLATES = ['OneColumn', 'TwoColumn', 'DefaultForm', 'WideNarrow', 'NarrowWide'];\n\nexport default function View(props) {\n const { children, template, getPConnect, mode } = props;\n let { label, showLabel = false } = props;\n\n // Get the inherited props from the parent to determine label settings. For 8.6, this is only for embedded data form views\n // Putting this logic here instead of copy/paste in every Form template index.js\n\n const inheritedProps = getPConnect().getInheritedProps();\n label = inheritedProps.label || label;\n showLabel = inheritedProps.showLabel || showLabel;\n\n const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible\n if (isEmbeddedDataView && showLabel === undefined) {\n showLabel = true;\n }\n\n // As long as the template is defined in the dependencies of the view\n // it will be loaded, otherwise fall back to single column\n // JA - React SDK not using LazyComponentMap yet\n if (template /* && LazyComponentMap[template] */) {\n // const ViewTemplate = LazyComponentMap[template];\n let ViewTemplate: any;\n\n if (SdkComponentMap) {\n // This is the node_modules version of react_pconnect!\n const theLocalComponent = SdkComponentMap.getLocalComponentMap()[template];\n if ( theLocalComponent !== undefined) {\n // eslint-disable-next-line no-console\n console.log(`View component found ${template}: Local`);\n ViewTemplate = theLocalComponent\n } else {\n const thePegaProvidedComponent = SdkComponentMap.getPegaProvidedComponentMap()[template];\n if ( thePegaProvidedComponent !== undefined) {\n // console.log(`View component found ${template}: Pega-provided`);\n ViewTemplate = thePegaProvidedComponent;\n } else {\n // eslint-disable-next-line no-console\n console.error(`View component can't find template type ${template}`);\n ViewTemplate = ErrorBoundary;\n }\n }\n\n if (template === \"ListView\") {\n // special case for ListView - add in a prop\n const bInForm = true;\n props = { ...props, bInForm};\n }\n } else {\n\n // eslint-disable-next-line no-console\n console.warn(`View: SdkComponentMap expected but not found.`)\n\n // eslint-disable-next-line no-console\n console.error(`View: Trying to render an unknown template: ${template}`);\n \n }\n\n // for debugging/investigation\n // console.log(`View rendering template: ${template}`);\n\n // spreading because all props should go to the template\n let RenderedTemplate = <ViewTemplate {...props}>{children}</ViewTemplate>;\n\n if (FORMTEMPLATES.includes(template) && showLabel) {\n // Original:\n // RenderedTemplate = (\n // <FieldGroup name={label} style={{ marginBlockStart: \"1rem\" }}>\n // {RenderedTemplate}\n // </FieldGroup>\n // );\n RenderedTemplate = (\n <div\n data-name='RenderedTemplate'\n data-template-type={template}\n /* name */ id='label'\n style={{ marginBlockStart: '1rem' }}\n className='grid-column'\n >\n {RenderedTemplate}\n </div>\n );\n }\n\n return (\n <div className='grid-column'>\n {showLabel && template !== 'SubTabs' && template !== 'SimpleTable' && (\n <div className='template-title-container'>\n <span>{label}</span>\n </div>\n )}\n {RenderedTemplate}\n </div>\n );\n }\n\n // debugging/investigation help\n // console.log(`View about to render React.Fragment for children: ${children}`);\n\n if (children) {\n return <>{children}</>;\n } else {\n return <div id='View'>View has no children.</div>;\n }\n}\n\nView.defaultProps = {\n label: undefined,\n showLabel: undefined,\n mode: undefined\n};\n\nView.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.array\n ]) /* array might be empty */,\n template: PropTypes.string /* .isRequired */,\n getPConnect: PropTypes.func.isRequired,\n label: PropTypes.string,\n showLabel: PropTypes.bool,\n mode: PropTypes.string,\n title: PropTypes.string\n};\n\n// Adapted from Nebula/Constellation to add in additional props for some templates\nView.additionalProps = (state, getPConnect) => {\n const thePConn = getPConnect();\n const { template } = thePConn.getConfigProps();\n\n let propObj = {};\n let allFields = {};\n\n switch (template) {\n case 'CaseSummary':\n allFields = getAllFields(thePConn);\n // eslint-disable-next-line no-case-declarations\n const unresFields = {\n primaryFields: allFields[0],\n secondaryFields: allFields[1]\n };\n propObj = thePConn.resolveConfigProps(unresFields);\n break;\n\n case 'Details':\n allFields = getAllFields(thePConn);\n propObj = { fields: allFields[0] };\n break;\n\n default:\n break;\n }\n\n return propObj;\n};\n"]}
1
+ {"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,wDAAwD;AACxD,sEAAsE;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,oDAAoD;AAEpD,OAAO,YAAY,CAAC;AACpB,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM,aAAa,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAE5F,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK;IAChC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACxD,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAEzC,0HAA0H;IAC1H,gFAAgF;IAEhF,MAAM,cAAc,GAAG,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC;IACzD,KAAK,GAAG,cAAc,CAAC,KAAK,IAAI,KAAK,CAAC;IACtC,SAAS,GAAG,cAAc,CAAC,SAAS,IAAI,SAAS,CAAC;IAElD,MAAM,kBAAkB,GAAG,IAAI,KAAK,UAAU,CAAC,CAAC,mFAAmF;IACnI,IAAI,kBAAkB,IAAI,SAAS,KAAK,SAAS,EAAE;QACjD,SAAS,GAAG,IAAI,CAAC;KAClB;IAED,qEAAqE;IACrE,0DAA0D;IAC1D,iDAAiD;IACjD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E,WAAW,EAAE,EAAE;IAC5C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAE/C,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,QAAQ,QAAQ,EAAE;QAChB,KAAK,aAAa;YAChB,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,gDAAgD;YAChD,MAAM,WAAW,GAAG;gBAClB,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;gBAC3B,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC;aAC9B,CAAC;YACF,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YACnD,MAAM;QAER,KAAK,SAAS;YACZ,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACnC,MAAM;QAER;YACE,MAAM;KACT;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n// import { FieldGroup } from \"@pega/cosmos-react-core\";\n// import { LazyMap as LazyComponentMap } from \"../../components_map\";\n\nimport { SdkComponentMap } from '../../../bridge/helpers/sdk_component_map';\nimport ErrorBoundary from '../ErrorBoundary';\n\nimport { getAllFields } from '../../template/utils';\n\n// Need to import any templates that we might render\n\nimport './View.css';\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst FORMTEMPLATES = ['OneColumn', 'TwoColumn', 'DefaultForm', 'WideNarrow', 'NarrowWide'];\n\nexport default function View(props) {\n const { children, template, getPConnect, mode } = props;\n let { label, showLabel = false } = props;\n\n // Get the inherited props from the parent to determine label settings. For 8.6, this is only for embedded data form views\n // Putting this logic here instead of copy/paste in every Form template index.js\n\n const inheritedProps = getPConnect().getInheritedProps();\n label = inheritedProps.label || label;\n showLabel = inheritedProps.showLabel || showLabel;\n\n const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible\n if (isEmbeddedDataView && showLabel === undefined) {\n showLabel = true;\n }\n\n // As long as the template is defined in the dependencies of the view\n // it will be loaded, otherwise fall back to single column\n // JA - React SDK not using LazyComponentMap yet\n if (template /* && LazyComponentMap[template] */) {\n // const ViewTemplate = LazyComponentMap[template];\n let ViewTemplate: any;\n\n if (SdkComponentMap) {\n // This is the node_modules version of react_pconnect!\n const theLocalComponent = SdkComponentMap.getLocalComponentMap()[template];\n if ( theLocalComponent !== undefined) {\n // eslint-disable-next-line no-console\n console.log(`View component found ${template}: Local`);\n ViewTemplate = theLocalComponent\n } else {\n const thePegaProvidedComponent = SdkComponentMap.getPegaProvidedComponentMap()[template];\n if ( thePegaProvidedComponent !== undefined) {\n // console.log(`View component found ${template}: Pega-provided`);\n ViewTemplate = thePegaProvidedComponent;\n } else {\n // eslint-disable-next-line no-console\n console.error(`View component can't find template type ${template}`);\n ViewTemplate = ErrorBoundary;\n }\n }\n\n if (template === \"ListView\") {\n // special case for ListView - add in a prop\n const bInForm = true;\n props = { ...props, bInForm};\n }\n } else {\n\n // eslint-disable-next-line no-console\n console.warn(`View: SdkComponentMap expected but not found.`)\n\n // eslint-disable-next-line no-console\n console.error(`View: Trying to render an unknown template: ${template}`);\n\n }\n\n // for debugging/investigation\n // console.log(`View rendering template: ${template}`);\n\n // spreading because all props should go to the template\n let RenderedTemplate = <ViewTemplate {...props}>{children}</ViewTemplate>;\n\n if (FORMTEMPLATES.includes(template) && showLabel) {\n // Original:\n // RenderedTemplate = (\n // <FieldGroup name={label} style={{ marginBlockStart: \"1rem\" }}>\n // {RenderedTemplate}\n // </FieldGroup>\n // );\n RenderedTemplate = (\n <div\n data-name='RenderedTemplate'\n data-template-type={template}\n /* name */ id='label'\n style={{ marginBlockStart: '1rem' }}\n className='grid-column'\n >\n {RenderedTemplate}\n </div>\n );\n }\n\n return (\n <div className='grid-column'>\n {showLabel && template !== 'SubTabs' && template !== 'SimpleTable' && (\n <div className='template-title-container'>\n <span>{label}</span>\n </div>\n )}\n {RenderedTemplate}\n </div>\n );\n }\n\n // debugging/investigation help\n // console.log(`View about to render React.Fragment for children: ${children}`);\n\n if (children) {\n return <>{children}</>;\n } else {\n return <div id='View'>View has no children.</div>;\n }\n}\n\nView.defaultProps = {\n label: undefined,\n showLabel: undefined,\n mode: undefined\n};\n\nView.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.array\n ]) /* array might be empty */,\n template: PropTypes.string /* .isRequired */,\n getPConnect: PropTypes.func.isRequired,\n label: PropTypes.string,\n showLabel: PropTypes.bool,\n mode: PropTypes.string,\n title: PropTypes.string\n};\n\n// Adapted from Nebula/Constellation to add in additional props for some templates\nView.additionalProps = (state, getPConnect) => {\n const thePConn = getPConnect();\n const { template } = thePConn.getConfigProps();\n\n let propObj = {};\n let allFields = {};\n\n switch (template) {\n case 'CaseSummary':\n allFields = getAllFields(thePConn);\n // eslint-disable-next-line no-case-declarations\n const unresFields = {\n primaryFields: allFields[0],\n secondaryFields: allFields[1]\n };\n propObj = thePConn.resolveConfigProps(unresFields);\n break;\n\n case 'Details':\n allFields = getAllFields(thePConn);\n propObj = { fields: allFields[0] };\n break;\n\n default:\n break;\n }\n\n return propObj;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AppShell/AppShell.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAenC,OAAO,gBAAgB,CAAC;AAyBxB,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eA0XrC;kBA1XuB,QAAQ;;;;;;;;;;;;;;eAAR,QAAQ"}
@@ -0,0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AgC;IAChC,SAAS;IACT,wBAAwB;IACxB,wBAAwB;IACxB,4BAA4B;IAC5B,OAAO;IACP,aAAa;KACd,CAAC;AACJ,CAAC;AACD,QAAQ,CAAC,YAAY,GAAG;IACtB,KAAK,EAAE,EAAE;IACT,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;IACZ,oBAAoB;IACpB,oBAAoB;CACrB,CAAC;AACF,QAAQ,CAAC,SAAS,GAAG;IACnB,iDAAiD;IACjD,iDAAiD;IACjD,WAAW,EAAE,SAAS,CAAC,IAAI,CAAA,iBAAiB;IAC5C,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;IAC3C,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,qDAAqD;IACrD,mDAAmD;CACpD,CAAC","sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport { NavContext } from '../../helpers/reactContextHelpers';\n\n// import {\n// Avatar,\n// Toaster,\n// Banner,\n// AppShell as CosmosAppShell\n// } from \"@pega/cosmos-react-core\";\n\n// import createPConnectComponent from \"../../../bridge/react_pconnect\";\n// import { buildRecentList, onRecentClickHandler } from \"./Recents/utils\";\n\nimport './AppShell.css';\n\n// AppShell can emit NavBar and ViewContainer\nimport NavBar from '../../infra/NavBar';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: 'flex',\n },\n content: {\n flexGrow: 1,\n height: '100vh',\n overflow: 'auto',\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n },\n}));\n\ndeclare const PCore;\n\n\n/*\n * The wrapper handles knowing how to take in just children and mapping\n * to the Cosmos template. This could be a combination of things but it knows...\n */\nexport default function AppShell(props) {\n const {\n pages,\n caseTypes,\n showAppName,\n children,\n getPConnect,\n } = props;\n const [open, setOpen] = useState(true);\n\n const pConn = getPConnect();\n // const actionsAPI = pConn.getActionsApi();\n const envInfo = PCore.getEnvironmentInfo();\n\n // const bannerRef = useRef(null);\n // const hasBanner = httpMessages && httpMessages.length ? httpMessages.length > 0 : false;\n\n const appNameToDisplay = showAppName ? envInfo.getApplicationLabel() : \"\";\n\n const classes = useStyles();\n // let banners = null;\n // banners = hasBanner && (\n // <Banner\n // ref={bannerRef}\n // id=\"appShellBanner\"\n // variant=\"urgent\"\n // heading=\"Error\"\n // onDismiss={() =>\n // pConn.clearErrorMessages({\n // category: \"HTTP\",\n // context: null\n // })\n // }\n // messages={httpMessages}\n // />\n // );\n\n // useEffect(() => {\n // if (hasBanner && bannerRef.current) {\n // bannerRef.current.focus();\n // window.scrollTo(0, bannerRef.current.offsetTop);\n // }\n // }, [hasBanner]);\n\n /**\n *\n * Function to dispatch a show page action for the page links in\n * the left nav of the app shell\n *\n * @param {string} searchString Name of view to show\n */\n // function showSearchResults(searchString) {\n // if (searchString === \"\") {\n // actionsAPI.showPage(\"pySearchPage\", \"Data-Portal\");\n // return;\n // }\n // const searchTerm = searchString.replace(/['\"]+/g, \"\");\n // PCore.getDataApiUtils()\n // .getData(\n // \"D_pySearch\",\n // `{\"dataViewParameters\": {\"SearchString\": \"${encodeURIComponent(\n // searchTerm\n // )}\"}}`\n // )\n // .then((response) => {\n // if (\n // response.data.data !== null &&\n // response.data.resultCount === 1 &&\n // response.data.data[0].pyID === searchTerm\n // ) {\n // /* This is a match for a work item - then we will open it */\n // pConn\n // .getActionsApi()\n // .openWorkByHandle(\n // response.data.data[0].pzInsKey,\n // response.data.data[0].pzCategoryActionKeys\n // );\n // return;\n // }\n // // window.searchResults = {\n // // searchString: searchTerm,\n // // results: response.data\n // // };\n // actionsAPI.showPage(\"pySearchPage\", \"Data-Portal\");\n // });\n // }\n\n /**\n *\n * Function to dispatch a show page action for the page links in\n * the left nav of the app shell\n *\n * @param {string} viewName Name of view to show\n * @param {string} className Pega Applies to class of the page\n */\n // function showPage(viewName, className) {\n // actionsAPI.showPage(viewName, className);\n // }\n\n /**\n *\n * Function to dispatch a create work action\n * @param {string} className - placeholder string of case type being created\n */\n // function createWork(className) {\n // actionsAPI\n // .createWork(className)\n // .catch((error) =>\n // // eslint-disable-next-line no-console\n // console.log(\"Error in case creation: \", error?.message)\n // );\n // }\n\n /**\n * Returns the Custome Component for each active case\n */\n // const VisualComponent = useCallback(\n // (context) => {\n // if (activeCases && activeCases.length > 0) {\n // const meta = PCore.getViewResources().fetchViewResources(\n // \"pyCaseVisual\",\n // getPConnect(),\n // PCore.getStoreValue(\".caseTypeID\", \"caseInfo\", context)\n // );\n // if (meta?.config && !meta.config.defaultVisual) {\n // const config = {\n // meta,\n // options: {\n // context,\n // pageReference: \"caseInfo.content\"\n // }\n // };\n // const visualConfig = PCore.createPConnect(config);\n // return React.createElement(createPConnectComponent(), visualConfig);\n // }\n // }\n // return undefined;\n // },\n // [getPConnect, activeCases]\n // );\n\n /**\n * Transforms the active cases information into the model that cosmos expect.\n */\n // function getActiveCases() {\n // if (activeCases) {\n // const activeCaseLinks = [];\n // activeCases.forEach((activeCase) => {\n // const { caseID, className, workID, active, context } = activeCase;\n // // activeCaseLinks.push({\n // // onDismiss: () => {\n // // PCore.getContainerUtils().closeContainerItem(\n // // activeCase.containerItemID\n // // );\n // // },\n // // key: caseID,\n // // name: caseID,\n // // onClick: () => {\n // // actionsAPI.openWorkByHandle(workID, className);\n // // },\n // // active,\n // // visual: VisualComponent(context)\n // // });\n // });\n // return activeCaseLinks;\n // }\n // return activeCases;\n // }\n\n /**\n * Translate Pega Data Page into the model that Cosmos expects\n *\n * Example:\n * pxPageViewIcon: \"pi pi-home-solid\"\n * pxURLPath: \"Home\"\n * pyClassName: \"Data-Portal\"\n * pyLabel: \"Home\"\n * pyRuleName: \"pyHome\"\n */\n // const links = !pages\n // ? []\n // : pages.map((page) => {\n // return {\n // name: page.pyLabel,\n // icon: page.pxPageViewIcon.replace(\"pi pi-\", \"\"),\n // onClick: () => showPage(page.pyRuleName, page.pyClassName)\n // };\n // });\n\n // const userName = envInfo.getOperatorName();\n // const imageKey = envInfo.getOperatorImageInsKey();\n\n // const logOffAction = () => {\n // actionsAPI.logout().then(() => window?.top?.location?.reload());\n // };\n\n // const getOperator = () => {\n // const operatorActions = [\n // [{ text: \"Logoff\", id: \"1\", onClick: logOffAction }]\n // ];\n // if (imageKey) {\n // return {\n // avatar: (\n // <div id=\"AvatarWithImageKey\">Avatar with image key</div>\n // // <Avatar\n // // name={userName}\n // // imageSrc={getPConnect().getImagePath(imageKey)}\n // // />\n // ),\n // actions: operatorActions,\n // name: userName\n // };\n // }\n // return {\n // avatar: (\n // <div id=\"Avatar\">Avatar</div>\n // // <Avatar name={userName}>\n // // {userName\n // // .split(\" \")\n // // .map((i) => i.charAt(0))\n // // .join(\"\")\n // // .toUpperCase()}\n // // </Avatar>\n // ),\n // actions: operatorActions,\n // name: userName\n // };\n // };\n\n /**\n * Translate Case Types page into what is expected by Cosmos\n *\n * Example:\n * pyClassName: \"\"\n * pyFlowType: \"\"\n * pyLabel: \"No case types defined\"\n */\n // const cases = !caseTypes\n // ? []\n // : caseTypes.map((caseType) => {\n // let action = {};\n // // Only add actions to entries with a class name to create so in case of empty message no action is added\n // if (caseType.pyClassName) {\n // action = { onClick: () => createWork(caseType.pyClassName) };\n // }\n // return {\n // name: caseType.pyLabel,\n // ...action\n // };\n // });\n\n // const [recents, setRecents] = useState([]);\n\n // const [searchVal, setSearchVal] = useState(\"\");\n\n // // default the icon to be empty. This will cause the image to be initially broken.\n // const [iconURL, setIconURL] = useState(\"\");\n // useEffect(() => {\n // // using the default icon then fetch it from the static folder (not auth involved)\n // if (\n // !portalLogo ||\n // portalLogo.toLowerCase().includes(\"pzpega-logo-mark\") ||\n // portalLogo.toLowerCase().includes(\"py-logo\")\n // ) {\n // setIconURL(\n // `${PCore.getAssetLoader().getStaticServerUrl()}static/py-logo.svg`\n // );\n // }\n // // not using default icon to fetch it using the way which uses authentication\n // else {\n // PCore.getAssetLoader()\n // .getSvcImage(portalLogo)\n // .then((data) => {\n // setIconURL(window.URL.createObjectURL(data));\n // })\n // .catch(() => {\n // console.error(\n // `Unable to load the image for the portal logo/icon with the insName:${portalLogo}`\n // );\n // });\n // }\n // }, [portalLogo]);\n\n /**\n * To fetch recents and translate items into what Cosmos expects\n */\n // const fetchRecents = () => {\n // actionsAPI.getRecents(15).then((response) => {\n // const recentsitems = response.data.recents;\n // // setRecents(buildRecentList(recentsitems));\n // });\n // };\n\n /**\n * To handle on click of any recent item after the drawer is open\n *\n * @param {*} id : Recent item unique id\n */\n\n // const onItemClick = (id, e) => {\n // e.preventDefault();\n // // onRecentClickHandler(id, actionsAPI);\n // };\n\n // useState for appName and mapChildren - note these are ONLY updated once (on component mount!)\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [appName, setAppName] = useState(\"\");\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [mapChildren, setMapChildren] = useState([]);\n\n // Initial setting of appName and mapChildren\n useEffect( () => {\n setAppName(PCore.getEnvironmentInfo().getApplicationName());\n\n const tempMap = pConn.getChildren().map((child, index) => {\n const theChildComp = child.getPConnect().getComponentName();\n const theKey = `.${index}`;\n return <div id={theChildComp} key={theKey} style={{border: \"solid 1px silver\", margin: \"1px\"}}>{theChildComp} will be here</div>\n });\n\n setMapChildren(tempMap)\n\n }, []);\n\n if (pConn.hasChildren()) {\n // const theChildren = pConn.getChildren();\n // const mapChildCompNames = theChildren.map((child) => { return child.getPConnect().getComponentName()});\n\n // debugging/investigation help\n // console.log(`AppShell has children: ${theChildren.length}`);\n // console.log(`--> ${mapChildCompNames.map((name) => {return name;})}`);\n }\n\n return (\n\n <NavContext.Provider value={{open, setOpen}}>\n <div id=\"AppShell\" className={classes.root}>\n <NavBar pConn={getPConnect()} appName={appNameToDisplay} pages={pages} caseTypes={caseTypes}></NavBar>\n <div className={classes.content}>\n {children}\n </div>\n </div>\n </NavContext.Provider>\n\n // <Toaster dismissAfter={3000}>\n // <CosmosAppShell\n // {...{\n // appInfo: {\n // imageSrc: `${iconURL}`,\n // appName: `${appNameToDisplay}`,\n // portalName\n // },\n // recents: {\n // items: recents,\n // onDrawerOpen: fetchRecents,\n // onItemClick\n // },\n // searchInput: {\n // onSearchChange: (value) => {\n // setSearchVal(value);\n // },\n // onSearchSubmit: (value) => {\n // showSearchResults(value.trim());\n // setSearchVal(\"\");\n // },\n // value: searchVal\n // },\n // caseTypes: cases,\n // links,\n // cases: getActiveCases(),\n // operator: getOperator()\n // }}\n // main={[children]}\n // banners={banners}\n // className=\"app-shell\"\n // />\n // </Toaster>\n );\n}\nAppShell.defaultProps = {\n pages: [],\n caseTypes: [],\n children: [],\n // httpMessages: [],\n // activeCases: null\n};\nAppShell.propTypes = {\n // portalName: PropTypes.string/* .isRequired */,\n // portalLogo: PropTypes.string/* .isRequired */,\n showAppName: PropTypes.bool/* .isRequired */,\n pages: PropTypes.arrayOf(PropTypes.object),\n caseTypes: PropTypes.arrayOf(PropTypes.object),\n children: PropTypes.arrayOf(PropTypes.node),\n getPConnect: PropTypes.func.isRequired,\n // httpMessages: PropTypes.arrayOf(PropTypes.string),\n // activeCases: PropTypes.arrayOf(PropTypes.object)\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AppShell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/template/AppShell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { default } from './AppShell';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,iBAAwB,WAAW,CAAC,KAAK,KAAA,eAwCxC;kBAxCuB,WAAW;;;;;eAAX,WAAW"}
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import CaseSummaryFields from '../../designSystemExtension/CaseSummaryFields';
4
+ export default function CaseSummary(props) {
5
+ const { getPConnect, children } = props;
6
+ const thePConn = getPConnect();
7
+ const theConfigProps = thePConn.getConfigProps();
8
+ const { status, showStatus } = theConfigProps;
9
+ // from Nebula
10
+ // get the primary and secondary fields with the raw data (which has the non-resolved property values)
11
+ // const regionsRaw = getPConnect().getRawMetadata().children;
12
+ // const primaryFieldsRaw = regionsRaw[0].children;
13
+ // const secondaryFieldsRaw = regionsRaw[1].children;
14
+ // From other SDKs
15
+ // may want to move these into useEffect/useState combo
16
+ let arPrimaryFields = [];
17
+ let arSecondaryFields = [];
18
+ for (const child of children) {
19
+ const childPConn = child.props.getPConnect();
20
+ const childPConnData = childPConn.resolveConfigProps(childPConn.getRawMetadata());
21
+ if (childPConnData.name.toLowerCase() === "primary fields") {
22
+ arPrimaryFields = childPConnData.children;
23
+ }
24
+ else if (childPConnData.name.toLowerCase() === "secondary fields") {
25
+ arSecondaryFields = childPConnData.children;
26
+ }
27
+ }
28
+ // At this point, should hand off to another component for layout and rendering
29
+ // of primary and secondary fields in the Case Summary
30
+ // debugging/investigation help
31
+ // console.log(`CaseSummary: arPrimaryFields: ${JSON.stringify(arPrimaryFields)}`);
32
+ // console.log(`CaseSummary: arSecondaryFields: ${JSON.stringify(arSecondaryFields)}`);
33
+ return (React.createElement("div", { id: "CaseSummary" },
34
+ React.createElement(CaseSummaryFields, { status: status, showStatus: showStatus, theFields: arPrimaryFields }),
35
+ React.createElement(CaseSummaryFields, { theFields: arSecondaryFields })));
36
+ }
37
+ CaseSummary.propTypes = {
38
+ getPConnect: PropTypes.func.isRequired
39
+ };
40
+ //# sourceMappingURL=CaseSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseSummary.js","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,iBAAiB,MAAM,+CAA+C,CAAC;AAE9E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK;IACvC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,cAAc,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IACjD,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,cAAc,CAAC;IAE9C,cAAc;IACd,sGAAsG;IACtG,8DAA8D;IAC9D,mDAAmD;IACnD,qDAAqD;IAErD,kBAAkB;IAClB,uDAAuD;IACvD,IAAI,eAAe,GAAc,EAAE,CAAC;IACpC,IAAI,iBAAiB,GAAc,EAAE,CAAC;IAEtC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAC7C,MAAM,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC;QAClF,IAAI,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,gBAAgB,EAAE;YAC1D,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC;SAC3C;aAAM,IAAI,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,kBAAkB,EAAE;YACnE,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC;SAC7C;KACF;IAED,+EAA+E;IAC/E,uDAAuD;IAEvD,+BAA+B;IAC/B,mFAAmF;IACnF,uFAAuF;IAEvF,OAAO,CACL,6BAAK,EAAE,EAAC,aAAa;QACnB,oBAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,GAAI;QACzF,oBAAC,iBAAiB,IAAC,SAAS,EAAE,iBAAiB,GAAI,CAC/C,CACP,CAAA;AACH,CAAC;AAED,WAAW,CAAC,SAAS,GAAG;IACtB,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;CACvC,CAAC","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport CaseSummaryFields from '../../designSystemExtension/CaseSummaryFields';\n\nexport default function CaseSummary(props) {\n const { getPConnect, children } = props;\n const thePConn = getPConnect();\n const theConfigProps = thePConn.getConfigProps();\n const { status, showStatus } = theConfigProps;\n\n // from Nebula\n // get the primary and secondary fields with the raw data (which has the non-resolved property values)\n // const regionsRaw = getPConnect().getRawMetadata().children;\n // const primaryFieldsRaw = regionsRaw[0].children;\n // const secondaryFieldsRaw = regionsRaw[1].children;\n\n // From other SDKs\n // may want to move these into useEffect/useState combo\n let arPrimaryFields:Array<any> = [];\n let arSecondaryFields:Array<any> = [];\n\n for (const child of children) {\n const childPConn = child.props.getPConnect();\n const childPConnData = childPConn.resolveConfigProps(childPConn.getRawMetadata());\n if (childPConnData.name.toLowerCase() === \"primary fields\") {\n arPrimaryFields = childPConnData.children;\n } else if (childPConnData.name.toLowerCase() === \"secondary fields\") {\n arSecondaryFields = childPConnData.children;\n }\n }\n\n // At this point, should hand off to another component for layout and rendering\n // of primary and secondary fields in the Case Summary\n\n // debugging/investigation help\n // console.log(`CaseSummary: arPrimaryFields: ${JSON.stringify(arPrimaryFields)}`);\n // console.log(`CaseSummary: arSecondaryFields: ${JSON.stringify(arSecondaryFields)}`);\n\n return (\n <div id=\"CaseSummary\">\n <CaseSummaryFields status={status} showStatus={showStatus} theFields={arPrimaryFields} />\n <CaseSummaryFields theFields={arSecondaryFields} />\n </div>\n )\n}\n\nCaseSummary.propTypes = {\n getPConnect: PropTypes.func.isRequired\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/template/CaseSummary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './CaseSummary';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseView/CaseView.tsx"],"names":[],"mappings":";AAGA,OAAO,SAAS,MAAM,YAAY,CAAC;AA2CnC,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eAoMrC;kBApMuB,QAAQ;;;;;;;;;;;;;;;;;;;;eAAR,QAAQ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseView.js","sourceRoot":"","sources":["../../../../src/components/template/CaseView/CaseView.tsx"],"names":[],"mappings":"AAAA,4CAA4C;AAE5C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,YAAY,MAAM,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SAAS,CAAC,IAAI;CAC5B,CAAC","sourcesContent":["/* eslint-disable react/jsx-boolean-value */\n\nimport React, { useState, useEffect, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Utils } from '../../helpers/utils';\nimport { Card, CardHeader, Avatar, Typography, Divider } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Grid from '@material-ui/core/Grid';\n\nimport StoreContext from \"../../../bridge/Context/StoreContext\";\nimport CaseViewActionsMenu from \"../CaseViewActionsMenu\";\nimport VerticalTabs from '../../infra/VerticalTabs/VerticalTabs';\nimport DeferLoad from '../../infra/DeferLoad';\n\n\ndeclare const PCore;\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n caseViewHeader: {\n backgroundColor: theme.palette.info.light,\n color: theme.palette.getContrastText(theme.palette.info.light),\n borderRadius: \"inherit\",\n },\n caseViewIconBox: {\n backgroundColor: theme.palette.info.dark,\n width: theme.spacing(8),\n height: theme.spacing(8),\n padding: theme.spacing(1),\n },\n caseViewIconImage: {\n filter: 'invert(100%)'\n }\n}));\n\nexport default function CaseView(props) {\n const {\n getPConnect,\n icon,\n header,\n subheader,\n children,\n caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments }\n } = props;\n const currentCaseID = props.caseInfo.ID;\n let isComponentMounted = true;\n\n const { displayOnlyFA } = useContext(StoreContext);\n\n const thePConn = getPConnect();\n\n const classes = useStyles();\n\n\n /**\n *\n * @param inName the metadata <em>name</em> that will cause a region to be returned\n */\n function getChildRegionByName(inName: string): any {\n\n for (const child of children) {\n const theMetadataType: string = child.props.getPConnect().getRawMetadata()['type'].toLowerCase();\n const theMetadataName: string = child.props.getPConnect().getRawMetadata()['name'].toLowerCase();\n\n if ((theMetadataType === \"region\") && (theMetadataName === inName )) {\n return child;\n }\n }\n\n return null;\n }\n\n\n const theSummaryRegion = getChildRegionByName(\"summary\");\n const theStagesRegion = getChildRegionByName(\"stages\");\n const theTodoRegion = getChildRegionByName(\"todo\");\n const theUtilitiesRegion = getChildRegionByName(\"utilities\");\n const theTabsRegion = getChildRegionByName(\"tabs\");\n\n const svgCase = Utils.getImageSrc(icon, PCore.getAssetLoader().getStaticServerUrl());\n\n const [activeVertTab, setActiveVertTab] = useState(0);\n\n // const tmpLoadData1 = { config: { label: \"Details\", name: \"pyDetailsTabContent\" }, type: \"DeferLoad\" };\n // const tmpLoadData2 = { config: { label: \"Case History\", name: \"CaseHistory\" }, type: \"DeferLoad\" };\n\n // Extract the tabs we need to display from theTabsRegion (one tab per entry in theTabsRegionChildren)\n const theTabsRegionChildren = theTabsRegion.props.getPConnect().getChildren();\n\n // vertTabInfo is sent to VerticalTabs component\n const vertTabInfo: Array<Object> = [];\n\n // deferLoadInfo is sent to DeferLoad component (currently selected entry)\n const deferLoadInfo: Array<any> = [];\n\n if (theTabsRegionChildren) {\n // populate vertTabInfo and deferLoadInfo\n theTabsRegionChildren.forEach((tabComp, index) => {\n const theTabCompConfig = tabComp.getPConnect().getConfigProps();\n // eslint-disable-next-line prefer-const\n let { label, inheritedProps } = theTabCompConfig;\n // For some tabs, \"label\" property is not avaialable in theTabCompConfig, so will get them from inheritedProps\n if (!label) {\n inheritedProps.forEach(inheritedProp => {\n if (inheritedProp.prop === 'label') {\n label = inheritedProp.value;\n }\n });\n }\n // We'll display the tabs when either visibility property doesn't exist or is true(if exists)\n if (theTabCompConfig.visibility === undefined || theTabCompConfig.visibility === true) {\n vertTabInfo.push({ name: label, id: index });\n deferLoadInfo.push({ type: 'DeferLoad', config: theTabCompConfig });\n }\n });\n }\n\n\n\n function handleVerticalTabClick(eventDetail: any) {\n const theItem = parseInt(eventDetail.additionalData.itemClicked, 10);\n\n // only call useEffectSetter if the component is mounted\n if (isComponentMounted) {\n setActiveVertTab(theItem);\n }\n }\n\n\n // Add and Remove event listener for VerticalTabClick only at startup and teardown\n useEffect(() => {\n document.addEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n\n return ():void => {\n // inform that the component is unmounted so other code can\n // know not to try to call useState setters (to avoid console warnings)\n isComponentMounted = false;\n\n document.removeEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n }\n }, [])\n\n useEffect(() => {\n if (hasNewAttachments) {\n PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);\n }\n }, [hasNewAttachments]);\n\n function _editClick() {\n\n const editAction = availableActions.find(\n (action) => action.ID === \"pyUpdateCaseDetails\"\n );\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction( editAction.ID, { ...editAction});\n }\n\n\n function getActionButtonsHtml(): any {\n\n const aBHtml = <Box>\n <Button onClick={() => {_editClick()}}>Edit</Button>\n &nbsp;\n <CaseViewActionsMenu getPConnect={getPConnect} availableActions={availableActions} availableProcesses={availableProcesses} />\n </Box>;\n\n\n return aBHtml;\n\n }\n\n\n function getContainerContents() {\n\n if (!displayOnlyFA) {\n // show full portal\n return (\n <Grid container>\n <Grid item xs={3}>\n <div hidden={true} id=\"current-caseID\">{currentCaseID}</div>\n <Card className={classes.root} >\n <CardHeader className={classes.caseViewHeader}\n title={<Typography variant=\"h6\" component=\"div\">{header}</Typography>}\n subheader={<Typography variant=\"body1\" component=\"div\" id=\"caseId\">{subheader}</Typography>}\n avatar={\n <Avatar className={classes.caseViewIconBox} variant=\"square\">\n <img src={svgCase} className={classes.caseViewIconImage}/>\n </Avatar>\n }\n />\n {getActionButtonsHtml()}\n <Divider />\n {theSummaryRegion}\n <Divider />\n { vertTabInfo.length > 1 && <VerticalTabs tabconfig={vertTabInfo} />}\n </Card>\n </Grid>\n\n <Grid item xs={6}>\n {theStagesRegion}\n {theTodoRegion}\n { deferLoadInfo.length > 0 && <DeferLoad getPConnect={getPConnect} name={deferLoadInfo[activeVertTab].config.name } isTab />}\n </Grid>\n\n <Grid item xs={3}>\n {theUtilitiesRegion}\n </Grid>\n </Grid>\n )\n } else {\n // displayOnlyFA - only show the \"todo\" region\n return (\n <Grid container>\n <Grid item xs={12}>\n {theTodoRegion}\n </Grid>\n </Grid>\n )\n }\n }\n\n\n return (\n getContainerContents()\n );\n}\n\nCaseView.defaultProps = {\n icon: \"\",\n children: [],\n caseInfo: {},\n showIconInHeader: true,\n getPConnect: null\n};\n\nCaseView.propTypes = {\n icon: PropTypes.string,\n children: PropTypes.arrayOf(PropTypes.node),\n subheader: PropTypes.string.isRequired,\n header: PropTypes.string.isRequired,\n showIconInHeader: PropTypes.bool,\n caseInfo: PropTypes.objectOf(PropTypes.any),\n getPConnect: PropTypes.func\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/template/CaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { default } from './CaseView';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseViewActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,iBAAwB,mBAAmB,CAAC,KAAK,KAAA,eAuDhD;kBAvDuB,mBAAmB;;;;;;;;;;;eAAnB,mBAAmB"}
@@ -0,0 +1 @@
1
+ {"version":3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,CAAC,IAAI,CAAE,oBAAC,QAAQ,IAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC,IAAG,MAAM,CAAC,IAAI,CAAY,CAAE,CAAA;IACxH,CAAC,CAAC,CAAC;IAEH,kBAAkB,CAAC,OAAO,CAAE,CAAC,OAAO,EAAE,EAAE;QACtC,WAAW,CAAC,IAAI,CAAE,oBAAC,QAAQ,IAAC,OAAO,EAAE,WAAW,IAAG,OAAO,CAAC,IAAI,CAAY,CAAE,CAAA;IAC/E,CAAC,CAAC,CAAC;IAGH,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,oBAAC,MAAM,qBAAe,aAAa,mBAAe,MAAM,EAAC,OAAO,EAAE,WAAW,iBAEpE;QACT,oBAAC,IAAI,IACH,EAAE,EAAC,aAAa,EAChB,QAAQ,EAAE,QAAQ,EAClB,WAAW,QACX,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,IAEnB,WAAW,CACP,CACQ,CAClB,CAAC;AACJ,CAAC;AAED,mBAAmB,CAAC,YAAY,GAAG;IACjC,gBAAgB,EAAE,EAAE;IACpB,kBAAkB,EAAE,EAAE;CACvB,CAAA;AAED,mBAAmB,CAAC,SAAS,GAAG;IAC9B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,gBAAgB,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IACrD,kBAAkB,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;CACrD,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from \"prop-types\";\nimport Button from '@material-ui/core/Button';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\n\nexport default function CaseViewActionsMenu(props) {\n const {getPConnect, availableActions, availableProcesses} = props;\n const thePConn = getPConnect();\n\n\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const arMenuItems: Array<any> = [];\n\n\n function _actionMenuActionsClick(data) {\n\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction( data.ID, { ...data, containerName: 'modal', type: 'express'});\n // after doing the action, close the menu...\n handleClose();\n\n }\n\n\n availableActions.forEach( (action) => {\n arMenuItems.push( <MenuItem key={action.ID} onClick={() => _actionMenuActionsClick(action)}>{action.name}</MenuItem> )\n });\n\n availableProcesses.forEach( (process) => {\n arMenuItems.push( <MenuItem onClick={handleClose}>{process.name}</MenuItem> )\n });\n\n\n return (\n <React.Fragment>\n <Button aria-controls=\"simple-menu\" aria-haspopup=\"true\" onClick={handleClick}>\n Actions...\n </Button>\n <Menu\n id=\"simple-menu\"\n anchorEl={anchorEl}\n keepMounted\n open={Boolean(anchorEl)}\n onClose={handleClose}\n >\n {arMenuItems}\n </Menu>\n </React.Fragment>\n );\n}\n\nCaseViewActionsMenu.defaultProps = {\n availableActions: [],\n availableProcesses: []\n}\n\nCaseViewActionsMenu.propTypes = {\n getPConnect: PropTypes.func.isRequired,\n availableActions: PropTypes.arrayOf(PropTypes.object),\n availableProcesses: PropTypes.arrayOf(PropTypes.any)\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { default } from './CaseViewActionsMenu';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataReference.d.ts","sourceRoot":"","sources":["../../../../src/components/template/DataReference/DataReference.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,iBAAwB,aAAa,CAAC,KAAK,KAAA,OA4P1C;kBA5PuB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAb,aAAa"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataReference.js","sourceRoot":"","sources":["../../../../src/components/template/DataReference/DataReference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAE/D,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAI5D,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK;IACzC,MAAM,EACJ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,kCAAkC,EAClC,aAAa,EACb,aAAa,EACb,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACV,GAAG,KAAK,CAAC;IACV,IAAI,gBAAgB,GAAG,QAAQ,CAAC;IAChC,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACnE,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,iBAAiB,EAAE,EAAE,CAAC;IACtE,IAAI,UAAU,CAAC,SAAS,KAAK,KAAK,EAAE;QAClC,UAAU,CAAC,KAAK,GAA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;IACzB,WAAW,EAAE,SAAS,CAAC,MAAM;IAC7B,kCAAkC,EAAE,SAAS,CAAC,IAAI;IAClD,aAAa,EAAE,SAAS,CAAC,MAAM;IAC/B,aAAa,EAAE,SAAS,CAAC,MAAM;IAC/B,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,SAAS,CAAC,IAAI;CAC1B,CAAC","sourcesContent":["import React, { useMemo, useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport SingleReferenceReadonly from '../SingleReferenceReadOnly';\nimport MultiReferenceReadonly from '../MultiReferenceReadOnly';\n\nconst SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };\n\ndeclare const PCore: any;\n\nexport default function DataReference(props) {\n const {\n children,\n getPConnect,\n label,\n showLabel,\n displayMode,\n allowAndPersistChangesInReviewMode,\n referenceType,\n selectionMode,\n displayAs,\n ruleClass,\n parameters,\n hideLabel\n } = props;\n let childrenToRender = children;\n const pConn = getPConnect();\n const [dropDownDataSource, setDropDownDataSource] = useState(null);\n const propsToUse = { label, showLabel, ...pConn.getInheritedProps() };\n if (propsToUse.showLabel === false) {\n propsToUse.label = '';\n }\n const rawViewMetadata = pConn.getRawMetadata();\n const viewName = rawViewMetadata.name;\n const [firstChildMeta] = rawViewMetadata.children;\n const refList = rawViewMetadata.config.referenceList;\n const canBeChangedInReviewMode = allowAndPersistChangesInReviewMode && (displayAs === 'autocomplete' || displayAs === 'dropdown');\n let propName;\n const isDisplayModeEnabled = ['LABELS_LEFT', 'STACKED_LARGE_VAL'].includes(displayMode);\n let firstChildPConnect;\n\n /* Only for dropdown when it has param use data api to get the data back and add it to datasource */\n useEffect(() => {\n if (\n firstChildMeta?.type === \"Dropdown\" &&\n rawViewMetadata.config?.parameters\n ) {\n const { value, key, text } = firstChildMeta.config.datasource.fields;\n PCore.getDataApiUtils()\n .getData(refList, {\n dataViewParameters: parameters\n })\n .then((res) => {\n if (res.data.data !== null) {\n const ddDataSource = res.data.data\n .map((listItem) => ({\n key: listItem[key.split(\" .\", 2)[1]],\n text: listItem[text.split(\" .\", 2)[1]],\n value: listItem[value.split(\" .\", 2)[1]]\n }))\n .filter((item) => item.key);\n // Filtering out undefined entries that will break preview\n setDropDownDataSource(ddDataSource);\n } else {\n const ddDataSource: any = []\n setDropDownDataSource(ddDataSource);\n }\n })\n .catch((err) => {\n // eslint-disable-next-line no-console\n console.error(err?.stack);\n return Promise.resolve({\n data: { data: [] }\n });\n });\n }\n }, [firstChildMeta, rawViewMetadata, parameters]);\n\n if (firstChildMeta?.type !== 'Region') {\n firstChildPConnect = getPConnect().getChildren()[0].getPConnect;\n /* remove refresh When condition from those old view so that it will not be used for runtime */\n if (firstChildMeta.config?.readOnly) {\n delete firstChildMeta.config.readOnly;\n }\n if (firstChildMeta?.type === 'Dropdown') {\n firstChildMeta.config.datasource.source = rawViewMetadata.config?.parameters\n ? dropDownDataSource\n : '@DATASOURCE '.concat(refList).concat('.pxResults');\n } else if (firstChildMeta?.type === 'AutoComplete') {\n firstChildMeta.config.datasource = refList;\n\n /* Insert the parameters to the component only if present */\n if (rawViewMetadata.config?.parameters) {\n firstChildMeta.config.parameters = parameters;\n }\n }\n // set displayMode conditionally\n if (!canBeChangedInReviewMode) {\n firstChildMeta.config.displayMode = displayMode;\n }\n if (firstChildMeta.type === 'SimpleTableSelect' && selectionMode === SELECTION_MODE.MULTI) {\n propName = PCore.getAnnotationUtils().getPropertyName(firstChildMeta.config.selectionList);\n } else {\n propName = PCore.getAnnotationUtils().getPropertyName(firstChildMeta.config.value);\n }\n }\n\n const handleSelection = event => {\n const caseKey = pConn.getCaseInfo().getKey();\n const refreshOptions = { autoDetectRefresh: true };\n if (canBeChangedInReviewMode && pConn.getValue('__currentPageTabViewName')) {\n getPConnect()\n .getActionsApi()\n .refreshCaseView(caseKey, pConn.getValue('__currentPageTabViewName'), null, refreshOptions);\n PCore.getDeferLoadManager().refreshActiveComponents(pConn.getContextName());\n } else {\n const pgRef = pConn.getPageReference().replace('caseInfo.content', '');\n getPConnect().getActionsApi().refreshCaseView(caseKey, viewName, pgRef, refreshOptions);\n }\n\n // AutoComplete sets value on event.id whereas Dropdown sets it on event.target.value\n const propValue = event?.id || event?.target.value;\n if (propValue && canBeChangedInReviewMode && isDisplayModeEnabled) {\n PCore.getDataApiUtils()\n .getCaseEditLock(caseKey)\n .then(caseResponse => {\n const pageTokens = pConn.getPageReference().replace('caseInfo.content', '').split('.');\n let curr = {};\n const commitData = curr;\n\n pageTokens.forEach(el => {\n if (el !== '') {\n curr[el] = {};\n curr = curr[el];\n }\n });\n\n // expecting format like {Customer: {pyID:\"C-100\"}}\n const propArr = propName.split('.');\n propArr.forEach((element, idx) => {\n if (idx + 1 === propArr.length) {\n curr[element] = propValue;\n } else {\n curr[element] = {};\n curr = curr[element];\n }\n });\n\n PCore.getDataApiUtils()\n .updateCaseEditFieldsData(\n caseKey,\n { [caseKey]: commitData },\n caseResponse.headers.etag,\n pConn.getContextName()\n )\n .then(response => {\n PCore.getContainerUtils().updateChildContainersEtag(\n pConn.getContextName(),\n response.headers.etag\n );\n });\n });\n }\n };\n\n // Re-create first child with overridden props\n // Memoized child in order to stop unmount and remount of the child component when data reference\n // rerenders without any actual change\n const recreatedFirstChild = useMemo(() => {\n const { type, config } = firstChildMeta;\n if (firstChildMeta?.type !== 'Region') {\n pConn.clearErrorMessages({\n property: propName\n });\n if (!canBeChangedInReviewMode && isDisplayModeEnabled && selectionMode === SELECTION_MODE.SINGLE) {\n return (\n <SingleReferenceReadonly\n config={config}\n getPConnect={firstChildPConnect}\n label={propsToUse.label}\n type={type}\n displayAs={displayAs}\n displayMode={displayMode}\n ruleClass={ruleClass}\n referenceType={referenceType}\n hideLabel={hideLabel}\n dataRelationshipContext={\n rawViewMetadata.config.contextClass && rawViewMetadata.config.name ? rawViewMetadata.config.name : null\n }\n />\n );\n }\n\n if (isDisplayModeEnabled && selectionMode === SELECTION_MODE.MULTI) {\n return (\n <MultiReferenceReadonly\n config={config}\n getPConnect={firstChildPConnect}\n label={propsToUse.label}\n hideLabel={hideLabel}\n />\n );\n }\n\n // In the case of a datasource with parameters you cannot load the dropdown before the parameters\n if (\n type === 'Dropdown' &&\n rawViewMetadata.config?.parameters &&\n dropDownDataSource === null\n ) {\n return null;\n }\n\n return firstChildPConnect().createComponent({\n type,\n config: {\n ...config,\n required: propsToUse.required,\n visibility: propsToUse.visibility,\n disabled: propsToUse.disabled,\n label: propsToUse.label,\n viewName: getPConnect().getCurrentView(),\n parameters: rawViewMetadata.config.parameters,\n readOnly: false,\n localeReference: rawViewMetadata.config.localeReference,\n ...(selectionMode === SELECTION_MODE.SINGLE ? { referenceType } : ''),\n dataRelationshipContext:\n rawViewMetadata.config.contextClass && rawViewMetadata.config.name\n ? rawViewMetadata.config.name\n : null,\n hideLabel,\n onRecordChange: handleSelection\n }\n });\n }\n }, [\n firstChildMeta.config?.datasource?.source,\n parameters,\n dropDownDataSource,\n propsToUse.required,\n propsToUse.disabled\n ]);\n\n // Only include the views region for rendering when it has content\n if (firstChildMeta?.type !== 'Region') {\n const viewsRegion = rawViewMetadata.children[1];\n if (viewsRegion?.name === 'Views' && viewsRegion.children.length) {\n childrenToRender = [recreatedFirstChild, ...children.slice(1)];\n } else {\n childrenToRender = [recreatedFirstChild];\n }\n }\n\n return childrenToRender.length === 1 ? (\n childrenToRender[0] ?? null\n ) : (\n <div>\n {childrenToRender.map(child => (\n <React.Fragment>{child}</React.Fragment>\n ))}\n </div>\n );\n}\n\nDataReference.defaultProps = {\n label: undefined,\n showLabel: undefined,\n displayMode: undefined,\n allowAndPersistChangesInReviewMode: false,\n referenceType: '',\n selectionMode: '',\n displayAs: '',\n ruleClass: '',\n parameters: undefined,\n hideLabel: false\n};\n\nDataReference.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n getPConnect: PropTypes.func.isRequired,\n label: PropTypes.string,\n showLabel: PropTypes.func,\n displayMode: PropTypes.string,\n allowAndPersistChangesInReviewMode: PropTypes.bool,\n referenceType: PropTypes.string,\n selectionMode: PropTypes.string,\n displayAs: PropTypes.string,\n ruleClass: PropTypes.string,\n parameters: PropTypes.arrayOf(PropTypes.string), // need to fix\n hideLabel: PropTypes.bool\n};\n"]}