aeb-ui-kit 0.0.116 → 0.0.117
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/.babelrc +3 -0
- package/.ci/Chart/values.dev.yaml +17 -0
- package/.ci/Chart/values.mr.yaml +12 -0
- package/.ci/Chart/values.prod.yaml +23 -0
- package/.ci/Components/UI.yml +28 -0
- package/.ci/Deployments.yml +69 -0
- package/.editorconfig +16 -0
- package/.gitlab-ci.yml +35 -0
- package/.storybook/main.js +11 -0
- package/.storybook/manager.js +11 -0
- package/.storybook/preview.js +4 -0
- package/.storybook/tsconfig.json +20 -0
- package/.storybook/typings.d.ts +4 -0
- package/Dockerfile +12 -0
- package/README.md +15 -22
- package/angular.json +51 -0
- package/debug.log +1 -0
- package/documentation.json +12382 -0
- package/gulpfile.babel.js +23 -0
- package/nginx/default.conf +27 -0
- package/package-lock.json +24398 -0
- package/package.json +85 -21
- package/projects/aeb-ui-kit/README.md +24 -0
- package/projects/aeb-ui-kit/karma.conf.js +32 -0
- package/projects/aeb-ui-kit/ng-package.json +8 -0
- package/projects/aeb-ui-kit/package.json +13 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/fonts/LICENSE.txt +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/fonts/Roboto-Bold.ttf +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/fonts/Roboto-Medium.ttf +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/fonts/Roboto-Regular.ttf +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/arrow_down/arrow_down_blue.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/arrow_down/arrow_down_gray.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/arrow_down/arrow_down_turquoise.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/arrow_down/arrow_down_white.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/attach/passport_primary.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/attach/passport_secondary.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/background-search.png +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/clip.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/clip_blue.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/close.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-add.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-back.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-blocked.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-checked.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-download.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-edit.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-failure.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-more.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-rework.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-spinner.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-subtract.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-success.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-time.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/icon-trash.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/info.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/nt-icon.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/visa/icon_failure.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/visa/icon_time.svg +0 -0
- package/{assets → projects/aeb-ui-kit/src/assets}/images/visa/success_icon.svg +0 -0
- package/{index.d.ts → projects/aeb-ui-kit/src/index.ts} +0 -0
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.html +41 -0
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.scss +53 -0
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.ts +44 -0
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.stories.ts +41 -0
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.html +9 -0
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.scss +13 -0
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.ts +19 -0
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.stories.ts +73 -0
- package/projects/aeb-ui-kit/src/lib/aeb-ui-kit.module.ts +116 -0
- package/projects/aeb-ui-kit/src/lib/button/button.component.html +6 -0
- package/projects/aeb-ui-kit/src/lib/button/button.component.scss +125 -0
- package/projects/aeb-ui-kit/src/lib/button/button.component.spec.ts +24 -0
- package/projects/aeb-ui-kit/src/lib/button/button.component.ts +33 -0
- package/projects/aeb-ui-kit/src/lib/button/button.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/button/button.stories.ts +45 -0
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.html +34 -0
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.scss +173 -0
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.spec.ts +24 -0
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.ts +112 -0
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.stories.ts +64 -0
- package/projects/aeb-ui-kit/src/lib/click-outside/click-outside.directive.ts +47 -0
- package/projects/aeb-ui-kit/src/lib/click-outside/click-outside.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/click-outside/click-outside.stories.ts +29 -0
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.html +139 -0
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.scss +190 -0
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.ts +93 -0
- package/projects/aeb-ui-kit/src/lib/comment/comment.module.ts +22 -0
- package/projects/aeb-ui-kit/src/lib/comment/comment.stories.ts +141 -0
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.component.html +32 -0
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.component.scss +92 -0
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.component.ts +28 -0
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.module.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.stories.ts +54 -0
- package/{lib/credit-item-card/models/IProductItemCard.d.ts → projects/aeb-ui-kit/src/lib/credit-item-card/models/IProductItemCard.ts} +1 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.html +141 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.scss +70 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.ts +161 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.html +34 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.scss +66 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.ts +53 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.html +34 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.scss +55 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.ts +94 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.html +65 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.scss +45 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.ts +423 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.module.ts +43 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.stories.ts +137 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/pipes/date-to-str.pipe.spec.ts +8 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/pipes/date-to-str.pipe.ts +13 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/services/datepicker-utils.service.spec.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/services/datepicker-utils.service.ts +218 -0
- package/projects/aeb-ui-kit/src/lib/datepicker/services/mask-utils.service.ts +69 -0
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.component.html +48 -0
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.component.scss +117 -0
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.component.ts +115 -0
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.module.ts +11 -0
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.stories.ts +47 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/directives/numbers-only.directive.ts +64 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.html +30 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.scss +77 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.ts +168 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.module.ts +24 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.stories.ts +35 -0
- package/projects/aeb-ui-kit/src/lib/field-slider/pipes/replace.pipe.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/file-attach/directives/drag-and-drop.directive.ts +41 -0
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.html +56 -0
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.scss +149 -0
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.ts +67 -0
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.stories.ts +45 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.html +9 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.scss +20 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.ts +32 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.html +10 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.scss +5 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.ts +47 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.module.ts +15 -0
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.stories.ts +106 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.html +31 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.scss +41 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.ts +51 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.html +14 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.scss +42 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.ts +67 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.html +46 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.scss +74 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.ts +29 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.html +16 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.scss +14 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.ts +26 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer.module.ts +22 -0
- package/projects/aeb-ui-kit/src/lib/footer/footer.stories.ts +97 -0
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.component.html +9 -0
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.component.scss +181 -0
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.component.ts +83 -0
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.stories.ts +95 -0
- package/projects/aeb-ui-kit/src/lib/form-field/icon.directive.ts +8 -0
- package/projects/aeb-ui-kit/src/lib/form-field/input.directive.ts +68 -0
- package/projects/aeb-ui-kit/src/lib/form-field/label.directive.ts +8 -0
- package/projects/aeb-ui-kit/src/lib/form-field/textarea.directive.ts +68 -0
- package/projects/aeb-ui-kit/src/lib/header/header.component.html +1 -0
- package/projects/aeb-ui-kit/src/lib/header/header.component.scss +43 -0
- package/projects/aeb-ui-kit/src/lib/header/header.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/header/header.component.ts +20 -0
- package/projects/aeb-ui-kit/src/lib/header/header.module.ts +11 -0
- package/projects/aeb-ui-kit/src/lib/header/header.stories.ts +27 -0
- package/projects/aeb-ui-kit/src/lib/header/logo.component.html +20 -0
- package/projects/aeb-ui-kit/src/lib/header/logo.component.scss +6 -0
- package/projects/aeb-ui-kit/src/lib/header/logo.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/header/logo.component.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.html +15 -0
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.scss +25 -0
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.ts +31 -0
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.html +3 -0
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.scss +6 -0
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.ts +18 -0
- package/projects/aeb-ui-kit/src/lib/heading/heading.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/heading/heading.stories.ts +174 -0
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.html +18 -0
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.scss +20 -0
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.ts +30 -0
- package/projects/aeb-ui-kit/src/lib/label/label.component.html +10 -0
- package/projects/aeb-ui-kit/src/lib/label/label.component.scss +23 -0
- package/projects/aeb-ui-kit/src/lib/label/label.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/label/label.component.ts +13 -0
- package/projects/aeb-ui-kit/src/lib/label/label.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/label/label.stories.ts +21 -0
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.component.html +28 -0
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.component.scss +113 -0
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.component.ts +59 -0
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.module.ts +12 -0
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.stories.ts +107 -0
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.html +67 -0
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.scss +96 -0
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.ts +202 -0
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.module.ts +18 -0
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.stories.ts +118 -0
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.html +46 -0
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.scss +54 -0
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.ts +46 -0
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.module.ts +12 -0
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.stories.ts +127 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.html +7 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.scss +93 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.ts +20 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.module.ts +19 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.stories.ts +126 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/services/domservice.service.spec.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/services/domservice.service.ts +59 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/tooltip.directive.spec.ts +8 -0
- package/projects/aeb-ui-kit/src/lib/new-tooltip/tooltip.directive.ts +195 -0
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.html +8 -0
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.scss +28 -0
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.ts +19 -0
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.module.ts +12 -0
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.stories.ts +46 -0
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.component.html +20 -0
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.component.scss +54 -0
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.component.ts +34 -0
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.stories.ts +36 -0
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.html +110 -0
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.scss +173 -0
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.ts +191 -0
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.module.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.stories.ts +63 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.html +22 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.scss +35 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.ts +33 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.directive.spec.ts +8 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.directive.ts +70 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.module.ts +13 -0
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.stories.ts +211 -0
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.html +26 -0
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.scss +112 -0
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.ts +69 -0
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.stories.ts +101 -0
- package/projects/aeb-ui-kit/src/lib/search/highlight.pipe.spec.ts +8 -0
- package/projects/aeb-ui-kit/src/lib/search/highlight.pipe.ts +13 -0
- package/projects/aeb-ui-kit/src/lib/search/search.component.html +85 -0
- package/projects/aeb-ui-kit/src/lib/search/search.component.scss +133 -0
- package/projects/aeb-ui-kit/src/lib/search/search.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/search/search.component.ts +80 -0
- package/projects/aeb-ui-kit/src/lib/search/search.module.ts +15 -0
- package/projects/aeb-ui-kit/src/lib/search/search.stories.ts +118 -0
- package/projects/aeb-ui-kit/src/lib/select/option.component.html +5 -0
- package/projects/aeb-ui-kit/src/lib/select/option.component.ts +36 -0
- package/projects/aeb-ui-kit/src/lib/select/select.component.html +86 -0
- package/projects/aeb-ui-kit/src/lib/select/select.component.scss +154 -0
- package/projects/aeb-ui-kit/src/lib/select/select.component.ts +133 -0
- package/projects/aeb-ui-kit/src/lib/select/select.module.ts +12 -0
- package/projects/aeb-ui-kit/src/lib/select/select.stories.ts +40 -0
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.html +53 -0
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.scss +206 -0
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.ts +31 -0
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.stories.ts +101 -0
- package/projects/aeb-ui-kit/src/lib/slider/pipes/replace.pipe.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/slider/slider.component.html +19 -0
- package/projects/aeb-ui-kit/src/lib/slider/slider.component.scss +85 -0
- package/projects/aeb-ui-kit/src/lib/slider/slider.component.ts +169 -0
- package/projects/aeb-ui-kit/src/lib/slider/slider.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/slider/slider.stories.ts +41 -0
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.html +19 -0
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.scss +90 -0
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.ts +13 -0
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.stories.ts +21 -0
- package/projects/aeb-ui-kit/src/lib/table/table.component.html +72 -0
- package/projects/aeb-ui-kit/src/lib/table/table.component.scss +52 -0
- package/projects/aeb-ui-kit/src/lib/table/table.component.ts +28 -0
- package/projects/aeb-ui-kit/src/lib/table/table.model.ts +35 -0
- package/projects/aeb-ui-kit/src/lib/table/table.module.ts +11 -0
- package/projects/aeb-ui-kit/src/lib/table/table.pipe.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/table/table.stories.ts +165 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tab.directive.spec.ts +8 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tab.directive.ts +16 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.html +32 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.scss +46 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.spec.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.ts +84 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.module.ts +14 -0
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.stories.ts +83 -0
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.component.html +1 -0
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.component.scss +22 -0
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.component.ts +15 -0
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.module.ts +12 -0
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.stories.ts +25 -0
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.html +8 -0
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.scss +274 -0
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.spec.ts +24 -0
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.ts +31 -0
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.module.ts +10 -0
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.stories.ts +47 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa-item.component.html +59 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa-item.component.ts +11 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa-span.directive.ts +21 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa.component.html +8 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa.component.scss +89 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa.component.ts +21 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa.module.ts +24 -0
- package/projects/aeb-ui-kit/src/lib/visa/visa.stories.ts +70 -0
- package/projects/aeb-ui-kit/src/lib/wizard/wizard-step.component.html +3 -0
- package/projects/aeb-ui-kit/src/lib/wizard/wizard-step.component.ts +22 -0
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.component.html +56 -0
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.component.scss +142 -0
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.component.ts +97 -0
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.module.ts +11 -0
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.stories.ts +54 -0
- package/{public-api.d.ts → projects/aeb-ui-kit/src/public-api.ts} +41 -0
- package/projects/aeb-ui-kit/src/styles/styles.scss +12 -0
- package/projects/aeb-ui-kit/src/styles/typography.scss +20 -0
- package/{styles.css → projects/aeb-ui-kit/src/styles/variables.scss} +69 -84
- package/projects/aeb-ui-kit/src/test.ts +26 -0
- package/projects/aeb-ui-kit/tsconfig.lib.json +24 -0
- package/projects/aeb-ui-kit/tsconfig.lib.prod.json +7 -0
- package/projects/aeb-ui-kit/tsconfig.spec.json +17 -0
- package/projects/aeb-ui-kit/tslint.json +17 -0
- package/tsconfig.base.json +25 -0
- package/tsconfig.json +17 -0
- package/tslint.json +140 -0
- package/aeb-ui-kit.d.ts +0 -21
- package/aeb-ui-kit.metadata.json +0 -1
- package/bundles/aeb-ui-kit.umd.js +0 -4828
- package/bundles/aeb-ui-kit.umd.js.map +0 -1
- package/bundles/aeb-ui-kit.umd.min.js +0 -17
- package/bundles/aeb-ui-kit.umd.min.js.map +0 -1
- package/esm2015/aeb-ui-kit.js +0 -22
- package/esm2015/index.js +0 -2
- package/esm2015/lib/accordion/accordion.component.js +0 -35
- package/esm2015/lib/accordion/accordion.module.js +0 -15
- package/esm2015/lib/action-bar/action-bar.component.js +0 -20
- package/esm2015/lib/action-bar/action-bar.module.js +0 -15
- package/esm2015/lib/aeb-ui-kit.module.js +0 -119
- package/esm2015/lib/button/button.component.js +0 -31
- package/esm2015/lib/button/button.module.js +0 -13
- package/esm2015/lib/checkbox/checkbox.component.js +0 -97
- package/esm2015/lib/checkbox/checkbox.module.js +0 -13
- package/esm2015/lib/click-outside/click-outside.directive.js +0 -44
- package/esm2015/lib/click-outside/click-outside.module.js +0 -13
- package/esm2015/lib/comment/comment.component.js +0 -53
- package/esm2015/lib/comment/comment.module.js +0 -25
- package/esm2015/lib/credit-item-card/credit-item-card.component.js +0 -26
- package/esm2015/lib/credit-item-card/credit-item-card.module.js +0 -17
- package/esm2015/lib/credit-item-card/models/IProductItemCard.js +0 -2
- package/esm2015/lib/datepicker/datepicker-core/datepicker-core.component.js +0 -135
- package/esm2015/lib/datepicker/datepicker-month/datepicker-month.component.js +0 -52
- package/esm2015/lib/datepicker/datepicker-tiles/datepicker-tiles.component.js +0 -81
- package/esm2015/lib/datepicker/datepicker.component.js +0 -337
- package/esm2015/lib/datepicker/datepicker.module.js +0 -43
- package/esm2015/lib/datepicker/pipes/date-to-str.pipe.js +0 -13
- package/esm2015/lib/datepicker/services/datepicker-utils.service.js +0 -149
- package/esm2015/lib/datepicker/services/mask-utils.service.js +0 -61
- package/esm2015/lib/dropdown/dropdown.component.js +0 -91
- package/esm2015/lib/dropdown/dropdown.module.js +0 -14
- package/esm2015/lib/field-slider/directives/numbers-only.directive.js +0 -64
- package/esm2015/lib/field-slider/field-slider.component.js +0 -152
- package/esm2015/lib/field-slider/field-slider.module.js +0 -25
- package/esm2015/lib/field-slider/pipes/replace.pipe.js +0 -15
- package/esm2015/lib/file-attach/directives/drag-and-drop.directive.js +0 -40
- package/esm2015/lib/file-attach/file-attach.component.js +0 -63
- package/esm2015/lib/file-attach/file-attach.module.js +0 -15
- package/esm2015/lib/filter-tags/filter-tag/filter-tag.component.js +0 -27
- package/esm2015/lib/filter-tags/filter-tags.component.js +0 -33
- package/esm2015/lib/filter-tags/filter-tags.module.js +0 -16
- package/esm2015/lib/footer/footer-bottom/footer-bottom.component.js +0 -41
- package/esm2015/lib/footer/footer-menu/footer-menu.component.js +0 -57
- package/esm2015/lib/footer/footer-top/footer-top.component.js +0 -24
- package/esm2015/lib/footer/footer.component.js +0 -22
- package/esm2015/lib/footer/footer.module.js +0 -23
- package/esm2015/lib/form-field/form-field.component.js +0 -73
- package/esm2015/lib/form-field/form-field.module.js +0 -17
- package/esm2015/lib/form-field/icon.directive.js +0 -11
- package/esm2015/lib/form-field/input.directive.js +0 -55
- package/esm2015/lib/form-field/label.directive.js +0 -11
- package/esm2015/lib/form-field/textarea.directive.js +0 -55
- package/esm2015/lib/header/header.component.js +0 -23
- package/esm2015/lib/header/header.module.js +0 -14
- package/esm2015/lib/header/logo.component.js +0 -18
- package/esm2015/lib/heading/breadcrumps/breadcrumps.component.js +0 -26
- package/esm2015/lib/heading/heading.component.js +0 -19
- package/esm2015/lib/heading/heading.module.js +0 -17
- package/esm2015/lib/heading/product-title/product-title.component.js +0 -25
- package/esm2015/lib/label/label.component.js +0 -15
- package/esm2015/lib/label/label.module.js +0 -13
- package/esm2015/lib/new-button/new-button.component.js +0 -51
- package/esm2015/lib/new-button/new-button.module.js +0 -13
- package/esm2015/lib/new-dropdown/new-dropdown.component.js +0 -162
- package/esm2015/lib/new-dropdown/new-dropdown.module.js +0 -21
- package/esm2015/lib/new-notifications/new-notifications.component.js +0 -32
- package/esm2015/lib/new-notifications/new-notifications.module.js +0 -15
- package/esm2015/lib/new-tooltip/new-tooltip.component.js +0 -21
- package/esm2015/lib/new-tooltip/new-tooltip.module.js +0 -20
- package/esm2015/lib/new-tooltip/services/domservice.service.js +0 -44
- package/esm2015/lib/new-tooltip/tooltip.directive.js +0 -146
- package/esm2015/lib/news-card/news-card.component.js +0 -17
- package/esm2015/lib/news-card/news-card.module.js +0 -15
- package/esm2015/lib/notifications/notifications.component.js +0 -24
- package/esm2015/lib/notifications/notifications.module.js +0 -13
- package/esm2015/lib/pagination/pagination.component.js +0 -154
- package/esm2015/lib/pagination/pagination.module.js +0 -19
- package/esm2015/lib/pop-up/pop-up.component.js +0 -25
- package/esm2015/lib/pop-up/pop-up.directive.js +0 -57
- package/esm2015/lib/pop-up/pop-up.module.js +0 -16
- package/esm2015/lib/radio-buttons/radio-buttons.component.js +0 -56
- package/esm2015/lib/radio-buttons/radio-buttons.module.js +0 -15
- package/esm2015/lib/search/highlight.pipe.js +0 -12
- package/esm2015/lib/search/search.component.js +0 -56
- package/esm2015/lib/search/search.module.js +0 -18
- package/esm2015/lib/select/option.component.js +0 -25
- package/esm2015/lib/select/select.component.js +0 -108
- package/esm2015/lib/select/select.module.js +0 -15
- package/esm2015/lib/sidebar/sidebar.component.js +0 -32
- package/esm2015/lib/sidebar/sidebar.module.js +0 -13
- package/esm2015/lib/slider/pipes/replace.pipe.js +0 -15
- package/esm2015/lib/slider/slider.component.js +0 -129
- package/esm2015/lib/slider/slider.module.js +0 -17
- package/esm2015/lib/spinner/spinner.component.js +0 -15
- package/esm2015/lib/spinner/spinner.module.js +0 -13
- package/esm2015/lib/table/table.component.js +0 -27
- package/esm2015/lib/table/table.model.js +0 -2
- package/esm2015/lib/table/table.module.js +0 -14
- package/esm2015/lib/table/table.pipe.js +0 -18
- package/esm2015/lib/tabs/tab.directive.js +0 -18
- package/esm2015/lib/tabs/tabs.component.js +0 -64
- package/esm2015/lib/tabs/tabs.module.js +0 -16
- package/esm2015/lib/tag-tab/tag-tab.component.js +0 -19
- package/esm2015/lib/tag-tab/tag-tab.module.js +0 -13
- package/esm2015/lib/tooltip/tooltip.component.js +0 -29
- package/esm2015/lib/tooltip/tooltip.module.js +0 -13
- package/esm2015/lib/visa/visa-item.component.js +0 -16
- package/esm2015/lib/visa/visa-span.directive.js +0 -26
- package/esm2015/lib/visa/visa.component.js +0 -15
- package/esm2015/lib/visa/visa.module.js +0 -25
- package/esm2015/lib/wizard/wizard-step.component.js +0 -33
- package/esm2015/lib/wizard/wizard.component.js +0 -80
- package/esm2015/lib/wizard/wizard.module.js +0 -14
- package/esm2015/public-api.js +0 -96
- package/fesm2015/aeb-ui-kit.js +0 -4082
- package/fesm2015/aeb-ui-kit.js.map +0 -1
- package/lib/accordion/accordion.component.d.ts +0 -10
- package/lib/accordion/accordion.module.d.ts +0 -2
- package/lib/action-bar/action-bar.component.d.ts +0 -7
- package/lib/action-bar/action-bar.module.d.ts +0 -2
- package/lib/aeb-ui-kit.module.d.ts +0 -2
- package/lib/button/button.component.d.ts +0 -9
- package/lib/button/button.module.d.ts +0 -2
- package/lib/checkbox/checkbox.component.d.ts +0 -29
- package/lib/checkbox/checkbox.module.d.ts +0 -2
- package/lib/click-outside/click-outside.directive.d.ts +0 -12
- package/lib/click-outside/click-outside.module.d.ts +0 -2
- package/lib/comment/comment.component.d.ts +0 -36
- package/lib/comment/comment.module.d.ts +0 -2
- package/lib/credit-item-card/credit-item-card.component.d.ts +0 -10
- package/lib/credit-item-card/credit-item-card.module.d.ts +0 -2
- package/lib/datepicker/datepicker-core/datepicker-core.component.d.ts +0 -38
- package/lib/datepicker/datepicker-month/datepicker-month.component.d.ts +0 -19
- package/lib/datepicker/datepicker-tiles/datepicker-tiles.component.d.ts +0 -28
- package/lib/datepicker/datepicker.component.d.ts +0 -86
- package/lib/datepicker/datepicker.module.d.ts +0 -4
- package/lib/datepicker/pipes/date-to-str.pipe.d.ts +0 -4
- package/lib/datepicker/services/datepicker-utils.service.d.ts +0 -29
- package/lib/datepicker/services/mask-utils.service.d.ts +0 -7
- package/lib/dropdown/dropdown.component.d.ts +0 -39
- package/lib/dropdown/dropdown.module.d.ts +0 -2
- package/lib/field-slider/directives/numbers-only.directive.d.ts +0 -7
- package/lib/field-slider/field-slider.component.d.ts +0 -31
- package/lib/field-slider/field-slider.module.d.ts +0 -2
- package/lib/field-slider/pipes/replace.pipe.d.ts +0 -4
- package/lib/file-attach/directives/drag-and-drop.directive.d.ts +0 -9
- package/lib/file-attach/file-attach.component.d.ts +0 -25
- package/lib/file-attach/file-attach.module.d.ts +0 -2
- package/lib/filter-tags/filter-tag/filter-tag.component.d.ts +0 -9
- package/lib/filter-tags/filter-tags.component.d.ts +0 -14
- package/lib/filter-tags/filter-tags.module.d.ts +0 -2
- package/lib/footer/footer-bottom/footer-bottom.component.d.ts +0 -13
- package/lib/footer/footer-menu/footer-menu.component.d.ts +0 -13
- package/lib/footer/footer-top/footer-top.component.d.ts +0 -8
- package/lib/footer/footer.component.d.ts +0 -7
- package/lib/footer/footer.module.d.ts +0 -2
- package/lib/form-field/form-field.component.d.ts +0 -16
- package/lib/form-field/form-field.module.d.ts +0 -2
- package/lib/form-field/icon.directive.d.ts +0 -3
- package/lib/form-field/input.directive.d.ts +0 -22
- package/lib/form-field/label.directive.d.ts +0 -3
- package/lib/form-field/textarea.directive.d.ts +0 -22
- package/lib/header/header.component.d.ts +0 -6
- package/lib/header/header.module.d.ts +0 -2
- package/lib/header/logo.component.d.ts +0 -5
- package/lib/heading/breadcrumps/breadcrumps.component.d.ts +0 -8
- package/lib/heading/heading.component.d.ts +0 -6
- package/lib/heading/heading.module.d.ts +0 -2
- package/lib/heading/product-title/product-title.component.d.ts +0 -8
- package/lib/label/label.component.d.ts +0 -5
- package/lib/label/label.module.d.ts +0 -2
- package/lib/new-button/new-button.component.d.ts +0 -38
- package/lib/new-button/new-button.module.d.ts +0 -2
- package/lib/new-dropdown/new-dropdown.component.d.ts +0 -42
- package/lib/new-dropdown/new-dropdown.module.d.ts +0 -2
- package/lib/new-notifications/new-notifications.component.d.ts +0 -17
- package/lib/new-notifications/new-notifications.module.d.ts +0 -2
- package/lib/new-tooltip/new-tooltip.component.d.ts +0 -8
- package/lib/new-tooltip/new-tooltip.module.d.ts +0 -2
- package/lib/new-tooltip/services/domservice.service.d.ts +0 -12
- package/lib/new-tooltip/tooltip.directive.d.ts +0 -47
- package/lib/news-card/news-card.component.d.ts +0 -4
- package/lib/news-card/news-card.module.d.ts +0 -2
- package/lib/notifications/notifications.component.d.ts +0 -12
- package/lib/notifications/notifications.module.d.ts +0 -2
- package/lib/pagination/pagination.component.d.ts +0 -32
- package/lib/pagination/pagination.module.d.ts +0 -2
- package/lib/pop-up/pop-up.component.d.ts +0 -9
- package/lib/pop-up/pop-up.directive.d.ts +0 -12
- package/lib/pop-up/pop-up.module.d.ts +0 -2
- package/lib/radio-buttons/radio-buttons.component.d.ts +0 -23
- package/lib/radio-buttons/radio-buttons.module.d.ts +0 -2
- package/lib/search/highlight.pipe.d.ts +0 -4
- package/lib/search/search.component.d.ts +0 -24
- package/lib/search/search.module.d.ts +0 -2
- package/lib/select/option.component.d.ts +0 -10
- package/lib/select/select.component.d.ts +0 -42
- package/lib/select/select.module.d.ts +0 -2
- package/lib/sidebar/sidebar.component.d.ts +0 -9
- package/lib/sidebar/sidebar.module.d.ts +0 -2
- package/lib/slider/pipes/replace.pipe.d.ts +0 -4
- package/lib/slider/slider.component.d.ts +0 -32
- package/lib/slider/slider.module.d.ts +0 -2
- package/lib/spinner/spinner.component.d.ts +0 -5
- package/lib/spinner/spinner.module.d.ts +0 -2
- package/lib/table/table.component.d.ts +0 -9
- package/lib/table/table.model.d.ts +0 -31
- package/lib/table/table.module.d.ts +0 -2
- package/lib/table/table.pipe.d.ts +0 -4
- package/lib/tabs/tab.directive.d.ts +0 -6
- package/lib/tabs/tabs.component.d.ts +0 -21
- package/lib/tabs/tabs.module.d.ts +0 -2
- package/lib/tag-tab/tag-tab.component.d.ts +0 -4
- package/lib/tag-tab/tag-tab.module.d.ts +0 -2
- package/lib/tooltip/tooltip.component.d.ts +0 -8
- package/lib/tooltip/tooltip.module.d.ts +0 -2
- package/lib/visa/visa-item.component.d.ts +0 -6
- package/lib/visa/visa-span.directive.d.ts +0 -6
- package/lib/visa/visa.component.d.ts +0 -5
- package/lib/visa/visa.module.d.ts +0 -2
- package/lib/wizard/wizard-step.component.d.ts +0 -14
- package/lib/wizard/wizard.component.d.ts +0 -19
- package/lib/wizard/wizard.module.d.ts +0 -2
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { ButtonModule } from './button/button.module';
|
|
3
|
+
import { CheckboxModule } from './checkbox/checkbox.module';
|
|
4
|
+
import { SliderModule } from './slider/slider.module';
|
|
5
|
+
import { WizardModule } from './wizard/wizard.module';
|
|
6
|
+
import { FormFieldModule } from './form-field/form-field.module';
|
|
7
|
+
import { DropdownModule } from './dropdown/dropdown.module';
|
|
8
|
+
import { HeaderModule } from './header/header.module';
|
|
9
|
+
import { SidebarModule } from './sidebar/sidebar.module';
|
|
10
|
+
import { TooltipModule } from './tooltip/tooltip.module';
|
|
11
|
+
import { LabelModule } from './label/label.module';
|
|
12
|
+
import { VisaModule } from './visa/visa.module';
|
|
13
|
+
import { SpinnerModule } from './spinner/spinner.module';
|
|
14
|
+
import { NotificationsModule } from './notifications/notifications.module';
|
|
15
|
+
import { SelectModule } from './select/select.module';
|
|
16
|
+
import { NewButtonModule } from './new-button/new-button.module';
|
|
17
|
+
import { FileAttachModule } from './file-attach/file-attach.module';
|
|
18
|
+
import { CreditItemCardModule } from './credit-item-card/credit-item-card.module';
|
|
19
|
+
import { TagTabModule } from './tag-tab/tag-tab.module';
|
|
20
|
+
import { FieldSliderModule } from './field-slider/field-slider.module';
|
|
21
|
+
import { TabsModule } from './tabs/tabs.module';
|
|
22
|
+
import { HeadingModule } from './heading/heading.module';
|
|
23
|
+
import { NewTooltipModule } from './new-tooltip/new-tooltip.module';
|
|
24
|
+
import { NewNotificationsModule } from './new-notifications/new-notifications.module';
|
|
25
|
+
import { DatepickerModule } from './datepicker/datepicker.module';
|
|
26
|
+
import { RadioButtonsModule } from './radio-buttons/radio-buttons.module';
|
|
27
|
+
import { AccordionModule } from './accordion/accordion.module';
|
|
28
|
+
import { CommentModule } from './comment/comment.module';
|
|
29
|
+
import { FooterModule } from './footer/footer.module';
|
|
30
|
+
import { PaginationModule } from './pagination/pagination.module';
|
|
31
|
+
import { PopUpModule } from './pop-up/pop-up.module';
|
|
32
|
+
import { FilterTagsModule } from './filter-tags/filter-tags.module';
|
|
33
|
+
import { SearchModule } from './search/search.module';
|
|
34
|
+
import { ActionBarModule } from './action-bar/action-bar.module';
|
|
35
|
+
import { NewsCardModule } from './news-card/news-card.module';
|
|
36
|
+
import { NewDropdownModule } from './new-dropdown/new-dropdown.module';
|
|
37
|
+
import { TableModule } from './table/table.module';
|
|
38
|
+
|
|
39
|
+
@NgModule({
|
|
40
|
+
declarations: [],
|
|
41
|
+
imports: [
|
|
42
|
+
ButtonModule,
|
|
43
|
+
NewButtonModule,
|
|
44
|
+
CheckboxModule,
|
|
45
|
+
DropdownModule,
|
|
46
|
+
HeaderModule,
|
|
47
|
+
SidebarModule,
|
|
48
|
+
SliderModule,
|
|
49
|
+
WizardModule,
|
|
50
|
+
FormFieldModule,
|
|
51
|
+
TooltipModule,
|
|
52
|
+
LabelModule,
|
|
53
|
+
VisaModule,
|
|
54
|
+
SpinnerModule,
|
|
55
|
+
NotificationsModule,
|
|
56
|
+
SelectModule,
|
|
57
|
+
FileAttachModule,
|
|
58
|
+
CreditItemCardModule,
|
|
59
|
+
TagTabModule,
|
|
60
|
+
FieldSliderModule,
|
|
61
|
+
TabsModule,
|
|
62
|
+
HeadingModule,
|
|
63
|
+
NewTooltipModule,
|
|
64
|
+
NewNotificationsModule,
|
|
65
|
+
DatepickerModule,
|
|
66
|
+
RadioButtonsModule,
|
|
67
|
+
AccordionModule,
|
|
68
|
+
CommentModule,
|
|
69
|
+
FooterModule,
|
|
70
|
+
PaginationModule,
|
|
71
|
+
PopUpModule,
|
|
72
|
+
FilterTagsModule,
|
|
73
|
+
SearchModule,
|
|
74
|
+
ActionBarModule,
|
|
75
|
+
NewsCardModule,
|
|
76
|
+
NewDropdownModule,
|
|
77
|
+
TableModule,
|
|
78
|
+
],
|
|
79
|
+
exports: [
|
|
80
|
+
ButtonModule,
|
|
81
|
+
NewButtonModule,
|
|
82
|
+
CheckboxModule,
|
|
83
|
+
DropdownModule,
|
|
84
|
+
HeaderModule,
|
|
85
|
+
SidebarModule,
|
|
86
|
+
SliderModule,
|
|
87
|
+
WizardModule,
|
|
88
|
+
FormFieldModule,
|
|
89
|
+
TooltipModule,
|
|
90
|
+
LabelModule,
|
|
91
|
+
VisaModule,
|
|
92
|
+
SpinnerModule,
|
|
93
|
+
NotificationsModule,
|
|
94
|
+
SelectModule,
|
|
95
|
+
FileAttachModule,
|
|
96
|
+
CreditItemCardModule,
|
|
97
|
+
TagTabModule,
|
|
98
|
+
FieldSliderModule,
|
|
99
|
+
TabsModule,
|
|
100
|
+
HeadingModule,
|
|
101
|
+
DatepickerModule,
|
|
102
|
+
RadioButtonsModule,
|
|
103
|
+
AccordionModule,
|
|
104
|
+
CommentModule,
|
|
105
|
+
FooterModule,
|
|
106
|
+
PaginationModule,
|
|
107
|
+
PopUpModule,
|
|
108
|
+
FilterTagsModule,
|
|
109
|
+
SearchModule,
|
|
110
|
+
ActionBarModule,
|
|
111
|
+
NewsCardModule,
|
|
112
|
+
NewDropdownModule,
|
|
113
|
+
TableModule,
|
|
114
|
+
],
|
|
115
|
+
})
|
|
116
|
+
export class AebUiKitModule {}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.aeb-base-button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
height: 56px;
|
|
6
|
+
line-height: 21px;
|
|
7
|
+
padding: 0 26px;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
border-radius: var(--border-radius-size);
|
|
10
|
+
font-size: 18px;
|
|
11
|
+
user-select: none;
|
|
12
|
+
border-radius: 10px;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
font-weight: normal;
|
|
15
|
+
|
|
16
|
+
&.aeb-default-button {
|
|
17
|
+
background-color: var(--blue);
|
|
18
|
+
color: var(--white);
|
|
19
|
+
border: none;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background-color: var(--blue-hover);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:active {
|
|
26
|
+
background-color: var(--blue-active);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.aeb-white-button {
|
|
31
|
+
background-color: var(--white);
|
|
32
|
+
color: var(--blue);
|
|
33
|
+
border: none;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--white-hover);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:active {
|
|
40
|
+
background-color: var(--white-active);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.aeb-light-button {
|
|
45
|
+
background-color: var(--lightblue);
|
|
46
|
+
color: var(--blue);
|
|
47
|
+
border: none;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: var(--lightblue-hover);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:active {
|
|
54
|
+
background-color: var(--lightblue-active);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.aeb-red-button {
|
|
59
|
+
background-color: var(--lightred);
|
|
60
|
+
color: var(--red);
|
|
61
|
+
border: none;
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: var(--lightred-hover);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:active {
|
|
68
|
+
background-color: var(--lightred-active);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.aeb-link-button {
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
color: var(--blue);
|
|
75
|
+
border: none;
|
|
76
|
+
padding: 0;
|
|
77
|
+
height: auto;
|
|
78
|
+
line-height: normal;
|
|
79
|
+
border-radius: 2px;
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
background-color: transparent;
|
|
83
|
+
text-decoration: underline;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:active {
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.aeb-stroke-button {
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
color: var(--blue);
|
|
95
|
+
border: 2px solid var(--blue);
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
border: 2px solid var(--others-turquoise);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:active {
|
|
102
|
+
border: 2px solid var(--others-turquoise-active);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.icon {
|
|
107
|
+
padding-right: 14px;
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
> img {
|
|
111
|
+
height: 18px;
|
|
112
|
+
width: auto;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:disabled {
|
|
117
|
+
opacity: 0.5;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:focus {
|
|
122
|
+
outline: 0;
|
|
123
|
+
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ButtonComponent } from './button.component';
|
|
4
|
+
|
|
5
|
+
describe('ButtonComponent', () => {
|
|
6
|
+
let component: ButtonComponent;
|
|
7
|
+
let fixture: ComponentFixture<ButtonComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ButtonComponent],
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(ButtonComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
OnInit,
|
|
4
|
+
Input,
|
|
5
|
+
ViewEncapsulation,
|
|
6
|
+
ElementRef,
|
|
7
|
+
} from '@angular/core';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'button[aeb-button]',
|
|
11
|
+
templateUrl: './button.component.html',
|
|
12
|
+
styleUrls: ['./button.component.scss'],
|
|
13
|
+
encapsulation: ViewEncapsulation.None,
|
|
14
|
+
host: {
|
|
15
|
+
class: 'aeb-base-button',
|
|
16
|
+
},
|
|
17
|
+
})
|
|
18
|
+
export class ButtonComponent implements OnInit {
|
|
19
|
+
@Input()
|
|
20
|
+
type?: 'submit' | 'button' | 'menu' | 'reset' = 'button';
|
|
21
|
+
|
|
22
|
+
@Input()
|
|
23
|
+
icon?: string;
|
|
24
|
+
|
|
25
|
+
@Input()
|
|
26
|
+
variant?: 'default' | 'stroke' | 'white' | 'link' | 'light' | 'red' = 'default';
|
|
27
|
+
|
|
28
|
+
constructor(private elementRef: ElementRef<HTMLButtonElement>) {}
|
|
29
|
+
|
|
30
|
+
ngOnInit(): void {
|
|
31
|
+
this.elementRef.nativeElement.classList.add(`aeb-${this.variant}-button`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { ButtonComponent } from './button.component';
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [ButtonComponent],
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
exports: [ButtonComponent]
|
|
9
|
+
})
|
|
10
|
+
export class ButtonModule {}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ButtonComponent } from './button.component';
|
|
2
|
+
import { select } from '@storybook/addon-knobs';
|
|
3
|
+
import { moduleMetadata } from '@storybook/angular';
|
|
4
|
+
import { Story } from '@storybook/angular/types-6-0';
|
|
5
|
+
|
|
6
|
+
import { ButtonModule } from './button.module';
|
|
7
|
+
|
|
8
|
+
import { withNotes } from '@storybook/addon-notes';
|
|
9
|
+
|
|
10
|
+
const options = [
|
|
11
|
+
"aeb-default-button aeb-base-button",
|
|
12
|
+
"aeb-white-button aeb-base-button",
|
|
13
|
+
"aeb-light-button aeb-base-button",
|
|
14
|
+
"aeb-red-button aeb-base-button",
|
|
15
|
+
"aeb-link-button aeb-base-button",
|
|
16
|
+
"aeb-stroke-button aeb-base-button"
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
title: 'Components/Button',
|
|
21
|
+
component: ButtonComponent,
|
|
22
|
+
decorators: [
|
|
23
|
+
moduleMetadata({
|
|
24
|
+
imports: [ ButtonModule ]
|
|
25
|
+
}),
|
|
26
|
+
withNotes
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const Default: Story<ButtonComponent> = () => ({
|
|
31
|
+
component: ButtonComponent,
|
|
32
|
+
template: `
|
|
33
|
+
<button aeb-button [class]="variant">Button</button>
|
|
34
|
+
`,
|
|
35
|
+
props: {
|
|
36
|
+
variant: select('Variant (class)', options, 'aeb-default-button aeb-base-button')
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export const WithIcon: Story<ButtonComponent> = () => ({
|
|
41
|
+
component: ButtonComponent,
|
|
42
|
+
template: `
|
|
43
|
+
<button aeb-button icon="https://fonts.gstatic.com/s/i/materialicons/clear/v6/24px.svg">Button with icon</button>
|
|
44
|
+
`
|
|
45
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<label [attr.for]="id" class="aeb-checkbox-layout">
|
|
2
|
+
<div class="aeb-checkbox-container">
|
|
3
|
+
<input
|
|
4
|
+
type="checkbox"
|
|
5
|
+
[id]="id"
|
|
6
|
+
[attr.name]="name"
|
|
7
|
+
[checked]="checked"
|
|
8
|
+
[value]="value"
|
|
9
|
+
[disabled]="disabled"
|
|
10
|
+
(change)="_onInteractionEvent($event)"
|
|
11
|
+
(click)="handleClick($event)"
|
|
12
|
+
hidden
|
|
13
|
+
/>
|
|
14
|
+
<div class="aeb-checkbox-indicator">
|
|
15
|
+
<svg
|
|
16
|
+
width="22"
|
|
17
|
+
height="22"
|
|
18
|
+
viewBox="0 0 22 22"
|
|
19
|
+
fill="none"
|
|
20
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
fill-rule="evenodd"
|
|
24
|
+
clip-rule="evenodd"
|
|
25
|
+
d="M9 16L4 11.1923L5.4 9.84615L9 13.3077L16.6 6L18 7.34615L9 16V16Z"
|
|
26
|
+
fill="#EEEEEE"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="aeb-checkbox-label">
|
|
31
|
+
<ng-content></ng-content>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</label>
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
.aeb-checkbox-container {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.aeb-checkbox-layout {
|
|
9
|
+
display: flex;
|
|
10
|
+
user-select: none;
|
|
11
|
+
color: var(--darkblue);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.aeb-checkbox-indicator {
|
|
15
|
+
border: 2px solid var(--gray-primary);
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
width: 22px;
|
|
19
|
+
height: 22px;
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
23
|
+
background-color: var(--white);
|
|
24
|
+
|
|
25
|
+
> svg {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (hover: hover) {
|
|
30
|
+
&:hover {
|
|
31
|
+
border: 2px solid var(--blue-turquoise);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:active {
|
|
35
|
+
background-image: var(--active-gradient);
|
|
36
|
+
padding: 2px;
|
|
37
|
+
border: none;
|
|
38
|
+
position: relative;
|
|
39
|
+
&::before {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 2px;
|
|
42
|
+
left: 2px;
|
|
43
|
+
content: "";
|
|
44
|
+
width: 18px;
|
|
45
|
+
height: 18px;
|
|
46
|
+
background-color: white;
|
|
47
|
+
border-radius: 2px;
|
|
48
|
+
z-index: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.aeb-checkbox-label {
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: normal;
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
line-height: 22px;
|
|
59
|
+
color: var(--darkblue);
|
|
60
|
+
margin-left: 12px;
|
|
61
|
+
margin-top: 1px;
|
|
62
|
+
user-select: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.aeb-checkbox-checked {
|
|
66
|
+
|
|
67
|
+
.aeb-checkbox-indicator {
|
|
68
|
+
background-color: var(--blue);
|
|
69
|
+
border-color: var(--blue);
|
|
70
|
+
|
|
71
|
+
> svg {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (hover: hover) {
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: var(--blue-turquoise);
|
|
78
|
+
border: 2px solid var(--blue-turquoise);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:active {
|
|
82
|
+
background-image: var(--active-gradient);
|
|
83
|
+
&:hover {
|
|
84
|
+
background-image: var(--active-gradient);
|
|
85
|
+
border: none;
|
|
86
|
+
}
|
|
87
|
+
&::before {
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: 2px;
|
|
90
|
+
left: 2px;
|
|
91
|
+
content: "";
|
|
92
|
+
width: 18px;
|
|
93
|
+
height: 18px;
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
border-radius: 2px;
|
|
96
|
+
z-index: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.aeb-checkbox-disabled {
|
|
105
|
+
.aeb-checkbox-indicator {
|
|
106
|
+
border: 2px solid var(--gray-primary);
|
|
107
|
+
|
|
108
|
+
@media (hover: hover) {
|
|
109
|
+
&:hover {
|
|
110
|
+
border: 2px solid var(--gray-primary);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:active {
|
|
114
|
+
background: white !important;
|
|
115
|
+
border: 2px solid var(--gray-primary) !important;
|
|
116
|
+
&::before {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 2px;
|
|
119
|
+
left: 2px;
|
|
120
|
+
content: "";
|
|
121
|
+
width: 18px;
|
|
122
|
+
height: 18px;
|
|
123
|
+
background-color: transparent;
|
|
124
|
+
border-radius: 2px;
|
|
125
|
+
z-index: 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.aeb-checkbox-label {
|
|
132
|
+
opacity: 0.6;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.aeb-checkbox-checked-disabled {
|
|
137
|
+
.aeb-checkbox-indicator {
|
|
138
|
+
background: var(--gray-primary);
|
|
139
|
+
|
|
140
|
+
@media (hover: hover) {
|
|
141
|
+
&:hover {
|
|
142
|
+
background: var(--gray-primary);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&:active {
|
|
146
|
+
background: var(--gray-primary) !important;
|
|
147
|
+
border: none !important;
|
|
148
|
+
&::before {
|
|
149
|
+
position: absolute;
|
|
150
|
+
top: 2px;
|
|
151
|
+
left: 2px;
|
|
152
|
+
content: "";
|
|
153
|
+
width: 18px;
|
|
154
|
+
height: 18px;
|
|
155
|
+
background-color: transparent;
|
|
156
|
+
border-radius: 2px;
|
|
157
|
+
z-index: 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.aeb-checkbox-error {
|
|
165
|
+
.aeb-checkbox-indicator {
|
|
166
|
+
color: var(--red) !important;
|
|
167
|
+
border-color: var(--red) !important;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.aeb-checkbox-label {
|
|
171
|
+
color: var(--red) !important;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { CheckboxComponent } from './checkbox.component';
|
|
4
|
+
|
|
5
|
+
describe('CheckboxComponent', () => {
|
|
6
|
+
let component: CheckboxComponent;
|
|
7
|
+
let fixture: ComponentFixture<CheckboxComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [CheckboxComponent]
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(CheckboxComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
OnInit,
|
|
4
|
+
Input,
|
|
5
|
+
ChangeDetectorRef,
|
|
6
|
+
ViewEncapsulation,
|
|
7
|
+
forwardRef,
|
|
8
|
+
Output,
|
|
9
|
+
EventEmitter
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'aeb-checkbox',
|
|
15
|
+
templateUrl: './checkbox.component.html',
|
|
16
|
+
styleUrls: ['./checkbox.component.scss'],
|
|
17
|
+
host: {
|
|
18
|
+
class: 'aeb-checkbox',
|
|
19
|
+
'[class.aeb-checkbox-checked]': 'checked',
|
|
20
|
+
'[class.aeb-checkbox-disabled]': 'disabled',
|
|
21
|
+
'[class.aeb-checkbox-error]': 'hasError',
|
|
22
|
+
'[class.aeb-checkbox-checked-disabled]': 'checked && disabled'
|
|
23
|
+
},
|
|
24
|
+
encapsulation: ViewEncapsulation.None,
|
|
25
|
+
providers: [
|
|
26
|
+
{
|
|
27
|
+
provide: NG_VALUE_ACCESSOR,
|
|
28
|
+
useExisting: forwardRef(() => CheckboxComponent),
|
|
29
|
+
multi: true
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
export class CheckboxComponent implements OnInit, ControlValueAccessor {
|
|
34
|
+
@Output() readonly change: EventEmitter<Event> = new EventEmitter<Event>();
|
|
35
|
+
|
|
36
|
+
private _controlValueAccessorChangeFn: (value: any) => void = () => {};
|
|
37
|
+
private _onTouched: () => any = () => {};
|
|
38
|
+
|
|
39
|
+
private _emitChangeEvent(event: Event) {
|
|
40
|
+
this._controlValueAccessorChangeFn(this.checked);
|
|
41
|
+
this.change.emit(event);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(private _changeDetectorRef: ChangeDetectorRef) {}
|
|
45
|
+
|
|
46
|
+
ngOnInit(): void {}
|
|
47
|
+
|
|
48
|
+
@Input() id: string;
|
|
49
|
+
|
|
50
|
+
@Input() hasError: boolean;
|
|
51
|
+
|
|
52
|
+
@Input() name: string | null = null;
|
|
53
|
+
|
|
54
|
+
@Input() value: string;
|
|
55
|
+
|
|
56
|
+
@Input()
|
|
57
|
+
get checked(): boolean {
|
|
58
|
+
return this._checked;
|
|
59
|
+
}
|
|
60
|
+
set checked(value: boolean) {
|
|
61
|
+
if (value !== this.checked) {
|
|
62
|
+
this._checked = value;
|
|
63
|
+
this._changeDetectorRef.markForCheck();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
private _checked: boolean = false;
|
|
67
|
+
|
|
68
|
+
@Input()
|
|
69
|
+
get disabled() {
|
|
70
|
+
return this._disabled;
|
|
71
|
+
}
|
|
72
|
+
set disabled(value: any) {
|
|
73
|
+
const newValue = Boolean(value);
|
|
74
|
+
|
|
75
|
+
if (newValue !== this.disabled) {
|
|
76
|
+
this._disabled = newValue;
|
|
77
|
+
this._changeDetectorRef.markForCheck();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
private _disabled: boolean = false;
|
|
81
|
+
|
|
82
|
+
@Input()
|
|
83
|
+
get required(): boolean {
|
|
84
|
+
return this._required;
|
|
85
|
+
}
|
|
86
|
+
set required(value: boolean) {
|
|
87
|
+
this._required = Boolean(value);
|
|
88
|
+
}
|
|
89
|
+
private _required: boolean;
|
|
90
|
+
|
|
91
|
+
writeValue(value: any) {
|
|
92
|
+
this.checked = !!value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
registerOnChange(fn: (value: any) => void) {
|
|
96
|
+
this._controlValueAccessorChangeFn = fn;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
registerOnTouched(fn: any) {
|
|
100
|
+
this._onTouched = fn;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
handleClick(event: Event) {
|
|
104
|
+
event.stopPropagation();
|
|
105
|
+
this.checked = !this.checked;
|
|
106
|
+
this._onTouched();
|
|
107
|
+
this._emitChangeEvent(event);
|
|
108
|
+
}
|
|
109
|
+
_onInteractionEvent(event: Event) {
|
|
110
|
+
event.stopPropagation();
|
|
111
|
+
}
|
|
112
|
+
}
|