@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,117 @@
1
+ .psdk-utility {
2
+ width: 100%;
3
+ padding: 0.625rem 0rem;
4
+ text-align: left;
5
+ background-color: white;
6
+ border-radius: 0.6125rem;
7
+ margin: 0.3125rem 0rem;
8
+ position: relative;
9
+ }
10
+
11
+ .psdk-header {
12
+ display: flex;
13
+ align-items: center;
14
+ }
15
+
16
+ .psdk-file-utility-card-svg-icon {
17
+ width: 1.4rem;
18
+ display: inline-block;
19
+ }
20
+
21
+ .header-text {
22
+ font-size: 1rem;
23
+ font-weight: bold;
24
+ padding: 0px 5px;
25
+ }
26
+
27
+ .psdk-utility-count {
28
+ background: #65b5f5;
29
+ border-radius: calc(1.125 * 0.5rem);
30
+ font-size: 0.75rem;
31
+ font-weight: bold;
32
+ text-align: center;
33
+ width: 1.25rem;
34
+ }
35
+
36
+ .psdk-dialog-background {
37
+ display: flex;
38
+ flex-direction: column;
39
+ justify-content: center;
40
+ align-items: center;
41
+ height: 100%;
42
+ width: 100%;
43
+ background-color: rgba(100,100,100, 0.4);
44
+ position: fixed;
45
+ z-index: 999;
46
+ top: 0px;
47
+ left: 0px;
48
+ }
49
+
50
+ .psdk-modal-file-top {
51
+ display: table;
52
+ margin: auto;
53
+ min-width: 650px;
54
+ background-color: white;
55
+ border: 1px solid black;
56
+ border-radius: 10px;
57
+ padding: 20px;
58
+ box-shadow: 0 0 10px 3px #777;
59
+ }
60
+
61
+ .psdk-modal-file-selector {
62
+ border: 1px dashed;
63
+ width: 100%;
64
+ padding: 0.3rem;
65
+ text-align: center;;
66
+ }
67
+
68
+ .psdk-modal-links-row {
69
+ display: flex;
70
+ flex-direction: row;
71
+ justify-content: space-between;
72
+ align-items: center;
73
+ }
74
+
75
+ .psdk-links-two-column {
76
+ display: grid;
77
+ grid-template-columns: repeat(2, 1fr);
78
+ gap: calc(1rem);
79
+ width: 83%;
80
+ }
81
+
82
+ .psdk-modal-link-data {
83
+ flex-grow: 3;
84
+ }
85
+
86
+ .psdk-modal-link-add {
87
+ flex-grow: 1;
88
+ margin-left: 10px;
89
+ }
90
+
91
+ .psdk-add-link-action {
92
+ text-transform: unset !important;
93
+ font-size: 14px;
94
+ }
95
+
96
+ .psdk-utility-view-all {
97
+ width: 100%;
98
+ display: flex;
99
+ justify-content: center;
100
+ }
101
+
102
+ .psdk-view-all-header {
103
+ display: flex;
104
+ justify-content: space-between;
105
+ }
106
+
107
+ .psdk-close-button {
108
+ border: none;
109
+ background: none;
110
+ cursor: pointer;
111
+ }
112
+
113
+ .psdk-view-all-body {
114
+ max-height: 500px;
115
+ overflow-y: auto;
116
+ overflow-x: hidden;
117
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './FileUtility.css';
3
+ export default function FileUtility(props: any): JSX.Element;
4
+ //# sourceMappingURL=FileUtility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileUtility.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/FileUtility/FileUtility.tsx"],"names":[],"mappings":";AAMA,OAAO,mBAAmB,CAAC;AAS3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,KAAA,eAuiBxC"}
@@ -0,0 +1,456 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import TextField from '@material-ui/core/TextField';
3
+ import { Utils } from '../../helpers/utils';
4
+ import download from "downloadjs";
5
+ import SummaryList from '../SummaryList';
6
+ import ActionButtonsForFileUtil from './ActionButtonsForFileUtil';
7
+ import './FileUtility.css';
8
+ import { IconButton, Menu, MenuItem } from '@material-ui/core';
9
+ import MoreVertIcon from '@material-ui/icons/MoreVert';
10
+ import { Button } from '@material-ui/core';
11
+ import { validateMaxSize } from '../../infra/Attachment/AttachmentUtils';
12
+ import { CircularProgress } from "@material-ui/core";
13
+ export default function FileUtility(props) {
14
+ const { getPConnect } = props;
15
+ const thePConn = getPConnect();
16
+ const required = true;
17
+ const listTemp = {
18
+ data: [],
19
+ count: 0
20
+ };
21
+ const [list, setList] = useState(listTemp);
22
+ const headerSvgIcon$ = Utils.getImageSrc('paper-clip', PCore.getAssetLoader().getStaticServerUrl());
23
+ const closeSvgIcon = Utils.getImageSrc("times", PCore.getAssetLoader().getStaticServerUrl());
24
+ const configProps = thePConn.resolveConfigProps(thePConn.getConfigProps());
25
+ const header = configProps.label;
26
+ const fileTemp = {
27
+ showfileModal: false,
28
+ fileList: [],
29
+ attachedFiles: [],
30
+ fileMainButtons: [{ actionID: "attach", jsAction: "attachFiles", name: "Attach files" }],
31
+ fileSecondaryButtons: [{ actionID: "cancel", jsAction: "cancel", name: "Cancel" }]
32
+ };
33
+ const [fileData, setFileData] = useState(fileTemp);
34
+ const linkTemp = {
35
+ showLinkModal: false,
36
+ linksList: [],
37
+ attachedLinks: [],
38
+ linkMainButtons: [{ actionID: "attach", jsAction: "attachLinks", name: "Attach links" }],
39
+ linkSecondaryButtons: [{ actionID: "cancel", jsAction: "cancel", name: "Cancel" }]
40
+ };
41
+ const [linkData, setLinkData] = useState(linkTemp);
42
+ const [anchorEl, setAnchorEl] = useState(null);
43
+ const open = Boolean(anchorEl);
44
+ const [link, setLink] = useState({ title: '', url: '', disable: true });
45
+ const [inProgress, setProgress] = useState(false);
46
+ const [showViewAllModal, setViewAll] = useState(false);
47
+ const [vaItems, setFullAttachments] = useState([]);
48
+ function addAttachments(attsFromResp = []) {
49
+ attsFromResp = attsFromResp.map((respAtt) => {
50
+ const updatedAtt = {
51
+ ...respAtt,
52
+ meta: `${respAtt.category} . ${Utils.generateDateTime(respAtt.createTime, "DateTime-Since")}, ${respAtt.createdBy}`
53
+ };
54
+ if (updatedAtt.type === "FILE") {
55
+ updatedAtt.nameWithExt = updatedAtt.fileName;
56
+ }
57
+ return updatedAtt;
58
+ });
59
+ return attsFromResp;
60
+ }
61
+ function getListUtilityItemProps({ att, cancelFile, downloadFile, deleteFile, removeFile }) {
62
+ let actions;
63
+ if (att.progress && att.progress !== 100) {
64
+ actions = [
65
+ {
66
+ id: `Cancel-${att.ID}`,
67
+ text: "Cancel",
68
+ icon: "times",
69
+ onClick: cancelFile
70
+ }
71
+ ];
72
+ }
73
+ else if (att.links) {
74
+ const isFile = att.type === "FILE";
75
+ const ID = att.ID.replace(/\s/gi, "");
76
+ const actionsMap = new Map([
77
+ [
78
+ "download",
79
+ {
80
+ id: `download-${ID}`,
81
+ text: isFile ? "Download" : "Open",
82
+ icon: isFile ? "download" : "open",
83
+ onClick: downloadFile
84
+ }
85
+ ],
86
+ [
87
+ "delete",
88
+ {
89
+ id: `Delete-${ID}`,
90
+ text: "Delete",
91
+ icon: "trash",
92
+ onClick: deleteFile
93
+ }
94
+ ]
95
+ ]);
96
+ actions = [];
97
+ actionsMap.forEach((action, actionKey) => {
98
+ if (att.links[actionKey]) {
99
+ actions.push(action);
100
+ }
101
+ });
102
+ }
103
+ else if (att.error) {
104
+ actions = [
105
+ {
106
+ id: `Remove-${att.ID}`,
107
+ text: "Remove",
108
+ icon: "trash",
109
+ onClick: removeFile
110
+ }
111
+ ];
112
+ }
113
+ return {
114
+ id: att.ID,
115
+ visual: {
116
+ icon: Utils.getIconForAttachment(att),
117
+ progress: att.progress === 100 ? undefined : att.progress,
118
+ },
119
+ primary: {
120
+ type: att.type,
121
+ name: att.name,
122
+ icon: "open",
123
+ click: downloadFile,
124
+ },
125
+ secondary: {
126
+ text: att.meta
127
+ },
128
+ actions
129
+ };
130
+ }
131
+ function fileDownload(data, fileName, ext) {
132
+ const file = ext ? `${fileName}.${ext}` : fileName;
133
+ download(atob(data), file);
134
+ }
135
+ ;
136
+ function downloadAttachedFile(att) {
137
+ const attachUtils = PCore.getAttachmentUtils();
138
+ const { ID, name, extension, type } = att;
139
+ const context = thePConn.getContextName();
140
+ attachUtils
141
+ .downloadAttachment(ID, context)
142
+ .then((content) => {
143
+ if (type === "FILE") {
144
+ fileDownload(content.data, name, extension);
145
+ }
146
+ else if (type === "URL") {
147
+ let { data } = content;
148
+ if (!/^(http|https):\/\//.test(data)) {
149
+ data = `//${data}`;
150
+ }
151
+ window.open(content.data, "_blank");
152
+ }
153
+ })
154
+ .catch();
155
+ }
156
+ function deleteAttachedFile(att) {
157
+ const attachUtils = PCore.getAttachmentUtils();
158
+ const { ID } = att;
159
+ const context = thePConn.getContextName();
160
+ attachUtils.deleteAttachment(ID, context)
161
+ .then(() => {
162
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
163
+ getAttachments();
164
+ })
165
+ .catch();
166
+ }
167
+ const getAttachments = () => {
168
+ const attachmentUtils = PCore.getAttachmentUtils();
169
+ const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
170
+ if (caseID && caseID !== "") {
171
+ const attPromise = attachmentUtils.getCaseAttachments(caseID, thePConn.getContextName());
172
+ attPromise
173
+ .then((resp) => {
174
+ const arFullListAttachments = addAttachments(resp);
175
+ const attachmentsCount = arFullListAttachments.length;
176
+ const arItems = arFullListAttachments.slice(0, 3).map((att) => {
177
+ return getListUtilityItemProps({
178
+ att,
179
+ downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,
180
+ cancelFile: null,
181
+ deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,
182
+ removeFile: null
183
+ });
184
+ });
185
+ const viewAllarItems = arFullListAttachments.map((att) => {
186
+ return getListUtilityItemProps({
187
+ att,
188
+ downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,
189
+ cancelFile: null,
190
+ deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,
191
+ removeFile: null
192
+ });
193
+ });
194
+ setProgress(false);
195
+ setList((current) => {
196
+ return { ...current, count: attachmentsCount, data: arItems };
197
+ });
198
+ setFullAttachments(viewAllarItems);
199
+ });
200
+ }
201
+ };
202
+ useEffect(() => {
203
+ getAttachments();
204
+ }, []);
205
+ useEffect(() => {
206
+ PCore.getPubSubUtils().subscribe(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, getAttachments, "caseAttachmentsUpdateFromCaseview");
207
+ return () => {
208
+ PCore.getPubSubUtils().unsubscribe(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, "caseAttachmentsUpdateFromCaseview");
209
+ };
210
+ }, []);
211
+ function setNewFiles(arFiles) {
212
+ let index = 0;
213
+ for (const file of arFiles) {
214
+ if (!validateMaxSize(file, 5)) {
215
+ file.error = true;
216
+ file.meta = "File is too big. Max allowed size is 5MB.";
217
+ }
218
+ file.mimeType = file.type;
219
+ file.icon = Utils.getIconFromFileType(file.type);
220
+ file.ID = `${new Date().getTime()}I${index}`;
221
+ index += 1;
222
+ }
223
+ return arFiles;
224
+ }
225
+ function getFiles(arFiles) {
226
+ return setNewFiles(arFiles);
227
+ }
228
+ function uploadMyFiles(event) {
229
+ // alert($event.target.files[0]); // outputs the first file
230
+ const arFiles = getFiles(event.target.files);
231
+ // convert FileList to an array
232
+ const myFiles = Array.from(arFiles);
233
+ const arFileList$ = myFiles.map((att) => {
234
+ return getListUtilityItemProps({
235
+ att,
236
+ downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,
237
+ cancelFile: null,
238
+ deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,
239
+ removeFile: null
240
+ });
241
+ });
242
+ setFileData((current) => {
243
+ return { ...current, fileList: arFileList$, attachedFiles: myFiles };
244
+ });
245
+ }
246
+ const handleClick = (event) => {
247
+ setAnchorEl(event.currentTarget);
248
+ };
249
+ const handleClose = () => {
250
+ setAnchorEl(null);
251
+ };
252
+ function onAddFilesClick() {
253
+ setFileData((current) => {
254
+ return { ...current, showfileModal: true };
255
+ });
256
+ setAnchorEl(null);
257
+ }
258
+ function removeFileFromList(item) {
259
+ let attachedFiles = fileData.attachedFiles;
260
+ let fileList = fileData.fileList;
261
+ if (item !== null) {
262
+ attachedFiles = attachedFiles.filter(ele => ele.ID !== item.id);
263
+ fileList = fileList.filter(ele => ele.id !== item.id);
264
+ setFileData((current) => {
265
+ return { ...current, fileList, attachedFiles };
266
+ });
267
+ }
268
+ }
269
+ function closeFilePopup() {
270
+ setFileData((current) => {
271
+ return { ...current, showfileModal: false };
272
+ });
273
+ }
274
+ function onAttachFiles() {
275
+ const attachmentUtils = PCore.getAttachmentUtils();
276
+ const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
277
+ const onUploadProgress = () => { };
278
+ const errorHandler = () => { };
279
+ closeFilePopup();
280
+ if (fileData.attachedFiles && fileData.attachedFiles.length > 0) {
281
+ setProgress(true);
282
+ }
283
+ for (const file of fileData.attachedFiles) {
284
+ attachmentUtils
285
+ .uploadAttachment(file, onUploadProgress, errorHandler, thePConn.getContextName())
286
+ .then((fileResponse) => {
287
+ if (fileResponse.type === "File") {
288
+ attachmentUtils.linkAttachmentsToCase(caseID, [fileResponse], "File", thePConn.getContextName())
289
+ .then(() => {
290
+ setFileData((current) => {
291
+ return { ...current, fileList: [], attachedFiles: [] };
292
+ });
293
+ getAttachments();
294
+ })
295
+ .catch();
296
+ }
297
+ })
298
+ .catch();
299
+ }
300
+ }
301
+ function onAddLinksClick() {
302
+ setLinkData((current) => {
303
+ return { ...current, showLinkModal: true };
304
+ });
305
+ setAnchorEl(null);
306
+ }
307
+ function closeAddLinksPopup() {
308
+ setLinkData((current) => {
309
+ return { ...current, showLinkModal: false };
310
+ });
311
+ }
312
+ const fieldlinkOnChange = (event) => {
313
+ const title = event.target.value;
314
+ setLink((current) => {
315
+ const updatedData = { ...current, title };
316
+ updatedData.disable = !(updatedData.title && updatedData.url);
317
+ return updatedData;
318
+ });
319
+ };
320
+ function fieldurlOnChange(event) {
321
+ const url = event.target.value;
322
+ setLink((current) => {
323
+ const updatedData = { ...current, url };
324
+ updatedData.disable = !(updatedData.title && updatedData.url);
325
+ return updatedData;
326
+ });
327
+ }
328
+ function addLink() {
329
+ // copy list locally
330
+ const localList = linkData.linksList.slice();
331
+ const url = link.url;
332
+ if (!/^(http|https):\/\//.test(link.url)) {
333
+ link.url = `http://${link.url}`;
334
+ }
335
+ // list for display
336
+ let oLink = {};
337
+ oLink.icon = "chain";
338
+ oLink.ID = `${new Date().getTime()}`;
339
+ oLink = getListUtilityItemProps({
340
+ att: oLink,
341
+ downloadFile: null,
342
+ cancelFile: null,
343
+ deleteFile: null,
344
+ removeFile: null
345
+ });
346
+ oLink.type = "URL";
347
+ oLink.primary.type = oLink.type;
348
+ oLink.visual.icon = "chain";
349
+ oLink.primary.name = link.title;
350
+ oLink.primary.icon = "open";
351
+ oLink.secondary.text = url;
352
+ localList.push(oLink);
353
+ // list for actually attachments
354
+ const attachedListTemp = linkData.attachedLinks.slice();
355
+ const attachedLink = {};
356
+ attachedLink.id = oLink.id;
357
+ attachedLink.linkTitle = link.title;
358
+ attachedLink.type = oLink.type;
359
+ attachedLink.url = url;
360
+ attachedListTemp.push(attachedLink);
361
+ setLinkData((current) => {
362
+ return { ...current, linksList: localList, attachedLinks: attachedListTemp };
363
+ });
364
+ // clear values
365
+ setLink({ title: '', url: '', disable: true });
366
+ }
367
+ function removeLinksFromList(item) {
368
+ let attachedLinks = linkData.attachedLinks;
369
+ let linksList = linkData.linksList;
370
+ if (item !== null) {
371
+ attachedLinks = attachedLinks.filter(ele => ele.id !== item.id);
372
+ linksList = linksList.filter(ele => ele.id !== item.id);
373
+ setLinkData((current) => {
374
+ return { ...current, linksList, attachedLinks };
375
+ });
376
+ }
377
+ }
378
+ function onAttachLinks() {
379
+ const attachmentUtils = PCore.getAttachmentUtils();
380
+ const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
381
+ const links = linkData.attachedLinks;
382
+ closeAddLinksPopup();
383
+ const linksToAttach = links.map((item) => ({
384
+ type: "URL",
385
+ category: "URL",
386
+ url: item.url,
387
+ name: item.linkTitle
388
+ }));
389
+ if (linksToAttach && linksToAttach.length > 0) {
390
+ setProgress(true);
391
+ attachmentUtils
392
+ .linkAttachmentsToCase(caseID, linksToAttach, "URL", thePConn.getContextName())
393
+ .then(() => {
394
+ setLinkData((current) => {
395
+ return { ...current, linksList: [], attachedLinks: [] };
396
+ });
397
+ getAttachments();
398
+ })
399
+ .catch(setProgress(false));
400
+ }
401
+ }
402
+ return (React.createElement("div", { className: "psdk-utility" },
403
+ inProgress && (React.createElement("div", { className: "progress-div" },
404
+ React.createElement(CircularProgress, null))),
405
+ React.createElement("div", { className: "psdk-header" },
406
+ React.createElement("img", { className: "psdk-file-utility-card-svg-icon", src: headerSvgIcon$ }),
407
+ React.createElement("div", { className: "header-text" }, header),
408
+ React.createElement("div", { className: "psdk-utility-count", id: "attachments-count" }, list.count),
409
+ React.createElement("div", { style: { flexGrow: 1 } }),
410
+ React.createElement("div", null,
411
+ React.createElement(IconButton, { id: "long-button", "aria-controls": open ? 'simple-menu' : undefined, "aria-expanded": open ? 'true' : undefined, "aria-haspopup": "true", onClick: handleClick },
412
+ React.createElement(MoreVertIcon, null)),
413
+ React.createElement(Menu, { style: { marginTop: '3rem' }, id: "simple-menu", anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose },
414
+ React.createElement(MenuItem, { style: { fontSize: '14px' }, onClick: onAddFilesClick }, "Add Files"),
415
+ React.createElement(MenuItem, { style: { fontSize: '14px' }, onClick: onAddLinksClick }, "Add Links")))),
416
+ list.data.length > 0 && (React.createElement("div", { style: { marginTop: '1rem' } },
417
+ React.createElement(SummaryList, { "arItems$": list.data }))),
418
+ list.count > 3 && (React.createElement("div", { className: "psdk-utility-view-all" },
419
+ React.createElement(Button, { style: { textTransform: 'none' }, color: "primary", onClick: () => setViewAll(true) }, "View all"))),
420
+ fileData.showfileModal && (React.createElement("div", { className: "psdk-dialog-background" },
421
+ React.createElement("div", { className: "psdk-modal-file-top" },
422
+ React.createElement("h3", null, "Add local files"),
423
+ React.createElement("div", { className: "psdk-modal-body" },
424
+ React.createElement("div", { className: "psdk-modal-file-selector" },
425
+ React.createElement("label", { htmlFor: 'upload-files' },
426
+ React.createElement("input", { style: { display: 'none' }, id: 'upload-files', name: 'upload-files', type: 'file', multiple: true, onChange: uploadMyFiles }),
427
+ React.createElement(Button, { variant: 'outlined', color: 'primary', component: "span" }, "Upload file(s)"))),
428
+ fileData.fileList.length > 0 && (React.createElement("div", { style: { marginTop: '1rem' } },
429
+ React.createElement(SummaryList, { "menuIconOverride$": 'trash', "arItems$": fileData.fileList, "menuIconOverrideAction$": removeFileFromList }))),
430
+ fileData.fileList.length === 0 && (React.createElement("div", null)),
431
+ React.createElement(ActionButtonsForFileUtil, { arMainButtons: fileData.fileMainButtons, arSecondaryButtons: fileData.fileSecondaryButtons, primaryAction: onAttachFiles, secondaryAction: closeFilePopup }))))),
432
+ linkData.showLinkModal && (React.createElement("div", { className: "psdk-dialog-background" },
433
+ React.createElement("div", { className: "psdk-modal-file-top" },
434
+ React.createElement("h3", null, "Add links"),
435
+ React.createElement("div", { className: "psdk-modal-body" },
436
+ React.createElement("div", { className: "psdk-modal-links-row" },
437
+ React.createElement("div", { className: "psdk-links-two-column" },
438
+ React.createElement("div", { className: "psdk-modal-link-data" },
439
+ React.createElement(TextField, { fullWidth: true, variant: "outlined", label: "Link title", size: "small", required: required, value: link.title, onChange: fieldlinkOnChange })),
440
+ React.createElement("div", { className: "psdk-modal-link-data" },
441
+ React.createElement(TextField, { fullWidth: true, variant: "outlined", label: "URL", size: "small", required: required, value: link.url, onChange: fieldurlOnChange }))),
442
+ React.createElement("div", { className: "psdk-modal-link-add" },
443
+ React.createElement(Button, { className: "psdk-add-link-action", color: "primary", variant: "contained", component: "span", onClick: addLink, disabled: link.disable }, "Add Link"))),
444
+ linkData.linksList.length > 0 && (React.createElement("div", { style: { marginTop: '1rem' } },
445
+ React.createElement(SummaryList, { "menuIconOverride$": 'trash', "arItems$": linkData.linksList, "menuIconOverrideAction$": removeLinksFromList }))),
446
+ React.createElement(ActionButtonsForFileUtil, { arMainButtons: linkData.linkMainButtons, arSecondaryButtons: linkData.linkSecondaryButtons, primaryAction: onAttachLinks, secondaryAction: closeAddLinksPopup }))))),
447
+ showViewAllModal && (React.createElement("div", { className: "psdk-dialog-background" },
448
+ React.createElement("div", { className: "psdk-modal-file-top" },
449
+ React.createElement("div", { className: "psdk-view-all-header" },
450
+ React.createElement("h3", null, "Attachments"),
451
+ React.createElement("button", { type: "button", className: "psdk-close-button", onClick: () => setViewAll(false) },
452
+ React.createElement("img", { className: "psdk-utility-card-actions-svg-icon", src: closeSvgIcon }))),
453
+ React.createElement("div", { className: "psdk-view-all-body" },
454
+ React.createElement(SummaryList, { "arItems$": vaItems })))))));
455
+ }
456
+ //# sourceMappingURL=FileUtility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileUtility.js","sourceRoot":"","sources":["../../../../src/components/widgets/FileUtility/FileUtility.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,mBAAmB,CAAC;AAC3B,OAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAIrD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK;IACvC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,MAAM,QAAQ,GAAG;QACf,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,CAAC;KACT,CAAC;IACF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC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AAa,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,GAA6B,CAC5F,CACF,CACF,CACP;QACA,gBAAgB,IAAI,CAAC,6BAAK,SAAS,EAAC,wBAAwB;YAC3D,6BAAK,SAAS,EAAC,qBAAqB;gBAClC,6BAAK,SAAS,EAAC,sBAAsB;oBACjC,8CAAoB;oBAEpB,gCAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAI,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;wBAAE,6BAAK,SAAS,EAAC,oCAAoC,EAAC,GAAG,EAAE,YAAY,GAAQ,CAAS,CAC5K;gBACN,6BAAK,SAAS,EAAC,oBAAoB;oBAAC,oBAAC,WAAW,gBAAW,OAAO,GAAgB,CAAM,CACpF,CACF,CAAC,CACH,CAEP,CAAA;AACH,CAAC","sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport TextField from '@material-ui/core/TextField';\nimport { Utils } from '../../helpers/utils';\nimport download from \"downloadjs\";\nimport SummaryList from '../SummaryList';\nimport ActionButtonsForFileUtil from './ActionButtonsForFileUtil';\nimport './FileUtility.css';\nimport { IconButton, Menu, MenuItem } from '@material-ui/core';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\nimport { Button } from '@material-ui/core';\nimport { validateMaxSize } from '../../infra/Attachment/AttachmentUtils';\nimport { CircularProgress } from \"@material-ui/core\";\n\ndeclare const PCore;\n\nexport default function FileUtility(props) {\n const { getPConnect } = props;\n const thePConn = getPConnect();\n const required = true;\n const listTemp = {\n data: [],\n count: 0\n };\n const [list, setList] = useState(listTemp);\n const headerSvgIcon$ = Utils.getImageSrc('paper-clip', PCore.getAssetLoader().getStaticServerUrl());\n const closeSvgIcon = Utils.getImageSrc(\"times\", PCore.getAssetLoader().getStaticServerUrl());\n const configProps: any = thePConn.resolveConfigProps(thePConn.getConfigProps());\n\n const header = configProps.label;\n const fileTemp = {\n showfileModal: false,\n fileList: [],\n attachedFiles: [],\n fileMainButtons: [{ actionID: \"attach\", jsAction: \"attachFiles\", name: \"Attach files\"}],\n fileSecondaryButtons: [{ actionID: \"cancel\", jsAction: \"cancel\", name: \"Cancel\"}]\n };\n const [fileData, setFileData] = useState(fileTemp);\n const linkTemp = {\n showLinkModal: false,\n linksList: [],\n attachedLinks: [],\n linkMainButtons: [{ actionID: \"attach\", jsAction: \"attachLinks\", name: \"Attach links\"}],\n linkSecondaryButtons: [{ actionID: \"cancel\", jsAction: \"cancel\", name: \"Cancel\"}]\n };\n const [linkData, setLinkData] = useState(linkTemp);\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n const [link, setLink] = useState({title: '', url: '', disable: true});\n const [inProgress, setProgress] = useState(false);\n const [showViewAllModal, setViewAll] = useState(false);\n const [vaItems, setFullAttachments] = useState([]);\n\n function addAttachments(attsFromResp: Array<any> = []) {\n attsFromResp = attsFromResp.map((respAtt) => {\n const updatedAtt = {\n ...respAtt,\n meta: `${respAtt.category} . ${Utils.generateDateTime(respAtt.createTime, \"DateTime-Since\")}, ${\n respAtt.createdBy\n }`\n };\n if (updatedAtt.type === \"FILE\") {\n updatedAtt.nameWithExt = updatedAtt.fileName;\n }\n return updatedAtt;\n });\n return attsFromResp;\n }\n\n function getListUtilityItemProps({\n att,\n cancelFile,\n downloadFile,\n deleteFile,\n removeFile\n }) {\n let actions;\n\n\n if (att.progress && att.progress !== 100) {\n actions = [\n {\n id: `Cancel-${att.ID}`,\n text: \"Cancel\",\n icon: \"times\",\n onClick: cancelFile\n }\n ];\n } else if (att.links) {\n const isFile = att.type === \"FILE\";\n const ID = att.ID.replace(/\\s/gi, \"\");\n const actionsMap = new Map([\n [\n \"download\",\n {\n id: `download-${ID}`,\n text: isFile ? \"Download\" : \"Open\",\n icon: isFile ? \"download\" : \"open\",\n onClick: downloadFile\n }\n ],\n [\n \"delete\",\n {\n id: `Delete-${ID}`,\n text: \"Delete\",\n icon: \"trash\",\n onClick: deleteFile\n }\n ]\n ]);\n actions = [];\n actionsMap.forEach((action, actionKey) => {\n if (att.links[actionKey]) {\n actions.push(action);\n }\n });\n } else if (att.error) {\n actions = [\n {\n id: `Remove-${att.ID}`,\n text: \"Remove\",\n icon: \"trash\",\n onClick: removeFile\n }\n ];\n }\n\n return {\n id: att.ID,\n visual: {\n icon: Utils.getIconForAttachment(att),\n progress: att.progress === 100 ? undefined: att.progress,\n },\n primary: {\n type: att.type,\n name: att.name,\n icon: \"open\",\n click: downloadFile,\n },\n secondary: {\n text: att.meta\n },\n actions\n };\n }\n\n function fileDownload(data, fileName, ext) {\n const file = ext ? `${fileName}.${ext}` : fileName;\n download(atob(data), file);\n };\n\n function downloadAttachedFile(att: any) {\n const attachUtils = PCore.getAttachmentUtils();\n const {ID, name, extension, type} = att;\n const context = thePConn.getContextName();\n\n attachUtils\n .downloadAttachment(ID, context)\n .then((content) => {\n if (type === \"FILE\") {\n fileDownload(content.data, name, extension);\n } else if (type === \"URL\") {\n let { data } = content;\n if (!/^(http|https):\\/\\//.test(data)) {\n data = `//${data}`;\n }\n window.open(content.data, \"_blank\");\n }\n })\n .catch();\n }\n\n function deleteAttachedFile(att: any) {\n const attachUtils = PCore.getAttachmentUtils();\n const {ID} = att;\n const context = thePConn.getContextName();\n\n attachUtils.deleteAttachment(ID, context)\n .then(() => {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n getAttachments();\n })\n .catch();\n }\n\n const getAttachments = () => {\n\n const attachmentUtils = PCore.getAttachmentUtils();\n const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);\n\n if (caseID && caseID !== \"\") {\n const attPromise = attachmentUtils.getCaseAttachments(caseID, thePConn.getContextName());\n\n attPromise\n .then( (resp) => {\n const arFullListAttachments = addAttachments(resp);\n const attachmentsCount = arFullListAttachments.length;\n const arItems: any = arFullListAttachments.slice(0, 3).map((att) => {\n return getListUtilityItemProps({\n att,\n downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,\n cancelFile: null,\n deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,\n removeFile: null\n });\n });\n const viewAllarItems: any = arFullListAttachments.map((att) => {\n return getListUtilityItemProps({\n att,\n downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,\n cancelFile: null,\n deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,\n removeFile: null\n });\n });\n setProgress(false);\n setList((current) => {\n return {...current, count: attachmentsCount, data: arItems}\n });\n setFullAttachments(viewAllarItems);\n });\n }\n }\n\n useEffect(() => {\n getAttachments();\n }, []);\n\n\n useEffect(() => {\n PCore.getPubSubUtils().subscribe(\n PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,\n getAttachments,\n \"caseAttachmentsUpdateFromCaseview\"\n );\n\n return () => {\n PCore.getPubSubUtils().unsubscribe(\n PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,\n \"caseAttachmentsUpdateFromCaseview\"\n );\n };\n }, []);\n\n function setNewFiles(arFiles) {\n let index = 0;\n for (const file of arFiles) {\n if (!validateMaxSize(file, 5)) {\n file.error = true;\n file.meta = \"File is too big. Max allowed size is 5MB.\";\n }\n file.mimeType = file.type;\n file.icon = Utils.getIconFromFileType(file.type);\n file.ID = `${new Date().getTime()}I${index}`;\n index+=1;\n }\n return arFiles;\n }\n\n function getFiles(arFiles: Array<any>): Array<any> {\n return setNewFiles(arFiles);\n }\n\n function uploadMyFiles(event) {\n // alert($event.target.files[0]); // outputs the first file\n const arFiles = getFiles(event.target.files);\n // convert FileList to an array\n const myFiles: any = Array.from(arFiles);\n\n const arFileList$: any = myFiles.map((att: any) => {\n return getListUtilityItemProps({\n att,\n downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,\n cancelFile: null,\n deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,\n removeFile: null\n });\n });\n setFileData((current) => {\n return {...current, fileList: arFileList$, attachedFiles: myFiles}\n });\n }\n\n\n\n const handleClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n function onAddFilesClick() {\n setFileData((current) => {\n return {...current, showfileModal: true}\n });\n setAnchorEl(null);\n }\n\n function removeFileFromList(item: any) {\n let attachedFiles: any = fileData.attachedFiles;\n let fileList: any = fileData.fileList;\n if (item !== null) {\n attachedFiles = attachedFiles.filter(ele => ele.ID !== item.id);\n fileList = fileList.filter(ele => ele.id !== item.id);\n setFileData((current) => {\n return {...current, fileList, attachedFiles}\n });\n }\n }\n\n function closeFilePopup() {\n setFileData((current) => {\n return {...current, showfileModal: false}\n });\n }\n\n function onAttachFiles() {\n const attachmentUtils = PCore.getAttachmentUtils();\n const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);\n const onUploadProgress = () => {};\n const errorHandler = () => {};\n closeFilePopup()\n if (fileData.attachedFiles && fileData.attachedFiles.length > 0 ) {\n setProgress(true);\n }\n for (const file of fileData.attachedFiles) {\n attachmentUtils\n .uploadAttachment(\n file,\n onUploadProgress,\n errorHandler,\n thePConn.getContextName()\n )\n .then((fileResponse) => {\n if (fileResponse.type === \"File\") {\n attachmentUtils.linkAttachmentsToCase(\n caseID,\n [ fileResponse ],\n \"File\",\n thePConn.getContextName()\n )\n .then(() => {\n setFileData((current) => {\n return {...current, fileList: [], attachedFiles: []};\n });\n getAttachments();\n })\n .catch();\n }\n })\n .catch();\n }\n }\n\n function onAddLinksClick() {\n setLinkData((current) => {\n return {...current, showLinkModal: true}\n });\n setAnchorEl(null);\n }\n\n function closeAddLinksPopup() {\n setLinkData((current) => {\n return {...current, showLinkModal: false}\n });\n }\n\n const fieldlinkOnChange = (event) => {\n const title = event.target.value;\n setLink((current) => {\n const updatedData = {...current, title};\n updatedData.disable = !(updatedData.title && updatedData.url);\n return updatedData;\n });\n }\n\n function fieldurlOnChange(event) {\n const url = event.target.value;\n setLink((current) => {\n const updatedData = {...current, url}\n updatedData.disable = !(updatedData.title && updatedData.url);\n return updatedData;\n });\n }\n\n function addLink() {\n // copy list locally\n const localList: any = linkData.linksList.slice();\n const url = link.url;\n if (!/^(http|https):\\/\\//.test(link.url)) {\n link.url = `http://${link.url}`;\n }\n\n // list for display\n let oLink: any = {};\n oLink.icon = \"chain\";\n oLink.ID = `${new Date().getTime()}`;\n oLink = getListUtilityItemProps({\n att: oLink,\n downloadFile: null,\n cancelFile: null,\n deleteFile: null,\n removeFile: null\n });\n oLink.type = \"URL\";\n oLink.primary.type = oLink.type;\n oLink.visual.icon = \"chain\";\n oLink.primary.name = link.title;\n oLink.primary.icon = \"open\";\n oLink.secondary.text = url;\n\n localList.push(oLink);\n\n // list for actually attachments\n const attachedListTemp: any = linkData.attachedLinks.slice();\n const attachedLink: any = {};\n attachedLink.id = oLink.id;\n attachedLink.linkTitle = link.title;\n attachedLink.type = oLink.type;\n attachedLink.url = url;\n\n attachedListTemp.push(attachedLink);\n setLinkData((current) => {\n return {...current, linksList: localList, attachedLinks: attachedListTemp}\n });\n // clear values\n setLink({title: '', url: '', disable: true});\n }\n\n function removeLinksFromList(item: any) {\n let attachedLinks: any = linkData.attachedLinks;\n let linksList: any = linkData.linksList;\n if (item !== null) {\n attachedLinks = attachedLinks.filter(ele => ele.id !== item.id);\n linksList = linksList.filter(ele => ele.id !== item.id);\n setLinkData((current) => {\n return {...current, linksList, attachedLinks}\n });\n }\n }\n\n function onAttachLinks() {\n const attachmentUtils = PCore.getAttachmentUtils();\n const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);\n const links = linkData.attachedLinks;\n closeAddLinksPopup();\n const linksToAttach = links.map((item: any) => ({\n type: \"URL\",\n category: \"URL\",\n url: item.url,\n name: item.linkTitle\n }));\n\n if (linksToAttach && linksToAttach.length > 0) {\n setProgress(true);\n attachmentUtils\n .linkAttachmentsToCase(caseID, linksToAttach, \"URL\", thePConn.getContextName())\n .then( () => {\n setLinkData((current) => {\n return {...current, linksList: [], attachedLinks: []};\n });\n getAttachments();\n })\n .catch(setProgress(false));\n }\n }\n\n return (\n <div className=\"psdk-utility\">\n {inProgress && (<div className=\"progress-div\"><CircularProgress /></div>)}\n <div className=\"psdk-header\">\n <img className=\"psdk-file-utility-card-svg-icon\" src={headerSvgIcon$}></img>\n <div className=\"header-text\">{header}</div>\n <div className=\"psdk-utility-count\" id=\"attachments-count\">{list.count}</div>\n <div style={{flexGrow: 1}}></div>\n <div>\n <IconButton\n id=\"long-button\"\n aria-controls={open ? 'simple-menu' : undefined}\n aria-expanded={open ? 'true' : undefined}\n aria-haspopup=\"true\"\n onClick={handleClick}\n >\n <MoreVertIcon />\n </IconButton>\n <Menu style={{marginTop: '3rem'}}\n id=\"simple-menu\"\n anchorEl={anchorEl}\n keepMounted\n open={Boolean(anchorEl)}\n onClose={handleClose}\n >\n <MenuItem style={{fontSize: '14px'}} onClick={onAddFilesClick}>Add Files</MenuItem>\n <MenuItem style={{fontSize: '14px'}} onClick={onAddLinksClick}>Add Links</MenuItem>\n </Menu>\n </div>\n </div>\n {list.data.length > 0 && (<div style={{marginTop: '1rem'}}>\n <SummaryList arItems$={list.data}></SummaryList>\n </div>)}\n {list.count > 3 && (<div className=\"psdk-utility-view-all\">\n <Button style={{textTransform: 'none'}} color=\"primary\" onClick = {() => setViewAll(true)}>View all</Button>\n </div>)}\n {fileData.showfileModal && (\n <div className=\"psdk-dialog-background\">\n <div className=\"psdk-modal-file-top\">\n <h3>Add local files</h3>\n <div className=\"psdk-modal-body\">\n <div className=\"psdk-modal-file-selector\">\n <label htmlFor='upload-files'>\n <input style={{ display: 'none' }} id='upload-files' name='upload-files' type='file' multiple onChange={uploadMyFiles}/>\n <Button variant='outlined' color='primary' component=\"span\">Upload file(s)</Button>\n </label>\n </div>\n {fileData.fileList.length > 0 && (<div style={{marginTop: '1rem'}}>\n <SummaryList menuIconOverride$='trash' arItems$={fileData.fileList} menuIconOverrideAction$={removeFileFromList}></SummaryList>\n </div>)}\n {fileData.fileList.length === 0 && (<div></div>)}\n <ActionButtonsForFileUtil arMainButtons={fileData.fileMainButtons} arSecondaryButtons={fileData.fileSecondaryButtons}\n primaryAction={onAttachFiles} secondaryAction={closeFilePopup}></ActionButtonsForFileUtil>\n </div>\n </div>\n </div>\n )}\n {linkData.showLinkModal && (\n <div className=\"psdk-dialog-background\">\n <div className=\"psdk-modal-file-top\">\n <h3>Add links</h3>\n <div className=\"psdk-modal-body\">\n <div className=\"psdk-modal-links-row\">\n <div className=\"psdk-links-two-column\">\n <div className=\"psdk-modal-link-data\">\n <TextField fullWidth variant=\"outlined\" label=\"Link title\" size=\"small\" required={required} value={link.title} onChange={fieldlinkOnChange}/>\n </div>\n <div className=\"psdk-modal-link-data\">\n <TextField fullWidth variant=\"outlined\" label=\"URL\" size=\"small\" required={required} value={link.url} onChange={fieldurlOnChange}/>\n </div>\n </div>\n <div className=\"psdk-modal-link-add\">\n <Button className=\"psdk-add-link-action\" color=\"primary\" variant=\"contained\" component=\"span\" onClick={addLink} disabled={link.disable}>Add Link</Button>\n </div>\n </div>\n {linkData.linksList.length > 0 && (<div style={{marginTop: '1rem'}}>\n <SummaryList menuIconOverride$='trash' arItems$={linkData.linksList} menuIconOverrideAction$={removeLinksFromList}></SummaryList>\n </div>)}\n <ActionButtonsForFileUtil arMainButtons={linkData.linkMainButtons} arSecondaryButtons={linkData.linkSecondaryButtons}\n primaryAction={onAttachLinks} secondaryAction={closeAddLinksPopup}></ActionButtonsForFileUtil>\n </div>\n </div>\n </div>\n )}\n {showViewAllModal && (<div className=\"psdk-dialog-background\">\n <div className=\"psdk-modal-file-top\">\n <div className=\"psdk-view-all-header\">\n <h3>Attachments</h3>\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <button type=\"button\" className=\"psdk-close-button\" onClick = {() => setViewAll(false)}><img className=\"psdk-utility-card-actions-svg-icon\" src={closeSvgIcon}></img></button>\n </div>\n <div className=\"psdk-view-all-body\"><SummaryList arItems$={vaItems}></SummaryList></div>\n </div>\n </div>)}\n </div>\n\n )\n}\n"]}