@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
File without changes
@@ -0,0 +1,24 @@
1
+ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
+
3
+ import { RegionComponent } from './region.component';
4
+
5
+ describe('RegionComponent', () => {
6
+ let component: RegionComponent;
7
+ let fixture: ComponentFixture<RegionComponent>;
8
+
9
+ beforeEach(waitForAsync(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [RegionComponent]
12
+ }).compileComponents();
13
+ }));
14
+
15
+ beforeEach(() => {
16
+ fixture = TestBed.createComponent(RegionComponent);
17
+ component = fixture.componentInstance;
18
+ fixture.detectChanges();
19
+ });
20
+
21
+ it('should create', () => {
22
+ expect(component).toBeTruthy();
23
+ });
24
+ });
@@ -0,0 +1,37 @@
1
+ import { Component, OnInit, Input, forwardRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FormGroup } from '@angular/forms';
4
+ import { ReferenceComponent } from '@pega/angular-sdk-components';
5
+ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
6
+
7
+ @Component({
8
+ selector: 'app-region',
9
+ templateUrl: './region.component.html',
10
+ styleUrls: ['./region.component.scss'],
11
+ standalone: true,
12
+ imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
13
+ })
14
+ export class RegionComponent implements OnInit, OnChanges {
15
+ @Input() pConn$: typeof PConnect;
16
+ @Input() formGroup$: FormGroup;
17
+
18
+ arChildren$: any[];
19
+
20
+ ngOnInit() {
21
+ // console.log(`ngOnInit (no registerAndSubscribe!): Region`);
22
+ this.updateSelf();
23
+ }
24
+
25
+ ngOnChanges(changes: SimpleChanges): void {
26
+ const { pConn$ } = changes;
27
+
28
+ if (pConn$.previousValue && pConn$.previousValue !== pConn$.currentValue) {
29
+ this.updateSelf();
30
+ }
31
+ }
32
+
33
+ updateSelf() {
34
+ // The children may contain 'reference' components, so normalize the children...
35
+ this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren());
36
+ }
37
+ }
@@ -0,0 +1,36 @@
1
+ <div class="progress-box" *ngIf="bIsProgress$">
2
+ <mat-spinner class="progress-spinner"></mat-spinner>
3
+ </div>
4
+
5
+ <div *ngIf="bShowRoot$">
6
+ <div [ngSwitch]="componentName$">
7
+ <component-mapper *ngSwitchCase="'View'" name="View" [props]="{ pConn$, displayOnlyFA$ }"></component-mapper>
8
+ <!-- <app-reference *ngSwitchCase="'reference'" [pConn$]="pConn$" [displayOnlyFA$]="displayOnlyFA$"></app-reference> -->
9
+ <component-mapper
10
+ *ngSwitchCase="'ViewContainer'"
11
+ name="ViewContainer"
12
+ [props]="{ pConn$: displayOnlyFA$ ? viewContainerPConn$ : pConn$, displayOnlyFA$ }"
13
+ ></component-mapper>
14
+ <app-hybrid-view-container *ngSwitchCase="'HybridViewContainer'" [pConn$]="pConn$" [displayOnlyFA$]="displayOnlyFA$"></app-hybrid-view-container>
15
+ <app-modal-view-container
16
+ *ngSwitchCase="'ModalViewContainer'"
17
+ [pConn$]="pConn$"
18
+ [displayOnlyFA$]="displayOnlyFA$"
19
+ (modalVisibleChange)="modalVisibleChanged($event)"
20
+ ></app-modal-view-container>
21
+ <div *ngSwitchCase="''"></div>
22
+ <div *ngSwitchDefault>{{ localizedVal('RootContainer Missing: ' + componentName$, localeCategory) }}.</div>
23
+ </div>
24
+ </div>
25
+
26
+ <div *ngIf="pvConn$ != null">
27
+ <app-preview-view-container [pConn$]="pvConn$"></app-preview-view-container>
28
+ </div>
29
+
30
+ <div *ngIf="mConn$ != null">
31
+ <app-modal-view-container
32
+ [pConn$]="mConn$"
33
+ [displayOnlyFA$]="displayOnlyFA$"
34
+ (modalVisibleChange)="modalVisibleChanged($event)"
35
+ ></app-modal-view-container>
36
+ </div>
@@ -0,0 +1,20 @@
1
+ @import '@pega/angular-sdk-components/_shared/styles.scss';
2
+
3
+ .progress-box {
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: center;
7
+ align-items: center;
8
+ height: 100%;
9
+ width: 100%;
10
+ background-color: whitesmoke;
11
+ position: fixed;
12
+ z-index: 99999;
13
+ top: 0rem;
14
+ left: 0rem;
15
+ opacity: 0.5;
16
+ }
17
+
18
+ .progress-spinner {
19
+ text-align: center;
20
+ }
@@ -0,0 +1,24 @@
1
+ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
+
3
+ import { RootContainerComponent } from './root-container.component';
4
+
5
+ describe('RootContainerComponent', () => {
6
+ let component: RootContainerComponent;
7
+ let fixture: ComponentFixture<RootContainerComponent>;
8
+
9
+ beforeEach(waitForAsync(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [RootContainerComponent]
12
+ }).compileComponents();
13
+ }));
14
+
15
+ beforeEach(() => {
16
+ fixture = TestBed.createComponent(RootContainerComponent);
17
+ component = fixture.componentInstance;
18
+ fixture.detectChanges();
19
+ });
20
+
21
+ it('should create', () => {
22
+ expect(component).toBeTruthy();
23
+ });
24
+ });
@@ -0,0 +1,256 @@
1
+ import { Component, OnInit, Input, NgZone, forwardRef, OnDestroy } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
4
+ import { interval, Subscription } from 'rxjs';
5
+ import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
6
+ import { ProgressSpinnerService } from '@pega/angular-sdk-components';
7
+ import { ReferenceComponent } from '@pega/angular-sdk-components';
8
+ import { PreviewViewContainerComponent } from '@pega/angular-sdk-components';
9
+ import { ModalViewContainerComponent } from '@pega/angular-sdk-components';
10
+ import { HybridViewContainerComponent } from '@pega/angular-sdk-components';
11
+ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
12
+
13
+ /**
14
+ * WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
15
+ * Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
16
+ * is totally at your own risk.
17
+ */
18
+
19
+ const options = { context: 'app' };
20
+
21
+ @Component({
22
+ selector: 'app-root-container',
23
+ templateUrl: './root-container.component.html',
24
+ styleUrls: ['./root-container.component.scss'],
25
+ standalone: true,
26
+ imports: [
27
+ CommonModule,
28
+ MatProgressSpinnerModule,
29
+ HybridViewContainerComponent,
30
+ ModalViewContainerComponent,
31
+ PreviewViewContainerComponent,
32
+ forwardRef(() => ComponentMapperComponent)
33
+ ]
34
+ })
35
+ export class RootContainerComponent implements OnInit, OnDestroy {
36
+ @Input() pConn$: typeof PConnect;
37
+ @Input() displayOnlyFA$: boolean;
38
+ @Input() isMashup$: boolean;
39
+
40
+ // For interaction with AngularPConnect
41
+ angularPConnectData: AngularPConnectData = {};
42
+
43
+ componentName$ = '';
44
+ bIsProgress$ = false;
45
+
46
+ // preview and modalview pConn
47
+ pvConn$: any = null;
48
+ mConn$: any = null;
49
+
50
+ bShowRoot$ = true;
51
+
52
+ progressSpinnerSubscription: Subscription;
53
+ spinnerTimer: any = null;
54
+ viewContainerPConn$: any = null;
55
+ localizedVal: any;
56
+ localeCategory = 'Messages';
57
+
58
+ constructor(
59
+ private angularPConnect: AngularPConnectService,
60
+ private psService: ProgressSpinnerService,
61
+ private ngZone: NgZone
62
+ ) {}
63
+
64
+ ngOnInit(): void {
65
+ const myContext = 'app';
66
+
67
+ const { containers } = PCore.getStore().getState();
68
+ const items = Object.keys(containers).filter(item => item.includes('root'));
69
+
70
+ (PCore.getContainerUtils().getContainerAPI() as any).addContainerItems(items);
71
+
72
+ // add preview and modalview containers to redux
73
+ // keep local copies of the the pConnect that is related
74
+
75
+ const configObjPreview = PCore.createPConnect({
76
+ meta: {
77
+ type: 'PreviewViewContainer',
78
+ config: {
79
+ name: 'preview'
80
+ }
81
+ },
82
+ options
83
+ });
84
+
85
+ this.pvConn$ = configObjPreview.getPConnect();
86
+
87
+ const configObjModal = PCore.createPConnect({
88
+ meta: {
89
+ type: 'ModalViewContainer',
90
+ config: {
91
+ name: 'modal'
92
+ }
93
+ },
94
+ options: {
95
+ pageReference: 'pyPortal',
96
+ context: myContext
97
+ }
98
+ });
99
+
100
+ // clear out hasViewContainer
101
+ sessionStorage.setItem('hasViewContainer', 'false');
102
+
103
+ this.mConn$ = configObjModal.getPConnect();
104
+
105
+ // First thing in initialization is registering and subscribing to the AngularPConnect service
106
+ this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
107
+
108
+ // handle showing and hiding the progress spinner
109
+ this.progressSpinnerSubscription = this.psService.getMessage().subscribe(message => {
110
+ this.showHideProgress(message.show);
111
+ });
112
+ this.localizedVal = PCore.getLocaleUtils().getLocaleValue;
113
+ }
114
+
115
+ ngOnDestroy() {
116
+ if (this.angularPConnectData.unsubscribeFn) {
117
+ this.angularPConnectData.unsubscribeFn();
118
+ }
119
+ }
120
+
121
+ // Callback passed when subscribing to store change
122
+ onStateChange() {
123
+ // Should always check the bridge to see if the component should update itself (re-render)
124
+ const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
125
+
126
+ if (bUpdateSelf) {
127
+ this.updateSelf();
128
+ }
129
+ }
130
+
131
+ modalVisibleChanged(isVisible) {
132
+ if (this.displayOnlyFA$) {
133
+ if (isVisible) {
134
+ this.bShowRoot$ = false;
135
+ } else {
136
+ this.bShowRoot$ = true;
137
+ }
138
+ }
139
+ }
140
+
141
+ updateSelf() {
142
+ // need to call this.getCurrentCompleteProps (not this.thePConn.getConfigProps)
143
+ // to get full set of props that affect this component in Redux
144
+ const myProps: any = this.angularPConnect.getCurrentCompleteProps(this);
145
+
146
+ const renderingModes = ['portal', 'view'];
147
+ const noPortalMode = 'noPortal';
148
+
149
+ const { renderingMode, children, skeleton, routingInfo } = myProps;
150
+
151
+ if (routingInfo && renderingModes.includes(renderingMode)) {
152
+ const { accessedOrder, items } = routingInfo;
153
+ if (accessedOrder && items) {
154
+ // bootstrap loadPortal resolves to here
155
+ const key = accessedOrder[accessedOrder.length - 1];
156
+ if (items[key] && items[key].view && Object.keys(items[key].view).length > 0) {
157
+ const itemView = items[key].view;
158
+
159
+ const rootObject: any = PCore.createPConnect({
160
+ meta: itemView,
161
+ options: {
162
+ context: items[key].context
163
+ }
164
+ });
165
+
166
+ setTimeout(() => {
167
+ // makes sure Angular tracks these changes
168
+ this.ngZone.run(() => {
169
+ // the new rootObject may be a 'reference'. So,
170
+ // normalize it to get the referencedView if that's the case
171
+ const theNewPConn = ReferenceComponent.normalizePConn(rootObject.getPConnect());
172
+ // update ComponentName$ before we update pConn$ to make sure they're in sync
173
+ // when rendering...
174
+ this.componentName$ = theNewPConn.getComponentName();
175
+
176
+ this.pConn$ = theNewPConn;
177
+ // this.pConn$ = rootObject.getPConnect();
178
+
179
+ console.log(`RootContainer updated pConn$ to be: ${this.componentName$}`);
180
+ });
181
+ });
182
+ }
183
+ }
184
+ } else if (renderingMode === noPortalMode) {
185
+ // console.log(`RootContainer: renderingMode === noPortalMode: ${noPortalMode}`);
186
+ this.generateViewContainerForNoPortal();
187
+ } else if (children && children.length > 0) {
188
+ // haven't resolved to here
189
+ } else if (skeleton !== undefined) {
190
+ // TODO: need to update once skeletons are available;
191
+ }
192
+ }
193
+
194
+ generateViewContainerForNoPortal() {
195
+ // bootstrap loadMashup resolves to here
196
+ const arChildren = this.pConn$.getChildren() as any[];
197
+ if (arChildren && arChildren.length == 1) {
198
+ // have to have a quick timeout or get an "expressions changed" angular error
199
+ setTimeout(() => {
200
+ this.ngZone.run(() => {
201
+ const localPConn = arChildren[0].getPConnect();
202
+
203
+ this.componentName$ = localPConn.getComponentName();
204
+ if (this.componentName$ === 'ViewContainer') {
205
+ const configProps: any = this.pConn$.getConfigProps();
206
+ const viewContConfig = {
207
+ meta: {
208
+ type: 'ViewContainer',
209
+ config: configProps
210
+ },
211
+ options
212
+ };
213
+
214
+ this.viewContainerPConn$ = PCore.createPConnect(viewContConfig).getPConnect();
215
+ }
216
+ this.bShowRoot$ = true;
217
+ });
218
+ });
219
+ }
220
+ }
221
+
222
+ showHideProgress(bShow: boolean) {
223
+ // only show spinner after 500ms wait, so if server fast, won't see
224
+ if (bShow) {
225
+ // eslint-disable-next-line sonarjs/no-collapsible-if
226
+ if (!this.bIsProgress$) {
227
+ // makes sure Angular tracks these changes
228
+ if (!this.spinnerTimer || this.spinnerTimer.isStopped) {
229
+ this.spinnerTimer = interval(500).subscribe(() => {
230
+ try {
231
+ this.spinnerTimer.unsubscribe();
232
+ } catch (ex) {
233
+ /* empty */
234
+ }
235
+
236
+ this.ngZone.run(() => {
237
+ this.bIsProgress$ = true;
238
+ });
239
+ });
240
+ }
241
+ }
242
+ } else {
243
+ if (this.spinnerTimer && !this.spinnerTimer.isStopped) {
244
+ this.spinnerTimer.unsubscribe();
245
+ }
246
+
247
+ // don't touch bIsProgress$ unless differnent
248
+ if (bShow != this.bIsProgress$) {
249
+ // makes sure Angular tracks these changes
250
+ this.ngZone.run(() => {
251
+ this.bIsProgress$ = bShow;
252
+ });
253
+ }
254
+ }
255
+ }
256
+ }
@@ -0,0 +1,15 @@
1
+ <div class="psdk-stages-bar">
2
+ <div class="psdk-stages-chevron" *ngFor="let stage of arStageResults$">
3
+ <div *ngIf="stage.visited_status == 'completed'" class="psdk-stages-inner-past">
4
+ <img class="psdk-stages-icon" src="{{ checkSvgIcon$ }}" />{{ PCore$.getLocaleUtils().getLocaleValue(stage.name, '', key) }}
5
+ </div>
6
+ <div *ngIf="stage.visited_status == 'active'" class="psdk-stages-inner-present">
7
+ {{ PCore$.getLocaleUtils().getLocaleValue(stage.name, '', key) }}
8
+ </div>
9
+ <div *ngIf="stage.visited_status == 'future'" class="psdk-stages-inner-future">
10
+ {{ PCore$.getLocaleUtils().getLocaleValue(stage.name, '', key) }}
11
+ </div>
12
+ </div>
13
+ </div>
14
+
15
+ <div class="psdk-stages-divider"></div>
@@ -0,0 +1,109 @@
1
+ @import '@pega/angular-sdk-components/_shared/styles.scss';
2
+
3
+ .psdk-stages {
4
+ padding: 0.625rem 0rem;
5
+ }
6
+
7
+ .psdk-stages-span span {
8
+ padding: 0.3125rem;
9
+ font-weight: bold;
10
+ font-size: 1.5rem;
11
+ }
12
+
13
+ .psdk-stages-div {
14
+ display: inline-flex;
15
+ padding: 0.3125rem;
16
+ font-weight: bold;
17
+ font-size: 1.3rem;
18
+ color: $app-neutral-color;
19
+ }
20
+
21
+ .psdk-stages-past {
22
+ color: $app-primary-color;
23
+ padding-right: 0.3125rem;
24
+ }
25
+
26
+ .psdk-stages-present {
27
+ color: $app-secondary-color;
28
+ padding-right: 0.3125rem;
29
+ }
30
+
31
+ .psdk-stages-future {
32
+ color: $app-neutral-color;
33
+ padding-right: 0.3125rem;
34
+ }
35
+
36
+ .psdk-stages-full {
37
+ display: block;
38
+ }
39
+
40
+ .psdk-stages-divider {
41
+ border-bottom: 0.0625rem solid $app-neutral-light-color;
42
+ }
43
+
44
+ .psdk-stages-full {
45
+ display: block;
46
+ }
47
+
48
+ .psdk-stages-divider {
49
+ border-bottom: 0.0625rem solid $app-neutral-light-color;
50
+ }
51
+
52
+ .psdk-stages-icon {
53
+ width: 1.4rem;
54
+ display: inline-block;
55
+ vertical-align: top;
56
+ }
57
+
58
+ .psdk-stages-bar {
59
+ margin: 1rem 0rem;
60
+ background-color: rgb(255, 255, 255);
61
+ border-radius: 0.5rem;
62
+ border: 0.0625rem solid $app-neutral-light-color;
63
+ overflow: hidden;
64
+ height: 2rem;
65
+ display: flex;
66
+ }
67
+
68
+ .psdk-stages-chevron {
69
+ position: relative;
70
+ padding: calc(1rem);
71
+ display: flex;
72
+ justify-content: center;
73
+ align-items: center;
74
+ max-width: 100%;
75
+ min-width: 0px;
76
+ flex-grow: 1;
77
+ flex-shrink: 1;
78
+ }
79
+
80
+ .psdk-stages-chevron:not(:last-child)::after {
81
+ content: '';
82
+ position: absolute;
83
+ display: block;
84
+ z-index: 2;
85
+ width: calc(1.75rem);
86
+ right: calc(-0.4375rem);
87
+ background: inherit;
88
+ border-style: solid;
89
+ border-color: rgb(207, 207, 207);
90
+ border-width: 0.0625rem 0.0625rem 0px 0px;
91
+ border-radius: 0px calc(0.3125rem) 0px 0px;
92
+ transform: rotateZ(45deg) skew(15deg, 15deg);
93
+ height: 2rem;
94
+ }
95
+
96
+ .psdk-stages-inner-past {
97
+ color: black;
98
+ font-size: 1rem;
99
+ }
100
+
101
+ .psdk-stages-inner-present {
102
+ color: $app-primary-color;
103
+ font-weight: bold;
104
+ font-size: 1rem;
105
+ }
106
+ .psdk-stages-inner-future {
107
+ color: $app-neutral-color;
108
+ font-size: 1rem;
109
+ }
@@ -0,0 +1,24 @@
1
+ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2
+
3
+ import { StagesComponent } from './stages.component';
4
+
5
+ describe('StagesComponent', () => {
6
+ let component: StagesComponent;
7
+ let fixture: ComponentFixture<StagesComponent>;
8
+
9
+ beforeEach(waitForAsync(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [StagesComponent]
12
+ }).compileComponents();
13
+ }));
14
+
15
+ beforeEach(() => {
16
+ fixture = TestBed.createComponent(StagesComponent);
17
+ component = fixture.componentInstance;
18
+ fixture.detectChanges();
19
+ });
20
+
21
+ it('should create', () => {
22
+ expect(component).toBeTruthy();
23
+ });
24
+ });
@@ -0,0 +1,83 @@
1
+ import { Component, OnInit, Input, OnDestroy } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { interval } from 'rxjs';
4
+ import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
5
+ import { Utils } from '@pega/angular-sdk-components';
6
+
7
+ interface StagesProps {
8
+ // If any, enter additional props that only exist on this component
9
+ stages: any[];
10
+ }
11
+
12
+ @Component({
13
+ selector: 'app-stages',
14
+ templateUrl: './stages.component.html',
15
+ styleUrls: ['./stages.component.scss'],
16
+ standalone: true,
17
+ imports: [CommonModule]
18
+ })
19
+ export class StagesComponent implements OnInit, OnDestroy {
20
+ @Input() pConn$: typeof PConnect;
21
+
22
+ // Used with AngularPConnect
23
+ angularPConnectData: AngularPConnectData = {};
24
+ PCore$: typeof PCore = PCore;
25
+ configProps$: StagesProps;
26
+
27
+ arStageResults$: any[];
28
+ lastStage$: any;
29
+ checkSvgIcon$: string;
30
+ key: string;
31
+
32
+ constructor(
33
+ private angularPConnect: AngularPConnectService,
34
+ private utils: Utils
35
+ ) {}
36
+
37
+ ngOnInit(): void {
38
+ // First thing in initialization is registering and subscribing to the AngularPConnect service
39
+ this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
40
+
41
+ // const imagePath = this.utils.getIconPath(this.utils.getSDKStaticContentUrl());
42
+ this.checkSvgIcon$ = this.utils.getImageSrc('check', this.utils.getSDKStaticContentUrl());
43
+ this.key = `${this.pConn$.getCaseInfo().getClassName()}!CASE!${this.pConn$.getCaseInfo().getName()}`.toUpperCase();
44
+ }
45
+
46
+ ngOnDestroy(): void {
47
+ if (this.angularPConnectData.unsubscribeFn) {
48
+ this.angularPConnectData.unsubscribeFn();
49
+ }
50
+ }
51
+
52
+ // Callback passed when subscribing to store change
53
+ onStateChange() {
54
+ this.checkAndUpdate();
55
+ }
56
+
57
+ checkAndUpdate() {
58
+ // Should always check the bridge to see if the component should
59
+ // update itself (re-render)
60
+ const bUpdateSelf = this.angularPConnect.shouldComponentUpdate(this);
61
+
62
+ // ONLY call updateSelf when the component should update
63
+ if (bUpdateSelf) {
64
+ this.updateSelf();
65
+ }
66
+ }
67
+
68
+ updateSelf() {
69
+ this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as StagesProps;
70
+
71
+ const timer = interval(50).subscribe(() => {
72
+ timer.unsubscribe();
73
+
74
+ const arStages = this.angularPConnect.getComponentProp(this, 'stages');
75
+
76
+ // this.stageResults$ = this.configProps$.stages;
77
+ if (arStages != null) {
78
+ this.arStageResults$ = arStages;
79
+ this.lastStage$ = this.arStageResults$[this.arStageResults$.length - 1];
80
+ }
81
+ });
82
+ }
83
+ }
@@ -0,0 +1,38 @@
1
+ <div *ngIf="visibility$ !== false" class="ng-view-top">
2
+ <div *ngIf="showLabel$ && label$ && templateName$ !== 'SimpleTable' && templateName$ !== 'DefaultForm'" class="template-title-container">
3
+ <span>{{ label$ }}</span>
4
+ </div>
5
+
6
+ <ng-container *ngIf="templateName$; else noTemplate">
7
+ <div>
8
+ <component-mapper
9
+ [name]="templateName$"
10
+ [props]="{ formGroup$, pConn$, displayOnlyFA$ }"
11
+ errorMsg="View template not recognized: [{{ templateName$ }}]"
12
+ ></component-mapper>
13
+ </div>
14
+ </ng-container>
15
+
16
+ <ng-template #noTemplate>
17
+ <div *ngIf="displayOnlyFA$; else displayAll">
18
+ <div *ngFor="let kid of arChildren$">
19
+ <div [ngSwitch]="kid.getPConnect().getComponentName()">
20
+ <component-mapper
21
+ [name]="kid.getPConnect().getComponentName()"
22
+ [props]="{ pConn$: kid.getPConnect() }"
23
+ errorMsg="View Missing (displayOnlyFA): {{ kid.getPConnect().getComponentName() }}"
24
+ ></component-mapper>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <ng-template #displayAll>
29
+ <div *ngFor="let kid of arChildren$">
30
+ <component-mapper
31
+ [name]="kid.getPConnect().getComponentName()"
32
+ [props]="{ pConn$: kid.getPConnect() }"
33
+ errorMsg="View Missing (displayAll): {{ kid.getPConnect().getComponentName() }}"
34
+ ></component-mapper>
35
+ </div>
36
+ </ng-template>
37
+ </ng-template>
38
+ </div>
@@ -0,0 +1,16 @@
1
+ h3 {
2
+ margin-left: 0.8rem;
3
+ }
4
+
5
+ .ng-view-top {
6
+ padding: 0;
7
+ }
8
+
9
+ .template-title-container {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ font-size: calc(0.9375rem);
14
+ font-weight: 600;
15
+ padding: 1rem 0;
16
+ }