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.
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +11 -8
- package/angular.json +40 -0
- package/package.json +41 -31
- package/projects/af-connect-components/README.md +24 -0
- package/projects/af-connect-components/ng-package.json +7 -0
- package/projects/af-connect-components/package-lock.json +4286 -0
- package/projects/af-connect-components/package.json +12 -0
- package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.html +13 -0
- package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.scss +50 -0
- package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.ts +17 -0
- package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.html +25 -0
- package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.scss +306 -0
- package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.ts +25 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.html +20 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.scss +209 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.ts +21 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.html +4 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.scss +100 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.ts +14 -0
- package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.html +1 -0
- package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.scss +0 -0
- package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.ts +10 -0
- package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.html +15 -0
- package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.scss +125 -0
- package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.ts +22 -0
- package/projects/af-connect-components/src/lib/af-connect-components.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-components.component.ts +15 -0
- package/projects/af-connect-components/src/lib/af-connect-components.module.ts +146 -0
- package/projects/af-connect-components/src/lib/af-connect-components.service.spec.ts +16 -0
- package/projects/af-connect-components/src/lib/af-connect-components.service.ts +9 -0
- package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.html +1 -0
- package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.scss +227 -0
- package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-content/af-connect-content.component.ts +13 -0
- package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.html +1 -0
- package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.scss +0 -0
- package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-datepicker/af-connect-datepicker.component.ts +10 -0
- package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.html +6 -0
- package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.scss +51 -0
- package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-error/af-connect-error.component.ts +18 -0
- package/projects/af-connect-components/src/lib/af-connect-footer/af-connect-footer.component.html +106 -0
- package/projects/af-connect-components/src/lib/af-connect-footer/af-connect-footer.component.scss +186 -0
- package/projects/af-connect-components/src/lib/af-connect-footer/af-connect-footer.component.ts +292 -0
- package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.html +1 -0
- package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.scss +18 -0
- package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-form-group/af-connect-form-group.component.ts +10 -0
- package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.html +40 -0
- package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.scss +5 -0
- package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.ts +14 -0
- package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.html +49 -0
- package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.scss +24 -0
- package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-header/af-connect-header.component.ts +27 -0
- package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.html +6 -0
- package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.scss +68 -0
- package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-inline-error/af-connect-inline-error.component.ts +18 -0
- package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.html +29 -0
- package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.scss +117 -0
- package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-input/af-connect-input.component.ts +77 -0
- package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.html +6 -0
- package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.scss +67 -0
- package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.ts +15 -0
- package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.html +43 -0
- package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.scss +136 -0
- package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-modal/af-connect-modal.component.ts +99 -0
- package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.html +8 -0
- package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.scss +94 -0
- package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-no-content/af-connect-no-content.component.ts +18 -0
- package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.html +11 -0
- package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.scss +72 -0
- package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-notification/af-connect-notification.component.ts +12 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.html +16 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.scss +32 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.spec.ts +22 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/af-connect-products-carousel.component.ts +58 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/defaultConfig.ts +26 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.html +6 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.scss +96 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-products-carousel/image-card/image-card.component.ts +21 -0
- package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.html +94 -0
- package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.scss +176 -0
- package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.ts +48 -0
- package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.html +11 -0
- package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.scss +48 -0
- package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-progress-bar/af-connect-progress-bar.component.ts +34 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.html +28 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.scss +204 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-button/af-connect-radio-button.component.ts +101 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.html +6 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.scss +28 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-radio-group/af-connect-radio-group.component.ts +111 -0
- package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.html +1 -0
- package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.scss +8 -0
- package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-section/af-connect-section.component.ts +13 -0
- package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.html +17 -0
- package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.scss +153 -0
- package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-section-header/af-connect-section-header.component.ts +22 -0
- package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.html +91 -0
- package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.scss +242 -0
- package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-select/af-connect-select.component.ts +10 -0
- package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.html +6 -0
- package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.scss +66 -0
- package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-svg-button/af-connect-svg-button.component.ts +19 -0
- package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.html +4 -0
- package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.scss +0 -0
- package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-tab/af-connect-tab.component.ts +11 -0
- package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.html +1 -0
- package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.scss +0 -0
- package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-table/af-connect-table.component.ts +10 -0
- package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.html +15 -0
- package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.scss +125 -0
- package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-tabs/af-connect-tabs.component.ts +100 -0
- package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.html +13 -0
- package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.scss +66 -0
- package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-toaster-message/af-connect-toaster-message.component.ts +22 -0
- package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.html +26 -0
- package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.scss +55 -0
- package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-toggle-button/af-connect-toggle-button.component.ts +120 -0
- package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.html +11 -0
- package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.scss +149 -0
- package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.ts +36 -0
- package/projects/af-connect-components/src/lib/af-connect-tooltip/types.ts +1 -0
- package/projects/af-connect-components/src/lib/constants/animation.constants.ts +149 -0
- package/projects/af-connect-components/src/lib/constants/base.constants.ts +10 -0
- package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.html +4 -0
- package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.scss +0 -0
- package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.spec.ts +22 -0
- package/projects/af-connect-components/src/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.ts +21 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.html +14 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.scss +0 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.spec.ts +22 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-arrow/expandable-arrow.component.ts +38 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.html +3 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.scss +3 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/expandable/expandable-container/expandable-container.component.ts +21 -0
- package/projects/af-connect-components/src/lib/faq/faq/faq.component.html +7 -0
- package/projects/af-connect-components/src/lib/faq/faq/faq.component.scss +18 -0
- package/projects/af-connect-components/src/lib/faq/faq/faq.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/faq/faq/faq.component.ts +16 -0
- package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.html +15 -0
- package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.scss +58 -0
- package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.spec.ts +23 -0
- package/projects/af-connect-components/src/lib/faq/faq-item/faq-item.component.ts +12 -0
- package/projects/af-connect-components/src/lib/faq/image-fallback/image-fallback.component.ts +57 -0
- package/{lib/models/notification-response.model.d.ts → projects/af-connect-components/src/lib/models/notification-response.model.ts} +1 -0
- package/projects/af-connect-components/src/lib/models/radio.model.ts +3 -0
- package/projects/af-connect-components/src/lib/services/breakpoint.service.ts +10 -0
- package/projects/af-connect-components/src/lib/utilities/number.util.ts +3 -0
- package/{public-api.d.ts → projects/af-connect-components/src/public-api.ts} +7 -0
- package/projects/af-connect-components/src/shared/pipes/get-initials.ts +13 -0
- package/projects/af-connect-components/src/styles/breakpoints.scss +91 -0
- package/projects/af-connect-components/tsconfig.lib.json +14 -0
- package/projects/af-connect-components/tsconfig.lib.prod.json +10 -0
- package/projects/af-connect-components/tsconfig.spec.json +14 -0
- package/tsconfig.json +39 -0
- package/esm2020/af-connect-components.mjs +0 -5
- package/esm2020/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.mjs +0 -22
- package/esm2020/lib/af-connect-button/af-connect-button.component.mjs +0 -47
- package/esm2020/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.mjs +0 -33
- package/esm2020/lib/af-connect-card/af-connect-card.component.mjs +0 -17
- package/esm2020/lib/af-connect-chart/af-connect-chart.component.mjs +0 -11
- package/esm2020/lib/af-connect-chip/af-connect-chip.component.mjs +0 -23
- package/esm2020/lib/af-connect-components.component.mjs +0 -19
- package/esm2020/lib/af-connect-components.module.mjs +0 -239
- package/esm2020/lib/af-connect-components.service.mjs +0 -14
- package/esm2020/lib/af-connect-content/af-connect-content.component.mjs +0 -14
- package/esm2020/lib/af-connect-datepicker/af-connect-datepicker.component.mjs +0 -11
- package/esm2020/lib/af-connect-error/af-connect-error.component.mjs +0 -26
- package/esm2020/lib/af-connect-footer/af-connect-footer.component.mjs +0 -269
- package/esm2020/lib/af-connect-form-group/af-connect-form-group.component.mjs +0 -11
- package/esm2020/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.mjs +0 -21
- package/esm2020/lib/af-connect-header/af-connect-header.component.mjs +0 -46
- package/esm2020/lib/af-connect-inline-error/af-connect-inline-error.component.mjs +0 -29
- package/esm2020/lib/af-connect-input/af-connect-input.component.mjs +0 -92
- package/esm2020/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.mjs +0 -18
- package/esm2020/lib/af-connect-modal/af-connect-modal.component.mjs +0 -101
- package/esm2020/lib/af-connect-no-content/af-connect-no-content.component.mjs +0 -26
- package/esm2020/lib/af-connect-notification/af-connect-notification.component.mjs +0 -15
- package/esm2020/lib/af-connect-products-carousel/af-connect-products-carousel.component.mjs +0 -47
- package/esm2020/lib/af-connect-products-carousel/defaultConfig.mjs +0 -27
- package/esm2020/lib/af-connect-products-carousel/image-card/image-card.component.mjs +0 -27
- package/esm2020/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.mjs +0 -69
- package/esm2020/lib/af-connect-progress-bar/af-connect-progress-bar.component.mjs +0 -45
- package/esm2020/lib/af-connect-radio-button/af-connect-radio-button.component.mjs +0 -99
- package/esm2020/lib/af-connect-radio-group/af-connect-radio-group.component.mjs +0 -114
- package/esm2020/lib/af-connect-section/af-connect-section.component.mjs +0 -14
- package/esm2020/lib/af-connect-section-header/af-connect-section-header.component.mjs +0 -35
- package/esm2020/lib/af-connect-select/af-connect-select.component.mjs +0 -11
- package/esm2020/lib/af-connect-svg-button/af-connect-svg-button.component.mjs +0 -27
- package/esm2020/lib/af-connect-tab/af-connect-tab.component.mjs +0 -20
- package/esm2020/lib/af-connect-table/af-connect-table.component.mjs +0 -11
- package/esm2020/lib/af-connect-tabs/af-connect-tabs.component.mjs +0 -87
- package/esm2020/lib/af-connect-toaster-message/af-connect-toaster-message.component.mjs +0 -33
- package/esm2020/lib/af-connect-toggle-button/af-connect-toggle-button.component.mjs +0 -133
- package/esm2020/lib/af-connect-tooltip/af-connect-tooltip.component.mjs +0 -48
- package/esm2020/lib/af-connect-tooltip/types.mjs +0 -2
- package/esm2020/lib/constants/animation.constants.mjs +0 -121
- package/esm2020/lib/constants/base.constants.mjs +0 -10
- package/esm2020/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.mjs +0 -23
- package/esm2020/lib/expandable/expandable-arrow/expandable-arrow.component.mjs +0 -54
- package/esm2020/lib/expandable/expandable-container/expandable-container.component.mjs +0 -29
- package/esm2020/lib/faq/faq/faq.component.mjs +0 -22
- package/esm2020/lib/faq/faq-item/faq-item.component.mjs +0 -16
- package/esm2020/lib/faq/faqItem.mjs +0 -2
- package/esm2020/lib/faq/image-fallback/image-fallback.component.mjs +0 -74
- package/esm2020/lib/models/notification-response.model.mjs +0 -2
- package/esm2020/lib/models/radio.model.mjs +0 -2
- package/esm2020/lib/services/breakpoint.service.mjs +0 -16
- package/esm2020/lib/utilities/number.util.mjs +0 -4
- package/esm2020/public-api.mjs +0 -43
- package/esm2020/shared/pipes/get-initials.mjs +0 -20
- package/fesm2015/af-connect-components.mjs +0 -2157
- package/fesm2015/af-connect-components.mjs.map +0 -1
- package/fesm2020/af-connect-components.mjs +0 -2149
- package/fesm2020/af-connect-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/af-connect-breadcrumb/af-connect-breadcrumb.component.d.ts +0 -10
- package/lib/af-connect-button/af-connect-button.component.d.ts +0 -21
- package/lib/af-connect-card/af-connect-card-header/af-connect-card-header.component.d.ts +0 -14
- package/lib/af-connect-card/af-connect-card.component.d.ts +0 -8
- package/lib/af-connect-chart/af-connect-chart.component.d.ts +0 -5
- package/lib/af-connect-chip/af-connect-chip.component.d.ts +0 -12
- package/lib/af-connect-components.component.d.ts +0 -5
- package/lib/af-connect-components.module.d.ts +0 -52
- package/lib/af-connect-components.service.d.ts +0 -6
- package/lib/af-connect-content/af-connect-content.component.d.ts +0 -8
- package/lib/af-connect-datepicker/af-connect-datepicker.component.d.ts +0 -5
- package/lib/af-connect-error/af-connect-error.component.d.ts +0 -12
- package/lib/af-connect-footer/af-connect-footer.component.d.ts +0 -153
- package/lib/af-connect-form-group/af-connect-form-group.component.d.ts +0 -5
- package/lib/af-connect-form-validation-errors/af-connect-form-validation-errors.component.d.ts +0 -10
- package/lib/af-connect-header/af-connect-header.component.d.ts +0 -18
- package/lib/af-connect-inline-error/af-connect-inline-error.component.d.ts +0 -13
- package/lib/af-connect-input/af-connect-input.component.d.ts +0 -36
- package/lib/af-connect-loading-spinner/af-connect-loading-spinner.component.d.ts +0 -8
- package/lib/af-connect-modal/af-connect-modal.component.d.ts +0 -46
- package/lib/af-connect-no-content/af-connect-no-content.component.d.ts +0 -12
- package/lib/af-connect-notification/af-connect-notification.component.d.ts +0 -8
- package/lib/af-connect-products-carousel/af-connect-products-carousel.component.d.ts +0 -32
- package/lib/af-connect-products-carousel/defaultConfig.d.ts +0 -6
- package/lib/af-connect-products-carousel/image-card/image-card.component.d.ts +0 -13
- package/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.d.ts +0 -26
- package/lib/af-connect-progress-bar/af-connect-progress-bar.component.d.ts +0 -18
- package/lib/af-connect-radio-button/af-connect-radio-button.component.d.ts +0 -34
- package/lib/af-connect-radio-group/af-connect-radio-group.component.d.ts +0 -35
- package/lib/af-connect-section/af-connect-section.component.d.ts +0 -8
- package/lib/af-connect-section-header/af-connect-section-header.component.d.ts +0 -15
- package/lib/af-connect-select/af-connect-select.component.d.ts +0 -5
- package/lib/af-connect-svg-button/af-connect-svg-button.component.d.ts +0 -14
- package/lib/af-connect-tab/af-connect-tab.component.d.ts +0 -9
- package/lib/af-connect-table/af-connect-table.component.d.ts +0 -5
- package/lib/af-connect-tabs/af-connect-tabs.component.d.ts +0 -25
- package/lib/af-connect-toaster-message/af-connect-toaster-message.component.d.ts +0 -13
- package/lib/af-connect-toggle-button/af-connect-toggle-button.component.d.ts +0 -37
- package/lib/af-connect-tooltip/af-connect-tooltip.component.d.ts +0 -16
- package/lib/af-connect-tooltip/types.d.ts +0 -1
- package/lib/constants/animation.constants.d.ts +0 -13
- package/lib/constants/base.constants.d.ts +0 -10
- package/lib/expandable/afc-expandable-wrapper/afc-expandable-wrapper.component.d.ts +0 -8
- package/lib/expandable/expandable-arrow/expandable-arrow.component.d.ts +0 -21
- package/lib/expandable/expandable-container/expandable-container.component.d.ts +0 -8
- package/lib/faq/faq/faq.component.d.ts +0 -9
- package/lib/faq/faq-item/faq-item.component.d.ts +0 -7
- package/lib/faq/image-fallback/image-fallback.component.d.ts +0 -18
- package/lib/models/radio.model.d.ts +0 -3
- package/lib/services/breakpoint.service.d.ts +0 -9
- package/lib/utilities/number.util.d.ts +0 -1
- package/shared/pipes/get-initials.d.ts +0 -10
- /package/{lib/faq/faqItem.d.ts → projects/af-connect-components/src/lib/faq/faqItem.ts} +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
@import '../../../styles/breakpoints.scss';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
flex: 1 0 auto;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host(.beneficiaries-header) {
|
|
11
|
+
.buttons-container {
|
|
12
|
+
align-self: flex-start;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host(.restricted-fund-card-header) {
|
|
17
|
+
padding: 0.8rem;
|
|
18
|
+
|
|
19
|
+
@include media(mobileBreakPointTreshold) {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
> .border-line {
|
|
24
|
+
border: 1px solid var(--toggle-button-grey-color);
|
|
25
|
+
opacity: 0.3;
|
|
26
|
+
margin: 0.2rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host(.policies-header) {
|
|
31
|
+
flex-grow: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host(.document-card-header) {
|
|
35
|
+
.card-header.small {
|
|
36
|
+
gap: 0.5rem;
|
|
37
|
+
|
|
38
|
+
.title-container {
|
|
39
|
+
gap: 0.25rem;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.card-header-base {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
color: var(--primary-dark-teal-color);
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
|
|
52
|
+
@include media(tabletTreshold) {
|
|
53
|
+
gap: 6px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.buttons-container {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: 1rem;
|
|
60
|
+
|
|
61
|
+
@include media(tabletTreshold) {
|
|
62
|
+
justify-content: flex-start;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host(.claims-header) {
|
|
67
|
+
.buttons-container {
|
|
68
|
+
display: contents;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.border-line {
|
|
73
|
+
width: 100%;
|
|
74
|
+
margin-top: 0.85rem;
|
|
75
|
+
border-bottom: 1px solid var(--primary-dark-teal-color);
|
|
76
|
+
|
|
77
|
+
&.small {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.inner-title-container {
|
|
83
|
+
display: flex;
|
|
84
|
+
gap: 12px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.heading-container {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: 1rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.title-container-base {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: 0.3rem;
|
|
97
|
+
font-size: 16px;
|
|
98
|
+
font-family: var(--standard-font-family-hero-new-semibold);
|
|
99
|
+
|
|
100
|
+
@include media(mobileBreakPointTreshold) {
|
|
101
|
+
font-size: 0.875rem;
|
|
102
|
+
gap: 1px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.subtitle-base {
|
|
107
|
+
font-size: 14px;
|
|
108
|
+
font-family: var(--standard-font-family-hero-new);
|
|
109
|
+
|
|
110
|
+
@include media(mobileBreakPointTreshold) {
|
|
111
|
+
font-size: 0.75rem;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.orange-base {
|
|
116
|
+
color: var(--bright-orange-color);
|
|
117
|
+
font-family: var(--standard-font-family-hero-new-bold);
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.card-header {
|
|
122
|
+
&.normal {
|
|
123
|
+
@extend .card-header-base;
|
|
124
|
+
|
|
125
|
+
.title-container {
|
|
126
|
+
@extend .title-container-base;
|
|
127
|
+
color: var(--primary-dark-teal-color);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.subtitle {
|
|
131
|
+
@extend .subtitle-base;
|
|
132
|
+
color: var(--primary-connected-orange-color);
|
|
133
|
+
|
|
134
|
+
&.orange {
|
|
135
|
+
@extend .orange-base;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.small {
|
|
141
|
+
@extend .card-header-base;
|
|
142
|
+
|
|
143
|
+
.title-container {
|
|
144
|
+
@extend .title-container-base;
|
|
145
|
+
color: var(--secondary-black-color);
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
gap: 0px;
|
|
148
|
+
|
|
149
|
+
@include media(mobileBreakPointTreshold) {
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.subtitle {
|
|
155
|
+
@extend .subtitle-base;
|
|
156
|
+
opacity: 0.5;
|
|
157
|
+
color: var(--main-black-color);
|
|
158
|
+
|
|
159
|
+
&.orange {
|
|
160
|
+
@extend .orange-base;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@include media(mobileBreakPointTreshold) {
|
|
164
|
+
font-size: 12px;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:host(.claims-header) {
|
|
171
|
+
.card-header {
|
|
172
|
+
&.normal {
|
|
173
|
+
.subtitle {
|
|
174
|
+
color: var(--claim-subtitle-color);
|
|
175
|
+
|
|
176
|
+
@include media(mobileBreakPointTreshold) {
|
|
177
|
+
color: var(--claim-info-grey);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.title-container {
|
|
184
|
+
width: 100%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.inner-title-container {
|
|
188
|
+
justify-content: space-between;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@include media(mobileBreakPointTreshold) {
|
|
192
|
+
.title-container-base {
|
|
193
|
+
flex-direction: row;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.inner-title-container {
|
|
197
|
+
display: block;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.subtitle {
|
|
201
|
+
margin-top: 2px;
|
|
202
|
+
margin-left: -10px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.border-line {
|
|
206
|
+
margin-top: 0.35rem;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectCardHeaderComponent } from './af-connect-card-header.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectCardHeaderComponent', () => {
|
|
6
|
+
let component: AfConnectCardHeaderComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectCardHeaderComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectCardHeaderComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectCardHeaderComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-af-connect-card-header',
|
|
5
|
+
templateUrl: './af-connect-card-header.component.html',
|
|
6
|
+
styleUrls: ['./af-connect-card-header.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class AfConnectCardHeaderComponent {
|
|
9
|
+
@Input() title: string;
|
|
10
|
+
@Input() subTitle: string;
|
|
11
|
+
@Input() variant: 'normal' | 'small' = 'normal';
|
|
12
|
+
@Input() hideBorderLine: boolean;
|
|
13
|
+
@Input() subtitleColor: 'grey' | 'orange' = 'grey';
|
|
14
|
+
@Output() onClick = new EventEmitter();
|
|
15
|
+
|
|
16
|
+
ngOnInit(): void {}
|
|
17
|
+
|
|
18
|
+
toggleMobileContent() {
|
|
19
|
+
this.onClick.emit();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@import '../../styles/breakpoints.scss';
|
|
2
|
+
|
|
3
|
+
$regular-border-radius: 12px;
|
|
4
|
+
|
|
5
|
+
:host {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
width: 49%;
|
|
9
|
+
|
|
10
|
+
@include media(tabletTreshold) {
|
|
11
|
+
min-width: 100%;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host(.full-width) {
|
|
16
|
+
width: 100%;
|
|
17
|
+
// use ngClass="full-width" on afc-card
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host(.document-card) {
|
|
21
|
+
user-select: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(.beneficiary-mobile-card) {
|
|
25
|
+
@include media(tabletTreshold) {
|
|
26
|
+
.small {
|
|
27
|
+
border: 1px solid var(--primary-dark-teal-color);
|
|
28
|
+
max-height: fit-content;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(.restricted-fund-card, .restricted-fund-mobile-card) {
|
|
34
|
+
.card {
|
|
35
|
+
gap: 1rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.base-card {
|
|
40
|
+
flex: 1 0 auto;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
border-radius: $regular-border-radius;
|
|
44
|
+
background: var(--main-white-color);
|
|
45
|
+
border: 1px solid var(--primary-dark-teal-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.card {
|
|
49
|
+
&.large {
|
|
50
|
+
@extend .base-card;
|
|
51
|
+
padding: 2rem 2.5rem 2.5rem 2.5rem;
|
|
52
|
+
|
|
53
|
+
@include media(mobileBreakPointTreshold) {
|
|
54
|
+
padding: 1rem 1rem 1.5rem 1rem;
|
|
55
|
+
border-radius: 5px;
|
|
56
|
+
border-color: var(--warm-grey-color);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.normal {
|
|
61
|
+
@extend .base-card;
|
|
62
|
+
|
|
63
|
+
border-radius: $regular-border-radius;
|
|
64
|
+
padding: 23px 18px 13px 18px;
|
|
65
|
+
|
|
66
|
+
@include media(tabletTreshold) {
|
|
67
|
+
padding: 12px 9px 6px 9px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.small {
|
|
72
|
+
@extend .base-card;
|
|
73
|
+
border-radius: 5px;
|
|
74
|
+
padding: 18px 15px;
|
|
75
|
+
|
|
76
|
+
@include media(tabletTreshold) {
|
|
77
|
+
padding: 0.75rem 1rem;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host(.statement-card) {
|
|
83
|
+
width: auto;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
|
|
86
|
+
.card.small {
|
|
87
|
+
padding: 12px 14px;
|
|
88
|
+
border-radius: 3px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host(.expandable-card) {
|
|
93
|
+
.card {
|
|
94
|
+
&.small {
|
|
95
|
+
@include media(tabletTreshold) {
|
|
96
|
+
padding: 0.75rem 0.5rem 0.75rem 0.75rem;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
package/projects/af-connect-components/src/lib/af-connect-card/af-connect-card.component.spec.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectCardComponent } from './af-connect-card.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectCardComponent', () => {
|
|
6
|
+
let component: AfConnectCardComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectCardComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectCardComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectCardComponent);
|
|
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, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-af-connect-card',
|
|
5
|
+
templateUrl: './af-connect-card.component.html',
|
|
6
|
+
styleUrls: ['./af-connect-card.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class AfConnectCardComponent {
|
|
9
|
+
@Input() variant: 'large' | 'normal' | 'small' = 'normal';
|
|
10
|
+
|
|
11
|
+
constructor() {}
|
|
12
|
+
|
|
13
|
+
ngOnInit(): void {}
|
|
14
|
+
}
|
package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>af-connect-chart works!</p>
|
package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.scss
ADDED
|
File without changes
|
package/projects/af-connect-components/src/lib/af-connect-chart/af-connect-chart.component.spec.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectChartComponent } from './af-connect-chart.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectChartComponent', () => {
|
|
6
|
+
let component: AfConnectChartComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectChartComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectChartComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectChartComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div
|
|
2
|
+
[ngClass]="['chip', variant]"
|
|
3
|
+
[ngStyle]="{
|
|
4
|
+
borderRadius: borderRadius + 'px',
|
|
5
|
+
background: additionalStyle && additionalStyle.background ? additionalStyle.background : ''
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
[ngStyle]="{
|
|
10
|
+
color: additionalStyle && additionalStyle.color ? additionalStyle.color : ''
|
|
11
|
+
}"
|
|
12
|
+
>
|
|
13
|
+
<ng-content></ng-content>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@import '../../styles/breakpoints.scss';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
$border-radius: 1rem;
|
|
10
|
+
$padding-top: 5.6px;
|
|
11
|
+
|
|
12
|
+
.small {
|
|
13
|
+
padding: 0.3rem 0.75rem;
|
|
14
|
+
border-radius: $border-radius;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.medium {
|
|
18
|
+
min-width: 54px;
|
|
19
|
+
min-height: 28px;
|
|
20
|
+
border-radius: $border-radius;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.green-chip {
|
|
25
|
+
background: var(--secondary-egg-shell-color);
|
|
26
|
+
color: var(--primary-dark-teal-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.chip {
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
font-family: var(--standard-font-family-hero-new);
|
|
35
|
+
width: fit-content;
|
|
36
|
+
|
|
37
|
+
&.greenish-text {
|
|
38
|
+
@extend .green-chip;
|
|
39
|
+
@extend .small;
|
|
40
|
+
|
|
41
|
+
@include media(mobileBreakPointTreshold) {
|
|
42
|
+
font-size: 0.75rem;
|
|
43
|
+
padding: 5px 10px;
|
|
44
|
+
gap: 0px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.greenish-count {
|
|
49
|
+
@extend .green-chip;
|
|
50
|
+
@extend .medium;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.percentage {
|
|
54
|
+
background: var(--primary-catalyst-yellow-color-low-opacity);
|
|
55
|
+
color: var(--primary-connected-orange-color);
|
|
56
|
+
font-family: var(--standard-font-family-hero-new-semibold);
|
|
57
|
+
@extend .medium;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.status {
|
|
61
|
+
@extend .green-chip;
|
|
62
|
+
min-height: 26px;
|
|
63
|
+
font-weight: normal;
|
|
64
|
+
border-radius: $border-radius;
|
|
65
|
+
padding: 0px 15px 0px 15px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.claims {
|
|
69
|
+
border-radius: $border-radius;
|
|
70
|
+
padding: $padding-top 15px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.case-number {
|
|
74
|
+
border-radius: $border-radius;
|
|
75
|
+
border: 1px solid var(--primary-dark-teal-color);
|
|
76
|
+
color: var(--primary-dark-teal-color);
|
|
77
|
+
padding: $padding-top 0.75rem;
|
|
78
|
+
font-family: var(--standard-font-family-hero-new-semibold);
|
|
79
|
+
|
|
80
|
+
@include media(mobileBreakPointTreshold) {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.dot {
|
|
86
|
+
background: var(--secondary-egg-shell-color);
|
|
87
|
+
color: var(--primary-dark-teal-color);
|
|
88
|
+
padding: 0px 5px 0px 5px;
|
|
89
|
+
border-radius: $border-radius;
|
|
90
|
+
min-height: 10px;
|
|
91
|
+
display: inline-block;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.dot-orange {
|
|
95
|
+
@extend .dot;
|
|
96
|
+
background: var(--primary-catalyst-yellow-color);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.dot-teal {
|
|
100
|
+
@extend .dot;
|
|
101
|
+
background: var(--primary-dark-teal-color);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host(.transaction-modal) {
|
|
106
|
+
.chip {
|
|
107
|
+
font-family: var(--standard-font-family-hero-new-bold);
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
padding: 6px 18px;
|
|
110
|
+
@include media(mobileBreakPointTreshold) {
|
|
111
|
+
font-size: 0.875rem;
|
|
112
|
+
padding: 8px 18px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host(.transaction-mobile) {
|
|
118
|
+
.chip {
|
|
119
|
+
@include media(mobileBreakPointTreshold) {
|
|
120
|
+
font-size: 0.875rem;
|
|
121
|
+
padding: 8px 18px;
|
|
122
|
+
font-family: var(--standard-font-family-hero-new-bold);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
package/projects/af-connect-components/src/lib/af-connect-chip/af-connect-chip.component.spec.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectChipComponent } from './af-connect-chip.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectChipComponent', () => {
|
|
6
|
+
let component: AfConnectChipComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectChipComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectChipComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectChipComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-af-connect-chip',
|
|
5
|
+
templateUrl: './af-connect-chip.component.html',
|
|
6
|
+
styleUrls: ['./af-connect-chip.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class AfConnectChipComponent {
|
|
9
|
+
@Input() title: string;
|
|
10
|
+
@Input() borderRadius: number;
|
|
11
|
+
@Input() additionalStyle: { background?: string; color?: string };
|
|
12
|
+
@Input() variant:
|
|
13
|
+
| 'greenish-text'
|
|
14
|
+
| 'greenish-count'
|
|
15
|
+
| 'percentage'
|
|
16
|
+
| 'status'
|
|
17
|
+
| 'claims'
|
|
18
|
+
| 'dot'
|
|
19
|
+
| 'dot-orange'
|
|
20
|
+
| 'dot-teal'
|
|
21
|
+
| 'case-number' = 'greenish-text';
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectComponentsComponent } from './af-connect-components.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectComponentsComponent', () => {
|
|
6
|
+
let component: AfConnectComponentsComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectComponentsComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectComponentsComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectComponentsComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|