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,13 @@
|
|
|
1
|
+
<div class="breadcrumb-wrapper">
|
|
2
|
+
<div class="breadcrumb-container">
|
|
3
|
+
<div class="home-icon-container" (click)="goToDashboard()">
|
|
4
|
+
<lib-af-connect-svg-button [customSize]="24" src="../../../assets/icons/home.svg" emitValue="isCloseModal"></lib-af-connect-svg-button>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="titles-container">
|
|
7
|
+
<div class="home-title" (click)="goToDashboard()">Home</div>
|
|
8
|
+
<afc-expandable-arrow></afc-expandable-arrow>
|
|
9
|
+
<div class="current-title">{{ currentPage }}</div>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@import '../../styles/breakpoints.scss';
|
|
2
|
+
|
|
3
|
+
.breadcrumb-wrapper {
|
|
4
|
+
padding: 2rem 0;
|
|
5
|
+
|
|
6
|
+
@include media(mobileBreakPointTreshold) {
|
|
7
|
+
padding: 12px 6px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.breadcrumb-container {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding: 0.5rem;
|
|
15
|
+
background: var(--main-white-color);
|
|
16
|
+
border-radius: 22px;
|
|
17
|
+
gap: 14px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.home-icon-container {
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
width: 32px;
|
|
23
|
+
height: 32px;
|
|
24
|
+
background-color: var(--breadcrumb-background-color);
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.titles-container {
|
|
32
|
+
display: flex;
|
|
33
|
+
gap: 1rem;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
align-items: center;
|
|
37
|
+
|
|
38
|
+
@include media(mobileBreakPointTreshold) {
|
|
39
|
+
gap: 0.5rem;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.current-title {
|
|
44
|
+
color: var(--primary-dark-teal-color);
|
|
45
|
+
margin-right: 0.375rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.home-title {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectBreadcrumbComponent } from './af-connect-breadcrumb.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectBreadcrumbComponent', () => {
|
|
6
|
+
let component: AfConnectBreadcrumbComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectBreadcrumbComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectBreadcrumbComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectBreadcrumbComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'lib-af-connect-breadcrumb',
|
|
6
|
+
templateUrl: './af-connect-breadcrumb.component.html',
|
|
7
|
+
styleUrls: ['./af-connect-breadcrumb.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class AfConnectBreadcrumbComponent {
|
|
10
|
+
@Input() currentPage: string;
|
|
11
|
+
|
|
12
|
+
public goToDashboard() {
|
|
13
|
+
// this.router.navigate(['/dashboard']);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
constructor(private router: Router) {}
|
|
17
|
+
}
|
package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.html
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<button
|
|
2
|
+
[class.hybrid]="hybrid"
|
|
3
|
+
[ngClass]="[
|
|
4
|
+
fullWidth ? 'fullWidth' : '', 'button',
|
|
5
|
+
size,
|
|
6
|
+
variant,
|
|
7
|
+
activeItem === title || isActive ? 'active' : '',
|
|
8
|
+
iconPosition
|
|
9
|
+
]"
|
|
10
|
+
title=""
|
|
11
|
+
[disabled]="disabled"
|
|
12
|
+
(click)="this.clickBtn.emit(emitValue || title)"
|
|
13
|
+
>
|
|
14
|
+
<!-- TODO: Templates -->
|
|
15
|
+
<div
|
|
16
|
+
*ngIf="iconSrc"
|
|
17
|
+
[ngStyle]="{
|
|
18
|
+
'-webkit-mask-image': 'url(' + iconSrc + ')',
|
|
19
|
+
'width': iconSize + 'px'
|
|
20
|
+
}"
|
|
21
|
+
class="icon"
|
|
22
|
+
>
|
|
23
|
+
</div>
|
|
24
|
+
<span [class]="['title', size, variant]">{{ title }}</span>
|
|
25
|
+
</button>
|
package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.scss
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
@import '../../styles/breakpoints.scss';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host(.align-right) {
|
|
10
|
+
justify-content: flex-end;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host(.align-left) {
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host(.full-width) {
|
|
18
|
+
.button {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host(.register-button) {
|
|
24
|
+
.button {
|
|
25
|
+
color: var(--main-white-color);
|
|
26
|
+
border-color: var(--main-white-color);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin link-styles {
|
|
31
|
+
color: var(--primary-connected-orange-color);
|
|
32
|
+
background: none;
|
|
33
|
+
border: none;
|
|
34
|
+
padding: 0px;
|
|
35
|
+
height: fit-content;
|
|
36
|
+
width: auto;
|
|
37
|
+
display: block;
|
|
38
|
+
|
|
39
|
+
&:disabled {
|
|
40
|
+
color: var(--neutral-anchor-color);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:hover:not(:disabled),
|
|
44
|
+
&:disabled {
|
|
45
|
+
background: transparent;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.button {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
gap: 0.5rem;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
border-radius: 30px;
|
|
56
|
+
font-size: 0.8rem;
|
|
57
|
+
padding: 0px 10px;
|
|
58
|
+
background-color: var(--transparent-color);
|
|
59
|
+
color: var(--primary-connected-orange-color);
|
|
60
|
+
border: solid 1px var(--primary-connected-orange-color);
|
|
61
|
+
|
|
62
|
+
&:disabled {
|
|
63
|
+
border-color: var(--neutral-anchor-color);
|
|
64
|
+
color: var(--neutral-anchor-color);
|
|
65
|
+
cursor: auto;
|
|
66
|
+
.icon {
|
|
67
|
+
background: var(--neutral-anchor-color);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.small {
|
|
72
|
+
width: 8.4rem;
|
|
73
|
+
height: 2rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.dynamic {
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 2rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.medium {
|
|
82
|
+
width: 8.875rem;
|
|
83
|
+
height: 2.6rem;
|
|
84
|
+
|
|
85
|
+
@include media(tabletTreshold) {
|
|
86
|
+
height: 2.1rem;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.large {
|
|
91
|
+
width: 12rem;
|
|
92
|
+
height: 2.6rem;
|
|
93
|
+
|
|
94
|
+
@include media(tabletTreshold) {
|
|
95
|
+
min-width: 8.5rem;
|
|
96
|
+
height: 2.3rem;
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.x-large {
|
|
102
|
+
width: 22rem;
|
|
103
|
+
height: 3.1875rem;
|
|
104
|
+
font-size: 1.375rem;
|
|
105
|
+
|
|
106
|
+
@include media(tabletTreshold) {
|
|
107
|
+
width: 11.8rem;
|
|
108
|
+
height: 2.5rem;
|
|
109
|
+
font-size: 1rem;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.block {
|
|
114
|
+
width: 22rem;
|
|
115
|
+
font-size: 1rem;
|
|
116
|
+
height: 3rem;
|
|
117
|
+
|
|
118
|
+
@include media(tabletTreshold) {
|
|
119
|
+
width: 11.8rem;
|
|
120
|
+
height: 2.5rem;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.filled {
|
|
125
|
+
color: var(--main-white-color);
|
|
126
|
+
background-color: var(--primary-connected-orange-color);
|
|
127
|
+
&:hover:not(:disabled) {
|
|
128
|
+
background: var(--primary-catalyst-yellow-color) 0% 0% no-repeat padding-box;
|
|
129
|
+
border-color: var(--primary-catalyst-yellow-color);
|
|
130
|
+
}
|
|
131
|
+
&:disabled {
|
|
132
|
+
background-color: var(--neutral-button-color);
|
|
133
|
+
color: var(--neutral-anchor-color);
|
|
134
|
+
border-color: var(--neutral-button-color);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.transparent {
|
|
139
|
+
color: var(--main-white-color);
|
|
140
|
+
border: solid 1px var(--main-white-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.cancel {
|
|
144
|
+
color: var(--neutral-anchor-color);
|
|
145
|
+
background: var(--neutral-button-color);
|
|
146
|
+
border: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.link {
|
|
150
|
+
@include link-styles;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.hybrid {
|
|
154
|
+
@include media(mobileBreakPointTreshold) {
|
|
155
|
+
@include link-styles;
|
|
156
|
+
.icon {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.fullWidth {
|
|
163
|
+
width: 100%;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.greyish {
|
|
167
|
+
padding: 10px 8px;
|
|
168
|
+
color: var(--main-black-color);
|
|
169
|
+
background: var(--neutral-button-color);
|
|
170
|
+
border: none;
|
|
171
|
+
font-family: var(--standard-font-family-hero-new);
|
|
172
|
+
font-size: 0.875rem;
|
|
173
|
+
width: 6.25rem;
|
|
174
|
+
height: 2.35rem;
|
|
175
|
+
transition: background-color 125ms ease-in-out;
|
|
176
|
+
> .title {
|
|
177
|
+
white-space: nowrap;
|
|
178
|
+
font-family: var(--standard-font-family-hero-new);
|
|
179
|
+
font-size: 14px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&.small {
|
|
183
|
+
height: 2rem;
|
|
184
|
+
width: 5.5rem;
|
|
185
|
+
|
|
186
|
+
@include media(mobileBreakPointTreshold) {
|
|
187
|
+
min-width: auto;
|
|
188
|
+
max-width: 4.8rem;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.active {
|
|
193
|
+
background-color: var(--primary-balanced-teal-color);
|
|
194
|
+
color: var(--main-white-color);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@include media(mobileBreakPointTreshold) {
|
|
198
|
+
min-width: 100%;
|
|
199
|
+
width: auto;
|
|
200
|
+
max-height: 2rem;
|
|
201
|
+
padding: 0;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.start {
|
|
206
|
+
flex-direction: row;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.end {
|
|
210
|
+
flex-direction: row-reverse;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.mat-button-disabled {
|
|
215
|
+
opacity: 0.5;
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.icon {
|
|
220
|
+
mask-repeat: no-repeat;
|
|
221
|
+
mask-size: contain;
|
|
222
|
+
mask-position: center;
|
|
223
|
+
aspect-ratio: 1;
|
|
224
|
+
background: var(--primary-connected-orange-color);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.filled .icon {
|
|
228
|
+
background: var(--main-white-color);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.title {
|
|
232
|
+
font-family: var(--standard-font-family-hero-new-bold);
|
|
233
|
+
font-size: 14px;
|
|
234
|
+
|
|
235
|
+
&.small,
|
|
236
|
+
&.dynamic {
|
|
237
|
+
font-size: 12px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&.medium {
|
|
241
|
+
font-size: 14px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&.x-large {
|
|
245
|
+
font-size: 1.375rem;
|
|
246
|
+
font-family: var(--standard-font-family-hero-new);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&.link {
|
|
250
|
+
font-family: var(--standard-font-family-hero-new-semibold);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@include media(tabletTreshold) {
|
|
254
|
+
font-size: 0.75rem;
|
|
255
|
+
|
|
256
|
+
&.x-large {
|
|
257
|
+
font-size: 1rem;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@include media(mobileBreakPointTreshold) {
|
|
262
|
+
&.large {
|
|
263
|
+
font-family: var(--standard-font-family-hero-new-semibold);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host(.bold) {
|
|
269
|
+
.title {
|
|
270
|
+
font-family: var(--standard-font-family-hero-new-semibold);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:host(.filter) {
|
|
275
|
+
.button {
|
|
276
|
+
&.small {
|
|
277
|
+
min-height: 32px;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.title {
|
|
282
|
+
font-size: 1rem;
|
|
283
|
+
font-family: var(--standard-font-family-hero-new-semibold);
|
|
284
|
+
|
|
285
|
+
@include media(mobileBreakPointTreshold) {
|
|
286
|
+
font-size: 14px;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.button {
|
|
291
|
+
max-width: 6.5rem;
|
|
292
|
+
|
|
293
|
+
@include media(mobileBreakPointTreshold) {
|
|
294
|
+
max-width: 4.5rem;
|
|
295
|
+
max-height: 1.75rem;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
:host(.auto-width) {
|
|
301
|
+
width: auto;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
:host(.full-width) {
|
|
305
|
+
width: 100%;
|
|
306
|
+
}
|
package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.spec.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectButtonComponent } from './af-connect-button.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectButtonComponent', () => {
|
|
6
|
+
let component: AfConnectButtonComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectButtonComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectButtonComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectButtonComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
package/projects/af-connect-components/src/lib/af-connect-button/af-connect-button.component.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { EmitValue } from '../constants/base.constants';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'lib-af-connect-button',
|
|
6
|
+
templateUrl: './af-connect-button.component.html',
|
|
7
|
+
styleUrls: ['./af-connect-button.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class AfConnectButtonComponent {
|
|
10
|
+
@Input() isActive: boolean;
|
|
11
|
+
@Input() emitValue: EmitValue;
|
|
12
|
+
@Input() title = '';
|
|
13
|
+
@Input() disabled: boolean;
|
|
14
|
+
@Input() hybrid: boolean;
|
|
15
|
+
@Input() fullWidth: boolean;
|
|
16
|
+
@Input() size: 'small' | 'medium' | 'large' | 'x-large' | 'block' | 'dynamic' = 'small';
|
|
17
|
+
@Input() variant: 'outlined' | 'filled' | 'transparent' | 'link' | 'cancel' | 'greyish' = 'outlined';
|
|
18
|
+
@Input() iconSrc: string;
|
|
19
|
+
@Input() iconSize = 14;
|
|
20
|
+
@Input() iconPosition: 'start' | 'end' = 'start';
|
|
21
|
+
@Input() activeItem: string;
|
|
22
|
+
@Output() clickBtn = new EventEmitter<string>();
|
|
23
|
+
|
|
24
|
+
ngOnInit(): void {}
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<div [class]="['card-header', variant]" (click)="toggleMobileContent()">
|
|
2
|
+
<div class="title-container">
|
|
3
|
+
<div class="inner-title-container">
|
|
4
|
+
<div class="heading-container">
|
|
5
|
+
<span>{{ title }}</span>
|
|
6
|
+
<ng-content select="[headingChip]"></ng-content>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="chip-container">
|
|
9
|
+
<ng-content select="[chip]"></ng-content>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="subtitle" [class]="[subtitleColor]">{{ subTitle }}</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="buttons-container">
|
|
15
|
+
<ng-content></ng-content>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div *ngIf="!hideBorderLine" [class]="['border-line', variant]"></div>
|
|
20
|
+
|