aeb-ui-kit 0.0.117 → 0.0.121
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 +24 -17
- 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 +202 -202
- 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 +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/arrow_down/arrow_down_gray.svg +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/arrow_down/arrow_down_turquoise.svg +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/arrow_down/arrow_down_white.svg +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/attach/passport_primary.svg +13 -13
- package/{projects/aeb-ui-kit/src/assets → assets}/images/attach/passport_secondary.svg +15 -15
- 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 +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/clip_blue.svg +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/close.svg +4 -4
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-add.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-back.svg +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-blocked.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-checked.svg +3 -3
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-download.svg +4 -4
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-edit.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-failure.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-more.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-rework.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-spinner.svg +9 -9
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-subtract.svg +4 -4
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-success.svg +4 -4
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-time.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/icon-trash.svg +6 -6
- package/{projects/aeb-ui-kit/src/assets → assets}/images/info.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/nt-icon.svg +6 -6
- package/{projects/aeb-ui-kit/src/assets → assets}/images/visa/icon_failure.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/visa/icon_time.svg +5 -5
- package/{projects/aeb-ui-kit/src/assets → assets}/images/visa/success_icon.svg +4 -4
- package/bundles/aeb-ui-kit.umd.js +4842 -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 +37 -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 +4087 -0
- package/fesm2015/aeb-ui-kit.js.map +1 -0
- package/{projects/aeb-ui-kit/src/index.ts → index.d.ts} +1 -1
- 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} +16 -17
- 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 +19 -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} +92 -133
- package/{projects/aeb-ui-kit/src/styles/variables.scss → styles.css} +104 -89
- 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,423 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
OnInit,
|
|
4
|
-
Input,
|
|
5
|
-
ViewEncapsulation,
|
|
6
|
-
ViewChild,
|
|
7
|
-
Output,
|
|
8
|
-
EventEmitter,
|
|
9
|
-
forwardRef,
|
|
10
|
-
ElementRef,
|
|
11
|
-
HostListener,
|
|
12
|
-
AfterViewInit,
|
|
13
|
-
OnChanges,
|
|
14
|
-
OnDestroy
|
|
15
|
-
} from '@angular/core';
|
|
16
|
-
import { DatepickerUtilsService } from './services/datepicker-utils.service';
|
|
17
|
-
import { MaskUtilsService } from './services/mask-utils.service';
|
|
18
|
-
import { DatepickerCoreComponent } from './datepicker-core/datepicker-core.component';
|
|
19
|
-
import { InputDirective } from '../form-field/input.directive';
|
|
20
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
21
|
-
|
|
22
|
-
const getScrollParent = (node: HTMLElement): HTMLElement | null => {
|
|
23
|
-
if (node === null) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (node.scrollHeight > node.clientHeight) {
|
|
28
|
-
return node;
|
|
29
|
-
|
|
30
|
-
} else {
|
|
31
|
-
return getScrollParent(node.parentNode as HTMLElement);
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@Component({
|
|
38
|
-
selector: 'aeb-datepicker',
|
|
39
|
-
templateUrl: './datepicker.component.html',
|
|
40
|
-
styleUrls: ['./datepicker.component.scss'],
|
|
41
|
-
encapsulation: ViewEncapsulation.None,
|
|
42
|
-
providers: [
|
|
43
|
-
{
|
|
44
|
-
provide: NG_VALUE_ACCESSOR,
|
|
45
|
-
useExisting: forwardRef(() => DatepickerComponent),
|
|
46
|
-
multi: true
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
})
|
|
50
|
-
export class DatepickerComponent implements OnInit, ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
|
|
51
|
-
|
|
52
|
-
@Input ('date') date: Date;
|
|
53
|
-
@Input ('hasError') hasError: boolean;
|
|
54
|
-
@Input ('minDate') minDate: Date = this.utils.subYears(new Date(), 100);
|
|
55
|
-
@Input ('maxDate') maxDate: Date = this.utils.addYears(new Date(), 50);
|
|
56
|
-
@Input ('excludedDates') excludedDates: Date[] = [];
|
|
57
|
-
@Input ('minYear') minYear: Date = this.utils.subYears(new Date(), 100);
|
|
58
|
-
@Input ('maxYear') maxYear: Date = this.utils.addYears(new Date(), 50);
|
|
59
|
-
@Input ('withBackground') withBackground: boolean = true;
|
|
60
|
-
@Input ('align') align: 'left' | 'right' = 'right';
|
|
61
|
-
@Input ('placeholder') placeholder: string = 'Введите дату';
|
|
62
|
-
@Input ('collapseOnChange') collapseOnChange: boolean = true;
|
|
63
|
-
|
|
64
|
-
@Input ('withoutDays') withoutDays = false;
|
|
65
|
-
|
|
66
|
-
@ViewChild ('core') core: DatepickerCoreComponent;
|
|
67
|
-
@ViewChild ('input') input: InputDirective;
|
|
68
|
-
@ViewChild ('container') container: ElementRef<HTMLDivElement>;
|
|
69
|
-
|
|
70
|
-
@Output ('onChange') onChange: EventEmitter<Date | null> = new EventEmitter();
|
|
71
|
-
|
|
72
|
-
clearVl: string = '';
|
|
73
|
-
inputValue: string;
|
|
74
|
-
lastValidInput: string;
|
|
75
|
-
mask = '00.00.0000';
|
|
76
|
-
customPattern = {
|
|
77
|
-
'y': { pattern: new RegExp('\[0-9]') },
|
|
78
|
-
'0': { pattern: new RegExp('\[0-3]') },
|
|
79
|
-
'1': { pattern: new RegExp('\[0-9]') },
|
|
80
|
-
'2': { pattern: new RegExp('\[0-1]') },
|
|
81
|
-
'3': { pattern: new RegExp('\[0-9]') },
|
|
82
|
-
'm': { pattern: new RegExp('\[0-3]') },
|
|
83
|
-
'x': { pattern: new RegExp('\[0-9]') }
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
fixedPosition = '';
|
|
87
|
-
|
|
88
|
-
keyDownHandler(event: KeyboardEvent): void {
|
|
89
|
-
const tsCrutchEl = (event.target as unknown as HTMLInputElement);
|
|
90
|
-
const breakInput = this.maskUtils.breakInput(event);
|
|
91
|
-
|
|
92
|
-
const illegalSymbol = (!Number.isInteger(parseInt(event.key))) && !MaskUtilsService.allowedKeys.includes(event.key);
|
|
93
|
-
breakInput(illegalSymbol);
|
|
94
|
-
|
|
95
|
-
const carretAfterDot = tsCrutchEl.value[tsCrutchEl.selectionStart - 1] === '.';
|
|
96
|
-
breakInput(event.key === 'Backspace' && carretAfterDot);
|
|
97
|
-
|
|
98
|
-
const splitStr = this.inputValue.split('.');
|
|
99
|
-
let inputSegmentOverflow: boolean;
|
|
100
|
-
|
|
101
|
-
if (this.withoutDays) {
|
|
102
|
-
const [ month, year ] = [ splitStr[0] || '', splitStr[1] || '' ];
|
|
103
|
-
inputSegmentOverflow = this.maskUtils.inputSegmentOverflow([ '', month, year ], event, this.withoutDays);
|
|
104
|
-
breakInput(inputSegmentOverflow);
|
|
105
|
-
|
|
106
|
-
} else {
|
|
107
|
-
const [ day, month, year ] = [ splitStr[0] || '', splitStr[1] || '', splitStr[2] || '' ];
|
|
108
|
-
inputSegmentOverflow = this.maskUtils.inputSegmentOverflow([ day, month, year ], event, this.withoutDays)
|
|
109
|
-
breakInput(inputSegmentOverflow);
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (Number.isInteger(parseInt(event.key)) && !inputSegmentOverflow) {
|
|
114
|
-
const [ day, month, year ] = this.maskUtils.predictInput(this.inputValue, event.key, tsCrutchEl.selectionStart, this.withoutDays).split('.');
|
|
115
|
-
|
|
116
|
-
const ctrlDay = parseInt(day) ? day : '1';
|
|
117
|
-
const ctrlMonth = parseInt(month) ? month : '1';
|
|
118
|
-
const ctrlYear = (Number.isInteger(parseInt(year)) && year.replace('_', '').length === 4) ? year : null;
|
|
119
|
-
const valid = this.utils.validDate(ctrlDay, ctrlMonth, ctrlYear, [this.minDate, this.maxDate]);
|
|
120
|
-
|
|
121
|
-
breakInput(!valid);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
typeHandler(event: InputEvent): void {
|
|
127
|
-
const split = this.inputValue.split('.');
|
|
128
|
-
const isMasked = this.withoutDays ? split.length === 2 : split.length === 3;
|
|
129
|
-
|
|
130
|
-
this.clearVl = this.inputValue.replace(/\./g, '');
|
|
131
|
-
const dotCondition = !this.withoutDays
|
|
132
|
-
? ((this.clearVl.length === 2 && split.length < 2) || (this.clearVl.length === 4)) && !isMasked && this.clearVl.length
|
|
133
|
-
: this.clearVl.length === 2 && !isMasked
|
|
134
|
-
|
|
135
|
-
if (dotCondition) {
|
|
136
|
-
this.inputValue = `${this.inputValue}.`;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
isOpen: boolean = false;
|
|
142
|
-
|
|
143
|
-
disabled: boolean = false;
|
|
144
|
-
touched: boolean = false;
|
|
145
|
-
|
|
146
|
-
constructor(private utils: DatepickerUtilsService, private maskUtils: MaskUtilsService) {}
|
|
147
|
-
|
|
148
|
-
woDaysMonth: number;
|
|
149
|
-
woDaysYear: number;
|
|
150
|
-
|
|
151
|
-
woMonthIncSub(base: number): void {
|
|
152
|
-
if (base) {
|
|
153
|
-
|
|
154
|
-
if (this.woDaysMonth === 11) {
|
|
155
|
-
this.woDaysMonth = 0;
|
|
156
|
-
this.woDaysYear = this.woDaysYear + 1;
|
|
157
|
-
|
|
158
|
-
} else {
|
|
159
|
-
this.woDaysMonth = this.woDaysMonth + 1;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
} else {
|
|
163
|
-
|
|
164
|
-
if (this.woDaysMonth === 0) {
|
|
165
|
-
this.woDaysMonth = 11;
|
|
166
|
-
this.woDaysYear = this.woDaysYear - 1;
|
|
167
|
-
|
|
168
|
-
} else {
|
|
169
|
-
this.woDaysMonth = this.woDaysMonth - 1;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
woDaysMonthSet(value: [number, boolean]): void {
|
|
176
|
-
const [ month, erase ] = value;
|
|
177
|
-
|
|
178
|
-
this.woDaysMonth = month;
|
|
179
|
-
const targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
180
|
-
|
|
181
|
-
if (!erase) {
|
|
182
|
-
this.inputValue = targetDate;
|
|
183
|
-
this.lastValidInput = this.inputValue;
|
|
184
|
-
|
|
185
|
-
this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (this.collapseOnChange) {
|
|
189
|
-
this.isOpen = false;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
woDaysYearSet(value: [number, boolean]): void {
|
|
194
|
-
const [ year, erase ] = value;
|
|
195
|
-
|
|
196
|
-
this.woDaysYear = year;
|
|
197
|
-
let targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
198
|
-
|
|
199
|
-
if (this.utils.isMinOverlap(this.minDate, this.utils.parseDate(`01.${targetDate}`))) {
|
|
200
|
-
this.woDaysMonth = new Date(this.minDate).getMonth();
|
|
201
|
-
targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
202
|
-
this.core.setMonth(this.woDaysMonth);
|
|
203
|
-
|
|
204
|
-
} else if (this.utils.isMaxOverlap(this.maxDate, this.utils.parseDate(`01.${targetDate}`))) {
|
|
205
|
-
this.woDaysMonth = new Date(this.maxDate).getMonth();
|
|
206
|
-
targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
207
|
-
this.core.setMonth(this.woDaysMonth);
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (!erase) {
|
|
212
|
-
this.inputValue = targetDate;
|
|
213
|
-
this.lastValidInput = this.inputValue;
|
|
214
|
-
|
|
215
|
-
this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
if (this.collapseOnChange) {
|
|
219
|
-
this.isOpen = false;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
clickInputHandler(): void {
|
|
224
|
-
if (!this.isOpen) {
|
|
225
|
-
this.adjustCoreContainer();
|
|
226
|
-
this.isOpen = true;
|
|
227
|
-
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
clickOutsideHandler(event: any): void {
|
|
232
|
-
if (this.isOpen) this.isOpen = false;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
isExcluded(date: Date): boolean {
|
|
236
|
-
return !!this.excludedDates
|
|
237
|
-
.filter(item => this.utils.isSameDay(item, date))
|
|
238
|
-
.length
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
isDisabled(date: Date): boolean {
|
|
242
|
-
return this.utils.isMinOverlap(this.minDate, date)
|
|
243
|
-
|| this.utils.isMaxOverlap(this.maxDate, date)
|
|
244
|
-
|| this.isExcluded(date)
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
handleInput(event: string): void {
|
|
248
|
-
if (!this.touched) this.touched = true;
|
|
249
|
-
if (!event) {
|
|
250
|
-
this.writeValue(null);
|
|
251
|
-
this.core.setMonth(
|
|
252
|
-
this.utils.getMonth(new Date()),
|
|
253
|
-
true
|
|
254
|
-
);
|
|
255
|
-
this.core.setYear(
|
|
256
|
-
this.utils.getYear(new Date()),
|
|
257
|
-
true
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
const inpToValid = this.withoutDays ? `01.${event}` : event;
|
|
262
|
-
|
|
263
|
-
if (!this.utils.validInput(inpToValid)) {
|
|
264
|
-
|
|
265
|
-
if (!event) {
|
|
266
|
-
this.lastValidInput = null;
|
|
267
|
-
this.inputValue = '';
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
this.inputValue = this.lastValidInput || '';
|
|
272
|
-
return;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
if (this.withoutDays) {
|
|
276
|
-
this.woDaysMonth = this.utils.parseDate(inpToValid).getMonth();
|
|
277
|
-
this.woDaysYear = this.utils.parseDate(inpToValid).getFullYear();
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (this.isDisabled(this.utils.parseDate(inpToValid))) {
|
|
281
|
-
this.inputValue = this.lastValidInput || '';
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
this.lastValidInput = this.inputValue;
|
|
286
|
-
|
|
287
|
-
this.date = this.utils.parseDate(inpToValid);
|
|
288
|
-
|
|
289
|
-
this.core.setMonth(
|
|
290
|
-
this.utils.getMonth(this.date)
|
|
291
|
-
);
|
|
292
|
-
this.core.setYear(
|
|
293
|
-
this.utils.getYear(this.date)
|
|
294
|
-
);
|
|
295
|
-
|
|
296
|
-
this.writeValue(this.date);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
handleOpen(): void {
|
|
300
|
-
if (!this.isOpen) {
|
|
301
|
-
this.adjustCoreContainer();
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
this.isOpen = !this.isOpen;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
isolatedCb = this.adjustCoreContainer.bind(this);
|
|
308
|
-
scrollParent: HTMLElement;
|
|
309
|
-
|
|
310
|
-
addListeners(): void {
|
|
311
|
-
const scrollParent = getScrollParent(this.container.nativeElement);
|
|
312
|
-
|
|
313
|
-
if (scrollParent) {
|
|
314
|
-
this.scrollParent = scrollParent;
|
|
315
|
-
scrollParent.addEventListener('scroll', this.isolatedCb);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
document.addEventListener('scroll', this.isolatedCb);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
ngOnDestroy(): void {
|
|
322
|
-
document.removeEventListener('scroll', this.isolatedCb);
|
|
323
|
-
|
|
324
|
-
if (this.scrollParent) {
|
|
325
|
-
this.scrollParent.removeEventListener('scroll', this.isolatedCb);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
ngAfterViewInit(): void {
|
|
330
|
-
this.addListeners();
|
|
331
|
-
this.adjustCoreContainer();
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
adjustCoreContainer(): void {
|
|
335
|
-
if (this.container) {
|
|
336
|
-
const { height: coreHeight } = this.core.container.nativeElement.getBoundingClientRect();
|
|
337
|
-
const height = document.documentElement.offsetHeight;
|
|
338
|
-
const { left, top, width, height: inputHeight, right: InputRight } = this.container.nativeElement.getBoundingClientRect();
|
|
339
|
-
const fromInputPadding = 66;
|
|
340
|
-
const coreBottomEstimate = coreHeight + top + fromInputPadding;
|
|
341
|
-
const bottomOverflow = coreBottomEstimate > height;
|
|
342
|
-
const coreTopEstimate = (top - coreHeight) - 20;
|
|
343
|
-
const topOverflow = coreTopEstimate < 0;
|
|
344
|
-
const centerVrAlign = top - (coreHeight / 2) + (inputHeight / 2);
|
|
345
|
-
const CORE_WIDTH = 296;
|
|
346
|
-
const coreRightEstimate = (InputRight + CORE_WIDTH + 10);
|
|
347
|
-
|
|
348
|
-
const topAlign = bottomOverflow ? (topOverflow ? centerVrAlign : coreTopEstimate) : top + 66;
|
|
349
|
-
const hAlign = coreRightEstimate < window.innerWidth ? (left + width + 10) : (left - CORE_WIDTH - 10);
|
|
350
|
-
const defaultHpos = this.align === 'right' ? `left: ${(left + width) - CORE_WIDTH}px; top: ${topAlign}px` : `left: ${left}px; top: ${topAlign}px`;
|
|
351
|
-
const centeredHpos = `left: ${hAlign}px; top: ${topAlign}px`;
|
|
352
|
-
|
|
353
|
-
this.fixedPosition = (bottomOverflow && topOverflow) ? centeredHpos : defaultHpos;
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
handleDateChange(date: Date): void {
|
|
359
|
-
if (!this.touched) this.touched = true;
|
|
360
|
-
this.inputValue = this.utils.formatDate(date);
|
|
361
|
-
this.lastValidInput = this.inputValue;
|
|
362
|
-
this.date = date;
|
|
363
|
-
this.writeValue(date);
|
|
364
|
-
|
|
365
|
-
if (this.collapseOnChange) {
|
|
366
|
-
this.isOpen = false;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
private onFormChange(value: any): void {}
|
|
371
|
-
private onTouch(): void {}
|
|
372
|
-
|
|
373
|
-
registerOnChange(fn: (value: any) => void) {
|
|
374
|
-
this.onFormChange = fn;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
registerOnTouched(fn: any) {
|
|
378
|
-
this.onTouch = fn;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
writeValue(value: any) {
|
|
382
|
-
if (this.disabled) return;
|
|
383
|
-
if (!value) this.inputValue = '';
|
|
384
|
-
|
|
385
|
-
this.date = value || new Date();
|
|
386
|
-
this.onFormChange(value);
|
|
387
|
-
this.onTouch();
|
|
388
|
-
if (!this.touched) this.touched = true;
|
|
389
|
-
this.onChange.emit(value);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
setDisabledState(disabled: boolean) {
|
|
393
|
-
this.disabled = disabled;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
ngOnInit(): void {
|
|
397
|
-
if (this.withoutDays) {
|
|
398
|
-
this.mask = '00.0000';
|
|
399
|
-
this.date = this.date ? this.date : new Date();
|
|
400
|
-
const month = this.date.getMonth();
|
|
401
|
-
const year = this.date.getFullYear();
|
|
402
|
-
|
|
403
|
-
this.woDaysMonth = month;
|
|
404
|
-
this.woDaysYear = year;
|
|
405
|
-
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
this.inputValue = this.date
|
|
410
|
-
? this.utils.formatDate(this.date)
|
|
411
|
-
: '';
|
|
412
|
-
this.date = this.date ? this.date : new Date();
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
ngOnChanges(changes: any): void {
|
|
416
|
-
if (changes.date) {
|
|
417
|
-
const newInput = this.utils.formatDate(changes.date.currentValue) || '';
|
|
418
|
-
this.inputValue = this.withoutDays ? newInput.slice(3, 10) : newInput;
|
|
419
|
-
this.lastValidInput = this.withoutDays ? newInput.slice(3, 10) : newInput;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { DatepickerComponent } from './datepicker.component';
|
|
4
|
-
import { DatepickerCoreComponent } from './datepicker-core/datepicker-core.component';
|
|
5
|
-
import { DatepickerMonthComponent } from './datepicker-month/datepicker-month.component';
|
|
6
|
-
import { DateToStrPipe } from './pipes/date-to-str.pipe';
|
|
7
|
-
import { DatepickerTilesComponent } from './datepicker-tiles/datepicker-tiles.component';
|
|
8
|
-
import { FormFieldModule } from '../form-field/form-field.module';
|
|
9
|
-
import { NgxMaskModule, IConfig } from 'ngx-mask';
|
|
10
|
-
import { FormsModule } from '@angular/forms';
|
|
11
|
-
|
|
12
|
-
import { ClickOutsideModule } from '../click-outside/click-outside.module';
|
|
13
|
-
|
|
14
|
-
const maskConfig: Partial<IConfig> = {
|
|
15
|
-
validation: false,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const maskModule = NgxMaskModule.forRoot(maskConfig);
|
|
19
|
-
|
|
20
|
-
@NgModule({
|
|
21
|
-
declarations: [
|
|
22
|
-
DatepickerComponent,
|
|
23
|
-
DatepickerCoreComponent,
|
|
24
|
-
DatepickerMonthComponent,
|
|
25
|
-
DateToStrPipe,
|
|
26
|
-
DatepickerTilesComponent,
|
|
27
|
-
],
|
|
28
|
-
imports: [
|
|
29
|
-
CommonModule,
|
|
30
|
-
FormFieldModule,
|
|
31
|
-
FormsModule,
|
|
32
|
-
ClickOutsideModule,
|
|
33
|
-
maskModule
|
|
34
|
-
],
|
|
35
|
-
exports: [
|
|
36
|
-
DatepickerComponent,
|
|
37
|
-
DatepickerCoreComponent,
|
|
38
|
-
DatepickerMonthComponent,
|
|
39
|
-
DateToStrPipe,
|
|
40
|
-
DatepickerTilesComponent,
|
|
41
|
-
],
|
|
42
|
-
})
|
|
43
|
-
export class DatepickerModule { }
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { FormFieldModule } from '../form-field/form-field.module';
|
|
2
|
-
import { DatepickerModule } from './datepicker.module';
|
|
3
|
-
import { DatepickerComponent } from './datepicker.component';
|
|
4
|
-
import { withDesign } from 'storybook-addon-designs';
|
|
5
|
-
|
|
6
|
-
import { moduleMetadata } from '@storybook/angular';
|
|
7
|
-
import { Story } from '@storybook/angular/types-6-0';
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
Component,
|
|
11
|
-
Input,
|
|
12
|
-
OnChanges
|
|
13
|
-
} from '@angular/core';
|
|
14
|
-
|
|
15
|
-
import { action } from '@storybook/addon-actions';
|
|
16
|
-
import { FormControl, ReactiveFormsModule, FormGroup, Validators } from '@angular/forms';
|
|
17
|
-
import { boolean, date, array, select } from '@storybook/addon-knobs';
|
|
18
|
-
import { parse } from 'date-fns';
|
|
19
|
-
|
|
20
|
-
const dateConvert = (arr: string[]): Date[] => {
|
|
21
|
-
return arr.map(term => parse(term, 'dd.MM.yyyy', new Date()));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@Component({
|
|
25
|
-
selector: 'test-component',
|
|
26
|
-
template: `
|
|
27
|
-
<form
|
|
28
|
-
class="test-component"
|
|
29
|
-
[formGroup]="sampleForm"
|
|
30
|
-
>
|
|
31
|
-
<aeb-datepicker
|
|
32
|
-
formControlName="dateField"
|
|
33
|
-
[hasError]="onError"
|
|
34
|
-
[minDate]="minDate"
|
|
35
|
-
[maxDate]="maxDate"
|
|
36
|
-
[excludedDates]="excludedDates"
|
|
37
|
-
[align]="align"
|
|
38
|
-
[withBackground]="withBackground"
|
|
39
|
-
[collapseOnChange]="collapseOnChange"
|
|
40
|
-
>
|
|
41
|
-
</aeb-datepicker>
|
|
42
|
-
</form>
|
|
43
|
-
`,
|
|
44
|
-
styles: [`
|
|
45
|
-
.test-component {
|
|
46
|
-
width: 450px;
|
|
47
|
-
height: 370px;
|
|
48
|
-
padding: 20px;
|
|
49
|
-
display: flex;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
}
|
|
52
|
-
`]
|
|
53
|
-
})
|
|
54
|
-
class TestComponent implements OnChanges {
|
|
55
|
-
@Input ('disabled') disabled: boolean;
|
|
56
|
-
@Input ('hasError') onError: boolean;
|
|
57
|
-
@Input ('minDate') minDate: Date;
|
|
58
|
-
@Input ('maxDate') maxDate: Date;
|
|
59
|
-
@Input ('excludedDates') excludedDates: Date[];
|
|
60
|
-
@Input ('withBackground') withBackground: boolean = true;
|
|
61
|
-
@Input ('align') align: 'left' | 'right' = 'right';
|
|
62
|
-
@Input ('collapseOnChange') collapseOnChange: boolean = true;
|
|
63
|
-
|
|
64
|
-
minYear = new Date(2019, 0);
|
|
65
|
-
maxYear = new Date();
|
|
66
|
-
|
|
67
|
-
sampleForm = new FormGroup({
|
|
68
|
-
dateField: new FormControl('', {validators: Validators.required})
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
constructor () {
|
|
72
|
-
this.sampleForm.valueChanges.subscribe(form => {
|
|
73
|
-
if (form.dateField) {
|
|
74
|
-
action('[DATEPICKER VALUE]: ')(form.dateField);
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
ngOnChanges(changes) {
|
|
80
|
-
if (changes.disabled) {
|
|
81
|
-
this.sampleForm.get('dateField')[this.disabled ? 'disable' : 'enable']();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export default {
|
|
88
|
-
title: 'Components/Datepicker',
|
|
89
|
-
component: DatepickerComponent,
|
|
90
|
-
decorators: [
|
|
91
|
-
moduleMetadata({
|
|
92
|
-
imports: [
|
|
93
|
-
DatepickerModule,
|
|
94
|
-
FormFieldModule,
|
|
95
|
-
ReactiveFormsModule
|
|
96
|
-
],
|
|
97
|
-
declarations: [ TestComponent ]
|
|
98
|
-
}),
|
|
99
|
-
withDesign
|
|
100
|
-
]
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export const Default: Story<DatepickerComponent> = () => ({
|
|
104
|
-
component: DatepickerComponent,
|
|
105
|
-
template: `
|
|
106
|
-
<test-component
|
|
107
|
-
[disabled]="disabled"
|
|
108
|
-
[hasError]="onError"
|
|
109
|
-
[minDate]="minDate"
|
|
110
|
-
[maxDate]="maxDate"
|
|
111
|
-
[excludedDates]="excludedDates"
|
|
112
|
-
[align]="align"
|
|
113
|
-
[withBackground]="withBackground"
|
|
114
|
-
[collapseOnChange]="collapseOnChange"
|
|
115
|
-
>
|
|
116
|
-
</test-component>
|
|
117
|
-
`,
|
|
118
|
-
props: {
|
|
119
|
-
disabled: boolean('Disabled', false),
|
|
120
|
-
onError: boolean('On error', false),
|
|
121
|
-
minDate: date('Min date', new Date(2019, 5)),
|
|
122
|
-
maxDate: date('Max date', new Date()),
|
|
123
|
-
excludedDates: dateConvert(
|
|
124
|
-
array('Excluded dates', ['21.11.2020'], ', ')
|
|
125
|
-
),
|
|
126
|
-
withBackground: boolean('With background', true),
|
|
127
|
-
align: select('Align', ['left', 'right'], 'right'),
|
|
128
|
-
collapseOnChange: boolean('Collapse on change', true)
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
Default.parameters = {
|
|
133
|
-
design: {
|
|
134
|
-
type: 'figma',
|
|
135
|
-
url: 'https://www.figma.com/file/THaYMLbry68fxOz8A5Orhh/AEB.Web.UI?node-id=393%3A1482'
|
|
136
|
-
}
|
|
137
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
import { getDate } from 'date-fns';
|
|
3
|
-
|
|
4
|
-
@Pipe({
|
|
5
|
-
name: 'dateToStr'
|
|
6
|
-
})
|
|
7
|
-
export class DateToStrPipe implements PipeTransform {
|
|
8
|
-
|
|
9
|
-
transform(value: Date | null): string {
|
|
10
|
-
return value ? `${getDate(value)}` : '';
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { DatepickerUtilsService } from './datepicker-utils.service';
|
|
4
|
-
|
|
5
|
-
describe('DatepickerUtilsService', () => {
|
|
6
|
-
let service: DatepickerUtilsService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(DatepickerUtilsService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|