aeb-ui-kit 0.0.113 → 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 -4780
- 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 -154
- 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 -115
- 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 -152
- 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 -4041
- 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 -40
- 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 -43
- 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,133 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
Input,
|
|
5
|
+
forwardRef,
|
|
6
|
+
Output,
|
|
7
|
+
EventEmitter,
|
|
8
|
+
ContentChildren,
|
|
9
|
+
QueryList,
|
|
10
|
+
ViewEncapsulation,
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
import { OptionComponent } from './option.component';
|
|
13
|
+
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'aeb-select',
|
|
17
|
+
templateUrl: './select.component.html',
|
|
18
|
+
styleUrls: ['./select.component.scss'],
|
|
19
|
+
host: {
|
|
20
|
+
class: 'aeb-dropdown',
|
|
21
|
+
},
|
|
22
|
+
encapsulation: ViewEncapsulation.None,
|
|
23
|
+
providers: [
|
|
24
|
+
{
|
|
25
|
+
provide: NG_VALUE_ACCESSOR,
|
|
26
|
+
useExisting: forwardRef(() => SelectComponent),
|
|
27
|
+
multi: true
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
})
|
|
31
|
+
export class SelectComponent implements ControlValueAccessor {
|
|
32
|
+
@Output()
|
|
33
|
+
change: EventEmitter<string> = new EventEmitter<string>();
|
|
34
|
+
|
|
35
|
+
@Input()
|
|
36
|
+
hasError: boolean;
|
|
37
|
+
|
|
38
|
+
@Input()
|
|
39
|
+
disabled: boolean = false;
|
|
40
|
+
|
|
41
|
+
@Input()
|
|
42
|
+
direction?: 'top' | 'bottom' = 'bottom';
|
|
43
|
+
|
|
44
|
+
isOpen?: boolean = false;
|
|
45
|
+
|
|
46
|
+
placeholder = '';
|
|
47
|
+
|
|
48
|
+
onChange: (_: string) => void;
|
|
49
|
+
|
|
50
|
+
private _value: string;
|
|
51
|
+
|
|
52
|
+
constructor(private cdr: ChangeDetectorRef) {}
|
|
53
|
+
|
|
54
|
+
get value(): string {
|
|
55
|
+
return this._value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
set value(value: string) {
|
|
59
|
+
if (value === this._value) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
this._value = value;
|
|
64
|
+
|
|
65
|
+
if (typeof this.onChange === 'function') {
|
|
66
|
+
this.onChange(this._value);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
this.change.emit(value);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get selectedOption(): { value: string; label: string } {
|
|
73
|
+
if (this.options) {
|
|
74
|
+
return this.options.find(option => option.value === this._value);
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Вызывается при задании исходного (new FormControl('I am default value'))
|
|
81
|
+
* или нового значения сверху control.setValue('I am setted value').
|
|
82
|
+
*/
|
|
83
|
+
writeValue(value: string): void {
|
|
84
|
+
this._value = value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Метод определяющий обработчик, который должен быть вызван при изменении значения
|
|
89
|
+
* (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
|
|
90
|
+
*/
|
|
91
|
+
registerOnChange(fn: () => void): void {
|
|
92
|
+
this.onChange = fn;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Определяет callback, который вызывается на blur событие (control помечается флагом touched)
|
|
97
|
+
*/
|
|
98
|
+
registerOnTouched(): void {}
|
|
99
|
+
|
|
100
|
+
setValue(option: string): void {
|
|
101
|
+
this.value = option;
|
|
102
|
+
this.closeDropdown();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@ContentChildren(OptionComponent)
|
|
106
|
+
optionsQuery: QueryList<OptionComponent>;
|
|
107
|
+
|
|
108
|
+
public options: OptionComponent[] = [];
|
|
109
|
+
|
|
110
|
+
openDropdown(): void {
|
|
111
|
+
if (this.disabled) return;
|
|
112
|
+
if (this.isOpen === true) this.closeDropdown();
|
|
113
|
+
else this.isOpen = true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
closeDropdown(): void {
|
|
117
|
+
this.isOpen = false;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
handleClickOutside(event: Event): void {
|
|
121
|
+
if (this.isOpen) {
|
|
122
|
+
this.closeDropdown();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
ngAfterViewInit(): void {
|
|
127
|
+
this.options = [...this.optionsQuery];
|
|
128
|
+
this.optionsQuery.changes.subscribe(() => {
|
|
129
|
+
this.options = [...this.optionsQuery];
|
|
130
|
+
});
|
|
131
|
+
this.cdr.detectChanges();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SelectComponent } from './select.component';
|
|
4
|
+
import { OptionComponent } from './option.component';
|
|
5
|
+
import { ClickOutsideModule } from '../click-outside/click-outside.module'
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [SelectComponent, OptionComponent],
|
|
9
|
+
imports: [CommonModule, ClickOutsideModule],
|
|
10
|
+
exports: [SelectComponent, OptionComponent],
|
|
11
|
+
})
|
|
12
|
+
export class SelectModule {}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SelectModule } from './select.module';
|
|
2
|
+
import { SelectComponent } from './select.component';
|
|
3
|
+
import { boolean } from '@storybook/addon-knobs';
|
|
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
|
+
export default {
|
|
10
|
+
title: 'Components/Select',
|
|
11
|
+
component: SelectComponent,
|
|
12
|
+
decorators: [
|
|
13
|
+
moduleMetadata({
|
|
14
|
+
imports: [SelectModule]
|
|
15
|
+
})
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const Default: Story<SelectComponent> = () => ({
|
|
20
|
+
component: SelectComponent,
|
|
21
|
+
template: `
|
|
22
|
+
<aeb-select
|
|
23
|
+
(change)="onChange($event)"
|
|
24
|
+
[hasError]="hasError"
|
|
25
|
+
[disabled]="disabled"
|
|
26
|
+
>
|
|
27
|
+
<label>Placeholder <span style="color: var(--red);">*</span></label>
|
|
28
|
+
<aeb-option value="option1">Option 1</aeb-option>
|
|
29
|
+
<aeb-option value="option2">Option 2</aeb-option>
|
|
30
|
+
<aeb-option value="option3">Option 3</aeb-option>
|
|
31
|
+
</aeb-select>
|
|
32
|
+
`,
|
|
33
|
+
props: {
|
|
34
|
+
onChange: (value: string) => {
|
|
35
|
+
action('[Select]: ')(value);
|
|
36
|
+
},
|
|
37
|
+
hasError: boolean('On error', false),
|
|
38
|
+
disabled: boolean('Disabled', false)
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<div *ngIf="!layoutMod" class="aeb-sidebar-items">
|
|
2
|
+
<ng-container *ngTemplateOutlet="contentTpl"></ng-container>
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<div *ngIf="layoutMod === 'burger'" class="aeb-sidebar-burger">
|
|
6
|
+
<div
|
|
7
|
+
class="aeb-sidebar-burger__icon"
|
|
8
|
+
(click)="handleToggleSidebar()"
|
|
9
|
+
>
|
|
10
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M1.71387 12H22.2853" stroke="#27303E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
12
|
+
<path d="M1.71387 5.14258H22.2853" stroke="#27303E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13
|
+
<path d="M1.71387 18.8574H22.2853" stroke="#27303E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
+
</svg>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div *ngIf="layoutMod === 'burger'" class="aeb-sidebar-items">
|
|
19
|
+
<div class="aeb-sidebar-content">
|
|
20
|
+
<ng-container *ngTemplateOutlet="contentTpl"></ng-container>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="aeb-sidebar-footer" *ngIf="isOpen">
|
|
25
|
+
<!-- Связаться с администратором можно по почте
|
|
26
|
+
<a href="mailto:support@aeb.ru">support@aeb.ru</a> -->
|
|
27
|
+
</div>
|
|
28
|
+
<div *ngIf="!layoutMod" class="aeb-sidebar-toggle-icon" (click)="handleToggleSidebar()">
|
|
29
|
+
<svg
|
|
30
|
+
width="28"
|
|
31
|
+
height="28"
|
|
32
|
+
viewBox="0 0 28 28"
|
|
33
|
+
fill="none"
|
|
34
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
35
|
+
>
|
|
36
|
+
<path
|
|
37
|
+
fill-rule="evenodd"
|
|
38
|
+
clip-rule="evenodd"
|
|
39
|
+
d="M15.5359 6.30688L21.7602 13.3677C21.9199 13.5493 22 13.7653 22 14C22 14.2106 21.9341 14.4606 21.7515 14.6422L15.5318 21.6978C15.3721 21.8793 15.1534 22 14.8856 22C14.6176 22 14.399 21.8794 14.2394 21.6977C13.927 21.3423 13.9119 20.7814 14.244 20.4287L19.9121 14L14.2398 7.56653C13.9272 7.21101 13.9119 6.64939 14.2444 6.29664C14.4095 6.11179 14.6412 6 14.8921 6C15.1445 6 15.3769 6.1135 15.5359 6.30688Z"
|
|
40
|
+
fill="#9CA8AF"
|
|
41
|
+
/>
|
|
42
|
+
<path
|
|
43
|
+
fill-rule="evenodd"
|
|
44
|
+
clip-rule="evenodd"
|
|
45
|
+
d="M7.53586 6.30688L13.7602 13.3677C13.9199 13.5493 14 13.7653 14 14C14 14.2106 13.9341 14.4606 13.7515 14.6422L7.53175 21.6978C7.37212 21.8793 7.15341 22 6.88558 22C6.61765 22 6.39904 21.8794 6.2394 21.6977C5.92703 21.3423 5.91188 20.7814 6.24398 20.4287L11.9121 14L6.23978 7.56653C5.92725 7.21101 5.91186 6.64939 6.24438 6.29664C6.4095 6.11179 6.64121 6 6.89212 6C7.14455 6 7.37688 6.1135 7.53586 6.30688Z"
|
|
46
|
+
fill="#9CA8AF"
|
|
47
|
+
/>
|
|
48
|
+
</svg>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<ng-template #contentTpl>
|
|
52
|
+
<ng-content></ng-content>
|
|
53
|
+
</ng-template>
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
.aeb-sidebar {
|
|
2
|
+
width: 80px;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
color: var(--darkblue);
|
|
7
|
+
|
|
8
|
+
background-color: var(--white);
|
|
9
|
+
height: calc(100vh - 80px);
|
|
10
|
+
top: 0;
|
|
11
|
+
border-right: 2px solid #f3f3f3;
|
|
12
|
+
position: fixed;
|
|
13
|
+
top: 80px;
|
|
14
|
+
left: 0;
|
|
15
|
+
z-index: 1001;
|
|
16
|
+
|
|
17
|
+
&.right {
|
|
18
|
+
left: auto;
|
|
19
|
+
right: 0;
|
|
20
|
+
border-right: none;
|
|
21
|
+
border-left: 2px solid #f3f3f3;
|
|
22
|
+
|
|
23
|
+
.aeb-sidebar-toggle-icon {
|
|
24
|
+
transform: scaleX(-1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-items {
|
|
29
|
+
width: 100%;
|
|
30
|
+
padding: 14px 0 0;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-item {
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-items: center;
|
|
41
|
+
padding: 14px 0;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
width: 100%;
|
|
45
|
+
|
|
46
|
+
&-icon {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex: 0 0 auto;
|
|
49
|
+
width: 28px;
|
|
50
|
+
height: 28px;
|
|
51
|
+
opacity: 0.8;
|
|
52
|
+
|
|
53
|
+
img {
|
|
54
|
+
object-fit: contain;
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
svg {
|
|
59
|
+
fill: var(--gray);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-label {
|
|
64
|
+
color: var(--darkblue);
|
|
65
|
+
display: none;
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
margin-left: 18px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
background-color: var(--white-hover);
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
|
|
74
|
+
> a {
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.active {
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
|
|
82
|
+
.aeb-sidebar-item-label {
|
|
83
|
+
color: var(--blue);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.aeb-sidebar-item-icon {
|
|
87
|
+
svg {
|
|
88
|
+
fill: var(--blue);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-footer {
|
|
95
|
+
margin-top: auto;
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
line-height: 18px;
|
|
98
|
+
text-align: center;
|
|
99
|
+
padding-left: 30px;
|
|
100
|
+
padding-right: 30px;
|
|
101
|
+
color: var(--gray);
|
|
102
|
+
|
|
103
|
+
a {
|
|
104
|
+
color: var(--blue);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-toggle-icon {
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
user-select: none;
|
|
111
|
+
margin: 0 8px 10px;
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
border-radius: 4px;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
flex: 0 0 auto;
|
|
118
|
+
height: 50px;
|
|
119
|
+
margin-top: 16px;
|
|
120
|
+
transition: all linear 230ms;
|
|
121
|
+
|
|
122
|
+
> svg {
|
|
123
|
+
transition: all ease 230ms;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:hover {
|
|
127
|
+
background-color: #F3F3F3;
|
|
128
|
+
|
|
129
|
+
> svg {
|
|
130
|
+
transform: translateX(2px);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.open {
|
|
136
|
+
width: 260px;
|
|
137
|
+
|
|
138
|
+
.aeb-sidebar-item {
|
|
139
|
+
padding: 14px 28px;
|
|
140
|
+
justify-content: flex-start;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.aeb-sidebar-item-label {
|
|
144
|
+
display: inline-block;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.aeb-sidebar-toggle-icon {
|
|
148
|
+
background-color: #F3F3F3;
|
|
149
|
+
|
|
150
|
+
> svg {
|
|
151
|
+
transform: scaleX(-1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:hover {
|
|
155
|
+
background-color: #e7e7e7;
|
|
156
|
+
|
|
157
|
+
> svg {
|
|
158
|
+
transform: translateX(-2px) scaleX(-1);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&--burger {
|
|
165
|
+
|
|
166
|
+
display: block;
|
|
167
|
+
transition: width, .2s;
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
width: 68px;
|
|
170
|
+
|
|
171
|
+
&.open {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
justify-content: space-between;
|
|
175
|
+
|
|
176
|
+
.aeb-sidebar-items {
|
|
177
|
+
overflow: auto;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.aeb-sidebar-burger {
|
|
182
|
+
height: 70px;
|
|
183
|
+
padding: 28px 24px;
|
|
184
|
+
box-sizing: border-box;
|
|
185
|
+
|
|
186
|
+
&__icon {
|
|
187
|
+
display: inline-block;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.aeb-sidebar-items {
|
|
193
|
+
width: 260px;
|
|
194
|
+
margin-bottom: 30px;
|
|
195
|
+
box-sizing: border-box;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
padding: 0 24px;
|
|
198
|
+
display: block;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.aeb-sidebar-footer {
|
|
202
|
+
margin-bottom: 32px;
|
|
203
|
+
width: 200px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SidebarComponent } from './sidebar.component';
|
|
4
|
+
|
|
5
|
+
describe('SidebarComponent', () => {
|
|
6
|
+
let component: SidebarComponent;
|
|
7
|
+
let fixture: ComponentFixture<SidebarComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SidebarComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(SidebarComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, OnInit, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'aeb-sidebar',
|
|
5
|
+
templateUrl: './sidebar.component.html',
|
|
6
|
+
styleUrls: ['./sidebar.component.scss'],
|
|
7
|
+
encapsulation: ViewEncapsulation.None,
|
|
8
|
+
host: {
|
|
9
|
+
class: 'aeb-sidebar',
|
|
10
|
+
'[class.right]': 'isRight',
|
|
11
|
+
'[class.open]': 'isOpen',
|
|
12
|
+
'[class.aeb-sidebar--burger]': "layoutMod === 'burger'",
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class SidebarComponent implements OnInit {
|
|
16
|
+
@Input()
|
|
17
|
+
public isRight?: boolean = false;
|
|
18
|
+
|
|
19
|
+
@Input()
|
|
20
|
+
public isOpen?: boolean = true;
|
|
21
|
+
|
|
22
|
+
@Input('layoutMod') layoutMod: 'burger';
|
|
23
|
+
|
|
24
|
+
constructor() {}
|
|
25
|
+
|
|
26
|
+
ngOnInit(): void {}
|
|
27
|
+
|
|
28
|
+
handleToggleSidebar(): void {
|
|
29
|
+
this.isOpen = !this.isOpen;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SidebarComponent } from './sidebar.component';
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [SidebarComponent],
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
exports: [SidebarComponent],
|
|
9
|
+
})
|
|
10
|
+
export class SidebarModule {}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { SidebarComponent } from './sidebar.component';
|
|
2
|
+
|
|
3
|
+
import { moduleMetadata } from '@storybook/angular';
|
|
4
|
+
import { Story } from '@storybook/angular/types-6-0';
|
|
5
|
+
import { select } from '@storybook/addon-knobs';
|
|
6
|
+
|
|
7
|
+
const wrapper = 'margin-top: 20px;'
|
|
8
|
+
const item = 'display: flex; align-items: center; padding: 15px 0; user-select: none';
|
|
9
|
+
const icon = 'margin-right: 20px;';
|
|
10
|
+
|
|
11
|
+
const options = [
|
|
12
|
+
'None',
|
|
13
|
+
'burger',
|
|
14
|
+
'right'
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
title: 'Components/Sidebar',
|
|
19
|
+
component: SidebarComponent,
|
|
20
|
+
decorators: [
|
|
21
|
+
moduleMetadata({
|
|
22
|
+
declarations: [SidebarComponent]
|
|
23
|
+
})
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Default: Story<SidebarComponent> = () => ({
|
|
28
|
+
component: SidebarComponent,
|
|
29
|
+
template: `
|
|
30
|
+
<aeb-sidebar [isRight]="layoutMod() === 'right'" [layoutMod]="layoutMod() === 'burger' ? 'burger' : null">
|
|
31
|
+
<div *ngIf="layoutMod() === 'burger'" style="${wrapper}">
|
|
32
|
+
<div style="${item}">
|
|
33
|
+
<div style="${icon}">
|
|
34
|
+
<svg width="24" height="21" viewBox="0 0 24 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
35
|
+
<path d="M15.6667 4H21C22.1046 4 23 4.89543 23 6V18C23 19.1046 22.1046 20 21 20H3C1.89543 20 1 19.1046 1 18V6C1 4.89543 1.89543 4 3 4H8.33333" stroke="#A3AAAE" stroke-width="2"/>
|
|
36
|
+
<rect x="8" y="1" width="8" height="6" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
37
|
+
<rect x="4" y="11" width="7" height="5" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
38
|
+
<rect x="14.5" y="10.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
39
|
+
<rect x="14.5" y="15.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
42
|
+
Главная
|
|
43
|
+
</div>
|
|
44
|
+
<div style="${item}">
|
|
45
|
+
<div style="${icon}">
|
|
46
|
+
<svg width="24" height="21" viewBox="0 0 24 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
47
|
+
<path d="M15.6667 4H21C22.1046 4 23 4.89543 23 6V18C23 19.1046 22.1046 20 21 20H3C1.89543 20 1 19.1046 1 18V6C1 4.89543 1.89543 4 3 4H8.33333" stroke="#A3AAAE" stroke-width="2"/>
|
|
48
|
+
<rect x="8" y="1" width="8" height="6" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
49
|
+
<rect x="4" y="11" width="7" height="5" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
50
|
+
<rect x="14.5" y="10.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
51
|
+
<rect x="14.5" y="15.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
52
|
+
</svg>
|
|
53
|
+
</div>
|
|
54
|
+
Шаблоны
|
|
55
|
+
</div>
|
|
56
|
+
<div style="${item}">
|
|
57
|
+
<div style="${icon}">
|
|
58
|
+
<svg width="24" height="21" viewBox="0 0 24 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
59
|
+
<path d="M15.6667 4H21C22.1046 4 23 4.89543 23 6V18C23 19.1046 22.1046 20 21 20H3C1.89543 20 1 19.1046 1 18V6C1 4.89543 1.89543 4 3 4H8.33333" stroke="#A3AAAE" stroke-width="2"/>
|
|
60
|
+
<rect x="8" y="1" width="8" height="6" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
61
|
+
<rect x="4" y="11" width="7" height="5" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
62
|
+
<rect x="14.5" y="10.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
63
|
+
<rect x="14.5" y="15.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
64
|
+
</svg>
|
|
65
|
+
</div>
|
|
66
|
+
История загрузкок
|
|
67
|
+
</div>
|
|
68
|
+
<div style="${item}">
|
|
69
|
+
<div style="${icon}">
|
|
70
|
+
<svg width="24" height="21" viewBox="0 0 24 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
71
|
+
<path d="M15.6667 4H21C22.1046 4 23 4.89543 23 6V18C23 19.1046 22.1046 20 21 20H3C1.89543 20 1 19.1046 1 18V6C1 4.89543 1.89543 4 3 4H8.33333" stroke="#A3AAAE" stroke-width="2"/>
|
|
72
|
+
<rect x="8" y="1" width="8" height="6" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
73
|
+
<rect x="4" y="11" width="7" height="5" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
74
|
+
<rect x="14.5" y="10.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
75
|
+
<rect x="14.5" y="15.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
76
|
+
</svg>
|
|
77
|
+
</div>
|
|
78
|
+
Скачанные файлы
|
|
79
|
+
</div>
|
|
80
|
+
<div style="${item}">
|
|
81
|
+
<div style="${icon}">
|
|
82
|
+
<svg width="24" height="21" viewBox="0 0 24 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
83
|
+
<path d="M15.6667 4H21C22.1046 4 23 4.89543 23 6V18C23 19.1046 22.1046 20 21 20H3C1.89543 20 1 19.1046 1 18V6C1 4.89543 1.89543 4 3 4H8.33333" stroke="#A3AAAE" stroke-width="2"/>
|
|
84
|
+
<rect x="8" y="1" width="8" height="6" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
85
|
+
<rect x="4" y="11" width="7" height="5" rx="1" stroke="#A3AAAE" stroke-width="2"/>
|
|
86
|
+
<rect x="14.5" y="10.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
87
|
+
<rect x="14.5" y="15.5" width="6" height="1" rx="0.5" stroke="#A3AAAE"/>
|
|
88
|
+
</svg>
|
|
89
|
+
</div>
|
|
90
|
+
Настройки
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div *ngIf="layoutMod() === 'None'">
|
|
94
|
+
Default sidebar
|
|
95
|
+
</div>
|
|
96
|
+
</aeb-sidebar>
|
|
97
|
+
`,
|
|
98
|
+
props: {
|
|
99
|
+
layoutMod: () => select('Layout mod', options, 'None')
|
|
100
|
+
}
|
|
101
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Pipe({
|
|
4
|
+
name: 'replace'
|
|
5
|
+
})
|
|
6
|
+
export class ReplacePipe implements PipeTransform {
|
|
7
|
+
|
|
8
|
+
transform(value: string, strToReplace: string, replacementStr: string): string {
|
|
9
|
+
if (!value || ! strToReplace || ! replacementStr) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return value.replace(new RegExp(strToReplace, 'g'), replacementStr);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<div class="slider">
|
|
2
|
+
<div class="label">{{ label }}</div>
|
|
3
|
+
<div class="value">{{ value | number: "1.0-0" | replace: ',' : valueSeparator }} {{ prefix }}</div>
|
|
4
|
+
</div>
|
|
5
|
+
<div class="slider-line-wrapper" #slider>
|
|
6
|
+
<div class="slider-line">
|
|
7
|
+
<div
|
|
8
|
+
class="slider-line-position"
|
|
9
|
+
[ngStyle]="{
|
|
10
|
+
width: position + '%'
|
|
11
|
+
}"
|
|
12
|
+
[ngClass]="{ pressed: isPressed }"
|
|
13
|
+
></div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="slider-limits">
|
|
17
|
+
<div>{{ min | number: "1.0-0" | replace: ',' : valueSeparator }} {{ prefix }}</div>
|
|
18
|
+
<div>{{ max | number: "1.0-0" | replace: ',' : valueSeparator }} {{ prefix }}</div>
|
|
19
|
+
</div>
|