aeb-ui-kit 0.0.117 → 0.0.118
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/README.md +22 -15
- package/aeb-ui-kit.d.ts +21 -0
- package/aeb-ui-kit.metadata.json +1 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/fonts/LICENSE.txt +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/fonts/Roboto-Bold.ttf +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/fonts/Roboto-Medium.ttf +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/fonts/Roboto-Regular.ttf +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/arrow_down/arrow_down_blue.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/arrow_down/arrow_down_gray.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/arrow_down/arrow_down_turquoise.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/arrow_down/arrow_down_white.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/attach/passport_primary.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/attach/passport_secondary.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/background-search.png +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/clip.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/clip_blue.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/close.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-add.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-back.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-blocked.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-checked.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-download.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-edit.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-failure.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-more.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-rework.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-spinner.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-subtract.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-success.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-time.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-trash.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/info.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/nt-icon.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/visa/icon_failure.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/visa/icon_time.svg +0 -0
- package/{projects/aeb-ui-kit/src/assets → assets}/images/visa/success_icon.svg +0 -0
- package/bundles/aeb-ui-kit.umd.js +4858 -0
- package/bundles/aeb-ui-kit.umd.js.map +1 -0
- package/bundles/aeb-ui-kit.umd.min.js +17 -0
- package/bundles/aeb-ui-kit.umd.min.js.map +1 -0
- package/esm2015/aeb-ui-kit.js +22 -0
- package/esm2015/index.js +2 -0
- package/esm2015/lib/accordion/accordion.component.js +35 -0
- package/esm2015/lib/accordion/accordion.module.js +15 -0
- package/esm2015/lib/action-bar/action-bar.component.js +20 -0
- package/esm2015/lib/action-bar/action-bar.module.js +15 -0
- package/esm2015/lib/aeb-ui-kit.module.js +119 -0
- package/esm2015/lib/button/button.component.js +31 -0
- package/esm2015/lib/button/button.module.js +13 -0
- package/esm2015/lib/checkbox/checkbox.component.js +97 -0
- package/esm2015/lib/checkbox/checkbox.module.js +13 -0
- package/esm2015/lib/click-outside/click-outside.directive.js +44 -0
- package/esm2015/lib/click-outside/click-outside.module.js +13 -0
- package/esm2015/lib/comment/comment.component.js +53 -0
- package/esm2015/lib/comment/comment.module.js +25 -0
- package/esm2015/lib/credit-item-card/credit-item-card.component.js +26 -0
- package/esm2015/lib/credit-item-card/credit-item-card.module.js +17 -0
- package/esm2015/lib/credit-item-card/models/IProductItemCard.js +2 -0
- package/esm2015/lib/datepicker/datepicker-core/datepicker-core.component.js +135 -0
- package/esm2015/lib/datepicker/datepicker-month/datepicker-month.component.js +52 -0
- package/esm2015/lib/datepicker/datepicker-tiles/datepicker-tiles.component.js +81 -0
- package/esm2015/lib/datepicker/datepicker.component.js +337 -0
- package/esm2015/lib/datepicker/datepicker.module.js +43 -0
- package/esm2015/lib/datepicker/pipes/date-to-str.pipe.js +13 -0
- package/esm2015/lib/datepicker/services/datepicker-utils.service.js +149 -0
- package/esm2015/lib/datepicker/services/mask-utils.service.js +61 -0
- package/esm2015/lib/dropdown/dropdown.component.js +91 -0
- package/esm2015/lib/dropdown/dropdown.module.js +14 -0
- package/esm2015/lib/field-slider/directives/numbers-only.directive.js +64 -0
- package/esm2015/lib/field-slider/field-slider.component.js +152 -0
- package/esm2015/lib/field-slider/field-slider.module.js +25 -0
- package/esm2015/lib/field-slider/pipes/replace.pipe.js +15 -0
- package/esm2015/lib/file-attach/directives/drag-and-drop.directive.js +40 -0
- package/esm2015/lib/file-attach/file-attach.component.js +63 -0
- package/esm2015/lib/file-attach/file-attach.module.js +15 -0
- package/esm2015/lib/filter-tags/filter-tag/filter-tag.component.js +27 -0
- package/esm2015/lib/filter-tags/filter-tags.component.js +33 -0
- package/esm2015/lib/filter-tags/filter-tags.module.js +16 -0
- package/esm2015/lib/footer/footer-bottom/footer-bottom.component.js +41 -0
- package/esm2015/lib/footer/footer-menu/footer-menu.component.js +57 -0
- package/esm2015/lib/footer/footer-top/footer-top.component.js +24 -0
- package/esm2015/lib/footer/footer.component.js +22 -0
- package/esm2015/lib/footer/footer.module.js +23 -0
- package/esm2015/lib/form-field/form-field.component.js +73 -0
- package/esm2015/lib/form-field/form-field.module.js +17 -0
- package/esm2015/lib/form-field/icon.directive.js +11 -0
- package/esm2015/lib/form-field/input.directive.js +55 -0
- package/esm2015/lib/form-field/label.directive.js +11 -0
- package/esm2015/lib/form-field/textarea.directive.js +55 -0
- package/esm2015/lib/header/header.component.js +23 -0
- package/esm2015/lib/header/header.module.js +14 -0
- package/esm2015/lib/header/logo.component.js +18 -0
- package/esm2015/lib/heading/breadcrumps/breadcrumps.component.js +26 -0
- package/esm2015/lib/heading/heading.component.js +19 -0
- package/esm2015/lib/heading/heading.module.js +17 -0
- package/esm2015/lib/heading/product-title/product-title.component.js +25 -0
- package/esm2015/lib/label/label.component.js +15 -0
- package/esm2015/lib/label/label.module.js +13 -0
- package/esm2015/lib/new-button/new-button.component.js +51 -0
- package/esm2015/lib/new-button/new-button.module.js +13 -0
- package/esm2015/lib/new-dropdown/new-dropdown.component.js +162 -0
- package/esm2015/lib/new-dropdown/new-dropdown.module.js +21 -0
- package/esm2015/lib/new-notifications/new-notifications.component.js +32 -0
- package/esm2015/lib/new-notifications/new-notifications.module.js +15 -0
- package/esm2015/lib/new-tooltip/new-tooltip.component.js +21 -0
- package/esm2015/lib/new-tooltip/new-tooltip.module.js +20 -0
- package/esm2015/lib/new-tooltip/services/domservice.service.js +44 -0
- package/esm2015/lib/new-tooltip/tooltip.directive.js +146 -0
- package/esm2015/lib/news-card/news-card.component.js +17 -0
- package/esm2015/lib/news-card/news-card.module.js +15 -0
- package/esm2015/lib/notifications/notifications.component.js +24 -0
- package/esm2015/lib/notifications/notifications.module.js +13 -0
- package/esm2015/lib/pagination/pagination.component.js +154 -0
- package/esm2015/lib/pagination/pagination.module.js +19 -0
- package/esm2015/lib/pop-up/pop-up.component.js +25 -0
- package/esm2015/lib/pop-up/pop-up.directive.js +57 -0
- package/esm2015/lib/pop-up/pop-up.module.js +16 -0
- package/esm2015/lib/radio-buttons/radio-buttons.component.js +56 -0
- package/esm2015/lib/radio-buttons/radio-buttons.module.js +15 -0
- package/esm2015/lib/search/highlight.pipe.js +12 -0
- package/esm2015/lib/search/search.component.js +56 -0
- package/esm2015/lib/search/search.module.js +18 -0
- package/esm2015/lib/select/option.component.js +25 -0
- package/esm2015/lib/select/select.component.js +108 -0
- package/esm2015/lib/select/select.module.js +15 -0
- package/esm2015/lib/sidebar/sidebar.component.js +32 -0
- package/esm2015/lib/sidebar/sidebar.module.js +13 -0
- package/esm2015/lib/slider/pipes/replace.pipe.js +15 -0
- package/esm2015/lib/slider/slider.component.js +129 -0
- package/esm2015/lib/slider/slider.module.js +17 -0
- package/esm2015/lib/spinner/spinner.component.js +15 -0
- package/esm2015/lib/spinner/spinner.module.js +13 -0
- package/esm2015/lib/table/table.component.js +27 -0
- package/esm2015/lib/table/table.model.js +2 -0
- package/esm2015/lib/table/table.module.js +14 -0
- package/esm2015/lib/table/table.pipe.js +18 -0
- package/esm2015/lib/tabs/tab.directive.js +18 -0
- package/esm2015/lib/tabs/tabs.component.js +64 -0
- package/esm2015/lib/tabs/tabs.module.js +16 -0
- package/esm2015/lib/tag-tab/tag-tab.component.js +19 -0
- package/esm2015/lib/tag-tab/tag-tab.module.js +13 -0
- package/esm2015/lib/tooltip/tooltip.component.js +29 -0
- package/esm2015/lib/tooltip/tooltip.module.js +13 -0
- package/esm2015/lib/visa/visa-item.component.js +16 -0
- package/esm2015/lib/visa/visa-span.directive.js +26 -0
- package/esm2015/lib/visa/visa.component.js +15 -0
- package/esm2015/lib/visa/visa.module.js +25 -0
- package/esm2015/lib/wizard/wizard-step.component.js +33 -0
- package/esm2015/lib/wizard/wizard.component.js +80 -0
- package/esm2015/lib/wizard/wizard.module.js +14 -0
- package/esm2015/public-api.js +96 -0
- package/fesm2015/aeb-ui-kit.js +4084 -0
- package/fesm2015/aeb-ui-kit.js.map +1 -0
- package/{projects/aeb-ui-kit/src/index.ts → index.d.ts} +0 -0
- package/lib/accordion/accordion.component.d.ts +10 -0
- package/lib/accordion/accordion.module.d.ts +2 -0
- package/lib/action-bar/action-bar.component.d.ts +7 -0
- package/lib/action-bar/action-bar.module.d.ts +2 -0
- package/lib/aeb-ui-kit.module.d.ts +2 -0
- package/lib/button/button.component.d.ts +9 -0
- package/lib/button/button.module.d.ts +2 -0
- package/lib/checkbox/checkbox.component.d.ts +29 -0
- package/lib/checkbox/checkbox.module.d.ts +2 -0
- package/lib/click-outside/click-outside.directive.d.ts +12 -0
- package/lib/click-outside/click-outside.module.d.ts +2 -0
- package/lib/comment/comment.component.d.ts +36 -0
- package/lib/comment/comment.module.d.ts +2 -0
- package/lib/credit-item-card/credit-item-card.component.d.ts +10 -0
- package/lib/credit-item-card/credit-item-card.module.d.ts +2 -0
- package/{projects/aeb-ui-kit/src/lib/credit-item-card/models/IProductItemCard.ts → lib/credit-item-card/models/IProductItemCard.d.ts} +0 -1
- package/lib/datepicker/datepicker-core/datepicker-core.component.d.ts +38 -0
- package/lib/datepicker/datepicker-month/datepicker-month.component.d.ts +19 -0
- package/lib/datepicker/datepicker-tiles/datepicker-tiles.component.d.ts +28 -0
- package/lib/datepicker/datepicker.component.d.ts +86 -0
- package/lib/datepicker/datepicker.module.d.ts +4 -0
- package/lib/datepicker/pipes/date-to-str.pipe.d.ts +4 -0
- package/lib/datepicker/services/datepicker-utils.service.d.ts +29 -0
- package/lib/datepicker/services/mask-utils.service.d.ts +7 -0
- package/lib/dropdown/dropdown.component.d.ts +39 -0
- package/lib/dropdown/dropdown.module.d.ts +2 -0
- package/lib/field-slider/directives/numbers-only.directive.d.ts +7 -0
- package/lib/field-slider/field-slider.component.d.ts +31 -0
- package/lib/field-slider/field-slider.module.d.ts +2 -0
- package/lib/field-slider/pipes/replace.pipe.d.ts +4 -0
- package/lib/file-attach/directives/drag-and-drop.directive.d.ts +9 -0
- package/lib/file-attach/file-attach.component.d.ts +25 -0
- package/lib/file-attach/file-attach.module.d.ts +2 -0
- package/lib/filter-tags/filter-tag/filter-tag.component.d.ts +9 -0
- package/lib/filter-tags/filter-tags.component.d.ts +14 -0
- package/lib/filter-tags/filter-tags.module.d.ts +2 -0
- package/lib/footer/footer-bottom/footer-bottom.component.d.ts +13 -0
- package/lib/footer/footer-menu/footer-menu.component.d.ts +13 -0
- package/lib/footer/footer-top/footer-top.component.d.ts +8 -0
- package/lib/footer/footer.component.d.ts +7 -0
- package/lib/footer/footer.module.d.ts +2 -0
- package/lib/form-field/form-field.component.d.ts +16 -0
- package/lib/form-field/form-field.module.d.ts +2 -0
- package/lib/form-field/icon.directive.d.ts +3 -0
- package/lib/form-field/input.directive.d.ts +22 -0
- package/lib/form-field/label.directive.d.ts +3 -0
- package/lib/form-field/textarea.directive.d.ts +22 -0
- package/lib/header/header.component.d.ts +6 -0
- package/lib/header/header.module.d.ts +2 -0
- package/lib/header/logo.component.d.ts +5 -0
- package/lib/heading/breadcrumps/breadcrumps.component.d.ts +8 -0
- package/lib/heading/heading.component.d.ts +6 -0
- package/lib/heading/heading.module.d.ts +2 -0
- package/lib/heading/product-title/product-title.component.d.ts +8 -0
- package/lib/label/label.component.d.ts +5 -0
- package/lib/label/label.module.d.ts +2 -0
- package/lib/new-button/new-button.component.d.ts +38 -0
- package/lib/new-button/new-button.module.d.ts +2 -0
- package/lib/new-dropdown/new-dropdown.component.d.ts +42 -0
- package/lib/new-dropdown/new-dropdown.module.d.ts +2 -0
- package/lib/new-notifications/new-notifications.component.d.ts +17 -0
- package/lib/new-notifications/new-notifications.module.d.ts +2 -0
- package/lib/new-tooltip/new-tooltip.component.d.ts +8 -0
- package/lib/new-tooltip/new-tooltip.module.d.ts +2 -0
- package/lib/new-tooltip/services/domservice.service.d.ts +12 -0
- package/lib/new-tooltip/tooltip.directive.d.ts +47 -0
- package/lib/news-card/news-card.component.d.ts +4 -0
- package/lib/news-card/news-card.module.d.ts +2 -0
- package/lib/notifications/notifications.component.d.ts +12 -0
- package/lib/notifications/notifications.module.d.ts +2 -0
- package/lib/pagination/pagination.component.d.ts +32 -0
- package/lib/pagination/pagination.module.d.ts +2 -0
- package/lib/pop-up/pop-up.component.d.ts +9 -0
- package/lib/pop-up/pop-up.directive.d.ts +12 -0
- package/lib/pop-up/pop-up.module.d.ts +2 -0
- package/lib/radio-buttons/radio-buttons.component.d.ts +23 -0
- package/lib/radio-buttons/radio-buttons.module.d.ts +2 -0
- package/lib/search/highlight.pipe.d.ts +4 -0
- package/lib/search/search.component.d.ts +24 -0
- package/lib/search/search.module.d.ts +2 -0
- package/lib/select/option.component.d.ts +10 -0
- package/lib/select/select.component.d.ts +42 -0
- package/lib/select/select.module.d.ts +2 -0
- package/lib/sidebar/sidebar.component.d.ts +9 -0
- package/lib/sidebar/sidebar.module.d.ts +2 -0
- package/lib/slider/pipes/replace.pipe.d.ts +4 -0
- package/lib/slider/slider.component.d.ts +32 -0
- package/lib/slider/slider.module.d.ts +2 -0
- package/lib/spinner/spinner.component.d.ts +5 -0
- package/lib/spinner/spinner.module.d.ts +2 -0
- package/lib/table/table.component.d.ts +9 -0
- package/lib/table/table.model.d.ts +31 -0
- package/lib/table/table.module.d.ts +2 -0
- package/lib/table/table.pipe.d.ts +4 -0
- package/lib/tabs/tab.directive.d.ts +6 -0
- package/lib/tabs/tabs.component.d.ts +21 -0
- package/lib/tabs/tabs.module.d.ts +2 -0
- package/lib/tag-tab/tag-tab.component.d.ts +4 -0
- package/lib/tag-tab/tag-tab.module.d.ts +2 -0
- package/lib/tooltip/tooltip.component.d.ts +8 -0
- package/lib/tooltip/tooltip.module.d.ts +2 -0
- package/lib/visa/visa-item.component.d.ts +6 -0
- package/lib/visa/visa-span.directive.d.ts +6 -0
- package/lib/visa/visa.component.d.ts +5 -0
- package/lib/visa/visa.module.d.ts +2 -0
- package/lib/wizard/wizard-step.component.d.ts +14 -0
- package/lib/wizard/wizard.component.d.ts +19 -0
- package/lib/wizard/wizard.module.d.ts +2 -0
- package/package.json +21 -85
- package/{projects/aeb-ui-kit/src/public-api.ts → public-api.d.ts} +0 -41
- package/{projects/aeb-ui-kit/src/styles/variables.scss → styles.css} +84 -69
- package/.babelrc +0 -3
- package/.ci/Chart/values.dev.yaml +0 -17
- package/.ci/Chart/values.mr.yaml +0 -12
- package/.ci/Chart/values.prod.yaml +0 -23
- package/.ci/Components/UI.yml +0 -28
- package/.ci/Deployments.yml +0 -69
- package/.editorconfig +0 -16
- package/.gitlab-ci.yml +0 -35
- package/.storybook/main.js +0 -11
- package/.storybook/manager.js +0 -11
- package/.storybook/preview.js +0 -4
- package/.storybook/tsconfig.json +0 -20
- package/.storybook/typings.d.ts +0 -4
- package/Dockerfile +0 -12
- package/angular.json +0 -51
- package/debug.log +0 -1
- package/documentation.json +0 -12382
- package/gulpfile.babel.js +0 -23
- package/nginx/default.conf +0 -27
- package/package-lock.json +0 -24398
- package/projects/aeb-ui-kit/README.md +0 -24
- package/projects/aeb-ui-kit/karma.conf.js +0 -32
- package/projects/aeb-ui-kit/ng-package.json +0 -8
- package/projects/aeb-ui-kit/package.json +0 -13
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.html +0 -41
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.scss +0 -53
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.component.ts +0 -44
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/accordion/accordion.stories.ts +0 -41
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.html +0 -9
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.scss +0 -13
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.component.ts +0 -19
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/action-bar/action-bar.stories.ts +0 -73
- package/projects/aeb-ui-kit/src/lib/aeb-ui-kit.module.ts +0 -116
- package/projects/aeb-ui-kit/src/lib/button/button.component.html +0 -6
- package/projects/aeb-ui-kit/src/lib/button/button.component.scss +0 -125
- package/projects/aeb-ui-kit/src/lib/button/button.component.spec.ts +0 -24
- package/projects/aeb-ui-kit/src/lib/button/button.component.ts +0 -33
- package/projects/aeb-ui-kit/src/lib/button/button.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/button/button.stories.ts +0 -45
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.html +0 -34
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.scss +0 -173
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.spec.ts +0 -24
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.component.ts +0 -112
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/checkbox/checkbox.stories.ts +0 -64
- package/projects/aeb-ui-kit/src/lib/click-outside/click-outside.directive.ts +0 -47
- package/projects/aeb-ui-kit/src/lib/click-outside/click-outside.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/click-outside/click-outside.stories.ts +0 -29
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.html +0 -139
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.scss +0 -190
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/comment/comment.component.ts +0 -93
- package/projects/aeb-ui-kit/src/lib/comment/comment.module.ts +0 -22
- package/projects/aeb-ui-kit/src/lib/comment/comment.stories.ts +0 -141
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.component.html +0 -32
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.component.scss +0 -92
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.component.ts +0 -28
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.module.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/credit-item-card/credit-item-card.stories.ts +0 -54
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.html +0 -141
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.scss +0 -70
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-core/datepicker-core.component.ts +0 -161
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.html +0 -34
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.scss +0 -66
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-month/datepicker-month.component.ts +0 -53
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.html +0 -34
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.scss +0 -55
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker-tiles/datepicker-tiles.component.ts +0 -94
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.html +0 -65
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.scss +0 -45
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.component.ts +0 -423
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.module.ts +0 -43
- package/projects/aeb-ui-kit/src/lib/datepicker/datepicker.stories.ts +0 -137
- package/projects/aeb-ui-kit/src/lib/datepicker/pipes/date-to-str.pipe.spec.ts +0 -8
- package/projects/aeb-ui-kit/src/lib/datepicker/pipes/date-to-str.pipe.ts +0 -13
- package/projects/aeb-ui-kit/src/lib/datepicker/services/datepicker-utils.service.spec.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/datepicker/services/datepicker-utils.service.ts +0 -218
- package/projects/aeb-ui-kit/src/lib/datepicker/services/mask-utils.service.ts +0 -69
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.component.html +0 -48
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.component.scss +0 -117
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.component.ts +0 -115
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.module.ts +0 -11
- package/projects/aeb-ui-kit/src/lib/dropdown/dropdown.stories.ts +0 -47
- package/projects/aeb-ui-kit/src/lib/field-slider/directives/numbers-only.directive.ts +0 -64
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.html +0 -30
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.scss +0 -77
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.component.ts +0 -168
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.module.ts +0 -24
- package/projects/aeb-ui-kit/src/lib/field-slider/field-slider.stories.ts +0 -35
- package/projects/aeb-ui-kit/src/lib/field-slider/pipes/replace.pipe.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/file-attach/directives/drag-and-drop.directive.ts +0 -41
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.html +0 -56
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.scss +0 -149
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.component.ts +0 -67
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/file-attach/file-attach.stories.ts +0 -45
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.html +0 -9
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.scss +0 -20
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tag/filter-tag.component.ts +0 -32
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.html +0 -10
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.scss +0 -5
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.component.ts +0 -47
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.module.ts +0 -15
- package/projects/aeb-ui-kit/src/lib/filter-tags/filter-tags.stories.ts +0 -106
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.html +0 -31
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.scss +0 -41
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/footer/footer-bottom/footer-bottom.component.ts +0 -51
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.html +0 -14
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.scss +0 -42
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/footer/footer-menu/footer-menu.component.ts +0 -67
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.html +0 -46
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.scss +0 -74
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/footer/footer-top/footer-top.component.ts +0 -29
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.html +0 -16
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.scss +0 -14
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/footer/footer.component.ts +0 -26
- package/projects/aeb-ui-kit/src/lib/footer/footer.module.ts +0 -22
- package/projects/aeb-ui-kit/src/lib/footer/footer.stories.ts +0 -97
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.component.html +0 -9
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.component.scss +0 -181
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.component.ts +0 -83
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/form-field/form-field.stories.ts +0 -95
- package/projects/aeb-ui-kit/src/lib/form-field/icon.directive.ts +0 -8
- package/projects/aeb-ui-kit/src/lib/form-field/input.directive.ts +0 -68
- package/projects/aeb-ui-kit/src/lib/form-field/label.directive.ts +0 -8
- package/projects/aeb-ui-kit/src/lib/form-field/textarea.directive.ts +0 -68
- package/projects/aeb-ui-kit/src/lib/header/header.component.html +0 -1
- package/projects/aeb-ui-kit/src/lib/header/header.component.scss +0 -43
- package/projects/aeb-ui-kit/src/lib/header/header.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/header/header.component.ts +0 -20
- package/projects/aeb-ui-kit/src/lib/header/header.module.ts +0 -11
- package/projects/aeb-ui-kit/src/lib/header/header.stories.ts +0 -27
- package/projects/aeb-ui-kit/src/lib/header/logo.component.html +0 -20
- package/projects/aeb-ui-kit/src/lib/header/logo.component.scss +0 -6
- package/projects/aeb-ui-kit/src/lib/header/logo.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/header/logo.component.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.html +0 -15
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.scss +0 -25
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/heading/breadcrumps/breadcrumps.component.ts +0 -31
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.html +0 -3
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.scss +0 -6
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/heading/heading.component.ts +0 -18
- package/projects/aeb-ui-kit/src/lib/heading/heading.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/heading/heading.stories.ts +0 -174
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.html +0 -18
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.scss +0 -20
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/heading/product-title/product-title.component.ts +0 -30
- package/projects/aeb-ui-kit/src/lib/label/label.component.html +0 -10
- package/projects/aeb-ui-kit/src/lib/label/label.component.scss +0 -23
- package/projects/aeb-ui-kit/src/lib/label/label.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/label/label.component.ts +0 -13
- package/projects/aeb-ui-kit/src/lib/label/label.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/label/label.stories.ts +0 -21
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.component.html +0 -28
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.component.scss +0 -113
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.component.ts +0 -59
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.module.ts +0 -12
- package/projects/aeb-ui-kit/src/lib/new-button/new-button.stories.ts +0 -107
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.html +0 -67
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.scss +0 -96
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.component.ts +0 -202
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.module.ts +0 -18
- package/projects/aeb-ui-kit/src/lib/new-dropdown/new-dropdown.stories.ts +0 -118
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.html +0 -46
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.scss +0 -54
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.component.ts +0 -46
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.module.ts +0 -12
- package/projects/aeb-ui-kit/src/lib/new-notifications/new-notifications.stories.ts +0 -127
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.html +0 -7
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.scss +0 -93
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.component.ts +0 -20
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.module.ts +0 -19
- package/projects/aeb-ui-kit/src/lib/new-tooltip/new-tooltip.stories.ts +0 -126
- package/projects/aeb-ui-kit/src/lib/new-tooltip/services/domservice.service.spec.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/new-tooltip/services/domservice.service.ts +0 -59
- package/projects/aeb-ui-kit/src/lib/new-tooltip/tooltip.directive.spec.ts +0 -8
- package/projects/aeb-ui-kit/src/lib/new-tooltip/tooltip.directive.ts +0 -195
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.html +0 -8
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.scss +0 -28
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.component.ts +0 -19
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.module.ts +0 -12
- package/projects/aeb-ui-kit/src/lib/news-card/news-card.stories.ts +0 -46
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.component.html +0 -20
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.component.scss +0 -54
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.component.ts +0 -34
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/notifications/notifications.stories.ts +0 -36
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.html +0 -110
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.scss +0 -173
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.component.ts +0 -191
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.module.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/pagination/pagination.stories.ts +0 -63
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.html +0 -22
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.scss +0 -35
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.component.ts +0 -33
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.directive.spec.ts +0 -8
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.directive.ts +0 -70
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.module.ts +0 -13
- package/projects/aeb-ui-kit/src/lib/pop-up/pop-up.stories.ts +0 -211
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.html +0 -26
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.scss +0 -112
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.component.ts +0 -69
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/radio-buttons/radio-buttons.stories.ts +0 -101
- package/projects/aeb-ui-kit/src/lib/search/highlight.pipe.spec.ts +0 -8
- package/projects/aeb-ui-kit/src/lib/search/highlight.pipe.ts +0 -13
- package/projects/aeb-ui-kit/src/lib/search/search.component.html +0 -85
- package/projects/aeb-ui-kit/src/lib/search/search.component.scss +0 -133
- package/projects/aeb-ui-kit/src/lib/search/search.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/search/search.component.ts +0 -80
- package/projects/aeb-ui-kit/src/lib/search/search.module.ts +0 -15
- package/projects/aeb-ui-kit/src/lib/search/search.stories.ts +0 -118
- package/projects/aeb-ui-kit/src/lib/select/option.component.html +0 -5
- package/projects/aeb-ui-kit/src/lib/select/option.component.ts +0 -36
- package/projects/aeb-ui-kit/src/lib/select/select.component.html +0 -86
- package/projects/aeb-ui-kit/src/lib/select/select.component.scss +0 -154
- package/projects/aeb-ui-kit/src/lib/select/select.component.ts +0 -133
- package/projects/aeb-ui-kit/src/lib/select/select.module.ts +0 -12
- package/projects/aeb-ui-kit/src/lib/select/select.stories.ts +0 -40
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.html +0 -53
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.scss +0 -206
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.component.ts +0 -31
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/sidebar/sidebar.stories.ts +0 -101
- package/projects/aeb-ui-kit/src/lib/slider/pipes/replace.pipe.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/slider/slider.component.html +0 -19
- package/projects/aeb-ui-kit/src/lib/slider/slider.component.scss +0 -85
- package/projects/aeb-ui-kit/src/lib/slider/slider.component.ts +0 -169
- package/projects/aeb-ui-kit/src/lib/slider/slider.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/slider/slider.stories.ts +0 -41
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.html +0 -19
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.scss +0 -90
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.component.ts +0 -13
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/spinner/spinner.stories.ts +0 -21
- package/projects/aeb-ui-kit/src/lib/table/table.component.html +0 -72
- package/projects/aeb-ui-kit/src/lib/table/table.component.scss +0 -52
- package/projects/aeb-ui-kit/src/lib/table/table.component.ts +0 -28
- package/projects/aeb-ui-kit/src/lib/table/table.model.ts +0 -35
- package/projects/aeb-ui-kit/src/lib/table/table.module.ts +0 -11
- package/projects/aeb-ui-kit/src/lib/table/table.pipe.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/table/table.stories.ts +0 -165
- package/projects/aeb-ui-kit/src/lib/tabs/tab.directive.spec.ts +0 -8
- package/projects/aeb-ui-kit/src/lib/tabs/tab.directive.ts +0 -16
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.html +0 -32
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.scss +0 -46
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.spec.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.component.ts +0 -84
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.module.ts +0 -14
- package/projects/aeb-ui-kit/src/lib/tabs/tabs.stories.ts +0 -83
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.component.html +0 -1
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.component.scss +0 -22
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.component.ts +0 -15
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.module.ts +0 -12
- package/projects/aeb-ui-kit/src/lib/tag-tab/tag-tab.stories.ts +0 -25
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.html +0 -8
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.scss +0 -274
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.spec.ts +0 -24
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.component.ts +0 -31
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.module.ts +0 -10
- package/projects/aeb-ui-kit/src/lib/tooltip/tooltip.stories.ts +0 -47
- package/projects/aeb-ui-kit/src/lib/visa/visa-item.component.html +0 -59
- package/projects/aeb-ui-kit/src/lib/visa/visa-item.component.ts +0 -11
- package/projects/aeb-ui-kit/src/lib/visa/visa-span.directive.ts +0 -21
- package/projects/aeb-ui-kit/src/lib/visa/visa.component.html +0 -8
- package/projects/aeb-ui-kit/src/lib/visa/visa.component.scss +0 -89
- package/projects/aeb-ui-kit/src/lib/visa/visa.component.ts +0 -21
- package/projects/aeb-ui-kit/src/lib/visa/visa.module.ts +0 -24
- package/projects/aeb-ui-kit/src/lib/visa/visa.stories.ts +0 -70
- package/projects/aeb-ui-kit/src/lib/wizard/wizard-step.component.html +0 -3
- package/projects/aeb-ui-kit/src/lib/wizard/wizard-step.component.ts +0 -22
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.component.html +0 -56
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.component.scss +0 -142
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.component.ts +0 -97
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.module.ts +0 -11
- package/projects/aeb-ui-kit/src/lib/wizard/wizard.stories.ts +0 -54
- package/projects/aeb-ui-kit/src/styles/styles.scss +0 -12
- package/projects/aeb-ui-kit/src/styles/typography.scss +0 -20
- package/projects/aeb-ui-kit/src/test.ts +0 -26
- package/projects/aeb-ui-kit/tsconfig.lib.json +0 -24
- package/projects/aeb-ui-kit/tsconfig.lib.prod.json +0 -7
- package/projects/aeb-ui-kit/tsconfig.spec.json +0 -17
- package/projects/aeb-ui-kit/tslint.json +0 -17
- package/tsconfig.base.json +0 -25
- package/tsconfig.json +0 -17
- package/tslint.json +0 -140
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
startOfMonth,
|
|
5
|
-
startOfWeek,
|
|
6
|
-
getWeeksInMonth,
|
|
7
|
-
addDays,
|
|
8
|
-
isSameMonth,
|
|
9
|
-
addWeeks,
|
|
10
|
-
addMonths,
|
|
11
|
-
subMonths,
|
|
12
|
-
addYears,
|
|
13
|
-
subYears,
|
|
14
|
-
eachYearOfInterval,
|
|
15
|
-
differenceInYears,
|
|
16
|
-
startOfYear,
|
|
17
|
-
isToday,
|
|
18
|
-
getMonth,
|
|
19
|
-
getYear,
|
|
20
|
-
setMonth,
|
|
21
|
-
isSameDay,
|
|
22
|
-
areIntervalsOverlapping,
|
|
23
|
-
isValid,
|
|
24
|
-
startOfDay,
|
|
25
|
-
endOfDay,
|
|
26
|
-
parse,
|
|
27
|
-
format,
|
|
28
|
-
getDaysInMonth,
|
|
29
|
-
isExists,
|
|
30
|
-
compareAsc
|
|
31
|
-
} from 'date-fns';
|
|
32
|
-
|
|
33
|
-
import { da, ru } from 'date-fns/locale';
|
|
34
|
-
|
|
35
|
-
@Injectable({
|
|
36
|
-
providedIn: 'root'
|
|
37
|
-
})
|
|
38
|
-
export class DatepickerUtilsService {
|
|
39
|
-
|
|
40
|
-
constructor() { }
|
|
41
|
-
|
|
42
|
-
static weekLocal: string[] = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
|
|
43
|
-
static monthsLocal: string[] = [
|
|
44
|
-
'Январь',
|
|
45
|
-
'Февраль',
|
|
46
|
-
'Март',
|
|
47
|
-
'Апрель',
|
|
48
|
-
'Май',
|
|
49
|
-
'Июнь',
|
|
50
|
-
'Июль',
|
|
51
|
-
'Август',
|
|
52
|
-
'Сентябрь',
|
|
53
|
-
'Октябрь',
|
|
54
|
-
'Ноябрь',
|
|
55
|
-
'Декабрь'
|
|
56
|
-
]
|
|
57
|
-
|
|
58
|
-
genWeek(week: Date, month: Date, count: number): Date[] {
|
|
59
|
-
const startOfWeek = addWeeks(week, count);
|
|
60
|
-
|
|
61
|
-
return [...new Array(7)]
|
|
62
|
-
.map(_ => startOfWeek)
|
|
63
|
-
.map((day, index) => addDays(day, index))
|
|
64
|
-
.map(day => isSameMonth(month, day) ? day : null)
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
genMonth(date: Date): Date[][] {
|
|
68
|
-
const WEEKS_TOTAL = getWeeksInMonth(date);
|
|
69
|
-
const START_OF_MONTH = startOfMonth(date);
|
|
70
|
-
const START_OF_WEEK = startOfWeek(START_OF_MONTH, { locale: ru });
|
|
71
|
-
|
|
72
|
-
return [...new Array(WEEKS_TOTAL + 1)]
|
|
73
|
-
.map((_, index) => {
|
|
74
|
-
const week: Date[] = this.genWeek(START_OF_WEEK, START_OF_MONTH, index);
|
|
75
|
-
return !!week.filter(item => !!item).length ? week : null;
|
|
76
|
-
})
|
|
77
|
-
.filter(week => !!week);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
addMonths(date: Date, count: number): Date {
|
|
81
|
-
return addMonths(date, count);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
subMonths(date: Date, count: number): Date {
|
|
85
|
-
return subMonths(date, count);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
genYears(min: Date, max: Date): number[] {
|
|
89
|
-
return eachYearOfInterval({
|
|
90
|
-
start: min,
|
|
91
|
-
end: max
|
|
92
|
-
}).map(date => getYear(date));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
addYears(date: Date, count: number): Date {
|
|
96
|
-
return addYears(date, count);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
subYears(date: Date, count: number): Date {
|
|
100
|
-
return subYears(date, count);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
yearsDiff(a: Date, b: Date): number {
|
|
104
|
-
return differenceInYears(a, b);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
startOfYear(date: Date): Date {
|
|
108
|
-
return startOfYear(date);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
isToday(date: Date): boolean {
|
|
112
|
-
return isToday(date);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
isSameDay(dateLeft: Date, dateRight: Date): boolean {
|
|
116
|
-
if (!isValid(dateLeft) || !isValid(dateRight)) return false;
|
|
117
|
-
|
|
118
|
-
return isSameDay(dateLeft, dateRight);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
getMonth(date: Date): number {
|
|
122
|
-
return getMonth(date);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
getYear(date: Date): number {
|
|
126
|
-
return getYear(date);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
setMonth(month: number, year: number): Date {
|
|
130
|
-
return setMonth(new Date(year, 0, 1), month);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
isMinOverlap(minDate: Date, date: Date): boolean {
|
|
134
|
-
if (!isValid(minDate) || !isValid(date)) return false;
|
|
135
|
-
|
|
136
|
-
return areIntervalsOverlapping(
|
|
137
|
-
{
|
|
138
|
-
start: subYears(minDate, 9999),
|
|
139
|
-
end: startOfDay(minDate)
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
start: startOfDay(date),
|
|
143
|
-
end: endOfDay(date)
|
|
144
|
-
}
|
|
145
|
-
)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
isMaxOverlap(maxDate: Date, date: Date): boolean {
|
|
149
|
-
if (!isValid(maxDate) || !isValid(date)) return false;
|
|
150
|
-
|
|
151
|
-
return areIntervalsOverlapping(
|
|
152
|
-
{
|
|
153
|
-
start: addDays(startOfDay(maxDate), 1),
|
|
154
|
-
end: addYears(maxDate, 9999)
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
start: startOfDay(date),
|
|
158
|
-
end: endOfDay(date)
|
|
159
|
-
}
|
|
160
|
-
)
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
parseDate(date: string): Date {
|
|
164
|
-
return parse(date, 'dd.MM.yyyy', new Date());
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
formatDate(date: Date): string {
|
|
168
|
-
if (isValid(date)) {
|
|
169
|
-
return format(date, 'dd.MM.yyyy');
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
dayLimit(month: number, year: number): number {
|
|
174
|
-
return month ? getDaysInMonth(new Date(year, month)) : 31;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
excludedMonths(day: number, year: number): number[] {
|
|
178
|
-
return [...new Array(12)]
|
|
179
|
-
.map((_, i) => i)
|
|
180
|
-
.filter(month => isExists(year, month, day))
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
validYear(
|
|
184
|
-
|
|
185
|
-
day: number = 1,
|
|
186
|
-
month: number = 0,
|
|
187
|
-
year: number
|
|
188
|
-
|
|
189
|
-
): boolean {
|
|
190
|
-
return isExists(year, month, day);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
validDate(day: string, month: string, year: string, limit: [Date, Date]): boolean {
|
|
194
|
-
|
|
195
|
-
const targetDate = [ day, month, year ].filter(item => !!item).length === 3 ? new Date(+year, (+month - 1), +day) : null;
|
|
196
|
-
|
|
197
|
-
const validDay = parseInt(day) <= this.dayLimit(parseInt(month) - 1, year ? parseInt(year) : 2000);
|
|
198
|
-
const validMonth = this.excludedMonths(parseInt(day), year ? parseInt(year) : 2000).includes(parseInt(month) - 1);
|
|
199
|
-
const validYear = year ? (parseInt(year) >= this.getYear(limit[0]) && parseInt(year) <= this.getYear(limit[1])) : true;
|
|
200
|
-
|
|
201
|
-
const moreThenMin = targetDate ? compareAsc(targetDate, limit[0]) !== -1 : true;
|
|
202
|
-
const lessThenMax = targetDate ? compareAsc(targetDate, limit[1]) !== 1 : true;
|
|
203
|
-
|
|
204
|
-
return validDay && validMonth && validYear && moreThenMin && lessThenMax;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
fillMask(date: string): string[] {
|
|
208
|
-
return [...new Array(8)]
|
|
209
|
-
.map((_, i) => date[i] || '_')
|
|
210
|
-
.join("")
|
|
211
|
-
.split(/(.{2})(.{2})(.{4})/)
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
validInput(term: string): boolean {
|
|
215
|
-
const regExp = /(0[1-9]|1[0-9]|2[0-9]|3[0-2])\.(0[1-9]|1[0-2])\.(\d{4})/;
|
|
216
|
-
return !!term.match(regExp);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
const range = (min: number, max: number) => {
|
|
4
|
-
return [ ...new Array(max - min) ].map((_, idx) => idx + min);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@Injectable({
|
|
8
|
-
providedIn: 'root'
|
|
9
|
-
})
|
|
10
|
-
export class MaskUtilsService {
|
|
11
|
-
|
|
12
|
-
constructor () {}
|
|
13
|
-
|
|
14
|
-
inputSegmentOverflow([day, month, year]: string[], event: KeyboardEvent, woDays: boolean): boolean {
|
|
15
|
-
const tsCrutchEl = (event.target as unknown as HTMLInputElement);
|
|
16
|
-
const isNumberInp = Number.isInteger(parseInt(event.key));
|
|
17
|
-
|
|
18
|
-
if (!isNumberInp) return;
|
|
19
|
-
|
|
20
|
-
const firstRange = range(0, 3);
|
|
21
|
-
const secondRange = woDays ? range(month.length + 1, month.length + 6) : range(day.length + 1, day.length + 4);
|
|
22
|
-
const thirdRange = range((day.length + month.length) + 2, (day.length + month.length) + 7);
|
|
23
|
-
|
|
24
|
-
const conditions = woDays ? [
|
|
25
|
-
month.length === 2 && firstRange.includes(tsCrutchEl.selectionStart),
|
|
26
|
-
year.length === 4 && secondRange.includes(tsCrutchEl.selectionStart)
|
|
27
|
-
] : [
|
|
28
|
-
day.length === 2 && firstRange.includes(tsCrutchEl.selectionStart),
|
|
29
|
-
month.length === 2 && secondRange.includes(tsCrutchEl.selectionStart),
|
|
30
|
-
year.length === 4 && thirdRange.includes(tsCrutchEl.selectionStart)
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
for (let i = 0; i < conditions.length; i++) {
|
|
34
|
-
if (conditions[i]) {
|
|
35
|
-
return true;
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
breakInput(event: KeyboardEvent): (c: boolean) => void {
|
|
44
|
-
return (condition: boolean) => {
|
|
45
|
-
|
|
46
|
-
if (condition) {
|
|
47
|
-
event.preventDefault();
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
predictInput(input: string, key: string, inputIndex: number, withoutDays: boolean): string {
|
|
54
|
-
const base = withoutDays ? ['','','.','','','',''] : ['','','.','','','.','','','',''];
|
|
55
|
-
|
|
56
|
-
input.split('').forEach((item, idx) => base[idx] = item);
|
|
57
|
-
const newInput = [ ...base.slice(0, inputIndex), key, ...base.slice(inputIndex, base.length) ];
|
|
58
|
-
|
|
59
|
-
return withoutDays ? `01.${newInput.filter(item => !!item).join('')}` : newInput.filter(item => !!item).join('');
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
static allowedKeys = [
|
|
63
|
-
'Backspace',
|
|
64
|
-
'ArrowLeft',
|
|
65
|
-
'ArrowRight',
|
|
66
|
-
'End',
|
|
67
|
-
'Home'
|
|
68
|
-
];
|
|
69
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<div class="aeb-dropdown-inner" (clickOutside)="handleClickOutside($event)">
|
|
2
|
-
<div
|
|
3
|
-
class="aeb-dropdown-float-label"
|
|
4
|
-
[ngClass]="{ error: hasError }"
|
|
5
|
-
*ngIf="selectedItem"
|
|
6
|
-
>
|
|
7
|
-
{{ placeholder }}
|
|
8
|
-
</div>
|
|
9
|
-
<div
|
|
10
|
-
class="aeb-dropdown-selected-item"
|
|
11
|
-
[ngClass]="{ placeholder: !selectedItem, error: hasError }"
|
|
12
|
-
(click)="openDropdown()"
|
|
13
|
-
#toggle
|
|
14
|
-
>
|
|
15
|
-
{{ selectedItem ? selectedItem.label : placeholder }}
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="aeb-dropdown-icon" [ngClass]="{ active: isOpen }">
|
|
19
|
-
<svg
|
|
20
|
-
width="24"
|
|
21
|
-
height="24"
|
|
22
|
-
viewBox="0 0 24 24"
|
|
23
|
-
fill="none"
|
|
24
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
-
>
|
|
26
|
-
<path
|
|
27
|
-
d="M6.85718 9.42854L12 14.5714L17.1429 9.42854"
|
|
28
|
-
stroke="#94A8BE"
|
|
29
|
-
stroke-width="1.6"
|
|
30
|
-
stroke-linecap="round"
|
|
31
|
-
stroke-linejoin="round"
|
|
32
|
-
/>
|
|
33
|
-
</svg>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div class="aeb-dropdown-menu" [ngClass]="{ open: isOpen, error: hasError }">
|
|
37
|
-
<ul>
|
|
38
|
-
<li
|
|
39
|
-
class="aeb-dropdown-item"
|
|
40
|
-
[ngClass]="value && { active: value === item.id }"
|
|
41
|
-
(click)="setValue(item.id)"
|
|
42
|
-
*ngFor="let item of items"
|
|
43
|
-
>
|
|
44
|
-
{{ item.label }}
|
|
45
|
-
</li>
|
|
46
|
-
</ul>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
.aeb-dropdown {
|
|
2
|
-
width: 100%;
|
|
3
|
-
position: relative;
|
|
4
|
-
font-size: 18px;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
display: flex;
|
|
7
|
-
color: var(--darkblue);
|
|
8
|
-
|
|
9
|
-
.aeb-dropdown-inner {
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.aeb-dropdown-icon {
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 16px;
|
|
16
|
-
right: 10px;
|
|
17
|
-
width: 24px;
|
|
18
|
-
height: 24px;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
|
|
21
|
-
|
|
22
|
-
&.active {
|
|
23
|
-
transform: rotate(180deg);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.aeb-dropdown-selected-item {
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 56px;
|
|
30
|
-
background: var(--white);
|
|
31
|
-
border: 2px solid var(--gray-primary);
|
|
32
|
-
border-radius: 10px;
|
|
33
|
-
padding-left: 16px;
|
|
34
|
-
padding-right: 26px;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
color: var(--black);
|
|
39
|
-
|
|
40
|
-
&.error {
|
|
41
|
-
color: var(--red);
|
|
42
|
-
border-color: var(--red);
|
|
43
|
-
background: var(--white);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.placeholder {
|
|
48
|
-
color: var(--gray);
|
|
49
|
-
|
|
50
|
-
&.error {
|
|
51
|
-
color: var(--red);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.aeb-dropdown-float-label {
|
|
56
|
-
position: absolute;
|
|
57
|
-
font-size: 12px;
|
|
58
|
-
color: var(--gray);
|
|
59
|
-
top: -5px;
|
|
60
|
-
left: 10px;
|
|
61
|
-
background: var(--white);
|
|
62
|
-
padding: 0 5px;
|
|
63
|
-
|
|
64
|
-
&.error {
|
|
65
|
-
color: var(--red);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.aeb-dropdown-menu {
|
|
70
|
-
position: absolute;
|
|
71
|
-
width: 100%;
|
|
72
|
-
top: 100%;
|
|
73
|
-
background: var(--white);
|
|
74
|
-
border: 2px solid var(--gray-primary);
|
|
75
|
-
border-top: none;
|
|
76
|
-
border-radius: 0 0 10px 10px;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
margin-top: -10px;
|
|
79
|
-
z-index: 1050;
|
|
80
|
-
display: none;
|
|
81
|
-
|
|
82
|
-
&.error {
|
|
83
|
-
border-color: var(--red);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
ul {
|
|
87
|
-
list-style: none;
|
|
88
|
-
padding: 0;
|
|
89
|
-
margin: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.open {
|
|
93
|
-
display: block;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.aeb-dropdown-item {
|
|
97
|
-
padding: 15px 16px;
|
|
98
|
-
|
|
99
|
-
&.active {
|
|
100
|
-
background-color: var(--white-active);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&:hover {
|
|
104
|
-
background-color: var(--white-hover);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:first-child {
|
|
108
|
-
margin-top: 10px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&:last-child {
|
|
112
|
-
border-radius: 0 0 8px 8px;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
Input,
|
|
4
|
-
forwardRef,
|
|
5
|
-
Output,
|
|
6
|
-
EventEmitter,
|
|
7
|
-
ViewEncapsulation
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
10
|
-
|
|
11
|
-
@Component({
|
|
12
|
-
selector: 'aeb-dropdown',
|
|
13
|
-
templateUrl: './dropdown.component.html',
|
|
14
|
-
styleUrls: ['./dropdown.component.scss'],
|
|
15
|
-
host: {
|
|
16
|
-
class: 'aeb-dropdown'
|
|
17
|
-
},
|
|
18
|
-
encapsulation: ViewEncapsulation.None,
|
|
19
|
-
providers: [
|
|
20
|
-
{
|
|
21
|
-
provide: NG_VALUE_ACCESSOR,
|
|
22
|
-
useExisting: forwardRef(() => DropdownComponent),
|
|
23
|
-
multi: true
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
})
|
|
27
|
-
export class DropdownComponent implements ControlValueAccessor {
|
|
28
|
-
@Output()
|
|
29
|
-
change: EventEmitter<string> = new EventEmitter<string>();
|
|
30
|
-
|
|
31
|
-
@Input()
|
|
32
|
-
placeholder: string;
|
|
33
|
-
|
|
34
|
-
@Input()
|
|
35
|
-
hasError: boolean;
|
|
36
|
-
|
|
37
|
-
@Input()
|
|
38
|
-
items: { id: string; label: string }[];
|
|
39
|
-
|
|
40
|
-
isOpen?: boolean = false;
|
|
41
|
-
|
|
42
|
-
onChange: (_: string) => void;
|
|
43
|
-
|
|
44
|
-
private _value: string;
|
|
45
|
-
|
|
46
|
-
get value(): string {
|
|
47
|
-
return this._value;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@Input()
|
|
51
|
-
set value(value: string) {
|
|
52
|
-
if (value === this._value) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
this._value = value;
|
|
57
|
-
if (typeof this.onChange === 'function') {
|
|
58
|
-
this.onChange(this._value);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
this.change.emit(value);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
get selectedItem(): { id: string; label: string } {
|
|
65
|
-
if (this.items) {
|
|
66
|
-
const item = this.items.find(item => item.id === this._value);
|
|
67
|
-
return item
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Вызывается при задании исходного (new FormControl('I am default value'))
|
|
74
|
-
* или нового значения сверху control.setValue('I am setted value').
|
|
75
|
-
*/
|
|
76
|
-
writeValue(value: string): void {
|
|
77
|
-
this._value = value;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Метод определяющий обработчик, который должен быть вызван при изменении значения
|
|
82
|
-
* (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
|
|
83
|
-
*/
|
|
84
|
-
registerOnChange(fn: () => void): void {
|
|
85
|
-
this.onChange = fn;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Определяет callback, который вызывается на blur событие (control помечается флагом touched)
|
|
90
|
-
*/
|
|
91
|
-
registerOnTouched(): void {}
|
|
92
|
-
|
|
93
|
-
setValue(item: string): void {
|
|
94
|
-
this.value = item;
|
|
95
|
-
this.closeDropdown();
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
toggleDropdown(): void {
|
|
99
|
-
this.isOpen = !this.isOpen;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
openDropdown(): void {
|
|
103
|
-
this.isOpen = true;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
closeDropdown(): void {
|
|
107
|
-
this.isOpen = false;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
handleClickOutside(event: Event): void {
|
|
111
|
-
if (this.isOpen) {
|
|
112
|
-
this.closeDropdown();
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { DropdownComponent } from './dropdown.component';
|
|
4
|
-
import { ClickOutsideModule } from '../click-outside/click-outside.module'
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
declarations: [DropdownComponent],
|
|
8
|
-
imports: [CommonModule, ClickOutsideModule],
|
|
9
|
-
exports: [DropdownComponent],
|
|
10
|
-
})
|
|
11
|
-
export class DropdownModule {}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { DropdownModule } from './dropdown.module';
|
|
2
|
-
import { DropdownComponent } from './dropdown.component';
|
|
3
|
-
import { boolean } from '@storybook/addon-knobs';
|
|
4
|
-
|
|
5
|
-
import { moduleMetadata } from '@storybook/angular';
|
|
6
|
-
import { Story } from '@storybook/angular/types-6-0';
|
|
7
|
-
|
|
8
|
-
const items = [
|
|
9
|
-
{
|
|
10
|
-
label: 'Бизнес Партнер',
|
|
11
|
-
id: 'partner',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
label: 'Кредит 9.2',
|
|
15
|
-
id: '9.2',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: 'Свой партнер',
|
|
19
|
-
id: 'svoi partner',
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
title: 'Components/Dropdown',
|
|
25
|
-
component: DropdownComponent,
|
|
26
|
-
decorators: [
|
|
27
|
-
moduleMetadata({
|
|
28
|
-
imports: [DropdownModule]
|
|
29
|
-
})
|
|
30
|
-
]
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const Default: Story<DropdownComponent> = () => ({
|
|
34
|
-
component: DropdownComponent,
|
|
35
|
-
template: `
|
|
36
|
-
<aeb-dropdown
|
|
37
|
-
placeholder="Программа"
|
|
38
|
-
[items]="items"
|
|
39
|
-
[hasError]="hasError"
|
|
40
|
-
[value]="'9.2'"
|
|
41
|
-
></aeb-dropdown>
|
|
42
|
-
`,
|
|
43
|
-
props: {
|
|
44
|
-
items,
|
|
45
|
-
hasError: boolean('On error', false)
|
|
46
|
-
}
|
|
47
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, HostListener } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Directive({
|
|
4
|
-
selector: '[aebNumbersOnly]'
|
|
5
|
-
})
|
|
6
|
-
export class NumbersOnlyDirective {
|
|
7
|
-
|
|
8
|
-
private navigationKeys = [
|
|
9
|
-
'Backspace',
|
|
10
|
-
'Delete',
|
|
11
|
-
'Tab',
|
|
12
|
-
'Escape',
|
|
13
|
-
'Enter',
|
|
14
|
-
'Home',
|
|
15
|
-
'End',
|
|
16
|
-
'ArrowLeft',
|
|
17
|
-
'ArrowRight',
|
|
18
|
-
'Clear',
|
|
19
|
-
'Copy',
|
|
20
|
-
'Paste',
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
constructor() { }
|
|
24
|
-
|
|
25
|
-
@HostListener('keydown', ['$event'])
|
|
26
|
-
onKeyDown(e: KeyboardEvent): void {
|
|
27
|
-
if (
|
|
28
|
-
// Allow: Delete, Backspace, Tab, Escape, Enter, etc
|
|
29
|
-
this.navigationKeys.indexOf(e.key) > -1 ||
|
|
30
|
-
(e.key === 'a' && e.ctrlKey === true) || // Allow: Ctrl+A
|
|
31
|
-
(e.key === 'c' && e.ctrlKey === true) || // Allow: Ctrl+C
|
|
32
|
-
(e.key === 'v' && e.ctrlKey === true) || // Allow: Ctrl+V
|
|
33
|
-
(e.key === 'x' && e.ctrlKey === true) || // Allow: Ctrl+X
|
|
34
|
-
(e.key === 'a' && e.metaKey === true) || // Cmd+A (Mac)
|
|
35
|
-
(e.key === 'c' && e.metaKey === true) || // Cmd+C (Mac)
|
|
36
|
-
(e.key === 'v' && e.metaKey === true) || // Cmd+V (Mac)
|
|
37
|
-
(e.key === 'x' && e.metaKey === true) // Cmd+X (Mac)
|
|
38
|
-
) {
|
|
39
|
-
return; // let it happen, don't do anything
|
|
40
|
-
}
|
|
41
|
-
// Ensure that it is a number and stop the keypress
|
|
42
|
-
if (e.key === ' ' || isNaN(Number(e.key))) {
|
|
43
|
-
e.preventDefault();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@HostListener('paste', ['$event'])
|
|
48
|
-
onPaste(event: ClipboardEvent): void {
|
|
49
|
-
event.preventDefault();
|
|
50
|
-
const pastedInput: string = event.clipboardData
|
|
51
|
-
.getData('text/plain')
|
|
52
|
-
.replace(/\D/g, ''); // get a digit-only string
|
|
53
|
-
document.execCommand('insertText', false, pastedInput);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@HostListener('drop', ['$event'])
|
|
57
|
-
onDrop(event: DragEvent): void {
|
|
58
|
-
event.preventDefault();
|
|
59
|
-
const textData = event.dataTransfer
|
|
60
|
-
.getData('text').replace(/\D/g, '');
|
|
61
|
-
document.execCommand('insertText', false, textData);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
}
|