af-connect-components 0.0.24 → 0.0.26

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 (305) hide show
  1. package/.editorconfig +16 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +20 -0
  4. package/.vscode/tasks.json +42 -0
  5. package/README.md +11 -8
  6. package/angular.json +40 -0
  7. package/package.json +41 -31
  8. package/projects/af-connect-components/README.md +24 -0
  9. package/projects/af-connect-components/ng-package.json +7 -0
  10. package/projects/af-connect-components/package-lock.json +4286 -0
  11. package/projects/af-connect-components/package.json +12 -0
  12. package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.html +13 -0
  13. package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.scss +50 -0
  14. package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.spec.ts +23 -0
  15. package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.ts +17 -0
  16. package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.html +25 -0
  17. package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.scss +306 -0
  18. package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.spec.ts +23 -0
  19. package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.ts +25 -0
  20. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.html +20 -0
  21. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.scss +209 -0
  22. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.spec.ts +23 -0
  23. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.ts +21 -0
  24. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.html +4 -0
  25. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.scss +100 -0
  26. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.spec.ts +23 -0
  27. package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.ts +14 -0
  28. package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.html +1 -0
  29. package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.scss +0 -0
  30. package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.spec.ts +23 -0
  31. package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.ts +10 -0
  32. package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.html +15 -0
  33. package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.scss +125 -0
  34. package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.spec.ts +23 -0
  35. package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.ts +22 -0
  36. package/projects/af-connect-components/src/lib/af-connect-components.component.spec.ts +23 -0
  37. package/projects/af-connect-components/src/lib/af-connect-components.component.ts +15 -0
  38. package/projects/af-connect-components/src/lib/af-connect-components.module.ts +146 -0
  39. package/projects/af-connect-components/src/lib/af-connect-components.service.spec.ts +16 -0
  40. package/projects/af-connect-components/src/lib/af-connect-components.service.ts +9 -0
  41. package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.html +1 -0
  42. package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.scss +227 -0
  43. package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.spec.ts +23 -0
  44. package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.ts +13 -0
  45. package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.html +1 -0
  46. package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.scss +0 -0
  47. package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.spec.ts +23 -0
  48. package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.ts +10 -0
  49. package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.html +6 -0
  50. package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.scss +51 -0
  51. package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.spec.ts +23 -0
  52. package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.ts +18 -0
  53. package/projects/af-connect-components/src/lib/af-connect-footer/af-connect-footer.component.html +106 -0
  54. package/projects/af-connect-components/src/lib/af-connect-footer/af-connect-footer.component.scss +186 -0
  55. package/projects/af-connect-components/src/lib/af-connect-footer/af-connect-footer.component.ts +292 -0
  56. package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.html +1 -0
  57. package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.scss +18 -0
  58. package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.spec.ts +23 -0
  59. package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.ts +10 -0
  60. package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.html +40 -0
  61. package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.scss +5 -0
  62. package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.spec.ts +23 -0
  63. package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.ts +14 -0
  64. package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.html +49 -0
  65. package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.scss +24 -0
  66. package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.spec.ts +23 -0
  67. package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.ts +27 -0
  68. package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.html +6 -0
  69. package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.scss +68 -0
  70. package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.spec.ts +23 -0
  71. package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.ts +18 -0
  72. package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.html +29 -0
  73. package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.scss +117 -0
  74. package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.spec.ts +23 -0
  75. package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.ts +77 -0
  76. package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.html +6 -0
  77. package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.scss +67 -0
  78. package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.spec.ts +23 -0
  79. package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.ts +15 -0
  80. package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.html +43 -0
  81. package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.scss +136 -0
  82. package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.spec.ts +23 -0
  83. package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.ts +99 -0
  84. package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.html +8 -0
  85. package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.scss +94 -0
  86. package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.spec.ts +23 -0
  87. package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.ts +18 -0
  88. package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.html +11 -0
  89. package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.scss +72 -0
  90. package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.spec.ts +23 -0
  91. package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.ts +12 -0
  92. package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.html +16 -0
  93. package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.scss +32 -0
  94. package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.spec.ts +22 -0
  95. package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.ts +58 -0
  96. package/projects/af-connect-components/src/lib/af-connect-products-carousel/defaultConfig.ts +26 -0
  97. package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.html +6 -0
  98. package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.scss +96 -0
  99. package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.spec.ts +23 -0
  100. package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.ts +21 -0
  101. package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.html +94 -0
  102. package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.scss +176 -0
  103. package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.spec.ts +23 -0
  104. package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.ts +48 -0
  105. package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.html +11 -0
  106. package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.scss +48 -0
  107. package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.spec.ts +23 -0
  108. package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.ts +34 -0
  109. package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.html +28 -0
  110. package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.scss +204 -0
  111. package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.spec.ts +23 -0
  112. package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.ts +101 -0
  113. package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.html +6 -0
  114. package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.scss +28 -0
  115. package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.spec.ts +23 -0
  116. package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.ts +111 -0
  117. package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.html +1 -0
  118. package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.scss +8 -0
  119. package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.spec.ts +23 -0
  120. package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.ts +13 -0
  121. package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.html +17 -0
  122. package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.scss +153 -0
  123. package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.spec.ts +23 -0
  124. package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.ts +22 -0
  125. package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.html +91 -0
  126. package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.scss +242 -0
  127. package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.spec.ts +23 -0
  128. package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.ts +10 -0
  129. package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.html +6 -0
  130. package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.scss +66 -0
  131. package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.spec.ts +23 -0
  132. package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.ts +19 -0
  133. package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.html +4 -0
  134. package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.scss +0 -0
  135. package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.spec.ts +23 -0
  136. package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.ts +11 -0
  137. package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.html +1 -0
  138. package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.scss +0 -0
  139. package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.spec.ts +23 -0
  140. package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.ts +10 -0
  141. package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.html +15 -0
  142. package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.scss +125 -0
  143. package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.spec.ts +23 -0
  144. package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.ts +100 -0
  145. package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.html +13 -0
  146. package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.scss +66 -0
  147. package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.spec.ts +23 -0
  148. package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.ts +22 -0
  149. package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.html +26 -0
  150. package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.scss +55 -0
  151. package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.spec.ts +23 -0
  152. package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.ts +120 -0
  153. package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.html +11 -0
  154. package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.scss +149 -0
  155. package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.spec.ts +23 -0
  156. package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.ts +36 -0
  157. package/projects/af-connect-components/src/lib/af-connect-tooltip/types.ts +1 -0
  158. package/projects/af-connect-components/src/lib/constants/animation.constants.ts +149 -0
  159. package/projects/af-connect-components/src/lib/constants/base.constants.ts +10 -0
  160. package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.html +4 -0
  161. package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.scss +0 -0
  162. package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.spec.ts +22 -0
  163. package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.ts +21 -0
  164. package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.html +14 -0
  165. package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.scss +0 -0
  166. package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.spec.ts +22 -0
  167. package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.ts +38 -0
  168. package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.html +3 -0
  169. package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.scss +3 -0
  170. package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.spec.ts +23 -0
  171. package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.ts +21 -0
  172. package/projects/af-connect-components/src/lib/faq/faq/faq.component.html +7 -0
  173. package/projects/af-connect-components/src/lib/faq/faq/faq.component.scss +18 -0
  174. package/projects/af-connect-components/src/lib/faq/faq/faq.component.spec.ts +23 -0
  175. package/projects/af-connect-components/src/lib/faq/faq/faq.component.ts +16 -0
  176. package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.html +15 -0
  177. package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.scss +58 -0
  178. package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.spec.ts +23 -0
  179. package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.ts +12 -0
  180. package/projects/af-connect-components/src/lib/faq/image-fallback/image-fallback.component.ts +57 -0
  181. package/{lib/models/notification-response.model.d.ts → projects/af-connect-components/src/lib/models/notification-response.model.ts} +1 -0
  182. package/projects/af-connect-components/src/lib/models/radio.model.ts +3 -0
  183. package/projects/af-connect-components/src/lib/services/breakpoint.service.ts +10 -0
  184. package/projects/af-connect-components/src/lib/utilities/number.util.ts +3 -0
  185. package/{public-api.d.ts → projects/af-connect-components/src/public-api.ts} +7 -0
  186. package/projects/af-connect-components/src/shared/pipes/get-initials.ts +13 -0
  187. package/projects/af-connect-components/src/styles/breakpoints.scss +91 -0
  188. package/projects/af-connect-components/tsconfig.lib.json +14 -0
  189. package/projects/af-connect-components/tsconfig.lib.prod.json +10 -0
  190. package/projects/af-connect-components/tsconfig.spec.json +14 -0
  191. package/tsconfig.json +39 -0
  192. package/esm2020/af-connect-components.mjs +0 -5
  193. package/esm2020/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.mjs +0 -22
  194. package/esm2020/lib/af-connect-button/af-connect-button.component.mjs +0 -47
  195. package/esm2020/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.mjs +0 -33
  196. package/esm2020/lib/af-connect-card/af-connect-card.component.mjs +0 -17
  197. package/esm2020/lib/af-connect-chart/af-connect-chart.component.mjs +0 -11
  198. package/esm2020/lib/af-connect-chip/af-connect-chip.component.mjs +0 -23
  199. package/esm2020/lib/af-connect-components.component.mjs +0 -19
  200. package/esm2020/lib/af-connect-components.module.mjs +0 -239
  201. package/esm2020/lib/af-connect-components.service.mjs +0 -14
  202. package/esm2020/lib/af-connect-content/af-connect-content.component.mjs +0 -14
  203. package/esm2020/lib/af-connect-datepicker/af-connect-datepicker.component.mjs +0 -11
  204. package/esm2020/lib/af-connect-error/af-connect-error.component.mjs +0 -26
  205. package/esm2020/lib/af-connect-footer/af-connect-footer.component.mjs +0 -266
  206. package/esm2020/lib/af-connect-form-group/af-connect-form-group.component.mjs +0 -11
  207. package/esm2020/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.mjs +0 -21
  208. package/esm2020/lib/af-connect-header/af-connect-header.component.mjs +0 -46
  209. package/esm2020/lib/af-connect-inline-error/af-connect-inline-error.component.mjs +0 -29
  210. package/esm2020/lib/af-connect-input/af-connect-input.component.mjs +0 -92
  211. package/esm2020/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.mjs +0 -18
  212. package/esm2020/lib/af-connect-modal/af-connect-modal.component.mjs +0 -101
  213. package/esm2020/lib/af-connect-no-content/af-connect-no-content.component.mjs +0 -26
  214. package/esm2020/lib/af-connect-notification/af-connect-notification.component.mjs +0 -15
  215. package/esm2020/lib/af-connect-products-carousel/af-connect-products-carousel.component.mjs +0 -47
  216. package/esm2020/lib/af-connect-products-carousel/defaultConfig.mjs +0 -27
  217. package/esm2020/lib/af-connect-products-carousel/image-card/image-card.component.mjs +0 -27
  218. package/esm2020/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.mjs +0 -69
  219. package/esm2020/lib/af-connect-progress-bar/af-connect-progress-bar.component.mjs +0 -45
  220. package/esm2020/lib/af-connect-radio-button/af-connect-radio-button.component.mjs +0 -99
  221. package/esm2020/lib/af-connect-radio-group/af-connect-radio-group.component.mjs +0 -114
  222. package/esm2020/lib/af-connect-section/af-connect-section.component.mjs +0 -14
  223. package/esm2020/lib/af-connect-section-header/af-connect-section-header.component.mjs +0 -35
  224. package/esm2020/lib/af-connect-select/af-connect-select.component.mjs +0 -11
  225. package/esm2020/lib/af-connect-svg-button/af-connect-svg-button.component.mjs +0 -27
  226. package/esm2020/lib/af-connect-tab/af-connect-tab.component.mjs +0 -20
  227. package/esm2020/lib/af-connect-table/af-connect-table.component.mjs +0 -11
  228. package/esm2020/lib/af-connect-tabs/af-connect-tabs.component.mjs +0 -87
  229. package/esm2020/lib/af-connect-toaster-message/af-connect-toaster-message.component.mjs +0 -33
  230. package/esm2020/lib/af-connect-toggle-button/af-connect-toggle-button.component.mjs +0 -133
  231. package/esm2020/lib/af-connect-tooltip/af-connect-tooltip.component.mjs +0 -48
  232. package/esm2020/lib/af-connect-tooltip/types.mjs +0 -2
  233. package/esm2020/lib/constants/animation.constants.mjs +0 -121
  234. package/esm2020/lib/constants/base.constants.mjs +0 -10
  235. package/esm2020/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.mjs +0 -23
  236. package/esm2020/lib/expandable/expandable-arrow/expandable-arrow.component.mjs +0 -54
  237. package/esm2020/lib/expandable/expandable-container/expandable-container.component.mjs +0 -29
  238. package/esm2020/lib/faq/faq/faq.component.mjs +0 -22
  239. package/esm2020/lib/faq/faq-item/faq-item.component.mjs +0 -16
  240. package/esm2020/lib/faq/faqItem.mjs +0 -2
  241. package/esm2020/lib/faq/image-fallback/image-fallback.component.mjs +0 -74
  242. package/esm2020/lib/models/notification-response.model.mjs +0 -2
  243. package/esm2020/lib/models/radio.model.mjs +0 -2
  244. package/esm2020/lib/services/breakpoint.service.mjs +0 -16
  245. package/esm2020/lib/utilities/number.util.mjs +0 -4
  246. package/esm2020/public-api.mjs +0 -43
  247. package/esm2020/shared/pipes/get-initials.mjs +0 -20
  248. package/fesm2015/af-connect-components.mjs +0 -2154
  249. package/fesm2015/af-connect-components.mjs.map +0 -1
  250. package/fesm2020/af-connect-components.mjs +0 -2146
  251. package/fesm2020/af-connect-components.mjs.map +0 -1
  252. package/index.d.ts +0 -5
  253. package/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.d.ts +0 -10
  254. package/lib/af-connect-button/af-connect-button.component.d.ts +0 -21
  255. package/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.d.ts +0 -14
  256. package/lib/af-connect-card/af-connect-card.component.d.ts +0 -8
  257. package/lib/af-connect-chart/af-connect-chart.component.d.ts +0 -5
  258. package/lib/af-connect-chip/af-connect-chip.component.d.ts +0 -12
  259. package/lib/af-connect-components.component.d.ts +0 -5
  260. package/lib/af-connect-components.module.d.ts +0 -52
  261. package/lib/af-connect-components.service.d.ts +0 -6
  262. package/lib/af-connect-content/af-connect-content.component.d.ts +0 -8
  263. package/lib/af-connect-datepicker/af-connect-datepicker.component.d.ts +0 -5
  264. package/lib/af-connect-error/af-connect-error.component.d.ts +0 -12
  265. package/lib/af-connect-footer/af-connect-footer.component.d.ts +0 -152
  266. package/lib/af-connect-form-group/af-connect-form-group.component.d.ts +0 -5
  267. package/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.d.ts +0 -10
  268. package/lib/af-connect-header/af-connect-header.component.d.ts +0 -18
  269. package/lib/af-connect-inline-error/af-connect-inline-error.component.d.ts +0 -13
  270. package/lib/af-connect-input/af-connect-input.component.d.ts +0 -36
  271. package/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.d.ts +0 -8
  272. package/lib/af-connect-modal/af-connect-modal.component.d.ts +0 -46
  273. package/lib/af-connect-no-content/af-connect-no-content.component.d.ts +0 -12
  274. package/lib/af-connect-notification/af-connect-notification.component.d.ts +0 -8
  275. package/lib/af-connect-products-carousel/af-connect-products-carousel.component.d.ts +0 -32
  276. package/lib/af-connect-products-carousel/defaultConfig.d.ts +0 -6
  277. package/lib/af-connect-products-carousel/image-card/image-card.component.d.ts +0 -13
  278. package/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.d.ts +0 -26
  279. package/lib/af-connect-progress-bar/af-connect-progress-bar.component.d.ts +0 -18
  280. package/lib/af-connect-radio-button/af-connect-radio-button.component.d.ts +0 -34
  281. package/lib/af-connect-radio-group/af-connect-radio-group.component.d.ts +0 -35
  282. package/lib/af-connect-section/af-connect-section.component.d.ts +0 -8
  283. package/lib/af-connect-section-header/af-connect-section-header.component.d.ts +0 -15
  284. package/lib/af-connect-select/af-connect-select.component.d.ts +0 -5
  285. package/lib/af-connect-svg-button/af-connect-svg-button.component.d.ts +0 -14
  286. package/lib/af-connect-tab/af-connect-tab.component.d.ts +0 -9
  287. package/lib/af-connect-table/af-connect-table.component.d.ts +0 -5
  288. package/lib/af-connect-tabs/af-connect-tabs.component.d.ts +0 -25
  289. package/lib/af-connect-toaster-message/af-connect-toaster-message.component.d.ts +0 -13
  290. package/lib/af-connect-toggle-button/af-connect-toggle-button.component.d.ts +0 -37
  291. package/lib/af-connect-tooltip/af-connect-tooltip.component.d.ts +0 -16
  292. package/lib/af-connect-tooltip/types.d.ts +0 -1
  293. package/lib/constants/animation.constants.d.ts +0 -13
  294. package/lib/constants/base.constants.d.ts +0 -10
  295. package/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.d.ts +0 -8
  296. package/lib/expandable/expandable-arrow/expandable-arrow.component.d.ts +0 -21
  297. package/lib/expandable/expandable-container/expandable-container.component.d.ts +0 -8
  298. package/lib/faq/faq/faq.component.d.ts +0 -9
  299. package/lib/faq/faq-item/faq-item.component.d.ts +0 -7
  300. package/lib/faq/image-fallback/image-fallback.component.d.ts +0 -18
  301. package/lib/models/radio.model.d.ts +0 -3
  302. package/lib/services/breakpoint.service.d.ts +0 -9
  303. package/lib/utilities/number.util.d.ts +0 -1
  304. package/shared/pipes/get-initials.d.ts +0 -10
  305. /package/{lib/faq/faqItem.d.ts → projects/af-connect-components/src/lib/faq/faqItem.ts} +0 -0
