@pega/react-sdk-components 0.23.0

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 (841) hide show
  1. package/lib/bridge/Context/StoreContext.d.ts +4 -0
  2. package/lib/bridge/Context/StoreContext.d.ts.map +1 -0
  3. package/lib/bridge/Context/StoreContext.js +10 -0
  4. package/lib/bridge/Context/StoreContext.js.map +1 -0
  5. package/lib/bridge/helpers/sdk_component_map.d.ts +3 -0
  6. package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -0
  7. package/lib/bridge/helpers/sdk_component_map.js +239 -0
  8. package/lib/bridge/helpers/sdk_component_map.js.map +1 -0
  9. package/lib/bridge/react_pconnect.d.ts +9 -0
  10. package/lib/bridge/react_pconnect.d.ts.map +1 -0
  11. package/lib/bridge/react_pconnect.js +334 -0
  12. package/lib/bridge/react_pconnect.js.map +1 -0
  13. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.css +19 -0
  14. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts +13 -0
  15. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -0
  16. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js +102 -0
  17. package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js.map +1 -0
  18. package/lib/components/designSystemExtensions/CaseSummaryFields/index.d.ts +2 -0
  19. package/lib/components/designSystemExtensions/CaseSummaryFields/index.d.ts.map +1 -0
  20. package/lib/components/designSystemExtensions/CaseSummaryFields/index.js +2 -0
  21. package/lib/components/designSystemExtensions/CaseSummaryFields/index.js.map +1 -0
  22. package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.d.ts +13 -0
  23. package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.d.ts.map +1 -0
  24. package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js +112 -0
  25. package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js.map +1 -0
  26. package/lib/components/designSystemExtensions/DetailsFields/index.d.ts +2 -0
  27. package/lib/components/designSystemExtensions/DetailsFields/index.d.ts.map +1 -0
  28. package/lib/components/designSystemExtensions/DetailsFields/index.js +2 -0
  29. package/lib/components/designSystemExtensions/DetailsFields/index.js.map +1 -0
  30. package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.d.ts +4 -0
  31. package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.d.ts.map +1 -0
  32. package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.js +76 -0
  33. package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.js.map +1 -0
  34. package/lib/components/designSystemExtensions/FieldGroup/index.d.ts +2 -0
  35. package/lib/components/designSystemExtensions/FieldGroup/index.d.ts.map +1 -0
  36. package/lib/components/designSystemExtensions/FieldGroup/index.js +2 -0
  37. package/lib/components/designSystemExtensions/FieldGroup/index.js.map +1 -0
  38. package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.d.ts +4 -0
  39. package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.d.ts.map +1 -0
  40. package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.js +27 -0
  41. package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.js.map +1 -0
  42. package/lib/components/designSystemExtensions/FieldGroupList/index.d.ts +2 -0
  43. package/lib/components/designSystemExtensions/FieldGroupList/index.d.ts.map +1 -0
  44. package/lib/components/designSystemExtensions/FieldGroupList/index.js +2 -0
  45. package/lib/components/designSystemExtensions/FieldGroupList/index.js.map +1 -0
  46. package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.d.ts +4 -0
  47. package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.d.ts.map +1 -0
  48. package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.js +69 -0
  49. package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.js.map +1 -0
  50. package/lib/components/designSystemExtensions/FieldValueList/index.d.ts +2 -0
  51. package/lib/components/designSystemExtensions/FieldValueList/index.d.ts.map +1 -0
  52. package/lib/components/designSystemExtensions/FieldValueList/index.js +2 -0
  53. package/lib/components/designSystemExtensions/FieldValueList/index.js.map +1 -0
  54. package/lib/components/designSystemExtensions/Operator/Operator.d.ts +11 -0
  55. package/lib/components/designSystemExtensions/Operator/Operator.d.ts.map +1 -0
  56. package/lib/components/designSystemExtensions/Operator/Operator.js +154 -0
  57. package/lib/components/designSystemExtensions/Operator/Operator.js.map +1 -0
  58. package/lib/components/designSystemExtensions/Operator/index.d.ts +2 -0
  59. package/lib/components/designSystemExtensions/Operator/index.d.ts.map +1 -0
  60. package/lib/components/designSystemExtensions/Operator/index.js +2 -0
  61. package/lib/components/designSystemExtensions/Operator/index.js.map +1 -0
  62. package/lib/components/designSystemExtensions/Pulse/Pulse.d.ts +3 -0
  63. package/lib/components/designSystemExtensions/Pulse/Pulse.d.ts.map +1 -0
  64. package/lib/components/designSystemExtensions/Pulse/Pulse.js +24 -0
  65. package/lib/components/designSystemExtensions/Pulse/Pulse.js.map +1 -0
  66. package/lib/components/designSystemExtensions/Pulse/index.d.ts +2 -0
  67. package/lib/components/designSystemExtensions/Pulse/index.d.ts.map +1 -0
  68. package/lib/components/designSystemExtensions/Pulse/index.js +2 -0
  69. package/lib/components/designSystemExtensions/Pulse/index.js.map +1 -0
  70. package/lib/components/forms/AutoComplete/AutoComplete.d.ts +3 -0
  71. package/lib/components/forms/AutoComplete/AutoComplete.d.ts.map +1 -0
  72. package/lib/components/forms/AutoComplete/AutoComplete.js +118 -0
  73. package/lib/components/forms/AutoComplete/AutoComplete.js.map +1 -0
  74. package/lib/components/forms/AutoComplete/index.d.ts +2 -0
  75. package/lib/components/forms/AutoComplete/index.d.ts.map +1 -0
  76. package/lib/components/forms/AutoComplete/index.js +2 -0
  77. package/lib/components/forms/AutoComplete/index.js.map +1 -0
  78. package/lib/components/forms/CancelAlert/CancelAlert.css +24 -0
  79. package/lib/components/forms/CancelAlert/CancelAlert.d.ts +5 -0
  80. package/lib/components/forms/CancelAlert/CancelAlert.d.ts.map +1 -0
  81. package/lib/components/forms/CancelAlert/CancelAlert.js +81 -0
  82. package/lib/components/forms/CancelAlert/CancelAlert.js.map +1 -0
  83. package/lib/components/forms/CancelAlert/index.d.ts +2 -0
  84. package/lib/components/forms/CancelAlert/index.d.ts.map +1 -0
  85. package/lib/components/forms/CancelAlert/index.js +2 -0
  86. package/lib/components/forms/CancelAlert/index.js.map +1 -0
  87. package/lib/components/forms/Checkbox/Checkbox.d.ts +3 -0
  88. package/lib/components/forms/Checkbox/Checkbox.d.ts.map +1 -0
  89. package/lib/components/forms/Checkbox/Checkbox.js +34 -0
  90. package/lib/components/forms/Checkbox/Checkbox.js.map +1 -0
  91. package/lib/components/forms/Checkbox/index.d.ts +2 -0
  92. package/lib/components/forms/Checkbox/index.d.ts.map +1 -0
  93. package/lib/components/forms/Checkbox/index.js +2 -0
  94. package/lib/components/forms/Checkbox/index.js.map +1 -0
  95. package/lib/components/forms/Currency/Currency.d.ts +3 -0
  96. package/lib/components/forms/Currency/Currency.d.ts.map +1 -0
  97. package/lib/components/forms/Currency/Currency.js +46 -0
  98. package/lib/components/forms/Currency/Currency.js.map +1 -0
  99. package/lib/components/forms/Currency/index.d.ts +2 -0
  100. package/lib/components/forms/Currency/index.d.ts.map +1 -0
  101. package/lib/components/forms/Currency/index.js +2 -0
  102. package/lib/components/forms/Currency/index.js.map +1 -0
  103. package/lib/components/forms/Date/Date.d.ts +3 -0
  104. package/lib/components/forms/Date/Date.d.ts.map +1 -0
  105. package/lib/components/forms/Date/Date.js +36 -0
  106. package/lib/components/forms/Date/Date.js.map +1 -0
  107. package/lib/components/forms/Date/index.d.ts +2 -0
  108. package/lib/components/forms/Date/index.d.ts.map +1 -0
  109. package/lib/components/forms/Date/index.js +2 -0
  110. package/lib/components/forms/Date/index.js.map +1 -0
  111. package/lib/components/forms/DateTime/DateTime.d.ts +3 -0
  112. package/lib/components/forms/DateTime/DateTime.d.ts.map +1 -0
  113. package/lib/components/forms/DateTime/DateTime.js +35 -0
  114. package/lib/components/forms/DateTime/DateTime.js.map +1 -0
  115. package/lib/components/forms/DateTime/index.d.ts +2 -0
  116. package/lib/components/forms/DateTime/index.d.ts.map +1 -0
  117. package/lib/components/forms/DateTime/index.js +2 -0
  118. package/lib/components/forms/DateTime/index.js.map +1 -0
  119. package/lib/components/forms/Decimal/Decimal.d.ts +3 -0
  120. package/lib/components/forms/Decimal/Decimal.d.ts.map +1 -0
  121. package/lib/components/forms/Decimal/Decimal.js +19 -0
  122. package/lib/components/forms/Decimal/Decimal.js.map +1 -0
  123. package/lib/components/forms/Decimal/index.d.ts +2 -0
  124. package/lib/components/forms/Decimal/index.d.ts.map +1 -0
  125. package/lib/components/forms/Decimal/index.js +2 -0
  126. package/lib/components/forms/Decimal/index.js.map +1 -0
  127. package/lib/components/forms/Dropdown/Dropdown.d.ts +3 -0
  128. package/lib/components/forms/Dropdown/Dropdown.d.ts.map +1 -0
  129. package/lib/components/forms/Dropdown/Dropdown.js +34 -0
  130. package/lib/components/forms/Dropdown/Dropdown.js.map +1 -0
  131. package/lib/components/forms/Dropdown/index.d.ts +2 -0
  132. package/lib/components/forms/Dropdown/index.d.ts.map +1 -0
  133. package/lib/components/forms/Dropdown/index.js +2 -0
  134. package/lib/components/forms/Dropdown/index.js.map +1 -0
  135. package/lib/components/forms/Email/Email.d.ts +3 -0
  136. package/lib/components/forms/Email/Email.d.ts.map +1 -0
  137. package/lib/components/forms/Email/Email.js +28 -0
  138. package/lib/components/forms/Email/Email.js.map +1 -0
  139. package/lib/components/forms/Email/index.d.ts +2 -0
  140. package/lib/components/forms/Email/index.d.ts.map +1 -0
  141. package/lib/components/forms/Email/index.js +2 -0
  142. package/lib/components/forms/Email/index.js.map +1 -0
  143. package/lib/components/forms/Integer/Integer.d.ts +3 -0
  144. package/lib/components/forms/Integer/Integer.d.ts.map +1 -0
  145. package/lib/components/forms/Integer/Integer.js +37 -0
  146. package/lib/components/forms/Integer/Integer.js.map +1 -0
  147. package/lib/components/forms/Integer/index.d.ts +2 -0
  148. package/lib/components/forms/Integer/index.d.ts.map +1 -0
  149. package/lib/components/forms/Integer/index.js +2 -0
  150. package/lib/components/forms/Integer/index.js.map +1 -0
  151. package/lib/components/forms/Percentage/Percentage.d.ts +3 -0
  152. package/lib/components/forms/Percentage/Percentage.d.ts.map +1 -0
  153. package/lib/components/forms/Percentage/Percentage.js +42 -0
  154. package/lib/components/forms/Percentage/Percentage.js.map +1 -0
  155. package/lib/components/forms/Percentage/index.d.ts +2 -0
  156. package/lib/components/forms/Percentage/index.d.ts.map +1 -0
  157. package/lib/components/forms/Percentage/index.js +2 -0
  158. package/lib/components/forms/Percentage/index.js.map +1 -0
  159. package/lib/components/forms/Phone/Phone.d.ts +3 -0
  160. package/lib/components/forms/Phone/Phone.d.ts.map +1 -0
  161. package/lib/components/forms/Phone/Phone.js +36 -0
  162. package/lib/components/forms/Phone/Phone.js.map +1 -0
  163. package/lib/components/forms/Phone/index.d.ts +2 -0
  164. package/lib/components/forms/Phone/index.d.ts.map +1 -0
  165. package/lib/components/forms/Phone/index.js +2 -0
  166. package/lib/components/forms/Phone/index.js.map +1 -0
  167. package/lib/components/forms/RadioButtons/RadioButtons.d.ts +3 -0
  168. package/lib/components/forms/RadioButtons/RadioButtons.d.ts.map +1 -0
  169. package/lib/components/forms/RadioButtons/RadioButtons.js +33 -0
  170. package/lib/components/forms/RadioButtons/RadioButtons.js.map +1 -0
  171. package/lib/components/forms/RadioButtons/index.d.ts +2 -0
  172. package/lib/components/forms/RadioButtons/index.d.ts.map +1 -0
  173. package/lib/components/forms/RadioButtons/index.js +2 -0
  174. package/lib/components/forms/RadioButtons/index.js.map +1 -0
  175. package/lib/components/forms/SemanticLink/SemanticLink.d.ts +12 -0
  176. package/lib/components/forms/SemanticLink/SemanticLink.d.ts.map +1 -0
  177. package/lib/components/forms/SemanticLink/SemanticLink.js +55 -0
  178. package/lib/components/forms/SemanticLink/SemanticLink.js.map +1 -0
  179. package/lib/components/forms/SemanticLink/index.d.ts +2 -0
  180. package/lib/components/forms/SemanticLink/index.d.ts.map +1 -0
  181. package/lib/components/forms/SemanticLink/index.js +2 -0
  182. package/lib/components/forms/SemanticLink/index.js.map +1 -0
  183. package/lib/components/forms/SemanticLink/utils.d.ts +14 -0
  184. package/lib/components/forms/SemanticLink/utils.d.ts.map +1 -0
  185. package/lib/components/forms/SemanticLink/utils.js +42 -0
  186. package/lib/components/forms/SemanticLink/utils.js.map +1 -0
  187. package/lib/components/forms/TextArea/TextArea.d.ts +3 -0
  188. package/lib/components/forms/TextArea/TextArea.d.ts.map +1 -0
  189. package/lib/components/forms/TextArea/TextArea.js +26 -0
  190. package/lib/components/forms/TextArea/TextArea.js.map +1 -0
  191. package/lib/components/forms/TextArea/index.d.ts +2 -0
  192. package/lib/components/forms/TextArea/index.d.ts.map +1 -0
  193. package/lib/components/forms/TextArea/index.js +2 -0
  194. package/lib/components/forms/TextArea/index.js.map +1 -0
  195. package/lib/components/forms/TextContent/TextContent.d.ts +3 -0
  196. package/lib/components/forms/TextContent/TextContent.d.ts.map +1 -0
  197. package/lib/components/forms/TextContent/TextContent.js +29 -0
  198. package/lib/components/forms/TextContent/TextContent.js.map +1 -0
  199. package/lib/components/forms/TextContent/index.d.ts +2 -0
  200. package/lib/components/forms/TextContent/index.d.ts.map +1 -0
  201. package/lib/components/forms/TextContent/index.js +2 -0
  202. package/lib/components/forms/TextContent/index.js.map +1 -0
  203. package/lib/components/forms/TextInput/TextInput.d.ts +3 -0
  204. package/lib/components/forms/TextInput/TextInput.d.ts.map +1 -0
  205. package/lib/components/forms/TextInput/TextInput.js +24 -0
  206. package/lib/components/forms/TextInput/TextInput.js.map +1 -0
  207. package/lib/components/forms/TextInput/index.d.ts +2 -0
  208. package/lib/components/forms/TextInput/index.d.ts.map +1 -0
  209. package/lib/components/forms/TextInput/index.js +2 -0
  210. package/lib/components/forms/TextInput/index.js.map +1 -0
  211. package/lib/components/forms/Time/Time.d.ts +3 -0
  212. package/lib/components/forms/Time/Time.d.ts.map +1 -0
  213. package/lib/components/forms/Time/Time.js +34 -0
  214. package/lib/components/forms/Time/Time.js.map +1 -0
  215. package/lib/components/forms/Time/index.d.ts +2 -0
  216. package/lib/components/forms/Time/index.d.ts.map +1 -0
  217. package/lib/components/forms/Time/index.js +2 -0
  218. package/lib/components/forms/Time/index.js.map +1 -0
  219. package/lib/components/forms/URL/URL.d.ts +3 -0
  220. package/lib/components/forms/URL/URL.d.ts.map +1 -0
  221. package/lib/components/forms/URL/URL.js +22 -0
  222. package/lib/components/forms/URL/URL.js.map +1 -0
  223. package/lib/components/forms/URL/index.d.ts +2 -0
  224. package/lib/components/forms/URL/index.d.ts.map +1 -0
  225. package/lib/components/forms/URL/index.js +2 -0
  226. package/lib/components/forms/URL/index.js.map +1 -0
  227. package/lib/components/forms/UserReference/UserReference.d.ts +43 -0
  228. package/lib/components/forms/UserReference/UserReference.d.ts.map +1 -0
  229. package/lib/components/forms/UserReference/UserReference.js +127 -0
  230. package/lib/components/forms/UserReference/UserReference.js.map +1 -0
  231. package/lib/components/forms/UserReference/UserReferenceUtils.d.ts +3 -0
  232. package/lib/components/forms/UserReference/UserReferenceUtils.d.ts.map +1 -0
  233. package/lib/components/forms/UserReference/UserReferenceUtils.js +14 -0
  234. package/lib/components/forms/UserReference/UserReferenceUtils.js.map +1 -0
  235. package/lib/components/forms/UserReference/index.d.ts +2 -0
  236. package/lib/components/forms/UserReference/index.d.ts.map +1 -0
  237. package/lib/components/forms/UserReference/index.js +2 -0
  238. package/lib/components/forms/UserReference/index.js.map +1 -0
  239. package/lib/components/helpers/auth.d.ts +16 -0
  240. package/lib/components/helpers/auth.d.ts.map +1 -0
  241. package/lib/components/helpers/auth.js +437 -0
  242. package/lib/components/helpers/auth.js.map +1 -0
  243. package/lib/components/helpers/authManager.d.ts +18 -0
  244. package/lib/components/helpers/authManager.d.ts.map +1 -0
  245. package/lib/components/helpers/authManager.js +588 -0
  246. package/lib/components/helpers/authManager.js.map +1 -0
  247. package/lib/components/helpers/config_access.d.ts +3 -0
  248. package/lib/components/helpers/config_access.d.ts.map +1 -0
  249. package/lib/components/helpers/config_access.js +268 -0
  250. package/lib/components/helpers/config_access.js.map +1 -0
  251. package/lib/components/helpers/data_page.d.ts +2 -0
  252. package/lib/components/helpers/data_page.d.ts.map +1 -0
  253. package/lib/components/helpers/data_page.js +23 -0
  254. package/lib/components/helpers/data_page.js.map +1 -0
  255. package/lib/components/helpers/event-utils.d.ts +3 -0
  256. package/lib/components/helpers/event-utils.d.ts.map +1 -0
  257. package/lib/components/helpers/event-utils.js +19 -0
  258. package/lib/components/helpers/event-utils.js.map +1 -0
  259. package/lib/components/helpers/field-group-utils.d.ts +3 -0
  260. package/lib/components/helpers/field-group-utils.d.ts.map +1 -0
  261. package/lib/components/helpers/field-group-utils.js +57 -0
  262. package/lib/components/helpers/field-group-utils.js.map +1 -0
  263. package/lib/components/helpers/formatters/Boolean.d.ts +5 -0
  264. package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -0
  265. package/lib/components/helpers/formatters/Boolean.js +31 -0
  266. package/lib/components/helpers/formatters/Boolean.js.map +1 -0
  267. package/lib/components/helpers/formatters/Currency.d.ts +10 -0
  268. package/lib/components/helpers/formatters/Currency.d.ts.map +1 -0
  269. package/lib/components/helpers/formatters/Currency.js +62 -0
  270. package/lib/components/helpers/formatters/Currency.js.map +1 -0
  271. package/lib/components/helpers/formatters/CurrencyMap.d.ts +1401 -0
  272. package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -0
  273. package/lib/components/helpers/formatters/CurrencyMap.js +903 -0
  274. package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -0
  275. package/lib/components/helpers/formatters/Date.d.ts +11 -0
  276. package/lib/components/helpers/formatters/Date.d.ts.map +1 -0
  277. package/lib/components/helpers/formatters/Date.js +69 -0
  278. package/lib/components/helpers/formatters/Date.js.map +1 -0
  279. package/lib/components/helpers/formatters/common.d.ts +3 -0
  280. package/lib/components/helpers/formatters/common.d.ts.map +1 -0
  281. package/lib/components/helpers/formatters/common.js +12 -0
  282. package/lib/components/helpers/formatters/common.js.map +1 -0
  283. package/lib/components/helpers/formatters/index.d.ts +19 -0
  284. package/lib/components/helpers/formatters/index.d.ts.map +1 -0
  285. package/lib/components/helpers/formatters/index.js +104 -0
  286. package/lib/components/helpers/formatters/index.js.map +1 -0
  287. package/lib/components/helpers/utils.d.ts +19 -0
  288. package/lib/components/helpers/utils.d.ts.map +1 -0
  289. package/lib/components/helpers/utils.js +310 -0
  290. package/lib/components/helpers/utils.js.map +1 -0
  291. package/lib/components/helpers/versionHelpers.d.ts +9 -0
  292. package/lib/components/helpers/versionHelpers.d.ts.map +1 -0
  293. package/lib/components/helpers/versionHelpers.js +13 -0
  294. package/lib/components/helpers/versionHelpers.js.map +1 -0
  295. package/lib/components/infra/ActionButtons/ActionButtons.d.ts +16 -0
  296. package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -0
  297. package/lib/components/infra/ActionButtons/ActionButtons.js +42 -0
  298. package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -0
  299. package/lib/components/infra/ActionButtons/index.d.ts +2 -0
  300. package/lib/components/infra/ActionButtons/index.d.ts.map +1 -0
  301. package/lib/components/infra/ActionButtons/index.js +2 -0
  302. package/lib/components/infra/ActionButtons/index.js.map +1 -0
  303. package/lib/components/infra/Assignment/Assignment.d.ts +17 -0
  304. package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -0
  305. package/lib/components/infra/Assignment/Assignment.js +217 -0
  306. package/lib/components/infra/Assignment/Assignment.js.map +1 -0
  307. package/lib/components/infra/Assignment/index.d.ts +2 -0
  308. package/lib/components/infra/Assignment/index.d.ts.map +1 -0
  309. package/lib/components/infra/Assignment/index.js +2 -0
  310. package/lib/components/infra/Assignment/index.js.map +1 -0
  311. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +17 -0
  312. package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -0
  313. package/lib/components/infra/AssignmentCard/AssignmentCard.js +35 -0
  314. package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -0
  315. package/lib/components/infra/AssignmentCard/index.d.ts +2 -0
  316. package/lib/components/infra/AssignmentCard/index.d.ts.map +1 -0
  317. package/lib/components/infra/AssignmentCard/index.js +2 -0
  318. package/lib/components/infra/AssignmentCard/index.js.map +1 -0
  319. package/lib/components/infra/Attachment/Attachment.css +18 -0
  320. package/lib/components/infra/Attachment/Attachment.d.ts +4 -0
  321. package/lib/components/infra/Attachment/Attachment.d.ts.map +1 -0
  322. package/lib/components/infra/Attachment/Attachment.js +334 -0
  323. package/lib/components/infra/Attachment/Attachment.js.map +1 -0
  324. package/lib/components/infra/Attachment/AttachmentUtils.d.ts +13 -0
  325. package/lib/components/infra/Attachment/AttachmentUtils.d.ts.map +1 -0
  326. package/lib/components/infra/Attachment/AttachmentUtils.js +72 -0
  327. package/lib/components/infra/Attachment/AttachmentUtils.js.map +1 -0
  328. package/lib/components/infra/Attachment/index.d.ts +2 -0
  329. package/lib/components/infra/Attachment/index.d.ts.map +1 -0
  330. package/lib/components/infra/Attachment/index.js +2 -0
  331. package/lib/components/infra/Attachment/index.js.map +1 -0
  332. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +23 -0
  333. package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -0
  334. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +370 -0
  335. package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -0
  336. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts +13 -0
  337. package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -0
  338. package/lib/components/infra/Containers/FlowContainer/helpers.js +117 -0
  339. package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -0
  340. package/lib/components/infra/Containers/FlowContainer/index.d.ts +2 -0
  341. package/lib/components/infra/Containers/FlowContainer/index.d.ts.map +1 -0
  342. package/lib/components/infra/Containers/FlowContainer/index.js +2 -0
  343. package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -0
  344. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +19 -0
  345. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -0
  346. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +248 -0
  347. package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -0
  348. package/lib/components/infra/Containers/ModalViewContainer/index.d.ts +2 -0
  349. package/lib/components/infra/Containers/ModalViewContainer/index.d.ts.map +1 -0
  350. package/lib/components/infra/Containers/ModalViewContainer/index.js +2 -0
  351. package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -0
  352. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +25 -0
  353. package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -0
  354. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +167 -0
  355. package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -0
  356. package/lib/components/infra/Containers/ViewContainer/index.d.ts +2 -0
  357. package/lib/components/infra/Containers/ViewContainer/index.d.ts.map +1 -0
  358. package/lib/components/infra/Containers/ViewContainer/index.js +2 -0
  359. package/lib/components/infra/Containers/ViewContainer/index.js.map +1 -0
  360. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +23 -0
  361. package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -0
  362. package/lib/components/infra/DashboardFilter/DashboardFilter.js +110 -0
  363. package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -0
  364. package/lib/components/infra/DashboardFilter/filterUtils.d.ts +35 -0
  365. package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -0
  366. package/lib/components/infra/DashboardFilter/filterUtils.js +134 -0
  367. package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -0
  368. package/lib/components/infra/DashboardFilter/index.d.ts +2 -0
  369. package/lib/components/infra/DashboardFilter/index.d.ts.map +1 -0
  370. package/lib/components/infra/DashboardFilter/index.js +2 -0
  371. package/lib/components/infra/DashboardFilter/index.js.map +1 -0
  372. package/lib/components/infra/DeferLoad/DeferLoad.d.ts +15 -0
  373. package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -0
  374. package/lib/components/infra/DeferLoad/DeferLoad.js +139 -0
  375. package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -0
  376. package/lib/components/infra/DeferLoad/index.d.ts +2 -0
  377. package/lib/components/infra/DeferLoad/index.d.ts.map +1 -0
  378. package/lib/components/infra/DeferLoad/index.js +2 -0
  379. package/lib/components/infra/DeferLoad/index.js.map +1 -0
  380. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +15 -0
  381. package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
  382. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +86 -0
  383. package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -0
  384. package/lib/components/infra/ErrorBoundary/index.d.ts +2 -0
  385. package/lib/components/infra/ErrorBoundary/index.d.ts.map +1 -0
  386. package/lib/components/infra/ErrorBoundary/index.js +2 -0
  387. package/lib/components/infra/ErrorBoundary/index.js.map +1 -0
  388. package/lib/components/infra/MultiStep/MultiStep.css +261 -0
  389. package/lib/components/infra/MultiStep/MultiStep.d.ts +21 -0
  390. package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -0
  391. package/lib/components/infra/MultiStep/MultiStep.js +130 -0
  392. package/lib/components/infra/MultiStep/MultiStep.js.map +1 -0
  393. package/lib/components/infra/MultiStep/index.d.ts +2 -0
  394. package/lib/components/infra/MultiStep/index.d.ts.map +1 -0
  395. package/lib/components/infra/MultiStep/index.js +2 -0
  396. package/lib/components/infra/MultiStep/index.js.map +1 -0
  397. package/lib/components/infra/NavBar/NavBar.css +170 -0
  398. package/lib/components/infra/NavBar/NavBar.d.ts +20 -0
  399. package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -0
  400. package/lib/components/infra/NavBar/NavBar.js +266 -0
  401. package/lib/components/infra/NavBar/NavBar.js.map +1 -0
  402. package/lib/components/infra/NavBar/index.d.ts +2 -0
  403. package/lib/components/infra/NavBar/index.d.ts.map +1 -0
  404. package/lib/components/infra/NavBar/index.js +2 -0
  405. package/lib/components/infra/NavBar/index.js.map +1 -0
  406. package/lib/components/infra/Reference/Reference.d.ts +20 -0
  407. package/lib/components/infra/Reference/Reference.d.ts.map +1 -0
  408. package/lib/components/infra/Reference/Reference.js +48 -0
  409. package/lib/components/infra/Reference/Reference.js.map +1 -0
  410. package/lib/components/infra/Reference/index.d.ts +2 -0
  411. package/lib/components/infra/Reference/index.d.ts.map +1 -0
  412. package/lib/components/infra/Reference/index.js +2 -0
  413. package/lib/components/infra/Reference/index.js.map +1 -0
  414. package/lib/components/infra/Region/Region.d.ts +10 -0
  415. package/lib/components/infra/Region/Region.d.ts.map +1 -0
  416. package/lib/components/infra/Region/Region.js +11 -0
  417. package/lib/components/infra/Region/Region.js.map +1 -0
  418. package/lib/components/infra/Region/index.d.ts +2 -0
  419. package/lib/components/infra/Region/index.d.ts.map +1 -0
  420. package/lib/components/infra/Region/index.js +2 -0
  421. package/lib/components/infra/Region/index.js.map +1 -0
  422. package/lib/components/infra/RootContainer/RootContainer.d.ts +22 -0
  423. package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -0
  424. package/lib/components/infra/RootContainer/RootContainer.js +258 -0
  425. package/lib/components/infra/RootContainer/RootContainer.js.map +1 -0
  426. package/lib/components/infra/RootContainer/index.d.ts +2 -0
  427. package/lib/components/infra/RootContainer/index.d.ts.map +1 -0
  428. package/lib/components/infra/RootContainer/index.js +2 -0
  429. package/lib/components/infra/RootContainer/index.js.map +1 -0
  430. package/lib/components/infra/Stages/Stages.d.ts +11 -0
  431. package/lib/components/infra/Stages/Stages.d.ts.map +1 -0
  432. package/lib/components/infra/Stages/Stages.js +94 -0
  433. package/lib/components/infra/Stages/Stages.js.map +1 -0
  434. package/lib/components/infra/Stages/index.d.ts +2 -0
  435. package/lib/components/infra/Stages/index.d.ts.map +1 -0
  436. package/lib/components/infra/Stages/index.js +2 -0
  437. package/lib/components/infra/Stages/index.js.map +1 -0
  438. package/lib/components/infra/ToDo/ToDo.css +87 -0
  439. package/lib/components/infra/ToDo/ToDo.d.ts +29 -0
  440. package/lib/components/infra/ToDo/ToDo.d.ts.map +1 -0
  441. package/lib/components/infra/ToDo/ToDo.js +226 -0
  442. package/lib/components/infra/ToDo/ToDo.js.map +1 -0
  443. package/lib/components/infra/ToDo/index.d.ts +2 -0
  444. package/lib/components/infra/ToDo/index.d.ts.map +1 -0
  445. package/lib/components/infra/ToDo/index.js +2 -0
  446. package/lib/components/infra/ToDo/index.js.map +1 -0
  447. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.d.ts +3 -0
  448. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.d.ts.map +1 -0
  449. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.js +23 -0
  450. package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.js.map +1 -0
  451. package/lib/components/infra/VerticalTabs/VerticalTabs.d.ts +13 -0
  452. package/lib/components/infra/VerticalTabs/VerticalTabs.d.ts.map +1 -0
  453. package/lib/components/infra/VerticalTabs/VerticalTabs.js +50 -0
  454. package/lib/components/infra/VerticalTabs/VerticalTabs.js.map +1 -0
  455. package/lib/components/infra/VerticalTabs/index.d.ts +2 -0
  456. package/lib/components/infra/VerticalTabs/index.d.ts.map +1 -0
  457. package/lib/components/infra/VerticalTabs/index.js +2 -0
  458. package/lib/components/infra/VerticalTabs/index.js.map +1 -0
  459. package/lib/components/infra/View/View.css +8 -0
  460. package/lib/components/infra/View/View.d.ts +23 -0
  461. package/lib/components/infra/View/View.d.ts.map +1 -0
  462. package/lib/components/infra/View/View.js +136 -0
  463. package/lib/components/infra/View/View.js.map +1 -0
  464. package/lib/components/infra/View/index.d.ts +2 -0
  465. package/lib/components/infra/View/index.d.ts.map +1 -0
  466. package/lib/components/infra/View/index.js +2 -0
  467. package/lib/components/infra/View/index.js.map +1 -0
  468. package/lib/components/templates/AppShell/AppShell.css +40 -0
  469. package/lib/components/templates/AppShell/AppShell.d.ts +24 -0
  470. package/lib/components/templates/AppShell/AppShell.d.ts.map +1 -0
  471. package/lib/components/templates/AppShell/AppShell.js +390 -0
  472. package/lib/components/templates/AppShell/AppShell.js.map +1 -0
  473. package/lib/components/templates/AppShell/index.d.ts +2 -0
  474. package/lib/components/templates/AppShell/index.d.ts.map +1 -0
  475. package/lib/components/templates/AppShell/index.js +2 -0
  476. package/lib/components/templates/AppShell/index.js.map +1 -0
  477. package/lib/components/templates/CaseSummary/CaseSummary.d.ts +10 -0
  478. package/lib/components/templates/CaseSummary/CaseSummary.d.ts.map +1 -0
  479. package/lib/components/templates/CaseSummary/CaseSummary.js +40 -0
  480. package/lib/components/templates/CaseSummary/CaseSummary.js.map +1 -0
  481. package/lib/components/templates/CaseSummary/index.d.ts +2 -0
  482. package/lib/components/templates/CaseSummary/index.d.ts.map +1 -0
  483. package/lib/components/templates/CaseSummary/index.js +2 -0
  484. package/lib/components/templates/CaseSummary/index.js.map +1 -0
  485. package/lib/components/templates/CaseView/CaseView.d.ts +25 -0
  486. package/lib/components/templates/CaseView/CaseView.d.ts.map +1 -0
  487. package/lib/components/templates/CaseView/CaseView.js +180 -0
  488. package/lib/components/templates/CaseView/CaseView.js.map +1 -0
  489. package/lib/components/templates/CaseView/CaseViewActionsMenu.d.ts +16 -0
  490. package/lib/components/templates/CaseView/CaseViewActionsMenu.d.ts.map +1 -0
  491. package/lib/components/templates/CaseView/CaseViewActionsMenu.js +43 -0
  492. package/lib/components/templates/CaseView/CaseViewActionsMenu.js.map +1 -0
  493. package/lib/components/templates/CaseView/index.d.ts +2 -0
  494. package/lib/components/templates/CaseView/index.d.ts.map +1 -0
  495. package/lib/components/templates/CaseView/index.js +2 -0
  496. package/lib/components/templates/CaseView/index.js.map +1 -0
  497. package/lib/components/templates/DataReference/DataReference.d.ts +32 -0
  498. package/lib/components/templates/DataReference/DataReference.d.ts.map +1 -0
  499. package/lib/components/templates/DataReference/DataReference.js +221 -0
  500. package/lib/components/templates/DataReference/DataReference.js.map +1 -0
  501. package/lib/components/templates/DataReference/index.d.ts +2 -0
  502. package/lib/components/templates/DataReference/index.d.ts.map +1 -0
  503. package/lib/components/templates/DataReference/index.js +2 -0
  504. package/lib/components/templates/DataReference/index.js.map +1 -0
  505. package/lib/components/templates/DefaultForm/DefaultForm.css +25 -0
  506. package/lib/components/templates/DefaultForm/DefaultForm.d.ts +14 -0
  507. package/lib/components/templates/DefaultForm/DefaultForm.d.ts.map +1 -0
  508. package/lib/components/templates/DefaultForm/DefaultForm.js +39 -0
  509. package/lib/components/templates/DefaultForm/DefaultForm.js.map +1 -0
  510. package/lib/components/templates/DefaultForm/index.d.ts +2 -0
  511. package/lib/components/templates/DefaultForm/index.d.ts.map +1 -0
  512. package/lib/components/templates/DefaultForm/index.js +2 -0
  513. package/lib/components/templates/DefaultForm/index.js.map +1 -0
  514. package/lib/components/templates/Details/Details/Details.d.ts +8 -0
  515. package/lib/components/templates/Details/Details/Details.d.ts.map +1 -0
  516. package/lib/components/templates/Details/Details/Details.js +24 -0
  517. package/lib/components/templates/Details/Details/Details.js.map +1 -0
  518. package/lib/components/templates/Details/Details/index.d.ts +2 -0
  519. package/lib/components/templates/Details/Details/index.d.ts.map +1 -0
  520. package/lib/components/templates/Details/Details/index.js +2 -0
  521. package/lib/components/templates/Details/Details/index.js.map +1 -0
  522. package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.d.ts +18 -0
  523. package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -0
  524. package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.js +45 -0
  525. package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -0
  526. package/lib/components/templates/Details/DetailsSubTabs/index.d.ts +2 -0
  527. package/lib/components/templates/Details/DetailsSubTabs/index.d.ts.map +1 -0
  528. package/lib/components/templates/Details/DetailsSubTabs/index.js +2 -0
  529. package/lib/components/templates/Details/DetailsSubTabs/index.js.map +1 -0
  530. package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -0
  531. package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -0
  532. package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js +32 -0
  533. package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -0
  534. package/lib/components/templates/Details/DetailsThreeColumn/index.d.ts +2 -0
  535. package/lib/components/templates/Details/DetailsThreeColumn/index.d.ts.map +1 -0
  536. package/lib/components/templates/Details/DetailsThreeColumn/index.js +2 -0
  537. package/lib/components/templates/Details/DetailsThreeColumn/index.js.map +1 -0
  538. package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -0
  539. package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -0
  540. package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js +30 -0
  541. package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -0
  542. package/lib/components/templates/Details/DetailsTwoColumn/index.d.ts +2 -0
  543. package/lib/components/templates/Details/DetailsTwoColumn/index.d.ts.map +1 -0
  544. package/lib/components/templates/Details/DetailsTwoColumn/index.js +2 -0
  545. package/lib/components/templates/Details/DetailsTwoColumn/index.js.map +1 -0
  546. package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.d.ts +22 -0
  547. package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -0
  548. package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js +70 -0
  549. package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -0
  550. package/lib/components/templates/FieldGroupTemplate/index.d.ts +2 -0
  551. package/lib/components/templates/FieldGroupTemplate/index.d.ts.map +1 -0
  552. package/lib/components/templates/FieldGroupTemplate/index.js +2 -0
  553. package/lib/components/templates/FieldGroupTemplate/index.js.map +1 -0
  554. package/lib/components/templates/InlineDashboard/InlineDashboard.d.ts +10 -0
  555. package/lib/components/templates/InlineDashboard/InlineDashboard.d.ts.map +1 -0
  556. package/lib/components/templates/InlineDashboard/InlineDashboard.js +48 -0
  557. package/lib/components/templates/InlineDashboard/InlineDashboard.js.map +1 -0
  558. package/lib/components/templates/InlineDashboard/index.d.ts +2 -0
  559. package/lib/components/templates/InlineDashboard/index.d.ts.map +1 -0
  560. package/lib/components/templates/InlineDashboard/index.js +2 -0
  561. package/lib/components/templates/InlineDashboard/index.js.map +1 -0
  562. package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.d.ts +18 -0
  563. package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -0
  564. package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.js +34 -0
  565. package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.js.map +1 -0
  566. package/lib/components/templates/InlineDashboardPage/index.d.ts +2 -0
  567. package/lib/components/templates/InlineDashboardPage/index.d.ts.map +1 -0
  568. package/lib/components/templates/InlineDashboardPage/index.js +2 -0
  569. package/lib/components/templates/InlineDashboardPage/index.js.map +1 -0
  570. package/lib/components/templates/ListPage/ListPage.d.ts +16 -0
  571. package/lib/components/templates/ListPage/ListPage.d.ts.map +1 -0
  572. package/lib/components/templates/ListPage/ListPage.js +14 -0
  573. package/lib/components/templates/ListPage/ListPage.js.map +1 -0
  574. package/lib/components/templates/ListPage/index.d.ts +2 -0
  575. package/lib/components/templates/ListPage/index.d.ts.map +1 -0
  576. package/lib/components/templates/ListPage/index.js +2 -0
  577. package/lib/components/templates/ListPage/index.js.map +1 -0
  578. package/lib/components/templates/ListView/ListView.css +10 -0
  579. package/lib/components/templates/ListView/ListView.d.ts +12 -0
  580. package/lib/components/templates/ListView/ListView.d.ts.map +1 -0
  581. package/lib/components/templates/ListView/ListView.js +842 -0
  582. package/lib/components/templates/ListView/ListView.js.map +1 -0
  583. package/lib/components/templates/ListView/index.d.ts +2 -0
  584. package/lib/components/templates/ListView/index.d.ts.map +1 -0
  585. package/lib/components/templates/ListView/index.js +2 -0
  586. package/lib/components/templates/ListView/index.js.map +1 -0
  587. package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +17 -0
  588. package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -0
  589. package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.js +34 -0
  590. package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -0
  591. package/lib/components/templates/MultiReferenceReadOnly/index.d.ts +2 -0
  592. package/lib/components/templates/MultiReferenceReadOnly/index.d.ts.map +1 -0
  593. package/lib/components/templates/MultiReferenceReadOnly/index.js +2 -0
  594. package/lib/components/templates/MultiReferenceReadOnly/index.js.map +1 -0
  595. package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.css +21 -0
  596. package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -0
  597. package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -0
  598. package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.js +16 -0
  599. package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.js.map +1 -0
  600. package/lib/components/templates/NarrowWide/NarrowWide/index.d.ts +2 -0
  601. package/lib/components/templates/NarrowWide/NarrowWide/index.d.ts.map +1 -0
  602. package/lib/components/templates/NarrowWide/NarrowWide/index.js +2 -0
  603. package/lib/components/templates/NarrowWide/NarrowWide/index.js.map +1 -0
  604. package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -0
  605. package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -0
  606. package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +35 -0
  607. package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -0
  608. package/lib/components/templates/NarrowWide/NarrowWideDetails/index.d.ts +2 -0
  609. package/lib/components/templates/NarrowWide/NarrowWideDetails/index.d.ts.map +1 -0
  610. package/lib/components/templates/NarrowWide/NarrowWideDetails/index.js +2 -0
  611. package/lib/components/templates/NarrowWide/NarrowWideDetails/index.js.map +1 -0
  612. package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.css +21 -0
  613. package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -0
  614. package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -0
  615. package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.js +10 -0
  616. package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -0
  617. package/lib/components/templates/NarrowWide/NarrowWideForm/index.d.ts +2 -0
  618. package/lib/components/templates/NarrowWide/NarrowWideForm/index.d.ts.map +1 -0
  619. package/lib/components/templates/NarrowWide/NarrowWideForm/index.js +2 -0
  620. package/lib/components/templates/NarrowWide/NarrowWideForm/index.js.map +1 -0
  621. package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +17 -0
  622. package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -0
  623. package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.js +25 -0
  624. package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -0
  625. package/lib/components/templates/NarrowWide/NarrowWidePage/index.d.ts +2 -0
  626. package/lib/components/templates/NarrowWide/NarrowWidePage/index.d.ts.map +1 -0
  627. package/lib/components/templates/NarrowWide/NarrowWidePage/index.js +2 -0
  628. package/lib/components/templates/NarrowWide/NarrowWidePage/index.js.map +1 -0
  629. package/lib/components/templates/OneColumn/OneColumn/OneColumn.d.ts +10 -0
  630. package/lib/components/templates/OneColumn/OneColumn/OneColumn.d.ts.map +1 -0
  631. package/lib/components/templates/OneColumn/OneColumn/OneColumn.js +22 -0
  632. package/lib/components/templates/OneColumn/OneColumn/OneColumn.js.map +1 -0
  633. package/lib/components/templates/OneColumn/OneColumn/index.d.ts +2 -0
  634. package/lib/components/templates/OneColumn/OneColumn/index.d.ts.map +1 -0
  635. package/lib/components/templates/OneColumn/OneColumn/index.js +2 -0
  636. package/lib/components/templates/OneColumn/OneColumn/index.js.map +1 -0
  637. package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.d.ts +11 -0
  638. package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -0
  639. package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.js +15 -0
  640. package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -0
  641. package/lib/components/templates/OneColumn/OneColumnPage/index.d.ts +2 -0
  642. package/lib/components/templates/OneColumn/OneColumnPage/index.d.ts.map +1 -0
  643. package/lib/components/templates/OneColumn/OneColumnPage/index.js +2 -0
  644. package/lib/components/templates/OneColumn/OneColumnPage/index.js.map +1 -0
  645. package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.d.ts +10 -0
  646. package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -0
  647. package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.js +11 -0
  648. package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -0
  649. package/lib/components/templates/OneColumn/OneColumnTab/index.d.ts +2 -0
  650. package/lib/components/templates/OneColumn/OneColumnTab/index.d.ts.map +1 -0
  651. package/lib/components/templates/OneColumn/OneColumnTab/index.js +2 -0
  652. package/lib/components/templates/OneColumn/OneColumnTab/index.js.map +1 -0
  653. package/lib/components/templates/PromotedFilters/PromotedFilters.css +7 -0
  654. package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts +17 -0
  655. package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts.map +1 -0
  656. package/lib/components/templates/PromotedFilters/PromotedFilters.js +130 -0
  657. package/lib/components/templates/PromotedFilters/PromotedFilters.js.map +1 -0
  658. package/lib/components/templates/PromotedFilters/index.d.ts +2 -0
  659. package/lib/components/templates/PromotedFilters/index.d.ts.map +1 -0
  660. package/lib/components/templates/PromotedFilters/index.js +2 -0
  661. package/lib/components/templates/PromotedFilters/index.js.map +1 -0
  662. package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.d.ts +3 -0
  663. package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -0
  664. package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js +26 -0
  665. package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js.map +1 -0
  666. package/lib/components/templates/SimpleTable/SimpleTable/index.d.ts +2 -0
  667. package/lib/components/templates/SimpleTable/SimpleTable/index.d.ts.map +1 -0
  668. package/lib/components/templates/SimpleTable/SimpleTable/index.js +2 -0
  669. package/lib/components/templates/SimpleTable/SimpleTable/index.js.map +1 -0
  670. package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +3 -0
  671. package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -0
  672. package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.js +505 -0
  673. package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -0
  674. package/lib/components/templates/SimpleTable/SimpleTableManual/index.d.ts +2 -0
  675. package/lib/components/templates/SimpleTable/SimpleTableManual/index.d.ts.map +1 -0
  676. package/lib/components/templates/SimpleTable/SimpleTableManual/index.js +2 -0
  677. package/lib/components/templates/SimpleTable/SimpleTableManual/index.js.map +1 -0
  678. package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +35 -0
  679. package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -0
  680. package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +105 -0
  681. package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -0
  682. package/lib/components/templates/SimpleTable/SimpleTableSelect/index.d.ts +2 -0
  683. package/lib/components/templates/SimpleTable/SimpleTableSelect/index.d.ts.map +1 -0
  684. package/lib/components/templates/SimpleTable/SimpleTableSelect/index.js +2 -0
  685. package/lib/components/templates/SimpleTable/SimpleTableSelect/index.js.map +1 -0
  686. package/lib/components/templates/SimpleTable/helpers.d.ts +79 -0
  687. package/lib/components/templates/SimpleTable/helpers.d.ts.map +1 -0
  688. package/lib/components/templates/SimpleTable/helpers.js +306 -0
  689. package/lib/components/templates/SimpleTable/helpers.js.map +1 -0
  690. package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +28 -0
  691. package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -0
  692. package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.js +51 -0
  693. package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -0
  694. package/lib/components/templates/SingleReferenceReadOnly/index.d.ts +2 -0
  695. package/lib/components/templates/SingleReferenceReadOnly/index.d.ts.map +1 -0
  696. package/lib/components/templates/SingleReferenceReadOnly/index.js +2 -0
  697. package/lib/components/templates/SingleReferenceReadOnly/index.js.map +1 -0
  698. package/lib/components/templates/SubTabs/SubTabs.d.ts +13 -0
  699. package/lib/components/templates/SubTabs/SubTabs.d.ts.map +1 -0
  700. package/lib/components/templates/SubTabs/SubTabs.js +33 -0
  701. package/lib/components/templates/SubTabs/SubTabs.js.map +1 -0
  702. package/lib/components/templates/SubTabs/index.d.ts +2 -0
  703. package/lib/components/templates/SubTabs/index.d.ts.map +1 -0
  704. package/lib/components/templates/SubTabs/index.js +2 -0
  705. package/lib/components/templates/SubTabs/index.js.map +1 -0
  706. package/lib/components/templates/SubTabs/tabUtils.d.ts +5 -0
  707. package/lib/components/templates/SubTabs/tabUtils.d.ts.map +1 -0
  708. package/lib/components/templates/SubTabs/tabUtils.js +62 -0
  709. package/lib/components/templates/SubTabs/tabUtils.js.map +1 -0
  710. package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.css +13 -0
  711. package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.d.ts +14 -0
  712. package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -0
  713. package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.js +43 -0
  714. package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.js.map +1 -0
  715. package/lib/components/templates/TwoColumn/TwoColumn/index.d.ts +2 -0
  716. package/lib/components/templates/TwoColumn/TwoColumn/index.d.ts.map +1 -0
  717. package/lib/components/templates/TwoColumn/TwoColumn/index.js +2 -0
  718. package/lib/components/templates/TwoColumn/TwoColumn/index.js.map +1 -0
  719. package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +11 -0
  720. package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -0
  721. package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.js +16 -0
  722. package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -0
  723. package/lib/components/templates/TwoColumn/TwoColumnPage/index.d.ts +2 -0
  724. package/lib/components/templates/TwoColumn/TwoColumnPage/index.d.ts.map +1 -0
  725. package/lib/components/templates/TwoColumn/TwoColumnPage/index.js +2 -0
  726. package/lib/components/templates/TwoColumn/TwoColumnPage/index.js.map +1 -0
  727. package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.css +12 -0
  728. package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +14 -0
  729. package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -0
  730. package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.js +40 -0
  731. package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -0
  732. package/lib/components/templates/TwoColumn/TwoColumnTab/index.d.ts +2 -0
  733. package/lib/components/templates/TwoColumn/TwoColumnTab/index.d.ts.map +1 -0
  734. package/lib/components/templates/TwoColumn/TwoColumnTab/index.js +2 -0
  735. package/lib/components/templates/TwoColumn/TwoColumnTab/index.js.map +1 -0
  736. package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.css +21 -0
  737. package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -0
  738. package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -0
  739. package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.js +16 -0
  740. package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.js.map +1 -0
  741. package/lib/components/templates/WideNarrow/WideNarrow/index.d.ts +2 -0
  742. package/lib/components/templates/WideNarrow/WideNarrow/index.d.ts.map +1 -0
  743. package/lib/components/templates/WideNarrow/WideNarrow/index.js +2 -0
  744. package/lib/components/templates/WideNarrow/WideNarrow/index.js.map +1 -0
  745. package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -0
  746. package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -0
  747. package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +35 -0
  748. package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -0
  749. package/lib/components/templates/WideNarrow/WideNarrowDetails/index.d.ts +2 -0
  750. package/lib/components/templates/WideNarrow/WideNarrowDetails/index.d.ts.map +1 -0
  751. package/lib/components/templates/WideNarrow/WideNarrowDetails/index.js +2 -0
  752. package/lib/components/templates/WideNarrow/WideNarrowDetails/index.js.map +1 -0
  753. package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.css +21 -0
  754. package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -0
  755. package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -0
  756. package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.js +10 -0
  757. package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -0
  758. package/lib/components/templates/WideNarrow/WideNarrowForm/index.d.ts +2 -0
  759. package/lib/components/templates/WideNarrow/WideNarrowForm/index.d.ts.map +1 -0
  760. package/lib/components/templates/WideNarrow/WideNarrowForm/index.js +2 -0
  761. package/lib/components/templates/WideNarrow/WideNarrowForm/index.js.map +1 -0
  762. package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +17 -0
  763. package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -0
  764. package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.js +25 -0
  765. package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -0
  766. package/lib/components/templates/WideNarrow/WideNarrowPage/index.d.ts +2 -0
  767. package/lib/components/templates/WideNarrow/WideNarrowPage/index.d.ts.map +1 -0
  768. package/lib/components/templates/WideNarrow/WideNarrowPage/index.js +2 -0
  769. package/lib/components/templates/WideNarrow/WideNarrowPage/index.js.map +1 -0
  770. package/lib/components/templates/utils.d.ts +3 -0
  771. package/lib/components/templates/utils.d.ts.map +1 -0
  772. package/lib/components/templates/utils.js +22 -0
  773. package/lib/components/templates/utils.js.map +1 -0
  774. package/lib/components/widgets/AppAnnouncement/AppAnnouncement.d.ts +19 -0
  775. package/lib/components/widgets/AppAnnouncement/AppAnnouncement.d.ts.map +1 -0
  776. package/lib/components/widgets/AppAnnouncement/AppAnnouncement.js +53 -0
  777. package/lib/components/widgets/AppAnnouncement/AppAnnouncement.js.map +1 -0
  778. package/lib/components/widgets/AppAnnouncement/index.d.ts +2 -0
  779. package/lib/components/widgets/AppAnnouncement/index.d.ts.map +1 -0
  780. package/lib/components/widgets/AppAnnouncement/index.js +2 -0
  781. package/lib/components/widgets/AppAnnouncement/index.js.map +1 -0
  782. package/lib/components/widgets/CaseHistory/CaseHistory.d.ts +10 -0
  783. package/lib/components/widgets/CaseHistory/CaseHistory.d.ts.map +1 -0
  784. package/lib/components/widgets/CaseHistory/CaseHistory.js +118 -0
  785. package/lib/components/widgets/CaseHistory/CaseHistory.js.map +1 -0
  786. package/lib/components/widgets/CaseHistory/index.d.ts +2 -0
  787. package/lib/components/widgets/CaseHistory/index.d.ts.map +1 -0
  788. package/lib/components/widgets/CaseHistory/index.js +2 -0
  789. package/lib/components/widgets/CaseHistory/index.js.map +1 -0
  790. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.css +27 -0
  791. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.d.ts +4 -0
  792. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.d.ts.map +1 -0
  793. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.js +9 -0
  794. package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.js.map +1 -0
  795. package/lib/components/widgets/FileUtility/FileUtility.css +117 -0
  796. package/lib/components/widgets/FileUtility/FileUtility.d.ts +4 -0
  797. package/lib/components/widgets/FileUtility/FileUtility.d.ts.map +1 -0
  798. package/lib/components/widgets/FileUtility/FileUtility.js +456 -0
  799. package/lib/components/widgets/FileUtility/FileUtility.js.map +1 -0
  800. package/lib/components/widgets/FileUtility/index.d.ts +1 -0
  801. package/lib/components/widgets/FileUtility/index.d.ts.map +1 -0
  802. package/lib/components/widgets/FileUtility/index.js +2 -0
  803. package/lib/components/widgets/FileUtility/index.js.map +1 -0
  804. package/lib/components/widgets/Followers/Followers.d.ts +8 -0
  805. package/lib/components/widgets/Followers/Followers.d.ts.map +1 -0
  806. package/lib/components/widgets/Followers/Followers.js +40 -0
  807. package/lib/components/widgets/Followers/Followers.js.map +1 -0
  808. package/lib/components/widgets/Followers/index.d.ts +2 -0
  809. package/lib/components/widgets/Followers/index.d.ts.map +1 -0
  810. package/lib/components/widgets/Followers/index.js +2 -0
  811. package/lib/components/widgets/Followers/index.js.map +1 -0
  812. package/lib/components/widgets/SummaryItem/SummaryItem.css +78 -0
  813. package/lib/components/widgets/SummaryItem/SummaryItem.d.ts +4 -0
  814. package/lib/components/widgets/SummaryItem/SummaryItem.d.ts.map +1 -0
  815. package/lib/components/widgets/SummaryItem/SummaryItem.js +46 -0
  816. package/lib/components/widgets/SummaryItem/SummaryItem.js.map +1 -0
  817. package/lib/components/widgets/SummaryItem/index.d.ts +2 -0
  818. package/lib/components/widgets/SummaryItem/index.d.ts.map +1 -0
  819. package/lib/components/widgets/SummaryItem/index.js +2 -0
  820. package/lib/components/widgets/SummaryItem/index.js.map +1 -0
  821. package/lib/components/widgets/SummaryList/SummaryList.d.ts +3 -0
  822. package/lib/components/widgets/SummaryList/SummaryList.d.ts.map +1 -0
  823. package/lib/components/widgets/SummaryList/SummaryList.js +6 -0
  824. package/lib/components/widgets/SummaryList/SummaryList.js.map +1 -0
  825. package/lib/components/widgets/SummaryList/index.d.ts +2 -0
  826. package/lib/components/widgets/SummaryList/index.d.ts.map +1 -0
  827. package/lib/components/widgets/SummaryList/index.js +2 -0
  828. package/lib/components/widgets/SummaryList/index.js.map +1 -0
  829. package/lib/components_map.d.ts +4 -0
  830. package/lib/components_map.d.ts.map +1 -0
  831. package/lib/components_map.js +820 -0
  832. package/lib/components_map.js.map +1 -0
  833. package/lib/index.d.ts +1 -0
  834. package/lib/index.d.ts.map +1 -0
  835. package/lib/index.js +3 -0
  836. package/lib/index.js.map +1 -0
  837. package/lib/sdk-pega-component-map.d.ts +156 -0
  838. package/lib/sdk-pega-component-map.d.ts.map +1 -0
  839. package/lib/sdk-pega-component-map.js +167 -0
  840. package/lib/sdk-pega-component-map.js.map +1 -0
  841. package/package.json +14 -0
