@pega/angular-sdk-overrides 0.23.1

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 (495) hide show
  1. package/lib/designSystemExtension/alert/alert.component.html +19 -0
  2. package/lib/designSystemExtension/alert/alert.component.scss +52 -0
  3. package/lib/designSystemExtension/alert/alert.component.spec.ts +22 -0
  4. package/lib/designSystemExtension/alert/alert.component.ts +43 -0
  5. package/lib/designSystemExtension/alert-banner/alert-banner.component.html +12 -0
  6. package/lib/designSystemExtension/alert-banner/alert-banner.component.scss +0 -0
  7. package/lib/designSystemExtension/alert-banner/alert-banner.component.spec.ts +22 -0
  8. package/lib/designSystemExtension/alert-banner/alert-banner.component.ts +27 -0
  9. package/lib/designSystemExtension/banner/banner.component.html +28 -0
  10. package/lib/designSystemExtension/banner/banner.component.scss +64 -0
  11. package/lib/designSystemExtension/banner/banner.component.spec.ts +22 -0
  12. package/lib/designSystemExtension/banner/banner.component.ts +26 -0
  13. package/lib/designSystemExtension/case-create-stage/case-create-stage.component.html +12 -0
  14. package/lib/designSystemExtension/case-create-stage/case-create-stage.component.scss +0 -0
  15. package/lib/designSystemExtension/case-create-stage/case-create-stage.component.spec.ts +24 -0
  16. package/lib/designSystemExtension/case-create-stage/case-create-stage.component.ts +58 -0
  17. package/lib/designSystemExtension/material-case-summary/material-case-summary.component.html +52 -0
  18. package/lib/designSystemExtension/material-case-summary/material-case-summary.component.scss +142 -0
  19. package/lib/designSystemExtension/material-case-summary/material-case-summary.component.spec.ts +24 -0
  20. package/lib/designSystemExtension/material-case-summary/material-case-summary.component.ts +80 -0
  21. package/lib/designSystemExtension/material-details/material-details.component.html +40 -0
  22. package/lib/designSystemExtension/material-details/material-details.component.scss +121 -0
  23. package/lib/designSystemExtension/material-details/material-details.component.spec.ts +24 -0
  24. package/lib/designSystemExtension/material-details/material-details.component.ts +32 -0
  25. package/lib/designSystemExtension/material-details-fields/material-details-fields.component.html +23 -0
  26. package/lib/designSystemExtension/material-details-fields/material-details-fields.component.scss +33 -0
  27. package/lib/designSystemExtension/material-details-fields/material-details-fields.component.spec.ts +22 -0
  28. package/lib/designSystemExtension/material-details-fields/material-details-fields.component.ts +29 -0
  29. package/lib/designSystemExtension/material-summary-item/material-summary-item.component.html +37 -0
  30. package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss +127 -0
  31. package/lib/designSystemExtension/material-summary-item/material-summary-item.component.spec.ts +24 -0
  32. package/lib/designSystemExtension/material-summary-item/material-summary-item.component.ts +32 -0
  33. package/lib/designSystemExtension/material-summary-list/material-summary-list.component.html +3 -0
  34. package/lib/designSystemExtension/material-summary-list/material-summary-list.component.scss +1 -0
  35. package/lib/designSystemExtension/material-summary-list/material-summary-list.component.spec.ts +24 -0
  36. package/lib/designSystemExtension/material-summary-list/material-summary-list.component.ts +17 -0
  37. package/lib/designSystemExtension/material-utility/material-utility.component.html +17 -0
  38. package/lib/designSystemExtension/material-utility/material-utility.component.scss +52 -0
  39. package/lib/designSystemExtension/material-utility/material-utility.component.spec.ts +24 -0
  40. package/lib/designSystemExtension/material-utility/material-utility.component.ts +26 -0
  41. package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +12 -0
  42. package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.scss +28 -0
  43. package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.spec.ts +24 -0
  44. package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.ts +40 -0
  45. package/lib/designSystemExtension/operator/operator.component.html +20 -0
  46. package/lib/designSystemExtension/operator/operator.component.scss +83 -0
  47. package/lib/designSystemExtension/operator/operator.component.spec.ts +24 -0
  48. package/lib/designSystemExtension/operator/operator.component.ts +146 -0
  49. package/lib/designSystemExtension/pulse/pulse.component.html +3 -0
  50. package/lib/designSystemExtension/pulse/pulse.component.scss +8 -0
  51. package/lib/designSystemExtension/pulse/pulse.component.spec.ts +24 -0
  52. package/lib/designSystemExtension/pulse/pulse.component.ts +40 -0
  53. package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.html +33 -0
  54. package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +20 -0
  55. package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.spec.ts +24 -0
  56. package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +89 -0
  57. package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.html +13 -0
  58. package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +43 -0
  59. package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.spec.ts +22 -0
  60. package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +15 -0
  61. package/lib/field/auto-complete/auto-complete.component.html +32 -0
  62. package/lib/field/auto-complete/auto-complete.component.scss +20 -0
  63. package/lib/field/auto-complete/auto-complete.component.spec.ts +24 -0
  64. package/lib/field/auto-complete/auto-complete.component.ts +345 -0
  65. package/lib/field/auto-complete/config-ext.json +10 -0
  66. package/lib/field/cancel-alert/cancel-alert.component.html +18 -0
  67. package/lib/field/cancel-alert/cancel-alert.component.scss +24 -0
  68. package/lib/field/cancel-alert/cancel-alert.component.spec.ts +24 -0
  69. package/lib/field/cancel-alert/cancel-alert.component.ts +107 -0
  70. package/lib/field/check-box/check-box.component.html +41 -0
  71. package/lib/field/check-box/check-box.component.scss +24 -0
  72. package/lib/field/check-box/check-box.component.spec.ts +24 -0
  73. package/lib/field/check-box/check-box.component.ts +188 -0
  74. package/lib/field/check-box/config-ext.json +9 -0
  75. package/lib/field/currency/config-ext.json +9 -0
  76. package/lib/field/currency/currency.component.html +31 -0
  77. package/lib/field/currency/currency.component.scss +28 -0
  78. package/lib/field/currency/currency.component.spec.ts +24 -0
  79. package/lib/field/currency/currency.component.ts +197 -0
  80. package/lib/field/date/config-ext.json +9 -0
  81. package/lib/field/date/date.component.html +31 -0
  82. package/lib/field/date/date.component.scss +24 -0
  83. package/lib/field/date/date.component.spec.ts +24 -0
  84. package/lib/field/date/date.component.ts +245 -0
  85. package/lib/field/date-time/config-ext.json +8 -0
  86. package/lib/field/date-time/date-time.component.html +29 -0
  87. package/lib/field/date-time/date-time.component.scss +80 -0
  88. package/lib/field/date-time/date-time.component.spec.ts +24 -0
  89. package/lib/field/date-time/date-time.component.ts +224 -0
  90. package/lib/field/decimal/config-ext.json +8 -0
  91. package/lib/field/decimal/decimal.component.html +28 -0
  92. package/lib/field/decimal/decimal.component.scss +20 -0
  93. package/lib/field/decimal/decimal.component.spec.ts +24 -0
  94. package/lib/field/decimal/decimal.component.ts +187 -0
  95. package/lib/field/dropdown/config-ext.json +8 -0
  96. package/lib/field/dropdown/dropdown.component.html +31 -0
  97. package/lib/field/dropdown/dropdown.component.scss +25 -0
  98. package/lib/field/dropdown/dropdown.component.spec.ts +24 -0
  99. package/lib/field/dropdown/dropdown.component.ts +247 -0
  100. package/lib/field/email/config-ext.json +8 -0
  101. package/lib/field/email/email.component.html +27 -0
  102. package/lib/field/email/email.component.scss +20 -0
  103. package/lib/field/email/email.component.spec.ts +24 -0
  104. package/lib/field/email/email.component.ts +180 -0
  105. package/lib/field/integer/config-ext.json +8 -0
  106. package/lib/field/integer/integer.component.html +28 -0
  107. package/lib/field/integer/integer.component.scss +20 -0
  108. package/lib/field/integer/integer.component.spec.ts +24 -0
  109. package/lib/field/integer/integer.component.ts +185 -0
  110. package/lib/field/list-view-action-buttons/list-view-action-buttons.component.html +12 -0
  111. package/lib/field/list-view-action-buttons/list-view-action-buttons.component.scss +1 -0
  112. package/lib/field/list-view-action-buttons/list-view-action-buttons.component.spec.ts +22 -0
  113. package/lib/field/list-view-action-buttons/list-view-action-buttons.component.ts +40 -0
  114. package/lib/field/percentage/config-ext.json +8 -0
  115. package/lib/field/percentage/percentage.component.html +29 -0
  116. package/lib/field/percentage/percentage.component.scss +20 -0
  117. package/lib/field/percentage/percentage.component.spec.ts +24 -0
  118. package/lib/field/percentage/percentage.component.ts +181 -0
  119. package/lib/field/phone/config-ext.json +8 -0
  120. package/lib/field/phone/phone.component.html +26 -0
  121. package/lib/field/phone/phone.component.scss +81 -0
  122. package/lib/field/phone/phone.component.spec.ts +24 -0
  123. package/lib/field/phone/phone.component.ts +199 -0
  124. package/lib/field/radio-buttons/config-ext.json +8 -0
  125. package/lib/field/radio-buttons/radio-buttons.component.html +37 -0
  126. package/lib/field/radio-buttons/radio-buttons.component.scss +39 -0
  127. package/lib/field/radio-buttons/radio-buttons.component.spec.ts +24 -0
  128. package/lib/field/radio-buttons/radio-buttons.component.ts +241 -0
  129. package/lib/field/rich-text/rich-text.component.html +20 -0
  130. package/lib/field/rich-text/rich-text.component.scss +0 -0
  131. package/lib/field/rich-text/rich-text.component.spec.ts +24 -0
  132. package/lib/field/rich-text/rich-text.component.ts +131 -0
  133. package/lib/field/scalar-list/config-ext.json +8 -0
  134. package/lib/field/scalar-list/scalar-list.component.html +9 -0
  135. package/lib/field/scalar-list/scalar-list.component.scss +0 -0
  136. package/lib/field/scalar-list/scalar-list.component.spec.ts +22 -0
  137. package/lib/field/scalar-list/scalar-list.component.ts +119 -0
  138. package/lib/field/semantic-link/config-ext.json +7 -0
  139. package/lib/field/semantic-link/semantic-link.component.html +10 -0
  140. package/lib/field/semantic-link/semantic-link.component.scss +16 -0
  141. package/lib/field/semantic-link/semantic-link.component.spec.ts +0 -0
  142. package/lib/field/semantic-link/semantic-link.component.ts +70 -0
  143. package/lib/field/text/text.component.html +14 -0
  144. package/lib/field/text/text.component.scss +30 -0
  145. package/lib/field/text/text.component.spec.ts +24 -0
  146. package/lib/field/text/text.component.ts +158 -0
  147. package/lib/field/text-area/config-ext.json +8 -0
  148. package/lib/field/text-area/text-area.component.html +29 -0
  149. package/lib/field/text-area/text-area.component.scss +20 -0
  150. package/lib/field/text-area/text-area.component.spec.ts +24 -0
  151. package/lib/field/text-area/text-area.component.ts +186 -0
  152. package/lib/field/text-content/config-ext.json +7 -0
  153. package/lib/field/text-content/text-content.component.html +7 -0
  154. package/lib/field/text-content/text-content.component.scss +4 -0
  155. package/lib/field/text-content/text-content.component.spec.ts +24 -0
  156. package/lib/field/text-content/text-content.component.ts +89 -0
  157. package/lib/field/text-input/config-ext.json +8 -0
  158. package/lib/field/text-input/text-input.component.html +27 -0
  159. package/lib/field/text-input/text-input.component.scss +20 -0
  160. package/lib/field/text-input/text-input.component.spec.ts +24 -0
  161. package/lib/field/text-input/text-input.component.ts +183 -0
  162. package/lib/field/time/config-ext.json +8 -0
  163. package/lib/field/time/time.component.html +26 -0
  164. package/lib/field/time/time.component.scss +20 -0
  165. package/lib/field/time/time.component.spec.ts +24 -0
  166. package/lib/field/time/time.component.ts +177 -0
  167. package/lib/field/url/config-ext.json +8 -0
  168. package/lib/field/url/url.component.html +26 -0
  169. package/lib/field/url/url.component.scss +20 -0
  170. package/lib/field/url/url.component.spec.ts +24 -0
  171. package/lib/field/url/url.component.ts +179 -0
  172. package/lib/field/user-reference/config-ext.json +7 -0
  173. package/lib/field/user-reference/user-reference.component.html +48 -0
  174. package/lib/field/user-reference/user-reference.component.scss +30 -0
  175. package/lib/field/user-reference/user-reference.component.spec.ts +24 -0
  176. package/lib/field/user-reference/user-reference.component.ts +213 -0
  177. package/lib/infra/Containers/flow-container/flow-container.component.html +39 -0
  178. package/lib/infra/Containers/flow-container/flow-container.component.scss +33 -0
  179. package/lib/infra/Containers/flow-container/flow-container.component.spec.ts +24 -0
  180. package/lib/infra/Containers/flow-container/flow-container.component.ts +633 -0
  181. package/lib/infra/Containers/flow-container/helpers.ts +79 -0
  182. package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.html +1 -0
  183. package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.scss +0 -0
  184. package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.spec.ts +24 -0
  185. package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.ts +24 -0
  186. package/lib/infra/Containers/modal-view-container/modal-view-container.component.html +35 -0
  187. package/lib/infra/Containers/modal-view-container/modal-view-container.component.scss +29 -0
  188. package/lib/infra/Containers/modal-view-container/modal-view-container.component.spec.ts +24 -0
  189. package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +394 -0
  190. package/lib/infra/Containers/preview-view-container/preview-view-container.component.html +1 -0
  191. package/lib/infra/Containers/preview-view-container/preview-view-container.component.scss +0 -0
  192. package/lib/infra/Containers/preview-view-container/preview-view-container.component.spec.ts +24 -0
  193. package/lib/infra/Containers/preview-view-container/preview-view-container.component.ts +35 -0
  194. package/lib/infra/Containers/view-container/view-container.component.html +31 -0
  195. package/lib/infra/Containers/view-container/view-container.component.scss +7 -0
  196. package/lib/infra/Containers/view-container/view-container.component.spec.ts +24 -0
  197. package/lib/infra/Containers/view-container/view-container.component.ts +289 -0
  198. package/lib/infra/action-buttons/action-buttons.component.html +12 -0
  199. package/lib/infra/action-buttons/action-buttons.component.scss +1 -0
  200. package/lib/infra/action-buttons/action-buttons.component.spec.ts +24 -0
  201. package/lib/infra/action-buttons/action-buttons.component.ts +25 -0
  202. package/lib/infra/assignment/assignment.component.html +28 -0
  203. package/lib/infra/assignment/assignment.component.scss +0 -0
  204. package/lib/infra/assignment/assignment.component.spec.ts +24 -0
  205. package/lib/infra/assignment/assignment.component.ts +463 -0
  206. package/lib/infra/assignment-card/assignment-card.component.html +26 -0
  207. package/lib/infra/assignment-card/assignment-card.component.scss +9 -0
  208. package/lib/infra/assignment-card/assignment-card.component.spec.ts +24 -0
  209. package/lib/infra/assignment-card/assignment-card.component.ts +39 -0
  210. package/lib/infra/dashboard-filter/dashboard-filter.component.html +35 -0
  211. package/lib/infra/dashboard-filter/dashboard-filter.component.scss +14 -0
  212. package/lib/infra/dashboard-filter/dashboard-filter.component.spec.ts +24 -0
  213. package/lib/infra/dashboard-filter/dashboard-filter.component.ts +90 -0
  214. package/lib/infra/defer-load/defer-load.component.html +3 -0
  215. package/lib/infra/defer-load/defer-load.component.scss +0 -0
  216. package/lib/infra/defer-load/defer-load.component.spec.ts +24 -0
  217. package/lib/infra/defer-load/defer-load.component.ts +169 -0
  218. package/lib/infra/error-boundary/error-boundary.component.html +1 -0
  219. package/lib/infra/error-boundary/error-boundary.component.scss +0 -0
  220. package/lib/infra/error-boundary/error-boundary.component.spec.ts +22 -0
  221. package/lib/infra/error-boundary/error-boundary.component.ts +16 -0
  222. package/lib/infra/multi-step/multi-step.component.html +98 -0
  223. package/lib/infra/multi-step/multi-step.component.scss +247 -0
  224. package/lib/infra/multi-step/multi-step.component.spec.ts +24 -0
  225. package/lib/infra/multi-step/multi-step.component.ts +85 -0
  226. package/lib/infra/navbar/navbar.component.html +55 -0
  227. package/lib/infra/navbar/navbar.component.scss +154 -0
  228. package/lib/infra/navbar/navbar.component.spec.ts +24 -0
  229. package/lib/infra/navbar/navbar.component.ts +175 -0
  230. package/lib/infra/reference/reference.component.html +1 -0
  231. package/lib/infra/reference/reference.component.scss +0 -0
  232. package/lib/infra/reference/reference.component.ts +165 -0
  233. package/lib/infra/region/region.component.html +11 -0
  234. package/lib/infra/region/region.component.scss +0 -0
  235. package/lib/infra/region/region.component.spec.ts +24 -0
  236. package/lib/infra/region/region.component.ts +37 -0
  237. package/lib/infra/root-container/root-container.component.html +36 -0
  238. package/lib/infra/root-container/root-container.component.scss +20 -0
  239. package/lib/infra/root-container/root-container.component.spec.ts +24 -0
  240. package/lib/infra/root-container/root-container.component.ts +256 -0
  241. package/lib/infra/stages/stages.component.html +15 -0
  242. package/lib/infra/stages/stages.component.scss +109 -0
  243. package/lib/infra/stages/stages.component.spec.ts +24 -0
  244. package/lib/infra/stages/stages.component.ts +83 -0
  245. package/lib/infra/view/view.component.html +38 -0
  246. package/lib/infra/view/view.component.scss +16 -0
  247. package/lib/infra/view/view.component.spec.ts +24 -0
  248. package/lib/infra/view/view.component.ts +214 -0
  249. package/lib/template/app-shell/app-shell.component.html +15 -0
  250. package/lib/template/app-shell/app-shell.component.scss +51 -0
  251. package/lib/template/app-shell/app-shell.component.spec.ts +24 -0
  252. package/lib/template/app-shell/app-shell.component.ts +192 -0
  253. package/lib/template/banner-page/banner-page.component.html +12 -0
  254. package/lib/template/banner-page/banner-page.component.scss +0 -0
  255. package/lib/template/banner-page/banner-page.component.spec.ts +22 -0
  256. package/lib/template/banner-page/banner-page.component.ts +65 -0
  257. package/lib/template/case-summary/case-summary.component.html +1 -0
  258. package/lib/template/case-summary/case-summary.component.scss +44 -0
  259. package/lib/template/case-summary/case-summary.component.spec.ts +24 -0
  260. package/lib/template/case-summary/case-summary.component.ts +100 -0
  261. package/lib/template/case-summary/config-ext.json +8 -0
  262. package/lib/template/case-view/case-view.component.html +89 -0
  263. package/lib/template/case-view/case-view.component.scss +107 -0
  264. package/lib/template/case-view/case-view.component.spec.ts +24 -0
  265. package/lib/template/case-view/case-view.component.ts +242 -0
  266. package/lib/template/case-view/config-ext.json +8 -0
  267. package/lib/template/confirmation/config-ext.json +11 -0
  268. package/lib/template/confirmation/confirmation.component.html +23 -0
  269. package/lib/template/confirmation/confirmation.component.scss +10 -0
  270. package/lib/template/confirmation/confirmation.component.spec.ts +23 -0
  271. package/lib/template/confirmation/confirmation.component.ts +91 -0
  272. package/lib/template/data-reference/config-ext.json +8 -0
  273. package/lib/template/data-reference/data-reference.component.html +13 -0
  274. package/lib/template/data-reference/data-reference.component.scss +0 -0
  275. package/lib/template/data-reference/data-reference.component.spec.ts +24 -0
  276. package/lib/template/data-reference/data-reference.component.ts +275 -0
  277. package/lib/template/default-form/config-ext.json +8 -0
  278. package/lib/template/default-form/default-form.component.html +19 -0
  279. package/lib/template/default-form/default-form.component.scss +38 -0
  280. package/lib/template/default-form/default-form.component.spec.ts +24 -0
  281. package/lib/template/default-form/default-form.component.ts +76 -0
  282. package/lib/template/details/config-ext.json +9 -0
  283. package/lib/template/details/details.component.html +3 -0
  284. package/lib/template/details/details.component.scss +7 -0
  285. package/lib/template/details/details.component.spec.ts +24 -0
  286. package/lib/template/details/details.component.ts +113 -0
  287. package/lib/template/details-narrow-wide/config-ext.json +8 -0
  288. package/lib/template/details-narrow-wide/details-narrow-wide.component.html +4 -0
  289. package/lib/template/details-narrow-wide/details-narrow-wide.component.scss +7 -0
  290. package/lib/template/details-narrow-wide/details-narrow-wide.component.spec.ts +24 -0
  291. package/lib/template/details-narrow-wide/details-narrow-wide.component.ts +82 -0
  292. package/lib/template/details-one-column/config-ext.json +9 -0
  293. package/lib/template/details-one-column/details-one-column.component.html +1 -0
  294. package/lib/template/details-one-column/details-one-column.component.scss +0 -0
  295. package/lib/template/details-one-column/details-one-column.component.spec.ts +24 -0
  296. package/lib/template/details-one-column/details-one-column.component.ts +85 -0
  297. package/lib/template/details-sub-tabs/config-ext.json +8 -0
  298. package/lib/template/details-sub-tabs/details-sub-tabs.component.html +15 -0
  299. package/lib/template/details-sub-tabs/details-sub-tabs.component.scss +0 -0
  300. package/lib/template/details-sub-tabs/details-sub-tabs.component.spec.ts +24 -0
  301. package/lib/template/details-sub-tabs/details-sub-tabs.component.ts +73 -0
  302. package/lib/template/details-three-column/config-ext.json +8 -0
  303. package/lib/template/details-three-column/details-three-column.component.html +4 -0
  304. package/lib/template/details-three-column/details-three-column.component.scss +7 -0
  305. package/lib/template/details-three-column/details-three-column.component.spec.ts +24 -0
  306. package/lib/template/details-three-column/details-three-column.component.ts +94 -0
  307. package/lib/template/details-two-column/config-ext.json +8 -0
  308. package/lib/template/details-two-column/details-two-column.component.html +4 -0
  309. package/lib/template/details-two-column/details-two-column.component.scss +7 -0
  310. package/lib/template/details-two-column/details-two-column.component.spec.ts +24 -0
  311. package/lib/template/details-two-column/details-two-column.component.ts +92 -0
  312. package/lib/template/details-wide-narrow/config-ext.json +8 -0
  313. package/lib/template/details-wide-narrow/details-wide-narrow.component.html +4 -0
  314. package/lib/template/details-wide-narrow/details-wide-narrow.component.scss +7 -0
  315. package/lib/template/details-wide-narrow/details-wide-narrow.component.spec.ts +24 -0
  316. package/lib/template/details-wide-narrow/details-wide-narrow.component.ts +88 -0
  317. package/lib/template/dynamic-tabs/config-ext.json +36 -0
  318. package/lib/template/dynamic-tabs/dynamic-tabs.component.html +5 -0
  319. package/lib/template/dynamic-tabs/dynamic-tabs.component.scss +0 -0
  320. package/lib/template/dynamic-tabs/dynamic-tabs.component.spec.ts +22 -0
  321. package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +78 -0
  322. package/lib/template/field-group-list/field-group-list.component.html +8 -0
  323. package/lib/template/field-group-list/field-group-list.component.scss +12 -0
  324. package/lib/template/field-group-list/field-group-list.component.spec.ts +22 -0
  325. package/lib/template/field-group-list/field-group-list.component.ts +18 -0
  326. package/lib/template/field-group-template/field-group-template.component.html +33 -0
  327. package/lib/template/field-group-template/field-group-template.component.scss +8 -0
  328. package/lib/template/field-group-template/field-group-template.component.spec.ts +22 -0
  329. package/lib/template/field-group-template/field-group-template.component.ts +168 -0
  330. package/lib/template/field-value-list/field-value-list.component.html +15 -0
  331. package/lib/template/field-value-list/field-value-list.component.scss +18 -0
  332. package/lib/template/field-value-list/field-value-list.component.spec.ts +22 -0
  333. package/lib/template/field-value-list/field-value-list.component.ts +15 -0
  334. package/lib/template/inline-dashboard/inline-dashboard.component.html +19 -0
  335. package/lib/template/inline-dashboard/inline-dashboard.component.scss +31 -0
  336. package/lib/template/inline-dashboard/inline-dashboard.component.spec.ts +24 -0
  337. package/lib/template/inline-dashboard/inline-dashboard.component.ts +24 -0
  338. package/lib/template/inline-dashboard-page/inline-dashboard-page.component.html +1 -0
  339. package/lib/template/inline-dashboard-page/inline-dashboard-page.component.scss +0 -0
  340. package/lib/template/inline-dashboard-page/inline-dashboard-page.component.spec.ts +24 -0
  341. package/lib/template/inline-dashboard-page/inline-dashboard-page.component.ts +55 -0
  342. package/lib/template/list-page/config-ext.json +7 -0
  343. package/lib/template/list-page/list-page.component.html +1 -0
  344. package/lib/template/list-page/list-page.component.scss +0 -0
  345. package/lib/template/list-page/list-page.component.spec.ts +24 -0
  346. package/lib/template/list-page/list-page.component.ts +13 -0
  347. package/lib/template/list-view/DefaultViewMeta.ts +220 -0
  348. package/lib/template/list-view/config-ext.json +8 -0
  349. package/lib/template/list-view/list-view.component.html +253 -0
  350. package/lib/template/list-view/list-view.component.scss +169 -0
  351. package/lib/template/list-view/list-view.component.spec.ts +24 -0
  352. package/lib/template/list-view/list-view.component.ts +1408 -0
  353. package/lib/template/list-view/listViewHelpers.ts +87 -0
  354. package/lib/template/list-view/utils.ts +745 -0
  355. package/lib/template/multi-reference-readonly/multi-reference-readonly.component.html +4 -0
  356. package/lib/template/multi-reference-readonly/multi-reference-readonly.component.scss +0 -0
  357. package/lib/template/multi-reference-readonly/multi-reference-readonly.component.spec.ts +22 -0
  358. package/lib/template/multi-reference-readonly/multi-reference-readonly.component.ts +54 -0
  359. package/lib/template/narrow-wide-form/config-ext.json +8 -0
  360. package/lib/template/narrow-wide-form/narrow-wide-form.component.html +16 -0
  361. package/lib/template/narrow-wide-form/narrow-wide-form.component.scss +20 -0
  362. package/lib/template/narrow-wide-form/narrow-wide-form.component.spec.ts +24 -0
  363. package/lib/template/narrow-wide-form/narrow-wide-form.component.ts +34 -0
  364. package/lib/template/one-column/config-ext.json +8 -0
  365. package/lib/template/one-column/one-column.component.html +11 -0
  366. package/lib/template/one-column/one-column.component.scss +3 -0
  367. package/lib/template/one-column/one-column.component.spec.ts +24 -0
  368. package/lib/template/one-column/one-column.component.ts +34 -0
  369. package/lib/template/one-column-page/config-ext.json +8 -0
  370. package/lib/template/one-column-page/one-column-page.component.html +1 -0
  371. package/lib/template/one-column-page/one-column-page.component.scss +0 -0
  372. package/lib/template/one-column-page/one-column-page.component.spec.ts +24 -0
  373. package/lib/template/one-column-page/one-column-page.component.ts +15 -0
  374. package/lib/template/one-column-tab/config-ext.json +8 -0
  375. package/lib/template/one-column-tab/one-column-tab.component.html +9 -0
  376. package/lib/template/one-column-tab/one-column-tab.component.scss +9 -0
  377. package/lib/template/one-column-tab/one-column-tab.component.ts +34 -0
  378. package/lib/template/page/page.component.html +12 -0
  379. package/lib/template/page/page.component.scss +3 -0
  380. package/lib/template/page/page.component.spec.ts +24 -0
  381. package/lib/template/page/page.component.ts +68 -0
  382. package/lib/template/promoted-filters/promoted-filters.component.html +27 -0
  383. package/lib/template/promoted-filters/promoted-filters.component.scss +7 -0
  384. package/lib/template/promoted-filters/promoted-filters.component.spec.ts +24 -0
  385. package/lib/template/promoted-filters/promoted-filters.component.ts +157 -0
  386. package/lib/template/repeating-structures/repeating-structures.component.html +21 -0
  387. package/lib/template/repeating-structures/repeating-structures.component.scss +17 -0
  388. package/lib/template/repeating-structures/repeating-structures.component.spec.ts +24 -0
  389. package/lib/template/repeating-structures/repeating-structures.component.ts +155 -0
  390. package/lib/template/simple-table/config-ext.json +7 -0
  391. package/lib/template/simple-table/simple-table.component.html +13 -0
  392. package/lib/template/simple-table/simple-table.component.scss +0 -0
  393. package/lib/template/simple-table/simple-table.component.spec.ts +24 -0
  394. package/lib/template/simple-table/simple-table.component.ts +171 -0
  395. package/lib/template/simple-table-manual/helpers.ts +294 -0
  396. package/lib/template/simple-table-manual/simple-table-manual.component.html +147 -0
  397. package/lib/template/simple-table-manual/simple-table-manual.component.scss +185 -0
  398. package/lib/template/simple-table-manual/simple-table-manual.component.spec.ts +24 -0
  399. package/lib/template/simple-table-manual/simple-table-manual.component.ts +950 -0
  400. package/lib/template/simple-table-select/simple-table-select.component.html +14 -0
  401. package/lib/template/simple-table-select/simple-table-select.component.scss +0 -0
  402. package/lib/template/simple-table-select/simple-table-select.component.spec.ts +24 -0
  403. package/lib/template/simple-table-select/simple-table-select.component.ts +151 -0
  404. package/lib/template/single-reference-readonly/single-reference-readonly.component.html +1 -0
  405. package/lib/template/single-reference-readonly/single-reference-readonly.component.scss +0 -0
  406. package/lib/template/single-reference-readonly/single-reference-readonly.component.spec.ts +22 -0
  407. package/lib/template/single-reference-readonly/single-reference-readonly.component.ts +15 -0
  408. package/lib/template/sub-tabs/config-ext.json +8 -0
  409. package/lib/template/sub-tabs/sub-tabs.component.html +12 -0
  410. package/lib/template/sub-tabs/sub-tabs.component.scss +3 -0
  411. package/lib/template/sub-tabs/sub-tabs.component.spec.ts +24 -0
  412. package/lib/template/sub-tabs/sub-tabs.component.ts +76 -0
  413. package/lib/template/three-column/config-ext.json +8 -0
  414. package/lib/template/three-column/three-column.component.html +13 -0
  415. package/lib/template/three-column/three-column.component.scss +16 -0
  416. package/lib/template/three-column/three-column.component.spec.ts +24 -0
  417. package/lib/template/three-column/three-column.component.ts +34 -0
  418. package/lib/template/three-column-page/config-ext.json +8 -0
  419. package/lib/template/three-column-page/three-column-page.component.html +1 -0
  420. package/lib/template/three-column-page/three-column-page.component.scss +0 -0
  421. package/lib/template/three-column-page/three-column-page.component.spec.ts +24 -0
  422. package/lib/template/three-column-page/three-column-page.component.ts +15 -0
  423. package/lib/template/two-column/config-ext.json +8 -0
  424. package/lib/template/two-column/two-column.component.html +16 -0
  425. package/lib/template/two-column/two-column.component.scss +28 -0
  426. package/lib/template/two-column/two-column.component.spec.ts +24 -0
  427. package/lib/template/two-column/two-column.component.ts +34 -0
  428. package/lib/template/two-column-page/config-ext.json +8 -0
  429. package/lib/template/two-column-page/two-column-page.component.html +1 -0
  430. package/lib/template/two-column-page/two-column-page.component.scss +0 -0
  431. package/lib/template/two-column-page/two-column-page.component.spec.ts +24 -0
  432. package/lib/template/two-column-page/two-column-page.component.ts +43 -0
  433. package/lib/template/two-column-tab/config-ext.json +8 -0
  434. package/lib/template/two-column-tab/two-column-tab.component.html +16 -0
  435. package/lib/template/two-column-tab/two-column-tab.component.scss +28 -0
  436. package/lib/template/two-column-tab/two-column-tab.component.spec.ts +24 -0
  437. package/lib/template/two-column-tab/two-column-tab.component.ts +34 -0
  438. package/lib/template/utils.ts +23 -0
  439. package/lib/template/wide-narrow-form/config-ext.json +8 -0
  440. package/lib/template/wide-narrow-form/wide-narrow-form.component.html +16 -0
  441. package/lib/template/wide-narrow-form/wide-narrow-form.component.scss +20 -0
  442. package/lib/template/wide-narrow-form/wide-narrow-form.component.spec.ts +24 -0
  443. package/lib/template/wide-narrow-form/wide-narrow-form.component.ts +34 -0
  444. package/lib/template/wide-narrow-page/config-ext.json +8 -0
  445. package/lib/template/wide-narrow-page/wide-narrow-page.component.html +6 -0
  446. package/lib/template/wide-narrow-page/wide-narrow-page.component.scss +0 -0
  447. package/lib/template/wide-narrow-page/wide-narrow-page.component.ts +61 -0
  448. package/lib/template/wss-nav-bar/wss-nav-bar.component.html +32 -0
  449. package/lib/template/wss-nav-bar/wss-nav-bar.component.scss +166 -0
  450. package/lib/template/wss-nav-bar/wss-nav-bar.component.spec.ts +22 -0
  451. package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +172 -0
  452. package/lib/widget/app-announcement/app-announcement.component.html +13 -0
  453. package/lib/widget/app-announcement/app-announcement.component.scss +21 -0
  454. package/lib/widget/app-announcement/app-announcement.component.spec.ts +24 -0
  455. package/lib/widget/app-announcement/app-announcement.component.ts +35 -0
  456. package/lib/widget/app-announcement/config-ext.json +8 -0
  457. package/lib/widget/attachment/attachment.component.html +31 -0
  458. package/lib/widget/attachment/attachment.component.scss +57 -0
  459. package/lib/widget/attachment/attachment.component.spec.ts +24 -0
  460. package/lib/widget/attachment/attachment.component.ts +705 -0
  461. package/lib/widget/attachment/config-ext.json +7 -0
  462. package/lib/widget/case-history/case-history.component.html +12 -0
  463. package/lib/widget/case-history/case-history.component.scss +22 -0
  464. package/lib/widget/case-history/case-history.component.spec.ts +24 -0
  465. package/lib/widget/case-history/case-history.component.ts +104 -0
  466. package/lib/widget/case-history/config-ext.json +8 -0
  467. package/lib/widget/feed-container/config-ext.json +12 -0
  468. package/lib/widget/feed-container/feed-api.ts +410 -0
  469. package/lib/widget/feed-container/feed-container.component.html +137 -0
  470. package/lib/widget/feed-container/feed-container.component.scss +188 -0
  471. package/lib/widget/feed-container/feed-container.component.spec.ts +24 -0
  472. package/lib/widget/feed-container/feed-container.component.ts +616 -0
  473. package/lib/widget/file-utility/config-ext.json +8 -0
  474. package/lib/widget/file-utility/file-utility.component.html +100 -0
  475. package/lib/widget/file-utility/file-utility.component.scss +107 -0
  476. package/lib/widget/file-utility/file-utility.component.spec.ts +24 -0
  477. package/lib/widget/file-utility/file-utility.component.ts +759 -0
  478. package/lib/widget/list-utility/list-utility.component.html +32 -0
  479. package/lib/widget/list-utility/list-utility.component.scss +135 -0
  480. package/lib/widget/list-utility/list-utility.component.spec.ts +24 -0
  481. package/lib/widget/list-utility/list-utility.component.ts +47 -0
  482. package/lib/widget/quick-create/quick-create.component.html +1 -0
  483. package/lib/widget/quick-create/quick-create.component.scss +0 -0
  484. package/lib/widget/quick-create/quick-create.component.spec.ts +22 -0
  485. package/lib/widget/quick-create/quick-create.component.ts +96 -0
  486. package/lib/widget/todo/config-ext.json +8 -0
  487. package/lib/widget/todo/todo.component.html +47 -0
  488. package/lib/widget/todo/todo.component.scss +98 -0
  489. package/lib/widget/todo/todo.component.spec.ts +24 -0
  490. package/lib/widget/todo/todo.component.ts +265 -0
  491. package/lib/widget/utility/utility.component.html +1 -0
  492. package/lib/widget/utility/utility.component.scss +0 -0
  493. package/lib/widget/utility/utility.component.spec.ts +24 -0
  494. package/lib/widget/utility/utility.component.ts +50 -0
  495. package/package.json +14 -0
