@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,180 @@
1
+ /* eslint-disable react/jsx-boolean-value */
2
+ import React, { useState, useEffect, useContext } from "react";
3
+ import PropTypes from "prop-types";
4
+ import { Utils } from '../../helpers/utils';
5
+ import { Card, CardHeader, Avatar, Typography, Divider } from "@material-ui/core";
6
+ import { makeStyles } from '@material-ui/core/styles';
7
+ import Box from '@material-ui/core/Box';
8
+ import Button from '@material-ui/core/Button';
9
+ import Grid from '@material-ui/core/Grid';
10
+ import StoreContext from "../../../bridge/Context/StoreContext";
11
+ import CaseViewActionsMenu from "./CaseViewActionsMenu";
12
+ import VerticalTabs from '../../infra/VerticalTabs';
13
+ import DeferLoad from '../../infra/DeferLoad';
14
+ const useStyles = makeStyles((theme) => ({
15
+ root: {
16
+ paddingRight: theme.spacing(1),
17
+ paddingLeft: theme.spacing(1),
18
+ paddingTop: theme.spacing(1),
19
+ paddingBottom: theme.spacing(1),
20
+ marginRight: theme.spacing(1),
21
+ marginLeft: theme.spacing(1),
22
+ marginTop: theme.spacing(1),
23
+ marginBottom: theme.spacing(1),
24
+ },
25
+ caseViewHeader: {
26
+ backgroundColor: theme.palette.info.light,
27
+ color: theme.palette.getContrastText(theme.palette.info.light),
28
+ borderRadius: "inherit",
29
+ },
30
+ caseViewIconBox: {
31
+ backgroundColor: theme.palette.info.dark,
32
+ width: theme.spacing(8),
33
+ height: theme.spacing(8),
34
+ padding: theme.spacing(1),
35
+ },
36
+ caseViewIconImage: {
37
+ filter: 'invert(100%)'
38
+ }
39
+ }));
40
+ export default function CaseView(props) {
41
+ const { getPConnect, icon, header, subheader, children, caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments } } = props;
42
+ const currentCaseID = props.caseInfo.ID;
43
+ let isComponentMounted = true;
44
+ const { displayOnlyFA } = useContext(StoreContext);
45
+ const thePConn = getPConnect();
46
+ const classes = useStyles();
47
+ /**
48
+ *
49
+ * @param inName the metadata <em>name</em> that will cause a region to be returned
50
+ */
51
+ function getChildRegionByName(inName) {
52
+ for (const child of children) {
53
+ const theMetadataType = child.props.getPConnect().getRawMetadata()['type'].toLowerCase();
54
+ const theMetadataName = child.props.getPConnect().getRawMetadata()['name'].toLowerCase();
55
+ if ((theMetadataType === "region") && (theMetadataName === inName)) {
56
+ return child;
57
+ }
58
+ }
59
+ return null;
60
+ }
61
+ const theSummaryRegion = getChildRegionByName("summary");
62
+ const theStagesRegion = getChildRegionByName("stages");
63
+ const theTodoRegion = getChildRegionByName("todo");
64
+ const theUtilitiesRegion = getChildRegionByName("utilities");
65
+ const theTabsRegion = getChildRegionByName("tabs");
66
+ const svgCase = Utils.getImageSrc(icon, PCore.getAssetLoader().getStaticServerUrl());
67
+ const [activeVertTab, setActiveVertTab] = useState(0);
68
+ // const tmpLoadData1 = { config: { label: "Details", name: "pyDetailsTabContent" }, type: "DeferLoad" };
69
+ // const tmpLoadData2 = { config: { label: "Case History", name: "CaseHistory" }, type: "DeferLoad" };
70
+ // Extract the tabs we need to display from theTabsRegion (one tab per entry in theTabsRegionChildren)
71
+ const theTabsRegionChildren = theTabsRegion.props.getPConnect().getChildren();
72
+ // vertTabInfo is sent to VerticalTabs component
73
+ const vertTabInfo = [];
74
+ // deferLoadInfo is sent to DeferLoad component (currently selected entry)
75
+ const deferLoadInfo = [];
76
+ if (theTabsRegionChildren) {
77
+ // populate vertTabInfo and deferLoadInfo
78
+ theTabsRegionChildren.forEach((tabComp, index) => {
79
+ const theTabCompConfig = tabComp.getPConnect().getConfigProps();
80
+ // eslint-disable-next-line prefer-const
81
+ let { label, inheritedProps } = theTabCompConfig;
82
+ // For some tabs, "label" property is not avaialable in theTabCompConfig, so will get them from inheritedProps
83
+ if (!label) {
84
+ inheritedProps.forEach(inheritedProp => {
85
+ if (inheritedProp.prop === 'label') {
86
+ label = inheritedProp.value;
87
+ }
88
+ });
89
+ }
90
+ // We'll display the tabs when either visibility property doesn't exist or is true(if exists)
91
+ if (theTabCompConfig.visibility === undefined || theTabCompConfig.visibility === true) {
92
+ vertTabInfo.push({ name: label, id: index });
93
+ deferLoadInfo.push({ type: 'DeferLoad', config: theTabCompConfig });
94
+ }
95
+ });
96
+ }
97
+ function handleVerticalTabClick(eventDetail) {
98
+ const theItem = parseInt(eventDetail.additionalData.itemClicked, 10);
99
+ // only call useEffectSetter if the component is mounted
100
+ if (isComponentMounted) {
101
+ setActiveVertTab(theItem);
102
+ }
103
+ }
104
+ // Add and Remove event listener for VerticalTabClick only at startup and teardown
105
+ useEffect(() => {
106
+ document.addEventListener('VerticalTabClick', (event) => {
107
+ handleVerticalTabClick(event.detail);
108
+ });
109
+ return () => {
110
+ // inform that the component is unmounted so other code can
111
+ // know not to try to call useState setters (to avoid console warnings)
112
+ isComponentMounted = false;
113
+ document.removeEventListener('VerticalTabClick', (event) => {
114
+ handleVerticalTabClick(event.detail);
115
+ });
116
+ };
117
+ }, []);
118
+ useEffect(() => {
119
+ if (hasNewAttachments) {
120
+ PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);
121
+ }
122
+ }, [hasNewAttachments]);
123
+ function _editClick() {
124
+ const editAction = availableActions.find((action) => action.ID === "pyUpdateCaseDetails");
125
+ const actionsAPI = thePConn.getActionsApi();
126
+ const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);
127
+ openLocalAction(editAction.ID, { ...editAction });
128
+ }
129
+ function getActionButtonsHtml() {
130
+ const aBHtml = React.createElement(Box, null,
131
+ React.createElement(Button, { onClick: () => { _editClick(); } }, "Edit"),
132
+ "\u00A0",
133
+ React.createElement(CaseViewActionsMenu, { getPConnect: getPConnect, availableActions: availableActions, availableProcesses: availableProcesses }));
134
+ return aBHtml;
135
+ }
136
+ function getContainerContents() {
137
+ if (!displayOnlyFA) {
138
+ // show full portal
139
+ return (React.createElement(Grid, { container: true },
140
+ React.createElement(Grid, { item: true, xs: 3 },
141
+ React.createElement("div", { hidden: true, id: "current-caseID" }, currentCaseID),
142
+ React.createElement(Card, { className: classes.root },
143
+ React.createElement(CardHeader, { className: classes.caseViewHeader, title: React.createElement(Typography, { variant: "h6", component: "div" }, header), subheader: React.createElement(Typography, { variant: "body1", component: "div", id: "caseId" }, subheader), avatar: React.createElement(Avatar, { className: classes.caseViewIconBox, variant: "square" },
144
+ React.createElement("img", { src: svgCase, className: classes.caseViewIconImage })) }),
145
+ getActionButtonsHtml(),
146
+ React.createElement(Divider, null),
147
+ theSummaryRegion,
148
+ React.createElement(Divider, null),
149
+ vertTabInfo.length > 1 && React.createElement(VerticalTabs, { tabconfig: vertTabInfo }))),
150
+ React.createElement(Grid, { item: true, xs: 6 },
151
+ theStagesRegion,
152
+ theTodoRegion,
153
+ deferLoadInfo.length > 0 && React.createElement(DeferLoad, { getPConnect: getPConnect, name: deferLoadInfo[activeVertTab].config.name, isTab: true })),
154
+ React.createElement(Grid, { item: true, xs: 3 }, theUtilitiesRegion)));
155
+ }
156
+ else {
157
+ // displayOnlyFA - only show the "todo" region
158
+ return (React.createElement(Grid, { container: true },
159
+ React.createElement(Grid, { item: true, xs: 12 }, theTodoRegion)));
160
+ }
161
+ }
162
+ return (getContainerContents());
163
+ }
164
+ CaseView.defaultProps = {
165
+ icon: "",
166
+ children: [],
167
+ caseInfo: {},
168
+ showIconInHeader: true,
169
+ getPConnect: null
170
+ };
171
+ CaseView.propTypes = {
172
+ icon: PropTypes.string,
173
+ children: PropTypes.arrayOf(PropTypes.node),
174
+ subheader: PropTypes.string.isRequired,
175
+ header: PropTypes.string.isRequired,
176
+ showIconInHeader: PropTypes.bool,
177
+ caseInfo: PropTypes.objectOf(PropTypes.any),
178
+ getPConnect: PropTypes.func
179
+ };
180
+ //# sourceMappingURL=CaseView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseView.js","sourceRoot":"","sources":["../../../../src/components/templates/CaseView/CaseView.tsx"],"names":[],"mappings":"AAAA,4CAA4C;AAE5C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,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AE,SAAS,CAAC,MAAM;IACtB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACnC,gBAAgB,EAAE,SAAS,CAAC,IAAI;IAChC,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;IAC3C,WAAW,EAAE,SAAS,CAAC,IAAI;CAC5B,CAAC","sourcesContent":["/* eslint-disable react/jsx-boolean-value */\n\nimport React, { useState, useEffect, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Utils } from '../../helpers/utils';\nimport { Card, CardHeader, Avatar, Typography, Divider } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Grid from '@material-ui/core/Grid';\n\nimport StoreContext from \"../../../bridge/Context/StoreContext\";\nimport CaseViewActionsMenu from \"./CaseViewActionsMenu\";\nimport VerticalTabs from '../../infra/VerticalTabs';\nimport DeferLoad from '../../infra/DeferLoad';\n\n\ndeclare const PCore;\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n caseViewHeader: {\n backgroundColor: theme.palette.info.light,\n color: theme.palette.getContrastText(theme.palette.info.light),\n borderRadius: \"inherit\",\n },\n caseViewIconBox: {\n backgroundColor: theme.palette.info.dark,\n width: theme.spacing(8),\n height: theme.spacing(8),\n padding: theme.spacing(1),\n },\n caseViewIconImage: {\n filter: 'invert(100%)'\n }\n}));\n\nexport default function CaseView(props) {\n const {\n getPConnect,\n icon,\n header,\n subheader,\n children,\n caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments }\n } = props;\n const currentCaseID = props.caseInfo.ID;\n let isComponentMounted = true;\n\n const { displayOnlyFA } = useContext(StoreContext);\n\n const thePConn = getPConnect();\n\n const classes = useStyles();\n\n\n /**\n *\n * @param inName the metadata <em>name</em> that will cause a region to be returned\n */\n function getChildRegionByName(inName: string): any {\n\n for (const child of children) {\n const theMetadataType: string = child.props.getPConnect().getRawMetadata()['type'].toLowerCase();\n const theMetadataName: string = child.props.getPConnect().getRawMetadata()['name'].toLowerCase();\n\n if ((theMetadataType === \"region\") && (theMetadataName === inName )) {\n return child;\n }\n }\n\n return null;\n }\n\n\n const theSummaryRegion = getChildRegionByName(\"summary\");\n const theStagesRegion = getChildRegionByName(\"stages\");\n const theTodoRegion = getChildRegionByName(\"todo\");\n const theUtilitiesRegion = getChildRegionByName(\"utilities\");\n const theTabsRegion = getChildRegionByName(\"tabs\");\n\n const svgCase = Utils.getImageSrc(icon, PCore.getAssetLoader().getStaticServerUrl());\n\n const [activeVertTab, setActiveVertTab] = useState(0);\n\n // const tmpLoadData1 = { config: { label: \"Details\", name: \"pyDetailsTabContent\" }, type: \"DeferLoad\" };\n // const tmpLoadData2 = { config: { label: \"Case History\", name: \"CaseHistory\" }, type: \"DeferLoad\" };\n\n // Extract the tabs we need to display from theTabsRegion (one tab per entry in theTabsRegionChildren)\n const theTabsRegionChildren = theTabsRegion.props.getPConnect().getChildren();\n\n // vertTabInfo is sent to VerticalTabs component\n const vertTabInfo: Array<Object> = [];\n\n // deferLoadInfo is sent to DeferLoad component (currently selected entry)\n const deferLoadInfo: Array<any> = [];\n\n if (theTabsRegionChildren) {\n // populate vertTabInfo and deferLoadInfo\n theTabsRegionChildren.forEach((tabComp, index) => {\n const theTabCompConfig = tabComp.getPConnect().getConfigProps();\n // eslint-disable-next-line prefer-const\n let { label, inheritedProps } = theTabCompConfig;\n // For some tabs, \"label\" property is not avaialable in theTabCompConfig, so will get them from inheritedProps\n if (!label) {\n inheritedProps.forEach(inheritedProp => {\n if (inheritedProp.prop === 'label') {\n label = inheritedProp.value;\n }\n });\n }\n // We'll display the tabs when either visibility property doesn't exist or is true(if exists)\n if (theTabCompConfig.visibility === undefined || theTabCompConfig.visibility === true) {\n vertTabInfo.push({ name: label, id: index });\n deferLoadInfo.push({ type: 'DeferLoad', config: theTabCompConfig });\n }\n });\n }\n\n\n\n function handleVerticalTabClick(eventDetail: any) {\n const theItem = parseInt(eventDetail.additionalData.itemClicked, 10);\n\n // only call useEffectSetter if the component is mounted\n if (isComponentMounted) {\n setActiveVertTab(theItem);\n }\n }\n\n\n // Add and Remove event listener for VerticalTabClick only at startup and teardown\n useEffect(() => {\n document.addEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n\n return ():void => {\n // inform that the component is unmounted so other code can\n // know not to try to call useState setters (to avoid console warnings)\n isComponentMounted = false;\n\n document.removeEventListener('VerticalTabClick', (event: any) => {\n handleVerticalTabClick(event.detail);\n });\n }\n }, [])\n\n useEffect(() => {\n if (hasNewAttachments) {\n PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);\n }\n }, [hasNewAttachments]);\n\n function _editClick() {\n\n const editAction = availableActions.find(\n (action) => action.ID === \"pyUpdateCaseDetails\"\n );\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction( editAction.ID, { ...editAction});\n }\n\n\n function getActionButtonsHtml(): any {\n\n const aBHtml = <Box>\n <Button onClick={() => {_editClick()}}>Edit</Button>\n &nbsp;\n <CaseViewActionsMenu getPConnect={getPConnect} availableActions={availableActions} availableProcesses={availableProcesses} />\n </Box>;\n\n\n return aBHtml;\n\n }\n\n\n function getContainerContents() {\n\n if (!displayOnlyFA) {\n // show full portal\n return (\n <Grid container>\n <Grid item xs={3}>\n <div hidden={true} id=\"current-caseID\">{currentCaseID}</div>\n <Card className={classes.root} >\n <CardHeader className={classes.caseViewHeader}\n title={<Typography variant=\"h6\" component=\"div\">{header}</Typography>}\n subheader={<Typography variant=\"body1\" component=\"div\" id=\"caseId\">{subheader}</Typography>}\n avatar={\n <Avatar className={classes.caseViewIconBox} variant=\"square\">\n <img src={svgCase} className={classes.caseViewIconImage}/>\n </Avatar>\n }\n />\n {getActionButtonsHtml()}\n <Divider />\n {theSummaryRegion}\n <Divider />\n { vertTabInfo.length > 1 && <VerticalTabs tabconfig={vertTabInfo} />}\n </Card>\n </Grid>\n\n <Grid item xs={6}>\n {theStagesRegion}\n {theTodoRegion}\n { deferLoadInfo.length > 0 && <DeferLoad getPConnect={getPConnect} name={deferLoadInfo[activeVertTab].config.name } isTab />}\n </Grid>\n\n <Grid item xs={3}>\n {theUtilitiesRegion}\n </Grid>\n </Grid>\n )\n } else {\n // displayOnlyFA - only show the \"todo\" region\n return (\n <Grid container>\n <Grid item xs={12}>\n {theTodoRegion}\n </Grid>\n </Grid>\n )\n }\n }\n\n\n return (\n getContainerContents()\n );\n}\n\nCaseView.defaultProps = {\n icon: \"\",\n children: [],\n caseInfo: {},\n showIconInHeader: true,\n getPConnect: null\n};\n\nCaseView.propTypes = {\n icon: PropTypes.string,\n children: PropTypes.arrayOf(PropTypes.node),\n subheader: PropTypes.string.isRequired,\n header: PropTypes.string.isRequired,\n showIconInHeader: PropTypes.bool,\n caseInfo: PropTypes.objectOf(PropTypes.any),\n getPConnect: PropTypes.func\n};\n"]}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from "prop-types";
3
+ declare function CaseViewActionsMenu(props: any): JSX.Element;
4
+ declare namespace CaseViewActionsMenu {
5
+ var defaultProps: {
6
+ availableActions: never[];
7
+ availableProcesses: never[];
8
+ };
9
+ var propTypes: {
10
+ getPConnect: PropTypes.Validator<(...args: any[]) => any>;
11
+ availableActions: PropTypes.Requireable<(object | null | undefined)[]>;
12
+ availableProcesses: PropTypes.Requireable<any[]>;
13
+ };
14
+ }
15
+ export default CaseViewActionsMenu;
16
+ //# sourceMappingURL=CaseViewActionsMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseViewActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/CaseView/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,iBAAwB,mBAAmB,CAAC,KAAK,KAAA,eAuDhD;kBAvDuB,mBAAmB;;;;;;;;;;;eAAnB,mBAAmB"}
@@ -0,0 +1,43 @@
1
+ import React, { useState } from 'react';
2
+ import PropTypes from "prop-types";
3
+ import Button from '@material-ui/core/Button';
4
+ import Menu from '@material-ui/core/Menu';
5
+ import MenuItem from '@material-ui/core/MenuItem';
6
+ export default function CaseViewActionsMenu(props) {
7
+ const { getPConnect, availableActions, availableProcesses } = props;
8
+ const thePConn = getPConnect();
9
+ const [anchorEl, setAnchorEl] = useState(null);
10
+ const handleClick = (event) => {
11
+ setAnchorEl(event.currentTarget);
12
+ };
13
+ const handleClose = () => {
14
+ setAnchorEl(null);
15
+ };
16
+ const arMenuItems = [];
17
+ function _actionMenuActionsClick(data) {
18
+ const actionsAPI = thePConn.getActionsApi();
19
+ const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);
20
+ openLocalAction(data.ID, { ...data });
21
+ // after doing the action, close the menu...
22
+ handleClose();
23
+ }
24
+ availableActions.forEach((action) => {
25
+ arMenuItems.push(React.createElement(MenuItem, { key: action.ID, onClick: () => _actionMenuActionsClick(action) }, action.name));
26
+ });
27
+ availableProcesses.forEach((process) => {
28
+ arMenuItems.push(React.createElement(MenuItem, { onClick: handleClose }, process.name));
29
+ });
30
+ return (React.createElement(React.Fragment, null,
31
+ React.createElement(Button, { "aria-controls": "simple-menu", "aria-haspopup": "true", onClick: handleClick }, "Actions..."),
32
+ React.createElement(Menu, { id: "simple-menu", anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose }, arMenuItems)));
33
+ }
34
+ CaseViewActionsMenu.defaultProps = {
35
+ availableActions: [],
36
+ availableProcesses: []
37
+ };
38
+ CaseViewActionsMenu.propTypes = {
39
+ getPConnect: PropTypes.func.isRequired,
40
+ availableActions: PropTypes.arrayOf(PropTypes.object),
41
+ availableProcesses: PropTypes.arrayOf(PropTypes.any)
42
+ };
43
+ //# sourceMappingURL=CaseViewActionsMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseViewActionsMenu.js","sourceRoot":"","sources":["../../../../src/components/templates/CaseView/CaseViewActionsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK;IAC/C,MAAM,EAAC,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAC,GAAG,KAAK,CAAC;IAClE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAG/B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAqB,IAAI,CAAC,CAAC;IAEnE,MAAM,WAAW,GAAG,CAAC,KAA0C,EAAE,EAAE;QACjE,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,WAAW,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAe,EAAE,CAAC;IAGnC,SAAS,uBAAuB,CAAC,IAAI;QAEnC,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC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CAAC,GAAG,CAAC;CACrD,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from \"prop-types\";\nimport Button from '@material-ui/core/Button';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\n\nexport default function CaseViewActionsMenu(props) {\n const {getPConnect, availableActions, availableProcesses} = props;\n const thePConn = getPConnect();\n\n\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const arMenuItems: Array<any> = [];\n\n\n function _actionMenuActionsClick(data) {\n\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction( data.ID, { ...data});\n // after doing the action, close the menu...\n handleClose();\n\n }\n\n\n availableActions.forEach( (action) => {\n arMenuItems.push( <MenuItem key={action.ID} onClick={() => _actionMenuActionsClick(action)}>{action.name}</MenuItem> )\n });\n\n availableProcesses.forEach( (process) => {\n arMenuItems.push( <MenuItem onClick={handleClose}>{process.name}</MenuItem> )\n });\n\n\n return (\n <React.Fragment>\n <Button aria-controls=\"simple-menu\" aria-haspopup=\"true\" onClick={handleClick}>\n Actions...\n </Button>\n <Menu\n id=\"simple-menu\"\n anchorEl={anchorEl}\n keepMounted\n open={Boolean(anchorEl)}\n onClose={handleClose}\n >\n {arMenuItems}\n </Menu>\n </React.Fragment>\n );\n}\n\nCaseViewActionsMenu.defaultProps = {\n availableActions: [],\n availableProcesses: []\n}\n\nCaseViewActionsMenu.propTypes = {\n getPConnect: PropTypes.func.isRequired,\n availableActions: PropTypes.arrayOf(PropTypes.object),\n availableProcesses: PropTypes.arrayOf(PropTypes.any)\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './CaseView';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/CaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './CaseView';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/templates/CaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { default } from './CaseView';\n"]}
@@ -0,0 +1,32 @@
1
+ import PropTypes from 'prop-types';
2
+ declare function DataReference(props: any): any;
3
+ declare namespace DataReference {
4
+ var defaultProps: {
5
+ label: undefined;
6
+ showLabel: undefined;
7
+ displayMode: undefined;
8
+ allowAndPersistChangesInReviewMode: boolean;
9
+ referenceType: string;
10
+ selectionMode: string;
11
+ displayAs: string;
12
+ ruleClass: string;
13
+ parameters: undefined;
14
+ hideLabel: boolean;
15
+ };
16
+ var propTypes: {
17
+ children: PropTypes.Validator<PropTypes.ReactNodeLike[]>;
18
+ getPConnect: PropTypes.Validator<(...args: any[]) => any>;
19
+ label: PropTypes.Requireable<string>;
20
+ showLabel: PropTypes.Requireable<(...args: any[]) => any>;
21
+ displayMode: PropTypes.Requireable<string>;
22
+ allowAndPersistChangesInReviewMode: PropTypes.Requireable<boolean>;
23
+ referenceType: PropTypes.Requireable<string>;
24
+ selectionMode: PropTypes.Requireable<string>;
25
+ displayAs: PropTypes.Requireable<string>;
26
+ ruleClass: PropTypes.Requireable<string>;
27
+ parameters: PropTypes.Requireable<(string | null | undefined)[]>;
28
+ hideLabel: PropTypes.Requireable<boolean>;
29
+ };
30
+ }
31
+ export default DataReference;
32
+ //# sourceMappingURL=DataReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataReference.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/DataReference/DataReference.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,iBAAwB,aAAa,CAAC,KAAK,KAAA,OA4P1C;kBA5PuB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAb,aAAa"}
@@ -0,0 +1,221 @@
1
+ import React, { useMemo, useState, useEffect } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import SingleReferenceReadonly from '../SingleReferenceReadOnly';
4
+ import MultiReferenceReadonly from '../MultiReferenceReadOnly';
5
+ const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
6
+ export default function DataReference(props) {
7
+ const { children, getPConnect, label, showLabel, displayMode, allowAndPersistChangesInReviewMode, referenceType, selectionMode, displayAs, ruleClass, parameters, hideLabel } = props;
8
+ let childrenToRender = children;
9
+ const pConn = getPConnect();
10
+ const [dropDownDataSource, setDropDownDataSource] = useState(null);
11
+ const propsToUse = { label, showLabel, ...pConn.getInheritedProps() };
12
+ if (propsToUse.showLabel === false) {
13
+ propsToUse.label = '';
14
+ }
15
+ const rawViewMetadata = pConn.getRawMetadata();
16
+ const viewName = rawViewMetadata.name;
17
+ const [firstChildMeta] = rawViewMetadata.children;
18
+ const refList = rawViewMetadata.config.referenceList;
19
+ const canBeChangedInReviewMode = allowAndPersistChangesInReviewMode && (displayAs === 'autocomplete' || displayAs === 'dropdown');
20
+ let propName;
21
+ const isDisplayModeEnabled = ['LABELS_LEFT', 'STACKED_LARGE_VAL'].includes(displayMode);
22
+ let firstChildPConnect;
23
+ /* Only for dropdown when it has param use data api to get the data back and add it to datasource */
24
+ useEffect(() => {
25
+ if (firstChildMeta?.type === "Dropdown" &&
26
+ rawViewMetadata.config?.parameters) {
27
+ const { value, key, text } = firstChildMeta.config.datasource.fields;
28
+ PCore.getDataApiUtils()
29
+ .getData(refList, {
30
+ dataViewParameters: parameters
31
+ })
32
+ .then((res) => {
33
+ if (res.data.data !== null) {
34
+ const ddDataSource = res.data.data
35
+ .map((listItem) => ({
36
+ key: listItem[key.split(" .", 2)[1]],
37
+ text: listItem[text.split(" .", 2)[1]],
38
+ value: listItem[value.split(" .", 2)[1]]
39
+ }))
40
+ .filter((item) => item.key);
41
+ // Filtering out undefined entries that will break preview
42
+ setDropDownDataSource(ddDataSource);
43
+ }
44
+ else {
45
+ const ddDataSource = [];
46
+ setDropDownDataSource(ddDataSource);
47
+ }
48
+ })
49
+ .catch((err) => {
50
+ // eslint-disable-next-line no-console
51
+ console.error(err?.stack);
52
+ return Promise.resolve({
53
+ data: { data: [] }
54
+ });
55
+ });
56
+ }
57
+ }, [firstChildMeta, rawViewMetadata, parameters]);
58
+ if (firstChildMeta?.type !== 'Region') {
59
+ firstChildPConnect = getPConnect().getChildren()[0].getPConnect;
60
+ /* remove refresh When condition from those old view so that it will not be used for runtime */
61
+ if (firstChildMeta.config?.readOnly) {
62
+ delete firstChildMeta.config.readOnly;
63
+ }
64
+ if (firstChildMeta?.type === 'Dropdown') {
65
+ firstChildMeta.config.datasource.source = rawViewMetadata.config?.parameters
66
+ ? dropDownDataSource
67
+ : '@DATASOURCE '.concat(refList).concat('.pxResults');
68
+ }
69
+ else if (firstChildMeta?.type === 'AutoComplete') {
70
+ firstChildMeta.config.datasource = refList;
71
+ /* Insert the parameters to the component only if present */
72
+ if (rawViewMetadata.config?.parameters) {
73
+ firstChildMeta.config.parameters = parameters;
74
+ }
75
+ }
76
+ // set displayMode conditionally
77
+ if (!canBeChangedInReviewMode) {
78
+ firstChildMeta.config.displayMode = displayMode;
79
+ }
80
+ if (firstChildMeta.type === 'SimpleTableSelect' && selectionMode === SELECTION_MODE.MULTI) {
81
+ propName = PCore.getAnnotationUtils().getPropertyName(firstChildMeta.config.selectionList);
82
+ }
83
+ else {
84
+ propName = PCore.getAnnotationUtils().getPropertyName(firstChildMeta.config.value);
85
+ }
86
+ }
87
+ const handleSelection = event => {
88
+ const caseKey = pConn.getCaseInfo().getKey();
89
+ const refreshOptions = { autoDetectRefresh: true };
90
+ if (canBeChangedInReviewMode && pConn.getValue('__currentPageTabViewName')) {
91
+ getPConnect()
92
+ .getActionsApi()
93
+ .refreshCaseView(caseKey, pConn.getValue('__currentPageTabViewName'), null, refreshOptions);
94
+ PCore.getDeferLoadManager().refreshActiveComponents(pConn.getContextName());
95
+ }
96
+ else {
97
+ const pgRef = pConn.getPageReference().replace('caseInfo.content', '');
98
+ getPConnect().getActionsApi().refreshCaseView(caseKey, viewName, pgRef, refreshOptions);
99
+ }
100
+ // AutoComplete sets value on event.id whereas Dropdown sets it on event.target.value
101
+ const propValue = event?.id || event?.target.value;
102
+ if (propValue && canBeChangedInReviewMode && isDisplayModeEnabled) {
103
+ PCore.getDataApiUtils()
104
+ .getCaseEditLock(caseKey)
105
+ .then(caseResponse => {
106
+ const pageTokens = pConn.getPageReference().replace('caseInfo.content', '').split('.');
107
+ let curr = {};
108
+ const commitData = curr;
109
+ pageTokens.forEach(el => {
110
+ if (el !== '') {
111
+ curr[el] = {};
112
+ curr = curr[el];
113
+ }
114
+ });
115
+ // expecting format like {Customer: {pyID:"C-100"}}
116
+ const propArr = propName.split('.');
117
+ propArr.forEach((element, idx) => {
118
+ if (idx + 1 === propArr.length) {
119
+ curr[element] = propValue;
120
+ }
121
+ else {
122
+ curr[element] = {};
123
+ curr = curr[element];
124
+ }
125
+ });
126
+ PCore.getDataApiUtils()
127
+ .updateCaseEditFieldsData(caseKey, { [caseKey]: commitData }, caseResponse.headers.etag, pConn.getContextName())
128
+ .then(response => {
129
+ PCore.getContainerUtils().updateChildContainersEtag(pConn.getContextName(), response.headers.etag);
130
+ });
131
+ });
132
+ }
133
+ };
134
+ // Re-create first child with overridden props
135
+ // Memoized child in order to stop unmount and remount of the child component when data reference
136
+ // rerenders without any actual change
137
+ const recreatedFirstChild = useMemo(() => {
138
+ const { type, config } = firstChildMeta;
139
+ if (firstChildMeta?.type !== 'Region') {
140
+ pConn.clearErrorMessages({
141
+ property: propName
142
+ });
143
+ if (!canBeChangedInReviewMode && isDisplayModeEnabled && selectionMode === SELECTION_MODE.SINGLE) {
144
+ return (React.createElement(SingleReferenceReadonly, { config: config, getPConnect: firstChildPConnect, label: propsToUse.label, type: type, displayAs: displayAs, displayMode: displayMode, ruleClass: ruleClass, referenceType: referenceType, hideLabel: hideLabel, dataRelationshipContext: rawViewMetadata.config.contextClass && rawViewMetadata.config.name ? rawViewMetadata.config.name : null }));
145
+ }
146
+ if (isDisplayModeEnabled && selectionMode === SELECTION_MODE.MULTI) {
147
+ return (React.createElement(MultiReferenceReadonly, { config: config, getPConnect: firstChildPConnect, label: propsToUse.label, hideLabel: hideLabel }));
148
+ }
149
+ // In the case of a datasource with parameters you cannot load the dropdown before the parameters
150
+ if (type === 'Dropdown' &&
151
+ rawViewMetadata.config?.parameters &&
152
+ dropDownDataSource === null) {
153
+ return null;
154
+ }
155
+ return firstChildPConnect().createComponent({
156
+ type,
157
+ config: {
158
+ ...config,
159
+ required: propsToUse.required,
160
+ visibility: propsToUse.visibility,
161
+ disabled: propsToUse.disabled,
162
+ label: propsToUse.label,
163
+ viewName: getPConnect().getCurrentView(),
164
+ parameters: rawViewMetadata.config.parameters,
165
+ readOnly: false,
166
+ localeReference: rawViewMetadata.config.localeReference,
167
+ ...(selectionMode === SELECTION_MODE.SINGLE ? { referenceType } : ''),
168
+ dataRelationshipContext: rawViewMetadata.config.contextClass && rawViewMetadata.config.name
169
+ ? rawViewMetadata.config.name
170
+ : null,
171
+ hideLabel,
172
+ onRecordChange: handleSelection
173
+ }
174
+ });
175
+ }
176
+ }, [
177
+ firstChildMeta.config?.datasource?.source,
178
+ parameters,
179
+ dropDownDataSource,
180
+ propsToUse.required,
181
+ propsToUse.disabled
182
+ ]);
183
+ // Only include the views region for rendering when it has content
184
+ if (firstChildMeta?.type !== 'Region') {
185
+ const viewsRegion = rawViewMetadata.children[1];
186
+ if (viewsRegion?.name === 'Views' && viewsRegion.children.length) {
187
+ childrenToRender = [recreatedFirstChild, ...children.slice(1)];
188
+ }
189
+ else {
190
+ childrenToRender = [recreatedFirstChild];
191
+ }
192
+ }
193
+ return childrenToRender.length === 1 ? (childrenToRender[0] ?? null) : (React.createElement("div", null, childrenToRender.map(child => (React.createElement(React.Fragment, null, child)))));
194
+ }
195
+ DataReference.defaultProps = {
196
+ label: undefined,
197
+ showLabel: undefined,
198
+ displayMode: undefined,
199
+ allowAndPersistChangesInReviewMode: false,
200
+ referenceType: '',
201
+ selectionMode: '',
202
+ displayAs: '',
203
+ ruleClass: '',
204
+ parameters: undefined,
205
+ hideLabel: false
206
+ };
207
+ DataReference.propTypes = {
208
+ children: PropTypes.arrayOf(PropTypes.node).isRequired,
209
+ getPConnect: PropTypes.func.isRequired,
210
+ label: PropTypes.string,
211
+ showLabel: PropTypes.func,
212
+ displayMode: PropTypes.string,
213
+ allowAndPersistChangesInReviewMode: PropTypes.bool,
214
+ referenceType: PropTypes.string,
215
+ selectionMode: PropTypes.string,
216
+ displayAs: PropTypes.string,
217
+ ruleClass: PropTypes.string,
218
+ parameters: PropTypes.arrayOf(PropTypes.string),
219
+ hideLabel: PropTypes.bool
220
+ };
221
+ //# sourceMappingURL=DataReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataReference.js","sourceRoot":"","sources":["../../../../src/components/templates/DataReference/DataReference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAE/D,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAI5D,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK;IACzC,MAAM,EACJ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,kCAAkC,EAClC,aAAa,EACb,aAAa,EACb,SAAS,EACT,SAAS,EACT,UAA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aAAa,EAAE,EAAE;IACjB,aAAa,EAAE,EAAE;IACjB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,KAAK;CACjB,CAAC;AAEF,aAAa,CAAC,SAAS,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,UAAU;IACtD,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,SAAS,EAAE,SAAS,CAAC,IAAI;IACzB,WAAW,EAAE,SAAS,CAAC,MAAM;IAC7B,kCAAkC,EAAE,SAAS,CAAC,IAAI;IAClD,aAAa,EAAE,SAAS,CAAC,MAAM;IAC/B,aAAa,EAAE,SAAS,CAAC,MAAM;IAC/B,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,SAAS,CAAC,IAAI;CAC1B,CAAC","sourcesContent":["import React, { useMemo, useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport SingleReferenceReadonly from '../SingleReferenceReadOnly';\nimport MultiReferenceReadonly from '../MultiReferenceReadOnly';\n\nconst SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };\n\ndeclare const PCore: any;\n\nexport default function DataReference(props) {\n const {\n children,\n getPConnect,\n label,\n showLabel,\n displayMode,\n allowAndPersistChangesInReviewMode,\n referenceType,\n selectionMode,\n displayAs,\n ruleClass,\n parameters,\n hideLabel\n } = props;\n let childrenToRender = children;\n const pConn = getPConnect();\n const [dropDownDataSource, setDropDownDataSource] = useState(null);\n const propsToUse = { label, showLabel, ...pConn.getInheritedProps() };\n if (propsToUse.showLabel === false) {\n propsToUse.label = '';\n }\n const rawViewMetadata = pConn.getRawMetadata();\n const viewName = rawViewMetadata.name;\n const [firstChildMeta] = rawViewMetadata.children;\n const refList = rawViewMetadata.config.referenceList;\n const canBeChangedInReviewMode = allowAndPersistChangesInReviewMode && (displayAs === 'autocomplete' || displayAs === 'dropdown');\n let propName;\n const isDisplayModeEnabled = ['LABELS_LEFT', 'STACKED_LARGE_VAL'].includes(displayMode);\n let firstChildPConnect;\n\n /* Only for dropdown when it has param use data api to get the data back and add it to datasource */\n useEffect(() => {\n if (\n firstChildMeta?.type === \"Dropdown\" &&\n rawViewMetadata.config?.parameters\n ) {\n const { value, key, text } = firstChildMeta.config.datasource.fields;\n PCore.getDataApiUtils()\n .getData(refList, {\n dataViewParameters: parameters\n })\n .then((res) => {\n if (res.data.data !== null) {\n const ddDataSource = res.data.data\n .map((listItem) => ({\n key: listItem[key.split(\" .\", 2)[1]],\n text: listItem[text.split(\" .\", 2)[1]],\n value: listItem[value.split(\" .\", 2)[1]]\n }))\n .filter((item) => item.key);\n // Filtering out undefined entries that will break preview\n setDropDownDataSource(ddDataSource);\n } else {\n const ddDataSource: any = []\n setDropDownDataSource(ddDataSource);\n }\n })\n .catch((err) => {\n // eslint-disable-next-line no-console\n console.error(err?.stack);\n return Promise.resolve({\n data: { data: [] }\n });\n });\n }\n }, [firstChildMeta, rawViewMetadata, parameters]);\n\n if (firstChildMeta?.type !== 'Region') {\n firstChildPConnect = getPConnect().getChildren()[0].getPConnect;\n /* remove refresh When condition from those old view so that it will not be used for runtime */\n if (firstChildMeta.config?.readOnly) {\n delete firstChildMeta.config.readOnly;\n }\n if (firstChildMeta?.type === 'Dropdown') {\n firstChildMeta.config.datasource.source = rawViewMetadata.config?.parameters\n ? dropDownDataSource\n : '@DATASOURCE '.concat(refList).concat('.pxResults');\n } else if (firstChildMeta?.type === 'AutoComplete') {\n firstChildMeta.config.datasource = refList;\n\n /* Insert the parameters to the component only if present */\n if (rawViewMetadata.config?.parameters) {\n firstChildMeta.config.parameters = parameters;\n }\n }\n // set displayMode conditionally\n if (!canBeChangedInReviewMode) {\n firstChildMeta.config.displayMode = displayMode;\n }\n if (firstChildMeta.type === 'SimpleTableSelect' && selectionMode === SELECTION_MODE.MULTI) {\n propName = PCore.getAnnotationUtils().getPropertyName(firstChildMeta.config.selectionList);\n } else {\n propName = PCore.getAnnotationUtils().getPropertyName(firstChildMeta.config.value);\n }\n }\n\n const handleSelection = event => {\n const caseKey = pConn.getCaseInfo().getKey();\n const refreshOptions = { autoDetectRefresh: true };\n if (canBeChangedInReviewMode && pConn.getValue('__currentPageTabViewName')) {\n getPConnect()\n .getActionsApi()\n .refreshCaseView(caseKey, pConn.getValue('__currentPageTabViewName'), null, refreshOptions);\n PCore.getDeferLoadManager().refreshActiveComponents(pConn.getContextName());\n } else {\n const pgRef = pConn.getPageReference().replace('caseInfo.content', '');\n getPConnect().getActionsApi().refreshCaseView(caseKey, viewName, pgRef, refreshOptions);\n }\n\n // AutoComplete sets value on event.id whereas Dropdown sets it on event.target.value\n const propValue = event?.id || event?.target.value;\n if (propValue && canBeChangedInReviewMode && isDisplayModeEnabled) {\n PCore.getDataApiUtils()\n .getCaseEditLock(caseKey)\n .then(caseResponse => {\n const pageTokens = pConn.getPageReference().replace('caseInfo.content', '').split('.');\n let curr = {};\n const commitData = curr;\n\n pageTokens.forEach(el => {\n if (el !== '') {\n curr[el] = {};\n curr = curr[el];\n }\n });\n\n // expecting format like {Customer: {pyID:\"C-100\"}}\n const propArr = propName.split('.');\n propArr.forEach((element, idx) => {\n if (idx + 1 === propArr.length) {\n curr[element] = propValue;\n } else {\n curr[element] = {};\n curr = curr[element];\n }\n });\n\n PCore.getDataApiUtils()\n .updateCaseEditFieldsData(\n caseKey,\n { [caseKey]: commitData },\n caseResponse.headers.etag,\n pConn.getContextName()\n )\n .then(response => {\n PCore.getContainerUtils().updateChildContainersEtag(\n pConn.getContextName(),\n response.headers.etag\n );\n });\n });\n }\n };\n\n // Re-create first child with overridden props\n // Memoized child in order to stop unmount and remount of the child component when data reference\n // rerenders without any actual change\n const recreatedFirstChild = useMemo(() => {\n const { type, config } = firstChildMeta;\n if (firstChildMeta?.type !== 'Region') {\n pConn.clearErrorMessages({\n property: propName\n });\n if (!canBeChangedInReviewMode && isDisplayModeEnabled && selectionMode === SELECTION_MODE.SINGLE) {\n return (\n <SingleReferenceReadonly\n config={config}\n getPConnect={firstChildPConnect}\n label={propsToUse.label}\n type={type}\n displayAs={displayAs}\n displayMode={displayMode}\n ruleClass={ruleClass}\n referenceType={referenceType}\n hideLabel={hideLabel}\n dataRelationshipContext={\n rawViewMetadata.config.contextClass && rawViewMetadata.config.name ? rawViewMetadata.config.name : null\n }\n />\n );\n }\n\n if (isDisplayModeEnabled && selectionMode === SELECTION_MODE.MULTI) {\n return (\n <MultiReferenceReadonly\n config={config}\n getPConnect={firstChildPConnect}\n label={propsToUse.label}\n hideLabel={hideLabel}\n />\n );\n }\n\n // In the case of a datasource with parameters you cannot load the dropdown before the parameters\n if (\n type === 'Dropdown' &&\n rawViewMetadata.config?.parameters &&\n dropDownDataSource === null\n ) {\n return null;\n }\n\n return firstChildPConnect().createComponent({\n type,\n config: {\n ...config,\n required: propsToUse.required,\n visibility: propsToUse.visibility,\n disabled: propsToUse.disabled,\n label: propsToUse.label,\n viewName: getPConnect().getCurrentView(),\n parameters: rawViewMetadata.config.parameters,\n readOnly: false,\n localeReference: rawViewMetadata.config.localeReference,\n ...(selectionMode === SELECTION_MODE.SINGLE ? { referenceType } : ''),\n dataRelationshipContext:\n rawViewMetadata.config.contextClass && rawViewMetadata.config.name\n ? rawViewMetadata.config.name\n : null,\n hideLabel,\n onRecordChange: handleSelection\n }\n });\n }\n }, [\n firstChildMeta.config?.datasource?.source,\n parameters,\n dropDownDataSource,\n propsToUse.required,\n propsToUse.disabled\n ]);\n\n // Only include the views region for rendering when it has content\n if (firstChildMeta?.type !== 'Region') {\n const viewsRegion = rawViewMetadata.children[1];\n if (viewsRegion?.name === 'Views' && viewsRegion.children.length) {\n childrenToRender = [recreatedFirstChild, ...children.slice(1)];\n } else {\n childrenToRender = [recreatedFirstChild];\n }\n }\n\n return childrenToRender.length === 1 ? (\n childrenToRender[0] ?? null\n ) : (\n <div>\n {childrenToRender.map(child => (\n <React.Fragment>{child}</React.Fragment>\n ))}\n </div>\n );\n}\n\nDataReference.defaultProps = {\n label: undefined,\n showLabel: undefined,\n displayMode: undefined,\n allowAndPersistChangesInReviewMode: false,\n referenceType: '',\n selectionMode: '',\n displayAs: '',\n ruleClass: '',\n parameters: undefined,\n hideLabel: false\n};\n\nDataReference.propTypes = {\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\n getPConnect: PropTypes.func.isRequired,\n label: PropTypes.string,\n showLabel: PropTypes.func,\n displayMode: PropTypes.string,\n allowAndPersistChangesInReviewMode: PropTypes.bool,\n referenceType: PropTypes.string,\n selectionMode: PropTypes.string,\n displayAs: PropTypes.string,\n ruleClass: PropTypes.string,\n parameters: PropTypes.arrayOf(PropTypes.string), // need to fix\n hideLabel: PropTypes.bool\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export { default } from './DataReference';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/DataReference/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './DataReference';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/templates/DataReference/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { default } from './DataReference';\n"]}