af-connect-components 0.0.25 → 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 -269
  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 -2157
  249. package/fesm2015/af-connect-components.mjs.map +0 -1
  250. package/fesm2020/af-connect-components.mjs +0 -2149
  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 -153
  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,106 @@
1
+
2
+ <ng-container *ngIf="!isFooterContentHidden">
3
+ <div *ngIf="breakpointService.isMobile$ | async" class="footer-container" [ngStyle]="{backgroundColor}">
4
+ <div *ngFor="let section of config?.sections?.length ? config?.sections : defaultConfig.sections" class="sections-container">
5
+ <h2 class="section-title">
6
+ {{section.title}}
7
+ </h2>
8
+ <ng-container *ngFor="let link of section.sectionItems">
9
+ <a class="section-link" [href]="link.link" target="_blank">{{link.title}}</a>
10
+ </ng-container>
11
+ </div>
12
+ <div *ngFor="let address of config?.address?.length ? config?.address : defaultConfig.address" class="sections-container address-container">
13
+ <h2 class="section-title address-title">
14
+ {{address.title}}
15
+ </h2>
16
+ <ng-container *ngFor="let link of address.sectionItems">
17
+ <span class="section-link address-link">{{link.title}}</span>
18
+ </ng-container>
19
+ </div>
20
+ </div>
21
+
22
+ <div *ngIf="!(breakpointService.isMobile$ | async)" class="footer-container" [ngStyle]="{backgroundColor}">
23
+ <div *ngFor="let section of config?.sections?.length ? config?.sections : defaultConfig.sections" class="sections-container">
24
+ <afc-expandable-wrapper>
25
+ <div triggerable class="title-container">
26
+ <h2 class="section-title">
27
+ {{section.title}}
28
+ </h2>
29
+ <afc-expandable-arrow color="rgba(255,255,255, 0.7)"></afc-expandable-arrow>
30
+ </div>
31
+ <afc-expandable-container>
32
+ <div class="sections-container__mobile">
33
+ <ng-container *ngFor="let link of section.sectionItems">
34
+ <a class="section-link address-link" [href]="link.link" target="_blank">{{link.title}}</a>
35
+ </ng-container>
36
+ </div>
37
+ </afc-expandable-container>
38
+ </afc-expandable-wrapper>
39
+ </div>
40
+ <div *ngFor="let address of config?.address?.length ? config?.address : defaultConfig.address" [ngClass]="[address.title ? 'sections-container address-container' : '']">
41
+ <afc-expandable-wrapper *ngIf="address.title">
42
+ <div triggerable class="title-container">
43
+ <h2 class="section-title address-title">
44
+ {{address.title}}
45
+ </h2>
46
+ <afc-expandable-arrow color="rgba(255,255,255, 0.7)"></afc-expandable-arrow>
47
+ </div>
48
+ <afc-expandable-container>
49
+ <div class="sections-container__mobile">
50
+ <ng-container *ngFor="let link of address.sectionItems">
51
+ <span class="section-link">{{link.title}}</span>
52
+ </ng-container>
53
+ <span class="section-link address-link">{{getMobileAddress}}</span>
54
+ </div>
55
+ </afc-expandable-container>
56
+ </afc-expandable-wrapper>
57
+ </div>
58
+ </div>
59
+ </ng-container>
60
+
61
+ <div *ngIf="!isBottomBannerHidden" class="bottom-banner">
62
+ <div class="banner-title">
63
+ {{config?.bannerTitle ? config?.bannerTitle : defaultConfig.bannerTitle}}
64
+ <span class="title-links" (click)="openLegalTerms()">Legal terms | </span>
65
+ <span class="title-links" (click)="openPrivacyPolicy()">Privacy policy | </span>
66
+ <span class="title-links" (click)="openPaiaManual()">PAIA manual</span>
67
+ </div>
68
+
69
+ <div class="social-container">
70
+ <a *ngIf="!config?.instagram?.isHidden" class="image-container" [href]="config?.instagram?.link ? config?.instagram?.link : defaultConfig.instagram?.link" target="_blank">
71
+ <svg id="Group_888" data-name="Group 888" xmlns="http://www.w3.org/2000/svg" width="15.618" height="15.676" viewBox="0 0 15.618 15.676">
72
+ <path id="Path_8" data-name="Path 8" d="M21.327,13.4c1.039.037,2.115.037,3.154.074a5.31,5.31,0,0,1,2.6.668,3.937,3.937,0,0,1,1.892,2.746,21.051,21.051,0,0,1,.186,2.152c.037,1.558,0,3.117,0,4.675a7.553,7.553,0,0,1-.3,2.412,3.931,3.931,0,0,1-3.154,2.746,14.046,14.046,0,0,1-2.152.186c-1.559.037-3.08,0-4.638,0a7.553,7.553,0,0,1-2.412-.3,3.931,3.931,0,0,1-2.746-3.154,14.046,14.046,0,0,1-.186-2.152c-.037-1.558,0-3.117,0-4.675a7.553,7.553,0,0,1,.3-2.412,3.931,3.931,0,0,1,3.154-2.746,14.047,14.047,0,0,1,2.152-.186c.705-.037,1.41-.037,2.152-.037Zm6.42,7.681h0c-.037-.631-.037-1.225-.037-1.855a14.347,14.347,0,0,0-.111-1.781,2.653,2.653,0,0,0-2.226-2.486,9.8,9.8,0,0,0-2.078-.148c-1.336-.037-2.635-.037-3.97,0a11.414,11.414,0,0,0-1.967.148,2.616,2.616,0,0,0-2.226,1.93A5.813,5.813,0,0,0,14.945,18c-.037,1.41-.037,2.82-.037,4.23,0,.891.037,1.818.111,2.709a2.587,2.587,0,0,0,2.264,2.486,12.746,12.746,0,0,0,2.078.148c1.3.037,2.6,0,3.933,0a14.348,14.348,0,0,0,1.781-.111A2.594,2.594,0,0,0,26.6,26.87a2.848,2.848,0,0,0,1.039-2.264C27.71,23.493,27.71,22.306,27.747,21.081Z" transform="translate(-13.556 -13.4)" fill="#f1f2f5"/>
73
+ <path id="Path_9" data-name="Path 9" d="M31.715,27.708a4.008,4.008,0,1,1-3.97-4.008A3.991,3.991,0,0,1,31.715,27.708Zm-4.008,2.6a2.6,2.6,0,1,0-2.6-2.6A2.581,2.581,0,0,0,27.708,30.3Z" transform="translate(-19.936 -19.878)" fill="#f1f2f5"/>
74
+ <path id="Path_10" data-name="Path 10" d="M45.052,21.628a.951.951,0,0,1-.928.965.946.946,0,1,1,.928-.965Z" transform="translate(-32.196 -17.991)" fill="#f1f2f5"/>
75
+ </svg>
76
+ </a>
77
+ <a *ngIf="!config?.linkedIn?.isHidden" class="image-container" [href]="config?.linkedIn?.link ? config?.linkedIn?.link : defaultConfig.linkedIn?.link" target="_blank">
78
+ <svg xmlns="http://www.w3.org/2000/svg" width="15.618" height="14.902" viewBox="0 0 15.618 14.902">
79
+ <path id="Path_7" data-name="Path 7" d="M32.818,24.635V30.4H29.45V25.014c0-1.347-.463-2.273-1.684-2.273a1.868,1.868,0,0,0-1.726,1.221,2.278,2.278,0,0,0-.126.8V30.4H22.546s.042-9.135,0-10.061h3.368v1.431a.041.041,0,0,1-.042.042h.042v-.042a3.363,3.363,0,0,1,3.031-1.684c2.189,0,3.873,1.473,3.873,4.546ZM19.094,15.5A1.753,1.753,0,0,0,17.2,17.226a1.716,1.716,0,0,0,1.852,1.726h.042a1.729,1.729,0,0,0,1.894-1.726A1.777,1.777,0,0,0,19.094,15.5ZM17.368,30.4h3.326V20.341H17.368Zm0,0" transform="translate(-17.2 -15.5)" fill="#f1f2f5"/>
80
+ </svg>
81
+ </a>
82
+ <a *ngIf="!config?.facebook?.isHidden" class="image-container" [href]="config?.facebook?.link ? config?.facebook?.link : defaultConfig.facebook?.link" target="_blank">
83
+ <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 7.235 15.618">
84
+ <path id="Path_13" data-name="Path 13" d="M31.967,21.909H29.785v7.809H26.531V21.909H25V19.153h1.531v-1.8A3.032,3.032,0,0,1,29.785,14.1H32.2v2.68H30.474a.679.679,0,0,0-.689.766v1.608h2.45Zm0,0" transform="translate(-25 -14.1)" fill="#f1f2f5"/>
85
+ </svg>
86
+ </a>
87
+ <a *ngIf="!config?.twitter?.isHidden" class="image-container" [href]="config?.twitter?.link ? config?.twitter?.link : defaultConfig.twitter?.link" target="_blank">
88
+ <svg xmlns="http://www.w3.org/2000/svg" width="15.966" height="15.618" viewBox="0 0 15.966 15.618">
89
+ <path id="icons8-twitterx" d="M19.846,19.618l-6.244-9.1.011.009L19.243,4H17.361L12.775,9.31,9.133,4H4.2l5.829,8.5h0L3.88,19.618H5.761l5.1-5.908,4.052,5.908ZM8.388,5.42,17.148,18.2H15.658L6.89,5.42Z" transform="translate(-3.88 -4)" fill="#f1f2f5"/>
90
+ </svg>
91
+ </a>
92
+ <a *ngIf="!config?.whatsapp?.isHidden" class="image-container" [href]="config?.whatsapp?.link ? config?.whatsapp?.link : defaultConfig.whatsapp?.link" target="_blank">
93
+ <svg xmlns="http://www.w3.org/2000/svg" width="15.666" height="15.676" viewBox="0 0 15.666 15.676">
94
+ <path id="whatsapp-svgrepo-com" d="M17.324,6.273A7.691,7.691,0,0,0,11.838,4,7.779,7.779,0,0,0,5.1,15.649L4,19.676,8.115,18.6a7.762,7.762,0,0,0,9.21-12.325ZM11.838,18.236a6.446,6.446,0,0,1-3.292-.9l-.235-.147-2.44.647.647-2.381-.157-.245a6.492,6.492,0,1,1,5.477,3.027Zm3.537-4.84c-.2-.1-1.146-.568-1.323-.627s-.314-.1-.441.1a8.822,8.822,0,0,1-.617.754c-.108.137-.225.147-.421,0a5.222,5.222,0,0,1-2.635-2.3c-.206-.343.2-.323.568-1.058a.372.372,0,0,0,0-.343c0-.1-.441-1.058-.6-1.44s-.314-.323-.441-.333H9.085a.7.7,0,0,0-.519.245,2.146,2.146,0,0,0-.647,1.656,3.742,3.742,0,0,0,.794,2.008,8.71,8.71,0,0,0,3.321,2.939,3.773,3.773,0,0,0,2.332.49,1.96,1.96,0,0,0,1.3-.921,1.587,1.587,0,0,0,.118-.921A1.368,1.368,0,0,0,15.375,13.4Z" transform="translate(-4 -4)" fill="#fff"/>
95
+ </svg>
96
+ </a>
97
+ </div>
98
+ </div>
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
@@ -0,0 +1,186 @@
1
+ @import '../../styles/breakpoints.scss';
2
+
3
+ $baseWhite: #F1F2F5;
4
+
5
+ :host {
6
+ z-index: 1000;
7
+ }
8
+
9
+ .footer-container {
10
+ font-family: Hero New SemiBold;
11
+ min-height: 200px;
12
+ position: relative;
13
+ padding: 3% 5% 2% 5.3%;
14
+ z-index: 1000;
15
+ display: grid;
16
+ grid-column-gap: 4rem;
17
+ grid-row-gap: 1.5rem;
18
+ grid-template-columns: repeat(auto-fill, minmax(190px, auto));
19
+
20
+ @include media(smallDesktopScreen, desktopScreen) {
21
+ grid-column-gap: 2rem;
22
+ }
23
+
24
+ @include media(mobileBreakPointTreshold) {
25
+ grid-column-gap: 0px;
26
+ grid-row-gap: 0px;
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ flex-direction: column;
30
+ padding: 0rem 1rem;
31
+ }
32
+ }
33
+
34
+ .sections-container {
35
+ $base-gap: 1rem;
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+ justify-content: flex-start;
39
+ flex-direction: column;
40
+ gap: 0.5rem;
41
+
42
+ @include media(mobileBreakPointTreshold) {
43
+ gap: 20px;
44
+ border-bottom: 1px solid white;
45
+ }
46
+
47
+ &__mobile {
48
+ @extend .sections-container;
49
+ @include media(mobileBreakPointTreshold) {
50
+ padding-bottom: 20px;
51
+ }
52
+ }
53
+
54
+ .section-title {
55
+ font-size: 1.25rem;
56
+ font-family: Hero New Bold;
57
+ margin: 0px;
58
+ margin-bottom: 12px;
59
+ color: $baseWhite;
60
+
61
+ @include media(mobileBreakPointTreshold) {
62
+ margin: 0px;
63
+ font-size: 1.125rem;
64
+ }
65
+ }
66
+ }
67
+
68
+ .sections-container:last-of-type {
69
+ border-bottom: none;
70
+ }
71
+
72
+ .sections-container:nth-last-of-type(2) {
73
+ border-bottom: none;
74
+ }
75
+
76
+ .section-link {
77
+ font-family: Hero New;
78
+ color: #FFFFFF;
79
+ text-decoration: none;
80
+ opacity: 70%;
81
+
82
+ &.address-link {
83
+ cursor: initial;
84
+ }
85
+
86
+ @include media(mobileBreakPointTreshold) {
87
+ font-size: 0.875rem;
88
+ }
89
+
90
+ }
91
+
92
+ @media (hover: hover) {
93
+ .section-link:hover {
94
+ opacity: 100%;
95
+ }
96
+ }
97
+
98
+ .bottom-banner {
99
+ color: $baseWhite;
100
+ background: #124E57;
101
+ padding: 2% 5%;
102
+ display: flex;
103
+ justify-content: space-between;
104
+ align-items: center;
105
+ max-height: 120px;
106
+ position: relative;
107
+ z-index: 1001;
108
+
109
+ @include media(mobileBreakPointTreshold) {
110
+ flex-direction: column;
111
+ justify-content: center;
112
+ text-align: center;
113
+ gap: 11px;
114
+ align-items: center;
115
+ font-size: 0.6875rem;
116
+ padding: 16px 8px;
117
+ line-height: 22px;
118
+ }
119
+ }
120
+
121
+ .social-container {
122
+ display: flex;
123
+ gap: 40px;
124
+ margin-left: 4%;
125
+
126
+ @include media(mobileBreakPointTreshold) {
127
+ gap: 35px;
128
+ margin-left: 0%;
129
+ }
130
+
131
+ }
132
+
133
+ .image-container {
134
+ cursor: pointer;
135
+ display: flex;
136
+ justify-content: center;
137
+ align-items: center;
138
+ width: 18px;
139
+ height: 18px;
140
+ }
141
+
142
+ img {
143
+ height: 16px;
144
+ width: 16px;
145
+ }
146
+
147
+ .section-link {
148
+ cursor: pointer;
149
+ }
150
+
151
+ .address-title {
152
+ min-height: 28px;
153
+ }
154
+
155
+ .address-container {
156
+ a:first-of-type {
157
+ opacity: 100%;
158
+ }
159
+ }
160
+
161
+ .title-container {
162
+ display: flex;
163
+ justify-content: space-between;
164
+ align-items: center;
165
+ cursor: pointer;
166
+
167
+ @include media(mobileBreakPointTreshold) {
168
+ padding-top: 16px;
169
+ padding-bottom: 16px;
170
+ width: 100%;
171
+
172
+ }
173
+ }
174
+
175
+ .margin-div {
176
+ width: 100%;
177
+ height: 20px;
178
+ }
179
+
180
+ .title-links {
181
+ cursor: pointer;
182
+
183
+ &:hover {
184
+ text-decoration: underline;
185
+ }
186
+ }
@@ -0,0 +1,292 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { BreakpointLibService } from '../services/breakpoint.service';
3
+
4
+ export interface SocialLink {
5
+ link: string,
6
+ isHidden?: boolean;
7
+ }
8
+
9
+ export interface SectionItem {
10
+ title: string,
11
+ link?: string;
12
+ }
13
+
14
+ export interface Section {
15
+ title?: string,
16
+ sectionItems: SectionItem[];
17
+ }
18
+
19
+
20
+ export interface FooterConfig {
21
+ bannerTitle?: string | undefined,
22
+ instagram?: SocialLink,
23
+ linkedIn?: SocialLink,
24
+ facebook?: SocialLink,
25
+ twitter?: SocialLink,
26
+ whatsapp?: SocialLink,
27
+ sections?: Section[],
28
+ address?: Section[],
29
+ }
30
+
31
+ const DEFAULT_COLOR = '#15808D'
32
+
33
+ @Component({
34
+ selector: 'lib-af-connect-footer',
35
+ templateUrl: './af-connect-footer.component.html',
36
+ styleUrls: ['./af-connect-footer.component.scss']
37
+ })
38
+ export class AfConnectFooterComponent {
39
+
40
+ constructor(public breakpointService: BreakpointLibService) { }
41
+
42
+ @Input()
43
+ config: FooterConfig | undefined = undefined;
44
+ @Input() isBottomBannerHidden = false;
45
+ @Input() isFooterContentHidden = false;
46
+ @Input() backgroundColor = DEFAULT_COLOR;
47
+
48
+ public get getMobileAddress(): string {
49
+ const config = this.config ? this.config : this.defaultConfig;
50
+ const addressData: SectionItem[] | undefined = config?.address?.find(address => !address.title)?.sectionItems
51
+ const titleString = addressData?.reduce((prev: string, curr: SectionItem, i) => {
52
+ return `${prev}${i === 0 ? '' : ''}${i === 1 ? ' : ' : ''}${i > 1 ? ',' : ''} ${curr.title}`;
53
+ }, '');
54
+ return titleString || '';
55
+ }
56
+
57
+ /**
58
+ Footer component for AF Angular Websites. A config object can be passed to change data partially or fully.
59
+
60
+ public exampleTestConfig: FooterConfig = {
61
+ bannerTitle: 'test'
62
+ }
63
+
64
+ Passing the exampleTestConfig will replace only the banner. Everything else will be loaded from the default config.
65
+
66
+
67
+ defaultConfig: FooterConfig = {
68
+ sections: [
69
+ {
70
+ title: 'COMPANY',
71
+ sectionItems: [
72
+ {
73
+ title: 'Investor relations',
74
+ link: 'https://investors.alexforbes.com/'
75
+ },
76
+ {
77
+ title: 'Careers',
78
+ link: 'https://www.alexforbes.com/za/en/about/careers.html'
79
+ },
80
+ {
81
+ title: 'Procurement',
82
+ link: 'https://www.alexforbes.com/za/en/about/procurement.html'
83
+ },
84
+ {
85
+ title: 'Risk & Compliance',
86
+ link: 'https://www.alexanderforbesinvestments.co.za/about-us/risk-and-compliance'
87
+ },
88
+ ]
89
+ },
90
+ {
91
+ title: 'RESOURCES',
92
+ sectionItems: [
93
+ {
94
+ title: 'Business directory',
95
+ link: 'https://www.alexforbes.com/za/en/contact/business-directory.html'
96
+ },
97
+ {
98
+ title: 'Compliments',
99
+ link: 'https://www.alexforbes.com/za/en/contact/compliments.html'
100
+ },
101
+ {
102
+ title: 'Complaints',
103
+ link: 'https://www.alexforbes.com/za/en/contact/Complaints.html'
104
+ },
105
+ {
106
+ title: 'Report fraud',
107
+ link: 'https://www.alexforbes.com/za/en/contact/Report-fraud.html'
108
+ },
109
+ {
110
+ title: 'Unclaimed benefits',
111
+ link: 'https://www.alexforbes.com/za/en/corporate/products-corporate/unclaimed-benefits-fund.html'
112
+ },
113
+ ]
114
+ },
115
+ ],
116
+ address: [
117
+ {
118
+ title: 'Head Office',
119
+ sectionItems: [
120
+ {
121
+ title: 'Contact information',
122
+ },
123
+ {
124
+ title: 'Email : info@alexforbes.com',
125
+ },
126
+ {
127
+ title: 'Telephone : +27 11 269 0000',
128
+ },
129
+ {
130
+ title: 'Fax : +27 11 263 0149',
131
+ },
132
+ ]
133
+ },
134
+ {
135
+ title: '',
136
+ sectionItems: [
137
+ {
138
+ title: 'Address',
139
+ },
140
+ {
141
+ title: 'Alexforbes',
142
+ },
143
+ {
144
+ title: '115 West Street',
145
+ },
146
+ {
147
+ title: 'Sandton, 2196',
148
+ },
149
+ ]
150
+ },
151
+ ],
152
+ bannerTitle: 'Copyright 2022 Alexander Forbes Group Holdings Limited.',
153
+ instagram: {
154
+ link: 'https://www.instagram.com/alexforbesofficial',
155
+ isHidden: false,
156
+ },
157
+ linkedIn: {
158
+ link: 'https://www.linkedin.com/company/alexforbesofficial',
159
+ isHidden: false,
160
+ },
161
+ facebook: {
162
+ link: 'https://www.facebook.com/alexforbesofficial/',
163
+ isHidden: false,
164
+ },
165
+ twitter: {
166
+ link: 'https://twitter.com/alexforbes',
167
+ isHidden: false,
168
+ }
169
+ }
170
+ */
171
+
172
+
173
+ public defaultConfig: FooterConfig = {
174
+ sections: [
175
+ {
176
+ title: 'Company',
177
+ sectionItems: [
178
+ {
179
+ title: 'Investor relations',
180
+ link: 'https://investors.alexforbes.com/'
181
+ },
182
+ {
183
+ title: 'Careers',
184
+ link: 'https://www.alexforbes.com/za/en/about/careers.html'
185
+ },
186
+ {
187
+ title: 'Procurement',
188
+ link: 'https://www.alexforbes.com/za/en/about/procurement.html'
189
+ },
190
+ {
191
+ title: 'Risk & Compliance',
192
+ link: 'https://investors.alexforbes.com/governance/#1649142494218-25325-08da'
193
+ },
194
+ ]
195
+ },
196
+ {
197
+ title: 'Resources',
198
+ sectionItems: [
199
+ {
200
+ title: 'Business directory',
201
+ link: 'https://www.alexforbes.com/za/en/contact/business-directory.html'
202
+ },
203
+ {
204
+ title: 'Compliments',
205
+ link: 'https://www.alexforbes.com/za/en/contact/compliments.html'
206
+ },
207
+ {
208
+ title: 'Complaints',
209
+ link: 'https://www.alexforbes.com/za/en/contact/Complaints.html'
210
+ },
211
+ {
212
+ title: 'Report fraud',
213
+ link: 'https://www.alexforbes.com/za/en/contact/Report-fraud.html'
214
+ },
215
+ {
216
+ title: 'Unclaimed benefits',
217
+ link: 'https://www.alexforbes.com/za/en/corporate/products-corporate/unclaimed-benefits-fund.html'
218
+ },
219
+ ]
220
+ },
221
+ ],
222
+ address: [
223
+ {
224
+ title: 'Head office',
225
+ sectionItems: [
226
+ {
227
+ title: 'Contact information',
228
+ },
229
+ {
230
+ title: 'Email : info@alexforbes.com',
231
+ },
232
+ {
233
+ title: 'Telephone : +27 11 269 0000',
234
+ },
235
+ {
236
+ title: 'Fax : +27 11 263 0149',
237
+ },
238
+ ]
239
+ },
240
+ {
241
+ title: '',
242
+ sectionItems: [
243
+ {
244
+ title: 'Address',
245
+ },
246
+ {
247
+ title: 'Alexforbes',
248
+ },
249
+ {
250
+ title: '115 West Street',
251
+ },
252
+ {
253
+ title: 'Sandton, 2196',
254
+ },
255
+ ]
256
+ },
257
+ ],
258
+ bannerTitle: 'Copyright 2022 Alexander Forbes Group Holdings Limited.',
259
+ instagram: {
260
+ link: 'https://www.instagram.com/alexforbesofficial',
261
+ isHidden: false,
262
+ },
263
+ linkedIn: {
264
+ link: 'https://www.linkedin.com/company/alexforbesofficial',
265
+ isHidden: false,
266
+ },
267
+ facebook: {
268
+ link: 'https://www.facebook.com/alexforbesofficial/',
269
+ isHidden: false,
270
+ },
271
+ twitter: {
272
+ link: 'https://twitter.com/alexforbes',
273
+ isHidden: false,
274
+ },
275
+ whatsapp: {
276
+ link:'https://api.whatsapp.com/send/?phone=27600439601&text=help&type=phone_number&app_absent=0',
277
+ isHidden: false,
278
+ }
279
+ }
280
+
281
+ openLegalTerms() {
282
+ window.open('https://myapi.alexanderforbes.co.za/content/download/afinvestments/investmentsolutionspdffiles?path=Legal_Terms.pdf')
283
+ }
284
+
285
+ openPrivacyPolicy() {
286
+ window.open('https://myapi.alexanderforbes.co.za/content/download/afinvestments/investmentsolutionspdffiles?path=Privacy_Policy.pdf')
287
+ }
288
+
289
+ openPaiaManual() {
290
+ window.open('https://myapi.alexanderforbes.co.za/content/download/afinvestments/investmentsolutionspdffiles?path=PAIA_Manual.pdf')
291
+ }
292
+ }
@@ -0,0 +1,18 @@
1
+ @import '../../styles/breakpoints.scss';
2
+
3
+ :host {
4
+ display: grid;
5
+ grid-template-columns: repeat(3, 1fr);
6
+ column-gap: 2rem;
7
+ align-items: end;
8
+
9
+ @include media(tabletTreshold) {
10
+ grid-template-columns: repeat(2, 1fr);
11
+ column-gap: 1.5rem;
12
+ row-gap: 1.5rem;
13
+ }
14
+
15
+ @include media(mobileScreen) {
16
+ grid-template-columns: auto;
17
+ }
18
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectFormGroupComponent } from './af-connect-form-group.component';
4
+
5
+ describe('AfConnectFormGroupComponent', () => {
6
+ let component: AfConnectFormGroupComponent;
7
+ let fixture: ComponentFixture<AfConnectFormGroupComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectFormGroupComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectFormGroupComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'lib-af-connect-form-group',
5
+ templateUrl: './af-connect-form-group.component.html',
6
+ styleUrls: ['./af-connect-form-group.component.scss']
7
+ })
8
+ export class AfConnectFormGroupComponent {
9
+
10
+ }
@@ -0,0 +1,40 @@
1
+ <div class="container" *ngIf="control && control.errors && control.dirty && control.touched">
2
+ <div class="container__error" *ngIf="control.errors['required']">{{ fieldText }} is required</div>
3
+ <div class="container__error" *ngIf="control.errors['emptyValue']">Please enter a {{ fieldText }}</div>
4
+ <div class="container__error" *ngIf="control.errors['minlength']">
5
+ {{ fieldText }} must have be least {{ control.errors['minlength'].requiredLength }} symbols long
6
+ </div>
7
+ <div class="container__error" *ngIf="control.errors['maxlength']">
8
+ {{ fieldText }} must be no more than {{ control.errors['maxlength'].requiredLength }} symbols
9
+ </div>
10
+ <div class="container__error" *ngIf="control.errors['existingProductName']">
11
+ Please enter a unique Product Name. Example: Alexforbes Life Cover
12
+ </div>
13
+ <div class="container__error" *ngIf="control.errors['email']">Invalid Email address</div>
14
+ <div class="container__error" *ngIf="control.errors['NAN']">Please enter a valid number</div>
15
+ <div class="container__error" *ngIf="control.errors['positiveNumber']">
16
+ Please enter a positive number. Example: R100 000
17
+ </div>
18
+ <div class="container__error" *ngIf="control.errors['integerNumber']">
19
+ Please enter a number without any digits after the decimal point
20
+ </div>
21
+ <div class="container__error" *ngIf="control.errors['max']">
22
+ Please enter a number less than or equal to {{ convertToNumberWithCommas(control.errors['max'].max) }}
23
+ </div>
24
+ <div class="container__error" *ngIf="control.errors['length']">
25
+ {{ fieldText }} must be {{ control.errors['length'] }} digits long
26
+ </div>
27
+ <div class="container__error" *ngIf="control.errors['alphabetic']">
28
+ {{ fieldText }} cannot contain numbers or special characters
29
+ </div>
30
+ <div class="container__error" *ngIf="control.errors['selectOptions']">
31
+ Please select a valid {{ fieldText }} from the dropdown list
32
+ </div>
33
+ </div>
34
+
35
+ <div class="container" *ngIf="control && control.errors && control.dirty">
36
+ <div class="container__error" *ngIf="control.errors['startDateBeforeEndDate']">
37
+ You have selected an incorrect date
38
+ </div>
39
+ </div>
40
+
@@ -0,0 +1,5 @@
1
+ .container__error {
2
+ color: var(--primary-orange-mobile-color);
3
+ font-size: 12px;
4
+ }
5
+