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,141 @@
|
|
|
1
|
+
import { CommentModule } from './comment.module';
|
|
2
|
+
import { CommentComponent } from './comment.component';
|
|
3
|
+
import { withDesign } from 'storybook-addon-designs';
|
|
4
|
+
import { action } from '@storybook/addon-actions';
|
|
5
|
+
|
|
6
|
+
import { moduleMetadata } from '@storybook/angular';
|
|
7
|
+
import { Story } from '@storybook/angular/types-6-0';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
Component,
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
|
|
13
|
+
const avatar = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAIAAACyr5FlAAAHHUlEQVR4nO3dS4hPbxzH8Wf+DOOe+5TcIolEkYyNLMglYeGSmsRCStnYTGSFwsZtSbmUhZWdci2UjUTKrZHLlEK53w3G7ukzz99H+v3OMceZ92v1PX2bc85Mn555Opfn1LS1tQXglwgHnP86+gRQXIQDFuGARThgEQ5YhAMW4YBFOGARDliEAxbhgEU4YBEOWIQDFuGARThgEQ5YXTv6BDpebW2ta7W2tv7NMykaRg5YhAMW4YDVWeYc9fX1utnU1BTrNWvWaOvHjx+xPnjwoLZ27twZ65cvX2Z8isXDyAGLcMAiHLAIB6wyT0h79uwZ661bt2pr3bp1se7a1f4RNm7cqJtfv36N9bZt27T15cuXis+zsBg5YBEOWIQDVk1bW1tNTU1Hn0YuGhoaYn3+/Hlt9ejRo4Idvn37NtazZs3S1o0bNyrYYcExcsAiHLAIByzCAavMF8GWLl0a68pmoIm+ffvGes6cOdpiQorOhXDAIhywyjznmDx5cn47nzRpUn47LwhGDliEAxbhgEU4YJVqQlpXV6ebvXr1yu9YAwYMyG/nBcHIAYtwwCIcsEo150geAX/37l1+x9KnwsqKkQMW4YBFOGARDlilmpAmX7q8d+9erOfNm5ftsXTnZcXIAYtwwCIcsEo150icPXs21sliCpW9Afr9+/dYX7x4seIT+1cwcsAiHLAIByzCAavME9Lr16/H+vHjx9oaNWpUBTu8c+dOrG/dulXpef0zGDlgEQ5YhAPW355zjB49Otbjxo3T1tChQ2Od3EJ78+ZNrB8+fKit5ubmWH/+/Flbz58/j/Xhw4e1pcuS/mYdUl14NLRfJ//Fixfup3r37q2bY8eOjbX++qH9mg7fvn3Tlp58cpOvpaXFHTpbjBywCAcswgGLcMDKZZHaQYMGxXr9+vXaWr58eayHDx+urX79+sU6mZB+/Pgx1jpTCyHcv38/1sePH9fWmTNnYt2nTx9tnTp1KtY6YUwkK30tXLgw1skfbe7cubFubGzUlk5ChwwZoi1dqUy/EBXaz8GTGeiRI0d+WSc/VT1GDliEAxbhgJXNnEMv5oQQ9u/fH+vVq1dXufM/l8xU9MZb8u2cgQMHxnrPnj3a+vTpU6w3bNigrf79+8c6ebRs4sSJsc77QwM6O9m3b5+29OLehw8fqjwQIwcswgGLcMAiHLCymZAuWbJEN48dOxbr5OpTR3n//r1uHj16NNZ6hS20X3gjeWBs1apVsc5kpf3qJTeHV65cGetz585VuXNGDliEAxbhgJXNk2DJ/+aCzDNU8nSWzh6SK136HeumpiZtFWSeofS6XAihvr4+w50zcsAiHLAIByzCASubCem1a9d089mzZ7HWFw7+Mr1Jm7zQoPeNly1bpq3Xr1/HevPmzdratGlTrEeMGJHRaVbl0aNHunnz5s0Md87IAYtwwCIcsLKZc1y9elU39fGk5DpS8sxY9fSxqOQulD5ivnfvXm3px6oXLFigLV34K/m9VqxYEWudf4QQZs+eHevkOz3V39dMnnB79epVrHfv3q2t27dvV3ksxcgBi3DAIhywCAesXF6HrK2tjXWyIr2+qTB16lRtDRs2LNZdunTRll5Vu3v3rrZ0znjixAlt6RWhKVOmaEvnqoMHD/7VLxHC/y6dzZ8/P9YPHjzQln4aXV/5DCFMnz491uPHj9eWHjp5HVKvbl25ckVbutbI5cuXtaWz6eoxcsAiHLAIB6xc5hztDtB+5/qV6OTprO7du7uf0rW5kofF9bHyZFktfXDrwIED2lq7dq07lkr+heuLk1u2bHFnmCwyps/FJc+SdevWLdbJlS5d3yz5EqW+sJkrRg5YhAMW4YBFOGDlPiHtQPrCRPKsWnLj9A/pNbGZM2dq6+nTpxXssOAYOWARDliEA1aZP8aja4NWNslI6IqiDQ0N2jp58mT1+y8aRg5YhAMW4YBFOGCVeUI6bdq0/HY+Y8YM3WRCis6FcMAiHLBKNedI7iCOGTMmv2ONHDkyv50XBCMHLMIBi3DAIhywSjUhTd4J0Af/M1fAhXgzx8gBi3DAIhywSjXnaG1t1U1dOytzyYexS4mRAxbhgEU4YBEOWKWakCYuXboU60WLFuW387Ji5IBFOGARDlhlXoJhwoQJsb5w4YK2KvtEkK49qivhhxBaWloq2GHBMXLAIhywCAcswgGrzBfBmpubY71r1y5t7dixI9a/+Qi5roAbQti+fXusnzx5ksEpFhsjByzCAYtwwCrzRTBVV1enm4sXL451Y2OjtnQx/EOHDmnr9OnTsdaV8MuKkQMW4YBFOGARDlidZUL6G8mXKPWLSckXGzsbRg5YhAMW4YCXfJQQiBg5YBEOWIQDFuGARThgEQ5YhAMW4YBFOGARDliEAxbhgEU4YBEOWIQDFuGARThgEQ5YhAMW4YBFOGD9BHAK0C/V9yxjAAAAAElFTkSuQmCC';
|
|
14
|
+
|
|
15
|
+
const content = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
|
|
16
|
+
const fullName = 'Сахаров Дмитрий Алексеевич';
|
|
17
|
+
const aboutAuthor = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit';
|
|
18
|
+
|
|
19
|
+
const randomString = (): string => {
|
|
20
|
+
return Math.round((Math.pow(36, 6 + 1) - Math.random() * Math.pow(36, 6))).toString(36).slice(1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const hashSearch = (hash: string, comments: any) => {
|
|
24
|
+
if (!comments.length) return null;
|
|
25
|
+
|
|
26
|
+
for (let i: number = 0; i < comments.length; i += 1) {
|
|
27
|
+
if (comments[i].hash === hash) return comments[i];
|
|
28
|
+
|
|
29
|
+
const target = hashSearch(hash, comments[i].nestedComments);
|
|
30
|
+
|
|
31
|
+
if (target) {
|
|
32
|
+
return target;
|
|
33
|
+
|
|
34
|
+
} else {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
const comment = {
|
|
42
|
+
hash: 'zxcxxx',
|
|
43
|
+
title: 'Title 1',
|
|
44
|
+
content,
|
|
45
|
+
fullName,
|
|
46
|
+
firstName: 'Дмитрий',
|
|
47
|
+
lastName: 'Сахаров',
|
|
48
|
+
middleName: 'Алексеевич',
|
|
49
|
+
avatar,
|
|
50
|
+
aboutAuthor,
|
|
51
|
+
date: '22.01.2021',
|
|
52
|
+
group: 'Служба ОБ',
|
|
53
|
+
parentHash: '',
|
|
54
|
+
nestedComments: [
|
|
55
|
+
{
|
|
56
|
+
hash: 'qwe123123',
|
|
57
|
+
title: 'Title 2',
|
|
58
|
+
content,
|
|
59
|
+
fullName,
|
|
60
|
+
firstName: 'Дмитрий',
|
|
61
|
+
lastName: 'Сахаров',
|
|
62
|
+
middleName: 'Алексеевич',
|
|
63
|
+
aboutAuthor,
|
|
64
|
+
date: '22.01.2021',
|
|
65
|
+
group: 'Служба ОБ',
|
|
66
|
+
parentHash: 'zxcxxx',
|
|
67
|
+
parentName: fullName,
|
|
68
|
+
nestedComments: []
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
hash: 'qwersdfa2q34',
|
|
72
|
+
title: 'Title 3',
|
|
73
|
+
content,
|
|
74
|
+
fullName,
|
|
75
|
+
firstName: 'Дмитрий',
|
|
76
|
+
lastName: 'Сахаров',
|
|
77
|
+
middleName: 'Алексеевич',
|
|
78
|
+
aboutAuthor,
|
|
79
|
+
date: '22.01.2021',
|
|
80
|
+
group: 'Служба ОБ',
|
|
81
|
+
parentHash: 'zxcxxx',
|
|
82
|
+
parentName: fullName,
|
|
83
|
+
nestedComments: []
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@Component({
|
|
89
|
+
selector: 'test-component',
|
|
90
|
+
template: `
|
|
91
|
+
<div style="width: 850px; background: rgba(255,255,255,0.1); padding: 15px">
|
|
92
|
+
<aeb-comment (response)="test($event)" [comment]="comment"></aeb-comment>
|
|
93
|
+
</div>
|
|
94
|
+
`
|
|
95
|
+
})
|
|
96
|
+
class TestComponent {
|
|
97
|
+
comment: any = comment;
|
|
98
|
+
|
|
99
|
+
constructor () {}
|
|
100
|
+
|
|
101
|
+
test(data: any) {
|
|
102
|
+
const targetComment: any = hashSearch(data.hash, [comment]);
|
|
103
|
+
targetComment.nestedComments.push({
|
|
104
|
+
...data,
|
|
105
|
+
fullName,
|
|
106
|
+
aboutAuthor,
|
|
107
|
+
date: '22.01.2021',
|
|
108
|
+
group: 'Служба ОБ',
|
|
109
|
+
hash: randomString(),
|
|
110
|
+
nestedComments: []
|
|
111
|
+
});
|
|
112
|
+
action('Comment tree')(comment);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export default {
|
|
117
|
+
title: 'Components/Comment',
|
|
118
|
+
component: CommentComponent,
|
|
119
|
+
decorators: [
|
|
120
|
+
moduleMetadata({
|
|
121
|
+
imports: [CommentModule],
|
|
122
|
+
declarations: [ TestComponent ]
|
|
123
|
+
}),
|
|
124
|
+
withDesign
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const Default: Story<CommentComponent> = () => ({
|
|
129
|
+
component: CommentComponent,
|
|
130
|
+
template: `
|
|
131
|
+
<test-component>
|
|
132
|
+
</test-component>
|
|
133
|
+
`
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
Default.parameters = {
|
|
137
|
+
design: {
|
|
138
|
+
type: 'figma',
|
|
139
|
+
url: 'https://www.figma.com/file/THaYMLbry68fxOz8A5Orhh/AEB.Web.UI?node-id=852%3A2058'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<div class="credit-item-card" #creditItemCard>
|
|
2
|
+
<div class="credit-item-card__info-icon" (click)="infoClickEvent$.emit()"></div>
|
|
3
|
+
<div class="credit-item-card__title-wrapper" (click)="buttonClickEvent$.emit()">
|
|
4
|
+
<div class="credit-item-card__title">«{{ cardInfo?.title }}»</div>
|
|
5
|
+
<div class="credit-item-card__title-text">{{ cardInfo?.caption }}</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="credit-item-card__details-wrapper">
|
|
8
|
+
<div class="credit-item-card__credit-details">
|
|
9
|
+
<div *ngIf="cardInfo?.details?.time" class="credit-item-card__credit-details-item">
|
|
10
|
+
<div class="credit-item-card__credit-details-item-title">Срок кредита</div>
|
|
11
|
+
<div class="credit-item-card__credit-details-item-separator"></div>
|
|
12
|
+
<div class="credit-item-card__credit-details-item-value">до {{ cardInfo?.details?.time }} {{ cardInfo?.details?.timeMeasure }}</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div *ngIf="cardInfo?.details?.rate" class="credit-item-card__credit-details-item">
|
|
15
|
+
<div class="credit-item-card__credit-details-item-title">Ставка</div>
|
|
16
|
+
<div class="credit-item-card__credit-details-item-separator"></div>
|
|
17
|
+
<div class="credit-item-card__credit-details-item-value">{{ cardInfo?.details?.rate }} %</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div *ngIf="cardInfo?.details?.amount" class="credit-item-card__credit-details-item">
|
|
20
|
+
<div class="ccredit-item-card__credit-details-item-title">Сумма кредита</div>
|
|
21
|
+
<div class="credit-item-card__credit-details-item-separator"></div>
|
|
22
|
+
<div class="credit-item-card__credit-details-item-value">до {{ cardInfo?.details?.amount }} {{ cardInfo?.details?.amountMeasure }}</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="credit-item-card__button-wrapper">
|
|
27
|
+
<aeb-new-button
|
|
28
|
+
[label]="'Рассчитать кредит'"
|
|
29
|
+
(click)="buttonClickEvent$.emit()"
|
|
30
|
+
></aeb-new-button>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.credit-item-card {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 359px;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
padding: 32px;
|
|
8
|
+
background-size: contain;
|
|
9
|
+
background-repeat: no-repeat;
|
|
10
|
+
background-position: right;
|
|
11
|
+
zoom: 98%;
|
|
12
|
+
color: var(--darkblue);
|
|
13
|
+
|
|
14
|
+
@media screen and (max-width: 767px) {
|
|
15
|
+
zoom: 54%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media screen and (max-width: 374px) {
|
|
19
|
+
zoom: 48%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__info-icon {
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 27px;
|
|
25
|
+
height: 27px;
|
|
26
|
+
right: 38px;
|
|
27
|
+
background: url('../../assets/images/info.svg');
|
|
28
|
+
background-size: cover;
|
|
29
|
+
background-repeat: no-repeat;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__title-wrapper {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__title {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
font-size: 32px;
|
|
44
|
+
line-height: 42px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__title-text {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
font-size: 18px;
|
|
50
|
+
line-height: 42px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__details-wrapper {
|
|
54
|
+
margin-top: 48px;
|
|
55
|
+
width: 375px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__button-wrapper {
|
|
59
|
+
margin-top: 16px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__credit-details {
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 90px;
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__credit-details-item {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&__credit-details-item-title {
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
line-height: 20px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__credit-details-item-separator {
|
|
81
|
+
width: 50px;
|
|
82
|
+
margin-top: 16px;
|
|
83
|
+
border-top: 1px solid var(--darkblue);
|
|
84
|
+
border-bottom: 1px solid var(--darkblue);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&__credit-details-item-value {
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
font-size: 24px;
|
|
90
|
+
line-height: 52px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AfterViewInit, Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
+
import { IProductItemCard } from './models/IProductItemCard';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'aeb-credit-item-card',
|
|
6
|
+
templateUrl: './credit-item-card.component.html',
|
|
7
|
+
styleUrls: ['./credit-item-card.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class CreditItemCardComponent implements AfterViewInit {
|
|
10
|
+
|
|
11
|
+
@Input()
|
|
12
|
+
public cardInfo: IProductItemCard;
|
|
13
|
+
|
|
14
|
+
@Output()
|
|
15
|
+
public buttonClickEvent$: EventEmitter<void> = new EventEmitter();
|
|
16
|
+
@Output()
|
|
17
|
+
public infoClickEvent$: EventEmitter<void> = new EventEmitter();
|
|
18
|
+
|
|
19
|
+
@ViewChild('creditItemCard') cardComponent: ElementRef;
|
|
20
|
+
|
|
21
|
+
constructor() { }
|
|
22
|
+
|
|
23
|
+
ngAfterViewInit(): void {
|
|
24
|
+
this.cardComponent.nativeElement.style.backgroundImage = `url('/assets/images/product-cards/${this.cardInfo.image}')`;
|
|
25
|
+
this.cardComponent.nativeElement.style.backgroundColor = this.cardInfo.backgroundColor;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CreditItemCardComponent } from './credit-item-card.component';
|
|
4
|
+
import { NewButtonModule } from '../new-button/new-button.module';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [CreditItemCardComponent],
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
NewButtonModule,
|
|
13
|
+
],
|
|
14
|
+
exports: [CreditItemCardComponent]
|
|
15
|
+
})
|
|
16
|
+
export class CreditItemCardModule { }
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CreditItemCardComponent } from './credit-item-card.component';
|
|
2
|
+
|
|
3
|
+
import { moduleMetadata } from '@storybook/angular';
|
|
4
|
+
import { Story } from '@storybook/angular/types-6-0';
|
|
5
|
+
import { CreditItemCardModule } from './credit-item-card.module';
|
|
6
|
+
|
|
7
|
+
import { boolean } from '@storybook/addon-knobs';
|
|
8
|
+
|
|
9
|
+
const cardData = {
|
|
10
|
+
id: 'simple-solutions',
|
|
11
|
+
title: 'Простые решения',
|
|
12
|
+
caption: 'Кредит, который решит любые задачи!',
|
|
13
|
+
details: {
|
|
14
|
+
time: 5,
|
|
15
|
+
timeMeasure: 'лет',
|
|
16
|
+
rate: 11,
|
|
17
|
+
amount: 3,
|
|
18
|
+
amountMeasure: 'млн ₽'
|
|
19
|
+
},
|
|
20
|
+
backgroundColor: '#EFE9E3'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const partialСardData = {
|
|
24
|
+
id: 'simple-solutions',
|
|
25
|
+
title: 'Простые решения',
|
|
26
|
+
caption: 'Кредит, который решит любые задачи!',
|
|
27
|
+
backgroundColor: '#EFE9E3'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
title: 'Components/Credit item card',
|
|
32
|
+
component: CreditItemCardComponent,
|
|
33
|
+
decorators: [
|
|
34
|
+
moduleMetadata({
|
|
35
|
+
imports: [CreditItemCardModule]
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const Default: Story<CreditItemCardComponent> = () => ({
|
|
41
|
+
component: CreditItemCardComponent,
|
|
42
|
+
template: `
|
|
43
|
+
<aeb-credit-item-card
|
|
44
|
+
[cardInfo]="withoutDetails ? partData : data"
|
|
45
|
+
(buttonClickEvent$)="openCalculator(item.id)"
|
|
46
|
+
(infoClickEvent$)="showInfoPopup(item)"
|
|
47
|
+
></aeb-credit-item-card>
|
|
48
|
+
`,
|
|
49
|
+
props: {
|
|
50
|
+
data: cardData,
|
|
51
|
+
partData: partialСardData,
|
|
52
|
+
withoutDetails: boolean('Without details', false)
|
|
53
|
+
}
|
|
54
|
+
});
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="aeb-datepicker-core"
|
|
3
|
+
[ngClass]="{
|
|
4
|
+
'aeb-datepicker-core--with-background': withBackground,
|
|
5
|
+
'aeb-datepicker-core--left': align === 'left',
|
|
6
|
+
'aeb-datepicker-core--right': align === 'right'
|
|
7
|
+
}"
|
|
8
|
+
#container
|
|
9
|
+
>
|
|
10
|
+
<div class="aeb-datepicker-core__controls">
|
|
11
|
+
<div
|
|
12
|
+
class="aeb-datepicker-core__arrow"
|
|
13
|
+
(click)="subMonth()"
|
|
14
|
+
>
|
|
15
|
+
<svg
|
|
16
|
+
width="9"
|
|
17
|
+
height="16"
|
|
18
|
+
viewBox="0 0 9 16"
|
|
19
|
+
fill="none"
|
|
20
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
d="M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15"
|
|
24
|
+
stroke="#27303E"
|
|
25
|
+
stroke-width="2"
|
|
26
|
+
stroke-linecap="round"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
</div>
|
|
30
|
+
<div
|
|
31
|
+
class="aeb-datepicker-core__btn aeb-datepicker-core__btn--month"
|
|
32
|
+
(click)="showMonthsHandler()"
|
|
33
|
+
>
|
|
34
|
+
{{ firstDay() | date:'LLLL' | titlecase }}
|
|
35
|
+
<div
|
|
36
|
+
class="aeb-datepicker-core__arrow-icon"
|
|
37
|
+
[ngClass]="{'aeb-datepicker-core__arrow-icon--active': isShowMonths}"
|
|
38
|
+
>
|
|
39
|
+
<svg
|
|
40
|
+
width="10"
|
|
41
|
+
height="6"
|
|
42
|
+
viewBox="0 0 10 6"
|
|
43
|
+
fill="none"
|
|
44
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
+
>
|
|
46
|
+
<path
|
|
47
|
+
d="M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1"
|
|
48
|
+
stroke="#27303E"
|
|
49
|
+
stroke-width="2"
|
|
50
|
+
stroke-linecap="round"
|
|
51
|
+
/>
|
|
52
|
+
</svg>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div
|
|
56
|
+
class="aeb-datepicker-core__btn"
|
|
57
|
+
(click)="showYearsHandler()"
|
|
58
|
+
>
|
|
59
|
+
{{ firstDay() | date:'yyyy' }}
|
|
60
|
+
<div
|
|
61
|
+
class="aeb-datepicker-core__arrow-icon"
|
|
62
|
+
[ngClass]="{'aeb-datepicker-core__arrow-icon--active': isShowYears}"
|
|
63
|
+
>
|
|
64
|
+
<svg
|
|
65
|
+
width="10"
|
|
66
|
+
height="6"
|
|
67
|
+
viewBox="0 0 10 6"
|
|
68
|
+
fill="none"
|
|
69
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
70
|
+
>
|
|
71
|
+
<path
|
|
72
|
+
d="M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1"
|
|
73
|
+
stroke="#27303E"
|
|
74
|
+
stroke-width="2"
|
|
75
|
+
stroke-linecap="round"
|
|
76
|
+
/>
|
|
77
|
+
</svg>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div
|
|
81
|
+
class="aeb-datepicker-core__arrow aeb-datepicker-core__arrow--right"
|
|
82
|
+
(click)="addMonth()"
|
|
83
|
+
>
|
|
84
|
+
<svg
|
|
85
|
+
width="9"
|
|
86
|
+
height="16"
|
|
87
|
+
viewBox="0 0 9 16"
|
|
88
|
+
fill="none"
|
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
90
|
+
>
|
|
91
|
+
<path
|
|
92
|
+
d="M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15"
|
|
93
|
+
stroke="#27303E"
|
|
94
|
+
stroke-width="2"
|
|
95
|
+
stroke-linecap="round"
|
|
96
|
+
/>
|
|
97
|
+
</svg>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="aeb-datepicker-core__calendar">
|
|
101
|
+
<div [style.display]="(!isShowYears && !isShowMonths) ? 'block' : 'none'">
|
|
102
|
+
<aeb-datepicker-month
|
|
103
|
+
[month]="month"
|
|
104
|
+
[date]="date"
|
|
105
|
+
[minDate]="minDate"
|
|
106
|
+
[maxDate]="maxDate"
|
|
107
|
+
[excludedDates]="excludedDates"
|
|
108
|
+
(setDate)="setDate($event)"
|
|
109
|
+
>
|
|
110
|
+
</aeb-datepicker-month>
|
|
111
|
+
</div>
|
|
112
|
+
<div [style.display]="isShowYears ? 'block' : 'none'">
|
|
113
|
+
<aeb-datepicker-tiles
|
|
114
|
+
[year]="currentYear"
|
|
115
|
+
[date]="startOfYear(currentYear)"
|
|
116
|
+
[minYear]="minYear"
|
|
117
|
+
[maxYear]="maxYear"
|
|
118
|
+
(setYear)="setYear($event)"
|
|
119
|
+
[isYears]="isShowYears"
|
|
120
|
+
[minDate]="minDate"
|
|
121
|
+
[maxDate]="maxDate"
|
|
122
|
+
[woDays]="withoutDays"
|
|
123
|
+
>
|
|
124
|
+
</aeb-datepicker-tiles>
|
|
125
|
+
</div>
|
|
126
|
+
<div [style.display]="isShowMonths ? 'block' : 'none'">
|
|
127
|
+
<aeb-datepicker-tiles
|
|
128
|
+
[isMonths]="isShowMonths"
|
|
129
|
+
[month]="currentMonth"
|
|
130
|
+
[minYear]="minYear"
|
|
131
|
+
[maxYear]="maxYear"
|
|
132
|
+
(setMonth)="setMonth($event)"
|
|
133
|
+
[year]="currentYear"
|
|
134
|
+
[minDate]="minDate"
|
|
135
|
+
[maxDate]="maxDate"
|
|
136
|
+
[woDays]="withoutDays"
|
|
137
|
+
>
|
|
138
|
+
</aeb-datepicker-tiles>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.aeb-datepicker-core {
|
|
2
|
+
user-select: none;
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 9999;
|
|
5
|
+
|
|
6
|
+
&--with-background {
|
|
7
|
+
background-color: var(--white);
|
|
8
|
+
border-radius: 10px;
|
|
9
|
+
border: 2px solid var(--gray-primary);
|
|
10
|
+
padding: 10px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// &--right {
|
|
14
|
+
// right: 0;
|
|
15
|
+
// }
|
|
16
|
+
|
|
17
|
+
// &--left {
|
|
18
|
+
// left: 0;
|
|
19
|
+
// }
|
|
20
|
+
|
|
21
|
+
&__calendar {
|
|
22
|
+
min-height: 220px;
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__controls {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__arrow {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
&--right {
|
|
37
|
+
transform: rotate(180deg);
|
|
38
|
+
margin-bottom: 10px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__btn {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
border: 2px solid var(--gray-primary);
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
padding: 6px 10px;
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
margin-right: 20px;
|
|
52
|
+
width: 72px;
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
|
|
55
|
+
&--month {
|
|
56
|
+
width: 112px;
|
|
57
|
+
margin-right: 10px;
|
|
58
|
+
margin-left: 20px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__arrow-icon {
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
position: relative;
|
|
65
|
+
bottom: 2px;
|
|
66
|
+
&--active {
|
|
67
|
+
transform: rotate(180deg);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.spec.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatepickerCoreComponent } from './datepicker-core.component';
|
|
4
|
+
|
|
5
|
+
describe('DatepickerCoreComponent', () => {
|
|
6
|
+
let component: DatepickerCoreComponent;
|
|
7
|
+
let fixture: ComponentFixture<DatepickerCoreComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ DatepickerCoreComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(DatepickerCoreComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|