af-connect-components 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -266
- 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 -2154
- package/fesm2015/af-connect-components.mjs.map +0 -1
- package/fesm2020/af-connect-components.mjs +0 -2146
- 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 -152
- 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,120 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, Input, forwardRef, Injector, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl, NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import { toggleButtonAnimation, toggleBackgroundAnimation } from '../constants/animation.constants';
|
|
4
|
+
import { EmitValue } from '../constants/base.constants';
|
|
5
|
+
|
|
6
|
+
const NEUTRAL_BUTTON_COLOR = '#F3F3F3';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'lib-af-connect-toggle-button',
|
|
10
|
+
templateUrl: './af-connect-toggle-button.component.html',
|
|
11
|
+
styleUrls: ['./af-connect-toggle-button.component.scss'],
|
|
12
|
+
animations: [toggleButtonAnimation, toggleBackgroundAnimation],
|
|
13
|
+
providers: [
|
|
14
|
+
{
|
|
15
|
+
provide: NG_VALUE_ACCESSOR,
|
|
16
|
+
useExisting: forwardRef(() => AfConnectToggleButtonComponent),
|
|
17
|
+
multi: true
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
})
|
|
21
|
+
export class AfConnectToggleButtonComponent {
|
|
22
|
+
@Input() emitValue: EmitValue;
|
|
23
|
+
@Input() label: string;
|
|
24
|
+
@Input() disabled = true;
|
|
25
|
+
@Input() withForm = false;
|
|
26
|
+
@Input() onStateBackground: string = 'var(--primary-connected-orange-color)';
|
|
27
|
+
@Input() offStateBackground: string;
|
|
28
|
+
@Input() onStateText: string;
|
|
29
|
+
@Input() offStateText: string;
|
|
30
|
+
@Input() background: string;
|
|
31
|
+
@Input() position: 'on' | 'off' = 'off';
|
|
32
|
+
@Input() variant: 'ball' | 'full' = 'ball';
|
|
33
|
+
@Output() clickBtn = new EventEmitter<string | null>();
|
|
34
|
+
public control: FormControl;
|
|
35
|
+
|
|
36
|
+
constructor(private injector: Injector, private cdr: ChangeDetectorRef) {}
|
|
37
|
+
|
|
38
|
+
public togglePosition() {
|
|
39
|
+
if (this.position === 'on') this.position = 'off';
|
|
40
|
+
else this.position = 'on';
|
|
41
|
+
|
|
42
|
+
this.propagateChange(this.position === 'on');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public ngAfterViewInit(): void {
|
|
46
|
+
if (this.withForm) {
|
|
47
|
+
const ngControl: NgControl = this.injector.get<NgControl>(NgControl);
|
|
48
|
+
if (ngControl) {
|
|
49
|
+
this.control = ngControl.control as FormControl;
|
|
50
|
+
this.cdr.detectChanges();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private propagateChange: Function = (_: string) => {};
|
|
56
|
+
private propagateTouch: Function = (_: string) => {};
|
|
57
|
+
|
|
58
|
+
public writeValue(): void {}
|
|
59
|
+
|
|
60
|
+
public registerOnChange(fn: any): void {
|
|
61
|
+
this.propagateChange = fn;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public registerOnTouched(fn: any): void {
|
|
65
|
+
this.propagateTouch = fn;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public onBlur(): void {
|
|
69
|
+
this.propagateTouch();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
setDisabledState?(disabled: boolean): void {
|
|
73
|
+
this.disabled = disabled;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public getButtonStyles(): Object {
|
|
77
|
+
if (this.variant === 'full')
|
|
78
|
+
return {
|
|
79
|
+
background: this.background || NEUTRAL_BUTTON_COLOR,
|
|
80
|
+
width: '152px',
|
|
81
|
+
height: '32px',
|
|
82
|
+
borderRadius: '16px'
|
|
83
|
+
};
|
|
84
|
+
else
|
|
85
|
+
return {
|
|
86
|
+
background: this.position === 'on' ? this.onStateBackground : this.offStateBackground
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public getToggleBallStyles(): Object | void {
|
|
91
|
+
if (this.variant === 'full')
|
|
92
|
+
return {
|
|
93
|
+
background: '#15808D',
|
|
94
|
+
width: '76px',
|
|
95
|
+
height: '32px',
|
|
96
|
+
borderRadius: '16px',
|
|
97
|
+
margin: 0
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public getOnStateTextStyles(): Object | void {
|
|
102
|
+
if (this.variant === 'full')
|
|
103
|
+
return {
|
|
104
|
+
zIndex: '2',
|
|
105
|
+
fontSize: '14px',
|
|
106
|
+
marginLeft: '19px',
|
|
107
|
+
color: this.position === 'on' ? '#707070' : '#fff'
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public getOffStateTextStyles(): Object | void {
|
|
112
|
+
if (this.variant === 'full')
|
|
113
|
+
return {
|
|
114
|
+
zIndex: '2',
|
|
115
|
+
fontSize: '14px',
|
|
116
|
+
marginLeft: '16px',
|
|
117
|
+
color: this.position === 'off' ? '#707070' : '#fff'
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.html
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<div
|
|
2
|
+
*ngIf="showContent && additionalShowCondition"
|
|
3
|
+
[ngStyle]="{
|
|
4
|
+
top: top,
|
|
5
|
+
zIndex: zIndex
|
|
6
|
+
}"
|
|
7
|
+
[ngClass]="['tooltip__text__box', position, autoSize ? 'autoSize' : '']"
|
|
8
|
+
>
|
|
9
|
+
<div class="tooltip__text">{{ text }}</div>
|
|
10
|
+
</div>
|
|
11
|
+
<ng-content></ng-content>
|
package/projects/af-connect-components/src/lib/af-connect-tooltip/af-connect-tooltip.component.scss
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
@import '../../styles/breakpoints.scss';
|
|
2
|
+
|
|
3
|
+
.tooltip-text {
|
|
4
|
+
text-align: left;
|
|
5
|
+
color: var(--primary-dark-teal-color);
|
|
6
|
+
font-family: var(--standard-font-family-hero-new-bold);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host {
|
|
10
|
+
width: 100%;
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.display__after {
|
|
15
|
+
content: '';
|
|
16
|
+
z-index: 1;
|
|
17
|
+
position: absolute;
|
|
18
|
+
border-style: solid;
|
|
19
|
+
border-width: 0.6rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.position__top {
|
|
23
|
+
@extend .display__after;
|
|
24
|
+
top: 100%;
|
|
25
|
+
border-color: var(--secondary-egg-shell-color) transparent transparent transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.position__bottom {
|
|
29
|
+
@extend .display__after;
|
|
30
|
+
bottom: 100%;
|
|
31
|
+
border-color: transparent transparent var(--secondary-egg-shell-color) transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.tooltip__text__box {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
width: 19rem;
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
position: absolute;
|
|
41
|
+
text-align: center;
|
|
42
|
+
background: var(--secondary-egg-shell-color);
|
|
43
|
+
border-radius: 1.2rem;
|
|
44
|
+
box-shadow: 0px 10px 30px var(--box-shadow-black-color);
|
|
45
|
+
|
|
46
|
+
&.topRight {
|
|
47
|
+
right: 0;
|
|
48
|
+
bottom: 2.8rem;
|
|
49
|
+
&::after {
|
|
50
|
+
@extend .position__top;
|
|
51
|
+
right: 10%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.topLeft {
|
|
56
|
+
left: 0;
|
|
57
|
+
bottom: 2.8rem;
|
|
58
|
+
&::after {
|
|
59
|
+
@extend .position__top;
|
|
60
|
+
left: 10%;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.topCenter {
|
|
65
|
+
right: -50%;
|
|
66
|
+
bottom: 2.8rem;
|
|
67
|
+
&::after {
|
|
68
|
+
@extend .position__top;
|
|
69
|
+
left: 50%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.bottomLeft {
|
|
74
|
+
left: 0;
|
|
75
|
+
top: 2.8rem;
|
|
76
|
+
&::after {
|
|
77
|
+
@extend .position__bottom;
|
|
78
|
+
left: 10%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.bottomCenter {
|
|
83
|
+
right: -50%;
|
|
84
|
+
top: 2.8rem;
|
|
85
|
+
&::after {
|
|
86
|
+
@extend .position__bottom;
|
|
87
|
+
left: 50%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.bottomRight {
|
|
92
|
+
right: 0;
|
|
93
|
+
top: 2.8rem;
|
|
94
|
+
&::after {
|
|
95
|
+
@extend .position__bottom;
|
|
96
|
+
right: 10%;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.autoSize {
|
|
101
|
+
width: auto;
|
|
102
|
+
height: auto;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.tooltip__text {
|
|
107
|
+
padding: 1rem;
|
|
108
|
+
text-align: justify;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host(.profile-loading__icon) {
|
|
112
|
+
@include media(mobileBreakPointTreshold) {
|
|
113
|
+
.tooltip__text__box {
|
|
114
|
+
left: -2rem;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host(.profile-details-loading__icon) {
|
|
120
|
+
@include media(mobileBreakPointTreshold) {
|
|
121
|
+
.tooltip__text__box {
|
|
122
|
+
left: -9.7rem;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(.empty_state__btn-tooltip) {
|
|
128
|
+
.tooltip__text__box {
|
|
129
|
+
right: -1.85rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.tooltip__text {
|
|
133
|
+
@extend .tooltip-text;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host(.funeral-cover__info-btn-tooltip) {
|
|
138
|
+
.tooltip__text__box {
|
|
139
|
+
right: -1.75rem;
|
|
140
|
+
|
|
141
|
+
@include media(mobileBreakPointTreshold) {
|
|
142
|
+
right: -1.2rem;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.tooltip__text {
|
|
147
|
+
@extend .tooltip-text;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AfConnectTooltipComponent } from './af-connect-tooltip.component';
|
|
4
|
+
|
|
5
|
+
describe('AfConnectTooltipComponent', () => {
|
|
6
|
+
let component: AfConnectTooltipComponent;
|
|
7
|
+
let fixture: ComponentFixture<AfConnectTooltipComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AfConnectTooltipComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AfConnectTooltipComponent);
|
|
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-tooltip/af-connect-tooltip.component.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, HostBinding, HostListener, Input } from '@angular/core';
|
|
2
|
+
import { Position } from './types';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'lib-af-connect-tooltip',
|
|
6
|
+
templateUrl: './af-connect-tooltip.component.html',
|
|
7
|
+
styleUrls: ['./af-connect-tooltip.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class AfConnectTooltipComponent {
|
|
10
|
+
@Input() text: string;
|
|
11
|
+
@Input() position: Position = 'bottomRight';
|
|
12
|
+
@Input() additionalShowCondition: boolean = true;
|
|
13
|
+
@Input() top: string;
|
|
14
|
+
@Input() autoSize: boolean;
|
|
15
|
+
@Input() zIndex: number = 10;
|
|
16
|
+
|
|
17
|
+
public showContent = false;
|
|
18
|
+
|
|
19
|
+
@HostListener('mouseenter') onMouseEnter() {
|
|
20
|
+
this.showContent = !this.showContent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@HostListener('mouseleave') onMouseLeave() {
|
|
24
|
+
this.showContent = false;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@HostListener('click') click() {
|
|
28
|
+
this.showContent = !this.showContent;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// @HostBinding('style.z-index')
|
|
32
|
+
// get zIndexStyle(): number {
|
|
33
|
+
// return this.zIndex;
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Position = 'topLeft' | 'topRight' | 'topCenter' | 'bottomCenter' | 'bottomLeft' | 'bottomRight';
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import {
|
|
2
|
+
trigger,
|
|
3
|
+
state,
|
|
4
|
+
style,
|
|
5
|
+
transition,
|
|
6
|
+
animate,
|
|
7
|
+
query,
|
|
8
|
+
stagger,
|
|
9
|
+
animateChild,
|
|
10
|
+
group,
|
|
11
|
+
sequence
|
|
12
|
+
} from '@angular/animations';
|
|
13
|
+
|
|
14
|
+
const TAB_SLIDER_TIMING_FN = '1000ms cubic-bezier(0.4, 0, 0.2, 1)';
|
|
15
|
+
|
|
16
|
+
export const flyInOutLeftColumn = [
|
|
17
|
+
trigger('flyInOutLeftColumn', [
|
|
18
|
+
state('in', style({ opacity: 0, transform: 'translateY(0)', background: 'blue' })),
|
|
19
|
+
transition('void => *', [style({ opacity: 0, transform: 'translateY(-100%)' }), animate('310ms')]),
|
|
20
|
+
transition('* => void', [animate('310ms', style({ opacity: 0, transform: 'translateY(-100%)' }))])
|
|
21
|
+
])
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
export const flyInOutRightColumn = [
|
|
25
|
+
trigger('flyInOutRightColumn', [
|
|
26
|
+
state('in', style({ opacity: 1, transform: 'translateY(0)' })),
|
|
27
|
+
transition('void => *', [style({ opacity: 0, transform: 'translateY(-100%)' }), animate('310ms 310ms')]),
|
|
28
|
+
transition('* => void', [animate('310ms 310ms', style({ opacity: 0, transform: 'translateY(-100%)' }))])
|
|
29
|
+
])
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
export const fadeAnimationGuide = trigger('fadeAnimation', [
|
|
33
|
+
transition(':enter', [style({ opacity: 0 }), animate('300ms', style({ opacity: 1 }))]),
|
|
34
|
+
transition(':leave', [style({ opacity: 1 }), animate('300ms', style({ opacity: 0 }))])
|
|
35
|
+
]);
|
|
36
|
+
|
|
37
|
+
export const fadeAnimation = trigger('fadeAnimation', [
|
|
38
|
+
transition(':enter', [style({ opacity: 0 }), animate('300ms ease-out', style({ opacity: 1 }))]),
|
|
39
|
+
transition(':leave', [style({ opacity: 1 }), animate('300ms ease-out', style({ opacity: 0 }))])
|
|
40
|
+
]);
|
|
41
|
+
|
|
42
|
+
export const staggerFadeIn = [
|
|
43
|
+
trigger('stagger', [
|
|
44
|
+
transition('* => *', [
|
|
45
|
+
query(':enter', [style({ opacity: 0 }), stagger(100, [animate('0.5s', style({ opacity: 1 }))])], {
|
|
46
|
+
optional: true
|
|
47
|
+
})
|
|
48
|
+
])
|
|
49
|
+
])
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
export const expandableContainer = [
|
|
53
|
+
trigger('expandContainer', [
|
|
54
|
+
transition(':enter', [
|
|
55
|
+
style({ height: '0px', visibility: 'hidden' }),
|
|
56
|
+
animate('300ms ease-out', style({ height: '*', visibility: 'visible' }))
|
|
57
|
+
]),
|
|
58
|
+
transition(':leave', [animate('300ms ease-out', style({ height: '0px', visibility: 'hidden' }))])
|
|
59
|
+
])
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
export const expandableArrow = [
|
|
63
|
+
trigger('expandableArrow', [
|
|
64
|
+
state('collapsed', style({ transform: 'rotate({{direction}}{{collapsedRotation}}deg)' }), {
|
|
65
|
+
params: { collapsedRotation: '0', direction: '' }
|
|
66
|
+
}),
|
|
67
|
+
state('expanded', style({ transform: 'rotate({{direction}}{{expandedRotation}}deg)' }), {
|
|
68
|
+
params: { expandedRotation: '90', direction: '' }
|
|
69
|
+
}),
|
|
70
|
+
transition('expanded <=> collapsed', animate('{{getNumberSpeed}}ms ease-out'), {
|
|
71
|
+
params: { getNumberSpeed: 300 }
|
|
72
|
+
}),
|
|
73
|
+
transition('collapsed <=> expanded', animate('{{getNumberSpeed}}ms ease-out'), {
|
|
74
|
+
params: { getNumberSpeed: 300 }
|
|
75
|
+
})
|
|
76
|
+
])
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
export const selectAnimation = [
|
|
80
|
+
trigger('selectAnimation', [
|
|
81
|
+
state('collapsed', style({ height: '0px', minHeight: '0', visibility: 'hidden', border: 'none' })),
|
|
82
|
+
state('expanded', style({ height: '*' })),
|
|
83
|
+
transition('expanded <=> collapsed', animate('180ms cubic-bezier(0.8, 0.5, 0.7, 1.0)'))
|
|
84
|
+
])
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
export const tabSlider = [
|
|
88
|
+
trigger('tabSlider', [
|
|
89
|
+
state('in-from-left', style({ opacity: 1 })),
|
|
90
|
+
state('in-from-right', style({ opacity: 1 })),
|
|
91
|
+
state('out-to-left', style({ opacity: 0, transform: 'translateX(0)' })),
|
|
92
|
+
state('out-to-right', style({ opacity: 0, transform: 'translateX(0)' })),
|
|
93
|
+
transition('* => out-to-right', animate(TAB_SLIDER_TIMING_FN, style({ transform: 'translateX(100%)' }))),
|
|
94
|
+
transition('* => out-to-left', [animate(TAB_SLIDER_TIMING_FN, style({ transform: 'translateX(-100%)' }))]),
|
|
95
|
+
transition('* => in-from-left', [
|
|
96
|
+
sequence([
|
|
97
|
+
style({ transform: 'translateX(-100%)', opacity: 1 }),
|
|
98
|
+
animate(TAB_SLIDER_TIMING_FN, style({ transform: 'translateX(0)' }))
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
transition('* => in-from-right', [
|
|
102
|
+
sequence([
|
|
103
|
+
style({ transform: 'translateX(100%)', opacity: 1 }),
|
|
104
|
+
animate(TAB_SLIDER_TIMING_FN, style({ transform: 'translateX(0)' }))
|
|
105
|
+
])
|
|
106
|
+
])
|
|
107
|
+
])
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
export const toggleButtonAnimation = [
|
|
111
|
+
trigger('toggleButton', [
|
|
112
|
+
state('on', style({ transform: 'translateX(100%)' })),
|
|
113
|
+
state('off', style({ transform: 'translateX(0)' })),
|
|
114
|
+
transition('on <=> off', animate('300ms ease-out'))
|
|
115
|
+
])
|
|
116
|
+
];
|
|
117
|
+
|
|
118
|
+
export const toggleBackgroundAnimation = [
|
|
119
|
+
trigger('toggleBackground', [
|
|
120
|
+
state('on', style({ background: 'var(--primary-connected-orange-color)' })),
|
|
121
|
+
state('off', style({ background: 'var(--toggle-button-grey-color)' })),
|
|
122
|
+
transition('on <=> off', [group([query('@toggleButton', [animateChild()]), animate('300ms ease-out')])])
|
|
123
|
+
])
|
|
124
|
+
];
|
|
125
|
+
|
|
126
|
+
export const flyInOut = [
|
|
127
|
+
trigger('flyInOut', [
|
|
128
|
+
state('in', style({ opacity: 1, transform: 'translateY(0)' })),
|
|
129
|
+
transition('void => *', [style({ opacity: 0, transform: 'translateY(-100%)' }), animate(200)]),
|
|
130
|
+
transition('* => void', [animate(200, style({ opacity: 0, transform: 'translateY(-100%)' }))])
|
|
131
|
+
])
|
|
132
|
+
];
|
|
133
|
+
|
|
134
|
+
export const fadeInFromBottom = [
|
|
135
|
+
trigger('fadeInFromBottom', [
|
|
136
|
+
state('void', style({ opacity: 0.3, transform: 'translateY(90%)' })), // Initial state for :enter
|
|
137
|
+
state('enter', style({ opacity: 1, transform: 'translateY(0)' })), // Final state for :enter
|
|
138
|
+
transition(
|
|
139
|
+
'void => enter',
|
|
140
|
+
[
|
|
141
|
+
style({ opacity: 0.3, transform: 'translateY(90%)' }),
|
|
142
|
+
animate('1000ms {{delay}}ms ease-in-out', style({ opacity: 1, transform: 'translateY(0)' }))
|
|
143
|
+
],
|
|
144
|
+
{
|
|
145
|
+
params: { delay: '0' }
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
])
|
|
149
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type EmitValue = 'isCloseModal' | '';
|
|
2
|
+
export const DISCLAIMER = 'DISCLAIMER';
|
|
3
|
+
export const EMPTY_LINE = '--';
|
|
4
|
+
export const INPUT_MAX_LENGTH = 20;
|
|
5
|
+
export const INPUT_NAME_MAX_LENGTH = 60;
|
|
6
|
+
export const PHONE_INPUT_LENGTH = 10;
|
|
7
|
+
export const EMAIL_INPUT_MAX_LENGTH = 60;
|
|
8
|
+
export const CONTACT_DETAILS_INPUT_MAX_LENGTH = 60;
|
|
9
|
+
export const IDLE_TIMEOUT_DURATION_IN_MINUTES = 15;
|
|
10
|
+
export const IDLE_MODAL_TIMER_DURATION_IN_MINUTES = 5;
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ExpandableWrapperComponent } from './afc-expandable-wrapper.component';
|
|
4
|
+
|
|
5
|
+
describe('ExpandableWrapperComponent', () => {
|
|
6
|
+
let component: ExpandableWrapperComponent;
|
|
7
|
+
let fixture: ComponentFixture<ExpandableWrapperComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ExpandableWrapperComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
|
|
14
|
+
fixture = TestBed.createComponent(ExpandableWrapperComponent);
|
|
15
|
+
component = fixture.componentInstance;
|
|
16
|
+
fixture.detectChanges();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should create', () => {
|
|
20
|
+
expect(component).toBeTruthy();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, take } from 'rxjs';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'afc-expandable-wrapper',
|
|
6
|
+
templateUrl: './afc-expandable-wrapper.component.html',
|
|
7
|
+
styleUrls: ['./afc-expandable-wrapper.component.scss'],
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
+
})
|
|
10
|
+
export class ExpandableWrapperComponent {
|
|
11
|
+
public isExpanded$ = new BehaviorSubject<boolean | null>(null);
|
|
12
|
+
|
|
13
|
+
toggleIsExpanded() {
|
|
14
|
+
this.isExpanded$
|
|
15
|
+
.pipe(take(1))
|
|
16
|
+
.subscribe((current) => {
|
|
17
|
+
this.isExpanded$.next(!current);
|
|
18
|
+
})
|
|
19
|
+
.unsubscribe();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<span class="expandable-arrow" #arrow>
|
|
2
|
+
<svg
|
|
3
|
+
[@expandableArrow]="{
|
|
4
|
+
value: (wrapper && wrapper.isExpanded$ | async) ? 'expanded' : 'collapsed',
|
|
5
|
+
params: {
|
|
6
|
+
collapsedRotation,
|
|
7
|
+
expandedRotation
|
|
8
|
+
}
|
|
9
|
+
}"
|
|
10
|
+
id="icons_next" data-name="icons/next" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
11
|
+
<rect id="bg" width="24" height="24" fill="none"/>
|
|
12
|
+
<path id="union" d="M1597.541-4.4l-5.929-5.93a.742.742,0,0,1-.081-.07.747.747,0,0,1-.219-.536.747.747,0,0,1,.219-.535.751.751,0,0,1,.078-.068l5.932-5.932a.751.751,0,0,1,1.061,0,.751.751,0,0,1,0,1.061l-5.476,5.475,5.476,5.475a.751.751,0,0,1,0,1.061.749.749,0,0,1-.531.219A.749.749,0,0,1,1597.541-4.4Z" transform="translate(1607.832 1.052) rotate(180)" [attr.fill]="color"/>
|
|
13
|
+
</svg>
|
|
14
|
+
</span>
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { ExpandableArrowComponent } from './expandable-arrow.component';
|
|
3
|
+
|
|
4
|
+
describe('ExpandableArrowComponent', () => {
|
|
5
|
+
let component: ExpandableArrowComponent;
|
|
6
|
+
let fixture: ComponentFixture<ExpandableArrowComponent>;
|
|
7
|
+
|
|
8
|
+
beforeEach(async () => {
|
|
9
|
+
await TestBed.configureTestingModule({
|
|
10
|
+
declarations: [ ExpandableArrowComponent ]
|
|
11
|
+
})
|
|
12
|
+
.compileComponents();
|
|
13
|
+
|
|
14
|
+
fixture = TestBed.createComponent(ExpandableArrowComponent);
|
|
15
|
+
component = fixture.componentInstance;
|
|
16
|
+
fixture.detectChanges();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should create', () => {
|
|
20
|
+
expect(component).toBeTruthy();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { animate, style, transition, trigger, state } from '@angular/animations';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ElementRef, Host, HostListener, Input, OnInit, Optional, ViewChild } from '@angular/core';
|
|
3
|
+
import { ExpandableWrapperComponent } from '../afc-expandable-wrapper/afc-expandable-wrapper.component';
|
|
4
|
+
|
|
5
|
+
export enum AnimationPosition {
|
|
6
|
+
right = 0,
|
|
7
|
+
bottom = 90,
|
|
8
|
+
left = 180,
|
|
9
|
+
top = 270,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'afc-expandable-arrow',
|
|
14
|
+
templateUrl: './expandable-arrow.component.html',
|
|
15
|
+
styleUrls: ['./expandable-arrow.component.scss'],
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
+
animations: [trigger('expandableArrow', [
|
|
18
|
+
state('collapsed', style({ transform: 'rotate({{collapsedRotation}}deg)' }), { params: {collapsedRotation: '0'} }),
|
|
19
|
+
state('expanded', style({ transform: 'rotate({{expandedRotation}}deg)' }), { params: {expandedRotation: '90'} }),
|
|
20
|
+
transition('expanded <=> collapsed', animate('300ms ease-out')),
|
|
21
|
+
transition('collapsed <=> expanded', animate('300ms ease-out'))
|
|
22
|
+
])]
|
|
23
|
+
})
|
|
24
|
+
export class ExpandableArrowComponent implements OnInit {
|
|
25
|
+
@Input() color: string = '#454f63';
|
|
26
|
+
@Input() startPosition: 'right' | 'bottom' | 'left' | 'top' = 'right';
|
|
27
|
+
@Input() endPosition: 'right' | 'bottom' | 'left' | 'top' = 'bottom';
|
|
28
|
+
|
|
29
|
+
public collapsedRotation = AnimationPosition['right'];
|
|
30
|
+
public expandedRotation = AnimationPosition['bottom'];
|
|
31
|
+
|
|
32
|
+
constructor(@Host() @Optional() public wrapper: ExpandableWrapperComponent) { }
|
|
33
|
+
|
|
34
|
+
ngOnInit(): void {
|
|
35
|
+
this.collapsedRotation = AnimationPosition[this.startPosition];
|
|
36
|
+
this.expandedRotation = AnimationPosition[this.endPosition];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ExpandableContainerComponent } from './expandable-container.component';
|
|
4
|
+
|
|
5
|
+
describe('ExpandableContainerComponent', () => {
|
|
6
|
+
let component: ExpandableContainerComponent;
|
|
7
|
+
let fixture: ComponentFixture<ExpandableContainerComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ ExpandableContainerComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ExpandableContainerComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|