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,161 @@
|
|
|
1
|
+
import { Component, OnInit, LOCALE_ID, Input, OnChanges, Output, EventEmitter, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { DatepickerUtilsService } from '../services/datepicker-utils.service';
|
|
4
|
+
import '@angular/common/locales/global/ru';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'aeb-datepicker-core',
|
|
8
|
+
templateUrl: './datepicker-core.component.html',
|
|
9
|
+
styleUrls: ['./datepicker-core.component.scss'],
|
|
10
|
+
providers: [
|
|
11
|
+
{ provide: LOCALE_ID, useValue: 'ru' }
|
|
12
|
+
],
|
|
13
|
+
encapsulation: ViewEncapsulation.None
|
|
14
|
+
})
|
|
15
|
+
export class DatepickerCoreComponent implements OnInit, OnChanges {
|
|
16
|
+
|
|
17
|
+
@Input ('date') date: Date;
|
|
18
|
+
@Input ('minDate') minDate: Date;
|
|
19
|
+
@Input ('maxDate') maxDate: Date;
|
|
20
|
+
@Input ('excludedDates') excludedDates: Date[];
|
|
21
|
+
@Input ('minYear') minYear: Date;
|
|
22
|
+
@Input ('maxYear') maxYear: Date;
|
|
23
|
+
@Input ('withBackground') withBackground: boolean = true;
|
|
24
|
+
@Input ('align') align: 'left' | 'right' = 'right';
|
|
25
|
+
|
|
26
|
+
@Input ('withoutDays') withoutDays = false;
|
|
27
|
+
|
|
28
|
+
@Output ('onDateChange') onDateChange: EventEmitter<Date> = new EventEmitter();
|
|
29
|
+
|
|
30
|
+
@Output ('woDaysMonth') woDaysMonth: EventEmitter<any> = new EventEmitter();
|
|
31
|
+
@Output ('woDaysYear') woDaysYear: EventEmitter<any> = new EventEmitter();
|
|
32
|
+
@Output ('woDaysMonthSubInc') woDaysMonthSubInc: EventEmitter<boolean> = new EventEmitter();
|
|
33
|
+
|
|
34
|
+
@ViewChild ('container') container: ElementRef<HTMLDivElement>;
|
|
35
|
+
|
|
36
|
+
month: Date[][];
|
|
37
|
+
isShowYears: boolean = false;
|
|
38
|
+
isShowMonths: boolean = false;
|
|
39
|
+
currentMonth: number;
|
|
40
|
+
currentYear: number;
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
constructor(private utils: DatepickerUtilsService) {}
|
|
44
|
+
|
|
45
|
+
addMonth(): void {
|
|
46
|
+
const startOfMonth = this.firstDay();
|
|
47
|
+
|
|
48
|
+
if (this.currentMonth === 11) {
|
|
49
|
+
this.currentMonth = 0;
|
|
50
|
+
this.currentYear = this.currentYear + 1;
|
|
51
|
+
|
|
52
|
+
} else {
|
|
53
|
+
this.currentMonth = this.currentMonth + 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
this.month = this.utils.genMonth(
|
|
57
|
+
this.utils.addMonths(startOfMonth, 1)
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
if (this.withoutDays) {
|
|
61
|
+
this.woDaysMonthSubInc.emit(true);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
subMonth(): void {
|
|
66
|
+
const startOfMonth = this.firstDay();
|
|
67
|
+
|
|
68
|
+
if (this.currentMonth === 0) {
|
|
69
|
+
this.currentMonth = 11;
|
|
70
|
+
this.currentYear = this.currentYear - 1;
|
|
71
|
+
|
|
72
|
+
} else {
|
|
73
|
+
this.currentMonth = this.currentMonth - 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
this.month = this.utils.genMonth(
|
|
77
|
+
this.utils.subMonths(startOfMonth, 1)
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
if (this.withoutDays) {
|
|
81
|
+
this.woDaysMonthSubInc.emit(false);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
setMonth(month: number, erase?: boolean): void {
|
|
86
|
+
if (this.withoutDays) {
|
|
87
|
+
this.woDaysMonth.emit([ month, erase ]);
|
|
88
|
+
this.currentMonth = month;
|
|
89
|
+
this.reDraw();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
this.currentMonth = month;
|
|
94
|
+
this.isShowMonths = false;
|
|
95
|
+
this.reDraw();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
setYear(year: number, erase?: boolean): void {
|
|
99
|
+
if (this.withoutDays) {
|
|
100
|
+
this.woDaysYear.emit([year, erase]);
|
|
101
|
+
this.currentYear = year;
|
|
102
|
+
this.reDraw();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
this.currentYear = year;
|
|
107
|
+
this.isShowYears = false;
|
|
108
|
+
this.reDraw();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
setDate(date: Date): void {
|
|
112
|
+
this.onDateChange.emit(date);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
reDraw(): void {
|
|
116
|
+
const startOfMonth = this.utils.setMonth(
|
|
117
|
+
this.currentMonth,
|
|
118
|
+
this.currentYear
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
this.month = this.utils.genMonth(startOfMonth);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
firstDay(): Date {
|
|
125
|
+
return this.month[0].filter(item => item)[0];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
showMonthsHandler(): void {
|
|
129
|
+
if (this.withoutDays && this.isShowMonths) return;
|
|
130
|
+
|
|
131
|
+
if (this.isShowYears) this.isShowYears = false;
|
|
132
|
+
|
|
133
|
+
this.isShowMonths = !this.isShowMonths;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
showYearsHandler(): void {
|
|
137
|
+
if (this.withoutDays && this.isShowYears) return;
|
|
138
|
+
|
|
139
|
+
if (this.isShowMonths) this.isShowMonths = false;
|
|
140
|
+
|
|
141
|
+
this.isShowYears = !this.isShowYears;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
startOfYear(year: number): Date {
|
|
145
|
+
return new Date(year, 0, 1);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
ngOnInit(): void {
|
|
149
|
+
this.currentMonth = this.utils.getMonth(this.date);
|
|
150
|
+
this.currentYear = this.utils.getYear(this.date);
|
|
151
|
+
this.month = this.utils.genMonth(this.date);
|
|
152
|
+
|
|
153
|
+
if (this.withoutDays) {
|
|
154
|
+
this.isShowMonths = true;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
ngOnChanges(changes) {
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
}
|
package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<div class="aeb-datepicker-month__week">
|
|
2
|
+
<div
|
|
3
|
+
*ngFor="let day of week"
|
|
4
|
+
class="aeb-datepicker-month__day aeb-datepicker-month__day--weekd"
|
|
5
|
+
>
|
|
6
|
+
{{day}}
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<div *ngFor="let week of month" class="aeb-datepicker-month__week">
|
|
10
|
+
<ng-container
|
|
11
|
+
*ngFor="let day of week"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
*ngIf="!!day; else elseStub"
|
|
15
|
+
class="aeb-datepicker-month__day"
|
|
16
|
+
[ngClass]="{
|
|
17
|
+
'aeb-datepicker-month__day--today': isToday(day),
|
|
18
|
+
'aeb-datepicker-month__day--picked': sameDate(day),
|
|
19
|
+
'aeb-datepicker-month__day--disabled': isDisabled(day)
|
|
20
|
+
}"
|
|
21
|
+
(click)="emitDate(day)"
|
|
22
|
+
>
|
|
23
|
+
{{day | dateToStr}}
|
|
24
|
+
</div>
|
|
25
|
+
<ng-template
|
|
26
|
+
#elseStub
|
|
27
|
+
>
|
|
28
|
+
<div
|
|
29
|
+
class="aeb-datepicker-month__day aeb-datepicker-month__day--stub"
|
|
30
|
+
>
|
|
31
|
+
</div>
|
|
32
|
+
</ng-template>
|
|
33
|
+
</ng-container>
|
|
34
|
+
</div>
|
package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.scss
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.aeb-datepicker-month {
|
|
2
|
+
&__week {
|
|
3
|
+
width: fit-content;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
&:not(:last-child) {
|
|
7
|
+
margin-bottom: 10px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__day {
|
|
12
|
+
width: 32px;
|
|
13
|
+
height: 28px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
border: 1px solid var(--blue);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&--stub {
|
|
27
|
+
cursor: none;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
&:hover {
|
|
30
|
+
border: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--today {
|
|
35
|
+
border: 1px solid var(--gray-primary);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&--picked {
|
|
39
|
+
border: none;
|
|
40
|
+
background-color: var(--blue);
|
|
41
|
+
color: white;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--disabled {
|
|
45
|
+
color: var(--gray-primary);
|
|
46
|
+
cursor: none;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
&:hover {
|
|
49
|
+
border: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:not(:last-child) {
|
|
54
|
+
margin-right: 8px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--weekd {
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
color: var(--gray-primary);
|
|
60
|
+
cursor: default;
|
|
61
|
+
&:hover {
|
|
62
|
+
border: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.spec.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatepickerMonthComponent } from './datepicker-month.component';
|
|
4
|
+
|
|
5
|
+
describe('DatepickerMonthComponent', () => {
|
|
6
|
+
let component: DatepickerMonthComponent;
|
|
7
|
+
let fixture: ComponentFixture<DatepickerMonthComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ DatepickerMonthComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(DatepickerMonthComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Component, OnInit, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { DatepickerUtilsService } from '../services/datepicker-utils.service';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'aeb-datepicker-month',
|
|
7
|
+
templateUrl: './datepicker-month.component.html',
|
|
8
|
+
styleUrls: ['./datepicker-month.component.scss'],
|
|
9
|
+
encapsulation: ViewEncapsulation.None
|
|
10
|
+
})
|
|
11
|
+
export class DatepickerMonthComponent implements OnInit {
|
|
12
|
+
@Input ('month') month: any;
|
|
13
|
+
@Output ('setDate') setDate: EventEmitter<Date> = new EventEmitter();
|
|
14
|
+
@Input ('date') date: Date;
|
|
15
|
+
@Input ('minDate') minDate: Date;
|
|
16
|
+
@Input ('maxDate') maxDate: Date;
|
|
17
|
+
@Input ('excludedDates') excludedDates: Date[];
|
|
18
|
+
week: string[];
|
|
19
|
+
|
|
20
|
+
constructor(private utils: DatepickerUtilsService) {
|
|
21
|
+
this.week = DatepickerUtilsService.weekLocal;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
isToday(date: Date): boolean {
|
|
25
|
+
return this.utils.isToday(date);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
emitDate(date: Date): void {
|
|
29
|
+
if (this.isDisabled(date)) return;
|
|
30
|
+
|
|
31
|
+
this.setDate.emit(date);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
sameDate(date: Date): boolean {
|
|
35
|
+
return this.utils.isSameDay(this.date, date);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
isExcluded(date: Date): boolean {
|
|
39
|
+
return !!this.excludedDates
|
|
40
|
+
.filter(item => this.utils.isSameDay(item, date))
|
|
41
|
+
.length
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
isDisabled(date: Date): boolean {
|
|
45
|
+
return this.utils.isMinOverlap(this.minDate, date)
|
|
46
|
+
|| this.utils.isMaxOverlap(this.maxDate, date)
|
|
47
|
+
|| this.isExcluded(date)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ngOnInit(): void {
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="aeb-datepicker-tiles"
|
|
3
|
+
#container
|
|
4
|
+
>
|
|
5
|
+
<div
|
|
6
|
+
class="aeb-datepicker-tiles__scroll"
|
|
7
|
+
[ngClass]="{'aeb-datepicker-tiles__scroll--months': isMonths}"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
[style.display]="!isMonths ? 'flex' : 'none'"
|
|
11
|
+
class="aeb-datepicker-tiles__tile"
|
|
12
|
+
*ngFor="let yearNum of years"
|
|
13
|
+
[ngClass]="{
|
|
14
|
+
'aeb-datepicker-tiles__tile--active': yearNum === year,
|
|
15
|
+
'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)
|
|
16
|
+
}"
|
|
17
|
+
(click)="emitYear(yearNum)"
|
|
18
|
+
>
|
|
19
|
+
{{ yearNum }}
|
|
20
|
+
</div>
|
|
21
|
+
<div
|
|
22
|
+
[style.display]="isMonths ? 'flex' : 'none'"
|
|
23
|
+
class="aeb-datepicker-tiles__tile"
|
|
24
|
+
*ngFor="let monthNum of months; let i = index"
|
|
25
|
+
[ngClass]="{
|
|
26
|
+
'aeb-datepicker-tiles__tile--active': i === month,
|
|
27
|
+
'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)
|
|
28
|
+
}"
|
|
29
|
+
(click)="emitMonth(i)"
|
|
30
|
+
>
|
|
31
|
+
{{ monthNum }}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.scss
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.aeb-datepicker-tiles {
|
|
2
|
+
min-width: 275px;
|
|
3
|
+
height: 220px;
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
-ms-overflow-style: none;
|
|
7
|
+
scrollbar-width: none;
|
|
8
|
+
&::-webkit-scrollbar {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__scroll {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__tile {
|
|
21
|
+
width: 84px;
|
|
22
|
+
height: 41px;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
border: 1px solid var(--gray-primary);
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
box-sizing: unset !important;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
border: 1px solid var(--blue);
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:not(:nth-last-child(-n+3)) {
|
|
37
|
+
margin-bottom: 12px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--active {
|
|
41
|
+
border: 1px solid var(--blue);
|
|
42
|
+
background-color: var(--blue);
|
|
43
|
+
color: white;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&--disabled {
|
|
47
|
+
color: var(--gray-primary);
|
|
48
|
+
cursor: none;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
&:hover {
|
|
51
|
+
border: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.spec.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatepickerTilesComponent } from './datepicker-tiles.component';
|
|
4
|
+
|
|
5
|
+
describe('DatepickerTilesComponent', () => {
|
|
6
|
+
let component: DatepickerTilesComponent;
|
|
7
|
+
let fixture: ComponentFixture<DatepickerTilesComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ DatepickerTilesComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(DatepickerTilesComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Component, ElementRef, ViewChild, Input, Output, EventEmitter, OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { DatepickerUtilsService } from '../services/datepicker-utils.service';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'aeb-datepicker-tiles',
|
|
6
|
+
templateUrl: './datepicker-tiles.component.html',
|
|
7
|
+
styleUrls: ['./datepicker-tiles.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class DatepickerTilesComponent implements OnInit, OnChanges {
|
|
10
|
+
@ViewChild('container') container: ElementRef;
|
|
11
|
+
@Input('date') date: Date;
|
|
12
|
+
@Input('isMonths') isMonths: boolean = false;
|
|
13
|
+
@Input('isYears') isYears: boolean = false;
|
|
14
|
+
|
|
15
|
+
@Input('year') year: number;
|
|
16
|
+
@Output('setYear') setYear: EventEmitter<number> = new EventEmitter();
|
|
17
|
+
|
|
18
|
+
@Input('month') month: number;
|
|
19
|
+
@Output('setMonth') setMonth: EventEmitter<number> = new EventEmitter();
|
|
20
|
+
|
|
21
|
+
@Input ('minYear') minYear: Date;
|
|
22
|
+
@Input ('maxYear') maxYear: Date;
|
|
23
|
+
|
|
24
|
+
@Input ('minDate') minDate: Date;
|
|
25
|
+
@Input ('maxDate') maxDate: Date;
|
|
26
|
+
@Input ('woDays') woDays = false;
|
|
27
|
+
|
|
28
|
+
years: number[];
|
|
29
|
+
months: string[] = DatepickerUtilsService.monthsLocal;
|
|
30
|
+
|
|
31
|
+
constructor(private utils: DatepickerUtilsService) {}
|
|
32
|
+
|
|
33
|
+
emitMonth(month: number): void {
|
|
34
|
+
this.setMonth.emit(month);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
emitYear(year: number): void {
|
|
38
|
+
this.setYear.emit(year);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
scrollYears(): void {
|
|
42
|
+
if (this.isMonths) return;
|
|
43
|
+
|
|
44
|
+
const diff = Math.abs(this.utils.yearsDiff(
|
|
45
|
+
this.utils.startOfYear(this.date),
|
|
46
|
+
this.utils.startOfYear(this.maxYear)
|
|
47
|
+
));
|
|
48
|
+
const yearRowHeight = 54;
|
|
49
|
+
const steps = Math.floor(diff / 3);
|
|
50
|
+
const padding = 6;
|
|
51
|
+
const marginDelta = steps;
|
|
52
|
+
|
|
53
|
+
this.container.nativeElement.scrollTop = (yearRowHeight * steps) + marginDelta - padding;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
ngOnInit(): void {
|
|
57
|
+
this.years = this.utils.genYears(
|
|
58
|
+
this.minYear,
|
|
59
|
+
this.maxYear
|
|
60
|
+
).reverse();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ngOnChanges(changes: any): void {
|
|
64
|
+
if (changes.isYears && this.container) {
|
|
65
|
+
setTimeout(() => this.scrollYears())
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
isMonthDisabled(month: number): boolean {
|
|
70
|
+
|
|
71
|
+
if (this.woDays) {
|
|
72
|
+
return this.utils.isMinOverlap(this.minDate, new Date(this.year, month))
|
|
73
|
+
|| this.utils.isMaxOverlap(this.maxDate, new Date(this.year, month))
|
|
74
|
+
|
|
75
|
+
} else {
|
|
76
|
+
return false;
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
isYearDisabled(year: number): boolean {
|
|
82
|
+
|
|
83
|
+
if (this.woDays) {
|
|
84
|
+
return this.utils.isMinOverlap(this.minDate, new Date(year, 11, 31))
|
|
85
|
+
|| this.utils.isMaxOverlap(this.maxDate, new Date(year, 0))
|
|
86
|
+
|
|
87
|
+
} else {
|
|
88
|
+
return false;
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="aeb-datepicker"
|
|
3
|
+
[ngClass]="{'aeb-datepicker--disabled': disabled}"
|
|
4
|
+
clickOutside
|
|
5
|
+
(clickOutside)="clickOutsideHandler($event)"
|
|
6
|
+
#container
|
|
7
|
+
>
|
|
8
|
+
<aeb-form-field
|
|
9
|
+
class="aeb-datepicker__field"
|
|
10
|
+
[ngClass]="{'aeb-datepicker__field--onerror': hasError}"
|
|
11
|
+
>
|
|
12
|
+
<aeb-label class="aeb-datepicker__label">
|
|
13
|
+
{{placeholder}}
|
|
14
|
+
</aeb-label>
|
|
15
|
+
<input
|
|
16
|
+
aebInput
|
|
17
|
+
type="text"
|
|
18
|
+
class="aeb-datepicker__input"
|
|
19
|
+
|
|
20
|
+
maxlength="10"
|
|
21
|
+
[(ngModel)]="inputValue"
|
|
22
|
+
(change)="handleInput($event.target.value)"
|
|
23
|
+
(click)="clickInputHandler()"
|
|
24
|
+
(input)="typeHandler($event)"
|
|
25
|
+
(keydown)="keyDownHandler($event)"
|
|
26
|
+
/>
|
|
27
|
+
<div
|
|
28
|
+
class="aeb-datepicker__calendar-icon"
|
|
29
|
+
(click)="handleOpen()"
|
|
30
|
+
>
|
|
31
|
+
<svg
|
|
32
|
+
width="24"
|
|
33
|
+
height="24"
|
|
34
|
+
viewBox="0 0 24 24"
|
|
35
|
+
fill="none"
|
|
36
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
+
>
|
|
38
|
+
<rect x="5" y="6" width="14" height="14" rx="1" stroke="#27303E" stroke-width="2"/>
|
|
39
|
+
<rect x="4" y="5" width="16" height="4" rx="2" fill="#27303E"/>
|
|
40
|
+
<rect x="9" y="3" width="3" height="2" rx="1" transform="rotate(90 9 3)" fill="#27303E"/>
|
|
41
|
+
<rect x="17" y="3" width="3" height="2" rx="1" transform="rotate(90 17 3)" fill="#27303E"/>
|
|
42
|
+
</svg>
|
|
43
|
+
</div>
|
|
44
|
+
</aeb-form-field>
|
|
45
|
+
<aeb-datepicker-core
|
|
46
|
+
class="aeb-datepicker-core"
|
|
47
|
+
[ngClass]="{'aeb-datepicker-core--disabled': !isOpen}"
|
|
48
|
+
[date]="date"
|
|
49
|
+
[minDate]="minDate"
|
|
50
|
+
[maxDate]="maxDate"
|
|
51
|
+
[excludedDates]="excludedDates"
|
|
52
|
+
[minYear]="minYear"
|
|
53
|
+
[maxYear]="maxYear"
|
|
54
|
+
(onDateChange)="handleDateChange($event)"
|
|
55
|
+
[align]="align"
|
|
56
|
+
[withBackground]="withBackground"
|
|
57
|
+
[withoutDays]="withoutDays"
|
|
58
|
+
(woDaysMonth)="woDaysMonthSet($event)"
|
|
59
|
+
(woDaysYear)="woDaysYearSet($event)"
|
|
60
|
+
(woDaysMonthSubInc)="woMonthIncSub($event)"
|
|
61
|
+
[style]="fixedPosition"
|
|
62
|
+
#core
|
|
63
|
+
>
|
|
64
|
+
</aeb-datepicker-core>
|
|
65
|
+
</div>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.aeb-datepicker {
|
|
2
|
+
width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
color: var(--darkblue);
|
|
5
|
+
|
|
6
|
+
&--disabled {
|
|
7
|
+
opacity: 0.7;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__field {
|
|
12
|
+
position: relative;
|
|
13
|
+
&--onerror {
|
|
14
|
+
.aeb-datepicker__input {
|
|
15
|
+
border: 2px solid var(--red) !important;
|
|
16
|
+
color: var(--red) !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.aeb-datepicker__label {
|
|
20
|
+
color: var(--red);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__input {
|
|
26
|
+
padding-right: 35px !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__calendar-icon {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 16px;
|
|
33
|
+
right: 12px;
|
|
34
|
+
z-index: 100;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.aeb-datepicker-core {
|
|
39
|
+
position: fixed;
|
|
40
|
+
|
|
41
|
+
&--disabled {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatepickerComponent } from './datepicker.component';
|
|
4
|
+
|
|
5
|
+
describe('DatepickerComponent', () => {
|
|
6
|
+
let component: DatepickerComponent;
|
|
7
|
+
let fixture: ComponentFixture<DatepickerComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ DatepickerComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(DatepickerComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|