@@ -0,0 +1,248 @@
1
+ import React, { useEffect, useRef, useState, createElement } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import isEqual from 'fast-deep-equal';
4
+ import Dialog from '@material-ui/core/Dialog';
5
+ import DialogContent from '@material-ui/core/DialogContent';
6
+ import DialogTitle from '@material-ui/core/DialogTitle';
7
+ import { makeStyles } from '@material-ui/core/styles';
8
+ import createPConnectComponent from '../../../../bridge/react_pconnect';
9
+ import Assignment from '../../Assignment';
10
+ import CancelAlert from '../../../forms/CancelAlert';
11
+ import Utils from '../../../helpers/utils';
12
+ function buildName(pConnect, name = '') {
13
+ const context = pConnect.getContextName();
14
+ return `${context}/${name}`;
15
+ }
16
+ function getKeyAndLatestItem(routinginfo, pConn) {
17
+ const containerName = pConn.getContainerName();
18
+ if (PCore.getContainerUtils().hasContainerItems(buildName(pConn, containerName))) {
19
+ const { accessedOrder, items } = routinginfo;
20
+ const key = accessedOrder[accessedOrder.length - 1];
21
+ const latestItem = items[key];
22
+ return { key, latestItem };
23
+ }
24
+ return {};
25
+ }
26
+ function getConfigObject(item, pConnect) {
27
+ if (item) {
28
+ const { context, view } = item;
29
+ const config = {
30
+ meta: view,
31
+ options: {
32
+ context,
33
+ pageReference: view.config.context || pConnect.getPageReference(),
34
+ hasForm: true
35
+ }
36
+ };
37
+ return PCore.createPConnect(config);
38
+ }
39
+ return null;
40
+ }
41
+ const useStyles = makeStyles(theme => ({
42
+ dlgTitle: {
43
+ marginLeft: theme.spacing(2),
44
+ marginRight: theme.spacing(2),
45
+ marginTop: theme.spacing(2),
46
+ marginBottom: theme.spacing(0)
47
+ // paddingLeft: theme.spacing(0),
48
+ // paddingRight: theme.spacing(0),
49
+ // paddingTop: theme.spacing(0),
50
+ // paddingBottom: theme.spacing(0),
51
+ },
52
+ dlgContent: {
53
+ marginLeft: theme.spacing(2),
54
+ marginRight: theme.spacing(2),
55
+ marginTop: theme.spacing(0),
56
+ marginBottom: theme.spacing(2)
57
+ // paddingLeft: theme.spacing(0),
58
+ // paddingRight: theme.spacing(0),
59
+ // paddingTop: theme.spacing(0),
60
+ // paddingBottom: theme.spacing(0),
61
+ }
62
+ }));
63
+ const ModalViewContainer = props => {
64
+ const classes = useStyles();
65
+ const routingInfoRef = useRef({});
66
+ const { getPConnect, routingInfo, loadingInfo } = props;
67
+ const pConn = getPConnect();
68
+ const { CONTAINER_TYPE: { MULTIPLE }, PUB_SUB_EVENTS: { EVENT_SHOW_CANCEL_ALERT } } = PCore.getConstants();
69
+ const { subscribe } = PCore.getPubSubUtils();
70
+ const [bShowModal, setShowModal] = useState(false);
71
+ const [bSubscribed, setSubscribed] = useState(false);
72
+ const [bShowCancelAlert, setShowCancelAlert] = useState(false);
73
+ const [oCaseInfo, setOCaseInfo] = useState({});
74
+ const [createdView, setCreatedView] = useState(null);
75
+ const [title, setTitle] = useState('');
76
+ const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState([]);
77
+ const [itemKey, setItemKey] = useState('');
78
+ const [cancelPConn, setCancelPConn] = useState(null);
79
+ function showAlert(payload) {
80
+ const { latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);
81
+ const { isModalAction } = payload;
82
+ /*
83
+ If we are in create stage full page mode, created a new case and trying to click on cancel button
84
+ it will show two alert dialogs which is not expected. Hence isModalAction flag to avoid that.
85
+ */
86
+ if (latestItem && isModalAction) {
87
+ const configObject = getConfigObject(latestItem, pConn);
88
+ setCancelPConn(configObject.getPConnect());
89
+ setShowCancelAlert(true);
90
+ }
91
+ }
92
+ function compareCaseInfoIsDifferent(oCurrentCaseInfo) {
93
+ let bRet = false;
94
+ // fast-deep-equal version
95
+ if (isEqual !== undefined) {
96
+ bRet = !isEqual(oCaseInfo, oCurrentCaseInfo);
97
+ }
98
+ else {
99
+ const sCurrentCaseInfo = JSON.stringify(oCurrentCaseInfo);
100
+ const sOldCaseInfo = JSON.stringify(oCaseInfo);
101
+ // stringify compare version
102
+ if (sCurrentCaseInfo !== sOldCaseInfo) {
103
+ bRet = true;
104
+ }
105
+ }
106
+ // if different, save off new case info
107
+ if (bRet) {
108
+ setOCaseInfo(JSON.parse(JSON.stringify(oCurrentCaseInfo)));
109
+ }
110
+ return bRet;
111
+ }
112
+ const updateAlertState = modalFlag => {
113
+ setShowCancelAlert(false);
114
+ setShowModal(modalFlag);
115
+ };
116
+ useEffect(() => {
117
+ // Establish the necessary containers
118
+ const containerMgr = pConn.getContainerManager();
119
+ containerMgr.initializeContainers({ type: MULTIPLE });
120
+ }, [MULTIPLE, pConn]);
121
+ useEffect(() => {
122
+ // Update routingInfoRef.current whenever routingInfo changes
123
+ routingInfoRef.current = routingInfo;
124
+ }, [routingInfo]);
125
+ useEffect(() => {
126
+ if (routingInfoRef.current && !loadingInfo) {
127
+ const currentOrder = routingInfo.accessedOrder;
128
+ if (undefined === currentOrder) {
129
+ return;
130
+ }
131
+ const currentItems = routingInfo.items;
132
+ const { key, latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);
133
+ // console.log(`ModalViewContainer: key: ${key} latestItem: ${JSON.stringify(latestItem)}`);
134
+ if (currentOrder.length > 0) {
135
+ if (currentItems[key] &&
136
+ currentItems[key].view &&
137
+ !Utils.isEmptyObject(currentItems[key].view)) {
138
+ const currentItem = currentItems[key];
139
+ const rootView = currentItem.view;
140
+ const { context } = rootView.config;
141
+ const config = { meta: rootView };
142
+ config['options'] = {
143
+ context: currentItem.context,
144
+ hasForm: true,
145
+ pageReference: context || pConn.getPageReference()
146
+ };
147
+ if (!bSubscribed) {
148
+ setSubscribed(true);
149
+ subscribe(EVENT_SHOW_CANCEL_ALERT, showAlert, EVENT_SHOW_CANCEL_ALERT /* Unique string for subscription */);
150
+ }
151
+ const configObject = PCore.createPConnect(config);
152
+ // THIS is where the ViewContainer creates a View
153
+ // The config has meta.config.type = "view"
154
+ const newComp = configObject.getPConnect();
155
+ // const newCompName = newComp.getComponentName();
156
+ const caseInfo = newComp && newComp.getDataObject() && newComp.getDataObject().caseInfo
157
+ ? newComp.getDataObject().caseInfo
158
+ : null;
159
+ // console.log(`ModalViewContainer just created newComp: ${newCompName}`);
160
+ // The metadata for pyDetails changed such that the "template": "CaseView"
161
+ // is no longer a child of the created View but is in the created View's
162
+ // config. So, we DON'T want to replace this.pConn$ since the created
163
+ // component is a View (and not a ViewContainer). We now look for the
164
+ // "template" type directly in the created component (newComp) and NOT
165
+ // as a child of the newly created component.
166
+ // console.log(`---> ModalViewContainer created new ${newCompName}`);
167
+ // Use the newly created component (View) info but DO NOT replace
168
+ // this ModalViewContainer's pConn$, etc.
169
+ // Note that we're now using the newly created View's PConnect in the
170
+ // ViewContainer HTML template to guide what's rendered similar to what
171
+ // the React return of React.Fragment does
172
+ // right now need to check caseInfo for changes, to trigger redraw, not getting
173
+ // changes from angularPconnect except for first draw
174
+ if (newComp && caseInfo && compareCaseInfoIsDifferent(caseInfo)) {
175
+ setCreatedView(configObject);
176
+ const { actionName } = latestItem;
177
+ const theNewCaseInfo = newComp.getCaseInfo();
178
+ const caseName = theNewCaseInfo.getName();
179
+ const ID = theNewCaseInfo.getID();
180
+ setTitle(actionName || `New ${caseName} (${ID})`);
181
+ let arChildrenAsReact = [];
182
+ if (newComp.getComponentName() === 'reference') {
183
+ // Reference component doesn't have children. It can build the View we want.
184
+ // The Reference component getPConnect is in configObject
185
+ arChildrenAsReact.push(createElement(createPConnectComponent(), {
186
+ ...configObject,
187
+ key: `${caseName}-${ID}`
188
+ }));
189
+ }
190
+ else {
191
+ // This is the 8.6 implementation. Leaving it in for reference for now.
192
+ // And create a similar array of the children as React components
193
+ // passed to Assignment component when rendered
194
+ arChildrenAsReact = newComp.getChildren().map(child => {
195
+ // Use Case Summary ID as the React element's key
196
+ const caseSummaryID = child.getPConnect().getCaseSummary().ID;
197
+ return createElement(createPConnectComponent(), { ...child, key: caseSummaryID });
198
+ });
199
+ }
200
+ if (arChildrenAsReact.length > 0)
201
+ setArNewChildrenAsReact(arChildrenAsReact);
202
+ setShowModal(true);
203
+ // save off itemKey to be used for finishAssignment, etc.
204
+ setItemKey(key);
205
+ }
206
+ }
207
+ }
208
+ else {
209
+ if (bShowModal) {
210
+ setShowModal(false);
211
+ }
212
+ if (!Utils.isEmptyObject(oCaseInfo)) {
213
+ setOCaseInfo({});
214
+ }
215
+ }
216
+ }
217
+ });
218
+ // function placeholderModalClose() {
219
+ // // Intentionally a no-op. Similar behavior in other SDKs.
220
+ // // Does NOT close the window. This forces the user to use
221
+ // // the cancel or submit button to close the modal (which, in turn, gets the right
222
+ // // Constellation code to run to clean up the containers, data, etc.)
223
+ // // console.log(`ModalViewContainer: placeholderModalClose setting bShowModal to false`) setShowModal(false);
224
+ // }
225
+ // if (bShowModal) {
226
+ // console.log(`ModalViewContainer about to show modal with`);
227
+ // console.log(`--> createdView: ${createdView} createdView.getPConnect: ${typeof createdView.getPConnect}`);
228
+ // console.log(`--> itemKey: ${itemKey}`);
229
+ // console.log(`--> arNewChildrenAsReact: ${JSON.stringify(arNewChildrenAsReact)}`);
230
+ // }
231
+ return (React.createElement(React.Fragment, null,
232
+ React.createElement(Dialog, { open: bShowModal, "aria-labelledby": 'form-dialog-title' },
233
+ React.createElement(DialogTitle, { id: 'form-dialog-title', className: classes.dlgTitle }, title),
234
+ React.createElement(DialogContent, { className: classes.dlgContent }, bShowModal ? (React.createElement(Assignment, { getPConnect: createdView.getPConnect, itemKey: itemKey, isCreateStage: true }, arNewChildrenAsReact)) : (React.createElement(React.Fragment, null)))),
235
+ bShowCancelAlert && (React.createElement(CancelAlert, { pConn: cancelPConn, showAlert: bShowCancelAlert, updateAlertState: updateAlertState }))));
236
+ };
237
+ export default ModalViewContainer;
238
+ ModalViewContainer.defaultProps = {
239
+ getPConnect: null,
240
+ loadingInfo: false,
241
+ routingInfo: null
242
+ };
243
+ ModalViewContainer.propTypes = {
244
+ getPConnect: PropTypes.func,
245
+ loadingInfo: PropTypes.bool,
246
+ routingInfo: PropTypes.objectOf(PropTypes.any)
247
+ };
248
+ //# sourceMappingURL=ModalViewContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/Modal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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,aAAa,UAC9E,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} isCreateStage>\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"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './ModalViewContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ModalViewContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ModalViewContainer';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ModalViewContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export { default } from './ModalViewContainer';"]}
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from "prop-types";
3
+ declare function ViewContainer(props: any): JSX.Element;
4
+ declare namespace ViewContainer {
5
+ var defaultProps: {
6
+ getPConnect: null;
7
+ name: string;
8
+ loadingInfo: boolean;
9
+ routingInfo: null;
10
+ mode: string;
11
+ limit: number;
12
+ };
13
+ var propTypes: {
14
+ getPConnect: PropTypes.Requireable<(...args: any[]) => any>;
15
+ name: PropTypes.Requireable<string>;
16
+ loadingInfo: PropTypes.Requireable<boolean>;
17
+ routingInfo: PropTypes.Requireable<{
18
+ [x: string]: any;
19
+ }>;
20
+ mode: PropTypes.Requireable<string>;
21
+ limit: PropTypes.Requireable<number>;
22
+ };
23
+ }
24
+ export default ViewContainer;
25
+ //# sourceMappingURL=ViewContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ViewContainer/ViewContainer.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAkBnC,iBAAwB,aAAa,CAAC,KAAK,KAAA,eAkL1C;kBAlLuB,aAAa;;;;;;;;;;;;;;;;;;;;eAAb,aAAa"}
@@ -0,0 +1,167 @@
1
+ import React, { useEffect, useState, useContext, createElement } from "react";
2
+ import PropTypes from "prop-types";
3
+ import { Box, CircularProgress } from "@material-ui/core";
4
+ import createPConnectComponent from "../../../../bridge/react_pconnect";
5
+ import StoreContext from "../../../../bridge/Context/StoreContext";
6
+ import Utils from '../../../helpers/utils';
7
+ //
8
+ // WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
9
+ // Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
10
+ // is totally at your own risk.
11
+ //
12
+ export default function ViewContainer(props) {
13
+ // const { getPConnect, children, routingInfo, name } = props;
14
+ const { getPConnect, name, mode, limit, loadingInfo, routingInfo } = props;
15
+ const { displayOnlyFA } = useContext(StoreContext);
16
+ const { CONTAINER_TYPE, APP } = PCore.getConstants();
17
+ const pConn = getPConnect();
18
+ const containerMgr = pConn.getContainerManager();
19
+ const [dispatchObjState, setDispatchObjState] = useState({
20
+ dispatchObject: { semanticURL: "", context: "", acName: "" },
21
+ visible: false,
22
+ loadingInfo: null,
23
+ isLoadingInfoChange: false
24
+ }); // was this.state in class-based ViewContainer avoiding use of just "state" as the name
25
+ let root;
26
+ const thePConn = ((typeof getPConnect) === 'function') ? getPConnect() : null;
27
+ // beginning of functions for use by ViewContainer
28
+ function buildName() {
29
+ const context = thePConn.getContextName();
30
+ let viewContainerName = name;
31
+ if (!viewContainerName)
32
+ viewContainerName = "";
33
+ return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;
34
+ }
35
+ function prepareDispatchObject() {
36
+ const baseContext = pConn.getContextName();
37
+ const { acName = "primary" } = pConn.getContainerName();
38
+ return {
39
+ semanticURL: "",
40
+ context: baseContext,
41
+ acName
42
+ };
43
+ }
44
+ // determine if or not loadingInfo prop changed on next re-render
45
+ // function getDerivedStateFromProps(nextProps, prevState) {
46
+ // const { loadingInfo: prevLoadingInfo } = prevState;
47
+ // const { loadingInfo: nextLoadingIndfo } = nextProps;
48
+ // return {
49
+ // loadingInfo: nextLoadingIndfo,
50
+ // isLoadingInfoChange: prevLoadingInfo !== nextLoadingIndfo
51
+ // };
52
+ // }
53
+ // set the root component that is retrieved by PConnectHOC
54
+ function setRootComponent(configObject) {
55
+ const { isLoadingInfoChange } = dispatchObjState;
56
+ if (!isLoadingInfoChange) {
57
+ root = createElement(createPConnectComponent(), configObject);
58
+ }
59
+ }
60
+ // end of functions for use by ViewContainer
61
+ // useEffect on [] -> code that should be run once (as in old constructor and in componentDidMount)
62
+ useEffect(() => {
63
+ // This is adapted from the class-based ViewContainer constructor
64
+ containerMgr.initializeContainers({
65
+ type: mode === CONTAINER_TYPE.MULTIPLE
66
+ ? CONTAINER_TYPE.MULTIPLE
67
+ : CONTAINER_TYPE.SINGLE
68
+ });
69
+ if (mode === CONTAINER_TYPE.MULTIPLE && limit) {
70
+ /* NOTE: setContainerLimit use is temporary. It is a non-public, unsupported API. */
71
+ PCore.getContainerUtils().setContainerLimit(`${APP.APP}/${name}`, limit);
72
+ }
73
+ const dispatchObject = prepareDispatchObject();
74
+ setDispatchObjState({
75
+ dispatchObject,
76
+ // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore
77
+ visible: !PCore.checkIfSemanticURL(),
78
+ loadingInfo,
79
+ isLoadingInfoChange: false
80
+ });
81
+ const { visible } = dispatchObjState;
82
+ if (visible)
83
+ containerMgr.addContainerItem(dispatchObject);
84
+ // This is adapted from the class-based ViewContainer componentDidMount
85
+ let objectForAddContainer;
86
+ if (PCore.checkIfSemanticURL()) {
87
+ objectForAddContainer = prepareDispatchObject();
88
+ }
89
+ else {
90
+ const { dispatchObject: theDispatchObject } = dispatchObjState;
91
+ objectForAddContainer = theDispatchObject;
92
+ }
93
+ // Getting default view label
94
+ const navPages = pConn.getValue("pyPortal.pyPrimaryNavPages");
95
+ const defaultViewLabel = Array.isArray(navPages) && navPages[0] ? navPages[0].pyLabel : "";
96
+ // TODO: Plan is to rename window.constellationCore to window.pega (or similar)
97
+ // And expose less via ui-bootstrap.js
98
+ // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore
99
+ if (!displayOnlyFA) {
100
+ // configureForBrowserBookmark not applicable in Embedded mode
101
+ PCore.configureForBrowserBookmark({
102
+ ...objectForAddContainer,
103
+ defaultViewLabel
104
+ });
105
+ }
106
+ }, []);
107
+ // This code (that's run every time the ViewContainer is called) is adapted from the class-based ViewContainer's render
108
+ // Looking for routingInfo
109
+ // debugging/investigation help
110
+ // console.log(`ViewContainer props: ${JSON.stringify(props)}`);
111
+ const theBuildName = buildName();
112
+ const { CREATE_DETAILS_VIEW_NAME } = PCore.getConstants();
113
+ if (routingInfo) {
114
+ const { accessedOrder, items } = routingInfo;
115
+ if (accessedOrder && items) {
116
+ const key = accessedOrder[accessedOrder.length - 1];
117
+ let componentVisible = accessedOrder.length > 0;
118
+ const { visible } = dispatchObjState;
119
+ componentVisible = visible || componentVisible;
120
+ if (items[key] &&
121
+ items[key].view &&
122
+ !Utils.isEmptyObject(items[key].view)) {
123
+ const latestItem = items[key];
124
+ const rootView = latestItem.view;
125
+ const { context, name: viewName } = rootView.config;
126
+ const config = { meta: rootView };
127
+ config.options = {
128
+ context: latestItem.context,
129
+ pageReference: context || getPConnect().getPageReference(),
130
+ containerName: getPConnect().getContainerName(),
131
+ containerItemName: key,
132
+ hasForm: viewName === CREATE_DETAILS_VIEW_NAME
133
+ };
134
+ const configObject = PCore.createPConnect(config);
135
+ // Add in displayOnlyFA if prop is on ViewContainer
136
+ if (displayOnlyFA) {
137
+ configObject["displayOnlyFA"] = true;
138
+ }
139
+ setRootComponent(configObject);
140
+ return (React.createElement(React.Fragment, { key: theBuildName },
141
+ componentVisible && root,
142
+ loadingInfo && React.createElement(Box, { textAlign: "center" },
143
+ React.createElement(CircularProgress, null))));
144
+ }
145
+ }
146
+ }
147
+ // fall through return if insufficient routingInfo
148
+ return (React.createElement(React.Fragment, { key: theBuildName }, loadingInfo && React.createElement(Box, { textAlign: "center" },
149
+ React.createElement(CircularProgress, null))));
150
+ }
151
+ ViewContainer.defaultProps = {
152
+ getPConnect: null,
153
+ name: "",
154
+ loadingInfo: false,
155
+ routingInfo: null,
156
+ mode: "single",
157
+ limit: 16
158
+ };
159
+ ViewContainer.propTypes = {
160
+ getPConnect: PropTypes.func,
161
+ name: PropTypes.string,
162
+ loadingInfo: PropTypes.bool,
163
+ routingInfo: PropTypes.objectOf(PropTypes.any),
164
+ mode: PropTypes.string,
165
+ limit: PropTypes.number
166
+ };
167
+ //# sourceMappingURL=ViewContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ViewContainer/ViewContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAO3C,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAGF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK;IACzC,8DAA8D;IAC9D,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE3E,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IAGnD,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IACrD,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,YAAY,GAA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,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;IAC9C,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,KAAK,EAAE,SAAS,CAAC,MAAM;CACxB,CAAC","sourcesContent":["import React, { useEffect, useState, useContext, createElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Box, CircularProgress } from \"@material-ui/core\";\nimport createPConnectComponent from \"../../../../bridge/react_pconnect\";\nimport StoreContext from \"../../../../bridge/Context/StoreContext\";\nimport Utils from '../../../helpers/utils';\n\n// ViewContainer can emit View\n// import View from '../View';\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\nexport default function ViewContainer(props) {\n // const { getPConnect, children, routingInfo, name } = props;\n const { getPConnect, name, mode, limit, loadingInfo, routingInfo } = props;\n\n const { displayOnlyFA } = useContext(StoreContext);\n\n\n const { CONTAINER_TYPE, APP } = PCore.getConstants();\n const pConn = getPConnect();\n const containerMgr: any = pConn.getContainerManager();\n\n const [dispatchObjState, setDispatchObjState] = useState({\n dispatchObject: {semanticURL: \"\", context: \"\", acName: \"\"},\n visible: false,\n loadingInfo: null,\n isLoadingInfoChange: false\n }); // was this.state in class-based ViewContainer avoiding use of just \"state\" as the name\n\n let root;\n\n\n const thePConn = ((typeof getPConnect) === 'function') ? getPConnect() : null;\n\n // beginning of functions for use by ViewContainer\n\n function buildName() {\n const context = thePConn.getContextName();\n let viewContainerName = name;\n if (!viewContainerName) viewContainerName = \"\";\n return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n function prepareDispatchObject() {\n const baseContext = pConn.getContextName();\n const { acName = \"primary\" } = pConn.getContainerName();\n\n return {\n semanticURL: \"\",\n context: baseContext,\n acName\n };\n }\n\n // determine if or not loadingInfo prop changed on next re-render\n // function getDerivedStateFromProps(nextProps, prevState) {\n // const { loadingInfo: prevLoadingInfo } = prevState;\n // const { loadingInfo: nextLoadingIndfo } = nextProps;\n // return {\n // loadingInfo: nextLoadingIndfo,\n // isLoadingInfoChange: prevLoadingInfo !== nextLoadingIndfo\n // };\n // }\n\n // set the root component that is retrieved by PConnectHOC\n function setRootComponent(configObject) {\n\n const { isLoadingInfoChange } = dispatchObjState;\n if (!isLoadingInfoChange) {\n root = createElement(createPConnectComponent(), configObject);\n }\n }\n\n // end of functions for use by ViewContainer\n\n // useEffect on [] -> code that should be run once (as in old constructor and in componentDidMount)\n useEffect(() => {\n\n // This is adapted from the class-based ViewContainer constructor\n containerMgr.initializeContainers({\n type:\n mode === CONTAINER_TYPE.MULTIPLE\n ? CONTAINER_TYPE.MULTIPLE\n : CONTAINER_TYPE.SINGLE\n });\n\n if (mode === CONTAINER_TYPE.MULTIPLE && limit) {\n /* NOTE: setContainerLimit use is temporary. It is a non-public, unsupported API. */\n PCore.getContainerUtils().setContainerLimit(`${APP.APP}/${name}`, limit);\n }\n\n const dispatchObject = prepareDispatchObject();\n setDispatchObjState( {\n dispatchObject,\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n visible: !PCore.checkIfSemanticURL(),\n loadingInfo,\n isLoadingInfoChange: false\n });\n\n const { visible } = dispatchObjState;\n if (visible) containerMgr.addContainerItem(dispatchObject);\n\n // This is adapted from the class-based ViewContainer componentDidMount\n let objectForAddContainer;\n if (PCore.checkIfSemanticURL()) {\n objectForAddContainer = prepareDispatchObject();\n } else {\n const { dispatchObject: theDispatchObject } = dispatchObjState;\n objectForAddContainer = theDispatchObject;\n }\n\n // Getting default view label\n const navPages = pConn.getValue(\"pyPortal.pyPrimaryNavPages\");\n const defaultViewLabel =\n Array.isArray(navPages) && navPages[0] ? navPages[0].pyLabel : \"\";\n // TODO: Plan is to rename window.constellationCore to window.pega (or similar)\n // And expose less via ui-bootstrap.js\n // PCore is defined in pxBootstrapShell - eventually will be exported in place of constellationCore\n\n if (!displayOnlyFA) {\n // configureForBrowserBookmark not applicable in Embedded mode\n PCore.configureForBrowserBookmark({\n ...objectForAddContainer,\n defaultViewLabel\n });\n\n }\n\n },\n []);\n\n // This code (that's run every time the ViewContainer is called) is adapted from the class-based ViewContainer's render\n\n // Looking for routingInfo\n\n // debugging/investigation help\n // console.log(`ViewContainer props: ${JSON.stringify(props)}`);\n\n const theBuildName = buildName();\n const { CREATE_DETAILS_VIEW_NAME } = PCore.getConstants();\n if (routingInfo) {\n const { accessedOrder, items } = routingInfo;\n if (accessedOrder && items) {\n const key = accessedOrder[accessedOrder.length - 1];\n let componentVisible = accessedOrder.length > 0;\n const { visible } = dispatchObjState;\n componentVisible = visible || componentVisible;\n if (\n items[key] &&\n items[key].view &&\n !Utils.isEmptyObject(items[key].view)\n ) {\n const latestItem = items[key];\n const rootView = latestItem.view;\n const { context, name: viewName } = rootView.config;\n const config: any = { meta: rootView };\n config.options = {\n context: latestItem.context,\n pageReference: context || getPConnect().getPageReference(),\n containerName: getPConnect().getContainerName(),\n containerItemName: key,\n hasForm: viewName === CREATE_DETAILS_VIEW_NAME\n };\n const configObject = PCore.createPConnect(config);\n\n // Add in displayOnlyFA if prop is on ViewContainer\n if (displayOnlyFA) {\n configObject[\"displayOnlyFA\"] = true;\n }\n\n setRootComponent(configObject);\n return (\n <React.Fragment key={theBuildName}>\n {componentVisible && root}\n {loadingInfo && <Box textAlign=\"center\"><CircularProgress /></Box>}\n </React.Fragment>\n );\n }\n }\n }\n\n // fall through return if insufficient routingInfo\n return (\n <React.Fragment key={theBuildName}>\n {loadingInfo && <Box textAlign=\"center\"><CircularProgress /></Box>}\n </React.Fragment>\n );\n\n}\n\nViewContainer.defaultProps = {\n getPConnect: null,\n name: \"\",\n loadingInfo: false,\n routingInfo: null,\n mode: \"single\",\n limit: 16\n};\n\nViewContainer.propTypes = {\n getPConnect: PropTypes.func,\n name: PropTypes.string,\n loadingInfo: PropTypes.bool,\n routingInfo: PropTypes.objectOf(PropTypes.any),\n mode: PropTypes.string,\n limit: PropTypes.number\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './ViewContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ViewContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ViewContainer';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ViewContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { default } from './ViewContainer';\n"]}
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ import 'react-datepicker/dist/react-datepicker.css';
4
+ declare function DashboardFilter(props: any): JSX.Element;
5
+ declare namespace DashboardFilter {
6
+ var defaultProps: {
7
+ children: null;
8
+ type: null;
9
+ metadata: null;
10
+ };
11
+ var propTypes: {
12
+ getPConnect: PropTypes.Validator<(...args: any[]) => any>;
13
+ children: PropTypes.Requireable<object>;
14
+ name: PropTypes.Validator<string>;
15
+ filterProp: PropTypes.Validator<string>;
16
+ type: PropTypes.Requireable<string>;
17
+ metadata: PropTypes.Requireable<{
18
+ [x: string]: any;
19
+ }>;
20
+ };
21
+ }
22
+ export default DashboardFilter;
23
+ //# sourceMappingURL=DashboardFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/DashboardFilter/DashboardFilter.tsx"],"names":[],"mappings":";AAIA,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,OAAO,4CAA4C,CAAC;AAIpD,iBAAwB,eAAe,CAAC,KAAK,KAAA,eAoJ5C;kBApJuB,eAAe;;;;;;;;;;;;;;;;;eAAf,eAAe"}