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,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectFormValidationErrorsComponent } from './af-connect-form-validation-errors.component';
4
+
5
+ describe('AfConnectFormValidationErrorsComponent', () => {
6
+ let component: AfConnectFormValidationErrorsComponent;
7
+ let fixture: ComponentFixture<AfConnectFormValidationErrorsComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectFormValidationErrorsComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectFormValidationErrorsComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,14 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { numberWithCommas } from '../utilities/number.util';
4
+
5
+ @Component({
6
+ selector: 'lib-af-connect-form-validation-errors',
7
+ templateUrl: './af-connect-form-validation-errors.component.html',
8
+ styleUrls: ['./af-connect-form-validation-errors.component.scss']
9
+ })
10
+ export class AfConnectFormValidationErrorsComponent {
11
+ @Input() fieldText: string = 'Field';
12
+ @Input() control: FormControl;
13
+ public convertToNumberWithCommas = numberWithCommas;
14
+ }
@@ -0,0 +1,49 @@
1
+ <svg class="logo" (click)="refresh()" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 592.39 132.62">
2
+ <defs>
3
+ <style>.cls-1{fill:url(#linear-gradient);}.cls-2{fill:#f15b25;}.cls-3{fill:#1a808d;}</style>
4
+ <linearGradient id="linear-gradient" x1="254.64" y1="41.32" x2="604.45" y2="41.32" gradientUnits="userSpaceOnUse">
5
+ <stop offset="0" stop-color="#1a808d"/>
6
+ <stop offset="1"/>
7
+ </linearGradient>
8
+ </defs>
9
+ <g id="Layer_2" data-name="Layer 2">
10
+ <g id="Layer_1-2" data-name="Layer 1">
11
+ <path class="cls-1" d="M32.59,53.64c0-17.53,12.08-29.31,24.45-29.31a20.54,20.54,0,0,1,17.53,9.31l1.78-7.82H92V81.16H76.35l-1.78-7.82A20.53,20.53,0,0,1,57,82.64C44.67,82.64,32.59,70.86,32.59,53.64Zm41.28-.1c0-7.43-4.75-12.77-11.18-12.77C56,40.77,51.2,46.41,51.2,53.54S56,66.21,62.69,66.21C69.12,66.21,73.87,60.86,73.87,53.54ZM103.85,0h18.41V81.16H103.85ZM187.1,58.49H150.77c2.47,6.63,9,9.9,16.53,9.9,6,0,11.59-2.08,16.64-4.85V78.09a39.5,39.5,0,0,1-19.11,4.55c-20.3,0-31.68-12.27-31.68-29,0-17.43,12.27-29.31,28.21-29.31,14.46,0,26.24,9.8,26.24,28.22A35.8,35.8,0,0,1,187.1,58.49Zm-16.93-10.6c-.19-5.54-3.66-9.3-8.91-9.3-5,0-9.4,3.56-10.89,9.3Zm61.77,5,19,28.32h-20.8l-9.3-15.94h-.2l-9.31,15.94h-19.8l18.72-27.62L191.74,25.82h20.1l9.21,15.93h.19l9.21-15.93h19.8ZM264.26,41h-7.43V25.82h7.53V21.26C264.36,11,271.88.57,287.13.57a38,38,0,0,1,11.09,1.58V17.5a23.35,23.35,0,0,0-7.63-1.19c-5.34,0-8.21,1.88-8.21,6.24v3.27h14.15V41H282.67v40.2H264.26Zm38,12.48c0-17.43,13.17-29.11,29.7-29.11s29.5,11.68,29.5,29.11S348.6,82.64,332,82.64,302.27,70.76,302.27,53.44Zm40.69,0c0-8.12-5.45-12.67-11-12.67s-11.09,4.55-11.09,12.67S326.33,66.21,332,66.21,343,61.56,343,53.44Zm29-27.62h14.65l1.78,8.11h.2a16.67,16.67,0,0,1,14.85-8.71,13.89,13.89,0,0,1,4.26.5V42.84a20.69,20.69,0,0,0-4.85-.59c-6.44,0-12.48,3.37-12.48,13.46V81.16H371.93Zm62.45,7.52c3.27-5.25,10.1-9,17.13-9,12.77,0,23.86,11.39,23.86,29.21s-11.88,29.1-24.75,29.1a20.84,20.84,0,0,1-17.33-9.3l-1.68,7.82H416V.14h18.41Zm-.2,20.2c0,7.42,4.65,12.67,11.19,12.67s11.38-5.45,11.38-12.57S452,40.77,445.27,40.77C438.83,40.77,434.18,46.11,434.18,53.54Zm103.3,5H501.14c2.48,6.63,9,9.9,16.54,9.9,6,0,11.58-2.08,16.63-4.85V78.09a39.48,39.48,0,0,1-19.11,4.55c-20.29,0-31.68-12.27-31.68-29,0-17.43,12.28-29.31,28.22-29.31,14.45,0,26.23,9.8,26.23,28.22A37,37,0,0,1,537.48,58.49Zm-16.93-10.6c-.2-5.54-3.67-9.3-8.91-9.3-5.05,0-9.41,3.56-10.89,9.3Zm67.66-19.4V43.64a35.12,35.12,0,0,0-17-4.56c-4.26,0-6.63,1.19-6.63,3.27s2.67,3.27,8.51,4.65C582.27,49.18,592,52.45,592,64.23c0,11.29-8.91,18.41-24.65,18.41-8.22,0-15.15-2-19.9-4.85V61.46a31.35,31.35,0,0,0,19.11,6.43c4.85,0,7.62-1.29,7.62-3.56,0-2.58-3.46-3.37-10.4-5.35-8.61-2.37-16.83-6.24-16.83-16.43,0-10.5,8.52-18.22,23.47-18.22C576.92,24.33,583.75,25.91,588.21,28.49Z"/>
12
+ <circle class="cls-2" cx="10.86" cy="34.87" r="10.86" transform="translate(-15.07 9.15) rotate(-27.94)"/>
13
+ <circle class="cls-2" cx="10.86" cy="71.4" r="10.86" transform="translate(-32.19 13.41) rotate(-27.94)"/>
14
+ <circle class="cls-3" cx="368.84" cy="117.24" r="2.98"/>
15
+ <path class="cls-2" d="M264,105.54a2,2,0,1,1,2,1.93A1.92,1.92,0,0,1,264,105.54Zm.29,5h3.39v15.69h-3.39Z"/>
16
+ <path class="cls-2" d="M285.22,115.78v10.43h-3.39v-9.34c0-2.42-1.1-3.56-3.19-3.56a3.34,3.34,0,0,0-3.45,3.42v9.48h-3.4V110.52h2.62l.37,2.33h.09a5.58,5.58,0,0,1,4.77-2.71C283.06,110.14,285.22,112.33,285.22,115.78Z"/>
17
+ <path class="cls-2" d="M299.46,111.47v3.1a7.88,7.88,0,0,0-4.71-1.52c-1.79,0-2.76.69-2.76,1.78s1.17,1.61,3.16,2.18c2.47.66,5.23,1.5,5.23,4.72,0,3-2.33,4.86-6.21,4.86a9.11,9.11,0,0,1-5.49-1.67v-3.34a7.88,7.88,0,0,0,5.38,2.13c1.92,0,3-.8,3-1.95,0-1.3-1.35-1.73-3.5-2.39-2.56-.75-4.89-1.67-4.89-4.46s2.24-4.77,5.95-4.77A8.9,8.9,0,0,1,299.46,111.47Z"/>
18
+ <path class="cls-2" d="M303.29,105.54a2,2,0,1,1,2,1.93A1.92,1.92,0,0,1,303.29,105.54Zm.29,5H307v15.69h-3.39Z"/>
19
+ <path class="cls-2" d="M322.53,113.1l.37-2.58h2.82v14.14c0,5.17-3.65,8-8.13,8a10.29,10.29,0,0,1-5.9-1.9V127.3a8.84,8.84,0,0,0,5.67,2.27c2.78,0,5-1.78,5-4.45v-2a6.05,6.05,0,0,1-5.17,2.81c-3.68,0-7.05-3.16-7.05-7.87s3.42-7.88,7.1-7.88A6.24,6.24,0,0,1,322.53,113.1Zm-9,5a4.48,4.48,0,1,0,8.92-.09,4.5,4.5,0,0,0-4.46-4.74A4.58,4.58,0,0,0,313.5,118.08Z"/>
20
+ <path class="cls-2" d="M333.23,112.27h.06a5.37,5.37,0,0,1,4.36-2.13c3.43,0,5.61,2,5.61,5.67v10.4h-3.39v-9.37c0-2.41-1-3.59-3.16-3.59a3.22,3.22,0,0,0-3.48,3.39v9.57h-3.39v-23h3.39Z"/>
21
+ <path class="cls-2" d="M351.15,110.52h4.34v2.87h-4.34v7c0,2.24,1.38,3.16,3.28,3.16a9.45,9.45,0,0,0,1.41-.14v2.9a10.36,10.36,0,0,1-2.1.2c-3.71,0-5.92-2.21-5.92-6v-7.13h-2.3v-2.87h2.35v-3.65h3.28Z"/>
22
+ <path class="cls-2" d="M380.9,118.39c0-5,3.45-8.25,7-8.25a6.17,6.17,0,0,1,5.43,3.08l.38-2.7h2.81v15.69h-2.81l-.38-2.7a6.17,6.17,0,0,1-5.43,3.08C384.35,126.59,380.9,123.34,380.9,118.39Zm12.36,0c0-3-2-5.11-4.46-5.11s-4.51,2.12-4.51,5.11,2,5.12,4.51,5.12S393.26,121.38,393.26,118.36Z"/>
23
+ <path class="cls-2" d="M399.81,118.36c0-5,3.39-8.22,7.07-8.22a5.94,5.94,0,0,1,5.23,2.94v-9.89h3.39v23h-2.81l-.41-2.7a6.11,6.11,0,0,1-5.37,3.08C403.23,126.59,399.81,123.39,399.81,118.36Zm12.36,0c0-3-2-5.11-4.46-5.11s-4.48,2.12-4.48,5.11,1.92,5.12,4.48,5.12S412.17,121.38,412.17,118.36Z"/>
24
+ <path class="cls-2" d="M417.88,110.52h3.62l3.94,12h.09l3.94-12H433l-5.72,15.69H423.6Z"/>
25
+ <path class="cls-2" d="M435.05,105.54a2,2,0,1,1,2,1.93A1.92,1.92,0,0,1,435.05,105.54Zm.29,5h3.39v15.69h-3.39Z"/>
26
+ <path class="cls-2" d="M450.28,123.48a6.72,6.72,0,0,0,4.08-1.24v3.25a9,9,0,0,1-4.45,1.1,8.23,8.23,0,0,1,0-16.45,8.38,8.38,0,0,1,4.45,1.12v3.28a6.75,6.75,0,0,0-4.11-1.29,5.12,5.12,0,0,0,0,10.23Z"/>
27
+ <path class="cls-2" d="M471.18,119.4H459.91a5.07,5.07,0,0,0,5.32,4.37,8.23,8.23,0,0,0,5.11-1.87v3a9.54,9.54,0,0,1-5.46,1.64c-5.14,0-8.25-3.34-8.25-8.17,0-5,3.51-8.28,7.71-8.28,3.79,0,6.92,2.73,6.92,7.94A8.91,8.91,0,0,1,471.18,119.4ZM468,117.13c-.08-2.79-1.78-4.17-3.73-4.17a4.56,4.56,0,0,0-4.43,4.17Z"/>
28
+ <path class="cls-2" d="M497.53,105.54a2,2,0,1,1,2,1.93A1.93,1.93,0,0,1,497.53,105.54Zm.29,5h3.39v15.69h-3.39Z"/>
29
+ <path class="cls-2" d="M526.55,115.78v10.43h-3.39v-9.83c0-2-.78-3.07-2.65-3.07a2.86,2.86,0,0,0-2.9,3v9.89h-3.39v-9.83c0-2-.78-3.07-2.65-3.07a2.91,2.91,0,0,0-2.87,3.19v9.71h-3.39V110.52h2.61l.38,2.27h.08a4.77,4.77,0,0,1,4.26-2.65,4.46,4.46,0,0,1,4.4,2.73,5,5,0,0,1,4.51-2.73C525,110.14,526.55,112.44,526.55,115.78Z"/>
30
+ <path class="cls-2" d="M530.59,110.52h2.82l.37,2.7a6.14,6.14,0,0,1,5.37-3.08c3.71,0,7.13,3.22,7.13,8.22s-3.36,8.23-7,8.23a6.13,6.13,0,0,1-5.26-2.94v8.6h-3.39Zm12.27,7.82c0-3-2-5.09-4.48-5.09s-4.46,2.1-4.46,5.11,1.93,5.12,4.43,5.12S542.86,121.38,542.86,118.34Z"/>
31
+ <path class="cls-2" d="M548.66,118.39c0-5,3.45-8.25,7-8.25a6.17,6.17,0,0,1,5.43,3.08l.38-2.7h2.81v15.69h-2.81l-.38-2.7a6.17,6.17,0,0,1-5.43,3.08C552.11,126.59,548.66,123.34,548.66,118.39Zm12.36,0c0-3-2-5.11-4.46-5.11s-4.51,2.12-4.51,5.11,2,5.12,4.51,5.12S561,121.38,561,118.36Z"/>
32
+ <path class="cls-2" d="M575.92,123.48a6.74,6.74,0,0,0,4.08-1.24v3.25a9,9,0,0,1-4.45,1.1,8.23,8.23,0,0,1,0-16.45,8.38,8.38,0,0,1,4.45,1.12v3.28a6.77,6.77,0,0,0-4.11-1.29,5.12,5.12,0,0,0,0,10.23Z"/>
33
+ <path class="cls-2" d="M587.7,110.52H592v2.87H587.7v7c0,2.24,1.38,3.16,3.28,3.16a9.45,9.45,0,0,0,1.41-.14v2.9a10.36,10.36,0,0,1-2.1.2c-3.71,0-5.92-2.21-5.92-6v-7.13h-2.3v-2.87h2.36v-3.65h3.27Z"/>
34
+ <circle class="cls-3" cx="483.77" cy="117.24" r="2.98"/>
35
+ </g>
36
+ </g>
37
+ </svg>
38
+ <lib-af-connect-profile-dropdown
39
+ *ngIf="!isLogoHidden"
40
+ [username]="username"
41
+ [userType]="userType"
42
+ [hasSwitchIndicator]="hasSwitchIndicator"
43
+ (callMeBack)="callMeBack.emit()"
44
+ (contactAdviser)="contactAdviser.emit()"
45
+ (resetPassword)="resetPassword.emit()"
46
+ (logout)="logout.emit()"
47
+ (switchUserType)="switch($event)"
48
+ >
49
+ </lib-af-connect-profile-dropdown>
@@ -0,0 +1,24 @@
1
+ :host {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ align-items: center;
5
+ height: 100px;
6
+ margin: auto;
7
+
8
+ @media (max-width: 768px) {
9
+ width: auto;
10
+ height: 50px;
11
+ padding: 0.5rem 1.25rem;
12
+ }
13
+
14
+ .logo {
15
+ width: 180px;
16
+ height: 40px;
17
+ cursor: pointer;
18
+
19
+ @media (max-width: 768px) {
20
+ width: 132px;
21
+ height: 30px;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectHeaderComponent } from './af-connect-header.component';
4
+
5
+ describe('AfConnectHeaderComponent', () => {
6
+ let component: AfConnectHeaderComponent;
7
+ let fixture: ComponentFixture<AfConnectHeaderComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectHeaderComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectHeaderComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,27 @@
1
+ import { Component, Output, EventEmitter, Input } from '@angular/core';
2
+ import { UserType } from '../af-connect-profile-dropdown/af-connect-profile-dropdown.component';
3
+
4
+ @Component({
5
+ selector: 'lib-af-connect-header',
6
+ templateUrl: './af-connect-header.component.html',
7
+ styleUrls: ['./af-connect-header.component.scss']
8
+ })
9
+ export class AfConnectHeaderComponent {
10
+ @Input() username = '';
11
+ @Input() isLogoHidden = false;
12
+ @Input() userType: UserType.Institutional | UserType.Retail;
13
+ @Input() hasSwitchIndicator: boolean;
14
+ @Output() callMeBack = new EventEmitter<void>();
15
+ @Output() contactAdviser = new EventEmitter<void>();
16
+ @Output() resetPassword = new EventEmitter<void>();
17
+ @Output() logout = new EventEmitter<void>();
18
+ @Output() switchUserType = new EventEmitter<UserType>();
19
+
20
+ public refresh(): void {
21
+ window.location.reload();
22
+ }
23
+
24
+ public switch(type: UserType): void {
25
+ this.switchUserType.emit(type);
26
+ }
27
+ }
@@ -0,0 +1,6 @@
1
+ <div class="inline-error-container">
2
+ <img [class]="['svg', size]" [src]="src" />
3
+ <span class="inline-error-title">{{ severity }}</span>
4
+ <span class="inline-error-message">{{ message }}</span>
5
+ </div>
6
+
@@ -0,0 +1,68 @@
1
+ @import '../../styles/breakpoints.scss';
2
+
3
+ :host {
4
+ display: flex;
5
+ min-height: 2rem;
6
+ padding-top: 0.5em;
7
+ flex-direction: column;
8
+ }
9
+
10
+ img {
11
+ background: none;
12
+ border: none;
13
+ cursor: pointer;
14
+ justify-content: center;
15
+ }
16
+
17
+ .svg {
18
+ &.small {
19
+ $size: 14px;
20
+ width: $size;
21
+ height: $size;
22
+ }
23
+
24
+ &.medium {
25
+ $size: 16px;
26
+ width: $size;
27
+ height: $size;
28
+
29
+ @include media(mobileBreakPointTreshold) {
30
+ width: 14px;
31
+ height: 14px;
32
+ }
33
+ }
34
+
35
+ @include media(tabletTreshold) {
36
+ &.large {
37
+ width: 23px;
38
+ height: 23px;
39
+ }
40
+ }
41
+ }
42
+
43
+ .inline-error-container {
44
+ background: var(--neutral-inline-error-color);
45
+ border: 1px solid var(--primary-orange-mobile-color);
46
+ border-radius: 5px;
47
+ padding: 0.5rem 1rem;
48
+ opacity: 1;
49
+ display: flex;
50
+ align-items: center;
51
+ gap: 1rem;
52
+ border-left: 8px solid var(--primary-orange-mobile-color);
53
+ }
54
+
55
+ .inline-error-title {
56
+ font-family: 'Hero New SemiBold';
57
+ font-size: 14px;
58
+ color: var(--main-black-color);
59
+ display: flex;
60
+ justify-content: center;
61
+ }
62
+
63
+ .inline-error-message {
64
+ font-size: 12px;
65
+ color: var(--main-black-color);
66
+ display: flex;
67
+ justify-content: center;
68
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectInlineErrorComponent } from './af-connect-inline-error.component';
4
+
5
+ describe('AfConnectInlineErrorComponent', () => {
6
+ let component: AfConnectInlineErrorComponent;
7
+ let fixture: ComponentFixture<AfConnectInlineErrorComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectInlineErrorComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectInlineErrorComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,18 @@
1
+ import { Component, Input } from '@angular/core';
2
+
3
+ export enum Severity {
4
+ Error = "Error!",
5
+ Warning = "Warning!",
6
+ };
7
+
8
+ @Component({
9
+ selector: 'lib-af-connect-inline-error',
10
+ templateUrl: './af-connect-inline-error.component.html',
11
+ styleUrls: ['./af-connect-inline-error.component.scss']
12
+ })
13
+ export class AfConnectInlineErrorComponent {
14
+ @Input() public severity: Severity = Severity.Error;
15
+ @Input() public message: string;
16
+ @Input() src: string;
17
+ @Input() size: 'large' | 'medium' | 'small' | 'none' = 'none';
18
+ }
@@ -0,0 +1,29 @@
1
+ <div class="field-container">
2
+ <div class="label-container">
3
+ <label class="label" [for]="id"> {{ label }}<span *ngIf="withAsterisk" class="asterisk">*</span></label>
4
+ <lib-af-connect-form-validation-errors [control]="control" [fieldText]="errorReferenceText || label"></lib-af-connect-form-validation-errors>
5
+ </div>
6
+ <input
7
+ [type]="type"
8
+ [step]="step"
9
+ size="10"
10
+ class="field-container-input"
11
+ [ngClass]="[
12
+ variant,
13
+ isDisabled ? 'disabled' : 'not-disabled',
14
+ noFormEnabledBorder ? 'no-form-border' : '',
15
+ control && control.errors && control.dirty && control.touched ? 'hasError' : '',
16
+ control && variant === 'read-only' && control.disabled ? 'non-editable' : ''
17
+ ]"
18
+ [maxLength]="maxLength"
19
+ [(ngModel)]="value"
20
+ [placeholder]="placeholder"
21
+ [disabled]="isDisabled || variant === 'read-only'"
22
+ (blur)="onBlur()"
23
+ (keyup)="handleInputChange($event)"
24
+ />
25
+ <div *ngIf="control && control.errors && control.dirty && control.touched" class="error-container">
26
+ <img src="../../../assets/icons/warning.svg" />
27
+ </div>
28
+ </div>
29
+
@@ -0,0 +1,117 @@
1
+ @import '../../styles/breakpoints.scss';
2
+
3
+ :host {
4
+ font-family: var(--standard-font-family-hero-new);
5
+ font-size: 0.875rem;
6
+ color: var(--secondary-space-color);
7
+ width: 100%;
8
+ position: relative;
9
+
10
+ & input:focus {
11
+ outline: transparent;
12
+ }
13
+ }
14
+
15
+ .field-container {
16
+ display: flex;
17
+ flex-direction: column;
18
+
19
+ & .label {
20
+ .asterisk {
21
+ color: var(--primary-orange-mobile-color);
22
+ }
23
+ }
24
+
25
+ & .label-container {
26
+ display: flex;
27
+ flex-wrap: wrap;
28
+ padding-bottom: 0.5rem;
29
+ gap: 0.5rem;
30
+ justify-content: space-between;
31
+ }
32
+
33
+ & .field-container-input {
34
+ outline: 1px solid transparent;
35
+ transition-property: outline-color, border-color, background-color;
36
+ font-family: var(--standard-font-family-hero-new);
37
+ font-size: 0.875rem;
38
+ padding: 11px 11px 11px 1.25rem;
39
+ border: 1px solid transparent;
40
+ outline: 1px solid transparent;
41
+ transition-property: outline-color, border-color, background-color;
42
+ transition-duration: 200ms;
43
+
44
+ &:focus {
45
+ outline: 1px solid var(--primary-dark-teal-color);
46
+ }
47
+
48
+ &.hasError {
49
+ padding-right: 3rem;
50
+ border: 1px solid var(--primary-connected-orange-color) !important;
51
+ background-color: var(--neutral-inline-error-color);
52
+
53
+ &:focus {
54
+ outline-color: var(--primary-connected-orange-color);
55
+ }
56
+ }
57
+
58
+ &.editable.not-disabled.no-form-border {
59
+ border-color: transparent;
60
+ }
61
+
62
+ @include media(mobileBreakPointTreshold) {
63
+ border-radius: var(--input-border-radius);
64
+ box-shadow: var(--input-box-shadow);
65
+ }
66
+ }
67
+
68
+ & .read-only {
69
+ background-color: var(--neutral-button-color);
70
+ color: var(--warm-grey-color);
71
+ }
72
+
73
+ & .non-editable {
74
+ background-color: var(--main-white-color);
75
+ color: var(--warm-grey-color);
76
+ }
77
+
78
+ & .editable {
79
+ background-color: var(--main-white-color);
80
+
81
+ &.disabled {
82
+ color: var(--secondary-space-color);
83
+ }
84
+ }
85
+
86
+ & .editable.not-disabled {
87
+ border-color: var(--primary-dark-teal-color);
88
+ }
89
+ }
90
+
91
+ .error-container {
92
+ position: relative;
93
+ display: flex;
94
+ min-height: 100%;
95
+ justify-content: center;
96
+ align-items: center;
97
+ }
98
+
99
+ img {
100
+ position: absolute;
101
+ cursor: pointer;
102
+ right: 25px;
103
+ top: -31px;
104
+ width: 18px;
105
+ height: 18px;
106
+ }
107
+
108
+ input::-webkit-outer-spin-button,
109
+ input::-webkit-inner-spin-button {
110
+ -webkit-appearance: none;
111
+ margin: 0;
112
+ }
113
+
114
+ /* Firefox */
115
+ input[type='number'] {
116
+ -moz-appearance: textfield;
117
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectInputComponent } from './af-connect-input.component';
4
+
5
+ describe('AfConnectInputComponent', () => {
6
+ let component: AfConnectInputComponent;
7
+ let fixture: ComponentFixture<AfConnectInputComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectInputComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectInputComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,77 @@
1
+ import { ChangeDetectorRef, Component, forwardRef, Injector, Input, OnInit, Output, EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl, NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
3
+
4
+ @Component({
5
+ selector: 'lib-af-connect-input',
6
+ templateUrl: './af-connect-input.component.html',
7
+ styleUrls: ['./af-connect-input.component.scss']
8
+ })
9
+ export class AfConnectInputComponent implements ControlValueAccessor, OnInit {
10
+ private _value: string;
11
+ @Input() label: string;
12
+ @Input() errorReferenceText: string;
13
+ @Input() placeholder: string = '';
14
+ @Input() isDisabled: boolean = true;
15
+ @Input() withAsterisk: boolean = false;
16
+ @Input() variant: 'editable' | 'non-editable' | 'read-only' = 'editable';
17
+ @Input() type: 'text' | 'number' | 'date' | 'password' = 'text';
18
+ @Input() maxLength: number = 50;
19
+ @Input() id: string;
20
+ @Input() step: number;
21
+ @Input() noFormEnabledBorder: boolean = false;
22
+ @Output() onChange = new EventEmitter();
23
+
24
+ public handleInputChange($event: Event) {
25
+ this.onChange.emit($event);
26
+ }
27
+
28
+ public control: FormControl;
29
+
30
+ public get value(): string {
31
+ return this._value;
32
+ }
33
+
34
+ @Input() public set value(value: string) {
35
+ this._value = value;
36
+ this.propagateChange(value);
37
+ }
38
+
39
+ constructor(private injector: Injector, private cdr: ChangeDetectorRef) {}
40
+
41
+ ngOnInit(): void {
42
+ if (this.variant === 'editable') {
43
+ this.isDisabled = false;
44
+ }
45
+ }
46
+
47
+ ngAfterViewInit(): void {
48
+ const ngControl: NgControl = this.injector.get<NgControl>(NgControl);
49
+ if (ngControl) {
50
+ this.control = ngControl.control as FormControl;
51
+ this.cdr.detectChanges();
52
+ }
53
+ }
54
+
55
+ private propagateChange: Function = (_: string) => {};
56
+ private propagateTouch: Function = (_: string) => {};
57
+
58
+ public writeValue(obj: any): void {
59
+ this.value = obj;
60
+ }
61
+
62
+ public registerOnChange(fn: any): void {
63
+ this.propagateChange = fn;
64
+ }
65
+
66
+ public registerOnTouched(fn: any): void {
67
+ this.propagateTouch = fn;
68
+ }
69
+
70
+ setDisabledState?(isDisabled: boolean): void {
71
+ this.isDisabled = isDisabled;
72
+ }
73
+
74
+ public onBlur(): void {
75
+ this.propagateTouch();
76
+ }
77
+ }
@@ -0,0 +1,6 @@
1
+ <div class="spinner">
2
+ <div [class]="size"></div>
3
+ <div [class]="size"></div>
4
+ <div [class]="size"></div>
5
+ <div [class]="size"></div>
6
+ </div>
@@ -0,0 +1,67 @@
1
+ :host {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-self: center;
5
+ }
6
+
7
+ .spinner {
8
+ display: inline-block;
9
+ position: relative;
10
+ width: 80px;
11
+ height: 80px;
12
+
13
+ & div {
14
+ box-sizing: border-box;
15
+ display: block;
16
+ position: absolute;
17
+ width: 4rem;
18
+ height: 4rem;
19
+ margin: 0.5rem;
20
+ border: 0.5rem solid var(--primary-dark-teal-color);
21
+ border-radius: 50%;
22
+ animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
23
+ border-color: var(--primary-dark-teal-color) transparent transparent transparent;
24
+
25
+ &.small {
26
+ width: 1rem;
27
+ height: 1rem;
28
+ border-width: 0.2rem;
29
+ border-color: var(--neutral-anchor-color) transparent transparent transparent;
30
+ }
31
+
32
+ &:nth-child(1) {
33
+ animation-delay: -0.45s;
34
+ }
35
+
36
+ &:nth-child(2) {
37
+ animation-delay: -0.3s;
38
+ }
39
+
40
+ &:nth-child(3) {
41
+ animation-delay: -0.15s;
42
+ }
43
+ }
44
+ }
45
+
46
+ @keyframes spinner {
47
+ 0% {
48
+ transform: rotate(0deg);
49
+ }
50
+ 100% {
51
+ transform: rotate(360deg);
52
+ }
53
+ }
54
+
55
+ :host(.btn-spinner) {
56
+ .spinner {
57
+ width: 40px;
58
+ height: 40px;
59
+ & div {
60
+ width: 1.5rem;
61
+ height: 1.5rem;
62
+ border: 0.15rem solid #fff;
63
+ border-color: #fff transparent transparent transparent;
64
+ }
65
+ }
66
+ }
67
+
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { AfConnectLoadingSpinnerComponent } from './af-connect-loading-spinner.component';
4
+
5
+ describe('AfConnectLoadingSpinnerComponent', () => {
6
+ let component: AfConnectLoadingSpinnerComponent;
7
+ let fixture: ComponentFixture<AfConnectLoadingSpinnerComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ AfConnectLoadingSpinnerComponent ]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(AfConnectLoadingSpinnerComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,15 @@
1
+ import { Component, Input, OnInit } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'lib-af-connect-loading-spinner',
5
+ templateUrl: './af-connect-loading-spinner.component.html',
6
+ styleUrls: ['./af-connect-loading-spinner.component.scss']
7
+ })
8
+ export class AfConnectLoadingSpinnerComponent {
9
+ @Input() size: 'standard' | 'small' = 'standard';
10
+
11
+ constructor() { }
12
+
13
+ ngOnInit(): void {
14
+ }
15
+ }