@@ -0,0 +1,79 @@
1
+ function hasNotificationMessages(pConnect) {
2
+ return !!pConnect.getValue('caseMessages');
3
+ }
4
+
5
+ function isCaseWideLocalAction(pConnect) {
6
+ const { CASE_INFO } = PCore.getConstants();
7
+ const actionID = pConnect.getValue(CASE_INFO.ACTIVE_ACTION_ID);
8
+ const caseActions = pConnect.getValue(CASE_INFO.CASE_INFO_ACTIONS);
9
+ if (caseActions && actionID) {
10
+ const activeAction = caseActions.find(caseAction => caseAction.ID === actionID);
11
+ return activeAction?.type === 'Case';
12
+ }
13
+ return false;
14
+ }
15
+
16
+ function getChildCaseAssignments(pConnect) {
17
+ const childCases = pConnect.getValue(PCore.getConstants().CASE_INFO.CHILD_ASSIGNMENTS);
18
+ let allAssignments: any[] = [];
19
+ if (childCases && childCases.length > 0) {
20
+ childCases.forEach(({ assignments = [], Name }) => {
21
+ const childCaseAssignments = assignments.map((assignment: any) => ({
22
+ ...assignment,
23
+ caseName: Name
24
+ }));
25
+ allAssignments = allAssignments.concat(childCaseAssignments);
26
+ });
27
+ }
28
+ return allAssignments;
29
+ }
30
+
31
+ function hasAssignments(pConnect) {
32
+ const { CASE_INFO } = PCore.getConstants();
33
+ const assignments = pConnect.getValue(CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS);
34
+ const childCasesAssignments = getChildCaseAssignments(pConnect);
35
+
36
+ return assignments || childCasesAssignments || isCaseWideLocalAction(pConnect);
37
+ }
38
+
39
+ export const showBanner = getPConnect => {
40
+ const pConnect = getPConnect;
41
+ return hasNotificationMessages(pConnect) || !hasAssignments(pConnect);
42
+ };
43
+
44
+ function getActiveCaseActionName(pConnect) {
45
+ const caseActions = pConnect.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ACTIONS);
46
+ const activeActionID = pConnect.getValue(PCore.getConstants().CASE_INFO.ACTIVE_ACTION_ID);
47
+ const activeAction = caseActions.find(action => action.ID === activeActionID);
48
+ return activeAction?.name || '';
49
+ }
50
+
51
+ function showTodo(pConnect) {
52
+ const caseViewMode = pConnect.getValue('context_data.caseViewMode');
53
+ return caseViewMode !== 'perform';
54
+ }
55
+
56
+ export function getToDoAssignments(pConnect) {
57
+ const caseActions = pConnect.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ACTIONS);
58
+ const assignmentLabel = pConnect.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL);
59
+ const assignments = pConnect.getValue(PCore.getConstants().CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS) || [];
60
+ const childCasesAssignments = getChildCaseAssignments(pConnect) || [];
61
+ let childCasesAssignmentsCopy = JSON.parse(JSON.stringify(childCasesAssignments));
62
+
63
+ childCasesAssignmentsCopy = childCasesAssignmentsCopy.map(assignment => {
64
+ assignment.isChild = true;
65
+ return assignment;
66
+ });
67
+
68
+ const todoAssignments = [...assignments, ...childCasesAssignmentsCopy];
69
+ let todoAssignmentsCopy = JSON.parse(JSON.stringify(todoAssignments));
70
+
71
+ if (caseActions && !showTodo(pConnect)) {
72
+ todoAssignmentsCopy = todoAssignmentsCopy.map(assignment => {
73
+ assignment.name = getActiveCaseActionName(pConnect) || assignmentLabel;
74
+ return assignment;
75
+ });
76
+ }
77
+
78
+ return todoAssignmentsCopy;
79
+ }
@@ -0,0 +1 @@
1
+ <p>hybrid-view-container works!</p>
@@ -0,0 +1,24 @@
1
+ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
+
3
+ import { HybridViewContainerComponent } from './hybrid-view-container.component';
4
+
5
+ describe('HybridViewContainerComponent', () => {
6
+ let component: HybridViewContainerComponent;
7
+ let fixture: ComponentFixture<HybridViewContainerComponent>;
8
+
9
+ beforeEach(waitForAsync(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [HybridViewContainerComponent]
12
+ }).compileComponents();
13
+ }));
14
+
15
+ beforeEach(() => {
16
+ fixture = TestBed.createComponent(HybridViewContainerComponent);
17
+ component = fixture.componentInstance;
18
+ fixture.detectChanges();
19
+ });
20
+
21
+ it('should create', () => {
22
+ expect(component).toBeTruthy();
23
+ });
24
+ });
@@ -0,0 +1,24 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FormGroup } from '@angular/forms';
4
+
5
+ /**
6
+ * WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
7
+ * Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
8
+ * is totally at your own risk.
9
+ */
10
+
11
+ // Right this is a skeleton, as Hybrid ViewContainer hasn't been implemented
12
+
13
+ @Component({
14
+ selector: 'app-hybrid-view-container',
15
+ templateUrl: './hybrid-view-container.component.html',
16
+ styleUrls: ['./hybrid-view-container.component.scss'],
17
+ standalone: true,
18
+ imports: [CommonModule]
19
+ })
20
+ export class HybridViewContainerComponent {
21
+ @Input() pConn$: typeof PConnect;
22
+ @Input() formGroup$: FormGroup;
23
+ @Input() displayOnlyFA$: boolean;
24
+ }
@@ -0,0 +1,35 @@
1
+ <div id="dialog" *ngIf="bShowModal$ && bShowAsModal$" class="psdk-dialog-background">
2
+ <div class="psdk-modal-view-container-top" id="{{ buildName$ }}">
3
+ <h3 *ngIf="title$ != ''">{{ title$ }}</h3>
4
+ <component-mapper
5
+ name="Assignment"
6
+ [props]="{ pConn$: createdViewPConn$, formGroup$, arChildren$, itemKey$, isCreateStage$: true, updateToken$, isInModal$: true, banners }"
7
+ ></component-mapper>
8
+ <div *ngIf="isMultiRecord">
9
+ <component-mapper
10
+ name="ListViewActionButtons"
11
+ [props]="{ pConn$: createdViewPConn$, context$ }"
12
+ [outputEvents]="{ closeActionsDialog: closeActionsDialog }"
13
+ ></component-mapper>
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ <div *ngIf="bShowModal$ && !bShowAsModal$">
19
+ <div id="{{ buildName$ }}">
20
+ <h3 *ngIf="title$ != ''">{{ title$ }}</h3>
21
+ <component-mapper
22
+ name="Assignment"
23
+ [props]="{ pConn$: createdViewPConn$, formGroup$, arChildren$, itemKey$, isCreateStage$: true, updateToken$ }"
24
+ ></component-mapper>
25
+ </div>
26
+ </div>
27
+
28
+ <div *ngIf="bShowCancelAlert$">
29
+ <component-mapper
30
+ name="CancelAlert"
31
+ [props]="{ bShowAlert$: bShowCancelAlert$, pConn$: cancelPConn$ }"
32
+ [parent]="this"
33
+ [outputEvents]="{ onAlertState$: onAlertState }"
34
+ ></component-mapper>
35
+ </div>
@@ -0,0 +1,29 @@
1
+ .psdk-dialog-background {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-items: center;
6
+ height: 100%;
7
+ width: 100%;
8
+ background-color: rgba(100, 100, 100, 0.4);
9
+ position: fixed;
10
+ z-index: 999;
11
+ top: 0px;
12
+ left: 0px;
13
+ }
14
+
15
+ .psdk-modal-view-container-top {
16
+ display: block;
17
+ margin: auto;
18
+ min-width: 650px;
19
+ background-color: white;
20
+ border: 1px solid black;
21
+ border-radius: 10px;
22
+ padding: 20px;
23
+ box-shadow: 0 0 10px 3px #777;
24
+ overflow-y: auto;
25
+ }
26
+
27
+ .psdk-dialog-float {
28
+ position: absolute;
29
+ }
@@ -0,0 +1,24 @@
1
+ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
+
3
+ import { ModalViewContainerComponent } from './modal-view-container.component';
4
+
5
+ describe('ModalViewContainerComponent', () => {
6
+ let component: ModalViewContainerComponent;
7
+ let fixture: ComponentFixture<ModalViewContainerComponent>;
8
+
9
+ beforeEach(waitForAsync(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [ModalViewContainerComponent]
12
+ }).compileComponents();
13
+ }));
14
+
15
+ beforeEach(() => {
16
+ fixture = TestBed.createComponent(ModalViewContainerComponent);
17
+ component = fixture.componentInstance;
18
+ fixture.detectChanges();
19
+ });
20
+
21
+ it('should create', () => {
22
+ expect(component).toBeTruthy();
23
+ });
24
+ });
@@ -0,0 +1,394 @@
1
+ import { Component, OnInit, Input, Output, EventEmitter, NgZone, forwardRef, OnDestroy } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FormBuilder, FormGroup } from '@angular/forms';
4
+ import isEqual from 'fast-deep-equal';
5
+ import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
6
+ import { ProgressSpinnerService } from '@pega/angular-sdk-components';
7
+ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
8
+ import { getBanners } from '@pega/angular-sdk-components';
9
+
10
+ /**
11
+ * WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
12
+ * Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
13
+ * is totally at your own risk.
14
+ */
15
+
16
+ @Component({
17
+ selector: 'app-modal-view-container',
18
+ templateUrl: './modal-view-container.component.html',
19
+ styleUrls: ['./modal-view-container.component.scss'],
20
+ standalone: true,
21
+ imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
22
+ })
23
+ export class ModalViewContainerComponent implements OnInit, OnDestroy {
24
+ @Input() pConn$: typeof PConnect;
25
+ @Input() displayOnlyFA$: boolean;
26
+
27
+ // for when non modal
28
+ @Output() modalVisibleChange = new EventEmitter<boolean>();
29
+
30
+ // Used with AngularPConnect
31
+ angularPConnectData: AngularPConnectData = {};
32
+
33
+ arChildren$: any[];
34
+ stateProps$: Object;
35
+ banners: any;
36
+ templateName$: string;
37
+ buildName$: string;
38
+ context$: string;
39
+ title$ = '';
40
+ bShowModal$ = false;
41
+ bShowAsModal$ = true;
42
+ itemKey$: string;
43
+ formGroup$: FormGroup;
44
+ oCaseInfo: Object = {};
45
+
46
+ // for causing a change on assignment
47
+ updateToken$ = 0;
48
+
49
+ routingInfoRef: any = {};
50
+
51
+ // created object is now a View with a Template
52
+ // Use its PConnect to render the CaseView; DON'T replace this.pConn$
53
+ createdViewPConn$: any;
54
+
55
+ bSubscribed = false;
56
+ cancelPConn$?: typeof PConnect;
57
+ bShowCancelAlert$ = false;
58
+ bAlertState: boolean;
59
+ localizedVal: Function;
60
+ localeCategory = 'Data Object';
61
+ isMultiRecord = false;
62
+ actionsDialog = false;
63
+
64
+ constructor(
65
+ private angularPConnect: AngularPConnectService,
66
+ private ngZone: NgZone,
67
+ private psService: ProgressSpinnerService,
68
+ private fb: FormBuilder
69
+ ) {
70
+ // create the formGroup
71
+ this.formGroup$ = fb.group({ hideRequired: false });
72
+ }
73
+
74
+ ngOnInit(): void {
75
+ if (this.displayOnlyFA$) {
76
+ // for when non modal
77
+ this.bShowAsModal$ = false;
78
+ }
79
+
80
+ // First thing in initialization is registering and subscribing to the AngularPConnect service
81
+ this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
82
+
83
+ const baseContext = this.pConn$.getContextName();
84
+ const acName = this.pConn$.getContainerName();
85
+
86
+ // for now, in general this should be overridden by updateSelf(), and not be blank
87
+ if (this.itemKey$ === '') {
88
+ this.itemKey$ = baseContext.concat('/').concat(acName);
89
+ }
90
+
91
+ const containerMgr: any = this.pConn$.getContainerManager();
92
+
93
+ containerMgr.initializeContainers({
94
+ type: 'multiple'
95
+ });
96
+
97
+ // const { CONTAINER_TYPE, PUB_SUB_EVENTS } = PCore.getConstants();
98
+
99
+ this.angularPConnect.shouldComponentUpdate(this);
100
+ this.localizedVal = PCore.getLocaleUtils().getLocaleValue;
101
+ }
102
+
103
+ ngOnDestroy(): void {
104
+ if (this.angularPConnectData.unsubscribeFn) {
105
+ this.angularPConnectData.unsubscribeFn();
106
+ }
107
+
108
+ const { PUB_SUB_EVENTS } = PCore.getConstants();
109
+
110
+ PCore.getPubSubUtils().unsubscribe(
111
+ PUB_SUB_EVENTS.EVENT_SHOW_CANCEL_ALERT,
112
+ PUB_SUB_EVENTS.EVENT_SHOW_CANCEL_ALERT /* Should be same unique string passed during subscription */
113
+ );
114
+ this.bSubscribed = false;
115
+ }
116
+
117
+ // Callback passed when subscribing to store change
118
+ onStateChange() {
119
+ // Should always check the bridge to see if the component should
120
+ // update itself (re-render)
121
+ const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
122
+
123
+ // ONLY call updateSelf when the component should update
124
+ if (bUpdateSelf) {
125
+ this.updateSelf();
126
+ } else if (this.bShowModal$) {
127
+ // right now onlu get one updated when initial diaplay. So, once modal is up
128
+ // let fall through and do a check with "compareCaseInfoIsDifferent" until fixed
129
+ // this.updateSelf();
130
+ }
131
+ }
132
+
133
+ // updateSelf
134
+ updateSelf(): void {
135
+ // routingInfo was added as component prop in populateAdditionalProps
136
+ const routingInfo = this.angularPConnect.getComponentProp(this, 'routingInfo');
137
+ this.routingInfoRef.current = routingInfo;
138
+
139
+ let loadingInfo;
140
+ try {
141
+ // @ts-ignore - Property 'getLoadingStatus' is private and only accessible within class 'C11nEnv'
142
+ loadingInfo = this.pConn$.getLoadingStatus();
143
+ } catch (ex) {
144
+ /* empty */
145
+ }
146
+ // const configProps = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
147
+ this.stateProps$ = this.pConn$.getStateProps();
148
+ this.banners = this.getBanners();
149
+
150
+ if (!loadingInfo) {
151
+ // turn off spinner
152
+ // this.psService.sendMessage(false);
153
+ }
154
+
155
+ if (routingInfo && !loadingInfo /* && this.bUpdate */) {
156
+ const currentOrder = routingInfo.accessedOrder;
157
+
158
+ if (undefined == currentOrder) {
159
+ return;
160
+ }
161
+
162
+ const currentItems = routingInfo.items;
163
+
164
+ const { key, latestItem } = this.getKeyAndLatestItem(routingInfo);
165
+
166
+ if (currentOrder.length > 0) {
167
+ if (currentItems[key] && currentItems[key].view && Object.keys(currentItems[key].view).length > 0) {
168
+ const currentItem = currentItems[key];
169
+ const rootView = currentItem.view;
170
+ const { context } = rootView.config;
171
+ const config: any = { meta: rootView };
172
+ config.options = {
173
+ context: currentItem.context,
174
+ hasForm: true,
175
+ pageReference: context || this.pConn$.getPageReference()
176
+ };
177
+
178
+ if (!this.bSubscribed) {
179
+ this.bSubscribed = true;
180
+ const { PUB_SUB_EVENTS } = PCore.getConstants();
181
+ PCore.getPubSubUtils().subscribe(
182
+ PUB_SUB_EVENTS.EVENT_SHOW_CANCEL_ALERT,
183
+ payload => {
184
+ this.showAlert(payload);
185
+ },
186
+ PUB_SUB_EVENTS.EVENT_SHOW_CANCEL_ALERT
187
+ );
188
+ }
189
+
190
+ // let configObject = PCore.createPConnect(config);
191
+
192
+ // THIS is where the ViewContainer creates a View
193
+ // The config has meta.config.type = "view"
194
+ this.createView(routingInfo, currentItem, latestItem, key);
195
+ }
196
+ } else {
197
+ this.hideModal();
198
+ }
199
+ }
200
+ }
201
+
202
+ createView(routingInfo, currentItem, latestItem, key) {
203
+ const configObject = this.getConfigObject(currentItem, this.pConn$);
204
+ const newComp = configObject?.getPConnect();
205
+ // const newCompName = newComp.getComponentName();
206
+ // @ts-ignore - parameter “contextName” for getDataObject method should be optional
207
+ const caseInfo = newComp && newComp.getDataObject() && newComp.getDataObject().caseInfo ? newComp.getDataObject().caseInfo : null;
208
+ // The metadata for pyDetails changed such that the "template": "CaseView"
209
+ // is no longer a child of the created View but is in the created View's
210
+ // config. So, we DON'T want to replace this.pConn$ since the created
211
+ // component is a View (and not a ViewContainer). We now look for the
212
+ // "template" type directly in the created component (newComp) and NOT
213
+ // as a child of the newly created component.
214
+ // console.log(`---> ModalViewContainer created new ${newCompName}`);
215
+
216
+ // Use the newly created component (View) info but DO NOT replace
217
+ // this ModalViewContainer's pConn$, etc.
218
+ // Note that we're now using the newly created View's PConnect in the
219
+ // ViewContainer HTML template to guide what's rendered similar to what
220
+ // the Nebula/Constellation return of React.Fragment does
221
+
222
+ // right now need to check caseInfo for changes, to trigger redraw, not getting
223
+ // changes from angularPconnect except for first draw
224
+ if (newComp && caseInfo && this.compareCaseInfoIsDifferent(caseInfo)) {
225
+ this.psService.sendMessage(false);
226
+
227
+ this.ngZone.run(() => {
228
+ this.createdViewPConn$ = newComp;
229
+ const newConfigProps = newComp.getConfigProps();
230
+ this.templateName$ = 'template' in newConfigProps ? (newConfigProps.template as string) : '';
231
+
232
+ const { actionName } = latestItem;
233
+ const theNewCaseInfo = newComp.getCaseInfo();
234
+ // const caseName = theNewCaseInfo.getName();
235
+ const ID = theNewCaseInfo.getBusinessID() || theNewCaseInfo.getID();
236
+
237
+ const caseTypeName = theNewCaseInfo.getCaseTypeName();
238
+ const isDataObject = routingInfo.items[latestItem.context].resourceType === PCore.getConstants().RESOURCE_TYPES.DATA;
239
+ const dataObjectAction = routingInfo.items[latestItem.context].resourceStatus;
240
+ this.isMultiRecord = routingInfo.items[latestItem.context].isMultiRecordData;
241
+ this.context$ = latestItem.context;
242
+ this.title$ =
243
+ isDataObject || this.isMultiRecord
244
+ ? this.getModalHeading(dataObjectAction)
245
+ : this.determineModalHeaderByAction(
246
+ actionName,
247
+ caseTypeName,
248
+ ID,
249
+ `${theNewCaseInfo?.getClassName()}!CASE!${theNewCaseInfo.getName()}`.toUpperCase()
250
+ );
251
+ // // update children with new view's children
252
+ this.arChildren$ = newComp.getChildren() as any[];
253
+ this.bShowModal$ = true;
254
+
255
+ // for when non modal
256
+ this.modalVisibleChange.emit(this.bShowModal$);
257
+
258
+ // save off itemKey to be used for finishAssignment, etc.
259
+ this.itemKey$ = key;
260
+
261
+ // cause a change for assignment
262
+ this.updateToken$ = new Date().getTime();
263
+ });
264
+ }
265
+ }
266
+
267
+ hideModal() {
268
+ if (this.bShowModal$) {
269
+ // other code in Nebula/Constellation not needed currently, but if so later,
270
+ // should put here
271
+ }
272
+
273
+ this.ngZone.run(() => {
274
+ this.bShowModal$ = false;
275
+
276
+ // for when non modal
277
+ this.modalVisibleChange.emit(this.bShowModal$);
278
+
279
+ this.oCaseInfo = {};
280
+ });
281
+ }
282
+
283
+ getConfigObject(item, pConnect) {
284
+ if (item) {
285
+ const { context, view } = item;
286
+ const config = {
287
+ meta: view,
288
+ options: {
289
+ context,
290
+ pageReference: view.config.context || pConnect.getPageReference(),
291
+ hasForm: true,
292
+ containerName: pConnect?.getContainerName() || PCore.getConstants().MODAL
293
+ }
294
+ };
295
+ return PCore.createPConnect(config);
296
+ }
297
+ return null;
298
+ }
299
+
300
+ onAlertState(bData: boolean) {
301
+ this.bAlertState = bData;
302
+ this.bShowCancelAlert$ = false;
303
+ if (this.bAlertState) {
304
+ this.hideModal();
305
+ }
306
+ }
307
+
308
+ showAlert(payload) {
309
+ const { latestItem } = this.getKeyAndLatestItem(this.routingInfoRef.current);
310
+ const { isModalAction } = payload;
311
+
312
+ /*
313
+ If we are in create stage full page mode, created a new case and trying to click on cancel button
314
+ it will show two alert dialogs which is not expected. Hence isModalAction flag to avoid that.
315
+ */
316
+ if (latestItem && isModalAction && !this.actionsDialog) {
317
+ const configObject = this.getConfigObject(latestItem, this.pConn$);
318
+ this.ngZone.run(() => {
319
+ this.cancelPConn$ = configObject?.getPConnect();
320
+ this.bShowCancelAlert$ = true;
321
+ });
322
+ }
323
+ }
324
+
325
+ hasContainerItems(routingInfo) {
326
+ if (routingInfo) {
327
+ const { accessedOrder, items } = routingInfo;
328
+ return accessedOrder && accessedOrder.length > 0 && items;
329
+ }
330
+ return false;
331
+ }
332
+
333
+ getKeyAndLatestItem(routinginfo) {
334
+ if (this.hasContainerItems(routinginfo)) {
335
+ const { accessedOrder, items } = routinginfo;
336
+ const key = accessedOrder[accessedOrder.length - 1];
337
+ const latestItem = items[key];
338
+ return { key, latestItem };
339
+ }
340
+ return {};
341
+ }
342
+
343
+ compareCaseInfoIsDifferent(oCurrentCaseInfo: Object): boolean {
344
+ let bRet = false;
345
+
346
+ // fast-deep-equal version
347
+ if (isEqual !== undefined) {
348
+ bRet = !isEqual(this.oCaseInfo, oCurrentCaseInfo);
349
+ } else {
350
+ const sCurrnentCaseInfo = JSON.stringify(oCurrentCaseInfo);
351
+ const sOldCaseInfo = JSON.stringify(this.oCaseInfo);
352
+ // stringify compare version
353
+ if (sCurrnentCaseInfo != sOldCaseInfo) {
354
+ bRet = true;
355
+ }
356
+ }
357
+
358
+ // if different, save off new case info
359
+ if (bRet) {
360
+ this.oCaseInfo = JSON.parse(JSON.stringify(oCurrentCaseInfo));
361
+ }
362
+
363
+ return bRet;
364
+ }
365
+
366
+ getBanners() {
367
+ return getBanners({ target: this.itemKey$, ...this.stateProps$ });
368
+ }
369
+
370
+ getModalHeading(dataObjectAction) {
371
+ return dataObjectAction === PCore.getConstants().RESOURCE_STATUS.CREATE
372
+ ? this.localizedVal('Add Record', this.localeCategory)
373
+ : this.localizedVal('Edit Record', this.localeCategory);
374
+ }
375
+
376
+ determineModalHeaderByAction(actionName, caseTypeName, ID, caseLocaleRef) {
377
+ if (actionName) {
378
+ return this.localizedVal(actionName, this.localeCategory);
379
+ }
380
+ return `${this.localizedVal('Create', this.localeCategory)} ${this.localizedVal(caseTypeName, undefined, caseLocaleRef)} (${ID})`;
381
+ }
382
+
383
+ closeActionsDialog = () => {
384
+ this.actionsDialog = true;
385
+ // this.ngZone.run(() => {
386
+ this.bShowModal$ = false;
387
+
388
+ // for when non modal
389
+ this.modalVisibleChange.emit(this.bShowModal$);
390
+
391
+ this.oCaseInfo = {};
392
+ // });
393
+ };
394
+ }
@@ -0,0 +1 @@
1
+ <div class="psdk-preview"></div>
@@ -0,0 +1,24 @@
1
+ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
+
3
+ import { PreviewViewContainerComponent } from './preview-view-container.component';
4
+
5
+ describe('PreviewViewContainerComponent', () => {
6
+ let component: PreviewViewContainerComponent;
7
+ let fixture: ComponentFixture<PreviewViewContainerComponent>;
8
+
9
+ beforeEach(waitForAsync(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [PreviewViewContainerComponent]
12
+ }).compileComponents();
13
+ }));
14
+
15
+ beforeEach(() => {
16
+ fixture = TestBed.createComponent(PreviewViewContainerComponent);
17
+ component = fixture.componentInstance;
18
+ fixture.detectChanges();
19
+ });
20
+
21
+ it('should create', () => {
22
+ expect(component).toBeTruthy();
23
+ });
24
+ });
@@ -0,0 +1,35 @@
1
+ import { Component, OnInit, Input } from '@angular/core';
2
+
3
+ /**
4
+ * WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
5
+ * Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
6
+ * is totally at your own risk.
7
+ */
8
+
9
+ // Right this is a skeleton, as Preview hasn't been implemented
10
+
11
+ @Component({
12
+ selector: 'app-preview-view-container',
13
+ templateUrl: './preview-view-container.component.html',
14
+ styleUrls: ['./preview-view-container.component.scss'],
15
+ standalone: true
16
+ })
17
+ export class PreviewViewContainerComponent implements OnInit {
18
+ @Input() pConn$: typeof PConnect;
19
+
20
+ ngOnInit(): void {
21
+ const containerMgr: any = this.pConn$.getContainerManager();
22
+
23
+ containerMgr.initializeContainers({
24
+ type: 'multiple'
25
+ });
26
+ }
27
+
28
+ buildName() {
29
+ const context = this.pConn$.getContextName();
30
+ let viewContainerName = this.pConn$.getComponentName();
31
+
32
+ if (!viewContainerName) viewContainerName = '';
33
+ return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;
34
+ }
35
+ }