@@ -0,0 +1,58 @@
1
+ import { Component, ElementRef, Input } from '@angular/core';
2
+ import { defaultConfig } from './defaultConfig';
3
+
4
+ interface CarouselConfig {
5
+ imageSrc: string;
6
+ title?: string;
7
+ content?: string;
8
+ readMore: string;
9
+ }
10
+
11
+ @Component({
12
+ selector: 'lib-af-connect-products-carousel',
13
+ templateUrl: './af-connect-products-carousel.component.html',
14
+ styleUrls: ['./af-connect-products-carousel.component.scss']
15
+ })
16
+ export class AfConnectProductsCarouselComponent {
17
+ @Input() config: CarouselConfig[];
18
+ defaultConfig = defaultConfig;
19
+
20
+ private slider: HTMLElement;
21
+ private isDown = false;
22
+ private startX: number;
23
+ private scrollLeft: number;
24
+
25
+ constructor(private elementRef: ElementRef) { }
26
+
27
+ ngOnInit(): void { }
28
+
29
+ ngAfterViewInit() {
30
+ this.slider = this.elementRef.nativeElement.querySelector('.holder');
31
+ }
32
+
33
+ mousedown(e: MouseEvent): void {
34
+ this.isDown = true;
35
+ this.slider.classList.add('active');
36
+ this.startX = e.pageX - this.slider.offsetLeft;
37
+ this.scrollLeft = this.slider.scrollLeft;
38
+ }
39
+
40
+ mouseleave(): void {
41
+ this.isDown = false;
42
+ this.slider.classList.remove('active');
43
+ }
44
+
45
+ mouseup(): void {
46
+ this.isDown = false;
47
+ this.slider.classList.remove('active');
48
+ }
49
+
50
+ mousemove(e: MouseEvent): void {
51
+ if(!this.isDown) return;
52
+ e.preventDefault();
53
+
54
+ const offset = e.pageX - this.slider.offsetLeft;
55
+ const walk = (offset - this.startX) * 2;
56
+ this.slider.scrollLeft = this.scrollLeft - walk;
57
+ }
58
+ }
@@ -0,0 +1,26 @@
1
+ export const defaultConfig = [
2
+ {
3
+ imageSrc: 'https://stg.alexforbes.com/content/dam/afbr/common/images-website/products/af-connect/mmm-carousel.jpg',
4
+ title: 'My Money Matters',
5
+ content: 'Get the most out of your money. Explore ways to make your money and savings work for you with our tools.',
6
+ readMore: 'https://mymoneymatters.alexforbes.com/'
7
+ },
8
+ {
9
+ imageSrc: 'https://stg.alexforbes.com/content/dam/afbr/common/images-website/products/af-connect/AF-Rewards-carousel.jpg',
10
+ title: 'My Rewards',
11
+ content: 'Exclusive savings from big brands.',
12
+ readMore: 'https://rewards.alexforbes.com/landingpage'
13
+ },
14
+ {
15
+ imageSrc: 'https://stg.alexforbes.com/content/dam/afbr/common/images-website/products/af-connect/Unit-trusts-carousel.jpg',
16
+ title: 'Unit Trusts',
17
+ content: 'Invest from as little as R500.00 a month to up to R30 000.00 up front toward a personal goal.',
18
+ readMore: 'https://www.alexforbes.com/za/en/individual/investing-for-a-goal.html'
19
+ },
20
+ {
21
+ imageSrc: 'https://stg.alexforbes.com/content/dam/afbr/common/images-website/products/af-connect/AF-Plus-carousel.jpg',
22
+ title: 'AF+',
23
+ content: 'Guided by expert advisers and fulfilled by trusted partners, making it easy to solve life’s financial challenges with confidence.',
24
+ readMore: 'https://plus.alexforbes.com/'
25
+ },
26
+ ];
@@ -0,0 +1,6 @@
1
+ <img [src]="src" />
2
+ <div class="info-container">
3
+ <span class="info-container__title">{{ title }}</span>
4
+ <span class="info-container__content">{{ content }}</span>
5
+ </div>
6
+ <button class="button-read-more" (click)="openReadMore()">Read more</button>
@@ -0,0 +1,96 @@
1
+ @import '../../../styles/breakpoints.scss';
2
+
3
+ :host {
4
+ width: 325px;
5
+ border-radius: 5px;
6
+ box-shadow: 5px 5px 10px #00000029;
7
+ background: #FAFBFC;
8
+
9
+ @include media(mobileBreakPointTreshold) {
10
+ width: 295px;
11
+ display: flex;
12
+ position: relative;
13
+ align-items: center;
14
+ border: 1px solid #124E57;
15
+ box-shadow: 0 -5px 10px #455b6314;
16
+ }
17
+ }
18
+
19
+ .info-container {
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: flex-start;
23
+ padding: 1rem;
24
+ gap: 1rem;
25
+ height: 8rem;
26
+ border-radius: 5px;
27
+
28
+ &__title {
29
+ font-size: 16px;
30
+ font-family: 'Hero New Bold';
31
+ color: #124E57;
32
+
33
+ @include media(mobileBreakPointTreshold) {
34
+ font-size: 14px;
35
+ padding-top: 1rem;
36
+ }
37
+ }
38
+
39
+ &__content {
40
+ font-size: 12px;
41
+ line-height: 20px;
42
+ color: #78849E;
43
+
44
+ @include media(mobileBreakPointTreshold) {
45
+ font-size: 11px;
46
+ line-height: 1rem;
47
+ }
48
+ }
49
+
50
+ @include media(mobileBreakPointTreshold) {
51
+ gap: 5px;
52
+ padding: 0 0 0 6rem;
53
+ width: 20rem;
54
+ height: 9rem;
55
+ place-content: start;
56
+ }
57
+ }
58
+
59
+ img {
60
+ width: 325px;
61
+ height: 182px;
62
+ border-radius: 5px 5px 0 0;
63
+
64
+ @include media(mobileBreakPointTreshold) {
65
+ width: 120px;
66
+ height: 120px;
67
+ position: absolute;
68
+ object-fit: cover;
69
+ left: -2rem;
70
+ border-radius: 5px;
71
+ }
72
+ }
73
+
74
+ .button-read-more {
75
+ background: none;
76
+ color: inherit;
77
+ border: none;
78
+ margin: 0;
79
+ padding: 0;
80
+ cursor: pointer;
81
+ outline: inherit;
82
+ font-size: 12px;
83
+ color: #FF521C;
84
+ font-size: 14px;
85
+ font-family: 'Hero New Bold';
86
+ position: relative;
87
+ bottom: 1rem;
88
+ left: 1rem;
89
+
90
+ @include media(mobileBreakPointTreshold) {
91
+ position: absolute;
92
+ bottom: 1rem;
93
+ left: 6rem;
94
+ font-size: 11px;
95
+ }
96
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { ImageCardComponent } from './image-card.component';
4
+
5
+ describe('ImageCardComponent', () => {
6
+ let component: ImageCardComponent;
7
+ let fixture: ComponentFixture<ImageCardComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ ImageCardComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(ImageCardComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,21 @@
1
+ import { Component, Input, OnInit } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'af-connect-image-card',
5
+ templateUrl: './image-card.component.html',
6
+ styleUrls: ['./image-card.component.scss']
7
+ })
8
+ export class ImageCardComponent implements OnInit {
9
+ @Input() src: string;
10
+ @Input() title: string | undefined = '';
11
+ @Input() content: string | undefined = '';
12
+ @Input() readMoreLink: string;
13
+
14
+ constructor() { }
15
+
16
+ ngOnInit(): void { }
17
+
18
+ openReadMore() {
19
+ window.open(this.readMoreLink, '_blank');
20
+ }
21
+ }
@@ -0,0 +1,94 @@
1
+ <span [class]="['logo-content', userType === USER_TYPE.Retail ? 'blue' : 'orange']">
2
+ <ng-container *ngTemplateOutlet="userType === USER_TYPE.Retail ? retail : institutional"></ng-container>
3
+ </span>
4
+
5
+ <ng-container *ngIf="showMenu">
6
+ <div class="dropdown-content">
7
+ <div (click)="callMeBack.emit()">
8
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
9
+ <g id="call" transform="translate(0 0)">
10
+ <path id="phone-1" d="M19.976,17.549l-2.588-2.156a.694.694,0,0,0-.7-.037l-1.438.958a.91.91,0,0,1-.509.153,5.983,5.983,0,0,1-1.28-.18,7.724,7.724,0,0,1-5.754-5.752,5.977,5.977,0,0,1-.18-1.28.909.909,0,0,1,.153-.509l.959-1.437a.681.681,0,0,0-.037-.7L6.444,4.022a.427.427,0,0,0-.73,0L4.285,5.77a2.549,2.549,0,0,0-.4,2.035.909.909,0,0,1,.027.105,4.671,4.671,0,0,0,.142.5,11.685,11.685,0,0,0,.654,1.563,20.775,20.775,0,0,0,3.973,5.332A20.76,20.76,0,0,0,14.02,19.28a11.693,11.693,0,0,0,1.563.654,4.823,4.823,0,0,0,.5.142.909.909,0,0,1,.126.033,2.492,2.492,0,0,0,2.014-.4l1.747-1.429A.426.426,0,0,0,19.976,17.549Zm-4.3-3.706A2.5,2.5,0,0,1,18.552,14l2.589,2.156a2.235,2.235,0,0,1-.015,3.534l-1.747,1.428a4.29,4.29,0,0,1-3.695.735q-.338-.077-.667-.188a13.5,13.5,0,0,1-1.809-.755A22.583,22.583,0,0,1,7.4,16.594a22.579,22.579,0,0,1-4.314-5.806,13.488,13.488,0,0,1-.755-1.809A6.833,6.833,0,0,1,2.14,8.3a4.343,4.343,0,0,1,.738-3.683L4.307,2.873a2.238,2.238,0,0,1,3.535-.015L10,5.445a2.485,2.485,0,0,1,.153,2.871L9.366,9.494a5.374,5.374,0,0,0,.11.62,5.948,5.948,0,0,0,.922,2.052,5.868,5.868,0,0,0,1.43,1.43,5.952,5.952,0,0,0,2.053.921,5.277,5.277,0,0,0,.62.11l1.179-.785Z" transform="translate(-2 -2)" fill="#ef4f1f"/>
11
+ </g>
12
+ </svg>
13
+ <span>Call me back</span>
14
+ </div>
15
+ <div (click)="contactAdviser.emit()">
16
+ <svg xmlns="http://www.w3.org/2000/svg" width="21.5" height="17.864" viewBox="0 0 21.5 17.864">
17
+ <g id="Icons_UI_Contacts_Colour_" data-name="Icons / UI / Contacts / Colour " transform="translate(0.75 0.75)">
18
+ <rect id="Rectangle" width="20" height="16.364" rx="3" fill="none" stroke="#ef4f1f" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.5"/>
19
+ <path id="Line_3" data-name="Line 3" d="M.55.563l8.591,7.67" transform="translate(0.859 0.858)" fill="none" stroke="#ef4f1f" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.5"/>
20
+ <path id="Line_3-2" data-name="Line 3" d="M-1.409.563-10,8.233" transform="translate(20 0.858)" fill="none" stroke="#ef4f1f" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.5"/>
21
+ </g>
22
+ </svg>
23
+ <span>Contact adviser</span>
24
+ </div>
25
+ <div *ngIf="hasSwitchIndicator" class="user-type-switch user-type-switch">
26
+ <div class="user-type-switch__btn-container">
27
+ <lib-af-connect-radio-group label="View as" variant="checkbox" direction="column" (valueChange)="select($event)">
28
+ <div
29
+ class="user-type-switch__option boxShadow"
30
+ (click)="select(USER_TYPE.Retail)"
31
+ >
32
+ <div class="logo blue">
33
+ <ng-container *ngTemplateOutlet="retail"></ng-container>
34
+ </div>
35
+ <lib-af-connect-radio-button ngClass="larger" [value]="USER_TYPE.Retail" [checked]="userType === USER_TYPE.Retail" itemOrder="right-to-left">
36
+ <span>Individual/Retail</span>
37
+ </lib-af-connect-radio-button>
38
+ </div>
39
+ <div
40
+ class="user-type-switch__option boxShadow"
41
+ (click)="select(USER_TYPE.Institutional)"
42
+ >
43
+ <div class="logo orange">
44
+ <ng-container *ngTemplateOutlet="institutional"></ng-container>
45
+ </div>
46
+ <lib-af-connect-radio-button ngClass="larger" [value]="USER_TYPE.Institutional" [checked]="userType === USER_TYPE.Institutional" itemOrder="right-to-left">
47
+ <span>Employee benefits</span>
48
+ </lib-af-connect-radio-button>
49
+ </div>
50
+ </lib-af-connect-radio-group>
51
+ </div>
52
+ </div>
53
+ <div (click)="resetPassword.emit()">
54
+ <svg xmlns="http://www.w3.org/2000/svg" width="22" height="20.004" viewBox="0 0 22 20.004">
55
+ <path id="Shape" d="M12.522,20A9.882,9.882,0,0,1,2.484,10H.544a.552.552,0,0,1-.379-.944l3.024-3.1a.528.528,0,0,1,.77,0l3.024,3.1a.557.557,0,0,1-.39.944H4.652a7.679,7.679,0,0,0,7.7,7.778,7.782,7.782,0,0,0,7.48-7.667A7.692,7.692,0,0,0,12.24,2.222,7.481,7.481,0,0,0,8.511,3.233a1.035,1.035,0,0,1-1.279-.2,1.125,1.125,0,0,1,.217-1.744A9.617,9.617,0,0,1,12.24,0,9.9,9.9,0,0,1,22,10.289,10,10,0,0,1,12.522,20Z" transform="translate(22 20.004) rotate(180)" fill="#f15a22"/>
56
+ </svg>
57
+ <span>Reset password</span>
58
+ </div>
59
+ <div (click)="logout.emit()">
60
+ <svg id="icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
61
+ <rect id="bg" width="20" height="20" fill="none"/>
62
+ <path id="path" d="M9.21,9.273l2.758-2.758A.727.727,0,1,0,10.94,5.486l-4,4a.727.727,0,0,0,0,1.029l4,4a.727.727,0,1,0,1.029-1.029L9.21,10.727h8.066a.727.727,0,0,0,0-1.455Zm1.517-5.818a.727.727,0,1,0,0-1.455H3.821A1.82,1.82,0,0,0,2,3.821V16.179A1.821,1.821,0,0,0,3.821,18h6.906a.727.727,0,1,0,0-1.455H3.821a.366.366,0,0,1-.367-.366V3.821a.366.366,0,0,1,.367-.366Z" transform="translate(-0.099)" fill="#7f8991"/>
63
+ </svg>
64
+ <span>Log Out</span>
65
+ </div>
66
+ </div>
67
+ </ng-container>
68
+
69
+ <ng-template #retail>
70
+ <svg id="Group" xmlns="http://www.w3.org/2000/svg" width="12.837" height="13.693" viewBox="0 0 12.837 13.693">
71
+ <path id="Oval" d="M2.785-1A3.785,3.785,0,1,1-1,2.785,3.79,3.79,0,0,1,2.785-1Zm0,6.583a2.8,2.8,0,1,0-2.8-2.8A2.8,2.8,0,0,0,2.785,5.583Z" transform="translate(3.633 1)" fill="#fff"/>
72
+ <path id="Rectangle" d="M7.393,4.135A.494.494,0,0,1,6.9,3.641,3.712,3.712,0,0,0,3.14-.013H-.506A.494.494,0,0,1-1-.506.494.494,0,0,1-.506-1H3.14A4.7,4.7,0,0,1,7.887,3.641.494.494,0,0,1,7.393,4.135Z" transform="translate(4.95 9.558)" fill="#fff"/>
73
+ <path id="Rectangle-2" data-name="Rectangle" d="M-12.506,4.135A.494.494,0,0,1-13,3.641,4.7,4.7,0,0,1-8.253-1h3.646a.494.494,0,0,1,.494.494.494.494,0,0,1-.494.494H-8.253a3.712,3.712,0,0,0-3.76,3.654A.494.494,0,0,1-12.506,4.135Z" transform="translate(13 9.558)" fill="#fff"/>
74
+ </svg>
75
+ </ng-template>
76
+
77
+ <ng-template #institutional>
78
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15.384" height="12.488" viewBox="0 0 15.384 12.488">
79
+ <defs>
80
+ <clipPath id="clip-path">
81
+ <rect id="Rectangle_1424" data-name="Rectangle 1424" width="15.383" height="12.489" transform="translate(0 0)" fill="none" stroke="#707070" stroke-width="1"/>
82
+ </clipPath>
83
+ </defs>
84
+ <g id="Group_10298" data-name="Group 10298" transform="translate(-0.952 -0.773)">
85
+ <g id="Group_10297" data-name="Group 10297" transform="translate(0.953 0.773)" clip-path="url(#clip-path)">
86
+ <path id="Path_6080" data-name="Path 6080" d="M29.386,3.03a.346.346,0,0,1-.346-.346V1.32a.629.629,0,0,0-.628-.629H23.274a.629.629,0,0,0-.628.629V2.684a.346.346,0,1,1-.693,0V1.32A1.323,1.323,0,0,1,23.274,0h5.137A1.323,1.323,0,0,1,29.732,1.32V2.684A.346.346,0,0,1,29.386,3.03Z" transform="translate(-18.151 0.001)" fill="#fff"/>
87
+ <path id="Rectangle_1423" data-name="Rectangle 1423" d="M-.933-2h13.25A1.068,1.068,0,0,1,13.384-.933V7.084a1.068,1.068,0,0,1-1.067,1.067H-.933A1.068,1.068,0,0,1-2,7.084V-.933A1.068,1.068,0,0,1-.933-2Zm13.25,9.458a.374.374,0,0,0,.374-.374V-.933a.374.374,0,0,0-.374-.374H-.933a.374.374,0,0,0-.374.374V7.084a.374.374,0,0,0,.374.374Z" transform="translate(2 4.338)" fill="#fff"/>
88
+ <path id="Line_324" data-name="Line 324" d="M12.712-1.307H-1.654A.346.346,0,0,1-2-1.654.346.346,0,0,1-1.654-2H12.712a.346.346,0,0,1,.346.346A.346.346,0,0,1,12.712-1.307Z" transform="translate(2.037 8.087)" fill="#fff"/>
89
+ <path id="Line_325" data-name="Line 325" d="M-1.654.223A.346.346,0,0,1-2-.124v-1.53A.346.346,0,0,1-1.654-2a.346.346,0,0,1,.346.346v1.53A.346.346,0,0,1-1.654.223Z" transform="translate(12.888 7.318)" fill="#fff"/>
90
+ <path id="Line_326" data-name="Line 326" d="M-1.654.223A.346.346,0,0,1-2-.124v-1.53A.346.346,0,0,1-1.654-2a.346.346,0,0,1,.346.346v1.53A.346.346,0,0,1-1.654.223Z" transform="translate(5.802 7.318)" fill="#fff"/>
91
+ </g>
92
+ </g>
93
+ </svg>
94
+ </ng-template>
@@ -0,0 +1,176 @@
1
+ .logo-cicrcle {
2
+ display: flex;
3
+ place-items: center;
4
+ place-content: center;
5
+ border-radius: 50%;
6
+ }
7
+
8
+ :host {
9
+ height: 3rem;
10
+ filter: drop-shadow(3px 3px 10px #00000014);
11
+ z-index: 999;
12
+ box-shadow: 3px 3px 10px #00000014;
13
+ border: 3px solid #FFFFFF;
14
+ cursor: pointer;
15
+
16
+ @extend .logo-cicrcle;
17
+
18
+ @media (max-width: 768px) {
19
+ width: 30px;
20
+ height: 30px;
21
+ }
22
+ }
23
+
24
+ .logo-content {
25
+ width: 3rem;
26
+ height: 3rem;
27
+ color: white;
28
+ font-family: 'Hero New ExtraBold';
29
+ font-size: 2rem;
30
+
31
+ @extend .logo-cicrcle;
32
+
33
+ >svg {
34
+ width: 1.5rem;
35
+ height: 1.5rem;
36
+ }
37
+
38
+ @media (max-width: 768px) {
39
+ width: 30px;
40
+ height: 30px;
41
+ font-size: 18px;
42
+
43
+ >svg {
44
+ width: 1rem;
45
+ height: 1rem;
46
+ }
47
+ }
48
+ }
49
+
50
+ .dropdown-content {
51
+ position: absolute;
52
+ width: auto;
53
+ min-width: 12rem;
54
+ height: fit-content;
55
+ right: 0;
56
+ top: 3.5rem;
57
+ font-size: 12px;
58
+ background: white;
59
+ display: flex;
60
+ flex-direction: column;
61
+ align-items: center;
62
+
63
+ >div:not(.user-type-switch):nth-child(-n+2) {
64
+ display: none;
65
+ }
66
+
67
+ div:nth-child(4) {
68
+ color: var(--red-test);
69
+ }
70
+
71
+ @media (max-width: 768px) {
72
+ top: 47px;
73
+
74
+ >div:not(.user-type-switch):nth-child(-n+1) {
75
+ /**
76
+ TODO: Change to display: flex
77
+ Call me back and Contact adviser button are out of scope for Release one
78
+ */
79
+ display: none;
80
+ }
81
+
82
+ div:nth-child(2) {
83
+ display: flex;
84
+ }
85
+ }
86
+
87
+ & div {
88
+ display: flex;
89
+ align-items: center;
90
+ width: 100%;
91
+ height: 3rem;
92
+ gap: 1rem;
93
+ border-bottom: 1px solid #78849E14;
94
+
95
+ & svg {
96
+ width: 20px;
97
+ height: 20px;
98
+ padding-left: 1rem;
99
+ }
100
+ }
101
+
102
+ >div:not(.user-type-switch):hover {
103
+ background-color: rgba(0,0,0,.04);
104
+ }
105
+
106
+ .user-type-switch {
107
+ width: auto;
108
+ height: 100%;
109
+ cursor: default;
110
+ border-bottom: none;
111
+
112
+ &__btn-container {
113
+ display: block !important;
114
+ width: 241px;
115
+ height: 166px;
116
+ background: #FAFBFC;
117
+ border: 1px solid #F3F3F3;
118
+ border-radius: 5pt;
119
+ margin: 1rem;
120
+ }
121
+
122
+ &__option {
123
+ width: 100%;
124
+ height: 42px;
125
+ border-bottom: none;
126
+ gap: 0.3rem;
127
+ padding: 0 0.75rem;
128
+ background-color: #FFFFFF;
129
+ box-sizing: border-box;
130
+ border-radius: 3rem;
131
+ cursor: pointer;
132
+
133
+ >.logo {
134
+ @extend .logo-cicrcle;
135
+
136
+ height: 23px;
137
+ width: 27px;
138
+ flex: 0 1 auto;
139
+ border: 1px solid #FFFFFF;
140
+ box-shadow: 1px 3px 10px #00000014;
141
+
142
+ >svg {
143
+ width: auto;
144
+ height: auto;
145
+ padding: 0;
146
+ }
147
+
148
+ &__img {
149
+ width: 22px;
150
+ height: 0.9rem;
151
+ }
152
+ }
153
+ }
154
+ }
155
+
156
+ lib-af-connect-radio-group {
157
+ gap: 0.75rem;
158
+ padding: 1rem;
159
+ }
160
+
161
+ lib-af-connect-radio-button {
162
+ width: 100%;
163
+ }
164
+ }
165
+
166
+ .blue {
167
+ background: #2CC1DA;
168
+ }
169
+
170
+ .orange {
171
+ background: #F69521;
172
+ }
173
+
174
+ .boxShadow {
175
+ box-shadow: 3px 3px 6px #00000008;
176
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectProfileDropdown } from './af-connect-profile-dropdown.component';
4
+
5
+ describe('AfConnectHeaderComponent', () => {
6
+ let component: AfConnectProfileDropdown;
7
+ let fixture: ComponentFixture<AfConnectProfileDropdown>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectProfileDropdown ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectProfileDropdown);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,48 @@
1
+ import { Component, HostListener, Output, EventEmitter, ElementRef, Input } from '@angular/core';
2
+
3
+ export enum UserType {
4
+ Retail = 'Retail',
5
+ Institutional = 'Institutional',
6
+ Hybrid = 'Hybrid'
7
+ }
8
+
9
+ @Component({
10
+ selector: 'lib-af-connect-profile-dropdown',
11
+ templateUrl: './af-connect-profile-dropdown.component.html',
12
+ styleUrls: ['./af-connect-profile-dropdown.component.scss']
13
+ })
14
+ export class AfConnectProfileDropdown {
15
+ @Input() username = '';
16
+ @Input() userType: UserType.Institutional | UserType.Retail;
17
+ @Input() hasSwitchIndicator: boolean;
18
+ @Output() callMeBack = new EventEmitter<void>();
19
+ @Output() contactAdviser = new EventEmitter<void>();
20
+ @Output() resetPassword = new EventEmitter<void>();
21
+ @Output() logout = new EventEmitter<void>();
22
+ @Output() switchUserType = new EventEmitter<UserType>();
23
+
24
+ showMenu = false;
25
+ USER_TYPE = UserType;
26
+
27
+ constructor(private elementRef: ElementRef) {}
28
+
29
+ @HostListener('click', ['$event']) show(e: any) {
30
+ this.showMenu = !this.showMenu;
31
+ }
32
+
33
+ @HostListener('document:click', ['$event']) click(event: any) {
34
+ const iconClick = this.elementRef.nativeElement.contains(event.target);
35
+ const clickedOnUserTypeSwitch = event.target.closest('.user-type-switch') !== null;
36
+ const clickedOnUserTypeSwitchOption = event.target.closest('.user-type-switch__option') !== null;
37
+
38
+ this.showMenu = iconClick ? this.showMenu : (clickedOnUserTypeSwitch && !clickedOnUserTypeSwitchOption);
39
+ }
40
+
41
+ select(value: UserType.Institutional | UserType.Retail): void {
42
+ if (this.userType !== value) {
43
+ this.userType = value;
44
+ this.showMenu = false;
45
+ this.switchUserType.emit(value);
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,11 @@
1
+ <div [ngClass]="[secondaryColor]" class="progress-bar-container">
2
+ <div [ngClass]="['progress-bar', primaryColor]" [style]="{ width: progressCounter + '%' }">
3
+ <div class="text-container">
4
+ <div>
5
+ <ng-content></ng-content>
6
+ </div>
7
+ <span *ngIf="false"> {{ progress.toFixed(0) }}% </span>
8
+ </div>
9
+ </div>
10
+ </div>
11
+
@@ -0,0 +1,48 @@
1
+ $height: 2rem;
2
+
3
+ :host {
4
+ display: block;
5
+
6
+ max-width: 100%;
7
+ }
8
+
9
+ .progress-bar-base {
10
+ border-radius: 0.5rem;
11
+ height: $height;
12
+ }
13
+
14
+ .progress-bar-container {
15
+ @extend .progress-bar-base;
16
+ background-color: var(--dark-grey-color-low-opacity);
17
+
18
+ &.orange {
19
+ background-color: var(--primary-catalyst-yellow-color);
20
+ }
21
+
22
+ &.transparent {
23
+ background-color: transparent;
24
+ }
25
+ }
26
+
27
+ .progress-bar {
28
+ @extend .progress-bar-base;
29
+ color: var(--main-white-color);
30
+ background-color: var(--primary-balanced-teal-color);
31
+
32
+ &.primary-orange {
33
+ background-color: var(--primary-catalyst-yellow-color);
34
+ }
35
+ }
36
+
37
+ .text-container {
38
+ min-width: 120px;
39
+ $padding: 0.75rem;
40
+ padding-left: $padding;
41
+ padding-right: $padding;
42
+ font-weight: 500;
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: space-between;
46
+ font-size: 14px;
47
+ min-height: $height;
48
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectProgressBarComponent } from './af-connect-progress-bar.component';
4
+
5
+ describe('AfConnectProgressBarComponent', () => {
6
+ let component: AfConnectProgressBarComponent;
7
+ let fixture: ComponentFixture<AfConnectProgressBarComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectProgressBarComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectProgressBarComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });