aeb-ui-kit 0.0.121 → 1.0.0
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/aeb-ui-kit.d.ts +1 -17
- package/esm2020/aeb-ui-kit.mjs +5 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/esm2020/lib/accordion/accordion.component.mjs +36 -0
- package/esm2020/lib/accordion/accordion.module.mjs +22 -0
- package/esm2020/lib/action-bar/action-bar.component.mjs +21 -0
- package/esm2020/lib/action-bar/action-bar.module.mjs +22 -0
- package/esm2020/lib/aeb-ui-kit.module.mjs +262 -0
- package/esm2020/lib/button/button.component.mjs +28 -0
- package/esm2020/lib/button/button.module.mjs +18 -0
- package/esm2020/lib/checkbox/checkbox.component.mjs +103 -0
- package/esm2020/lib/checkbox/checkbox.module.mjs +18 -0
- package/esm2020/lib/click-outside/click-outside.directive.mjs +45 -0
- package/esm2020/lib/click-outside/click-outside.module.mjs +18 -0
- package/esm2020/lib/comment/comment.component.mjs +71 -0
- package/esm2020/lib/comment/comment.module.mjs +40 -0
- package/esm2020/lib/credit-item-card/credit-item-card.component.mjs +30 -0
- package/esm2020/lib/credit-item-card/credit-item-card.module.mjs +26 -0
- package/{esm2015/lib/credit-item-card/models/IProductItemCard.js → esm2020/lib/credit-item-card/models/IProductItemCard.mjs} +0 -0
- package/esm2020/lib/datepicker/datepicker-core/datepicker-core.component.mjs +161 -0
- package/esm2020/lib/datepicker/datepicker-month/datepicker-month.component.mjs +61 -0
- package/esm2020/lib/datepicker/datepicker-tiles/datepicker-tiles.component.mjs +104 -0
- package/esm2020/lib/datepicker/datepicker.component.mjs +373 -0
- package/esm2020/lib/datepicker/datepicker.module.mjs +65 -0
- package/esm2020/lib/datepicker/pipes/date-to-str.pipe.mjs +17 -0
- package/{esm2015/lib/datepicker/services/datepicker-utils.service.js → esm2020/lib/datepicker/services/datepicker-utils.service.mjs} +9 -8
- package/esm2020/lib/datepicker/services/mask-utils.service.mjs +60 -0
- package/esm2020/lib/dropdown/dropdown.component.mjs +99 -0
- package/esm2020/lib/dropdown/dropdown.module.mjs +19 -0
- package/esm2020/lib/field-slider/directives/numbers-only.directive.mjs +71 -0
- package/esm2020/lib/field-slider/field-slider.component.mjs +170 -0
- package/esm2020/lib/field-slider/field-slider.module.mjs +38 -0
- package/esm2020/lib/field-slider/pipes/replace.pipe.mjs +19 -0
- package/esm2020/lib/file-attach/directives/drag-and-drop.directive.mjs +49 -0
- package/esm2020/lib/file-attach/file-attach.component.mjs +73 -0
- package/esm2020/lib/file-attach/file-attach.module.mjs +20 -0
- package/esm2020/lib/filter-tags/filter-tag/filter-tag.component.mjs +30 -0
- package/esm2020/lib/filter-tags/filter-tags.component.mjs +37 -0
- package/esm2020/lib/filter-tags/filter-tags.module.mjs +23 -0
- package/esm2020/lib/footer/footer-bottom/footer-bottom.component.mjs +42 -0
- package/esm2020/lib/footer/footer-menu/footer-menu.component.mjs +58 -0
- package/esm2020/lib/footer/footer-top/footer-top.component.mjs +25 -0
- package/esm2020/lib/footer/footer.component.mjs +24 -0
- package/esm2020/lib/footer/footer.module.mjs +33 -0
- package/esm2020/lib/form-field/form-field.component.mjs +87 -0
- package/esm2020/lib/form-field/form-field.module.mjs +22 -0
- package/esm2020/lib/form-field/icon.directive.mjs +14 -0
- package/esm2020/lib/form-field/input.directive.mjs +69 -0
- package/esm2020/lib/form-field/label.directive.mjs +14 -0
- package/esm2020/lib/form-field/textarea.directive.mjs +69 -0
- package/esm2020/lib/header/header.component.mjs +22 -0
- package/esm2020/lib/header/header.module.mjs +19 -0
- package/esm2020/lib/header/logo.component.mjs +15 -0
- package/esm2020/lib/heading/breadcrumps/breadcrumps.component.mjs +27 -0
- package/esm2020/lib/heading/heading.component.mjs +17 -0
- package/esm2020/lib/heading/heading.module.mjs +24 -0
- package/esm2020/lib/heading/product-title/product-title.component.mjs +25 -0
- package/esm2020/lib/label/label.component.mjs +13 -0
- package/esm2020/lib/label/label.module.mjs +18 -0
- package/esm2020/lib/new-button/new-button.component.mjs +60 -0
- package/esm2020/lib/new-button/new-button.module.mjs +18 -0
- package/esm2020/lib/new-dropdown/new-dropdown.component.mjs +185 -0
- package/esm2020/lib/new-dropdown/new-dropdown.module.mjs +34 -0
- package/esm2020/lib/new-notifications/new-notifications.component.mjs +35 -0
- package/esm2020/lib/new-notifications/new-notifications.module.mjs +22 -0
- package/esm2020/lib/new-tooltip/new-tooltip.component.mjs +23 -0
- package/esm2020/lib/new-tooltip/new-tooltip.module.mjs +27 -0
- package/esm2020/lib/new-tooltip/services/domservice.service.mjs +41 -0
- package/esm2020/lib/new-tooltip/tooltip.directive.mjs +159 -0
- package/esm2020/lib/news-card/news-card.component.mjs +15 -0
- package/esm2020/lib/news-card/news-card.module.mjs +22 -0
- package/esm2020/lib/notifications/notifications.component.mjs +23 -0
- package/esm2020/lib/notifications/notifications.module.mjs +18 -0
- package/esm2020/lib/pagination/pagination.component.mjs +167 -0
- package/esm2020/lib/pagination/pagination.module.mjs +28 -0
- package/esm2020/lib/pop-up/pop-up.component.mjs +27 -0
- package/esm2020/lib/pop-up/pop-up.directive.mjs +64 -0
- package/esm2020/lib/pop-up/pop-up.module.mjs +23 -0
- package/esm2020/lib/radio-buttons/radio-buttons.component.mjs +69 -0
- package/esm2020/lib/radio-buttons/radio-buttons.module.mjs +22 -0
- package/esm2020/lib/search/highlight.pipe.mjs +16 -0
- package/esm2020/lib/search/search.component.mjs +67 -0
- package/esm2020/lib/search/search.module.mjs +27 -0
- package/esm2020/lib/select/option.component.mjs +27 -0
- package/esm2020/lib/select/select.component.mjs +114 -0
- package/esm2020/lib/select/select.module.mjs +20 -0
- package/esm2020/lib/sidebar/sidebar.component.mjs +32 -0
- package/esm2020/lib/sidebar/sidebar.module.mjs +18 -0
- package/esm2020/lib/slider/pipes/replace.pipe.mjs +19 -0
- package/esm2020/lib/slider/slider.component.mjs +141 -0
- package/esm2020/lib/slider/slider.module.mjs +23 -0
- package/esm2020/lib/spinner/spinner.component.mjs +13 -0
- package/esm2020/lib/spinner/spinner.module.mjs +18 -0
- package/esm2020/lib/table/table.component.mjs +30 -0
- package/{esm2015/lib/table/table.model.js → esm2020/lib/table/table.model.mjs} +0 -0
- package/esm2020/lib/table/table.module.mjs +19 -0
- package/esm2020/lib/table/table.pipe.mjs +22 -0
- package/esm2020/lib/tabs/tab.directive.mjs +19 -0
- package/esm2020/lib/tabs/tabs.component.mjs +78 -0
- package/esm2020/lib/tabs/tabs.module.mjs +23 -0
- package/esm2020/lib/tag-tab/tag-tab.component.mjs +20 -0
- package/esm2020/lib/tag-tab/tag-tab.module.mjs +18 -0
- package/esm2020/lib/tooltip/tooltip.component.mjs +24 -0
- package/esm2020/lib/tooltip/tooltip.module.mjs +18 -0
- package/esm2020/lib/visa/visa-item.component.mjs +16 -0
- package/esm2020/lib/visa/visa-span.directive.mjs +31 -0
- package/esm2020/lib/visa/visa.component.mjs +13 -0
- package/esm2020/lib/visa/visa.module.mjs +36 -0
- package/esm2020/lib/wizard/wizard-step.component.mjs +41 -0
- package/esm2020/lib/wizard/wizard.component.mjs +83 -0
- package/esm2020/lib/wizard/wizard.module.mjs +19 -0
- package/esm2020/public-api.mjs +105 -0
- package/fesm2015/aeb-ui-kit.mjs +4702 -0
- package/fesm2015/aeb-ui-kit.mjs.map +1 -0
- package/fesm2020/aeb-ui-kit.mjs +4703 -0
- package/fesm2020/aeb-ui-kit.mjs.map +1 -0
- package/lib/accordion/accordion.component.d.ts +3 -0
- package/lib/accordion/accordion.module.d.ts +6 -0
- package/lib/action-bar/action-bar.component.d.ts +3 -0
- package/lib/action-bar/action-bar.module.d.ts +6 -0
- package/lib/aeb-ui-kit.module.d.ts +40 -0
- package/lib/button/button.component.d.ts +3 -0
- package/lib/button/button.module.d.ts +6 -0
- package/lib/checkbox/checkbox.component.d.ts +3 -0
- package/lib/checkbox/checkbox.module.d.ts +6 -0
- package/lib/click-outside/click-outside.directive.d.ts +4 -0
- package/lib/click-outside/click-outside.module.d.ts +6 -0
- package/lib/comment/comment.component.d.ts +3 -0
- package/lib/comment/comment.module.d.ts +10 -0
- package/lib/credit-item-card/credit-item-card.component.d.ts +3 -0
- package/lib/credit-item-card/credit-item-card.module.d.ts +7 -0
- package/lib/datepicker/datepicker-core/datepicker-core.component.d.ts +3 -0
- package/lib/datepicker/datepicker-month/datepicker-month.component.d.ts +3 -0
- package/lib/datepicker/datepicker-tiles/datepicker-tiles.component.d.ts +3 -0
- package/lib/datepicker/datepicker.component.d.ts +3 -0
- package/lib/datepicker/datepicker.module.d.ts +14 -2
- package/lib/datepicker/pipes/date-to-str.pipe.d.ts +3 -0
- package/lib/datepicker/services/datepicker-utils.service.d.ts +3 -0
- package/lib/datepicker/services/mask-utils.service.d.ts +3 -0
- package/lib/dropdown/dropdown.component.d.ts +3 -0
- package/lib/dropdown/dropdown.module.d.ts +7 -0
- package/lib/field-slider/directives/numbers-only.directive.d.ts +3 -0
- package/lib/field-slider/field-slider.component.d.ts +3 -0
- package/lib/field-slider/field-slider.module.d.ts +10 -0
- package/lib/field-slider/pipes/replace.pipe.d.ts +3 -0
- package/lib/file-attach/directives/drag-and-drop.directive.d.ts +3 -0
- package/lib/file-attach/file-attach.component.d.ts +4 -1
- package/lib/file-attach/file-attach.module.d.ts +8 -0
- package/lib/filter-tags/filter-tag/filter-tag.component.d.ts +3 -0
- package/lib/filter-tags/filter-tags.component.d.ts +3 -0
- package/lib/filter-tags/filter-tags.module.d.ts +7 -0
- package/lib/footer/footer-bottom/footer-bottom.component.d.ts +3 -0
- package/lib/footer/footer-menu/footer-menu.component.d.ts +3 -0
- package/lib/footer/footer-top/footer-top.component.d.ts +3 -0
- package/lib/footer/footer.component.d.ts +3 -0
- package/lib/footer/footer.module.d.ts +9 -0
- package/lib/form-field/form-field.component.d.ts +3 -0
- package/lib/form-field/form-field.module.d.ts +10 -0
- package/lib/form-field/icon.directive.d.ts +3 -0
- package/lib/form-field/input.directive.d.ts +3 -0
- package/lib/form-field/label.directive.d.ts +3 -0
- package/lib/form-field/textarea.directive.d.ts +3 -0
- package/lib/header/header.component.d.ts +3 -0
- package/lib/header/header.module.d.ts +7 -0
- package/lib/header/logo.component.d.ts +3 -0
- package/lib/heading/breadcrumps/breadcrumps.component.d.ts +3 -0
- package/lib/heading/heading.component.d.ts +3 -0
- package/lib/heading/heading.module.d.ts +8 -0
- package/lib/heading/product-title/product-title.component.d.ts +3 -0
- package/lib/label/label.component.d.ts +3 -0
- package/lib/label/label.module.d.ts +6 -0
- package/lib/new-button/new-button.component.d.ts +3 -0
- package/lib/new-button/new-button.module.d.ts +6 -0
- package/lib/new-dropdown/new-dropdown.component.d.ts +3 -0
- package/lib/new-dropdown/new-dropdown.module.d.ts +9 -0
- package/lib/new-notifications/new-notifications.component.d.ts +3 -0
- package/lib/new-notifications/new-notifications.module.d.ts +6 -0
- package/lib/new-tooltip/new-tooltip.component.d.ts +3 -0
- package/lib/new-tooltip/new-tooltip.module.d.ts +7 -0
- package/lib/new-tooltip/services/domservice.service.d.ts +3 -0
- package/lib/new-tooltip/tooltip.directive.d.ts +4 -1
- package/lib/news-card/news-card.component.d.ts +3 -0
- package/lib/news-card/news-card.module.d.ts +6 -0
- package/lib/notifications/notifications.component.d.ts +3 -0
- package/lib/notifications/notifications.module.d.ts +6 -0
- package/lib/pagination/pagination.component.d.ts +3 -0
- package/lib/pagination/pagination.module.d.ts +7 -0
- package/lib/pop-up/pop-up.component.d.ts +3 -0
- package/lib/pop-up/pop-up.directive.d.ts +3 -0
- package/lib/pop-up/pop-up.module.d.ts +7 -0
- package/lib/radio-buttons/radio-buttons.component.d.ts +3 -0
- package/lib/radio-buttons/radio-buttons.module.d.ts +6 -0
- package/lib/search/highlight.pipe.d.ts +3 -0
- package/lib/search/search.component.d.ts +3 -0
- package/lib/search/search.module.d.ts +8 -0
- package/lib/select/option.component.d.ts +3 -0
- package/lib/select/select.component.d.ts +3 -0
- package/lib/select/select.module.d.ts +8 -0
- package/lib/sidebar/sidebar.component.d.ts +3 -0
- package/lib/sidebar/sidebar.module.d.ts +6 -0
- package/lib/slider/pipes/replace.pipe.d.ts +3 -0
- package/lib/slider/slider.component.d.ts +3 -0
- package/lib/slider/slider.module.d.ts +7 -0
- package/lib/spinner/spinner.component.d.ts +3 -0
- package/lib/spinner/spinner.module.d.ts +6 -0
- package/lib/table/table.component.d.ts +3 -0
- package/lib/table/table.module.d.ts +7 -0
- package/lib/table/table.pipe.d.ts +3 -0
- package/lib/tabs/tab.directive.d.ts +3 -0
- package/lib/tabs/tabs.component.d.ts +3 -0
- package/lib/tabs/tabs.module.d.ts +7 -0
- package/lib/tag-tab/tag-tab.component.d.ts +3 -0
- package/lib/tag-tab/tag-tab.module.d.ts +6 -0
- package/lib/tooltip/tooltip.component.d.ts +3 -0
- package/lib/tooltip/tooltip.module.d.ts +6 -0
- package/lib/visa/visa-item.component.d.ts +3 -0
- package/lib/visa/visa-span.directive.d.ts +5 -0
- package/lib/visa/visa.component.d.ts +3 -0
- package/lib/visa/visa.module.d.ts +8 -0
- package/lib/wizard/wizard-step.component.d.ts +3 -0
- package/lib/wizard/wizard.component.d.ts +3 -0
- package/lib/wizard/wizard.module.d.ts +7 -0
- package/package.json +21 -9
- package/public-api.d.ts +9 -0
- package/styles.css +13 -11
- package/aeb-ui-kit.metadata.json +0 -1
- package/bundles/aeb-ui-kit.umd.js +0 -4842
- package/bundles/aeb-ui-kit.umd.js.map +0 -1
- package/bundles/aeb-ui-kit.umd.min.js +0 -17
- package/bundles/aeb-ui-kit.umd.min.js.map +0 -1
- package/esm2015/aeb-ui-kit.js +0 -22
- package/esm2015/lib/accordion/accordion.component.js +0 -35
- package/esm2015/lib/accordion/accordion.module.js +0 -15
- package/esm2015/lib/action-bar/action-bar.component.js +0 -20
- package/esm2015/lib/action-bar/action-bar.module.js +0 -15
- package/esm2015/lib/aeb-ui-kit.module.js +0 -119
- package/esm2015/lib/button/button.component.js +0 -31
- package/esm2015/lib/button/button.module.js +0 -13
- package/esm2015/lib/checkbox/checkbox.component.js +0 -97
- package/esm2015/lib/checkbox/checkbox.module.js +0 -13
- package/esm2015/lib/click-outside/click-outside.directive.js +0 -44
- package/esm2015/lib/click-outside/click-outside.module.js +0 -13
- package/esm2015/lib/comment/comment.component.js +0 -53
- package/esm2015/lib/comment/comment.module.js +0 -25
- package/esm2015/lib/credit-item-card/credit-item-card.component.js +0 -26
- package/esm2015/lib/credit-item-card/credit-item-card.module.js +0 -17
- package/esm2015/lib/datepicker/datepicker-core/datepicker-core.component.js +0 -135
- package/esm2015/lib/datepicker/datepicker-month/datepicker-month.component.js +0 -52
- package/esm2015/lib/datepicker/datepicker-tiles/datepicker-tiles.component.js +0 -81
- package/esm2015/lib/datepicker/datepicker.component.js +0 -337
- package/esm2015/lib/datepicker/datepicker.module.js +0 -43
- package/esm2015/lib/datepicker/pipes/date-to-str.pipe.js +0 -13
- package/esm2015/lib/datepicker/services/mask-utils.service.js +0 -61
- package/esm2015/lib/dropdown/dropdown.component.js +0 -91
- package/esm2015/lib/dropdown/dropdown.module.js +0 -14
- package/esm2015/lib/field-slider/directives/numbers-only.directive.js +0 -64
- package/esm2015/lib/field-slider/field-slider.component.js +0 -152
- package/esm2015/lib/field-slider/field-slider.module.js +0 -25
- package/esm2015/lib/field-slider/pipes/replace.pipe.js +0 -15
- package/esm2015/lib/file-attach/directives/drag-and-drop.directive.js +0 -40
- package/esm2015/lib/file-attach/file-attach.component.js +0 -63
- package/esm2015/lib/file-attach/file-attach.module.js +0 -15
- package/esm2015/lib/filter-tags/filter-tag/filter-tag.component.js +0 -27
- package/esm2015/lib/filter-tags/filter-tags.component.js +0 -33
- package/esm2015/lib/filter-tags/filter-tags.module.js +0 -16
- package/esm2015/lib/footer/footer-bottom/footer-bottom.component.js +0 -41
- package/esm2015/lib/footer/footer-menu/footer-menu.component.js +0 -57
- package/esm2015/lib/footer/footer-top/footer-top.component.js +0 -24
- package/esm2015/lib/footer/footer.component.js +0 -22
- package/esm2015/lib/footer/footer.module.js +0 -23
- package/esm2015/lib/form-field/form-field.component.js +0 -73
- package/esm2015/lib/form-field/form-field.module.js +0 -17
- package/esm2015/lib/form-field/icon.directive.js +0 -11
- package/esm2015/lib/form-field/input.directive.js +0 -55
- package/esm2015/lib/form-field/label.directive.js +0 -11
- package/esm2015/lib/form-field/textarea.directive.js +0 -55
- package/esm2015/lib/header/header.component.js +0 -23
- package/esm2015/lib/header/header.module.js +0 -14
- package/esm2015/lib/header/logo.component.js +0 -18
- package/esm2015/lib/heading/breadcrumps/breadcrumps.component.js +0 -26
- package/esm2015/lib/heading/heading.component.js +0 -19
- package/esm2015/lib/heading/heading.module.js +0 -17
- package/esm2015/lib/heading/product-title/product-title.component.js +0 -25
- package/esm2015/lib/label/label.component.js +0 -15
- package/esm2015/lib/label/label.module.js +0 -13
- package/esm2015/lib/new-button/new-button.component.js +0 -51
- package/esm2015/lib/new-button/new-button.module.js +0 -13
- package/esm2015/lib/new-dropdown/new-dropdown.component.js +0 -162
- package/esm2015/lib/new-dropdown/new-dropdown.module.js +0 -21
- package/esm2015/lib/new-notifications/new-notifications.component.js +0 -37
- package/esm2015/lib/new-notifications/new-notifications.module.js +0 -15
- package/esm2015/lib/new-tooltip/new-tooltip.component.js +0 -21
- package/esm2015/lib/new-tooltip/new-tooltip.module.js +0 -20
- package/esm2015/lib/new-tooltip/services/domservice.service.js +0 -44
- package/esm2015/lib/new-tooltip/tooltip.directive.js +0 -146
- package/esm2015/lib/news-card/news-card.component.js +0 -17
- package/esm2015/lib/news-card/news-card.module.js +0 -15
- package/esm2015/lib/notifications/notifications.component.js +0 -24
- package/esm2015/lib/notifications/notifications.module.js +0 -13
- package/esm2015/lib/pagination/pagination.component.js +0 -154
- package/esm2015/lib/pagination/pagination.module.js +0 -19
- package/esm2015/lib/pop-up/pop-up.component.js +0 -25
- package/esm2015/lib/pop-up/pop-up.directive.js +0 -57
- package/esm2015/lib/pop-up/pop-up.module.js +0 -16
- package/esm2015/lib/radio-buttons/radio-buttons.component.js +0 -56
- package/esm2015/lib/radio-buttons/radio-buttons.module.js +0 -15
- package/esm2015/lib/search/highlight.pipe.js +0 -12
- package/esm2015/lib/search/search.component.js +0 -56
- package/esm2015/lib/search/search.module.js +0 -18
- package/esm2015/lib/select/option.component.js +0 -25
- package/esm2015/lib/select/select.component.js +0 -108
- package/esm2015/lib/select/select.module.js +0 -15
- package/esm2015/lib/sidebar/sidebar.component.js +0 -32
- package/esm2015/lib/sidebar/sidebar.module.js +0 -13
- package/esm2015/lib/slider/pipes/replace.pipe.js +0 -15
- package/esm2015/lib/slider/slider.component.js +0 -129
- package/esm2015/lib/slider/slider.module.js +0 -17
- package/esm2015/lib/spinner/spinner.component.js +0 -15
- package/esm2015/lib/spinner/spinner.module.js +0 -13
- package/esm2015/lib/table/table.component.js +0 -27
- package/esm2015/lib/table/table.module.js +0 -14
- package/esm2015/lib/table/table.pipe.js +0 -18
- package/esm2015/lib/tabs/tab.directive.js +0 -18
- package/esm2015/lib/tabs/tabs.component.js +0 -64
- package/esm2015/lib/tabs/tabs.module.js +0 -16
- package/esm2015/lib/tag-tab/tag-tab.component.js +0 -19
- package/esm2015/lib/tag-tab/tag-tab.module.js +0 -13
- package/esm2015/lib/tooltip/tooltip.component.js +0 -29
- package/esm2015/lib/tooltip/tooltip.module.js +0 -13
- package/esm2015/lib/visa/visa-item.component.js +0 -16
- package/esm2015/lib/visa/visa-span.directive.js +0 -26
- package/esm2015/lib/visa/visa.component.js +0 -15
- package/esm2015/lib/visa/visa.module.js +0 -25
- package/esm2015/lib/wizard/wizard-step.component.js +0 -33
- package/esm2015/lib/wizard/wizard.component.js +0 -80
- package/esm2015/lib/wizard/wizard.module.js +0 -14
- package/esm2015/public-api.js +0 -96
- package/fesm2015/aeb-ui-kit.js +0 -4087
- package/fesm2015/aeb-ui-kit.js.map +0 -1
package/fesm2015/aeb-ui-kit.js
DELETED
|
@@ -1,4087 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ElementRef, Input, NgModule, EventEmitter, forwardRef, ChangeDetectorRef, Output, Renderer2, ViewChild, Pipe, ContentChildren, Directive, Optional, Self, HostBinding, HostListener, ContentChild, Injectable, NgZone, TemplateRef, ViewChildren, ɵɵdefineInjectable, ɵɵinject, ComponentFactoryResolver, INJECTOR, ApplicationRef, RendererFactory2, Inject, Injector, LOCALE_ID } from '@angular/core';
|
|
2
|
-
import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
|
|
3
|
-
import { NG_VALUE_ACCESSOR, NgControl, NgForm, FormGroupDirective, FormsModule, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
|
-
import { addWeeks, addDays, isSameMonth, getWeeksInMonth, startOfMonth, startOfWeek, addMonths, subMonths, eachYearOfInterval, getYear, addYears, subYears, differenceInYears, startOfYear, isToday, isValid, isSameDay, getMonth, setMonth, areIntervalsOverlapping, startOfDay, endOfDay, parse, format, getDaysInMonth, isExists, compareAsc, getDate } from 'date-fns';
|
|
6
|
-
import { ru } from 'date-fns/locale';
|
|
7
|
-
import '@angular/common/locales/global/ru';
|
|
8
|
-
import { NgxMaskModule } from 'ngx-mask';
|
|
9
|
-
|
|
10
|
-
class ButtonComponent {
|
|
11
|
-
constructor(elementRef) {
|
|
12
|
-
this.elementRef = elementRef;
|
|
13
|
-
this.type = 'button';
|
|
14
|
-
this.variant = 'default';
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
this.elementRef.nativeElement.classList.add(`aeb-${this.variant}-button`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
ButtonComponent.decorators = [
|
|
21
|
-
{ type: Component, args: [{
|
|
22
|
-
selector: 'button[aeb-button]',
|
|
23
|
-
template: "<span *ngIf=\"icon\" class=\"icon\">\n <img [src]=\"icon\">\n</span>\n<span>\n <ng-content></ng-content>\n</span>\n",
|
|
24
|
-
encapsulation: ViewEncapsulation.None,
|
|
25
|
-
host: {
|
|
26
|
-
class: 'aeb-base-button',
|
|
27
|
-
},
|
|
28
|
-
styles: [".aeb-base-button{display:inline-flex;align-items:center;justify-content:center;height:56px;line-height:21px;padding:0 26px;box-sizing:border-box;border-radius:var(--border-radius-size);font-size:18px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:10px;cursor:pointer;font-weight:400}.aeb-base-button.aeb-default-button{background-color:var(--blue);color:var(--white);border:none}.aeb-base-button.aeb-default-button:hover{background-color:var(--blue-hover)}.aeb-base-button.aeb-default-button:active{background-color:var(--blue-active)}.aeb-base-button.aeb-white-button{background-color:var(--white);color:var(--blue);border:none}.aeb-base-button.aeb-white-button:hover{background-color:var(--white-hover)}.aeb-base-button.aeb-white-button:active{background-color:var(--white-active)}.aeb-base-button.aeb-light-button{background-color:var(--lightblue);color:var(--blue);border:none}.aeb-base-button.aeb-light-button:hover{background-color:var(--lightblue-hover)}.aeb-base-button.aeb-light-button:active{background-color:var(--lightblue-active)}.aeb-base-button.aeb-red-button{background-color:var(--lightred);color:var(--red);border:none}.aeb-base-button.aeb-red-button:hover{background-color:var(--lightred-hover)}.aeb-base-button.aeb-red-button:active{background-color:var(--lightred-active)}.aeb-base-button.aeb-link-button{background-color:transparent;color:var(--blue);border:none;padding:0;height:auto;line-height:normal;border-radius:2px}.aeb-base-button.aeb-link-button:hover{background-color:transparent;text-decoration:underline}.aeb-base-button.aeb-link-button:active{background-color:transparent;text-decoration:none}.aeb-base-button.aeb-stroke-button{background-color:transparent;color:var(--blue);border:2px solid var(--blue)}.aeb-base-button.aeb-stroke-button:hover{border:2px solid var(--others-turquoise)}.aeb-base-button.aeb-stroke-button:active{border:2px solid var(--others-turquoise-active)}.aeb-base-button .icon{padding-right:14px;display:flex;align-items:center}.aeb-base-button .icon>img{height:18px;width:auto}.aeb-base-button:disabled{opacity:.5;pointer-events:none}.aeb-base-button:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}"]
|
|
29
|
-
},] }
|
|
30
|
-
];
|
|
31
|
-
ButtonComponent.ctorParameters = () => [
|
|
32
|
-
{ type: ElementRef }
|
|
33
|
-
];
|
|
34
|
-
ButtonComponent.propDecorators = {
|
|
35
|
-
type: [{ type: Input }],
|
|
36
|
-
icon: [{ type: Input }],
|
|
37
|
-
variant: [{ type: Input }]
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
class ButtonModule {
|
|
41
|
-
}
|
|
42
|
-
ButtonModule.decorators = [
|
|
43
|
-
{ type: NgModule, args: [{
|
|
44
|
-
declarations: [ButtonComponent],
|
|
45
|
-
imports: [CommonModule],
|
|
46
|
-
exports: [ButtonComponent]
|
|
47
|
-
},] }
|
|
48
|
-
];
|
|
49
|
-
|
|
50
|
-
class CheckboxComponent {
|
|
51
|
-
constructor(_changeDetectorRef) {
|
|
52
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
53
|
-
this.change = new EventEmitter();
|
|
54
|
-
this._controlValueAccessorChangeFn = () => { };
|
|
55
|
-
this._onTouched = () => { };
|
|
56
|
-
this.name = null;
|
|
57
|
-
this._checked = false;
|
|
58
|
-
this._disabled = false;
|
|
59
|
-
}
|
|
60
|
-
_emitChangeEvent(event) {
|
|
61
|
-
this._controlValueAccessorChangeFn(this.checked);
|
|
62
|
-
this.change.emit(event);
|
|
63
|
-
}
|
|
64
|
-
ngOnInit() { }
|
|
65
|
-
get checked() {
|
|
66
|
-
return this._checked;
|
|
67
|
-
}
|
|
68
|
-
set checked(value) {
|
|
69
|
-
if (value !== this.checked) {
|
|
70
|
-
this._checked = value;
|
|
71
|
-
this._changeDetectorRef.markForCheck();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
get disabled() {
|
|
75
|
-
return this._disabled;
|
|
76
|
-
}
|
|
77
|
-
set disabled(value) {
|
|
78
|
-
const newValue = Boolean(value);
|
|
79
|
-
if (newValue !== this.disabled) {
|
|
80
|
-
this._disabled = newValue;
|
|
81
|
-
this._changeDetectorRef.markForCheck();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
get required() {
|
|
85
|
-
return this._required;
|
|
86
|
-
}
|
|
87
|
-
set required(value) {
|
|
88
|
-
this._required = Boolean(value);
|
|
89
|
-
}
|
|
90
|
-
writeValue(value) {
|
|
91
|
-
this.checked = !!value;
|
|
92
|
-
}
|
|
93
|
-
registerOnChange(fn) {
|
|
94
|
-
this._controlValueAccessorChangeFn = fn;
|
|
95
|
-
}
|
|
96
|
-
registerOnTouched(fn) {
|
|
97
|
-
this._onTouched = fn;
|
|
98
|
-
}
|
|
99
|
-
handleClick(event) {
|
|
100
|
-
event.stopPropagation();
|
|
101
|
-
this.checked = !this.checked;
|
|
102
|
-
this._onTouched();
|
|
103
|
-
this._emitChangeEvent(event);
|
|
104
|
-
}
|
|
105
|
-
_onInteractionEvent(event) {
|
|
106
|
-
event.stopPropagation();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
CheckboxComponent.decorators = [
|
|
110
|
-
{ type: Component, args: [{
|
|
111
|
-
selector: 'aeb-checkbox',
|
|
112
|
-
template: "<label [attr.for]=\"id\" class=\"aeb-checkbox-layout\">\n <div class=\"aeb-checkbox-container\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"checked\"\n [value]=\"value\"\n [disabled]=\"disabled\"\n (change)=\"_onInteractionEvent($event)\"\n (click)=\"handleClick($event)\"\n hidden\n />\n <div class=\"aeb-checkbox-indicator\">\n <svg\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M9 16L4 11.1923L5.4 9.84615L9 13.3077L16.6 6L18 7.34615L9 16V16Z\"\n fill=\"#EEEEEE\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox-label\">\n <ng-content></ng-content>\n </div>\n </div>\n</label>\n",
|
|
113
|
-
host: {
|
|
114
|
-
class: 'aeb-checkbox',
|
|
115
|
-
'[class.aeb-checkbox-checked]': 'checked',
|
|
116
|
-
'[class.aeb-checkbox-disabled]': 'disabled',
|
|
117
|
-
'[class.aeb-checkbox-error]': 'hasError',
|
|
118
|
-
'[class.aeb-checkbox-checked-disabled]': 'checked && disabled'
|
|
119
|
-
},
|
|
120
|
-
encapsulation: ViewEncapsulation.None,
|
|
121
|
-
providers: [
|
|
122
|
-
{
|
|
123
|
-
provide: NG_VALUE_ACCESSOR,
|
|
124
|
-
useExisting: forwardRef(() => CheckboxComponent),
|
|
125
|
-
multi: true
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
styles: [".aeb-checkbox-container{display:inline-flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}.aeb-checkbox-layout{display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--darkblue)}.aeb-checkbox-indicator{border:2px solid var(--gray-primary);box-sizing:border-box;border-radius:4px;width:22px;height:22px;display:flex;justify-content:center;align-items:center;background-color:var(--white)}.aeb-checkbox-indicator>svg{opacity:0}@media (hover:hover){.aeb-checkbox-indicator:hover{border:2px solid var(--blue-turquoise)}.aeb-checkbox-indicator:active{background-image:var(--active-gradient);padding:2px;border:none;position:relative}.aeb-checkbox-indicator:active:before{position:absolute;top:2px;left:2px;content:\"\";width:18px;height:18px;background-color:#fff;border-radius:2px;z-index:0}}.aeb-checkbox-label{font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:var(--darkblue);margin-left:12px;margin-top:1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.aeb-checkbox-checked .aeb-checkbox-indicator{background-color:var(--blue);border-color:var(--blue)}.aeb-checkbox-checked .aeb-checkbox-indicator>svg{opacity:1}@media (hover:hover){.aeb-checkbox-checked .aeb-checkbox-indicator:hover{background-color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-checkbox-checked .aeb-checkbox-indicator:active{background-image:var(--active-gradient)}.aeb-checkbox-checked .aeb-checkbox-indicator:active:hover{background-image:var(--active-gradient);border:none}.aeb-checkbox-checked .aeb-checkbox-indicator:active:before{position:absolute;top:2px;left:2px;content:\"\";width:18px;height:18px;background-color:transparent;border-radius:2px;z-index:0}}.aeb-checkbox-disabled .aeb-checkbox-indicator{border:2px solid var(--gray-primary)}@media (hover:hover){.aeb-checkbox-disabled .aeb-checkbox-indicator:hover{border:2px solid var(--gray-primary)}.aeb-checkbox-disabled .aeb-checkbox-indicator:active{background:#fff!important;border:2px solid var(--gray-primary)!important}.aeb-checkbox-disabled .aeb-checkbox-indicator:active:before{position:absolute;top:2px;left:2px;content:\"\";width:18px;height:18px;background-color:transparent;border-radius:2px;z-index:0}}.aeb-checkbox-disabled .aeb-checkbox-label{opacity:.6}.aeb-checkbox-checked-disabled .aeb-checkbox-indicator{background:var(--gray-primary)}@media (hover:hover){.aeb-checkbox-checked-disabled .aeb-checkbox-indicator:hover{background:var(--gray-primary)}.aeb-checkbox-checked-disabled .aeb-checkbox-indicator:active{background:var(--gray-primary)!important;border:none!important}.aeb-checkbox-checked-disabled .aeb-checkbox-indicator:active:before{position:absolute;top:2px;left:2px;content:\"\";width:18px;height:18px;background-color:transparent;border-radius:2px;z-index:0}}.aeb-checkbox-error .aeb-checkbox-indicator{color:var(--red)!important;border-color:var(--red)!important}.aeb-checkbox-error .aeb-checkbox-label{color:var(--red)!important}"]
|
|
129
|
-
},] }
|
|
130
|
-
];
|
|
131
|
-
CheckboxComponent.ctorParameters = () => [
|
|
132
|
-
{ type: ChangeDetectorRef }
|
|
133
|
-
];
|
|
134
|
-
CheckboxComponent.propDecorators = {
|
|
135
|
-
change: [{ type: Output }],
|
|
136
|
-
id: [{ type: Input }],
|
|
137
|
-
hasError: [{ type: Input }],
|
|
138
|
-
name: [{ type: Input }],
|
|
139
|
-
value: [{ type: Input }],
|
|
140
|
-
checked: [{ type: Input }],
|
|
141
|
-
disabled: [{ type: Input }],
|
|
142
|
-
required: [{ type: Input }]
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
class CheckboxModule {
|
|
146
|
-
}
|
|
147
|
-
CheckboxModule.decorators = [
|
|
148
|
-
{ type: NgModule, args: [{
|
|
149
|
-
declarations: [CheckboxComponent],
|
|
150
|
-
imports: [CommonModule],
|
|
151
|
-
exports: [CheckboxComponent]
|
|
152
|
-
},] }
|
|
153
|
-
];
|
|
154
|
-
|
|
155
|
-
class SliderComponent {
|
|
156
|
-
constructor(renderer) {
|
|
157
|
-
this.renderer = renderer;
|
|
158
|
-
/**
|
|
159
|
-
* separator for currency value, 'space' by default
|
|
160
|
-
*/
|
|
161
|
-
this.valueSeparator = ' ';
|
|
162
|
-
this.isPressed = false;
|
|
163
|
-
this.handleStartDragging = (event) => {
|
|
164
|
-
event.preventDefault();
|
|
165
|
-
if (event.clientX) {
|
|
166
|
-
this.handleChangeValue(event.clientX);
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
this.handleStartSwiping = (event) => {
|
|
170
|
-
event.preventDefault();
|
|
171
|
-
if (event.touches && event.touches.length) {
|
|
172
|
-
const finger = event.touches[0];
|
|
173
|
-
this.handleChangeValue(finger.clientX);
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
this.handleEndDragging = (event) => {
|
|
177
|
-
event.preventDefault();
|
|
178
|
-
this.isPressed = false;
|
|
179
|
-
document.removeEventListener('mousemove', this.handleStartDragging);
|
|
180
|
-
document.removeEventListener('mouseup', this.handleEndDragging);
|
|
181
|
-
};
|
|
182
|
-
this.handleEndSwiping = (event) => {
|
|
183
|
-
event.preventDefault();
|
|
184
|
-
this.isPressed = false;
|
|
185
|
-
document.removeEventListener('touchmove', this.handleStartSwiping);
|
|
186
|
-
document.removeEventListener('touchend', this.handleEndSwiping);
|
|
187
|
-
document.removeEventListener('touchcancel', this.handleEndSwiping);
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
ngOnInit() {
|
|
191
|
-
if (this.intialValue) {
|
|
192
|
-
this.value = this.intialValue;
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
this.value = this.calculateAverage([this.min, this.max]);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
writeValue(value) {
|
|
199
|
-
if (value) {
|
|
200
|
-
this.value = value;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
registerOnChange(fn) {
|
|
204
|
-
this.onChange = fn;
|
|
205
|
-
}
|
|
206
|
-
registerOnTouched() { }
|
|
207
|
-
get position() {
|
|
208
|
-
const position = ((this.value - this.min) / (this.max - this.min)) * 100;
|
|
209
|
-
if (position < 0) {
|
|
210
|
-
return 0;
|
|
211
|
-
}
|
|
212
|
-
if (position > 100) {
|
|
213
|
-
return 100;
|
|
214
|
-
}
|
|
215
|
-
return position;
|
|
216
|
-
}
|
|
217
|
-
ngAfterViewInit() {
|
|
218
|
-
this.renderer.listen(this.slider.nativeElement, 'touchstart', (event) => {
|
|
219
|
-
event.preventDefault();
|
|
220
|
-
this.handleStartSwiping(event);
|
|
221
|
-
document.addEventListener('touchmove', this.handleStartSwiping, { passive: false });
|
|
222
|
-
document.addEventListener('touchend', this.handleEndSwiping);
|
|
223
|
-
document.addEventListener('touchcancel', this.handleEndSwiping);
|
|
224
|
-
});
|
|
225
|
-
this.renderer.listen(this.slider.nativeElement, 'mousedown', (event) => {
|
|
226
|
-
event.preventDefault();
|
|
227
|
-
this.handleStartDragging(event);
|
|
228
|
-
document.addEventListener('mousemove', this.handleStartDragging, false);
|
|
229
|
-
document.addEventListener('mouseup', this.handleEndDragging, false);
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
calculateAverage(values) {
|
|
233
|
-
return values.reduce((sum, value) => sum + value, 0) / values.length;
|
|
234
|
-
}
|
|
235
|
-
handleChangeValue(positionX) {
|
|
236
|
-
this.isPressed = true;
|
|
237
|
-
const offsetSlider = this.slider.nativeElement.getBoundingClientRect().left;
|
|
238
|
-
const widthSlider = this.slider.nativeElement.getBoundingClientRect().width;
|
|
239
|
-
let left = positionX - offsetSlider;
|
|
240
|
-
if (left < 0) {
|
|
241
|
-
left = 0;
|
|
242
|
-
}
|
|
243
|
-
if (left > widthSlider) {
|
|
244
|
-
left = widthSlider;
|
|
245
|
-
}
|
|
246
|
-
const deltaX = (left / widthSlider) * (this.max - this.min);
|
|
247
|
-
this.value = Math.round(deltaX / this.step) * this.step + this.min;
|
|
248
|
-
if (typeof this.onChange === 'function') {
|
|
249
|
-
this.onChange(this.value);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
SliderComponent.decorators = [
|
|
254
|
-
{ type: Component, args: [{
|
|
255
|
-
selector: 'aeb-slider',
|
|
256
|
-
template: "<div class=\"slider\">\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">{{ value | number: \"1.0-0\" | replace: ',' : valueSeparator }} {{ prefix }}</div>\n</div>\n<div class=\"slider-line-wrapper\" #slider>\n <div class=\"slider-line\">\n <div\n class=\"slider-line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"slider-limits\">\n <div>{{ min | number: \"1.0-0\" | replace: ',' : valueSeparator }} {{ prefix }}</div>\n <div>{{ max | number: \"1.0-0\" | replace: ',' : valueSeparator }} {{ prefix }}</div>\n</div>\n",
|
|
257
|
-
providers: [
|
|
258
|
-
{
|
|
259
|
-
provide: NG_VALUE_ACCESSOR,
|
|
260
|
-
useExisting: forwardRef(() => SliderComponent),
|
|
261
|
-
multi: true
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
styles: [".slider{display:flex;justify-content:space-between;align-content:center;margin-bottom:20px;color:var(--darkblue)}.label{font-size:16px;line-height:20px;color:var(--gray)}.value{font-weight:700;font-size:20px;color:var(--darkblue)}.slider-line-wrapper{height:20px;width:100%;display:flex;align-items:center}.slider-line{width:100%;height:4px;border-radius:2px;background-color:var(--lightgray);position:relative}.slider-line-position{background-color:var(--blue);height:100%;width:100%;border-radius:2px;position:absolute;top:0;left:0}.slider-line-position.pressed:after,.slider-line-position:hover,.slider-line-position:hover:after{background-color:var(--blue-turquoise)}.slider-line-position.pressed:after{width:26px;height:26px;border-radius:15px;top:-11px;right:-13px}.slider-line-position.pressed{background-color:var(--blue-turquoise)}.slider-line-position:after{cursor:pointer;content:\"\";width:20px;height:20px;border-radius:10px;background-color:var(--blue);position:absolute;right:-10px;top:-8px}.slider-limits{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;line-height:14px;color:var(--gray)}"]
|
|
265
|
-
},] }
|
|
266
|
-
];
|
|
267
|
-
SliderComponent.ctorParameters = () => [
|
|
268
|
-
{ type: Renderer2 }
|
|
269
|
-
];
|
|
270
|
-
SliderComponent.propDecorators = {
|
|
271
|
-
slider: [{ type: ViewChild, args: ['slider',] }],
|
|
272
|
-
label: [{ type: Input }],
|
|
273
|
-
prefix: [{ type: Input }],
|
|
274
|
-
intialValue: [{ type: Input }],
|
|
275
|
-
min: [{ type: Input }],
|
|
276
|
-
max: [{ type: Input }],
|
|
277
|
-
step: [{ type: Input }],
|
|
278
|
-
value: [{ type: Input }],
|
|
279
|
-
valueSeparator: [{ type: Input }]
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
class ReplacePipe {
|
|
283
|
-
transform(value, strToReplace, replacementStr) {
|
|
284
|
-
if (!value || !strToReplace || !replacementStr) {
|
|
285
|
-
return value;
|
|
286
|
-
}
|
|
287
|
-
return value.replace(new RegExp(strToReplace, 'g'), replacementStr);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
ReplacePipe.decorators = [
|
|
291
|
-
{ type: Pipe, args: [{
|
|
292
|
-
name: 'replace'
|
|
293
|
-
},] }
|
|
294
|
-
];
|
|
295
|
-
|
|
296
|
-
class SliderModule {
|
|
297
|
-
}
|
|
298
|
-
SliderModule.decorators = [
|
|
299
|
-
{ type: NgModule, args: [{
|
|
300
|
-
declarations: [
|
|
301
|
-
SliderComponent,
|
|
302
|
-
ReplacePipe,
|
|
303
|
-
],
|
|
304
|
-
imports: [CommonModule],
|
|
305
|
-
exports: [SliderComponent],
|
|
306
|
-
},] }
|
|
307
|
-
];
|
|
308
|
-
|
|
309
|
-
class WizardStepComponent {
|
|
310
|
-
constructor() {
|
|
311
|
-
this.isValid = false;
|
|
312
|
-
this.isActive = false;
|
|
313
|
-
this.isCompleted = false;
|
|
314
|
-
this.showPrev = false;
|
|
315
|
-
this.showNext = false;
|
|
316
|
-
this.onNext = new EventEmitter();
|
|
317
|
-
this.onPrev = new EventEmitter();
|
|
318
|
-
this.onComplete = new EventEmitter();
|
|
319
|
-
}
|
|
320
|
-
ngOnInit() { }
|
|
321
|
-
}
|
|
322
|
-
WizardStepComponent.decorators = [
|
|
323
|
-
{ type: Component, args: [{
|
|
324
|
-
selector: 'aeb-wizard-step',
|
|
325
|
-
template: "<div *ngIf=\"isActive\">\n <ng-content></ng-content>\n</div>\n"
|
|
326
|
-
},] }
|
|
327
|
-
];
|
|
328
|
-
WizardStepComponent.ctorParameters = () => [];
|
|
329
|
-
WizardStepComponent.propDecorators = {
|
|
330
|
-
title: [{ type: Input }],
|
|
331
|
-
isValid: [{ type: Input }],
|
|
332
|
-
isActive: [{ type: Input }],
|
|
333
|
-
isCompleted: [{ type: Input }],
|
|
334
|
-
showPrev: [{ type: Input }],
|
|
335
|
-
showNext: [{ type: Input }],
|
|
336
|
-
onNext: [{ type: Output }],
|
|
337
|
-
onPrev: [{ type: Output }],
|
|
338
|
-
onComplete: [{ type: Output }]
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
class WizardComponent {
|
|
342
|
-
constructor() {
|
|
343
|
-
this.onStepChanged = new EventEmitter();
|
|
344
|
-
this.isDisabled = false;
|
|
345
|
-
this.steps = [];
|
|
346
|
-
}
|
|
347
|
-
get activeStep() {
|
|
348
|
-
return this.steps.find((step) => step.isActive);
|
|
349
|
-
}
|
|
350
|
-
set activeStep(step) {
|
|
351
|
-
if (step !== this.activeStep) {
|
|
352
|
-
this.activeStep.isActive = false;
|
|
353
|
-
step.isActive = true;
|
|
354
|
-
this.onStepChanged.emit(step);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
get activeStepIndex() {
|
|
358
|
-
return this.steps.indexOf(this.activeStep);
|
|
359
|
-
}
|
|
360
|
-
get completedSteps() {
|
|
361
|
-
return this.steps.filter((step) => step.isCompleted);
|
|
362
|
-
}
|
|
363
|
-
get hasNextStep() {
|
|
364
|
-
return this.activeStepIndex < this.steps.length - 1;
|
|
365
|
-
}
|
|
366
|
-
get hasPrevStep() {
|
|
367
|
-
return this.activeStepIndex > 0;
|
|
368
|
-
}
|
|
369
|
-
goToNextStep() {
|
|
370
|
-
if (!this.hasNextStep) {
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
const nextStep = this.steps[this.activeStepIndex + 1];
|
|
374
|
-
this.activeStep.onNext.emit();
|
|
375
|
-
this.activeStep = nextStep;
|
|
376
|
-
}
|
|
377
|
-
goToPrevStep() {
|
|
378
|
-
if (!this.hasPrevStep) {
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
if (!this.hasNextStep && this.activeStep.isCompleted) {
|
|
382
|
-
this.activeStep.isCompleted = false;
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
const nextStep = this.steps[this.activeStepIndex - 1];
|
|
386
|
-
nextStep.isCompleted = false;
|
|
387
|
-
this.activeStep.onPrev.emit();
|
|
388
|
-
this.activeStep = nextStep;
|
|
389
|
-
}
|
|
390
|
-
goToFirstStep() {
|
|
391
|
-
if (!this.hasPrevStep) {
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
const nextStep = this.steps[0];
|
|
395
|
-
this.activeStep = nextStep;
|
|
396
|
-
}
|
|
397
|
-
onCompleteStep() {
|
|
398
|
-
this.activeStep.onComplete.emit();
|
|
399
|
-
this.activeStep.isCompleted = true;
|
|
400
|
-
this.goToNextStep();
|
|
401
|
-
}
|
|
402
|
-
ngAfterContentInit() {
|
|
403
|
-
this.steps = [...this.wizardSteps];
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
WizardComponent.decorators = [
|
|
407
|
-
{ type: Component, args: [{
|
|
408
|
-
selector: 'aeb-wizard',
|
|
409
|
-
template: "<div class=\"wizard\">\n <div class=\"wizard-steps\">\n <div\n *ngFor=\"let step of steps; let i = index\"\n class=\"wizard-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"wizard-step-index\">\n <div *ngIf=\"step.isCompleted; else showIndex\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n <ng-template #showIndex>\n <span>{{ i + 1 }}</span>\n </ng-template>\n </div>\n <div\n class=\"wizard-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n <div class=\"wizard-steps-line\">\n <div\n *ngIf=\"isDisabled === false\"\n class=\"wizard-steps-line-active\"\n [ngStyle]=\"{\n width: (100 / (steps.length - 1)) * completedSteps.length + '%'\n }\"\n ></div>\n </div>\n </div>\n <div class=\"wizard-steps-content\">\n <ng-content></ng-content>\n </div>\n</div>\n",
|
|
410
|
-
styles: [".wizard{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wizard-steps{display:flex;position:relative}.wizard-steps-line{position:absolute;left:0;right:0;margin:0 auto;top:27px;width:70%;height:6px;background-color:var(--lightgray);overflow:hidden}.wizard-steps-line-active{height:100%;width:100%;position:absolute;top:0;left:0;background-color:var(--blue);transition:width,.4s}.wizard-step{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:relative;z-index:1}.wizard-step-index{justify-content:center;flex-shrink:0;flex-grow:0;width:60px;height:60px;border-radius:30px;background-color:var(--lightgray);font-weight:500;font-size:32px;color:var(--white-primary);margin-bottom:12px}.wizard-step-index,.wizard-step-index>*{display:flex;align-items:center}.wizard-step-title{font-style:normal;font-weight:400;font-size:16px;line-height:20px;text-align:center;color:var(--gray)}.wizard-step-title.disabled{color:var(--lightgray)}.wizard-step.active .wizard-step-index{background-color:var(--blue)}.wizard-step.active .wizard-step-title{color:var(--blue)}.wizard-step.completed .wizard-step-index{background-color:var(--blue)}.wizard-step.disabled .wizard-step-index{background-color:var(--lightgray)}.wizard-step.disabled .wizard-step-title{color:var(--lightgray)}@media (max-width:767px){.wizard-step-title{font-size:14px}.wizard-steps-line{display:none}.wizard-step{display:none;flex-direction:row;justify-content:flex-start;align-items:center}.wizard-step-index{margin-bottom:0;width:50px;height:50px;font-size:30px}.wizard-step-title{font-size:18px;text-align:left;margin-left:14px}.wizard-step.active{display:flex;width:100%!important}}"]
|
|
411
|
-
},] }
|
|
412
|
-
];
|
|
413
|
-
WizardComponent.propDecorators = {
|
|
414
|
-
wizardSteps: [{ type: ContentChildren, args: [WizardStepComponent,] }],
|
|
415
|
-
onStepChanged: [{ type: Output }],
|
|
416
|
-
isDisabled: [{ type: Input }]
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
class WizardModule {
|
|
420
|
-
}
|
|
421
|
-
WizardModule.decorators = [
|
|
422
|
-
{ type: NgModule, args: [{
|
|
423
|
-
declarations: [WizardComponent, WizardStepComponent],
|
|
424
|
-
imports: [CommonModule],
|
|
425
|
-
exports: [WizardComponent, WizardStepComponent],
|
|
426
|
-
},] }
|
|
427
|
-
];
|
|
428
|
-
|
|
429
|
-
class MatInputBase {
|
|
430
|
-
constructor(_parentForm, _parentFormGroup, ngControl) {
|
|
431
|
-
this._parentForm = _parentForm;
|
|
432
|
-
this._parentFormGroup = _parentFormGroup;
|
|
433
|
-
this.ngControl = ngControl;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
class InputDirective extends MatInputBase {
|
|
437
|
-
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
438
|
-
super(_parentForm, _parentFormGroup, ngControl);
|
|
439
|
-
this.ngControl = ngControl;
|
|
440
|
-
this.error = false;
|
|
441
|
-
this._value = '';
|
|
442
|
-
}
|
|
443
|
-
set value(value) {
|
|
444
|
-
this.isHasValue = Boolean(value);
|
|
445
|
-
this._value = value;
|
|
446
|
-
}
|
|
447
|
-
;
|
|
448
|
-
get value() {
|
|
449
|
-
return this._value;
|
|
450
|
-
}
|
|
451
|
-
change(value) {
|
|
452
|
-
this.value = value;
|
|
453
|
-
}
|
|
454
|
-
focus() {
|
|
455
|
-
this.isFocused = true;
|
|
456
|
-
}
|
|
457
|
-
blur() {
|
|
458
|
-
this.isFocused = false;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
InputDirective.decorators = [
|
|
462
|
-
{ type: Directive, args: [{
|
|
463
|
-
selector: 'input[aebInput]',
|
|
464
|
-
host: {
|
|
465
|
-
class: 'aeb-input',
|
|
466
|
-
},
|
|
467
|
-
},] }
|
|
468
|
-
];
|
|
469
|
-
InputDirective.ctorParameters = () => [
|
|
470
|
-
{ type: NgControl, decorators: [{ type: Optional }, { type: Self }] },
|
|
471
|
-
{ type: NgForm, decorators: [{ type: Optional }] },
|
|
472
|
-
{ type: FormGroupDirective, decorators: [{ type: Optional }] }
|
|
473
|
-
];
|
|
474
|
-
InputDirective.propDecorators = {
|
|
475
|
-
error: [{ type: HostBinding, args: ['attr.error',] }],
|
|
476
|
-
value: [{ type: Input }],
|
|
477
|
-
change: [{ type: HostListener, args: ['input', ['$event.target.value'],] }],
|
|
478
|
-
focus: [{ type: HostListener, args: ['focus',] }],
|
|
479
|
-
blur: [{ type: HostListener, args: ['blur',] }]
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
class MatInputBase$1 {
|
|
483
|
-
constructor(_parentForm, _parentFormGroup, ngControl) {
|
|
484
|
-
this._parentForm = _parentForm;
|
|
485
|
-
this._parentFormGroup = _parentFormGroup;
|
|
486
|
-
this.ngControl = ngControl;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
class TextareaDirective extends MatInputBase$1 {
|
|
490
|
-
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
491
|
-
super(_parentForm, _parentFormGroup, ngControl);
|
|
492
|
-
this.ngControl = ngControl;
|
|
493
|
-
this.error = false;
|
|
494
|
-
this._value = '';
|
|
495
|
-
}
|
|
496
|
-
set value(value) {
|
|
497
|
-
this.isHasValue = Boolean(value);
|
|
498
|
-
this._value = value;
|
|
499
|
-
}
|
|
500
|
-
;
|
|
501
|
-
get value() {
|
|
502
|
-
return this._value;
|
|
503
|
-
}
|
|
504
|
-
change(value) {
|
|
505
|
-
this.value = value;
|
|
506
|
-
}
|
|
507
|
-
focus() {
|
|
508
|
-
this.isFocused = true;
|
|
509
|
-
}
|
|
510
|
-
blur() {
|
|
511
|
-
this.isFocused = false;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
TextareaDirective.decorators = [
|
|
515
|
-
{ type: Directive, args: [{
|
|
516
|
-
selector: 'textarea[aebTextarea]',
|
|
517
|
-
host: {
|
|
518
|
-
class: 'aeb-input',
|
|
519
|
-
},
|
|
520
|
-
},] }
|
|
521
|
-
];
|
|
522
|
-
TextareaDirective.ctorParameters = () => [
|
|
523
|
-
{ type: NgControl, decorators: [{ type: Optional }, { type: Self }] },
|
|
524
|
-
{ type: NgForm, decorators: [{ type: Optional }] },
|
|
525
|
-
{ type: FormGroupDirective, decorators: [{ type: Optional }] }
|
|
526
|
-
];
|
|
527
|
-
TextareaDirective.propDecorators = {
|
|
528
|
-
error: [{ type: HostBinding, args: ['attr.error',] }],
|
|
529
|
-
value: [{ type: Input }],
|
|
530
|
-
change: [{ type: HostListener, args: ['input', ['$event.target.value'],] }],
|
|
531
|
-
focus: [{ type: HostListener, args: ['focus',] }],
|
|
532
|
-
blur: [{ type: HostListener, args: ['blur',] }]
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
class FormFieldComponent {
|
|
536
|
-
constructor() {
|
|
537
|
-
this.center = false;
|
|
538
|
-
}
|
|
539
|
-
get focused() {
|
|
540
|
-
if (this.input)
|
|
541
|
-
return this.input.isFocused;
|
|
542
|
-
else
|
|
543
|
-
return this.textarea.isFocused;
|
|
544
|
-
}
|
|
545
|
-
get svoi() {
|
|
546
|
-
return this.cssMod === 'svoi';
|
|
547
|
-
}
|
|
548
|
-
get hasValue() {
|
|
549
|
-
if (this.input) {
|
|
550
|
-
if (this.input.ngControl) {
|
|
551
|
-
return Boolean(this.input.ngControl.value);
|
|
552
|
-
}
|
|
553
|
-
return this.input.isHasValue;
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
if (this.textarea.ngControl) {
|
|
557
|
-
return Boolean(this.textarea.ngControl.value);
|
|
558
|
-
}
|
|
559
|
-
return this.textarea.isHasValue;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
get error() {
|
|
563
|
-
if (this.onError) {
|
|
564
|
-
return true;
|
|
565
|
-
}
|
|
566
|
-
if (this.input) {
|
|
567
|
-
if (this.input.ngControl) {
|
|
568
|
-
return this.input.ngControl.invalid && this.input.ngControl.touched;
|
|
569
|
-
}
|
|
570
|
-
return this.input.error;
|
|
571
|
-
}
|
|
572
|
-
else {
|
|
573
|
-
if (this.textarea.ngControl) {
|
|
574
|
-
return this.textarea.ngControl.invalid && this.textarea.ngControl.touched;
|
|
575
|
-
}
|
|
576
|
-
return this.textarea.error;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
ngOnInit() { }
|
|
580
|
-
}
|
|
581
|
-
FormFieldComponent.decorators = [
|
|
582
|
-
{ type: Component, args: [{
|
|
583
|
-
selector: 'aeb-form-field',
|
|
584
|
-
template: "<ng-content></ng-content>\n\n<div class=\"aeb-label\">\n <ng-content select=\"aeb-label\"></ng-content>\n</div>\n\n<div class=\"aeb-icon\">\n <ng-content select=\"aeb-icon\"></ng-content>\n</div>\n",
|
|
585
|
-
encapsulation: ViewEncapsulation.None,
|
|
586
|
-
host: {
|
|
587
|
-
class: 'aeb-form-field',
|
|
588
|
-
},
|
|
589
|
-
styles: [":root{--input-height:56px}.error-message{color:#ff3055;margin-left:8px;margin-top:4px;font-size:12px}.aeb-form-field{position:relative;display:flex}.aeb-form-field,.aeb-form-field textarea{color:var(--darkblue)}.aeb-form-field textarea.aeb-input{padding:16px;font-family:Roboto}.aeb-form-field .aeb-icon{position:absolute;right:18px;top:20px;width:16px;height:16px}.aeb-form-field .aeb-icon img{width:16px;height:16px}.aeb-form-field .aeb-input{border:2px solid var(--gray-primary);box-sizing:border-box;border-radius:10px;height:var(--input-height);width:100%;padding:0 16px;font-size:18px;color:var(--darkblue)}.aeb-form-field .aeb-input:focus{outline:none}.aeb-form-field .aeb-input:disabled{background-color:var(--white);border:2px solid var(--gray-primary)}.aeb-form-field .aeb-input,.aeb-form-field .aeb-input::-webkit-search-cancel-button,.aeb-form-field .aeb-input::-webkit-search-decoration,.aeb-form-field .aeb-input::-webkit-search-results-button,.aeb-form-field .aeb-input::-webkit-search-results-decoration{-webkit-appearance:none}.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-inner-spin-button,.aeb-form-field .aeb-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{-moz-appearance:textfield}.aeb-form-field .aeb-input::-webkit-datetime-edit,.aeb-form-field .aeb-input::-webkit-input-placeholder{font-family:Roboto}.aeb-form-field .aeb-label{position:absolute;left:10px;top:28px;transform:translateY(-50%);font-size:18px;background-color:#fff;padding:6px;border-radius:4px;pointer-events:none;color:var(--gray-primary);transition:all .2s cubic-bezier(.4,0,.2,1)}.aeb-form-field.focused .aeb-input{border-color:#2f88f0}.aeb-form-field.focused .aeb-label{color:#2f88f0}.aeb-form-field.focused .aeb-label,.aeb-form-field.has-value .aeb-label{transform:translateY(calc(var(--input-height) / -2 + -50%));font-size:12px}.aeb-form-field.error .aeb-input{border-color:#ff3055}.aeb-form-field.error .aeb-label{color:#ff3055}.aeb-form-field.center .aeb-input{text-align:center}.aeb-form-field.center .aeb-label{left:50%;transform:translate(-50%,-50%);white-space:nowrap}.aeb-form-field.center+.error-message{margin-left:0}.aeb-form-field.center.focused .aeb-label,.aeb-form-field.center.has-value .aeb-label{transform:translate(-50%,calc(var(--input-height) / -2 + -50%))}.aeb-form-field--svoi.focused .aeb-label{transform:translate(3px,calc((var(--input-height) / 2) - 52px));background-color:transparent;color:#94a8be}.aeb-form-field--svoi .aeb-input{font-size:14px!important;padding:25px 18px 9px!important}.aeb-form-field--svoi.has-value .aeb-label{transform:translate(3px,calc((var(--input-height) / 2) - 52px))}"]
|
|
590
|
-
},] }
|
|
591
|
-
];
|
|
592
|
-
FormFieldComponent.ctorParameters = () => [];
|
|
593
|
-
FormFieldComponent.propDecorators = {
|
|
594
|
-
input: [{ type: ContentChild, args: [InputDirective,] }],
|
|
595
|
-
textarea: [{ type: ContentChild, args: [TextareaDirective,] }],
|
|
596
|
-
center: [{ type: HostBinding, args: ['class.center',] }, { type: Input }],
|
|
597
|
-
onError: [{ type: Input }],
|
|
598
|
-
cssMod: [{ type: Input, args: ['cssMod',] }],
|
|
599
|
-
focused: [{ type: HostBinding, args: ['class.focused',] }],
|
|
600
|
-
svoi: [{ type: HostBinding, args: ['class.aeb-form-field--svoi',] }],
|
|
601
|
-
hasValue: [{ type: HostBinding, args: ['class.has-value',] }],
|
|
602
|
-
error: [{ type: HostBinding, args: ['class.error',] }]
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
class LabelDirective {
|
|
606
|
-
constructor() { }
|
|
607
|
-
}
|
|
608
|
-
LabelDirective.decorators = [
|
|
609
|
-
{ type: Directive, args: [{
|
|
610
|
-
selector: 'aeb-label',
|
|
611
|
-
},] }
|
|
612
|
-
];
|
|
613
|
-
LabelDirective.ctorParameters = () => [];
|
|
614
|
-
|
|
615
|
-
class IconDirective {
|
|
616
|
-
constructor() { }
|
|
617
|
-
}
|
|
618
|
-
IconDirective.decorators = [
|
|
619
|
-
{ type: Directive, args: [{
|
|
620
|
-
selector: 'aeb-icon',
|
|
621
|
-
},] }
|
|
622
|
-
];
|
|
623
|
-
IconDirective.ctorParameters = () => [];
|
|
624
|
-
|
|
625
|
-
class FormFieldModule {
|
|
626
|
-
}
|
|
627
|
-
FormFieldModule.decorators = [
|
|
628
|
-
{ type: NgModule, args: [{
|
|
629
|
-
declarations: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective],
|
|
630
|
-
imports: [CommonModule],
|
|
631
|
-
exports: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective],
|
|
632
|
-
},] }
|
|
633
|
-
];
|
|
634
|
-
|
|
635
|
-
class DropdownComponent {
|
|
636
|
-
constructor() {
|
|
637
|
-
this.change = new EventEmitter();
|
|
638
|
-
this.isOpen = false;
|
|
639
|
-
}
|
|
640
|
-
get value() {
|
|
641
|
-
return this._value;
|
|
642
|
-
}
|
|
643
|
-
set value(value) {
|
|
644
|
-
if (value === this._value) {
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
this._value = value;
|
|
648
|
-
if (typeof this.onChange === 'function') {
|
|
649
|
-
this.onChange(this._value);
|
|
650
|
-
}
|
|
651
|
-
this.change.emit(value);
|
|
652
|
-
}
|
|
653
|
-
get selectedItem() {
|
|
654
|
-
if (this.items) {
|
|
655
|
-
const item = this.items.find(item => item.id === this._value);
|
|
656
|
-
return item;
|
|
657
|
-
}
|
|
658
|
-
return null;
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* Вызывается при задании исходного (new FormControl('I am default value'))
|
|
662
|
-
* или нового значения сверху control.setValue('I am setted value').
|
|
663
|
-
*/
|
|
664
|
-
writeValue(value) {
|
|
665
|
-
this._value = value;
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Метод определяющий обработчик, который должен быть вызван при изменении значения
|
|
669
|
-
* (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
|
|
670
|
-
*/
|
|
671
|
-
registerOnChange(fn) {
|
|
672
|
-
this.onChange = fn;
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* Определяет callback, который вызывается на blur событие (control помечается флагом touched)
|
|
676
|
-
*/
|
|
677
|
-
registerOnTouched() { }
|
|
678
|
-
setValue(item) {
|
|
679
|
-
this.value = item;
|
|
680
|
-
this.closeDropdown();
|
|
681
|
-
}
|
|
682
|
-
toggleDropdown() {
|
|
683
|
-
this.isOpen = !this.isOpen;
|
|
684
|
-
}
|
|
685
|
-
openDropdown() {
|
|
686
|
-
this.isOpen = true;
|
|
687
|
-
}
|
|
688
|
-
closeDropdown() {
|
|
689
|
-
this.isOpen = false;
|
|
690
|
-
}
|
|
691
|
-
;
|
|
692
|
-
handleClickOutside(event) {
|
|
693
|
-
if (this.isOpen) {
|
|
694
|
-
this.closeDropdown();
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
DropdownComponent.decorators = [
|
|
699
|
-
{ type: Component, args: [{
|
|
700
|
-
selector: 'aeb-dropdown',
|
|
701
|
-
template: "<div class=\"aeb-dropdown-inner\" (clickOutside)=\"handleClickOutside($event)\">\n <div\n class=\"aeb-dropdown-float-label\"\n [ngClass]=\"{ error: hasError }\"\n *ngIf=\"selectedItem\"\n >\n {{ placeholder }}\n </div>\n <div\n class=\"aeb-dropdown-selected-item\"\n [ngClass]=\"{ placeholder: !selectedItem, error: hasError }\"\n (click)=\"openDropdown()\"\n #toggle\n >\n {{ selectedItem ? selectedItem.label : placeholder }}\n </div>\n\n <div class=\"aeb-dropdown-icon\" [ngClass]=\"{ active: isOpen }\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.85718 9.42854L12 14.5714L17.1429 9.42854\"\n stroke=\"#94A8BE\"\n stroke-width=\"1.6\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n\n <div class=\"aeb-dropdown-menu\" [ngClass]=\"{ open: isOpen, error: hasError }\">\n <ul>\n <li\n class=\"aeb-dropdown-item\"\n [ngClass]=\"value && { active: value === item.id }\"\n (click)=\"setValue(item.id)\"\n *ngFor=\"let item of items\"\n >\n {{ item.label }}\n </li>\n </ul>\n </div>\n</div>\n",
|
|
702
|
-
host: {
|
|
703
|
-
class: 'aeb-dropdown'
|
|
704
|
-
},
|
|
705
|
-
encapsulation: ViewEncapsulation.None,
|
|
706
|
-
providers: [
|
|
707
|
-
{
|
|
708
|
-
provide: NG_VALUE_ACCESSOR,
|
|
709
|
-
useExisting: forwardRef(() => DropdownComponent),
|
|
710
|
-
multi: true
|
|
711
|
-
}
|
|
712
|
-
],
|
|
713
|
-
styles: [".aeb-dropdown{width:100%;position:relative;font-size:18px;cursor:pointer;display:flex;color:var(--darkblue)}.aeb-dropdown .aeb-dropdown-inner{width:100%}.aeb-dropdown .aeb-dropdown-icon{position:absolute;top:16px;right:10px;width:24px;height:24px;pointer-events:none;transition:all .2s cubic-bezier(.4,0,.2,1)}.aeb-dropdown .aeb-dropdown-icon.active{transform:rotate(180deg)}.aeb-dropdown .aeb-dropdown-selected-item{width:100%;height:56px;background:var(--white);border:2px solid var(--gray-primary);border-radius:10px;padding-left:16px;padding-right:26px;display:flex;align-items:center;box-sizing:border-box;color:var(--black)}.aeb-dropdown .aeb-dropdown-selected-item.error{color:var(--red);border-color:var(--red);background:var(--white)}.aeb-dropdown .placeholder{color:var(--gray)}.aeb-dropdown .placeholder.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label{position:absolute;font-size:12px;color:var(--gray);top:-5px;left:10px;background:var(--white);padding:0 5px}.aeb-dropdown .aeb-dropdown-float-label.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-menu{position:absolute;width:100%;top:100%;background:var(--white);border:2px solid var(--gray-primary);border-top:none;border-radius:0 0 10px 10px;box-sizing:border-box;margin-top:-10px;z-index:1050;display:none}.aeb-dropdown .aeb-dropdown-menu.error{border-color:var(--red)}.aeb-dropdown .aeb-dropdown-menu ul{list-style:none;padding:0;margin:0}.aeb-dropdown .aeb-dropdown-menu.open{display:block}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item{padding:15px 16px}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item.active{background-color:var(--white-active)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:hover{background-color:var(--white-hover)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:first-child{margin-top:10px}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:last-child{border-radius:0 0 8px 8px}"]
|
|
714
|
-
},] }
|
|
715
|
-
];
|
|
716
|
-
DropdownComponent.propDecorators = {
|
|
717
|
-
change: [{ type: Output }],
|
|
718
|
-
placeholder: [{ type: Input }],
|
|
719
|
-
hasError: [{ type: Input }],
|
|
720
|
-
items: [{ type: Input }],
|
|
721
|
-
value: [{ type: Input }]
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
class ClickOutsideDirective {
|
|
725
|
-
constructor(element, _ngZone) {
|
|
726
|
-
this.element = element;
|
|
727
|
-
this._ngZone = _ngZone;
|
|
728
|
-
this.clickOutside = new EventEmitter();
|
|
729
|
-
this.handleDocumentClick = (event) => {
|
|
730
|
-
const contain = this.element.nativeElement.contains(event.target);
|
|
731
|
-
if (!contain) {
|
|
732
|
-
this._ngZone.run(() => this.clickOutside.emit(event));
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
ngOnInit() {
|
|
737
|
-
this.initListeners();
|
|
738
|
-
}
|
|
739
|
-
ngOnDestroy() {
|
|
740
|
-
this.removeListeners();
|
|
741
|
-
}
|
|
742
|
-
initListeners() {
|
|
743
|
-
this._ngZone.runOutsideAngular(() => {
|
|
744
|
-
document.addEventListener('click', this.handleDocumentClick);
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
removeListeners() {
|
|
748
|
-
this._ngZone.runOutsideAngular(() => {
|
|
749
|
-
document.removeEventListener('click', this.handleDocumentClick);
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
ClickOutsideDirective.decorators = [
|
|
754
|
-
{ type: Injectable },
|
|
755
|
-
{ type: Directive, args: [{
|
|
756
|
-
selector: '[clickOutside]'
|
|
757
|
-
},] }
|
|
758
|
-
];
|
|
759
|
-
ClickOutsideDirective.ctorParameters = () => [
|
|
760
|
-
{ type: ElementRef },
|
|
761
|
-
{ type: NgZone }
|
|
762
|
-
];
|
|
763
|
-
ClickOutsideDirective.propDecorators = {
|
|
764
|
-
clickOutside: [{ type: Output }]
|
|
765
|
-
};
|
|
766
|
-
|
|
767
|
-
class ClickOutsideModule {
|
|
768
|
-
}
|
|
769
|
-
ClickOutsideModule.decorators = [
|
|
770
|
-
{ type: NgModule, args: [{
|
|
771
|
-
declarations: [ClickOutsideDirective],
|
|
772
|
-
imports: [CommonModule],
|
|
773
|
-
exports: [ClickOutsideDirective],
|
|
774
|
-
},] }
|
|
775
|
-
];
|
|
776
|
-
|
|
777
|
-
class DropdownModule {
|
|
778
|
-
}
|
|
779
|
-
DropdownModule.decorators = [
|
|
780
|
-
{ type: NgModule, args: [{
|
|
781
|
-
declarations: [DropdownComponent],
|
|
782
|
-
imports: [CommonModule, ClickOutsideModule],
|
|
783
|
-
exports: [DropdownComponent],
|
|
784
|
-
},] }
|
|
785
|
-
];
|
|
786
|
-
|
|
787
|
-
class HeaderComponent {
|
|
788
|
-
constructor() {
|
|
789
|
-
this.white = false;
|
|
790
|
-
}
|
|
791
|
-
ngOnInit() { }
|
|
792
|
-
}
|
|
793
|
-
HeaderComponent.decorators = [
|
|
794
|
-
{ type: Component, args: [{
|
|
795
|
-
selector: 'header[aeb-header]',
|
|
796
|
-
template: "<ng-content></ng-content>\n",
|
|
797
|
-
encapsulation: ViewEncapsulation.None,
|
|
798
|
-
host: {
|
|
799
|
-
class: 'aeb-header'
|
|
800
|
-
},
|
|
801
|
-
styles: [".aeb-header-logo-icon{margin-right:18px}.aeb-header-logo-text{font-weight:500;font-size:24px;line-height:28px;display:flex;align-items:center}.aeb-header{height:80px;width:100%;background-color:var(--darkblue);padding:0 28px;box-sizing:border-box;display:flex;align-items:center;position:fixed;top:0;left:0;z-index:1001}.aeb-header.white{background-color:#fff;border-bottom:1px solid var(--lightgray)}.aeb-header.white,.aeb-header.white .aeb-header-logo-text{color:var(--darkblue)}.aeb-header-subtitle{color:var(--gray-primary);font-size:12px;line-height:14px;font-weight:400;margin-left:24px}"]
|
|
802
|
-
},] }
|
|
803
|
-
];
|
|
804
|
-
HeaderComponent.ctorParameters = () => [];
|
|
805
|
-
HeaderComponent.propDecorators = {
|
|
806
|
-
white: [{ type: HostBinding, args: ['class.white',] }, { type: Input }]
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
class LogoComponent {
|
|
810
|
-
constructor() { }
|
|
811
|
-
ngOnInit() { }
|
|
812
|
-
}
|
|
813
|
-
LogoComponent.decorators = [
|
|
814
|
-
{ type: Component, args: [{
|
|
815
|
-
selector: 'aeb-logo',
|
|
816
|
-
template: "<div class=\"aeb-header-logo-icon\">\n <svg\n width=\"26\"\n height=\"26\"\n viewBox=\"0 0 26 26\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M0 0H6V6H0V0ZM0 10H6V16H0V10ZM6 20H0V26H6V20ZM10 0H16V6H10V0ZM16 10H10V16H16V10ZM10 20H16V26H10V20ZM26 0H20V6H26V0ZM20 10H26V16H20V10ZM26 20H20V26H26V20Z\"\n fill=\"#2F88F0\"\n />\n </svg>\n</div>\n\n<div class=\"aeb-header-logo-text\">\n <ng-content></ng-content>\n</div>\n",
|
|
817
|
-
encapsulation: ViewEncapsulation.None,
|
|
818
|
-
host: {
|
|
819
|
-
class: 'aeb-header-logo'
|
|
820
|
-
},
|
|
821
|
-
styles: [".aeb-header-logo{color:var(--white)!important;display:flex;align-items:center;cursor:pointer}"]
|
|
822
|
-
},] }
|
|
823
|
-
];
|
|
824
|
-
LogoComponent.ctorParameters = () => [];
|
|
825
|
-
|
|
826
|
-
class HeaderModule {
|
|
827
|
-
}
|
|
828
|
-
HeaderModule.decorators = [
|
|
829
|
-
{ type: NgModule, args: [{
|
|
830
|
-
declarations: [HeaderComponent, LogoComponent],
|
|
831
|
-
imports: [CommonModule],
|
|
832
|
-
exports: [HeaderComponent, LogoComponent],
|
|
833
|
-
},] }
|
|
834
|
-
];
|
|
835
|
-
|
|
836
|
-
class SidebarComponent {
|
|
837
|
-
constructor() {
|
|
838
|
-
this.isRight = false;
|
|
839
|
-
this.isOpen = true;
|
|
840
|
-
}
|
|
841
|
-
ngOnInit() { }
|
|
842
|
-
handleToggleSidebar() {
|
|
843
|
-
this.isOpen = !this.isOpen;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
SidebarComponent.decorators = [
|
|
847
|
-
{ type: Component, args: [{
|
|
848
|
-
selector: 'aeb-sidebar',
|
|
849
|
-
template: "<div *ngIf=\"!layoutMod\" class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n</div>\n\n<div *ngIf=\"layoutMod === 'burger'\" class=\"aeb-sidebar-burger\">\n <div\n class=\"aeb-sidebar-burger__icon\"\n (click)=\"handleToggleSidebar()\"\n >\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1.71387 12H22.2853\" stroke=\"#27303E\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M1.71387 5.14258H22.2853\" stroke=\"#27303E\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M1.71387 18.8574H22.2853\" stroke=\"#27303E\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </div>\n</div>\n\n<div *ngIf=\"layoutMod === 'burger'\" class=\"aeb-sidebar-items\">\n <div class=\"aeb-sidebar-content\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </div>\n</div>\n\n<div class=\"aeb-sidebar-footer\" *ngIf=\"isOpen\">\n <!-- \u0421\u0432\u044F\u0437\u0430\u0442\u044C\u0441\u044F \u0441 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u043F\u043E \u043F\u043E\u0447\u0442\u0435\n <a href=\"mailto:support@aeb.ru\">support@aeb.ru</a> -->\n</div>\n<div *ngIf=\"!layoutMod\" class=\"aeb-sidebar-toggle-icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M15.5359 6.30688L21.7602 13.3677C21.9199 13.5493 22 13.7653 22 14C22 14.2106 21.9341 14.4606 21.7515 14.6422L15.5318 21.6978C15.3721 21.8793 15.1534 22 14.8856 22C14.6176 22 14.399 21.8794 14.2394 21.6977C13.927 21.3423 13.9119 20.7814 14.244 20.4287L19.9121 14L14.2398 7.56653C13.9272 7.21101 13.9119 6.64939 14.2444 6.29664C14.4095 6.11179 14.6412 6 14.8921 6C15.1445 6 15.3769 6.1135 15.5359 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.53586 6.30688L13.7602 13.3677C13.9199 13.5493 14 13.7653 14 14C14 14.2106 13.9341 14.4606 13.7515 14.6422L7.53175 21.6978C7.37212 21.8793 7.15341 22 6.88558 22C6.61765 22 6.39904 21.8794 6.2394 21.6977C5.92703 21.3423 5.91188 20.7814 6.24398 20.4287L11.9121 14L6.23978 7.56653C5.92725 7.21101 5.91186 6.64939 6.24438 6.29664C6.4095 6.11179 6.64121 6 6.89212 6C7.14455 6 7.37688 6.1135 7.53586 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n</div>\n\n<ng-template #contentTpl>\n <ng-content></ng-content>\n</ng-template>",
|
|
850
|
-
encapsulation: ViewEncapsulation.None,
|
|
851
|
-
host: {
|
|
852
|
-
class: 'aeb-sidebar',
|
|
853
|
-
'[class.right]': 'isRight',
|
|
854
|
-
'[class.open]': 'isOpen',
|
|
855
|
-
'[class.aeb-sidebar--burger]': "layoutMod === 'burger'",
|
|
856
|
-
},
|
|
857
|
-
styles: [".aeb-sidebar{width:80px;display:flex;flex-direction:column;justify-content:space-between;color:var(--darkblue);background-color:var(--white);height:calc(100vh - 80px);top:0;border-right:2px solid #f3f3f3;position:fixed;top:80px;left:0;z-index:1001}.aeb-sidebar.right{left:auto;right:0;border-right:none;border-left:2px solid #f3f3f3}.aeb-sidebar.right .aeb-sidebar-toggle-icon{transform:scaleX(-1)}.aeb-sidebar-items{padding:14px 0 0;flex-direction:column}.aeb-sidebar-item,.aeb-sidebar-items{width:100%;box-sizing:border-box;display:flex;align-items:center}.aeb-sidebar-item{justify-content:center;padding:14px 0;text-decoration:none}.aeb-sidebar-item-icon{display:flex;flex:0 0 auto;width:28px;height:28px;opacity:.8}.aeb-sidebar-item-icon img{-o-object-fit:contain;object-fit:contain;width:100%}.aeb-sidebar-item-icon svg{fill:var(--gray)}.aeb-sidebar-item-label{color:var(--darkblue);display:none;font-size:16px;margin-left:18px}.aeb-sidebar-item:hover{background-color:var(--white-hover);text-decoration:none}.aeb-sidebar-item:hover>a{text-decoration:none}.aeb-sidebar-item.active{pointer-events:none}.aeb-sidebar-item.active .aeb-sidebar-item-label{color:var(--blue)}.aeb-sidebar-item.active .aeb-sidebar-item-icon svg{fill:var(--blue)}.aeb-sidebar-footer{margin-top:auto;font-size:12px;line-height:18px;text-align:center;padding-left:30px;padding-right:30px;color:var(--gray)}.aeb-sidebar-footer a{color:var(--blue)}.aeb-sidebar-toggle-icon{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;border-radius:4px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;height:50px;margin:16px 8px 10px;transition:all .23s linear}.aeb-sidebar-toggle-icon>svg{transition:all .23s ease}.aeb-sidebar-toggle-icon:hover{background-color:#f3f3f3}.aeb-sidebar-toggle-icon:hover>svg{transform:translateX(2px)}.aeb-sidebar.open{width:260px}.aeb-sidebar.open .aeb-sidebar-item{padding:14px 28px;justify-content:flex-start}.aeb-sidebar.open .aeb-sidebar-item-label{display:inline-block}.aeb-sidebar.open .aeb-sidebar-toggle-icon{background-color:#f3f3f3}.aeb-sidebar.open .aeb-sidebar-toggle-icon>svg{transform:scaleX(-1)}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover{background-color:#e7e7e7}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover>svg{transform:translateX(-2px) scaleX(-1)}.aeb-sidebar--burger{display:block;transition:width,.2s;overflow:hidden;width:68px}.aeb-sidebar--burger.open{display:flex;flex-direction:column;justify-content:space-between}.aeb-sidebar--burger.open .aeb-sidebar-items{overflow:auto}.aeb-sidebar--burger .aeb-sidebar-burger{height:70px;padding:28px 24px;box-sizing:border-box}.aeb-sidebar--burger .aeb-sidebar-burger__icon{display:inline-block;cursor:pointer}.aeb-sidebar--burger .aeb-sidebar-items{width:260px;margin-bottom:30px;box-sizing:border-box;overflow:hidden;padding:0 24px;display:block}.aeb-sidebar--burger .aeb-sidebar-footer{margin-bottom:32px;width:200px}"]
|
|
858
|
-
},] }
|
|
859
|
-
];
|
|
860
|
-
SidebarComponent.ctorParameters = () => [];
|
|
861
|
-
SidebarComponent.propDecorators = {
|
|
862
|
-
isRight: [{ type: Input }],
|
|
863
|
-
isOpen: [{ type: Input }],
|
|
864
|
-
layoutMod: [{ type: Input, args: ['layoutMod',] }]
|
|
865
|
-
};
|
|
866
|
-
|
|
867
|
-
class SidebarModule {
|
|
868
|
-
}
|
|
869
|
-
SidebarModule.decorators = [
|
|
870
|
-
{ type: NgModule, args: [{
|
|
871
|
-
declarations: [SidebarComponent],
|
|
872
|
-
imports: [CommonModule],
|
|
873
|
-
exports: [SidebarComponent],
|
|
874
|
-
},] }
|
|
875
|
-
];
|
|
876
|
-
|
|
877
|
-
class TooltipComponent {
|
|
878
|
-
constructor(elementRef) {
|
|
879
|
-
this.elementRef = elementRef;
|
|
880
|
-
}
|
|
881
|
-
ngOnInit() {
|
|
882
|
-
this.elementRef.nativeElement.classList.add(`aeb-${this.align}-tooltip`);
|
|
883
|
-
}
|
|
884
|
-
ngOnChanges(changes) {
|
|
885
|
-
if (changes.align) {
|
|
886
|
-
this.elementRef.nativeElement.className = `aeb-${this.align}-tooltip`;
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
TooltipComponent.decorators = [
|
|
891
|
-
{ type: Component, args: [{
|
|
892
|
-
selector: 'aeb-tooltip',
|
|
893
|
-
template: "<div class=\"tooltip\">\n <ng-content select='[class=\"tooltip-item\"]'></ng-content>\n <div class=\"tooltip-body\">\n <div class=\"tooltip-text\">\n <ng-content select=\"[tooltip-text]\"></ng-content>\n </div>\n </div>\n</div>\n",
|
|
894
|
-
encapsulation: ViewEncapsulation.None,
|
|
895
|
-
styles: [".tooltip-item{display:inline-block;width:auto;z-index:0}.tooltip-body{position:absolute;visibility:hidden;opacity:0;width:auto;padding-top:32px;transition:visibility 0s,opacity .5s linear;filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}.tooltip{position:relative;display:inline-block}.tooltip:hover>.tooltip-body{visibility:visible;opacity:1}.tooltip-text{background-color:var(--white);width:360px;min-height:56px;border-radius:12px;padding:16px 20px 20px;z-index:1}.aeb-top-left-tooltip .tooltip-body{top:100%;left:calc(50% - 57px)}.aeb-top-left-tooltip .tooltip-text:after{content:\" \";position:absolute;top:18px;left:32px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-225deg);z-index:-10000}.aeb-top-center-tooltip .tooltip-body{top:100%;left:calc(50% - 198px)}.aeb-top-center-tooltip .tooltip-text:after{content:\" \";position:absolute;top:18px;right:calc(50% - 17px);background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-225deg);z-index:-10000}.aeb-top-right-tooltip .tooltip-body{top:100%;right:calc(50% - 51px)}.aeb-top-right-tooltip .tooltip-text:after{content:\" \";position:absolute;top:18px;right:32px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-225deg);z-index:-10000}.aeb-bottom-left-tooltip .tooltip-body{padding-top:0;padding-bottom:32px;bottom:100%;left:calc(50% - 51px)}.aeb-bottom-left-tooltip .tooltip-text:after{content:\" \";position:absolute;bottom:18px;left:32px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-45deg);z-index:-10000}.aeb-bottom-center-tooltip .tooltip-body{padding-top:0;padding-bottom:32px;bottom:100%;left:calc(50% - 192px)}.aeb-bottom-center-tooltip .tooltip-text:after{content:\" \";position:absolute;bottom:18px;right:calc(50% - 17px);background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-45deg);z-index:-10000}.aeb-bottom-right-tooltip .tooltip-body{padding-top:0;padding-bottom:32px;bottom:100%;right:calc(50% - 57px)}.aeb-bottom-right-tooltip .tooltip-text:after{content:\" \";position:absolute;bottom:18px;right:32px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-45deg);z-index:-10000}.aeb-left-top-tooltip .tooltip-body{padding-top:0;padding-left:32px;left:100%;top:calc(50% - 47px)}.aeb-left-top-tooltip .tooltip-text:after{content:\" \";position:absolute;top:32px;left:18px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(45deg);z-index:-10000}.aeb-left-center-tooltip .tooltip-body{padding-top:0;padding-left:32px;left:100%}.aeb-left-center-tooltip .tooltip-text:after{content:\" \";position:absolute;top:calc(50% - 17px);left:18px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(45deg);z-index:-10000}.aeb-left-bottom-tooltip .tooltip-body{padding-top:0;padding-left:32px;left:100%;bottom:calc(50% - 52px)}.aeb-left-bottom-tooltip .tooltip-text:after{content:\" \";position:absolute;bottom:32px;left:18px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(45deg);z-index:-10000}.aeb-right-top-tooltip .tooltip-body{padding-top:0;padding-right:32px;right:100%;top:calc(50% - 53px)}.aeb-right-top-tooltip .tooltip-text:after{top:32px;right:18px}.aeb-right-center-tooltip .tooltip-text:after,.aeb-right-top-tooltip .tooltip-text:after{content:\" \";position:absolute;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-135deg);z-index:-10000}.aeb-right-center-tooltip .tooltip-text:after{bottom:calc(50% - 12px);left:calc(100% - 25px)}.aeb-right-bottom-tooltip .tooltip-body{padding-top:0;padding-right:32px;right:100%;bottom:calc(50% - 47px)}.aeb-right-bottom-tooltip .tooltip-text:after{content:\" \";position:absolute;bottom:32px;right:18px;background-color:var(--white);border-radius:0 0 0 8px;width:44px;height:35px;transform:rotate(-135deg);z-index:-10000}"]
|
|
896
|
-
},] }
|
|
897
|
-
];
|
|
898
|
-
TooltipComponent.ctorParameters = () => [
|
|
899
|
-
{ type: ElementRef }
|
|
900
|
-
];
|
|
901
|
-
TooltipComponent.propDecorators = {
|
|
902
|
-
align: [{ type: Input }]
|
|
903
|
-
};
|
|
904
|
-
|
|
905
|
-
class TooltipModule {
|
|
906
|
-
}
|
|
907
|
-
TooltipModule.decorators = [
|
|
908
|
-
{ type: NgModule, args: [{
|
|
909
|
-
declarations: [TooltipComponent],
|
|
910
|
-
imports: [CommonModule],
|
|
911
|
-
exports: [TooltipComponent]
|
|
912
|
-
},] }
|
|
913
|
-
];
|
|
914
|
-
|
|
915
|
-
class LabelComponent {
|
|
916
|
-
constructor() { }
|
|
917
|
-
ngOnInit() { }
|
|
918
|
-
}
|
|
919
|
-
LabelComponent.decorators = [
|
|
920
|
-
{ type: Component, args: [{
|
|
921
|
-
selector: 'aeb-filter-label',
|
|
922
|
-
template: "<div class=\"aeb-label\">\n <div class=\"aeb-label-text\">\n <ng-content></ng-content>\n </div>\n <div class=\"aeb-label-icon-close\">\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14 1.4L12.6 0L7 5.6L1.4 0L0 1.4L5.6 7L0 12.6L1.4 14L7 8.4L12.6 14L14 12.6L8.4 7L14 1.4Z\" fill=\"#2F88F0\"/>\n </svg>\n </div>\n</div>\n",
|
|
923
|
-
encapsulation: ViewEncapsulation.None,
|
|
924
|
-
styles: [".aeb-label{background-color:#d5e8fc;border-radius:16px;padding:7px 11px 7px 21px;height:32px;box-sizing:border-box;display:inline-block}.aeb-label-text{color:var(--blue);font-size:16px;line-height:18px;float:left}.aeb-label-icon-close{height:14px;box-sizing:border-box;float:right;margin-left:11px;margin-top:1px}"]
|
|
925
|
-
},] }
|
|
926
|
-
];
|
|
927
|
-
LabelComponent.ctorParameters = () => [];
|
|
928
|
-
|
|
929
|
-
class LabelModule {
|
|
930
|
-
}
|
|
931
|
-
LabelModule.decorators = [
|
|
932
|
-
{ type: NgModule, args: [{
|
|
933
|
-
declarations: [LabelComponent],
|
|
934
|
-
imports: [CommonModule],
|
|
935
|
-
exports: [LabelComponent],
|
|
936
|
-
},] }
|
|
937
|
-
];
|
|
938
|
-
|
|
939
|
-
class VisaComponent {
|
|
940
|
-
constructor() { }
|
|
941
|
-
ngOnInit() { }
|
|
942
|
-
}
|
|
943
|
-
VisaComponent.decorators = [
|
|
944
|
-
{ type: Component, args: [{
|
|
945
|
-
selector: 'aeb-visa',
|
|
946
|
-
template: "<div class=\"aeb-visa\">\n <h3>\n \u0412\u0438\u0437\u044B\n </h3>\n <div class=\"aeb-visa-timeline\">\n <ng-content></ng-content>\n </div>\n</div>\n",
|
|
947
|
-
encapsulation: ViewEncapsulation.None,
|
|
948
|
-
styles: [".aeb-visa{width:100%;background:var(--white);border-radius:12px;padding:24px 22px;box-sizing:border-box;color:var(--darkblue)}.aeb-visa>h3{margin:0;font-weight:700;font-size:20px;line-height:23px}.aeb-visa .aeb-visa-timeline{margin-top:3rem}.aeb-visa .aeb-visa-timeline>aeb-visa-item{margin-bottom:2rem;display:flex}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child{margin-bottom:0}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child .aeb-visa-progress{display:none}.aeb-visa .aeb-visa-timeline .aeb-visa-icon{position:relative;z-index:2;width:20px;height:20px;flex:none;display:block}.aeb-visa .aeb-visa-timeline .aeb-visa-icon>svg{width:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-progress{width:2px;height:70px;background:#e7eaec;z-index:-1;position:relative;top:-9px;left:9px}.aeb-visa .aeb-visa-timeline .aeb-visa-progress.agreed{background:#00bf41}.aeb-visa .aeb-visa-timeline .aeb-visa-status{margin-left:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isReturned .aeb-visa-title{color:#ff3055}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isAgreed .aeb-visa-title{color:#00bf41}.aeb-visa-title{font-size:16px;line-height:22px;color:#27303e}.aeb-visa-subtitle{font-weight:400;font-size:16px;line-height:22px;color:#9ca8af;display:block}@media (max-width:767px){.aeb-visa>h3{font-size:14px}}"]
|
|
949
|
-
},] }
|
|
950
|
-
];
|
|
951
|
-
VisaComponent.ctorParameters = () => [];
|
|
952
|
-
|
|
953
|
-
class VisaItemComponent {
|
|
954
|
-
constructor() { }
|
|
955
|
-
ngOnInit() { }
|
|
956
|
-
}
|
|
957
|
-
VisaItemComponent.decorators = [
|
|
958
|
-
{ type: Component, args: [{
|
|
959
|
-
selector: 'aeb-visa-item',
|
|
960
|
-
template: "<div [ngSwitch]=\"status\" class=\"aeb-visa-icon\">\n <ng-template ngSwitchCase=\"isReturned\">\n <svg viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"10\" fill=\"#FF3055\" />\n <rect\n x=\"5\"\n y=\"5.88379\"\n width=\"1.75\"\n height=\"12.5\"\n rx=\"0.875\"\n transform=\"rotate(-45 5 5.88379)\"\n fill=\"white\"\n />\n <rect\n width=\"1.75\"\n height=\"12.5\"\n rx=\"0.875\"\n transform=\"matrix(-0.707107 -0.707107 -0.707107 0.707107 14.7229 5.88379)\"\n fill=\"white\"\n />\n </svg>\n\n <div class=\"aeb-visa-progress\"></div>\n </ng-template>\n <ng-template ngSwitchCase=\"isAgreed\">\n <svg viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10.0283 0.0283264C4.5298 0.0127068 0.0439644 4.47313 0.0283447 9.97167C0.012725 15.4702 4.47315 19.9561 9.97169 19.9717C15.4702 19.9873 19.9561 15.5269 19.9717 10.0283C19.9873 4.52978 15.5269 0.0439461 10.0283 0.0283264Z\"\n fill=\"#00BF41\"\n />\n <path\n d=\"M13.109 6.98264L9.52446 11.2591L7.67997 9.40447C7.35682 9.07906 6.82998 9.07756 6.50498 9.40114C6.17956 9.72471 6.17807 10.2507 6.50164 10.5761L8.98748 13.0761C9.14367 13.2328 9.35491 13.3206 9.5747 13.3213C9.58716 13.3213 9.60004 13.3213 9.61251 13.3205C9.84563 13.3108 10.0641 13.203 10.2141 13.0239L14.3832 8.04991C14.6779 7.69799 14.6316 7.17435 14.2801 6.87918C13.9282 6.58485 13.4037 6.63072 13.109 6.98264Z\"\n fill=\"white\"\n />\n </svg>\n\n <div class=\"aeb-visa-progress agreed\"></div>\n </ng-template>\n <ng-template ngSwitchCase=\"isProgress\"\n ><svg viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"10\" fill=\"#E7EAEC\" />\n <path\n d=\"M10 3C6.1402 3 3 6.1402 3 10C3 13.8598 6.1402 17 10 17C13.8598 17 17 13.8598 17 10C17 6.1402 13.8598 3 10 3ZM10 15.5105C6.96153 15.5105 4.48934 13.0386 4.48934 10C4.48934 6.96138 6.96153 4.48948 10 4.48948C13.0385 4.48948 15.5107 6.96138 15.5107 10C15.5107 13.0386 13.0385 15.5105 10 15.5105Z\"\n fill=\"white\"\n />\n <path\n d=\"M13.4088 9.95425H10.1823V6.52288C10.1823 6.23412 9.91762 6 9.59116 6C9.26469 6 9 6.23412 9 6.52288V10.4771C9 10.7659 9.26469 11 9.59116 11H13.4088C13.7353 11 14 10.7659 14 10.4771C14 10.1884 13.7353 9.95425 13.4088 9.95425Z\"\n fill=\"white\"\n stroke=\"white\"\n stroke-width=\"0.3\"\n />\n </svg>\n\n <div class=\"aeb-visa-progress\"></div>\n </ng-template>\n</div>\n<div class=\"aeb-visa-status {{ status }}\">\n <ng-content></ng-content>\n</div>\n"
|
|
961
|
-
},] }
|
|
962
|
-
];
|
|
963
|
-
VisaItemComponent.ctorParameters = () => [];
|
|
964
|
-
VisaItemComponent.propDecorators = {
|
|
965
|
-
status: [{ type: Input }]
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
class SpanTitleDirective {
|
|
969
|
-
constructor() { }
|
|
970
|
-
}
|
|
971
|
-
SpanTitleDirective.decorators = [
|
|
972
|
-
{ type: Directive, args: [{
|
|
973
|
-
selector: 'span[title]',
|
|
974
|
-
host: {
|
|
975
|
-
class: 'aeb-visa-title',
|
|
976
|
-
},
|
|
977
|
-
},] }
|
|
978
|
-
];
|
|
979
|
-
SpanTitleDirective.ctorParameters = () => [];
|
|
980
|
-
class SpanSubtitleDirective {
|
|
981
|
-
constructor() { }
|
|
982
|
-
}
|
|
983
|
-
SpanSubtitleDirective.decorators = [
|
|
984
|
-
{ type: Directive, args: [{
|
|
985
|
-
selector: 'span[subtitle]',
|
|
986
|
-
host: {
|
|
987
|
-
class: 'aeb-visa-subtitle',
|
|
988
|
-
},
|
|
989
|
-
},] }
|
|
990
|
-
];
|
|
991
|
-
SpanSubtitleDirective.ctorParameters = () => [];
|
|
992
|
-
|
|
993
|
-
class VisaModule {
|
|
994
|
-
}
|
|
995
|
-
VisaModule.decorators = [
|
|
996
|
-
{ type: NgModule, args: [{
|
|
997
|
-
declarations: [
|
|
998
|
-
VisaComponent,
|
|
999
|
-
VisaItemComponent,
|
|
1000
|
-
SpanTitleDirective,
|
|
1001
|
-
SpanSubtitleDirective,
|
|
1002
|
-
],
|
|
1003
|
-
imports: [CommonModule],
|
|
1004
|
-
exports: [
|
|
1005
|
-
VisaComponent,
|
|
1006
|
-
VisaItemComponent,
|
|
1007
|
-
SpanTitleDirective,
|
|
1008
|
-
SpanSubtitleDirective,
|
|
1009
|
-
],
|
|
1010
|
-
},] }
|
|
1011
|
-
];
|
|
1012
|
-
|
|
1013
|
-
class SpinnerComponent {
|
|
1014
|
-
constructor() { }
|
|
1015
|
-
ngOnInit() { }
|
|
1016
|
-
}
|
|
1017
|
-
SpinnerComponent.decorators = [
|
|
1018
|
-
{ type: Component, args: [{
|
|
1019
|
-
selector: 'aeb-spinner',
|
|
1020
|
-
template: "<div class=\"spinner-wrap\">\n <div class=\"spinner-circle\">\n <svg class=\"spinner-circle-border\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"2\"></circle>\n </svg>\n <svg class=\"spinner-circle-border rotate\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"2\"></circle>\n </svg>\n <svg class=\"spinner-circle-diamond\" width=\"26\" height=\"26\" viewBox=\"0 0 26 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.2101 16.1713L16.2663 19.0952L18.223 23.7905L23.9375 18.1148L19.2101 16.1713ZM15.1754 19.5423H11.0021L9.0454 24.2376H17.1148L15.1754 19.5423ZM19.6776 10.9428V15.0706L24.3877 17.0141V8.9994L19.6776 10.9428ZM9.8939 19.0952L6.9501 16.1713L2.24 18.1148L7.9544 23.7905L9.8939 19.0952ZM18.223 2.223L16.2663 6.9183L19.2101 9.8421L23.9375 7.8986L18.223 2.223ZM11.0021 6.4539H15.1754L17.1148 1.7758H9.0454L11.0021 6.4539ZM6.4999 15.0706V10.9428L1.7898 8.9994V17.0141L6.4999 15.0706ZM6.9501 9.8421L9.8939 6.9183L7.9544 2.223L2.24 7.8986L6.9501 9.8421ZM15.4005 18.5448L18.656 15.2942V10.7021L15.4005 7.4687H10.777L7.5042 10.7021V15.2942L10.777 18.5448H15.4005ZM7.9891 25.2352C5.2011 24.2154 1.7898 20.6463 0.768129 18.0804C-0.253521 15.5145 -0.258561 10.9428 0.768129 7.933C1.7948 4.9232 4.875 1.7758 7.9891 0.761051C11.1031 -0.253679 15.5877 -0.253689 18.1884 0.761051C20.7891 1.7758 24.896 5.9272 25.4094 7.933C25.9227 9.9389 26.431 15.5145 25.4094 18.0804C24.3877 20.6463 20.7213 24.2154 18.1884 25.2352C15.6556 26.2549 10.777 26.2549 7.9891 25.2352Z\" fill=\"url(#paint0_linear)\"/>\n <defs>\n <linearGradient id=\"paint0_linear\" x1=\"13.9013\" y1=\"26\" x2=\"13.9013\" y2=\"0\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"#00B8FF\"/>\n <stop offset=\"1\" stop-color=\"#0079D6\"/>\n </linearGradient>\n </defs>\n </svg>\n </div>\n</div>\n",
|
|
1021
|
-
encapsulation: ViewEncapsulation.None,
|
|
1022
|
-
styles: [".spinner-wrap{width:auto;height:auto;position:relative}.spinner-circle{width:60px;height:60px;display:flex;align-items:center;justify-content:center;margin:auto}.spinner-circle .spinner-circle-border{width:60px;height:60px;position:absolute;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.spinner-circle .spinner-circle-border .path{stroke:#0079d6;stroke-linecap:round;-webkit-animation:dash 1s ease-in-out infinite;animation:dash 1s ease-in-out infinite}.spinner-circle .spinner-circle-border .spinner-circle-border-mask{background-color:var(--white)}.spinner-circle .rotate{-webkit-animation:spin2 .75s linear infinite;animation:spin2 .75s linear infinite}.spinner-circle .rotate .path{stroke:#00b8ff}.spinner-circle .spinner-circle-diamond{-webkit-animation:zoom .5s ease-in-out infinite alternate;animation:zoom .5s ease-in-out infinite alternate}@-webkit-keyframes spin2{0%{transform:rotate(180deg)}to{transform:rotate(179deg)}}@keyframes spin2{0%{transform:rotate(180deg)}to{transform:rotate(179deg)}}@-webkit-keyframes zoom{0%{transform:scale(1.2)}to{transform:scale(.75)}}@keyframes zoom{0%{transform:scale(1.2)}to{transform:scale(.75)}}@-webkit-keyframes spin{0%{transform:rotate(1turn)}to{transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(1turn)}to{transform:rotate(359deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:0,150;stroke-dashoffset:0}50%{stroke-dasharray:50,150;stroke-dashoffset:-35}to{stroke-dasharray:50,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:0,150;stroke-dashoffset:0}50%{stroke-dasharray:50,150;stroke-dashoffset:-35}to{stroke-dasharray:50,150;stroke-dashoffset:-124}}"]
|
|
1023
|
-
},] }
|
|
1024
|
-
];
|
|
1025
|
-
SpinnerComponent.ctorParameters = () => [];
|
|
1026
|
-
|
|
1027
|
-
class SpinnerModule {
|
|
1028
|
-
}
|
|
1029
|
-
SpinnerModule.decorators = [
|
|
1030
|
-
{ type: NgModule, args: [{
|
|
1031
|
-
declarations: [SpinnerComponent],
|
|
1032
|
-
imports: [CommonModule],
|
|
1033
|
-
exports: [SpinnerComponent],
|
|
1034
|
-
},] }
|
|
1035
|
-
];
|
|
1036
|
-
|
|
1037
|
-
class AebNotificationsComponent {
|
|
1038
|
-
constructor() {
|
|
1039
|
-
this.close = new EventEmitter();
|
|
1040
|
-
}
|
|
1041
|
-
ngOnInit() { }
|
|
1042
|
-
handleClose(id) {
|
|
1043
|
-
this.close.emit(id);
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
AebNotificationsComponent.decorators = [
|
|
1047
|
-
{ type: Component, args: [{
|
|
1048
|
-
selector: 'aeb-notifications',
|
|
1049
|
-
template: "<div *ngIf=\"notifications?.length\" class=\"aeb-notifications-wrapper\">\n <div\n *ngFor=\"let notification of notifications\"\n class=\"aeb-notification\"\n [ngClass]=\"{\n default: notification.variant === 'default',\n success: notification.variant === 'success',\n error: notification.variant === 'error'\n }\"\n >\n <div [innerHTML]=\"notification.message\"></div>\n <div\n role=\"button\"\n class=\"close-button\"\n (click)=\"handleClose(notification.id)\"\n >\n ×\n </div>\n </div>\n</div>\n",
|
|
1050
|
-
encapsulation: ViewEncapsulation.None,
|
|
1051
|
-
styles: [".aeb-notifications-wrapper{position:fixed;bottom:0;right:44px;z-index:2}.aeb-notification{width:400px;padding:24px;border-radius:12px;margin-bottom:16px;box-shadow:0 .25rem .75rem rgba(255,78,78,.1);display:flex;justify-content:space-between;line-height:1.4em}.aeb-notification.default{color:var(--blue);background-color:var(--lightblue);border:1px solid #a2cdff}.aeb-notification.error{background-color:#efaaad;color:#9b0404;border:1px solid #f99191}.aeb-notification.success{background-color:#d6ffc9;color:#008a38;border:1px solid #a2edc2}.aeb-notification ul{list-style-type:disc}.aeb-notification li{margin-left:24px;margin-top:8px}.aeb-notification strong{font-weight:700}.close-button{font-size:18px;padding-left:16px;flex:0 0 auto}"]
|
|
1052
|
-
},] }
|
|
1053
|
-
];
|
|
1054
|
-
AebNotificationsComponent.ctorParameters = () => [];
|
|
1055
|
-
AebNotificationsComponent.propDecorators = {
|
|
1056
|
-
notifications: [{ type: Input }],
|
|
1057
|
-
close: [{ type: Output }]
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
class NotificationsModule {
|
|
1061
|
-
}
|
|
1062
|
-
NotificationsModule.decorators = [
|
|
1063
|
-
{ type: NgModule, args: [{
|
|
1064
|
-
declarations: [AebNotificationsComponent],
|
|
1065
|
-
imports: [CommonModule],
|
|
1066
|
-
exports: [AebNotificationsComponent],
|
|
1067
|
-
},] }
|
|
1068
|
-
];
|
|
1069
|
-
|
|
1070
|
-
class OptionComponent {
|
|
1071
|
-
constructor() {
|
|
1072
|
-
this.setValue = new EventEmitter();
|
|
1073
|
-
}
|
|
1074
|
-
ngOnInit() { }
|
|
1075
|
-
ngAfterViewInit() {
|
|
1076
|
-
this.label = this.textElement.nativeElement.textContent;
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
OptionComponent.decorators = [
|
|
1080
|
-
{ type: Component, args: [{
|
|
1081
|
-
selector: 'aeb-option',
|
|
1082
|
-
template: "<div\n #text\n>\n <ng-content></ng-content>\n</div>\n",
|
|
1083
|
-
encapsulation: ViewEncapsulation.None
|
|
1084
|
-
},] }
|
|
1085
|
-
];
|
|
1086
|
-
OptionComponent.ctorParameters = () => [];
|
|
1087
|
-
OptionComponent.propDecorators = {
|
|
1088
|
-
value: [{ type: Input }],
|
|
1089
|
-
label: [{ type: Input }],
|
|
1090
|
-
setValue: [{ type: Output }],
|
|
1091
|
-
textElement: [{ type: ViewChild, args: ['text',] }]
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
class SelectComponent {
|
|
1095
|
-
constructor(cdr) {
|
|
1096
|
-
this.cdr = cdr;
|
|
1097
|
-
this.change = new EventEmitter();
|
|
1098
|
-
this.disabled = false;
|
|
1099
|
-
this.direction = 'bottom';
|
|
1100
|
-
this.isOpen = false;
|
|
1101
|
-
this.placeholder = '';
|
|
1102
|
-
this.options = [];
|
|
1103
|
-
}
|
|
1104
|
-
get value() {
|
|
1105
|
-
return this._value;
|
|
1106
|
-
}
|
|
1107
|
-
set value(value) {
|
|
1108
|
-
if (value === this._value) {
|
|
1109
|
-
return;
|
|
1110
|
-
}
|
|
1111
|
-
this._value = value;
|
|
1112
|
-
if (typeof this.onChange === 'function') {
|
|
1113
|
-
this.onChange(this._value);
|
|
1114
|
-
}
|
|
1115
|
-
this.change.emit(value);
|
|
1116
|
-
}
|
|
1117
|
-
get selectedOption() {
|
|
1118
|
-
if (this.options) {
|
|
1119
|
-
return this.options.find(option => option.value === this._value);
|
|
1120
|
-
}
|
|
1121
|
-
return null;
|
|
1122
|
-
}
|
|
1123
|
-
/**
|
|
1124
|
-
* Вызывается при задании исходного (new FormControl('I am default value'))
|
|
1125
|
-
* или нового значения сверху control.setValue('I am setted value').
|
|
1126
|
-
*/
|
|
1127
|
-
writeValue(value) {
|
|
1128
|
-
this._value = value;
|
|
1129
|
-
}
|
|
1130
|
-
/**
|
|
1131
|
-
* Метод определяющий обработчик, который должен быть вызван при изменении значения
|
|
1132
|
-
* (fn является callback'ом, который уведомит форму о том, что в этом контроле изменилось значение).
|
|
1133
|
-
*/
|
|
1134
|
-
registerOnChange(fn) {
|
|
1135
|
-
this.onChange = fn;
|
|
1136
|
-
}
|
|
1137
|
-
/**
|
|
1138
|
-
* Определяет callback, который вызывается на blur событие (control помечается флагом touched)
|
|
1139
|
-
*/
|
|
1140
|
-
registerOnTouched() { }
|
|
1141
|
-
setValue(option) {
|
|
1142
|
-
this.value = option;
|
|
1143
|
-
this.closeDropdown();
|
|
1144
|
-
}
|
|
1145
|
-
openDropdown() {
|
|
1146
|
-
if (this.disabled)
|
|
1147
|
-
return;
|
|
1148
|
-
if (this.isOpen === true)
|
|
1149
|
-
this.closeDropdown();
|
|
1150
|
-
else
|
|
1151
|
-
this.isOpen = true;
|
|
1152
|
-
}
|
|
1153
|
-
closeDropdown() {
|
|
1154
|
-
this.isOpen = false;
|
|
1155
|
-
}
|
|
1156
|
-
;
|
|
1157
|
-
handleClickOutside(event) {
|
|
1158
|
-
if (this.isOpen) {
|
|
1159
|
-
this.closeDropdown();
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
ngAfterViewInit() {
|
|
1163
|
-
this.options = [...this.optionsQuery];
|
|
1164
|
-
this.optionsQuery.changes.subscribe(() => {
|
|
1165
|
-
this.options = [...this.optionsQuery];
|
|
1166
|
-
});
|
|
1167
|
-
this.cdr.detectChanges();
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
SelectComponent.decorators = [
|
|
1171
|
-
{ type: Component, args: [{
|
|
1172
|
-
selector: 'aeb-select',
|
|
1173
|
-
template: "<div class=\"aeb-dropdown-inner\" (clickOutside)=\"handleClickOutside($event)\">\n <div\n class=\"aeb-dropdown-float-label\"\n [ngClass]=\"{\n error: hasError,\n placeholder: !selectedOption,\n open: isOpen && selectedOption\n }\"\n (click)=\"openDropdown()\"\n >\n <ng-content select=\"label\"></ng-content>\n </div>\n <div\n class=\"aeb-dropdown-selected-item\"\n [ngClass]=\"{ open: isOpen, error: hasError, top: direction === 'top' }\"\n (click)=\"openDropdown()\"\n #toggle\n >\n <div *ngIf=\"selectedOption\" class=\"aeb-dropdown-selected-item-text\">\n {{ selectedOption ? selectedOption.label : placeholder }}\n </div>\n </div>\n\n <div\n class=\"aeb-dropdown-icon\"\n [ngClass]=\"{ active: isOpen }\"\n [ngSwitch]=\"disabled\"\n >\n <svg\n *ngSwitchCase=\"false\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.05037 9.36385C5.4204 8.73388 5.86657 7.65674 6.75748 7.65674H13.2428C14.1337 7.65674 14.5798 8.73388 13.9499 9.36385L10.7072 12.6065C10.3167 12.997 9.68353 12.997 9.29301 12.6065L6.05037 9.36385Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n <svg\n *ngSwitchCase=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"3\"\n y=\"7\"\n width=\"18\"\n height=\"16\"\n rx=\"3\"\n stroke=\"#A3AAAE\"\n stroke-width=\"2\"\n />\n <path\n d=\"M8.24682 7C8.08719 6.59903 8 6.16547 8 5.713C8 3.66237 9.79086 2 12 2C14.2091 2 16 3.66237 16 5.713C16 6.16547 15.9128 6.59903 15.7532 7\"\n stroke=\"#A3AAAE\"\n stroke-width=\"2\"\n />\n </svg>\n </div>\n\n <div\n class=\"aeb-dropdown-menu\"\n [ngClass]=\"{\n open: isOpen,\n error: hasError,\n top: direction === 'top',\n bottom: direction === 'bottom'\n }\"\n >\n <ul>\n <li\n class=\"aeb-dropdown-item\"\n (click)=\"setValue(option.value)\"\n *ngFor=\"let option of options\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n</div>\n",
|
|
1174
|
-
host: {
|
|
1175
|
-
class: 'aeb-dropdown',
|
|
1176
|
-
},
|
|
1177
|
-
encapsulation: ViewEncapsulation.None,
|
|
1178
|
-
providers: [
|
|
1179
|
-
{
|
|
1180
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1181
|
-
useExisting: forwardRef(() => SelectComponent),
|
|
1182
|
-
multi: true
|
|
1183
|
-
}
|
|
1184
|
-
],
|
|
1185
|
-
styles: [".aeb-dropdown{width:100%;position:relative;font-size:18px;cursor:pointer;display:flex;color:var(--darkblue)}.aeb-dropdown .aeb-dropdown-inner{width:100%}.aeb-dropdown .aeb-dropdown-icon{position:absolute;top:18px;right:16px;width:20px;height:20px;pointer-events:none;transition:all .2s cubic-bezier(.4,0,.2,1)}.aeb-dropdown .aeb-dropdown-icon.active{transform:rotate(180deg)}.aeb-dropdown .aeb-dropdown-selected-item{width:100%;height:56px;background:var(--white);border:2px solid var(--gray-primary);border-radius:10px;padding-left:16px;padding-right:26px;display:flex;align-items:center;box-sizing:border-box;color:var(--black)}.aeb-dropdown .aeb-dropdown-selected-item .aeb-dropdown-selected-item-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;margin-right:24px}.aeb-dropdown .aeb-dropdown-selected-item.open{border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-selected-item.open.top{border-radius:0 0 10px 10px;border-top:0}.aeb-dropdown .aeb-dropdown-selected-item.error{color:var(--red);border-color:var(--red);background:var(--white)}.aeb-dropdown .placeholder{color:var(--gray)}.aeb-dropdown .placeholder.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label{position:absolute;font-size:12px;color:var(--gray);top:-5px;left:10px;background:var(--white);padding:0 5px}.aeb-dropdown .aeb-dropdown-float-label.open{color:var(--blue)}.aeb-dropdown .aeb-dropdown-float-label.error{color:var(--red)}.aeb-dropdown .aeb-dropdown-float-label.placeholder{font-weight:400;font-size:18px;line-height:19px;top:18px;background:var(--white);border-radius:10px;padding-right:26px}.aeb-dropdown .aeb-dropdown-menu{position:absolute;width:100%;background:var(--white);border:2px solid var(--gray-primary);box-sizing:border-box;z-index:2;display:none}.aeb-dropdown .aeb-dropdown-menu ul{list-style:none;padding:0;margin:10px 0 0}.aeb-dropdown .aeb-dropdown-menu.bottom{top:100%;margin-top:-10px;border-top:none;border-radius:0 0 10px 10px}.aeb-dropdown .aeb-dropdown-menu.top{top:0;transform:translateY(-100%);border-radius:10px 10px 0 0;border-bottom:none;overflow:hidden}.aeb-dropdown .aeb-dropdown-menu.top ul{margin:0}.aeb-dropdown .aeb-dropdown-menu.open{display:block;border-color:var(--blue)}.aeb-dropdown .aeb-dropdown-menu.error{border-color:var(--red)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item{padding:15px 16px;border-top:1px solid var(--lightgray)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item.active{background-color:var(--white-active)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:hover{background-color:var(--white-hover)}.aeb-dropdown .aeb-dropdown-menu .aeb-dropdown-item:last-child{border-radius:0 0 8px 8px}"]
|
|
1186
|
-
},] }
|
|
1187
|
-
];
|
|
1188
|
-
SelectComponent.ctorParameters = () => [
|
|
1189
|
-
{ type: ChangeDetectorRef }
|
|
1190
|
-
];
|
|
1191
|
-
SelectComponent.propDecorators = {
|
|
1192
|
-
change: [{ type: Output }],
|
|
1193
|
-
hasError: [{ type: Input }],
|
|
1194
|
-
disabled: [{ type: Input }],
|
|
1195
|
-
direction: [{ type: Input }],
|
|
1196
|
-
optionsQuery: [{ type: ContentChildren, args: [OptionComponent,] }]
|
|
1197
|
-
};
|
|
1198
|
-
|
|
1199
|
-
class SelectModule {
|
|
1200
|
-
}
|
|
1201
|
-
SelectModule.decorators = [
|
|
1202
|
-
{ type: NgModule, args: [{
|
|
1203
|
-
declarations: [SelectComponent, OptionComponent],
|
|
1204
|
-
imports: [CommonModule, ClickOutsideModule],
|
|
1205
|
-
exports: [SelectComponent, OptionComponent],
|
|
1206
|
-
},] }
|
|
1207
|
-
];
|
|
1208
|
-
|
|
1209
|
-
class NewButtonComponent {
|
|
1210
|
-
constructor() {
|
|
1211
|
-
/**
|
|
1212
|
-
* button text label
|
|
1213
|
-
*/
|
|
1214
|
-
this.label = '';
|
|
1215
|
-
/**
|
|
1216
|
-
* show solid button or border button
|
|
1217
|
-
*/
|
|
1218
|
-
this.solid = true;
|
|
1219
|
-
/**
|
|
1220
|
-
* allows to take up 100% of the width
|
|
1221
|
-
*/
|
|
1222
|
-
this.fill = false;
|
|
1223
|
-
/**
|
|
1224
|
-
* button icon
|
|
1225
|
-
*/
|
|
1226
|
-
this.showIcon = false;
|
|
1227
|
-
/**
|
|
1228
|
-
* button dropdown icon
|
|
1229
|
-
*/
|
|
1230
|
-
this.showDropdown = false;
|
|
1231
|
-
/**
|
|
1232
|
-
* disable button
|
|
1233
|
-
*/
|
|
1234
|
-
this.disabled = false;
|
|
1235
|
-
this.clickEvent$ = new EventEmitter();
|
|
1236
|
-
this.isHovered = false;
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
NewButtonComponent.decorators = [
|
|
1240
|
-
{ type: Component, args: [{
|
|
1241
|
-
selector: 'aeb-new-button',
|
|
1242
|
-
template: "<div class=\"primary-button\" \n [ngClass]=\"{ 'primary-button--solid' : solid,\n 'primary-button--fill' : fill,\n 'primary-button--solid--disabled' : solid && disabled,\n 'primary-button--disabled' : !solid && disabled }\"\n (mouseover)=\"isHovered = true\"\n (mouseleave)=\"isHovered = false\"\n (touchstart)=\"clickEvent$.next()\"\n (click)=\"clickEvent$.next()\"\n >\n <div\n class=\"primary-button__label-wrapper\" [ngClass]=\"{ 'primary-button__label-wrapper--single' : !showIcon && !showDropdown }\"\n *ngIf=\"label || showDropdown || showIcon; else content\"\n >\n <div \n *ngIf=\"showIcon\"\n class=\"primary-button__label-image\"\n [style.background-image]=\" isHovered ? hoveredIconSource : iconSource\"\n ></div>\n <div>{{ label }}</div>\n <div *ngIf=\"showDropdown\" class=\"primary-button__arrow-down\"></div>\n </div>\n <ng-template #content>\n <div class=\"primary-button__label-wrapper\" [ngClass]=\"hoverClass\">\n <ng-content></ng-content>\n </div>\n </ng-template>\n</div>\n",
|
|
1243
|
-
styles: [".primary-button{box-sizing:border-box;display:inline-block;height:56px;border-radius:10px;background:var(--white);border:2px solid var(--blue);color:var(--blue);font-size:18px;cursor:pointer}.primary-button:focus{outline:none}.primary-button:hover{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.primary-button:active{border:2px double transparent;border-radius:10px;background-image:linear-gradient(#fff,#fff),linear-gradient(180deg,#11bef4,#02d1c5);background-origin:border-box;background-clip:content-box,border-box;color:var(--blue-turquoise)}.primary-button:active .primary-button__arrow-down{background:url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%226%22 viewBox%3D%220 0 10 6%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M0.999999 1L4.92929 4.92929C4.96834 4.96834 5.03166 4.96834 5.07071 4.92929L9 1%22 stroke%3D%22%2300B1E9%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.primary-button--fill{width:100%}.primary-button--disabled{border:2px solid var(--gray-primary);color:var(--gray-primary);cursor:default;pointer-events:none}.primary-button--disabled .primary-button__arrow-down{background:url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%226%22 viewBox%3D%220 0 10 6%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M0.999999 1L4.92929 4.92929C4.96834 4.96834 5.03166 4.96834 5.07071 4.92929L9 1%22 stroke%3D%22%23A3AAAE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.primary-button--solid{background:var(--blue);color:var(--white)}.primary-button--solid--disabled{color:var(--gray-primary);background:var(--gray-primary);border:2px solid var(--gray-primary);color:var(--white);cursor:default;pointer-events:none}.primary-button--solid .primary-button__arrow-down{background:url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%226%22 viewBox%3D%220 0 10 6%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M0.999999 1L4.92929 4.92929C4.96834 4.96834 5.03166 4.96834 5.07071 4.92929L9 1%22 stroke%3D%22white%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.primary-button--solid:hover{background:var(--blue-turquoise);border:2px solid var(--blue-turquoise);color:var(--white)}.primary-button--solid:active{border:2px solid #02d1c5;background-image:linear-gradient(180deg,#11bef4,#02d1c5);background-origin:border-box;background-clip:content-box,border-box;color:var(--white)}.primary-button--solid:active .primary-button__arrow-down{background:url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%226%22 viewBox%3D%220 0 10 6%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M0.999999 1L4.92929 4.92929C4.96834 4.96834 5.03166 4.96834 5.07071 4.92929L9 1%22 stroke%3D%22white%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.primary-button__label-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:15px 24px}.primary-button__label-wrapper--single{justify-content:space-around}.primary-button__label-image{width:22px;height:20px;background-size:contain;background-repeat:no-repeat;margin-right:10px}.primary-button__arrow-down{margin-left:8px;width:10px;height:6px;background:url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%226%22 viewBox%3D%220 0 10 6%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M0.999999 1L4.92929 4.92929C4.96834 4.96834 5.03166 4.96834 5.07071 4.92929L9 1%22 stroke%3D%22%232F88F0%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-size:cover;background-repeat:no-repeat}"]
|
|
1244
|
-
},] }
|
|
1245
|
-
];
|
|
1246
|
-
NewButtonComponent.propDecorators = {
|
|
1247
|
-
label: [{ type: Input }],
|
|
1248
|
-
solid: [{ type: Input }],
|
|
1249
|
-
fill: [{ type: Input }],
|
|
1250
|
-
showIcon: [{ type: Input }],
|
|
1251
|
-
iconSource: [{ type: Input }],
|
|
1252
|
-
hoveredIconSource: [{ type: Input }],
|
|
1253
|
-
showDropdown: [{ type: Input }],
|
|
1254
|
-
disabled: [{ type: Input }],
|
|
1255
|
-
hoverClass: [{ type: Input }],
|
|
1256
|
-
clickEvent$: [{ type: Output }]
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
|
-
class NewButtonModule {
|
|
1260
|
-
}
|
|
1261
|
-
NewButtonModule.decorators = [
|
|
1262
|
-
{ type: NgModule, args: [{
|
|
1263
|
-
declarations: [NewButtonComponent],
|
|
1264
|
-
imports: [CommonModule],
|
|
1265
|
-
exports: [NewButtonComponent]
|
|
1266
|
-
},] }
|
|
1267
|
-
];
|
|
1268
|
-
|
|
1269
|
-
class FileAttachComponent {
|
|
1270
|
-
constructor() {
|
|
1271
|
-
this.title = '';
|
|
1272
|
-
/**
|
|
1273
|
-
* showing document list
|
|
1274
|
-
*/
|
|
1275
|
-
this.documentList = '';
|
|
1276
|
-
this.maxFilesLength = 10;
|
|
1277
|
-
this.showPassportInput = true;
|
|
1278
|
-
this.showDocumentList = true;
|
|
1279
|
-
/**
|
|
1280
|
-
* message for file type
|
|
1281
|
-
*/
|
|
1282
|
-
this.fileTypeMessage = '';
|
|
1283
|
-
this.changeListEvent$ = new EventEmitter();
|
|
1284
|
-
this.maxFilesLengthError$ = new EventEmitter();
|
|
1285
|
-
this.files = [];
|
|
1286
|
-
this.isFileInFocus = false;
|
|
1287
|
-
}
|
|
1288
|
-
clearFileList() {
|
|
1289
|
-
this.files = [];
|
|
1290
|
-
this.changeListEvent$.emit(this.files);
|
|
1291
|
-
}
|
|
1292
|
-
getCaseByNumber(word) {
|
|
1293
|
-
const num = this.files.length;
|
|
1294
|
-
const cases = [2, 0, 1, 1, 1, 2];
|
|
1295
|
-
return word[(num % 100 > 4 && num % 100 < 20) ? 2 : cases[(num % 10 < 5) ? num % 10 : 5]];
|
|
1296
|
-
}
|
|
1297
|
-
chooseFile(file) {
|
|
1298
|
-
console.log(file);
|
|
1299
|
-
if (this.files.length >= this.maxFilesLength) {
|
|
1300
|
-
this.maxFilesLengthError$.emit();
|
|
1301
|
-
}
|
|
1302
|
-
else {
|
|
1303
|
-
this.files.push(file);
|
|
1304
|
-
this.changeListEvent$.emit(this.files);
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
checkFileInFocus(isInFocus) {
|
|
1308
|
-
this.isFileInFocus = isInFocus;
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
FileAttachComponent.decorators = [
|
|
1312
|
-
{ type: Component, args: [{
|
|
1313
|
-
selector: 'aeb-file-attach',
|
|
1314
|
-
template: "<div class=\"attach\" [ngClass]=\"{\n 'attach--file-in-focus' : isFileInFocus,\n 'attach--salary-portal': layoutMod === 'salaryPortal',\n 'attach--simple': layoutMod === 'simple'\n }\" aebDragAndDrop (fileChooseEvent$)=\"chooseFile($event)\" (fileInFocusEvent$)=\"checkFileInFocus($event)\">\n <div class=\"attach__title\" *ngIf=\"layoutMod !== 'simple'\">{{ title }}</div>\n <div *ngIf=\"showPassportInput && layoutMod !== 'salaryPortal' && layoutMod !== 'simple'\"\n class=\"attach__passport-wrapper\">\n <div class=\"attach__passport-item\">\n <div class=\"attach__passport-icon attach__passport-icon--primary\"></div>\n <div class=\"attach__passport-title\">\u041F\u0430\u0441\u043F\u043E\u0440\u0442 (\u0440\u0430\u0437\u0432\u043E\u0440\u043E\u0442 \u0441 \u043F\u043E\u0434\u043F\u0438\u0441\u044C\u044E \u0438 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0435\u0439)</div>\n </div>\n <div class=\"attach__passport-item\">\n <div class=\"attach__passport-icon attach__passport-icon--secondary\"></div>\n <div class=\"attach__passport-title\">\u041F\u0430\u0441\u043F\u043E\u0440\u0442 (\u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u0441 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439)</div>\n </div>\n </div>\n <div *ngIf=\"showDocumentList && layoutMod !== 'salaryPortal' && layoutMod !=='simple'\" class=\"attach__doclist\">{{\n documentList }}</div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__upload-icon\">\n <svg width=\"70\" height=\"60\" viewBox=\"0 0 70 60\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M56.9299 17.0405C56.1814 12.5554 53.979 8.46218 50.6107 5.356C46.8682 1.90145 42.0029 0 36.9361 0C33.0208 0 29.2063 1.13216 25.9387 3.26585C23.2182 5.03667 20.9583 7.43163 19.3605 10.2475C18.6695 10.1169 17.9498 10.0443 17.2301 10.0443C11.1125 10.0443 6.13202 15.0665 6.13202 21.2353C6.13202 22.0336 6.21838 22.8029 6.36233 23.5577C2.40387 26.4607 0 31.1345 0 36.1131C0 40.1337 1.48262 44.0382 4.18877 47.1299C6.96689 50.2941 10.6375 52.1665 14.5527 52.3843C14.5959 52.3843 14.6247 52.3843 14.6679 52.3843H27.0471C28.1267 52.3843 28.9903 51.5134 28.9903 50.4247C28.9903 49.3361 28.1267 48.4652 27.0471 48.4652H14.7255C8.83817 48.1024 3.88649 42.4561 3.88649 36.0985C3.88649 31.9908 6.07444 28.1589 9.60107 26.0833C10.4215 25.6043 10.767 24.6027 10.4503 23.7028C10.1625 22.919 10.0185 22.0917 10.0185 21.2063C10.0185 17.2001 13.2572 13.9343 17.2301 13.9343C18.0794 13.9343 18.9143 14.0794 19.6915 14.3697C20.6416 14.7181 21.6924 14.2827 22.1242 13.3682C24.816 7.6058 30.6313 3.88999 36.9504 3.88999C45.4431 3.88999 52.4532 10.3056 53.2593 18.8113C53.3457 19.6967 54.0078 20.4079 54.8715 20.5531C61.277 21.6562 66.1135 27.6218 66.1135 34.4293C66.1135 41.6432 60.4853 47.9137 53.5472 48.4507H42.9385C41.8589 48.4507 40.9953 49.3216 40.9953 50.4102C40.9953 51.4988 41.8589 52.3697 42.9385 52.3697H53.6192C53.6623 52.3697 53.7055 52.3697 53.7631 52.3697C58.1534 52.0504 62.2558 50.0183 65.3074 46.6218C68.3447 43.2544 70 38.9289 70 34.4293C69.9856 26.2865 64.4725 19.0435 56.9299 17.0405Z\"\n fill=\"#F0F0F0\" />\n <path\n d=\"M46.6828 36.5255C47.4469 35.8634 47.4469 34.8014 46.6828 34.1393L36.3754 25.2068C36.015 24.8944 35.5104 24.707 35.0059 24.707C34.5013 24.707 33.9967 24.8819 33.6363 25.2068L23.3289 34.1393C22.5648 34.8014 22.5648 35.8634 23.3289 36.5255C23.7037 36.8503 24.2083 37.0252 24.6984 37.0252C25.1886 37.0252 25.6931 36.8628 26.0679 36.5255L33.0597 30.4663V58.3134C33.0597 59.2504 33.9247 60 35.0059 60C36.0871 60 36.952 59.2504 36.952 58.3134V30.4663L43.9438 36.5255C44.6934 37.1876 45.9188 37.1876 46.6828 36.5255Z\"\n fill=\"#F0F0F0\" />\n </svg>\n </div>\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__info-txt\">\n \u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430\n </div>\n <div\n [ngClass]=\"{'attach__button-wrapper--simple': layoutMod === 'simple', 'attach__button-wrapper': layoutMod !== 'simple'}\">\n <div *ngIf=\"layoutMod === 'salaryPortal'\" class=\"attach__btn-left\">\n \u0438\u043B\u0438\n </div>\n <aeb-new-button class=\"attach__images\" [label]=\"'\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B'\" [solid]=\"false\" [showIcon]=\"true\"\n [iconSource]=\"'url(clip.svg)'\" [hoveredIconSource]=\"'url(clip_blue.svg)'\" (click)=\"fileInput.click()\">\n </aeb-new-button>\n <input #fileInput type=\"file\" (change)=\"chooseFile($event.target.files[0])\" style=\"display: none;\">\n <div class=\"attach__file-message\">\n <span *ngIf=\"files?.length === 0\">{{ fileTypeMessage }}</span>\n <span *ngIf=\"files?.length > 0\">\n {{ files?.length === 1 ? '\u0412\u044B\u0431\u0440\u0430\u043D' : '\u0412\u044B\u0431\u0440\u0430\u043D\u043E' }} {{ files.length }} {{ getCaseByNumber(['\u0444\u0430\u0439\u043B', '\u0444\u0430\u0439\u043B\u0430',\n '\u0444\u0430\u0439\u043B\u043E\u0432']) }}\n </span>\n <div *ngIf=\"files?.length > 0\" class=\"attach__remove-icon\" (click)=\"clearFileList()\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 10.7609L11.0268 4.73413\" stroke=\"#27303E\" stroke-linecap=\"round\" />\n <path d=\"M11.0268 10.7609L5 4.73413\" stroke=\"#27303E\" stroke-linecap=\"round\" />\n </svg>\n </div>\n </div>\n </div>\n</div>",
|
|
1315
|
-
styles: [".attach{width:100%;box-sizing:border-box;padding:24px;border:2px dashed var(--gray-primary);border-radius:10px;color:var(--darkblue)}.attach--file-in-focus{border:2px dashed var(--blue)}.attach__title{font-size:18px;line-height:20px}.attach__passport-wrapper{display:flex;margin-top:22px;flex-wrap:wrap}.attach__passport-item{display:flex;align-items:center;max-width:488px}.attach__passport-icon{width:52px;height:52px;background-size:cover;background-repeat:no-repeat}.attach__passport-icon--primary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01463 45.3318C0.679025 45.4371 0.340873 45.546 0 45.6586L-1.6159e-06 8.69112C8.78378 5.55828 16.8649 5.55828 26 8.69112C34.7838 5.55828 42.8649 5.55828 52 8.69111L52 45.6586C51.6594 45.5301 51.3213 45.4068 50.9854 45.2887C42.6355 42.3535 35.6708 42.6173 27.0146 45.3318C26.679 45.4371 26.3409 45.546 26 45.6586C25.6594 45.5301 25.3213 45.4068 24.9854 45.2887C16.6355 42.3535 9.67078 42.6173 1.01463 45.3318ZM25.3659 44.5009C17.0216 41.6407 9.5896 41.6409 1.01463 44.2847L1.01463 9.39704C9.09486 6.65387 16.9544 6.64308 25.3659 9.39704L25.3659 44.5009ZM50.9854 44.2299C42.6411 41.3698 35.2091 41.8572 26.6341 44.5009L26.6341 9.39704C34.7144 6.65387 42.574 6.65188 50.9854 9.40584L50.9854 44.2299Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M34.2439 40.3538C34.5926 40.3068 34.9306 40.2638 35.2585 40.2248C41.1672 39.5207 43.844 40.077 47.8146 41.0424C48.0035 41.0883 48.1952 41.1351 48.3904 41.1828C48.5347 41.2181 48.681 41.2538 48.8293 41.2899L48.8293 30.0565L48.726 30.026C44.2124 28.6953 41.334 27.8467 34.2439 29.1203L34.2439 40.3538ZM35.2585 39.2191C38.2835 38.8647 40.5098 38.834 42.5176 39.0283C44.3509 39.2057 45.9803 39.5699 47.8146 40.0139L47.8146 30.8001C45.8531 30.2254 44.244 29.7862 42.3944 29.5947C40.5023 29.3987 38.3207 29.4599 35.2585 29.9598L35.2585 39.2191Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M4.43901 38.6829L4.43901 12.6829L5.7073 12.6829L5.7073 38.6829L4.43901 38.6829Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M31.7073 26L31.7073 10.7805L32.9756 10.7805L32.9756 26L31.7073 26Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M37.4146 24.4399L37.4146 11.9583L38.4293 11.9583L38.4293 24.4399L37.4146 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M40.5854 23.8157L40.5854 11.3341L41.6 11.3341L41.6 23.8157L40.5854 23.8157Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M43.7561 24.4399L43.7561 15.7028L44.7707 15.7028L44.7707 24.4399L43.7561 24.4399Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M7.60973 34.4252L7.60973 16.9509L8.62436 16.9509L8.62436 34.4252L7.60973 34.4252Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M19.2781 25.3758C19.2781 23.687 17.8869 22.3179 16.1708 22.3179C14.4546 22.3179 13.0634 23.687 13.0634 25.3758C13.0634 27.0647 14.4546 28.4338 16.1708 28.4338C17.8869 28.4338 19.2781 27.0647 19.2781 25.3758ZM20.2927 25.3758C20.2927 23.1355 18.4473 21.3193 16.1708 21.3193C13.8943 21.3193 12.0488 23.1355 12.0488 25.3758C12.0488 27.6162 13.8943 29.4324 16.1708 29.4324C18.4473 29.4324 20.2927 27.6162 20.2927 25.3758Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M41.5366 32.5529C42.7624 32.5529 43.7561 33.5308 43.7561 34.7372C43.7561 35.9435 42.7624 36.9215 41.5366 36.9215C40.3108 36.9215 39.3171 35.9435 39.3171 34.7372C39.3171 33.5308 40.3108 32.5529 41.5366 32.5529Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M48.1951 30.0566C46.8496 30.0566 45.5593 30.5826 44.6079 31.5189C43.6564 32.4552 43.122 33.7251 43.122 35.0492C43.122 36.3734 43.6564 37.6433 44.6079 38.5796C45.5593 39.5159 46.8496 40.0419 48.1951 40.0419L48.1951 30.0566Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__passport-icon--secondary{background:url(\"data:image/svg+xml,%3Csvg width%3D%2252%22 height%3D%2252%22 viewBox%3D%220 0 52 52%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M1.01464 45.3265C0.679027 45.4334 0.340875 45.5441 1.64196e-06 45.6585L0 8.0948C8.78378 4.91143 16.8649 4.91143 26 8.0948C34.7838 4.91143 42.8649 4.91143 52 8.0948V45.6585C51.6594 45.5279 51.3213 45.4027 50.9854 45.2827C42.6355 42.3002 35.6708 42.5682 27.0146 45.3265C26.679 45.4334 26.3409 45.5441 26 45.6585C25.6594 45.5279 25.3213 45.4027 24.9854 45.2827C16.6355 42.3002 9.67078 42.5682 1.01464 45.3265ZM25.5014 44.3902C17.1571 41.4839 9.58961 41.5761 1.01464 44.2624L1.01463 8.81211C9.09486 6.0247 17.09 6.02268 25.5014 8.82105V44.3902ZM50.9854 44.2068C42.6411 41.3005 35.0942 41.7038 26.5193 44.3902V8.82105C34.5995 6.03364 42.574 6.02268 50.9854 8.82105V44.2068Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 20.6097C29.8229 20.5407 30.1613 20.4749 30.5023 20.4122C36.2246 19.3609 42.7023 19.2144 47.8145 20.3603C48.1591 20.4375 48.4976 20.5206 48.8291 20.6097L48.8291 10.7842C43.2935 8.80158 35.5742 8.80479 29.4877 10.7842L29.4877 20.6097ZM30.5023 19.381C36.1912 18.3575 42.6253 18.203 47.8145 19.3214L47.8145 11.5123C42.7778 9.91067 36.0293 9.90932 30.5023 11.5324L30.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M3.48767 20.6097C3.8229 20.5407 4.16126 20.4749 4.5023 20.4122C10.2246 19.3609 16.7023 19.2144 21.8145 20.3603C22.1591 20.4375 22.4976 20.5206 22.8291 20.6097L22.8291 10.7842C17.2935 8.80158 9.57424 8.80479 3.48767 10.7842L3.48767 20.6097ZM4.5023 19.381C10.1912 18.3575 16.6253 18.203 21.8145 19.3214L21.8145 11.5123C16.7778 9.91067 10.0293 9.90932 4.5023 11.5324L4.5023 19.381Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M29.4877 35.0918C29.8588 35.0154 30.2338 34.9428 30.612 34.8742C36.2663 33.8486 42.6426 33.7058 47.7048 34.818C48.0874 34.902 48.4625 34.9932 48.8291 35.0918L48.8291 25.2662C43.2935 23.2836 35.5742 23.2868 29.4877 25.2662L29.4877 35.0918ZM30.612 33.732C36.2304 32.7362 42.5606 32.585 47.7048 33.668L47.7048 26.0747C42.723 24.512 36.0771 24.5104 30.612 26.0967L30.612 33.732Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 11.7317H19.3415V12.7463H6.65854V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 11.7317H45.3415V12.7463H32.6585V11.7317Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 26.3171H45.3415V27.3318H32.6585V26.3171Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M6.65854 15.5365H19.3415V16.5511H6.65854V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 15.5365H45.3415V16.5511H32.6585V15.5365Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M32.6585 30.1219H45.3415V31.1366H32.6585V30.1219Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M8.56107 13.6342H16.805V14.6488H8.56107V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 13.6342H42.805V14.6488H34.5611V13.6342Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3Cpath d%3D%22M34.5611 28.2195H42.805V29.2341H34.5611V28.2195Z%22 fill%3D%22%23A3AAAE%22%2F%3E%3C%2Fsvg%3E\")}.attach__passport-title{font-family:Roboto-Regular;margin-left:16px;max-width:175px}.attach__doclist,.attach__passport-title{font-size:12px;line-height:14px;color:var(--gray-primary)}.attach__doclist{margin-top:22px;max-width:488px}.attach__button-wrapper{margin-top:16px;display:flex;align-items:center}@media screen and (max-width:767px){.attach__button-wrapper{flex-direction:column;align-items:flex-start}}.attach__file-message{font-size:14px;line-height:16px;margin-left:20px;display:flex;align-items:center}@media screen and (max-width:767px){.attach__file-message{margin-left:0;margin-top:20px}}.attach__remove-icon{margin-left:25px;width:16px;height:16px;cursor:pointer}.attach__remove-icon:hover svg path{stroke:var(--blue)}.attach__images:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2222%22 height%3D%2222%22 viewBox%3D%220 0 22 22%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263%22 stroke%3D%22%232F88F0%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background:url(\"data:image/svg+xml,%3Csvg width%3D%2222%22 height%3D%2222%22 viewBox%3D%220 0 22 22%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M21 10.376L11.5445 19.2938C10.3861 20.3862 8.81499 21 7.1768 21C5.53861 21 3.96752 20.3862 2.80914 19.2938C1.65077 18.2013 1 16.7195 1 15.1745C1 13.6295 1.65077 12.1477 2.80914 11.0553L12.2647 2.1375C13.0369 1.40917 14.0843 1 15.1765 1C16.2686 1 17.316 1.40917 18.0882 2.1375C18.8605 2.86583 19.2943 3.85365 19.2943 4.88366C19.2943 5.91367 18.8605 6.9015 18.0882 7.62983L8.6224 16.5476C8.23627 16.9118 7.71257 17.1163 7.16651 17.1163C6.62045 17.1163 6.09675 16.9118 5.71063 16.5476C5.3245 16.1834 5.10758 15.6895 5.10758 15.1745C5.10758 14.6595 5.3245 14.1656 5.71063 13.8014L14.4459 5.57263%22 stroke%3D%22%2300B1E9%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\")}.attach--salary-portal{display:flex;flex-direction:column;justify-content:center;align-items:center}.attach--salary-portal .attach__upload-icon{margin-top:16px}.attach--salary-portal .attach__info-txt{margin-top:16px;font-size:16px;color:var(--gray-primary)}.attach--salary-portal .attach__btn-left{margin-right:20px;font-size:14px;color:var(--gray-primary)}.attach--simple{width:100%;box-sizing:border-box;padding:0;border:none;color:var(--darkblue)}.attach__button-wrapper--simple{display:flex;align-items:center}@media screen and (max-width:767px){.attach__button-wrapper--simple{flex-direction:column;align-items:flex-start}}"]
|
|
1316
|
-
},] }
|
|
1317
|
-
];
|
|
1318
|
-
FileAttachComponent.ctorParameters = () => [];
|
|
1319
|
-
FileAttachComponent.propDecorators = {
|
|
1320
|
-
title: [{ type: Input }],
|
|
1321
|
-
documentList: [{ type: Input }],
|
|
1322
|
-
maxFilesLength: [{ type: Input }],
|
|
1323
|
-
showPassportInput: [{ type: Input }],
|
|
1324
|
-
showDocumentList: [{ type: Input }],
|
|
1325
|
-
layoutMod: [{ type: Input }],
|
|
1326
|
-
fileTypeMessage: [{ type: Input }],
|
|
1327
|
-
changeListEvent$: [{ type: Output }],
|
|
1328
|
-
maxFilesLengthError$: [{ type: Output }]
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
|
-
class DragAndDropDirective {
|
|
1332
|
-
constructor() {
|
|
1333
|
-
this.fileChooseEvent$ = new EventEmitter();
|
|
1334
|
-
this.fileInFocusEvent$ = new EventEmitter();
|
|
1335
|
-
}
|
|
1336
|
-
onDragOver(event) {
|
|
1337
|
-
event.preventDefault();
|
|
1338
|
-
event.stopPropagation();
|
|
1339
|
-
this.fileInFocusEvent$.emit(true);
|
|
1340
|
-
}
|
|
1341
|
-
onDragLeave(event) {
|
|
1342
|
-
event.preventDefault();
|
|
1343
|
-
event.stopPropagation();
|
|
1344
|
-
this.fileInFocusEvent$.emit(false);
|
|
1345
|
-
}
|
|
1346
|
-
onDrop(event) {
|
|
1347
|
-
event.preventDefault();
|
|
1348
|
-
event.stopPropagation();
|
|
1349
|
-
const files = event.dataTransfer.files;
|
|
1350
|
-
if (files.length > 0) {
|
|
1351
|
-
this.fileChooseEvent$.emit(files[0]);
|
|
1352
|
-
}
|
|
1353
|
-
this.fileInFocusEvent$.emit(false);
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
DragAndDropDirective.decorators = [
|
|
1357
|
-
{ type: Directive, args: [{
|
|
1358
|
-
selector: '[aebDragAndDrop]'
|
|
1359
|
-
},] }
|
|
1360
|
-
];
|
|
1361
|
-
DragAndDropDirective.ctorParameters = () => [];
|
|
1362
|
-
DragAndDropDirective.propDecorators = {
|
|
1363
|
-
fileChooseEvent$: [{ type: Output }],
|
|
1364
|
-
fileInFocusEvent$: [{ type: Output }],
|
|
1365
|
-
onDragOver: [{ type: HostListener, args: ['dragover', ['$event'],] }],
|
|
1366
|
-
onDragLeave: [{ type: HostListener, args: ['dragleave', ['$event'],] }],
|
|
1367
|
-
onDrop: [{ type: HostListener, args: ['drop', ['$event'],] }]
|
|
1368
|
-
};
|
|
1369
|
-
|
|
1370
|
-
class FileAttachModule {
|
|
1371
|
-
}
|
|
1372
|
-
FileAttachModule.decorators = [
|
|
1373
|
-
{ type: NgModule, args: [{
|
|
1374
|
-
declarations: [FileAttachComponent, DragAndDropDirective],
|
|
1375
|
-
imports: [CommonModule, NewButtonModule],
|
|
1376
|
-
exports: [FileAttachComponent],
|
|
1377
|
-
},] }
|
|
1378
|
-
];
|
|
1379
|
-
|
|
1380
|
-
class CreditItemCardComponent {
|
|
1381
|
-
constructor() {
|
|
1382
|
-
this.buttonClickEvent$ = new EventEmitter();
|
|
1383
|
-
this.infoClickEvent$ = new EventEmitter();
|
|
1384
|
-
}
|
|
1385
|
-
ngAfterViewInit() {
|
|
1386
|
-
this.cardComponent.nativeElement.style.backgroundImage = `url('/assets/images/product-cards/${this.cardInfo.image}')`;
|
|
1387
|
-
this.cardComponent.nativeElement.style.backgroundColor = this.cardInfo.backgroundColor;
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
CreditItemCardComponent.decorators = [
|
|
1391
|
-
{ type: Component, args: [{
|
|
1392
|
-
selector: 'aeb-credit-item-card',
|
|
1393
|
-
template: "<div class=\"credit-item-card\" #creditItemCard>\n <div class=\"credit-item-card__info-icon\" (click)=\"infoClickEvent$.emit()\"></div>\n <div class=\"credit-item-card__title-wrapper\" (click)=\"buttonClickEvent$.emit()\">\n <div class=\"credit-item-card__title\">\u00AB{{ cardInfo?.title }}\u00BB</div>\n <div class=\"credit-item-card__title-text\">{{ cardInfo?.caption }}</div>\n </div>\n <div class=\"credit-item-card__details-wrapper\">\n <div class=\"credit-item-card__credit-details\">\n <div *ngIf=\"cardInfo?.details?.time\" class=\"credit-item-card__credit-details-item\">\n <div class=\"credit-item-card__credit-details-item-title\">\u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430</div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\u0434\u043E {{ cardInfo?.details?.time }} {{ cardInfo?.details?.timeMeasure }}</div>\n </div>\n <div *ngIf=\"cardInfo?.details?.rate\" class=\"credit-item-card__credit-details-item\">\n <div class=\"credit-item-card__credit-details-item-title\">\u0421\u0442\u0430\u0432\u043A\u0430</div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">{{ cardInfo?.details?.rate }} %</div>\n </div>\n <div *ngIf=\"cardInfo?.details?.amount\" class=\"credit-item-card__credit-details-item\">\n <div class=\"ccredit-item-card__credit-details-item-title\">\u0421\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430</div>\n <div class=\"credit-item-card__credit-details-item-separator\"></div>\n <div class=\"credit-item-card__credit-details-item-value\">\u0434\u043E {{ cardInfo?.details?.amount }} {{ cardInfo?.details?.amountMeasure }}</div>\n </div>\n </div>\n </div>\n <div class=\"credit-item-card__button-wrapper\">\n <aeb-new-button\n [label]=\"'\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442'\"\n (click)=\"buttonClickEvent$.emit()\"\n ></aeb-new-button>\n </div>\n</div>",
|
|
1394
|
-
styles: [".credit-item-card{box-sizing:border-box;position:relative;width:100%;height:359px;border-radius:8px;padding:32px;background-size:contain;background-repeat:no-repeat;background-position:100%;zoom:98%;color:var(--darkblue)}@media screen and (max-width:767px){.credit-item-card{zoom:54%}}@media screen and (max-width:374px){.credit-item-card{zoom:48%}}.credit-item-card__info-icon{position:absolute;width:27px;height:27px;right:38px;background:url(\"data:image/svg+xml,%3Csvg width%3D%2248%22 height%3D%2248%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z%22 fill%3D%22white%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M24 32V24%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3Cpath d%3D%22M24 16H24.02%22 stroke%3D%22%2394A8BE%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\");background-size:cover;background-repeat:no-repeat;cursor:pointer}.credit-item-card__title-wrapper{cursor:pointer;display:inline-flex;flex-direction:column;align-items:flex-start}.credit-item-card__title{display:inline-block;font-weight:500;font-size:32px;line-height:42px}.credit-item-card__title-text{display:inline-block;font-size:18px;line-height:42px}.credit-item-card__details-wrapper{margin-top:48px;width:375px}.credit-item-card__button-wrapper{margin-top:16px}.credit-item-card__credit-details{width:100%;height:90px;display:flex;justify-content:space-between}.credit-item-card__credit-details-item{display:flex;flex-direction:column;align-items:flex-start}.credit-item-card__credit-details-item-title{font-size:16px;line-height:20px}.credit-item-card__credit-details-item-separator{width:50px;margin-top:16px;border-top:1px solid var(--darkblue);border-bottom:1px solid var(--darkblue)}.credit-item-card__credit-details-item-value{font-weight:500;font-size:24px;line-height:52px}"]
|
|
1395
|
-
},] }
|
|
1396
|
-
];
|
|
1397
|
-
CreditItemCardComponent.ctorParameters = () => [];
|
|
1398
|
-
CreditItemCardComponent.propDecorators = {
|
|
1399
|
-
cardInfo: [{ type: Input }],
|
|
1400
|
-
buttonClickEvent$: [{ type: Output }],
|
|
1401
|
-
infoClickEvent$: [{ type: Output }],
|
|
1402
|
-
cardComponent: [{ type: ViewChild, args: ['creditItemCard',] }]
|
|
1403
|
-
};
|
|
1404
|
-
|
|
1405
|
-
class CreditItemCardModule {
|
|
1406
|
-
}
|
|
1407
|
-
CreditItemCardModule.decorators = [
|
|
1408
|
-
{ type: NgModule, args: [{
|
|
1409
|
-
declarations: [CreditItemCardComponent],
|
|
1410
|
-
imports: [
|
|
1411
|
-
CommonModule,
|
|
1412
|
-
NewButtonModule,
|
|
1413
|
-
],
|
|
1414
|
-
exports: [CreditItemCardComponent]
|
|
1415
|
-
},] }
|
|
1416
|
-
];
|
|
1417
|
-
|
|
1418
|
-
class TagTabComponent {
|
|
1419
|
-
constructor() {
|
|
1420
|
-
this.isActive = false;
|
|
1421
|
-
this.label = '';
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
TagTabComponent.decorators = [
|
|
1425
|
-
{ type: Component, args: [{
|
|
1426
|
-
selector: 'aeb-tag-tab',
|
|
1427
|
-
template: "<div class=\"tag\" [ngClass]=\"{ 'tag--active' : isActive }\">{{ label }}</div>",
|
|
1428
|
-
styles: [".tag{box-sizing:border-box;display:inline-flex;justify-content:space-around;align-items:center;height:48px;padding:14px 24px;margin-right:16px;border-radius:64px;color:var(--blue);background:var(--white);border:2px solid var(--blue);font-size:16px;line-height:20px;vertical-align:baseline;cursor:pointer}.tag--active{color:var(--white);background:var(--blue)}"]
|
|
1429
|
-
},] }
|
|
1430
|
-
];
|
|
1431
|
-
TagTabComponent.propDecorators = {
|
|
1432
|
-
isActive: [{ type: Input }],
|
|
1433
|
-
label: [{ type: Input }]
|
|
1434
|
-
};
|
|
1435
|
-
|
|
1436
|
-
class TagTabModule {
|
|
1437
|
-
}
|
|
1438
|
-
TagTabModule.decorators = [
|
|
1439
|
-
{ type: NgModule, args: [{
|
|
1440
|
-
declarations: [TagTabComponent],
|
|
1441
|
-
imports: [CommonModule],
|
|
1442
|
-
exports: [TagTabComponent]
|
|
1443
|
-
},] }
|
|
1444
|
-
];
|
|
1445
|
-
|
|
1446
|
-
class FieldSliderComponent {
|
|
1447
|
-
constructor(renderer) {
|
|
1448
|
-
this.renderer = renderer;
|
|
1449
|
-
this.label = '';
|
|
1450
|
-
this.prefix = '₽';
|
|
1451
|
-
this.min = 1000;
|
|
1452
|
-
this.max = 5000000;
|
|
1453
|
-
this.step = 1000;
|
|
1454
|
-
this.valueSeparator = ' ';
|
|
1455
|
-
this.isPressed = false;
|
|
1456
|
-
this.handleStartDragging = (event) => {
|
|
1457
|
-
event.preventDefault();
|
|
1458
|
-
if (event.clientX) {
|
|
1459
|
-
this.handleChangeValue(event.clientX);
|
|
1460
|
-
}
|
|
1461
|
-
};
|
|
1462
|
-
this.handleStartSwiping = (event) => {
|
|
1463
|
-
event.preventDefault();
|
|
1464
|
-
if (event.touches && event.touches.length) {
|
|
1465
|
-
const finger = event.touches[0];
|
|
1466
|
-
this.handleChangeValue(finger.clientX);
|
|
1467
|
-
}
|
|
1468
|
-
};
|
|
1469
|
-
this.handleEndDragging = (event) => {
|
|
1470
|
-
event.preventDefault();
|
|
1471
|
-
this.isPressed = false;
|
|
1472
|
-
document.removeEventListener('mousemove', this.handleStartDragging);
|
|
1473
|
-
document.removeEventListener('mouseup', this.handleEndDragging);
|
|
1474
|
-
};
|
|
1475
|
-
this.handleEndSwipping = (event) => {
|
|
1476
|
-
event.preventDefault();
|
|
1477
|
-
this.isPressed = false;
|
|
1478
|
-
document.removeEventListener('touchmove', this.handleStartSwiping);
|
|
1479
|
-
document.removeEventListener('touchend', this.handleEndSwipping);
|
|
1480
|
-
document.removeEventListener('touchcancel', this.handleEndSwipping);
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
get position() {
|
|
1484
|
-
const position = ((this.value - this.min) / (this.max - this.min)) * 100;
|
|
1485
|
-
if (position < 0) {
|
|
1486
|
-
return 0;
|
|
1487
|
-
}
|
|
1488
|
-
if (position > 100) {
|
|
1489
|
-
return 100;
|
|
1490
|
-
}
|
|
1491
|
-
return position;
|
|
1492
|
-
}
|
|
1493
|
-
ngOnInit() {
|
|
1494
|
-
this.value = Number.isInteger(this.value) ? this.value : this.max / 2;
|
|
1495
|
-
this.updateDisplayValue();
|
|
1496
|
-
}
|
|
1497
|
-
ngAfterViewInit() {
|
|
1498
|
-
this.renderer.listen(this.slider.nativeElement, 'touchstart', (event) => {
|
|
1499
|
-
event.preventDefault();
|
|
1500
|
-
this.input.nativeElement.blur();
|
|
1501
|
-
this.handleStartSwiping(event);
|
|
1502
|
-
document.addEventListener('touchmove', this.handleStartSwiping, { passive: false });
|
|
1503
|
-
document.addEventListener('touchend', this.handleEndSwipping);
|
|
1504
|
-
document.addEventListener('touchcancel', this.handleEndSwipping);
|
|
1505
|
-
});
|
|
1506
|
-
this.renderer.listen(this.slider.nativeElement, 'mousedown', (event) => {
|
|
1507
|
-
event.preventDefault();
|
|
1508
|
-
this.input.nativeElement.blur();
|
|
1509
|
-
this.handleStartDragging(event);
|
|
1510
|
-
document.addEventListener('mousemove', this.handleStartDragging, false);
|
|
1511
|
-
document.addEventListener('mouseup', this.handleEndDragging, false);
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
writeValue(value) {
|
|
1515
|
-
if (value) {
|
|
1516
|
-
this.value = value;
|
|
1517
|
-
this.updateDisplayValue();
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
registerOnChange(fn) {
|
|
1521
|
-
this.onChange = fn;
|
|
1522
|
-
}
|
|
1523
|
-
registerOnTouched() { }
|
|
1524
|
-
updateDisplayValue() {
|
|
1525
|
-
this.displayValue = this.value.toLocaleString('ru') + ' ' + this.prefix;
|
|
1526
|
-
}
|
|
1527
|
-
setCurrentDisplayValue() {
|
|
1528
|
-
this.displayValue = this.value;
|
|
1529
|
-
}
|
|
1530
|
-
changeValueByInput(value) {
|
|
1531
|
-
const parsedValue = parseInt(value, 10);
|
|
1532
|
-
if (parsedValue % this.step !== 0) {
|
|
1533
|
-
this.value = (Math.round(parsedValue / this.step) * this.step);
|
|
1534
|
-
}
|
|
1535
|
-
else {
|
|
1536
|
-
this.value = parsedValue;
|
|
1537
|
-
}
|
|
1538
|
-
if (parsedValue < this.min || isNaN(parsedValue)) {
|
|
1539
|
-
this.value = this.min;
|
|
1540
|
-
}
|
|
1541
|
-
if (parsedValue > this.max) {
|
|
1542
|
-
this.value = this.max;
|
|
1543
|
-
}
|
|
1544
|
-
if (typeof this.onChange === 'function') {
|
|
1545
|
-
this.onChange(this.value);
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
handleChangeValue(positionX) {
|
|
1549
|
-
this.isPressed = true;
|
|
1550
|
-
const offsetSlider = this.slider.nativeElement.getBoundingClientRect().left;
|
|
1551
|
-
const widthSlider = this.slider.nativeElement.getBoundingClientRect().width;
|
|
1552
|
-
let left = positionX - offsetSlider;
|
|
1553
|
-
if (left < 0) {
|
|
1554
|
-
left = 0;
|
|
1555
|
-
}
|
|
1556
|
-
if (left > widthSlider) {
|
|
1557
|
-
left = widthSlider;
|
|
1558
|
-
}
|
|
1559
|
-
const deltaX = (left / widthSlider) * (this.max - this.min);
|
|
1560
|
-
this.value = Math.round(deltaX / this.step) * this.step + this.min;
|
|
1561
|
-
this.updateDisplayValue();
|
|
1562
|
-
if (typeof this.onChange === 'function') {
|
|
1563
|
-
this.onChange(this.value);
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
FieldSliderComponent.decorators = [
|
|
1568
|
-
{ type: Component, args: [{
|
|
1569
|
-
selector: 'aeb-field-slider',
|
|
1570
|
-
template: "<div class=\"field-slider\">\n <aeb-form-field class=\"field-slider__field-wrapper\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n #input\n aebInput\n aebNumbersOnly\n type=\"string\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"updateDisplayValue()\"\n />\n </aeb-form-field>\n <div class=\"field-slider__line-wrapper\" #slider>\n <div class=\"field-slider__line\">\n <div\n class=\"field-slider__line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n </div>\n <div class=\"field-slider__limits\">\n <div>{{ min | number: \"1.0-0\" | replace: ',' : valueSeparator }} {{ prefix }}</div>\n <div>{{ max | number: \"1.0-0\" | replace: ',' : valueSeparator }} {{ prefix }}</div>\n </div>\n</div>",
|
|
1571
|
-
providers: [
|
|
1572
|
-
{
|
|
1573
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1574
|
-
useExisting: forwardRef(() => FieldSliderComponent),
|
|
1575
|
-
multi: true
|
|
1576
|
-
}
|
|
1577
|
-
],
|
|
1578
|
-
styles: [".field-slider{width:100%;display:flex;flex-direction:column;align-items:center;color:var(--darkblue)}.field-slider__field-wrapper{width:100%}.field-slider__field-wrapper input:focus{outline:none}.field-slider__line-wrapper{width:calc(100% - 20px);display:flex;align-items:center}.field-slider__line{width:100%;height:2px;border-radius:2px;background-color:var(--gray-primary);position:relative;top:-2px}.field-slider__line-position{background-color:var(--blue);height:calc(100% + 2px);width:100%;border-radius:2px;position:absolute;top:-2px;left:0}.field-slider__line-position.pressed,.field-slider__line-position.pressed:after,.field-slider__line-position:hover,.field-slider__line-position:hover:after{background-color:var(--blue-turquoise)}.field-slider__line-position:after{cursor:pointer;content:\"\";width:10px;height:10px;border-radius:10px;background-color:var(--blue);position:absolute;right:0;top:-3px}.field-slider__limits{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;line-height:14px;color:var(--gray-primary)}"]
|
|
1579
|
-
},] }
|
|
1580
|
-
];
|
|
1581
|
-
FieldSliderComponent.ctorParameters = () => [
|
|
1582
|
-
{ type: Renderer2 }
|
|
1583
|
-
];
|
|
1584
|
-
FieldSliderComponent.propDecorators = {
|
|
1585
|
-
input: [{ type: ViewChild, args: ['input',] }],
|
|
1586
|
-
slider: [{ type: ViewChild, args: ['slider',] }],
|
|
1587
|
-
label: [{ type: Input }],
|
|
1588
|
-
prefix: [{ type: Input }],
|
|
1589
|
-
min: [{ type: Input }],
|
|
1590
|
-
max: [{ type: Input }],
|
|
1591
|
-
step: [{ type: Input }],
|
|
1592
|
-
value: [{ type: Input }],
|
|
1593
|
-
valueSeparator: [{ type: Input }]
|
|
1594
|
-
};
|
|
1595
|
-
|
|
1596
|
-
class ReplacePipe$1 {
|
|
1597
|
-
transform(value, strToReplace, replacementStr) {
|
|
1598
|
-
if (!value || !strToReplace || !replacementStr) {
|
|
1599
|
-
return value;
|
|
1600
|
-
}
|
|
1601
|
-
return value.replace(new RegExp(strToReplace, 'g'), replacementStr);
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
ReplacePipe$1.decorators = [
|
|
1605
|
-
{ type: Pipe, args: [{
|
|
1606
|
-
name: 'replace'
|
|
1607
|
-
},] }
|
|
1608
|
-
];
|
|
1609
|
-
|
|
1610
|
-
class NumbersOnlyDirective {
|
|
1611
|
-
constructor() {
|
|
1612
|
-
this.navigationKeys = [
|
|
1613
|
-
'Backspace',
|
|
1614
|
-
'Delete',
|
|
1615
|
-
'Tab',
|
|
1616
|
-
'Escape',
|
|
1617
|
-
'Enter',
|
|
1618
|
-
'Home',
|
|
1619
|
-
'End',
|
|
1620
|
-
'ArrowLeft',
|
|
1621
|
-
'ArrowRight',
|
|
1622
|
-
'Clear',
|
|
1623
|
-
'Copy',
|
|
1624
|
-
'Paste',
|
|
1625
|
-
];
|
|
1626
|
-
}
|
|
1627
|
-
onKeyDown(e) {
|
|
1628
|
-
if (
|
|
1629
|
-
// Allow: Delete, Backspace, Tab, Escape, Enter, etc
|
|
1630
|
-
this.navigationKeys.indexOf(e.key) > -1 ||
|
|
1631
|
-
(e.key === 'a' && e.ctrlKey === true) || // Allow: Ctrl+A
|
|
1632
|
-
(e.key === 'c' && e.ctrlKey === true) || // Allow: Ctrl+C
|
|
1633
|
-
(e.key === 'v' && e.ctrlKey === true) || // Allow: Ctrl+V
|
|
1634
|
-
(e.key === 'x' && e.ctrlKey === true) || // Allow: Ctrl+X
|
|
1635
|
-
(e.key === 'a' && e.metaKey === true) || // Cmd+A (Mac)
|
|
1636
|
-
(e.key === 'c' && e.metaKey === true) || // Cmd+C (Mac)
|
|
1637
|
-
(e.key === 'v' && e.metaKey === true) || // Cmd+V (Mac)
|
|
1638
|
-
(e.key === 'x' && e.metaKey === true) // Cmd+X (Mac)
|
|
1639
|
-
) {
|
|
1640
|
-
return; // let it happen, don't do anything
|
|
1641
|
-
}
|
|
1642
|
-
// Ensure that it is a number and stop the keypress
|
|
1643
|
-
if (e.key === ' ' || isNaN(Number(e.key))) {
|
|
1644
|
-
e.preventDefault();
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
onPaste(event) {
|
|
1648
|
-
event.preventDefault();
|
|
1649
|
-
const pastedInput = event.clipboardData
|
|
1650
|
-
.getData('text/plain')
|
|
1651
|
-
.replace(/\D/g, ''); // get a digit-only string
|
|
1652
|
-
document.execCommand('insertText', false, pastedInput);
|
|
1653
|
-
}
|
|
1654
|
-
onDrop(event) {
|
|
1655
|
-
event.preventDefault();
|
|
1656
|
-
const textData = event.dataTransfer
|
|
1657
|
-
.getData('text').replace(/\D/g, '');
|
|
1658
|
-
document.execCommand('insertText', false, textData);
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
NumbersOnlyDirective.decorators = [
|
|
1662
|
-
{ type: Directive, args: [{
|
|
1663
|
-
selector: '[aebNumbersOnly]'
|
|
1664
|
-
},] }
|
|
1665
|
-
];
|
|
1666
|
-
NumbersOnlyDirective.ctorParameters = () => [];
|
|
1667
|
-
NumbersOnlyDirective.propDecorators = {
|
|
1668
|
-
onKeyDown: [{ type: HostListener, args: ['keydown', ['$event'],] }],
|
|
1669
|
-
onPaste: [{ type: HostListener, args: ['paste', ['$event'],] }],
|
|
1670
|
-
onDrop: [{ type: HostListener, args: ['drop', ['$event'],] }]
|
|
1671
|
-
};
|
|
1672
|
-
|
|
1673
|
-
class FieldSliderModule {
|
|
1674
|
-
}
|
|
1675
|
-
FieldSliderModule.decorators = [
|
|
1676
|
-
{ type: NgModule, args: [{
|
|
1677
|
-
declarations: [
|
|
1678
|
-
FieldSliderComponent,
|
|
1679
|
-
ReplacePipe$1,
|
|
1680
|
-
NumbersOnlyDirective
|
|
1681
|
-
],
|
|
1682
|
-
imports: [
|
|
1683
|
-
CommonModule,
|
|
1684
|
-
FormFieldModule,
|
|
1685
|
-
FormsModule,
|
|
1686
|
-
],
|
|
1687
|
-
exports: [FieldSliderComponent],
|
|
1688
|
-
},] }
|
|
1689
|
-
];
|
|
1690
|
-
|
|
1691
|
-
class TabDirective {
|
|
1692
|
-
constructor(template) {
|
|
1693
|
-
this.template = template;
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
TabDirective.decorators = [
|
|
1697
|
-
{ type: Directive, args: [{
|
|
1698
|
-
selector: '[aebTab]'
|
|
1699
|
-
},] }
|
|
1700
|
-
];
|
|
1701
|
-
TabDirective.ctorParameters = () => [
|
|
1702
|
-
{ type: TemplateRef }
|
|
1703
|
-
];
|
|
1704
|
-
TabDirective.propDecorators = {
|
|
1705
|
-
name: [{ type: Input, args: ['aebTab',] }]
|
|
1706
|
-
};
|
|
1707
|
-
|
|
1708
|
-
class TabsComponent {
|
|
1709
|
-
constructor() {
|
|
1710
|
-
this.collapsed = false;
|
|
1711
|
-
this.tab = 0;
|
|
1712
|
-
this.change = new EventEmitter();
|
|
1713
|
-
}
|
|
1714
|
-
tabHandler(e, tab) {
|
|
1715
|
-
const targetTab = e.target;
|
|
1716
|
-
this.moveThumb(targetTab);
|
|
1717
|
-
this.currentTab = tab;
|
|
1718
|
-
this.change.emit(this.currentTab.name);
|
|
1719
|
-
}
|
|
1720
|
-
moveThumb(tab) {
|
|
1721
|
-
const tabLeft = tab.getBoundingClientRect().left;
|
|
1722
|
-
const containerLeft = this.container.nativeElement.getBoundingClientRect()
|
|
1723
|
-
.left;
|
|
1724
|
-
this.thumb.nativeElement.style.width = `${tab.offsetWidth}px`;
|
|
1725
|
-
this.thumb.nativeElement.style.left = `${tabLeft - containerLeft}px`;
|
|
1726
|
-
}
|
|
1727
|
-
ngOnInit() { }
|
|
1728
|
-
switchTab(tab) {
|
|
1729
|
-
this.currentTab = this.tabs.toArray()[tab];
|
|
1730
|
-
this.moveThumb(this.templateTabs.toArray()[tab].nativeElement);
|
|
1731
|
-
}
|
|
1732
|
-
ngAfterViewInit() {
|
|
1733
|
-
setTimeout(() => {
|
|
1734
|
-
if (String(this.tab) && !this.collapsed) {
|
|
1735
|
-
this.switchTab(this.tab);
|
|
1736
|
-
}
|
|
1737
|
-
});
|
|
1738
|
-
}
|
|
1739
|
-
ngOnChanges(changes) {
|
|
1740
|
-
if (changes.tab && this.tabs) {
|
|
1741
|
-
this.switchTab(this.tab);
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
redrawThumb() {
|
|
1745
|
-
const tabIndex = this.tabs.toArray().indexOf(this.currentTab);
|
|
1746
|
-
this.moveThumb(this.templateTabs.toArray()[tabIndex].nativeElement);
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
TabsComponent.decorators = [
|
|
1750
|
-
{ type: Component, args: [{
|
|
1751
|
-
selector: 'aeb-tabs',
|
|
1752
|
-
template: "<div\n #container\n class=\"aeb-tabs\"\n [ngClass]=\"{\n 'aeb-tabs--compact': layoutMod === 'compact'\n }\"\n>\n <div class=\"aeb-tabs__wrapper\">\n <ng-container *ngFor=\"let tab of tabs\">\n <div\n class=\"aeb-tabs__tab\"\n (click)=\"tabHandler($event, tab)\"\n [ngClass]=\"{\n 'aeb-tabs__tab--active': tab === currentTab\n }\"\n #rtab\n >\n {{tab.name}}\n </div>\n </ng-container>\n </div>\n\n <div\n class=\"aeb-tabs__thumb\"\n #thumb\n ></div>\n</div>\n\n<ng-container *ngIf=\"currentTab\">\n <ng-template [ngTemplateOutlet]=\"currentTab.template\">\n </ng-template>\n</ng-container>",
|
|
1753
|
-
encapsulation: ViewEncapsulation.None,
|
|
1754
|
-
styles: [".aeb-tabs{width:100%;margin-bottom:25px;position:relative;border-bottom:1px solid var(--lightgray);padding-bottom:2px;color:var(--darkblue)}.aeb-tabs__wrapper{width:100%;display:flex}.aeb-tabs__tab{cursor:pointer;margin-right:50px;padding-bottom:25px;box-sizing:border-box}.aeb-tabs__thumb{border-bottom:2px solid var(--blue);position:absolute;left:0;width:0;transition:left,width,.1s}.aeb-tabs--compact{padding-bottom:3px}.aeb-tabs--compact .aeb-tabs__tab{margin-right:32px;margin-bottom:8px;padding-bottom:0}.aeb-tabs--compact .aeb-tabs__tab--active{font-weight:500}.aeb-tabs--compact .aeb-tabs__thumb{border-bottom:4px solid var(--blue)}"]
|
|
1755
|
-
},] }
|
|
1756
|
-
];
|
|
1757
|
-
TabsComponent.ctorParameters = () => [];
|
|
1758
|
-
TabsComponent.propDecorators = {
|
|
1759
|
-
tabs: [{ type: ContentChildren, args: [TabDirective,] }],
|
|
1760
|
-
templateTabs: [{ type: ViewChildren, args: ['rtab',] }],
|
|
1761
|
-
thumb: [{ type: ViewChild, args: ['thumb',] }],
|
|
1762
|
-
container: [{ type: ViewChild, args: ['container',] }],
|
|
1763
|
-
layoutMod: [{ type: Input, args: ['layoutMod',] }],
|
|
1764
|
-
collapsed: [{ type: Input, args: ['collapsed',] }],
|
|
1765
|
-
tab: [{ type: Input, args: ['tab',] }],
|
|
1766
|
-
change: [{ type: Output }],
|
|
1767
|
-
redrawThumb: [{ type: HostListener, args: ['window:resize',] }]
|
|
1768
|
-
};
|
|
1769
|
-
|
|
1770
|
-
class TabsModule {
|
|
1771
|
-
}
|
|
1772
|
-
TabsModule.decorators = [
|
|
1773
|
-
{ type: NgModule, args: [{
|
|
1774
|
-
declarations: [TabsComponent, TabDirective],
|
|
1775
|
-
imports: [
|
|
1776
|
-
CommonModule
|
|
1777
|
-
],
|
|
1778
|
-
exports: [TabsComponent, TabDirective]
|
|
1779
|
-
},] }
|
|
1780
|
-
];
|
|
1781
|
-
|
|
1782
|
-
class HeadingComponent {
|
|
1783
|
-
constructor() { }
|
|
1784
|
-
ngOnInit() {
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
HeadingComponent.decorators = [
|
|
1788
|
-
{ type: Component, args: [{
|
|
1789
|
-
selector: 'aeb-heading',
|
|
1790
|
-
template: "<h1 class=\"aeb-heading\">\n {{text}}\n</h1>\n",
|
|
1791
|
-
encapsulation: ViewEncapsulation.None,
|
|
1792
|
-
styles: [".aeb-heading{margin:0;font-size:56px;font-weight:unset;color:var(--darkblue)}"]
|
|
1793
|
-
},] }
|
|
1794
|
-
];
|
|
1795
|
-
HeadingComponent.ctorParameters = () => [];
|
|
1796
|
-
HeadingComponent.propDecorators = {
|
|
1797
|
-
text: [{ type: Input, args: ['text',] }]
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
class BreadcrumpsComponent {
|
|
1801
|
-
constructor() {
|
|
1802
|
-
this.routeSeq = [];
|
|
1803
|
-
this.click = new EventEmitter();
|
|
1804
|
-
}
|
|
1805
|
-
clickHandler(index) {
|
|
1806
|
-
this.click.emit(index);
|
|
1807
|
-
}
|
|
1808
|
-
ngOnInit() {
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
BreadcrumpsComponent.decorators = [
|
|
1812
|
-
{ type: Component, args: [{
|
|
1813
|
-
selector: 'aeb-breadcrumps',
|
|
1814
|
-
template: "<div class=\"aeb-breadcrumps\">\n <div\n *ngFor=\"let item of routeSeq; index as index\"\n class=\"aeb-breadcrumps__item\"\n (click)=\"clickHandler(index)\"\n >\n {{item}}\n\n <span *ngIf=\"index !== (routeSeq.length - 1)\" class=\"aeb-breadcrumps__icon\">\n <svg width=\"3\" height=\"6\" viewBox=\"0 0 3 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M3 3L-6.28109e-09 5.59808L2.2085e-07 0.401924L3 3Z\" fill=\"#A3AAAE\"/>\n </svg>\n </span> \n </div>\n</div>",
|
|
1815
|
-
encapsulation: ViewEncapsulation.None,
|
|
1816
|
-
styles: [".aeb-breadcrumps{display:flex}.aeb-breadcrumps__item{color:var(--gray-primary);font-size:14px;cursor:pointer;transition:color,.2s}.aeb-breadcrumps__item:not(:last-child){margin-right:12px}.aeb-breadcrumps__item:hover{color:var(--blue)}.aeb-breadcrumps__icon{margin-left:12px;padding-bottom:10px;position:relative;bottom:3px}"]
|
|
1817
|
-
},] }
|
|
1818
|
-
];
|
|
1819
|
-
BreadcrumpsComponent.ctorParameters = () => [];
|
|
1820
|
-
BreadcrumpsComponent.propDecorators = {
|
|
1821
|
-
routeSeq: [{ type: Input, args: ['routeSequence',] }],
|
|
1822
|
-
click: [{ type: Output, args: ['optionClick',] }]
|
|
1823
|
-
};
|
|
1824
|
-
|
|
1825
|
-
class ProductTitleComponent {
|
|
1826
|
-
constructor() {
|
|
1827
|
-
this.backHandler = new EventEmitter();
|
|
1828
|
-
}
|
|
1829
|
-
ngOnInit() {
|
|
1830
|
-
}
|
|
1831
|
-
clickHandler() {
|
|
1832
|
-
this.backHandler.emit();
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
ProductTitleComponent.decorators = [
|
|
1836
|
-
{ type: Component, args: [{
|
|
1837
|
-
selector: 'aeb-product-title',
|
|
1838
|
-
template: "<div class=\"aeb-product-title\">\n <div class=\"aeb-product-title__title\">\n <div\n class=\"aeb-product-title__back\"\n (click)=\"clickHandler()\"\n >\n <svg width=\"42\" height=\"42\" viewBox=\"0 0 42 42\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect width=\"42\" height=\"42\" rx=\"10\" fill=\"white\"/>\n <line x1=\"13\" y1=\"21\" x2=\"29\" y2=\"21\" stroke=\"#2F88F0\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M18 14L12 21L18 28\" stroke=\"#2F88F0\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </div>\n <div class=\"aeb-product-title__heading\">\n {{title}}\n </div>\n </div>\n <ng-content></ng-content>\n</div>",
|
|
1839
|
-
encapsulation: ViewEncapsulation.None,
|
|
1840
|
-
styles: [".aeb-product-title{color:var(--darkblue)}.aeb-product-title__title{display:flex;align-items:center;margin-bottom:20px}.aeb-product-title__back{width:42px;height:42px;border-radius:10px;margin-right:20px;cursor:pointer}.aeb-product-title__heading{font-size:32px}"]
|
|
1841
|
-
},] }
|
|
1842
|
-
];
|
|
1843
|
-
ProductTitleComponent.ctorParameters = () => [];
|
|
1844
|
-
ProductTitleComponent.propDecorators = {
|
|
1845
|
-
title: [{ type: Input, args: ['title',] }],
|
|
1846
|
-
backHandler: [{ type: Output, args: ['backHandler',] }]
|
|
1847
|
-
};
|
|
1848
|
-
|
|
1849
|
-
class HeadingModule {
|
|
1850
|
-
}
|
|
1851
|
-
HeadingModule.decorators = [
|
|
1852
|
-
{ type: NgModule, args: [{
|
|
1853
|
-
declarations: [HeadingComponent, BreadcrumpsComponent, ProductTitleComponent],
|
|
1854
|
-
imports: [
|
|
1855
|
-
CommonModule
|
|
1856
|
-
],
|
|
1857
|
-
exports: [HeadingComponent, BreadcrumpsComponent, ProductTitleComponent]
|
|
1858
|
-
},] }
|
|
1859
|
-
];
|
|
1860
|
-
|
|
1861
|
-
class NewTooltipComponent {
|
|
1862
|
-
constructor() { }
|
|
1863
|
-
ngOnInit() {
|
|
1864
|
-
}
|
|
1865
|
-
}
|
|
1866
|
-
NewTooltipComponent.decorators = [
|
|
1867
|
-
{ type: Component, args: [{
|
|
1868
|
-
selector: 'aeb-new-tooltip',
|
|
1869
|
-
template: "<div\n class=\"aeb-new-tooltip\"\n #tooltip\n>\n <div [innerHTML]=\"html || data\" class=\"aeb-new-tooltip__container\">\n </div>\n</div>",
|
|
1870
|
-
encapsulation: ViewEncapsulation.None,
|
|
1871
|
-
styles: ["@-webkit-keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-new-tooltip{background-color:var(--darkblue);position:fixed;opacity:0;pointer-events:none;border-radius:8px;transition:opacity,.2s;z-index:9999}.aeb-new-tooltip--open{opacity:1;-webkit-animation:out .2s;animation:out .2s}.aeb-new-tooltip__container{width:100%;height:100%;position:relative;align-items:center;justify-content:center;padding:12px;font-size:14px;border-radius:8px;word-break:keep-all;white-space:nowrap;color:var(--white)}.aeb-new-tooltip--top .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);bottom:-5px;transform:rotate(45deg)}.aeb-new-tooltip--right .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:-5px;top:calc(50% - 5px);transform:rotate(45deg)}.aeb-new-tooltip--bottom .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);top:-5px;transform:rotate(45deg)}.aeb-new-tooltip--left .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);right:19px;top:calc(50% - 5px);transform:rotate(45deg)}"]
|
|
1872
|
-
},] }
|
|
1873
|
-
];
|
|
1874
|
-
NewTooltipComponent.ctorParameters = () => [];
|
|
1875
|
-
NewTooltipComponent.propDecorators = {
|
|
1876
|
-
tooltip: [{ type: ViewChild, args: ['tooltip',] }],
|
|
1877
|
-
data: [{ type: Input, args: ['data',] }],
|
|
1878
|
-
html: [{ type: Input, args: ['html',] }]
|
|
1879
|
-
};
|
|
1880
|
-
|
|
1881
|
-
class DOMService {
|
|
1882
|
-
constructor(document, componentFactoryResolver, injector, applicationRef, rendererFactory) {
|
|
1883
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
1884
|
-
this.injector = injector;
|
|
1885
|
-
this.applicationRef = applicationRef;
|
|
1886
|
-
this.renderer = rendererFactory.createRenderer(null, null);
|
|
1887
|
-
this.document = document;
|
|
1888
|
-
}
|
|
1889
|
-
attachComponent(component, componentProps = null) {
|
|
1890
|
-
const componentRef = this.componentFactoryResolver
|
|
1891
|
-
.resolveComponentFactory(component)
|
|
1892
|
-
.create(this.injector);
|
|
1893
|
-
if (componentProps !== null && typeof componentRef.instance === 'object') {
|
|
1894
|
-
Object.assign(componentRef.instance, componentProps);
|
|
1895
|
-
}
|
|
1896
|
-
this.applicationRef.attachView(componentRef.hostView);
|
|
1897
|
-
const componentRootNode = componentRef.hostView.rootNodes[0];
|
|
1898
|
-
this.renderer.appendChild(this.document.body, componentRootNode);
|
|
1899
|
-
this.componentRef = componentRef;
|
|
1900
|
-
return componentRef.instance;
|
|
1901
|
-
}
|
|
1902
|
-
removeComponent() {
|
|
1903
|
-
this.applicationRef.detachView(this.componentRef.hostView);
|
|
1904
|
-
this.componentRef.destroy();
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
DOMService.ɵprov = ɵɵdefineInjectable({ factory: function DOMService_Factory() { return new DOMService(ɵɵinject(DOCUMENT), ɵɵinject(ComponentFactoryResolver), ɵɵinject(INJECTOR), ɵɵinject(ApplicationRef), ɵɵinject(RendererFactory2)); }, token: DOMService, providedIn: "root" });
|
|
1908
|
-
DOMService.decorators = [
|
|
1909
|
-
{ type: Injectable, args: [{
|
|
1910
|
-
providedIn: 'root'
|
|
1911
|
-
},] }
|
|
1912
|
-
];
|
|
1913
|
-
DOMService.ctorParameters = () => [
|
|
1914
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
1915
|
-
{ type: ComponentFactoryResolver },
|
|
1916
|
-
{ type: Injector },
|
|
1917
|
-
{ type: ApplicationRef },
|
|
1918
|
-
{ type: RendererFactory2 }
|
|
1919
|
-
];
|
|
1920
|
-
|
|
1921
|
-
class TooltipDirective {
|
|
1922
|
-
constructor(el, dom, sanitizer, _ngZone) {
|
|
1923
|
-
this.el = el;
|
|
1924
|
-
this.dom = dom;
|
|
1925
|
-
this.sanitizer = sanitizer;
|
|
1926
|
-
this._ngZone = _ngZone;
|
|
1927
|
-
this.position = 'top';
|
|
1928
|
-
this.overflow = false;
|
|
1929
|
-
this.clickOutside = new EventEmitter();
|
|
1930
|
-
this.tooltipOpen = false;
|
|
1931
|
-
this.tooltipConfig = {
|
|
1932
|
-
right: (boundaries, tooltip) => {
|
|
1933
|
-
const targetHalf = boundaries.top + boundaries.height / 2;
|
|
1934
|
-
const tooltipHalf = tooltip.offsetHeight / 2;
|
|
1935
|
-
return [
|
|
1936
|
-
boundaries.left + boundaries.width + 15,
|
|
1937
|
-
targetHalf - tooltipHalf,
|
|
1938
|
-
];
|
|
1939
|
-
},
|
|
1940
|
-
bottom: (boundaries, tooltip) => {
|
|
1941
|
-
const targetHalf = boundaries.right - boundaries.width / 2;
|
|
1942
|
-
const tooltipHalf = tooltip.offsetWidth / 2;
|
|
1943
|
-
return [targetHalf - tooltipHalf, boundaries.bottom + 15];
|
|
1944
|
-
},
|
|
1945
|
-
left: (boundaries, tooltip) => {
|
|
1946
|
-
const targetHalf = boundaries.top + boundaries.height / 2;
|
|
1947
|
-
const tooltipHalf = tooltip.offsetHeight / 2;
|
|
1948
|
-
return [
|
|
1949
|
-
boundaries.left - tooltip.offsetWidth - 15,
|
|
1950
|
-
targetHalf - tooltipHalf,
|
|
1951
|
-
];
|
|
1952
|
-
},
|
|
1953
|
-
top: (boundaries, tooltip) => {
|
|
1954
|
-
const targetHalf = boundaries.right - boundaries.width / 2;
|
|
1955
|
-
const tooltipHalf = tooltip.offsetWidth / 2;
|
|
1956
|
-
return [
|
|
1957
|
-
targetHalf - tooltipHalf,
|
|
1958
|
-
boundaries.top - tooltip.offsetHeight - 15,
|
|
1959
|
-
];
|
|
1960
|
-
},
|
|
1961
|
-
};
|
|
1962
|
-
this.handleDocumentTouchstart = (event) => {
|
|
1963
|
-
const contain = this.el.nativeElement.contains(event.target);
|
|
1964
|
-
if (!contain) {
|
|
1965
|
-
if (this.tooltipOpen) {
|
|
1966
|
-
this.hideTooltip();
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
|
-
}
|
|
1971
|
-
onMouseLeave() {
|
|
1972
|
-
this.hideTooltip();
|
|
1973
|
-
}
|
|
1974
|
-
onMouseEnter(event) {
|
|
1975
|
-
this.showTooltip();
|
|
1976
|
-
}
|
|
1977
|
-
onClick(event) {
|
|
1978
|
-
if (this.tooltipOpen) {
|
|
1979
|
-
this.hideTooltip();
|
|
1980
|
-
}
|
|
1981
|
-
else {
|
|
1982
|
-
this.touchTimeStamp = event.timeStamp;
|
|
1983
|
-
this.showTooltip();
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
orientationChangeHandler() {
|
|
1987
|
-
if (this.tooltipOpen) {
|
|
1988
|
-
this.hideTooltip();
|
|
1989
|
-
this.tooltip.tooltip.nativeElement.style = '';
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
showTooltip() {
|
|
1993
|
-
if (this.overflow) {
|
|
1994
|
-
const onOverflow = this.el.nativeElement.scrollWidth > this.el.nativeElement.offsetWidth;
|
|
1995
|
-
if (!onOverflow)
|
|
1996
|
-
return;
|
|
1997
|
-
}
|
|
1998
|
-
this.tooltipOpen = true;
|
|
1999
|
-
const tooltip = this.tooltip.tooltip.nativeElement;
|
|
2000
|
-
const boundaries = this.el.nativeElement.getBoundingClientRect();
|
|
2001
|
-
const [left, top] = this.tooltipConfig[this.position](boundaries, tooltip);
|
|
2002
|
-
tooltip.style.left = `${left}px`;
|
|
2003
|
-
tooltip.style.top = `${top}px`;
|
|
2004
|
-
tooltip.className = `aeb-new-tooltip aeb-new-tooltip--open aeb-new-tooltip--${this.position}`;
|
|
2005
|
-
}
|
|
2006
|
-
hideTooltip() {
|
|
2007
|
-
this.tooltipOpen = false;
|
|
2008
|
-
const tooltip = this.tooltip.tooltip.nativeElement;
|
|
2009
|
-
tooltip.className = 'aeb-new-tooltip';
|
|
2010
|
-
}
|
|
2011
|
-
ngOnDestroy() {
|
|
2012
|
-
this.dom.removeComponent();
|
|
2013
|
-
this.removeListeners();
|
|
2014
|
-
}
|
|
2015
|
-
ngOnInit() {
|
|
2016
|
-
this.tooltip = this.dom.attachComponent(NewTooltipComponent, {
|
|
2017
|
-
data: this.data || '',
|
|
2018
|
-
});
|
|
2019
|
-
this.initListeners();
|
|
2020
|
-
}
|
|
2021
|
-
ngAfterViewInit() {
|
|
2022
|
-
if (this.tooltipContent) {
|
|
2023
|
-
this.tooltip = this.dom.attachComponent(NewTooltipComponent, {
|
|
2024
|
-
html: this.sanitizer.bypassSecurityTrustHtml(this.tooltipContent.nativeElement.innerHTML),
|
|
2025
|
-
});
|
|
2026
|
-
this.tooltipContent.nativeElement.style.display = 'none';
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
initListeners() {
|
|
2030
|
-
this._ngZone.runOutsideAngular(() => {
|
|
2031
|
-
document.addEventListener('touchstart', this.handleDocumentTouchstart);
|
|
2032
|
-
});
|
|
2033
|
-
}
|
|
2034
|
-
removeListeners() {
|
|
2035
|
-
this._ngZone.runOutsideAngular(() => {
|
|
2036
|
-
document.removeEventListener('touchstart', this.handleDocumentTouchstart);
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
TooltipDirective.decorators = [
|
|
2041
|
-
{ type: Directive, args: [{
|
|
2042
|
-
selector: '[aebTooltip]',
|
|
2043
|
-
},] }
|
|
2044
|
-
];
|
|
2045
|
-
TooltipDirective.ctorParameters = () => [
|
|
2046
|
-
{ type: ElementRef },
|
|
2047
|
-
{ type: DOMService },
|
|
2048
|
-
{ type: DomSanitizer },
|
|
2049
|
-
{ type: NgZone }
|
|
2050
|
-
];
|
|
2051
|
-
TooltipDirective.propDecorators = {
|
|
2052
|
-
data: [{ type: Input, args: ['tooltip-data',] }],
|
|
2053
|
-
position: [{ type: Input, args: ['position',] }],
|
|
2054
|
-
overflow: [{ type: Input, args: ['overflow',] }],
|
|
2055
|
-
tooltipContent: [{ type: ContentChild, args: ['tooltipContent',] }],
|
|
2056
|
-
clickOutside: [{ type: Output }],
|
|
2057
|
-
onMouseLeave: [{ type: HostListener, args: ['mouseleave',] }],
|
|
2058
|
-
onMouseEnter: [{ type: HostListener, args: ['mouseenter', ['$event'],] }],
|
|
2059
|
-
onClick: [{ type: HostListener, args: ['touch', ['$event'],] }],
|
|
2060
|
-
orientationChangeHandler: [{ type: HostListener, args: ['window:orientationchange',] }]
|
|
2061
|
-
};
|
|
2062
|
-
|
|
2063
|
-
class NewTooltipModule {
|
|
2064
|
-
}
|
|
2065
|
-
NewTooltipModule.decorators = [
|
|
2066
|
-
{ type: NgModule, args: [{
|
|
2067
|
-
declarations: [NewTooltipComponent, TooltipDirective],
|
|
2068
|
-
imports: [
|
|
2069
|
-
CommonModule
|
|
2070
|
-
],
|
|
2071
|
-
exports: [
|
|
2072
|
-
NewTooltipComponent,
|
|
2073
|
-
TooltipDirective
|
|
2074
|
-
],
|
|
2075
|
-
entryComponents: [NewTooltipComponent]
|
|
2076
|
-
},] }
|
|
2077
|
-
];
|
|
2078
|
-
|
|
2079
|
-
class NewNotificationsComponent {
|
|
2080
|
-
constructor(dom) {
|
|
2081
|
-
this.dom = dom;
|
|
2082
|
-
this.close = new EventEmitter();
|
|
2083
|
-
this.clickItem = new EventEmitter();
|
|
2084
|
-
}
|
|
2085
|
-
ngOnInit() {
|
|
2086
|
-
}
|
|
2087
|
-
handleClose(id) {
|
|
2088
|
-
this.close.emit(id);
|
|
2089
|
-
}
|
|
2090
|
-
handleItemClick(id) {
|
|
2091
|
-
this.clickItem.emit(id);
|
|
2092
|
-
}
|
|
2093
|
-
bypassURL(url) {
|
|
2094
|
-
return this.dom.bypassSecurityTrustResourceUrl(url);
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
NewNotificationsComponent.decorators = [
|
|
2098
|
-
{ type: Component, args: [{
|
|
2099
|
-
selector: 'aeb-new-notifications',
|
|
2100
|
-
template: "<div\n class=\"aeb-new-notifications\"\n *ngIf=\"notifications.length\"\n>\n <div\n *ngFor=\"let item of notifications\"\n (click)=\"handleItemClick(item.id)\"\n class=\"aeb-new-notifications__item\"\n >\n <div class=\"aeb-new-notifications__icon\">\n <object type=\"image/svg+xml\" [data]=\"bypassURL(item.iconPath)\"></object>\n </div>\n <div class=\"aeb-new-notifications__info\">\n <div class=\"aeb-new-notifications__header\">\n {{item.header}}\n </div>\n <div class=\"aeb-new-notifications__msg\">\n {{item.message}}\n </div>\n </div>\n <div\n class=\"aeb-new-notifications__close\"\n (click)=\"handleClose(item.id)\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.63086 5.63074L18.3693 18.3692\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M18.3691 5.63074L5.63065 18.3692\"\n stroke=\"white\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n</div>\n",
|
|
2101
|
-
encapsulation: ViewEncapsulation.None,
|
|
2102
|
-
styles: [".aeb-new-notifications{position:fixed;z-index:1500;top:80px;right:30px}.aeb-new-notifications__item{display:flex;width:324px;height:auto;min-height:76px;justify-content:space-between;border-radius:8px;background-color:var(--darkblue);padding:16px;box-sizing:border-box}.aeb-new-notifications__item:not(:last-child){margin-bottom:12px}.aeb-new-notifications__icon{flex:0;width:36px;height:36px}.aeb-new-notifications__info{width:100%;margin-left:16px}.aeb-new-notifications__header{flex:auto;word-break:break-all;color:var(--white);font-size:16px;font-weight:500;margin-bottom:8px}.aeb-new-notifications__info{color:var(--white);font-size:14px}.aeb-new-notifications__close{flex:0;top:16px;right:16px;cursor:pointer}"]
|
|
2103
|
-
},] }
|
|
2104
|
-
];
|
|
2105
|
-
NewNotificationsComponent.ctorParameters = () => [
|
|
2106
|
-
{ type: DomSanitizer }
|
|
2107
|
-
];
|
|
2108
|
-
NewNotificationsComponent.propDecorators = {
|
|
2109
|
-
notifications: [{ type: Input }],
|
|
2110
|
-
close: [{ type: Output }],
|
|
2111
|
-
clickItem: [{ type: Output }]
|
|
2112
|
-
};
|
|
2113
|
-
|
|
2114
|
-
class NewNotificationsModule {
|
|
2115
|
-
}
|
|
2116
|
-
NewNotificationsModule.decorators = [
|
|
2117
|
-
{ type: NgModule, args: [{
|
|
2118
|
-
declarations: [NewNotificationsComponent],
|
|
2119
|
-
imports: [
|
|
2120
|
-
CommonModule
|
|
2121
|
-
],
|
|
2122
|
-
exports: [NewNotificationsComponent]
|
|
2123
|
-
},] }
|
|
2124
|
-
];
|
|
2125
|
-
|
|
2126
|
-
class DatepickerUtilsService {
|
|
2127
|
-
constructor() { }
|
|
2128
|
-
genWeek(week, month, count) {
|
|
2129
|
-
const startOfWeek = addWeeks(week, count);
|
|
2130
|
-
return [...new Array(7)]
|
|
2131
|
-
.map(_ => startOfWeek)
|
|
2132
|
-
.map((day, index) => addDays(day, index))
|
|
2133
|
-
.map(day => isSameMonth(month, day) ? day : null);
|
|
2134
|
-
}
|
|
2135
|
-
genMonth(date) {
|
|
2136
|
-
const WEEKS_TOTAL = getWeeksInMonth(date);
|
|
2137
|
-
const START_OF_MONTH = startOfMonth(date);
|
|
2138
|
-
const START_OF_WEEK = startOfWeek(START_OF_MONTH, { locale: ru });
|
|
2139
|
-
return [...new Array(WEEKS_TOTAL + 1)]
|
|
2140
|
-
.map((_, index) => {
|
|
2141
|
-
const week = this.genWeek(START_OF_WEEK, START_OF_MONTH, index);
|
|
2142
|
-
return !!week.filter(item => !!item).length ? week : null;
|
|
2143
|
-
})
|
|
2144
|
-
.filter(week => !!week);
|
|
2145
|
-
}
|
|
2146
|
-
addMonths(date, count) {
|
|
2147
|
-
return addMonths(date, count);
|
|
2148
|
-
}
|
|
2149
|
-
subMonths(date, count) {
|
|
2150
|
-
return subMonths(date, count);
|
|
2151
|
-
}
|
|
2152
|
-
genYears(min, max) {
|
|
2153
|
-
return eachYearOfInterval({
|
|
2154
|
-
start: min,
|
|
2155
|
-
end: max
|
|
2156
|
-
}).map(date => getYear(date));
|
|
2157
|
-
}
|
|
2158
|
-
addYears(date, count) {
|
|
2159
|
-
return addYears(date, count);
|
|
2160
|
-
}
|
|
2161
|
-
subYears(date, count) {
|
|
2162
|
-
return subYears(date, count);
|
|
2163
|
-
}
|
|
2164
|
-
yearsDiff(a, b) {
|
|
2165
|
-
return differenceInYears(a, b);
|
|
2166
|
-
}
|
|
2167
|
-
startOfYear(date) {
|
|
2168
|
-
return startOfYear(date);
|
|
2169
|
-
}
|
|
2170
|
-
isToday(date) {
|
|
2171
|
-
return isToday(date);
|
|
2172
|
-
}
|
|
2173
|
-
isSameDay(dateLeft, dateRight) {
|
|
2174
|
-
if (!isValid(dateLeft) || !isValid(dateRight))
|
|
2175
|
-
return false;
|
|
2176
|
-
return isSameDay(dateLeft, dateRight);
|
|
2177
|
-
}
|
|
2178
|
-
getMonth(date) {
|
|
2179
|
-
return getMonth(date);
|
|
2180
|
-
}
|
|
2181
|
-
getYear(date) {
|
|
2182
|
-
return getYear(date);
|
|
2183
|
-
}
|
|
2184
|
-
setMonth(month, year) {
|
|
2185
|
-
return setMonth(new Date(year, 0, 1), month);
|
|
2186
|
-
}
|
|
2187
|
-
isMinOverlap(minDate, date) {
|
|
2188
|
-
if (!isValid(minDate) || !isValid(date))
|
|
2189
|
-
return false;
|
|
2190
|
-
return areIntervalsOverlapping({
|
|
2191
|
-
start: subYears(minDate, 9999),
|
|
2192
|
-
end: startOfDay(minDate)
|
|
2193
|
-
}, {
|
|
2194
|
-
start: startOfDay(date),
|
|
2195
|
-
end: endOfDay(date)
|
|
2196
|
-
});
|
|
2197
|
-
}
|
|
2198
|
-
isMaxOverlap(maxDate, date) {
|
|
2199
|
-
if (!isValid(maxDate) || !isValid(date))
|
|
2200
|
-
return false;
|
|
2201
|
-
return areIntervalsOverlapping({
|
|
2202
|
-
start: addDays(startOfDay(maxDate), 1),
|
|
2203
|
-
end: addYears(maxDate, 9999)
|
|
2204
|
-
}, {
|
|
2205
|
-
start: startOfDay(date),
|
|
2206
|
-
end: endOfDay(date)
|
|
2207
|
-
});
|
|
2208
|
-
}
|
|
2209
|
-
parseDate(date) {
|
|
2210
|
-
return parse(date, 'dd.MM.yyyy', new Date());
|
|
2211
|
-
}
|
|
2212
|
-
formatDate(date) {
|
|
2213
|
-
if (isValid(date)) {
|
|
2214
|
-
return format(date, 'dd.MM.yyyy');
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
dayLimit(month, year) {
|
|
2218
|
-
return month ? getDaysInMonth(new Date(year, month)) : 31;
|
|
2219
|
-
}
|
|
2220
|
-
excludedMonths(day, year) {
|
|
2221
|
-
return [...new Array(12)]
|
|
2222
|
-
.map((_, i) => i)
|
|
2223
|
-
.filter(month => isExists(year, month, day));
|
|
2224
|
-
}
|
|
2225
|
-
validYear(day = 1, month = 0, year) {
|
|
2226
|
-
return isExists(year, month, day);
|
|
2227
|
-
}
|
|
2228
|
-
validDate(day, month, year, limit) {
|
|
2229
|
-
const targetDate = [day, month, year].filter(item => !!item).length === 3 ? new Date(+year, (+month - 1), +day) : null;
|
|
2230
|
-
const validDay = parseInt(day) <= this.dayLimit(parseInt(month) - 1, year ? parseInt(year) : 2000);
|
|
2231
|
-
const validMonth = this.excludedMonths(parseInt(day), year ? parseInt(year) : 2000).includes(parseInt(month) - 1);
|
|
2232
|
-
const validYear = year ? (parseInt(year) >= this.getYear(limit[0]) && parseInt(year) <= this.getYear(limit[1])) : true;
|
|
2233
|
-
const moreThenMin = targetDate ? compareAsc(targetDate, limit[0]) !== -1 : true;
|
|
2234
|
-
const lessThenMax = targetDate ? compareAsc(targetDate, limit[1]) !== 1 : true;
|
|
2235
|
-
return validDay && validMonth && validYear && moreThenMin && lessThenMax;
|
|
2236
|
-
}
|
|
2237
|
-
fillMask(date) {
|
|
2238
|
-
return [...new Array(8)]
|
|
2239
|
-
.map((_, i) => date[i] || '_')
|
|
2240
|
-
.join("")
|
|
2241
|
-
.split(/(.{2})(.{2})(.{4})/);
|
|
2242
|
-
}
|
|
2243
|
-
validInput(term) {
|
|
2244
|
-
const regExp = /(0[1-9]|1[0-9]|2[0-9]|3[0-2])\.(0[1-9]|1[0-2])\.(\d{4})/;
|
|
2245
|
-
return !!term.match(regExp);
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
DatepickerUtilsService.weekLocal = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
|
|
2249
|
-
DatepickerUtilsService.monthsLocal = [
|
|
2250
|
-
'Январь',
|
|
2251
|
-
'Февраль',
|
|
2252
|
-
'Март',
|
|
2253
|
-
'Апрель',
|
|
2254
|
-
'Май',
|
|
2255
|
-
'Июнь',
|
|
2256
|
-
'Июль',
|
|
2257
|
-
'Август',
|
|
2258
|
-
'Сентябрь',
|
|
2259
|
-
'Октябрь',
|
|
2260
|
-
'Ноябрь',
|
|
2261
|
-
'Декабрь'
|
|
2262
|
-
];
|
|
2263
|
-
DatepickerUtilsService.ɵprov = ɵɵdefineInjectable({ factory: function DatepickerUtilsService_Factory() { return new DatepickerUtilsService(); }, token: DatepickerUtilsService, providedIn: "root" });
|
|
2264
|
-
DatepickerUtilsService.decorators = [
|
|
2265
|
-
{ type: Injectable, args: [{
|
|
2266
|
-
providedIn: 'root'
|
|
2267
|
-
},] }
|
|
2268
|
-
];
|
|
2269
|
-
DatepickerUtilsService.ctorParameters = () => [];
|
|
2270
|
-
|
|
2271
|
-
const range = (min, max) => {
|
|
2272
|
-
return [...new Array(max - min)].map((_, idx) => idx + min);
|
|
2273
|
-
};
|
|
2274
|
-
const ɵ0 = range;
|
|
2275
|
-
class MaskUtilsService {
|
|
2276
|
-
constructor() { }
|
|
2277
|
-
inputSegmentOverflow([day, month, year], event, woDays) {
|
|
2278
|
-
const tsCrutchEl = event.target;
|
|
2279
|
-
const isNumberInp = Number.isInteger(parseInt(event.key));
|
|
2280
|
-
if (!isNumberInp)
|
|
2281
|
-
return;
|
|
2282
|
-
const firstRange = range(0, 3);
|
|
2283
|
-
const secondRange = woDays ? range(month.length + 1, month.length + 6) : range(day.length + 1, day.length + 4);
|
|
2284
|
-
const thirdRange = range((day.length + month.length) + 2, (day.length + month.length) + 7);
|
|
2285
|
-
const conditions = woDays ? [
|
|
2286
|
-
month.length === 2 && firstRange.includes(tsCrutchEl.selectionStart),
|
|
2287
|
-
year.length === 4 && secondRange.includes(tsCrutchEl.selectionStart)
|
|
2288
|
-
] : [
|
|
2289
|
-
day.length === 2 && firstRange.includes(tsCrutchEl.selectionStart),
|
|
2290
|
-
month.length === 2 && secondRange.includes(tsCrutchEl.selectionStart),
|
|
2291
|
-
year.length === 4 && thirdRange.includes(tsCrutchEl.selectionStart)
|
|
2292
|
-
];
|
|
2293
|
-
for (let i = 0; i < conditions.length; i++) {
|
|
2294
|
-
if (conditions[i]) {
|
|
2295
|
-
return true;
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
return false;
|
|
2299
|
-
}
|
|
2300
|
-
breakInput(event) {
|
|
2301
|
-
return (condition) => {
|
|
2302
|
-
if (condition) {
|
|
2303
|
-
event.preventDefault();
|
|
2304
|
-
}
|
|
2305
|
-
};
|
|
2306
|
-
}
|
|
2307
|
-
predictInput(input, key, inputIndex, withoutDays) {
|
|
2308
|
-
const base = withoutDays ? ['', '', '.', '', '', '', ''] : ['', '', '.', '', '', '.', '', '', '', ''];
|
|
2309
|
-
input.split('').forEach((item, idx) => base[idx] = item);
|
|
2310
|
-
const newInput = [...base.slice(0, inputIndex), key, ...base.slice(inputIndex, base.length)];
|
|
2311
|
-
return withoutDays ? `01.${newInput.filter(item => !!item).join('')}` : newInput.filter(item => !!item).join('');
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
MaskUtilsService.allowedKeys = [
|
|
2315
|
-
'Backspace',
|
|
2316
|
-
'ArrowLeft',
|
|
2317
|
-
'ArrowRight',
|
|
2318
|
-
'End',
|
|
2319
|
-
'Home'
|
|
2320
|
-
];
|
|
2321
|
-
MaskUtilsService.ɵprov = ɵɵdefineInjectable({ factory: function MaskUtilsService_Factory() { return new MaskUtilsService(); }, token: MaskUtilsService, providedIn: "root" });
|
|
2322
|
-
MaskUtilsService.decorators = [
|
|
2323
|
-
{ type: Injectable, args: [{
|
|
2324
|
-
providedIn: 'root'
|
|
2325
|
-
},] }
|
|
2326
|
-
];
|
|
2327
|
-
MaskUtilsService.ctorParameters = () => [];
|
|
2328
|
-
|
|
2329
|
-
const getScrollParent = (node) => {
|
|
2330
|
-
if (node === null) {
|
|
2331
|
-
return null;
|
|
2332
|
-
}
|
|
2333
|
-
if (node.scrollHeight > node.clientHeight) {
|
|
2334
|
-
return node;
|
|
2335
|
-
}
|
|
2336
|
-
else {
|
|
2337
|
-
return getScrollParent(node.parentNode);
|
|
2338
|
-
}
|
|
2339
|
-
};
|
|
2340
|
-
const ɵ0$1 = getScrollParent;
|
|
2341
|
-
class DatepickerComponent {
|
|
2342
|
-
constructor(utils, maskUtils) {
|
|
2343
|
-
this.utils = utils;
|
|
2344
|
-
this.maskUtils = maskUtils;
|
|
2345
|
-
this.minDate = this.utils.subYears(new Date(), 100);
|
|
2346
|
-
this.maxDate = this.utils.addYears(new Date(), 50);
|
|
2347
|
-
this.excludedDates = [];
|
|
2348
|
-
this.minYear = this.utils.subYears(new Date(), 100);
|
|
2349
|
-
this.maxYear = this.utils.addYears(new Date(), 50);
|
|
2350
|
-
this.withBackground = true;
|
|
2351
|
-
this.align = 'right';
|
|
2352
|
-
this.placeholder = 'Введите дату';
|
|
2353
|
-
this.collapseOnChange = true;
|
|
2354
|
-
this.withoutDays = false;
|
|
2355
|
-
this.onChange = new EventEmitter();
|
|
2356
|
-
this.clearVl = '';
|
|
2357
|
-
this.mask = '00.00.0000';
|
|
2358
|
-
this.customPattern = {
|
|
2359
|
-
'y': { pattern: new RegExp('\[0-9]') },
|
|
2360
|
-
'0': { pattern: new RegExp('\[0-3]') },
|
|
2361
|
-
'1': { pattern: new RegExp('\[0-9]') },
|
|
2362
|
-
'2': { pattern: new RegExp('\[0-1]') },
|
|
2363
|
-
'3': { pattern: new RegExp('\[0-9]') },
|
|
2364
|
-
'm': { pattern: new RegExp('\[0-3]') },
|
|
2365
|
-
'x': { pattern: new RegExp('\[0-9]') }
|
|
2366
|
-
};
|
|
2367
|
-
this.fixedPosition = '';
|
|
2368
|
-
this.isOpen = false;
|
|
2369
|
-
this.disabled = false;
|
|
2370
|
-
this.touched = false;
|
|
2371
|
-
this.isolatedCb = this.adjustCoreContainer.bind(this);
|
|
2372
|
-
}
|
|
2373
|
-
keyDownHandler(event) {
|
|
2374
|
-
const tsCrutchEl = event.target;
|
|
2375
|
-
const breakInput = this.maskUtils.breakInput(event);
|
|
2376
|
-
const illegalSymbol = (!Number.isInteger(parseInt(event.key))) && !MaskUtilsService.allowedKeys.includes(event.key);
|
|
2377
|
-
breakInput(illegalSymbol);
|
|
2378
|
-
const carretAfterDot = tsCrutchEl.value[tsCrutchEl.selectionStart - 1] === '.';
|
|
2379
|
-
breakInput(event.key === 'Backspace' && carretAfterDot);
|
|
2380
|
-
const splitStr = this.inputValue.split('.');
|
|
2381
|
-
let inputSegmentOverflow;
|
|
2382
|
-
if (this.withoutDays) {
|
|
2383
|
-
const [month, year] = [splitStr[0] || '', splitStr[1] || ''];
|
|
2384
|
-
inputSegmentOverflow = this.maskUtils.inputSegmentOverflow(['', month, year], event, this.withoutDays);
|
|
2385
|
-
breakInput(inputSegmentOverflow);
|
|
2386
|
-
}
|
|
2387
|
-
else {
|
|
2388
|
-
const [day, month, year] = [splitStr[0] || '', splitStr[1] || '', splitStr[2] || ''];
|
|
2389
|
-
inputSegmentOverflow = this.maskUtils.inputSegmentOverflow([day, month, year], event, this.withoutDays);
|
|
2390
|
-
breakInput(inputSegmentOverflow);
|
|
2391
|
-
}
|
|
2392
|
-
if (Number.isInteger(parseInt(event.key)) && !inputSegmentOverflow) {
|
|
2393
|
-
const [day, month, year] = this.maskUtils.predictInput(this.inputValue, event.key, tsCrutchEl.selectionStart, this.withoutDays).split('.');
|
|
2394
|
-
const ctrlDay = parseInt(day) ? day : '1';
|
|
2395
|
-
const ctrlMonth = parseInt(month) ? month : '1';
|
|
2396
|
-
const ctrlYear = (Number.isInteger(parseInt(year)) && year.replace('_', '').length === 4) ? year : null;
|
|
2397
|
-
const valid = this.utils.validDate(ctrlDay, ctrlMonth, ctrlYear, [this.minDate, this.maxDate]);
|
|
2398
|
-
breakInput(!valid);
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
typeHandler(event) {
|
|
2402
|
-
const split = this.inputValue.split('.');
|
|
2403
|
-
const isMasked = this.withoutDays ? split.length === 2 : split.length === 3;
|
|
2404
|
-
this.clearVl = this.inputValue.replace(/\./g, '');
|
|
2405
|
-
const dotCondition = !this.withoutDays
|
|
2406
|
-
? ((this.clearVl.length === 2 && split.length < 2) || (this.clearVl.length === 4)) && !isMasked && this.clearVl.length
|
|
2407
|
-
: this.clearVl.length === 2 && !isMasked;
|
|
2408
|
-
if (dotCondition) {
|
|
2409
|
-
this.inputValue = `${this.inputValue}.`;
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
woMonthIncSub(base) {
|
|
2413
|
-
if (base) {
|
|
2414
|
-
if (this.woDaysMonth === 11) {
|
|
2415
|
-
this.woDaysMonth = 0;
|
|
2416
|
-
this.woDaysYear = this.woDaysYear + 1;
|
|
2417
|
-
}
|
|
2418
|
-
else {
|
|
2419
|
-
this.woDaysMonth = this.woDaysMonth + 1;
|
|
2420
|
-
}
|
|
2421
|
-
}
|
|
2422
|
-
else {
|
|
2423
|
-
if (this.woDaysMonth === 0) {
|
|
2424
|
-
this.woDaysMonth = 11;
|
|
2425
|
-
this.woDaysYear = this.woDaysYear - 1;
|
|
2426
|
-
}
|
|
2427
|
-
else {
|
|
2428
|
-
this.woDaysMonth = this.woDaysMonth - 1;
|
|
2429
|
-
}
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
woDaysMonthSet(value) {
|
|
2433
|
-
const [month, erase] = value;
|
|
2434
|
-
this.woDaysMonth = month;
|
|
2435
|
-
const targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
2436
|
-
if (!erase) {
|
|
2437
|
-
this.inputValue = targetDate;
|
|
2438
|
-
this.lastValidInput = this.inputValue;
|
|
2439
|
-
this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
2440
|
-
}
|
|
2441
|
-
if (this.collapseOnChange) {
|
|
2442
|
-
this.isOpen = false;
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
woDaysYearSet(value) {
|
|
2446
|
-
const [year, erase] = value;
|
|
2447
|
-
this.woDaysYear = year;
|
|
2448
|
-
let targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
2449
|
-
if (this.utils.isMinOverlap(this.minDate, this.utils.parseDate(`01.${targetDate}`))) {
|
|
2450
|
-
this.woDaysMonth = new Date(this.minDate).getMonth();
|
|
2451
|
-
targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
2452
|
-
this.core.setMonth(this.woDaysMonth);
|
|
2453
|
-
}
|
|
2454
|
-
else if (this.utils.isMaxOverlap(this.maxDate, this.utils.parseDate(`01.${targetDate}`))) {
|
|
2455
|
-
this.woDaysMonth = new Date(this.maxDate).getMonth();
|
|
2456
|
-
targetDate = `${String(this.woDaysMonth + 1).length === 1 ? `0${this.woDaysMonth + 1}` : this.woDaysMonth + 1}.${this.woDaysYear}`;
|
|
2457
|
-
this.core.setMonth(this.woDaysMonth);
|
|
2458
|
-
}
|
|
2459
|
-
if (!erase) {
|
|
2460
|
-
this.inputValue = targetDate;
|
|
2461
|
-
this.lastValidInput = this.inputValue;
|
|
2462
|
-
this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
|
|
2463
|
-
}
|
|
2464
|
-
if (this.collapseOnChange) {
|
|
2465
|
-
this.isOpen = false;
|
|
2466
|
-
}
|
|
2467
|
-
}
|
|
2468
|
-
clickInputHandler() {
|
|
2469
|
-
if (!this.isOpen) {
|
|
2470
|
-
this.adjustCoreContainer();
|
|
2471
|
-
this.isOpen = true;
|
|
2472
|
-
}
|
|
2473
|
-
;
|
|
2474
|
-
}
|
|
2475
|
-
clickOutsideHandler(event) {
|
|
2476
|
-
if (this.isOpen)
|
|
2477
|
-
this.isOpen = false;
|
|
2478
|
-
}
|
|
2479
|
-
isExcluded(date) {
|
|
2480
|
-
return !!this.excludedDates
|
|
2481
|
-
.filter(item => this.utils.isSameDay(item, date))
|
|
2482
|
-
.length;
|
|
2483
|
-
}
|
|
2484
|
-
isDisabled(date) {
|
|
2485
|
-
return this.utils.isMinOverlap(this.minDate, date)
|
|
2486
|
-
|| this.utils.isMaxOverlap(this.maxDate, date)
|
|
2487
|
-
|| this.isExcluded(date);
|
|
2488
|
-
}
|
|
2489
|
-
handleInput(event) {
|
|
2490
|
-
if (!this.touched)
|
|
2491
|
-
this.touched = true;
|
|
2492
|
-
if (!event) {
|
|
2493
|
-
this.writeValue(null);
|
|
2494
|
-
this.core.setMonth(this.utils.getMonth(new Date()), true);
|
|
2495
|
-
this.core.setYear(this.utils.getYear(new Date()), true);
|
|
2496
|
-
}
|
|
2497
|
-
const inpToValid = this.withoutDays ? `01.${event}` : event;
|
|
2498
|
-
if (!this.utils.validInput(inpToValid)) {
|
|
2499
|
-
if (!event) {
|
|
2500
|
-
this.lastValidInput = null;
|
|
2501
|
-
this.inputValue = '';
|
|
2502
|
-
return;
|
|
2503
|
-
}
|
|
2504
|
-
this.inputValue = this.lastValidInput || '';
|
|
2505
|
-
return;
|
|
2506
|
-
}
|
|
2507
|
-
;
|
|
2508
|
-
if (this.withoutDays) {
|
|
2509
|
-
this.woDaysMonth = this.utils.parseDate(inpToValid).getMonth();
|
|
2510
|
-
this.woDaysYear = this.utils.parseDate(inpToValid).getFullYear();
|
|
2511
|
-
}
|
|
2512
|
-
if (this.isDisabled(this.utils.parseDate(inpToValid))) {
|
|
2513
|
-
this.inputValue = this.lastValidInput || '';
|
|
2514
|
-
return;
|
|
2515
|
-
}
|
|
2516
|
-
this.lastValidInput = this.inputValue;
|
|
2517
|
-
this.date = this.utils.parseDate(inpToValid);
|
|
2518
|
-
this.core.setMonth(this.utils.getMonth(this.date));
|
|
2519
|
-
this.core.setYear(this.utils.getYear(this.date));
|
|
2520
|
-
this.writeValue(this.date);
|
|
2521
|
-
}
|
|
2522
|
-
handleOpen() {
|
|
2523
|
-
if (!this.isOpen) {
|
|
2524
|
-
this.adjustCoreContainer();
|
|
2525
|
-
}
|
|
2526
|
-
this.isOpen = !this.isOpen;
|
|
2527
|
-
}
|
|
2528
|
-
addListeners() {
|
|
2529
|
-
const scrollParent = getScrollParent(this.container.nativeElement);
|
|
2530
|
-
if (scrollParent) {
|
|
2531
|
-
this.scrollParent = scrollParent;
|
|
2532
|
-
scrollParent.addEventListener('scroll', this.isolatedCb);
|
|
2533
|
-
}
|
|
2534
|
-
document.addEventListener('scroll', this.isolatedCb);
|
|
2535
|
-
}
|
|
2536
|
-
ngOnDestroy() {
|
|
2537
|
-
document.removeEventListener('scroll', this.isolatedCb);
|
|
2538
|
-
if (this.scrollParent) {
|
|
2539
|
-
this.scrollParent.removeEventListener('scroll', this.isolatedCb);
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
ngAfterViewInit() {
|
|
2543
|
-
this.addListeners();
|
|
2544
|
-
this.adjustCoreContainer();
|
|
2545
|
-
}
|
|
2546
|
-
adjustCoreContainer() {
|
|
2547
|
-
if (this.container) {
|
|
2548
|
-
const { height: coreHeight } = this.core.container.nativeElement.getBoundingClientRect();
|
|
2549
|
-
const height = document.documentElement.offsetHeight;
|
|
2550
|
-
const { left, top, width, height: inputHeight, right: InputRight } = this.container.nativeElement.getBoundingClientRect();
|
|
2551
|
-
const fromInputPadding = 66;
|
|
2552
|
-
const coreBottomEstimate = coreHeight + top + fromInputPadding;
|
|
2553
|
-
const bottomOverflow = coreBottomEstimate > height;
|
|
2554
|
-
const coreTopEstimate = (top - coreHeight) - 20;
|
|
2555
|
-
const topOverflow = coreTopEstimate < 0;
|
|
2556
|
-
const centerVrAlign = top - (coreHeight / 2) + (inputHeight / 2);
|
|
2557
|
-
const CORE_WIDTH = 296;
|
|
2558
|
-
const coreRightEstimate = (InputRight + CORE_WIDTH + 10);
|
|
2559
|
-
const topAlign = bottomOverflow ? (topOverflow ? centerVrAlign : coreTopEstimate) : top + 66;
|
|
2560
|
-
const hAlign = coreRightEstimate < window.innerWidth ? (left + width + 10) : (left - CORE_WIDTH - 10);
|
|
2561
|
-
const defaultHpos = this.align === 'right' ? `left: ${(left + width) - CORE_WIDTH}px; top: ${topAlign}px` : `left: ${left}px; top: ${topAlign}px`;
|
|
2562
|
-
const centeredHpos = `left: ${hAlign}px; top: ${topAlign}px`;
|
|
2563
|
-
this.fixedPosition = (bottomOverflow && topOverflow) ? centeredHpos : defaultHpos;
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
handleDateChange(date) {
|
|
2567
|
-
if (!this.touched)
|
|
2568
|
-
this.touched = true;
|
|
2569
|
-
this.inputValue = this.utils.formatDate(date);
|
|
2570
|
-
this.lastValidInput = this.inputValue;
|
|
2571
|
-
this.date = date;
|
|
2572
|
-
this.writeValue(date);
|
|
2573
|
-
if (this.collapseOnChange) {
|
|
2574
|
-
this.isOpen = false;
|
|
2575
|
-
}
|
|
2576
|
-
}
|
|
2577
|
-
onFormChange(value) { }
|
|
2578
|
-
onTouch() { }
|
|
2579
|
-
registerOnChange(fn) {
|
|
2580
|
-
this.onFormChange = fn;
|
|
2581
|
-
}
|
|
2582
|
-
registerOnTouched(fn) {
|
|
2583
|
-
this.onTouch = fn;
|
|
2584
|
-
}
|
|
2585
|
-
writeValue(value) {
|
|
2586
|
-
if (this.disabled)
|
|
2587
|
-
return;
|
|
2588
|
-
if (!value)
|
|
2589
|
-
this.inputValue = '';
|
|
2590
|
-
this.date = value || new Date();
|
|
2591
|
-
this.onFormChange(value);
|
|
2592
|
-
this.onTouch();
|
|
2593
|
-
if (!this.touched)
|
|
2594
|
-
this.touched = true;
|
|
2595
|
-
this.onChange.emit(value);
|
|
2596
|
-
}
|
|
2597
|
-
setDisabledState(disabled) {
|
|
2598
|
-
this.disabled = disabled;
|
|
2599
|
-
}
|
|
2600
|
-
ngOnInit() {
|
|
2601
|
-
if (this.withoutDays) {
|
|
2602
|
-
this.mask = '00.0000';
|
|
2603
|
-
this.date = this.date ? this.date : new Date();
|
|
2604
|
-
const month = this.date.getMonth();
|
|
2605
|
-
const year = this.date.getFullYear();
|
|
2606
|
-
this.woDaysMonth = month;
|
|
2607
|
-
this.woDaysYear = year;
|
|
2608
|
-
return;
|
|
2609
|
-
}
|
|
2610
|
-
this.inputValue = this.date
|
|
2611
|
-
? this.utils.formatDate(this.date)
|
|
2612
|
-
: '';
|
|
2613
|
-
this.date = this.date ? this.date : new Date();
|
|
2614
|
-
}
|
|
2615
|
-
ngOnChanges(changes) {
|
|
2616
|
-
if (changes.date) {
|
|
2617
|
-
const newInput = this.utils.formatDate(changes.date.currentValue) || '';
|
|
2618
|
-
this.inputValue = this.withoutDays ? newInput.slice(3, 10) : newInput;
|
|
2619
|
-
this.lastValidInput = this.withoutDays ? newInput.slice(3, 10) : newInput;
|
|
2620
|
-
}
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
DatepickerComponent.decorators = [
|
|
2624
|
-
{ type: Component, args: [{
|
|
2625
|
-
selector: 'aeb-datepicker',
|
|
2626
|
-
template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{'aeb-datepicker--disabled': disabled}\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler($event)\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{'aeb-datepicker__field--onerror': hasError}\"\n >\n <aeb-label class=\"aeb-datepicker__label\">\n {{placeholder}}\n </aeb-label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event.target.value)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler($event)\"\n (keydown)=\"keyDownHandler($event)\"\n />\n <div\n class=\"aeb-datepicker__calendar-icon\"\n (click)=\"handleOpen()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"5\" y=\"6\" width=\"14\" height=\"14\" rx=\"1\" stroke=\"#27303E\" stroke-width=\"2\"/>\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#27303E\"/>\n <rect x=\"9\" y=\"3\" width=\"3\" height=\"2\" rx=\"1\" transform=\"rotate(90 9 3)\" fill=\"#27303E\"/>\n <rect x=\"17\" y=\"3\" width=\"3\" height=\"2\" rx=\"1\" transform=\"rotate(90 17 3)\" fill=\"#27303E\"/>\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{'aeb-datepicker-core--disabled': !isOpen}\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (onDateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>",
|
|
2627
|
-
encapsulation: ViewEncapsulation.None,
|
|
2628
|
-
providers: [
|
|
2629
|
-
{
|
|
2630
|
-
provide: NG_VALUE_ACCESSOR,
|
|
2631
|
-
useExisting: forwardRef(() => DatepickerComponent),
|
|
2632
|
-
multi: true
|
|
2633
|
-
}
|
|
2634
|
-
],
|
|
2635
|
-
styles: [".aeb-datepicker{width:100%;position:relative;color:var(--darkblue)}.aeb-datepicker--disabled{opacity:.7;pointer-events:none}.aeb-datepicker__field{position:relative}.aeb-datepicker__field--onerror .aeb-datepicker__input{border:2px solid var(--red)!important;color:var(--red)!important}.aeb-datepicker__field--onerror .aeb-datepicker__label{color:var(--red)}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{cursor:pointer;position:absolute;top:16px;right:12px;z-index:100}.aeb-datepicker-core{position:fixed}.aeb-datepicker-core--disabled{opacity:0;pointer-events:none}"]
|
|
2636
|
-
},] }
|
|
2637
|
-
];
|
|
2638
|
-
DatepickerComponent.ctorParameters = () => [
|
|
2639
|
-
{ type: DatepickerUtilsService },
|
|
2640
|
-
{ type: MaskUtilsService }
|
|
2641
|
-
];
|
|
2642
|
-
DatepickerComponent.propDecorators = {
|
|
2643
|
-
date: [{ type: Input, args: ['date',] }],
|
|
2644
|
-
hasError: [{ type: Input, args: ['hasError',] }],
|
|
2645
|
-
minDate: [{ type: Input, args: ['minDate',] }],
|
|
2646
|
-
maxDate: [{ type: Input, args: ['maxDate',] }],
|
|
2647
|
-
excludedDates: [{ type: Input, args: ['excludedDates',] }],
|
|
2648
|
-
minYear: [{ type: Input, args: ['minYear',] }],
|
|
2649
|
-
maxYear: [{ type: Input, args: ['maxYear',] }],
|
|
2650
|
-
withBackground: [{ type: Input, args: ['withBackground',] }],
|
|
2651
|
-
align: [{ type: Input, args: ['align',] }],
|
|
2652
|
-
placeholder: [{ type: Input, args: ['placeholder',] }],
|
|
2653
|
-
collapseOnChange: [{ type: Input, args: ['collapseOnChange',] }],
|
|
2654
|
-
withoutDays: [{ type: Input, args: ['withoutDays',] }],
|
|
2655
|
-
core: [{ type: ViewChild, args: ['core',] }],
|
|
2656
|
-
input: [{ type: ViewChild, args: ['input',] }],
|
|
2657
|
-
container: [{ type: ViewChild, args: ['container',] }],
|
|
2658
|
-
onChange: [{ type: Output, args: ['onChange',] }]
|
|
2659
|
-
};
|
|
2660
|
-
|
|
2661
|
-
class DatepickerCoreComponent {
|
|
2662
|
-
constructor(utils) {
|
|
2663
|
-
this.utils = utils;
|
|
2664
|
-
this.withBackground = true;
|
|
2665
|
-
this.align = 'right';
|
|
2666
|
-
this.withoutDays = false;
|
|
2667
|
-
this.onDateChange = new EventEmitter();
|
|
2668
|
-
this.woDaysMonth = new EventEmitter();
|
|
2669
|
-
this.woDaysYear = new EventEmitter();
|
|
2670
|
-
this.woDaysMonthSubInc = new EventEmitter();
|
|
2671
|
-
this.isShowYears = false;
|
|
2672
|
-
this.isShowMonths = false;
|
|
2673
|
-
}
|
|
2674
|
-
addMonth() {
|
|
2675
|
-
const startOfMonth = this.firstDay();
|
|
2676
|
-
if (this.currentMonth === 11) {
|
|
2677
|
-
this.currentMonth = 0;
|
|
2678
|
-
this.currentYear = this.currentYear + 1;
|
|
2679
|
-
}
|
|
2680
|
-
else {
|
|
2681
|
-
this.currentMonth = this.currentMonth + 1;
|
|
2682
|
-
}
|
|
2683
|
-
this.month = this.utils.genMonth(this.utils.addMonths(startOfMonth, 1));
|
|
2684
|
-
if (this.withoutDays) {
|
|
2685
|
-
this.woDaysMonthSubInc.emit(true);
|
|
2686
|
-
}
|
|
2687
|
-
}
|
|
2688
|
-
subMonth() {
|
|
2689
|
-
const startOfMonth = this.firstDay();
|
|
2690
|
-
if (this.currentMonth === 0) {
|
|
2691
|
-
this.currentMonth = 11;
|
|
2692
|
-
this.currentYear = this.currentYear - 1;
|
|
2693
|
-
}
|
|
2694
|
-
else {
|
|
2695
|
-
this.currentMonth = this.currentMonth - 1;
|
|
2696
|
-
}
|
|
2697
|
-
this.month = this.utils.genMonth(this.utils.subMonths(startOfMonth, 1));
|
|
2698
|
-
if (this.withoutDays) {
|
|
2699
|
-
this.woDaysMonthSubInc.emit(false);
|
|
2700
|
-
}
|
|
2701
|
-
}
|
|
2702
|
-
setMonth(month, erase) {
|
|
2703
|
-
if (this.withoutDays) {
|
|
2704
|
-
this.woDaysMonth.emit([month, erase]);
|
|
2705
|
-
this.currentMonth = month;
|
|
2706
|
-
this.reDraw();
|
|
2707
|
-
return;
|
|
2708
|
-
}
|
|
2709
|
-
this.currentMonth = month;
|
|
2710
|
-
this.isShowMonths = false;
|
|
2711
|
-
this.reDraw();
|
|
2712
|
-
}
|
|
2713
|
-
setYear(year, erase) {
|
|
2714
|
-
if (this.withoutDays) {
|
|
2715
|
-
this.woDaysYear.emit([year, erase]);
|
|
2716
|
-
this.currentYear = year;
|
|
2717
|
-
this.reDraw();
|
|
2718
|
-
return;
|
|
2719
|
-
}
|
|
2720
|
-
this.currentYear = year;
|
|
2721
|
-
this.isShowYears = false;
|
|
2722
|
-
this.reDraw();
|
|
2723
|
-
}
|
|
2724
|
-
setDate(date) {
|
|
2725
|
-
this.onDateChange.emit(date);
|
|
2726
|
-
}
|
|
2727
|
-
reDraw() {
|
|
2728
|
-
const startOfMonth = this.utils.setMonth(this.currentMonth, this.currentYear);
|
|
2729
|
-
this.month = this.utils.genMonth(startOfMonth);
|
|
2730
|
-
}
|
|
2731
|
-
firstDay() {
|
|
2732
|
-
return this.month[0].filter(item => item)[0];
|
|
2733
|
-
}
|
|
2734
|
-
showMonthsHandler() {
|
|
2735
|
-
if (this.withoutDays && this.isShowMonths)
|
|
2736
|
-
return;
|
|
2737
|
-
if (this.isShowYears)
|
|
2738
|
-
this.isShowYears = false;
|
|
2739
|
-
this.isShowMonths = !this.isShowMonths;
|
|
2740
|
-
}
|
|
2741
|
-
showYearsHandler() {
|
|
2742
|
-
if (this.withoutDays && this.isShowYears)
|
|
2743
|
-
return;
|
|
2744
|
-
if (this.isShowMonths)
|
|
2745
|
-
this.isShowMonths = false;
|
|
2746
|
-
this.isShowYears = !this.isShowYears;
|
|
2747
|
-
}
|
|
2748
|
-
startOfYear(year) {
|
|
2749
|
-
return new Date(year, 0, 1);
|
|
2750
|
-
}
|
|
2751
|
-
ngOnInit() {
|
|
2752
|
-
this.currentMonth = this.utils.getMonth(this.date);
|
|
2753
|
-
this.currentYear = this.utils.getYear(this.date);
|
|
2754
|
-
this.month = this.utils.genMonth(this.date);
|
|
2755
|
-
if (this.withoutDays) {
|
|
2756
|
-
this.isShowMonths = true;
|
|
2757
|
-
}
|
|
2758
|
-
}
|
|
2759
|
-
ngOnChanges(changes) {
|
|
2760
|
-
}
|
|
2761
|
-
}
|
|
2762
|
-
DatepickerCoreComponent.decorators = [
|
|
2763
|
-
{ type: Component, args: [{
|
|
2764
|
-
selector: 'aeb-datepicker-core',
|
|
2765
|
-
template: "<div\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{\n 'aeb-datepicker-core--with-background': withBackground,\n 'aeb-datepicker-core--left': align === 'left',\n 'aeb-datepicker-core--right': align === 'right'\n }\"\n #container\n>\n <div class=\"aeb-datepicker-core__controls\">\n <div\n class=\"aeb-datepicker-core__arrow\"\n (click)=\"subMonth()\"\n >\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <div\n class=\"aeb-datepicker-core__btn aeb-datepicker-core__btn--month\"\n (click)=\"showMonthsHandler()\"\n >\n {{ firstDay() | date:'LLLL' | titlecase }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{'aeb-datepicker-core__arrow-icon--active': isShowMonths}\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n class=\"aeb-datepicker-core__btn\"\n (click)=\"showYearsHandler()\"\n >\n {{ firstDay() | date:'yyyy' }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{'aeb-datepicker-core__arrow-icon--active': isShowYears}\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n class=\"aeb-datepicker-core__arrow aeb-datepicker-core__arrow--right\"\n (click)=\"addMonth()\"\n >\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__calendar\">\n <div [style.display]=\"(!isShowYears && !isShowMonths) ? 'block' : 'none'\">\n <aeb-datepicker-month\n [month]=\"month\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n (setDate)=\"setDate($event)\"\n >\n </aeb-datepicker-month>\n </div>\n <div [style.display]=\"isShowYears ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [year]=\"currentYear\"\n [date]=\"startOfYear(currentYear)\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setYear)=\"setYear($event)\"\n [isYears]=\"isShowYears\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n <div [style.display]=\"isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [isMonths]=\"isShowMonths\"\n [month]=\"currentMonth\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setMonth)=\"setMonth($event)\"\n [year]=\"currentYear\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n </div>\n</div>\n",
|
|
2766
|
-
providers: [
|
|
2767
|
-
{ provide: LOCALE_ID, useValue: 'ru' }
|
|
2768
|
-
],
|
|
2769
|
-
encapsulation: ViewEncapsulation.None,
|
|
2770
|
-
styles: [".aeb-datepicker-core{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:fixed;z-index:9999}.aeb-datepicker-core--with-background{background-color:var(--white);border-radius:10px;border:2px solid var(--gray-primary);padding:10px}.aeb-datepicker-core__calendar{min-height:220px;width:100%}.aeb-datepicker-core__controls{display:flex;justify-content:center;align-items:center;margin-bottom:10px}.aeb-datepicker-core__arrow{cursor:pointer}.aeb-datepicker-core__arrow--right{transform:rotate(180deg);margin-bottom:10px}.aeb-datepicker-core__btn{display:flex;align-items:center;justify-content:space-between;border:2px solid var(--gray-primary);font-size:14px;padding:6px 10px;border-radius:4px;cursor:pointer;margin-right:20px;width:72px;box-sizing:border-box}.aeb-datepicker-core__btn--month{width:112px;margin-right:10px;margin-left:20px}.aeb-datepicker-core__arrow-icon{box-sizing:border-box;position:relative;bottom:2px}.aeb-datepicker-core__arrow-icon--active{transform:rotate(180deg)}"]
|
|
2771
|
-
},] }
|
|
2772
|
-
];
|
|
2773
|
-
DatepickerCoreComponent.ctorParameters = () => [
|
|
2774
|
-
{ type: DatepickerUtilsService }
|
|
2775
|
-
];
|
|
2776
|
-
DatepickerCoreComponent.propDecorators = {
|
|
2777
|
-
date: [{ type: Input, args: ['date',] }],
|
|
2778
|
-
minDate: [{ type: Input, args: ['minDate',] }],
|
|
2779
|
-
maxDate: [{ type: Input, args: ['maxDate',] }],
|
|
2780
|
-
excludedDates: [{ type: Input, args: ['excludedDates',] }],
|
|
2781
|
-
minYear: [{ type: Input, args: ['minYear',] }],
|
|
2782
|
-
maxYear: [{ type: Input, args: ['maxYear',] }],
|
|
2783
|
-
withBackground: [{ type: Input, args: ['withBackground',] }],
|
|
2784
|
-
align: [{ type: Input, args: ['align',] }],
|
|
2785
|
-
withoutDays: [{ type: Input, args: ['withoutDays',] }],
|
|
2786
|
-
onDateChange: [{ type: Output, args: ['onDateChange',] }],
|
|
2787
|
-
woDaysMonth: [{ type: Output, args: ['woDaysMonth',] }],
|
|
2788
|
-
woDaysYear: [{ type: Output, args: ['woDaysYear',] }],
|
|
2789
|
-
woDaysMonthSubInc: [{ type: Output, args: ['woDaysMonthSubInc',] }],
|
|
2790
|
-
container: [{ type: ViewChild, args: ['container',] }]
|
|
2791
|
-
};
|
|
2792
|
-
|
|
2793
|
-
class DatepickerMonthComponent {
|
|
2794
|
-
constructor(utils) {
|
|
2795
|
-
this.utils = utils;
|
|
2796
|
-
this.setDate = new EventEmitter();
|
|
2797
|
-
this.week = DatepickerUtilsService.weekLocal;
|
|
2798
|
-
}
|
|
2799
|
-
isToday(date) {
|
|
2800
|
-
return this.utils.isToday(date);
|
|
2801
|
-
}
|
|
2802
|
-
emitDate(date) {
|
|
2803
|
-
if (this.isDisabled(date))
|
|
2804
|
-
return;
|
|
2805
|
-
this.setDate.emit(date);
|
|
2806
|
-
}
|
|
2807
|
-
sameDate(date) {
|
|
2808
|
-
return this.utils.isSameDay(this.date, date);
|
|
2809
|
-
}
|
|
2810
|
-
isExcluded(date) {
|
|
2811
|
-
return !!this.excludedDates
|
|
2812
|
-
.filter(item => this.utils.isSameDay(item, date))
|
|
2813
|
-
.length;
|
|
2814
|
-
}
|
|
2815
|
-
isDisabled(date) {
|
|
2816
|
-
return this.utils.isMinOverlap(this.minDate, date)
|
|
2817
|
-
|| this.utils.isMaxOverlap(this.maxDate, date)
|
|
2818
|
-
|| this.isExcluded(date);
|
|
2819
|
-
}
|
|
2820
|
-
ngOnInit() {
|
|
2821
|
-
}
|
|
2822
|
-
}
|
|
2823
|
-
DatepickerMonthComponent.decorators = [
|
|
2824
|
-
{ type: Component, args: [{
|
|
2825
|
-
selector: 'aeb-datepicker-month',
|
|
2826
|
-
template: "<div class=\"aeb-datepicker-month__week\">\n <div\n *ngFor=\"let day of week\"\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\"\n >\n {{day}}\n </div>\n</div>\n<div *ngFor=\"let week of month\" class=\"aeb-datepicker-month__week\">\n <ng-container\n *ngFor=\"let day of week\"\n >\n <div\n *ngIf=\"!!day; else elseStub\"\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': isToday(day),\n 'aeb-datepicker-month__day--picked': sameDate(day),\n 'aeb-datepicker-month__day--disabled': isDisabled(day)\n }\"\n (click)=\"emitDate(day)\"\n >\n {{day | dateToStr}}\n </div>\n <ng-template\n #elseStub\n >\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n >\n </div>\n </ng-template>\n </ng-container>\n</div>\n",
|
|
2827
|
-
encapsulation: ViewEncapsulation.None,
|
|
2828
|
-
styles: [".aeb-datepicker-month__week{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:flex;align-items:center}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{width:32px;height:28px;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;box-sizing:border-box;border-radius:4px}.aeb-datepicker-month__day:hover{border:1px solid var(--blue)}.aeb-datepicker-month__day--stub{cursor:none;pointer-events:none}.aeb-datepicker-month__day--stub:hover{border:none}.aeb-datepicker-month__day--today{border:1px solid var(--gray-primary)}.aeb-datepicker-month__day--picked{border:none;background-color:var(--blue);color:#fff}.aeb-datepicker-month__day--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-month__day--disabled:hover{border:none}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:12px;color:var(--gray-primary);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:none}"]
|
|
2829
|
-
},] }
|
|
2830
|
-
];
|
|
2831
|
-
DatepickerMonthComponent.ctorParameters = () => [
|
|
2832
|
-
{ type: DatepickerUtilsService }
|
|
2833
|
-
];
|
|
2834
|
-
DatepickerMonthComponent.propDecorators = {
|
|
2835
|
-
month: [{ type: Input, args: ['month',] }],
|
|
2836
|
-
setDate: [{ type: Output, args: ['setDate',] }],
|
|
2837
|
-
date: [{ type: Input, args: ['date',] }],
|
|
2838
|
-
minDate: [{ type: Input, args: ['minDate',] }],
|
|
2839
|
-
maxDate: [{ type: Input, args: ['maxDate',] }],
|
|
2840
|
-
excludedDates: [{ type: Input, args: ['excludedDates',] }]
|
|
2841
|
-
};
|
|
2842
|
-
|
|
2843
|
-
class DateToStrPipe {
|
|
2844
|
-
transform(value) {
|
|
2845
|
-
return value ? `${getDate(value)}` : '';
|
|
2846
|
-
}
|
|
2847
|
-
}
|
|
2848
|
-
DateToStrPipe.decorators = [
|
|
2849
|
-
{ type: Pipe, args: [{
|
|
2850
|
-
name: 'dateToStr'
|
|
2851
|
-
},] }
|
|
2852
|
-
];
|
|
2853
|
-
|
|
2854
|
-
class DatepickerTilesComponent {
|
|
2855
|
-
constructor(utils) {
|
|
2856
|
-
this.utils = utils;
|
|
2857
|
-
this.isMonths = false;
|
|
2858
|
-
this.isYears = false;
|
|
2859
|
-
this.setYear = new EventEmitter();
|
|
2860
|
-
this.setMonth = new EventEmitter();
|
|
2861
|
-
this.woDays = false;
|
|
2862
|
-
this.months = DatepickerUtilsService.monthsLocal;
|
|
2863
|
-
}
|
|
2864
|
-
emitMonth(month) {
|
|
2865
|
-
this.setMonth.emit(month);
|
|
2866
|
-
}
|
|
2867
|
-
emitYear(year) {
|
|
2868
|
-
this.setYear.emit(year);
|
|
2869
|
-
}
|
|
2870
|
-
scrollYears() {
|
|
2871
|
-
if (this.isMonths)
|
|
2872
|
-
return;
|
|
2873
|
-
const diff = Math.abs(this.utils.yearsDiff(this.utils.startOfYear(this.date), this.utils.startOfYear(this.maxYear)));
|
|
2874
|
-
const yearRowHeight = 54;
|
|
2875
|
-
const steps = Math.floor(diff / 3);
|
|
2876
|
-
const padding = 6;
|
|
2877
|
-
const marginDelta = steps;
|
|
2878
|
-
this.container.nativeElement.scrollTop = (yearRowHeight * steps) + marginDelta - padding;
|
|
2879
|
-
}
|
|
2880
|
-
ngOnInit() {
|
|
2881
|
-
this.years = this.utils.genYears(this.minYear, this.maxYear).reverse();
|
|
2882
|
-
}
|
|
2883
|
-
ngOnChanges(changes) {
|
|
2884
|
-
if (changes.isYears && this.container) {
|
|
2885
|
-
setTimeout(() => this.scrollYears());
|
|
2886
|
-
}
|
|
2887
|
-
}
|
|
2888
|
-
isMonthDisabled(month) {
|
|
2889
|
-
if (this.woDays) {
|
|
2890
|
-
return this.utils.isMinOverlap(this.minDate, new Date(this.year, month))
|
|
2891
|
-
|| this.utils.isMaxOverlap(this.maxDate, new Date(this.year, month));
|
|
2892
|
-
}
|
|
2893
|
-
else {
|
|
2894
|
-
return false;
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
isYearDisabled(year) {
|
|
2898
|
-
if (this.woDays) {
|
|
2899
|
-
return this.utils.isMinOverlap(this.minDate, new Date(year, 11, 31))
|
|
2900
|
-
|| this.utils.isMaxOverlap(this.maxDate, new Date(year, 0));
|
|
2901
|
-
}
|
|
2902
|
-
else {
|
|
2903
|
-
return false;
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2907
|
-
DatepickerTilesComponent.decorators = [
|
|
2908
|
-
{ type: Component, args: [{
|
|
2909
|
-
selector: 'aeb-datepicker-tiles',
|
|
2910
|
-
template: "<div\n class=\"aeb-datepicker-tiles\"\n #container\n>\n <div\n class=\"aeb-datepicker-tiles__scroll\"\n [ngClass]=\"{'aeb-datepicker-tiles__scroll--months': isMonths}\"\n >\n <div\n [style.display]=\"!isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n *ngFor=\"let yearNum of years\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': yearNum === year,\n 'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)\n }\"\n (click)=\"emitYear(yearNum)\"\n >\n {{ yearNum }}\n </div>\n <div\n [style.display]=\"isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n *ngFor=\"let monthNum of months; let i = index\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': i === month,\n 'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)\n }\"\n (click)=\"emitMonth(i)\"\n >\n {{ monthNum }}\n </div>\n </div>\n</div>",
|
|
2911
|
-
styles: [".aeb-datepicker-tiles{min-width:275px;height:220px;position:relative;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{display:flex;flex-wrap:wrap;justify-content:space-between;position:absolute;width:100%}.aeb-datepicker-tiles__tile{width:84px;height:41px;display:flex;justify-content:center;align-items:center;border:1px solid var(--gray-primary);border-radius:4px;font-size:16px;box-sizing:unset!important}.aeb-datepicker-tiles__tile:hover{border:1px solid var(--blue);cursor:pointer}.aeb-datepicker-tiles__tile:not(:nth-last-child(-n+3)){margin-bottom:12px}.aeb-datepicker-tiles__tile--active{border:1px solid var(--blue);background-color:var(--blue);color:#fff}.aeb-datepicker-tiles__tile--disabled{color:var(--gray-primary);cursor:none;pointer-events:none}.aeb-datepicker-tiles__tile--disabled:hover{border:none}"]
|
|
2912
|
-
},] }
|
|
2913
|
-
];
|
|
2914
|
-
DatepickerTilesComponent.ctorParameters = () => [
|
|
2915
|
-
{ type: DatepickerUtilsService }
|
|
2916
|
-
];
|
|
2917
|
-
DatepickerTilesComponent.propDecorators = {
|
|
2918
|
-
container: [{ type: ViewChild, args: ['container',] }],
|
|
2919
|
-
date: [{ type: Input, args: ['date',] }],
|
|
2920
|
-
isMonths: [{ type: Input, args: ['isMonths',] }],
|
|
2921
|
-
isYears: [{ type: Input, args: ['isYears',] }],
|
|
2922
|
-
year: [{ type: Input, args: ['year',] }],
|
|
2923
|
-
setYear: [{ type: Output, args: ['setYear',] }],
|
|
2924
|
-
month: [{ type: Input, args: ['month',] }],
|
|
2925
|
-
setMonth: [{ type: Output, args: ['setMonth',] }],
|
|
2926
|
-
minYear: [{ type: Input, args: ['minYear',] }],
|
|
2927
|
-
maxYear: [{ type: Input, args: ['maxYear',] }],
|
|
2928
|
-
minDate: [{ type: Input, args: ['minDate',] }],
|
|
2929
|
-
maxDate: [{ type: Input, args: ['maxDate',] }],
|
|
2930
|
-
woDays: [{ type: Input, args: ['woDays',] }]
|
|
2931
|
-
};
|
|
2932
|
-
|
|
2933
|
-
const maskConfig = {
|
|
2934
|
-
validation: false,
|
|
2935
|
-
};
|
|
2936
|
-
const maskModule = NgxMaskModule.forRoot(maskConfig);
|
|
2937
|
-
class DatepickerModule {
|
|
2938
|
-
}
|
|
2939
|
-
DatepickerModule.decorators = [
|
|
2940
|
-
{ type: NgModule, args: [{
|
|
2941
|
-
declarations: [
|
|
2942
|
-
DatepickerComponent,
|
|
2943
|
-
DatepickerCoreComponent,
|
|
2944
|
-
DatepickerMonthComponent,
|
|
2945
|
-
DateToStrPipe,
|
|
2946
|
-
DatepickerTilesComponent,
|
|
2947
|
-
],
|
|
2948
|
-
imports: [
|
|
2949
|
-
CommonModule,
|
|
2950
|
-
FormFieldModule,
|
|
2951
|
-
FormsModule,
|
|
2952
|
-
ClickOutsideModule,
|
|
2953
|
-
maskModule
|
|
2954
|
-
],
|
|
2955
|
-
exports: [
|
|
2956
|
-
DatepickerComponent,
|
|
2957
|
-
DatepickerCoreComponent,
|
|
2958
|
-
DatepickerMonthComponent,
|
|
2959
|
-
DateToStrPipe,
|
|
2960
|
-
DatepickerTilesComponent,
|
|
2961
|
-
],
|
|
2962
|
-
},] }
|
|
2963
|
-
];
|
|
2964
|
-
|
|
2965
|
-
class RadioButtonsComponent {
|
|
2966
|
-
constructor() {
|
|
2967
|
-
// Методы для управления компонентом вне формы
|
|
2968
|
-
this.change = new EventEmitter();
|
|
2969
|
-
this.disabled = false;
|
|
2970
|
-
this.horizontal = false;
|
|
2971
|
-
}
|
|
2972
|
-
onChange(value) { }
|
|
2973
|
-
onTouch() { }
|
|
2974
|
-
registerOnChange(fn) {
|
|
2975
|
-
this.onChange = fn;
|
|
2976
|
-
}
|
|
2977
|
-
registerOnTouched(fn) {
|
|
2978
|
-
this.onTouch = fn;
|
|
2979
|
-
}
|
|
2980
|
-
writeValue(value) {
|
|
2981
|
-
if (this.disabled)
|
|
2982
|
-
return;
|
|
2983
|
-
this.value = value;
|
|
2984
|
-
this.onChange(value);
|
|
2985
|
-
this.onTouch();
|
|
2986
|
-
if (!this.touched)
|
|
2987
|
-
this.touched = true;
|
|
2988
|
-
this.change.emit(value);
|
|
2989
|
-
}
|
|
2990
|
-
setDisabledState(disabled) {
|
|
2991
|
-
this.disabled = disabled;
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
|
-
RadioButtonsComponent.decorators = [
|
|
2995
|
-
{ type: Component, args: [{
|
|
2996
|
-
selector: 'aeb-radio-buttons',
|
|
2997
|
-
template: "<div\n class=\"aeb-radio-buttons\"\n [ngClass]=\"{\n 'aeb-radio-buttons--disabled': disabled,\n 'aeb-radio-buttons--error': hasError\n }\"\n>\n <div class=\"aeb-radio-buttons__header\">\n {{header}}\n </div>\n <div class=\"aeb-radio-buttons__items\" [ngClass]=\"{horizontal: horizontal}\">\n <div\n *ngFor=\"let option of options\"\n class=\"aeb-radio-buttons__item\"\n (click)=\"writeValue(option.value)\"\n >\n <div\n class=\"aeb-radio-buttons__circle\"\n [ngClass]=\"{'aeb-radio-buttons__circle--active': value === option.value}\"\n ></div>\n <span class=\"aeb-radio-buttons__label\">\n {{option.label}}\n </span>\n </div>\n </div>\n</div>\n",
|
|
2998
|
-
encapsulation: ViewEncapsulation.None,
|
|
2999
|
-
providers: [
|
|
3000
|
-
{
|
|
3001
|
-
provide: NG_VALUE_ACCESSOR,
|
|
3002
|
-
useExisting: forwardRef(() => RadioButtonsComponent),
|
|
3003
|
-
multi: true
|
|
3004
|
-
}
|
|
3005
|
-
],
|
|
3006
|
-
styles: [".aeb-radio-buttons{color:var(--darkblue)}.aeb-radio-buttons--disabled{color:var(--gray-primary);pointer-events:none}.aeb-radio-buttons--disabled .aeb-radio-buttons__circle{border:2px solid var(--gray-primary)}.aeb-radio-buttons--disabled .aeb-radio-buttons__circle:after{background-color:var(--gray-primary)}.aeb-radio-buttons--error{color:var(--red)}.aeb-radio-buttons--error .aeb-radio-buttons__circle{border:2px solid var(--red)}.aeb-radio-buttons__header{font-size:16px;color:var(--gray-primary);margin-bottom:15px}.aeb-radio-buttons__items{display:inline-flex;flex-direction:column}.aeb-radio-buttons__items.horizontal{flex-direction:row;align-items:flex-start}.aeb-radio-buttons__items.horizontal .aeb-radio-buttons__item{padding-right:32px;margin-bottom:0}.aeb-radio-buttons__item{display:inline-flex;align-items:center;cursor:pointer}.aeb-radio-buttons__item:not(:last-child){margin-bottom:15px}.aeb-radio-buttons__item:hover .aeb-radio-buttons__circle{border:2px solid var(--blue-turquoise)}.aeb-radio-buttons__item:hover .aeb-radio-buttons__circle:after{background-color:var(--blue-turquoise)}.aeb-radio-buttons__item:active .aeb-radio-buttons__circle{position:relative;background-image:var(--active-gradient);border:2px solid transparent}.aeb-radio-buttons__item:active .aeb-radio-buttons__circle:before{position:absolute;top:0;content:\"\";width:100%;height:100%;border-radius:50%;background-color:#fff;z-index:0}.aeb-radio-buttons__item:active .aeb-radio-buttons__circle:after{background-image:var(--active-gradient)}.aeb-radio-buttons__label{font-size:16px;display:block}.aeb-radio-buttons__circle{width:16px;height:16px;margin-right:10px;border:2px solid var(--blue);border-radius:50%;position:relative}.aeb-radio-buttons__circle--active:after{position:absolute;top:calc(50% - 5px);left:calc(50% - 5px);content:\"\";width:10px;height:10px;background-color:var(--blue);border-radius:50%}"]
|
|
3007
|
-
},] }
|
|
3008
|
-
];
|
|
3009
|
-
RadioButtonsComponent.ctorParameters = () => [];
|
|
3010
|
-
RadioButtonsComponent.propDecorators = {
|
|
3011
|
-
options: [{ type: Input, args: ['options',] }],
|
|
3012
|
-
header: [{ type: Input, args: ['header',] }],
|
|
3013
|
-
hasError: [{ type: Input, args: ['hasError',] }],
|
|
3014
|
-
change: [{ type: Output }],
|
|
3015
|
-
value: [{ type: Input, args: ['value',] }],
|
|
3016
|
-
horizontal: [{ type: Input, args: ['horizontal',] }]
|
|
3017
|
-
};
|
|
3018
|
-
|
|
3019
|
-
class RadioButtonsModule {
|
|
3020
|
-
}
|
|
3021
|
-
RadioButtonsModule.decorators = [
|
|
3022
|
-
{ type: NgModule, args: [{
|
|
3023
|
-
declarations: [RadioButtonsComponent],
|
|
3024
|
-
imports: [
|
|
3025
|
-
CommonModule
|
|
3026
|
-
],
|
|
3027
|
-
exports: [RadioButtonsComponent]
|
|
3028
|
-
},] }
|
|
3029
|
-
];
|
|
3030
|
-
|
|
3031
|
-
class AccordionComponent {
|
|
3032
|
-
constructor() {
|
|
3033
|
-
this.isOpen = false;
|
|
3034
|
-
}
|
|
3035
|
-
openHandler() {
|
|
3036
|
-
this.isOpen = !this.isOpen;
|
|
3037
|
-
this.normalizeTransition();
|
|
3038
|
-
}
|
|
3039
|
-
normalizeTransition() {
|
|
3040
|
-
if (this.isOpen) {
|
|
3041
|
-
this.content.nativeElement.style.height = `${this.content.nativeElement.scrollHeight}px`;
|
|
3042
|
-
}
|
|
3043
|
-
else {
|
|
3044
|
-
this.content.nativeElement.style.height = `0`;
|
|
3045
|
-
}
|
|
3046
|
-
}
|
|
3047
|
-
ngAfterViewInit() {
|
|
3048
|
-
this.normalizeTransition();
|
|
3049
|
-
}
|
|
3050
|
-
}
|
|
3051
|
-
AccordionComponent.decorators = [
|
|
3052
|
-
{ type: Component, args: [{
|
|
3053
|
-
selector: 'aeb-accordion',
|
|
3054
|
-
template: "<div\n class=\"aeb-accordion\"\n [ngClass]=\"{'aeb-accordion--open': isOpen}\"\n>\n <div\n class=\"aeb-accordion__header\"\n [ngClass]=\"{'aeb-accordion__header--open': isOpen}\"\n (click)=\"openHandler()\"\n >\n <span class=\"aeb-accordion__heading\">\n {{header}}\n </span>\n <div\n class=\"aeb-accordion__arrow-icon\"\n [ngClass]=\"{'aeb-accordion__arrow-icon--open': isOpen}\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0.999999 1L4.92929 4.92929C4.96834 4.96834 5.03166 4.96834 5.07071 4.92929L9 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n class=\"aeb-accordion__content\"\n #content\n >\n <ng-content></ng-content>\n <div class=\"aeb-accordion__stub-padding\">\n </div>\n </div>\n</div>",
|
|
3055
|
-
encapsulation: ViewEncapsulation.None,
|
|
3056
|
-
styles: [".aeb-accordion{width:100%;border-radius:10px;box-sizing:border-box;background-color:var(--web-white);cursor:pointer;transition:background-color,.2s;color:var(--darkblue)}.aeb-accordion--open{background-color:#d5e8fc}.aeb-accordion__header{display:flex;align-items:center;justify-content:space-between;padding:20px 25px}.aeb-accordion__header--open{color:#2f88f0}.aeb-accordion__arrow-icon{display:flex;align-items:center;transition:transform,.2s}.aeb-accordion__arrow-icon--open{transform:rotate(180deg)}.aeb-accordion__arrow-icon--open path{stroke:#2f88f0}.aeb-accordion__content{cursor:auto;overflow:hidden;transition:height .2s;position:relative;bottom:8px;padding:0 25px;box-sizing:border-box;border-radius:0 0 10px 10px}.aeb-accordion__stub-padding{height:10px}"]
|
|
3057
|
-
},] }
|
|
3058
|
-
];
|
|
3059
|
-
AccordionComponent.ctorParameters = () => [];
|
|
3060
|
-
AccordionComponent.propDecorators = {
|
|
3061
|
-
header: [{ type: Input, args: ['header',] }],
|
|
3062
|
-
content: [{ type: ViewChild, args: ['content',] }]
|
|
3063
|
-
};
|
|
3064
|
-
|
|
3065
|
-
class AccordionModule {
|
|
3066
|
-
}
|
|
3067
|
-
AccordionModule.decorators = [
|
|
3068
|
-
{ type: NgModule, args: [{
|
|
3069
|
-
declarations: [AccordionComponent],
|
|
3070
|
-
imports: [
|
|
3071
|
-
CommonModule
|
|
3072
|
-
],
|
|
3073
|
-
exports: [AccordionComponent]
|
|
3074
|
-
},] }
|
|
3075
|
-
];
|
|
3076
|
-
|
|
3077
|
-
class CommentComponent {
|
|
3078
|
-
constructor() {
|
|
3079
|
-
this.response = new EventEmitter();
|
|
3080
|
-
this.isExpanded = false;
|
|
3081
|
-
this.onResponse = false;
|
|
3082
|
-
this.titleError = false;
|
|
3083
|
-
this.contentError = false;
|
|
3084
|
-
this.responseForm = new FormGroup({
|
|
3085
|
-
title: new FormControl('', { validators: Validators.required }),
|
|
3086
|
-
content: new FormControl('', { validators: Validators.required })
|
|
3087
|
-
});
|
|
3088
|
-
}
|
|
3089
|
-
expandHandler() {
|
|
3090
|
-
this.isExpanded = !this.isExpanded;
|
|
3091
|
-
}
|
|
3092
|
-
responseHandler() {
|
|
3093
|
-
this.onResponse = !this.onResponse;
|
|
3094
|
-
}
|
|
3095
|
-
submitHandler() {
|
|
3096
|
-
this.titleError = this.responseForm.get('title').invalid;
|
|
3097
|
-
this.contentError = this.responseForm.get('content').invalid;
|
|
3098
|
-
if (this.responseForm.invalid)
|
|
3099
|
-
return;
|
|
3100
|
-
this.response.emit(Object.assign(Object.assign({}, this.responseForm.value), { hash: this.comment.hash, parentHash: this.comment.parentHash, parentName: this.comment.parentName, firstName: 'Дмитрий', lastName: 'Сахаров' }));
|
|
3101
|
-
this.onResponse = false;
|
|
3102
|
-
}
|
|
3103
|
-
hoistHandler(data) {
|
|
3104
|
-
this.response.emit(data);
|
|
3105
|
-
}
|
|
3106
|
-
nullTarget(event) {
|
|
3107
|
-
event.preventDefault();
|
|
3108
|
-
}
|
|
3109
|
-
ngOnInit() {
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
CommentComponent.decorators = [
|
|
3113
|
-
{ type: Component, args: [{
|
|
3114
|
-
selector: 'aeb-comment',
|
|
3115
|
-
template: "<div class=\"aeb-comment\">\n <div class=\"aeb-comment__avatar-column\">\n <div class=\"aeb-comment__avatar\">\n <img\n [src]=\"comment.avatar\"\n *ngIf=\"comment.avatar; else nameTemplate\"\n />\n <ng-template #nameTemplate>\n <div class=\"aeb-comment__initials\">\n {{comment.firstName.slice(0,1)}}{{comment.lastName.slice(0,1)}}\n </div>\n </ng-template>\n </div>\n </div>\n <div class=\"aeb-comment__comment-column\">\n <div class=\"aeb-comment__author-wrapper\">\n <div class=\"aeb-comment__author-group\">\n {{comment.group}}\n <ng-container\n *ngIf=\"comment.parentName\"\n >\n <div class=\"aeb-comment__reply-icon\">\n <svg width=\"10\" height=\"8\" viewBox=\"0 0 10 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.68742 1.87519H3.7499V0.312666C3.7499 0.183289 3.67053 0.0676621 3.55052 0.0207864C3.43052 -0.0254644 3.29365 0.00703617 3.20614 0.102663L0.081095 3.54022C-0.0270317 3.65897 -0.0270317 3.84085 0.081095 3.96022L3.20614 7.39778C3.26677 7.46403 3.35115 7.50028 3.4374 7.50028C3.47552 7.50028 3.51365 7.4934 3.55052 7.47965C3.67053 7.43278 3.7499 7.31715 3.7499 7.18777V5.62525H4.61929C6.40307 5.62525 8.1306 6.26401 9.48437 7.42528C9.57624 7.50465 9.70812 7.52278 9.81812 7.47153C9.92937 7.4209 10 7.30965 10 7.18777C10 4.25835 7.61684 1.87519 4.68742 1.87519Z\" fill=\"#A3AAAE\"/>\n </svg> \n </div>\n <span class=\"aeb-comment__reply-host\">\n {{comment.parentName}}\n </span>\n </ng-container>\n </div>\n <div class=\"aeb-comment__author-name\">\n {{comment.fullName}}\n <div aebTooltip [position]=\"'right'\" class=\"aeb-comment__author-info\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z\" stroke=\"#27303E\"/>\n <path d=\"M5.8125 6.3584C5.83529 5.78223 6.03874 5.31348 6.42285 4.95215C6.81022 4.59082 7.3457 4.41016 8.0293 4.41016C8.66732 4.41016 9.18652 4.58105 9.58691 4.92285C9.9873 5.26139 10.1875 5.69434 10.1875 6.22168C10.1875 6.92806 9.8457 7.48633 9.16211 7.89648C8.84961 8.08203 8.63639 8.25456 8.52246 8.41406C8.40853 8.57031 8.35156 8.77539 8.35156 9.0293V9.32715H7.34082L7.33594 8.93652C7.32292 8.59798 7.39128 8.3099 7.54102 8.07227C7.69401 7.83464 7.93978 7.61328 8.27832 7.4082C8.5778 7.22917 8.78613 7.05664 8.90332 6.89062C9.02051 6.72461 9.0791 6.51628 9.0791 6.26562C9.0791 5.98568 8.97819 5.75618 8.77637 5.57715C8.57454 5.39811 8.30762 5.30859 7.97559 5.30859C7.6403 5.30859 7.37012 5.40299 7.16504 5.5918C6.95996 5.7806 6.84603 6.03613 6.82324 6.3584H5.8125ZM7.85352 11.5879C7.67448 11.5879 7.52311 11.5277 7.39941 11.4072C7.27572 11.2868 7.21387 11.137 7.21387 10.958C7.21387 10.779 7.27572 10.6292 7.39941 10.5088C7.52311 10.3883 7.67448 10.3281 7.85352 10.3281C8.03581 10.3281 8.1888 10.3883 8.3125 10.5088C8.4362 10.6292 8.49805 10.779 8.49805 10.958C8.49805 11.137 8.4362 11.2868 8.3125 11.4072C8.1888 11.5277 8.03581 11.5879 7.85352 11.5879Z\" fill=\"#27303E\"/>\n </svg>\n <div #tooltipContent>\n <div class=\"aeb-comment__tooltip\">\n {{comment.aboutAuthor}}\n </div>\n </div> \n </div>\n </div>\n </div>\n <div class=\"aeb-comment__comment-wrapper\">\n <div class=\"aeb-comment__comment-header\">\n {{comment.title}}\n </div>\n <div class=\"aeb-comment__comment-txt\">\n {{comment.content}}\n </div>\n </div>\n <div class=\"aeb-comment__date-response\">\n <div class=\"aeb-comment__comment-date\">\n {{comment.date}}\n </div>\n <div\n class=\"aeb-comment__comment-response\"\n (click)=\"responseHandler()\"\n >\n \u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C\n </div>\n </div>\n <form\n class=\"aeb-comment__response-form\"\n *ngIf=\"onResponse\"\n [formGroup]=\"responseForm\"\n (submit)=\"nullTarget($event)\"\n >\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': titleError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <input\n aebInput\n type=\"text\"\n formControlName=\"title\"\n />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-comment__input\"\n [ngClass]=\"{\n 'aeb-comment__input--error': contentError\n }\"\n >\n <aeb-form-field>\n <aeb-label>\u0422\u0435\u043A\u0441\u0442 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F</aeb-label>\n <textarea\n aebTextarea\n style=\"height: 140px;\"\n formControlName=\"content\"\n required\n >\n </textarea>\n </aeb-form-field>\n </div>\n <div class=\"aeb-comment__submit\">\n <button (click)=\"submitHandler()\" aeb-button>\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</button>\n </div>\n </form>\n <div\n (click)=\"expandHandler()\"\n *ngIf=\"comment.nestedComments && comment.nestedComments.length\"\n class=\"aeb-comment__response-ctrls\"\n >\n <div class=\"aeb-comment__responses\">\n \u041E\u0442\u0432\u0435\u0442\u044B\n </div>\n <div class=\"aeb-comment__response-counter\">\n {{comment.nestedComments.length}}\n </div>\n <div\n class=\"aeb-comment__arrow-icon\"\n [ngClass]=\"{\n 'aeb-comment__arrow-icon--active': isExpanded\n }\"\n >\n <svg width=\"10\" height=\"6\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0.999999 5L4.92929 1.07071C4.96834 1.03166 5.03166 1.03166 5.07071 1.07071L9 5\" stroke=\"#2F88F0\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n </div>\n </div>\n <ng-container\n *ngIf=\"comment.nestedComments && comment.nestedComments.length && isExpanded\"\n >\n <ng-container *ngFor=\"let comment of comment.nestedComments\">\n <aeb-comment (response)=\"hoistHandler($event)\" [comment]=\"comment\">\n </aeb-comment>\n </ng-container>\n </ng-container>\n </div>\n</div>\n",
|
|
3116
|
-
encapsulation: ViewEncapsulation.None,
|
|
3117
|
-
styles: [".aeb-comment{width:100%;display:flex;color:var(--darkblue)}.aeb-comment__avatar-column{margin-right:12px}.aeb-comment__comment-column{flex-grow:1}.aeb-comment__avatar{width:40px;height:40px;background-color:var(--blue);border-radius:50%;display:flex;justify-content:center;align-items:center}.aeb-comment__avatar img{width:90%;border-radius:50%}.aeb-comment__initials{color:var(--white);position:relative;bottom:1px}.aeb-comment__author-group{font-size:20px;font-weight:500;margin-bottom:4px;display:flex;align-items:center}.aeb-comment__reply-icon{margin-left:32px;position:relative;bottom:4px}.aeb-comment__reply-host{color:var(--gray-primary);font-size:12px;margin-left:8px}.aeb-comment__author-name{font-size:16px;color:var(--gray-primary);display:flex;align-items:center}.aeb-comment__author-info{margin-left:12px;position:relative;top:3px;cursor:pointer}.aeb-comment__tooltip{max-width:200px;white-space:normal}.aeb-comment__author-wrapper{margin-bottom:20px}.aeb-comment__comment-wrapper{background:var(--web-white);border-radius:8px;padding:16px;width:100%;box-sizing:border-box}.aeb-comment__comment-header{font-size:20px;font-weight:500;color:var(--darkblue);margin-bottom:10px}.aeb-comment__date-response{display:flex;align-items:center;margin-top:20px;margin-bottom:25px}.aeb-comment__comment-date{color:var(--gray-primary);font-size:14px;margin-right:30px}.aeb-comment__comment-response{color:var(--blue);font-size:14px;cursor:pointer}.aeb-comment__response-ctrls{display:inline-flex;margin-bottom:28px;align-items:center;cursor:pointer}.aeb-comment__responses{font-size:14px;color:var(--darkblue);margin-right:15px}.aeb-comment__response-counter{font-size:14px;color:var(--gray-primary);margin-right:12px}.aeb-comment__arrow-icon{position:relative;top:2px;transform:rotate(180deg)}.aeb-comment__arrow-icon--active{transform:none;bottom:3px;top:unset}.aeb-comment__input{margin-bottom:24px}.aeb-comment__submit{margin-top:24px;width:100%;display:flex;justify-content:flex-end}.aeb-comment__response-form{margin-bottom:24px}"]
|
|
3118
|
-
},] }
|
|
3119
|
-
];
|
|
3120
|
-
CommentComponent.ctorParameters = () => [];
|
|
3121
|
-
CommentComponent.propDecorators = {
|
|
3122
|
-
comment: [{ type: Input, args: ['comment',] }],
|
|
3123
|
-
response: [{ type: Output, args: ['response',] }],
|
|
3124
|
-
tooltip: [{ type: ViewChild, args: [TooltipDirective,] }]
|
|
3125
|
-
};
|
|
3126
|
-
|
|
3127
|
-
class CommentModule {
|
|
3128
|
-
}
|
|
3129
|
-
CommentModule.decorators = [
|
|
3130
|
-
{ type: NgModule, args: [{
|
|
3131
|
-
declarations: [
|
|
3132
|
-
CommentComponent
|
|
3133
|
-
],
|
|
3134
|
-
imports: [
|
|
3135
|
-
CommonModule,
|
|
3136
|
-
NewTooltipModule,
|
|
3137
|
-
FormFieldModule,
|
|
3138
|
-
ButtonModule,
|
|
3139
|
-
ReactiveFormsModule
|
|
3140
|
-
],
|
|
3141
|
-
exports: [CommentComponent]
|
|
3142
|
-
},] }
|
|
3143
|
-
];
|
|
3144
|
-
|
|
3145
|
-
class FooterComponent {
|
|
3146
|
-
constructor() {
|
|
3147
|
-
this.hasContent = false;
|
|
3148
|
-
}
|
|
3149
|
-
ngOnInit() {
|
|
3150
|
-
this.hasContent = !!this.content.nativeElement.innerHTML;
|
|
3151
|
-
}
|
|
3152
|
-
}
|
|
3153
|
-
FooterComponent.decorators = [
|
|
3154
|
-
{ type: Component, args: [{
|
|
3155
|
-
selector: 'aeb-footer',
|
|
3156
|
-
template: "<footer class=\"aeb-footer\">\n <div #content class=\"aeb-footer__content\">\n <ng-content></ng-content>\n </div>\n</footer>\n\n<footer\n class=\"aeb-footer\"\n *ngIf=\"!hasContent\"\n>\n <div class=\"aeb-footer__content\">\n <aeb-footer-top></aeb-footer-top>\n <aeb-footer-menu></aeb-footer-menu>\n <aeb-footer-bottom></aeb-footer-bottom>\n </div>\n</footer>",
|
|
3157
|
-
encapsulation: ViewEncapsulation.None,
|
|
3158
|
-
styles: [".aeb-footer{width:100%;background-color:var(--darkblue);display:flex;justify-content:center}.aeb-footer__content{width:1200px}@media screen and (max-width:1200px){.aeb-footer__content{width:100%}}"]
|
|
3159
|
-
},] }
|
|
3160
|
-
];
|
|
3161
|
-
FooterComponent.ctorParameters = () => [];
|
|
3162
|
-
FooterComponent.propDecorators = {
|
|
3163
|
-
content: [{ type: ViewChild, args: ['content', { read: ElementRef, static: true },] }]
|
|
3164
|
-
};
|
|
3165
|
-
|
|
3166
|
-
class FooterTopComponent {
|
|
3167
|
-
constructor() {
|
|
3168
|
-
this.onlyPhone = false;
|
|
3169
|
-
this.hasContent = false;
|
|
3170
|
-
}
|
|
3171
|
-
ngOnInit() {
|
|
3172
|
-
this.hasContent = !!this.content.nativeElement.innerHTML;
|
|
3173
|
-
}
|
|
3174
|
-
}
|
|
3175
|
-
FooterTopComponent.decorators = [
|
|
3176
|
-
{ type: Component, args: [{
|
|
3177
|
-
selector: 'aeb-footer-top',
|
|
3178
|
-
template: "<div #content>\n <ng-content></ng-content>\n</div>\n<div\n class=\"aeb-footer-top\"\n *ngIf=\"!hasContent\"\n>\n <div class=\"aeb-footer-top__wrapper\">\n <div class=\"aeb-footer-top__column\">\n <div class=\"aeb-footer-top__row\">\n <div class=\"aeb-footer-top__head\">\n \u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E \u043F\u043E \u0420\u043E\u0441\u0441\u0438\u0438\n </div>\n <div class=\"aeb-footer-top__cell\">\n 8 800 100-34-22\n </div>\n </div>\n </div>\n <div *ngIf=\"!onlyPhone\" class=\"aeb-footer-top__column\">\n <div class=\"aeb-footer-top__row\">\n <div class=\"aeb-footer-top__head\">\n \u041D\u0430\u0448 \u0430\u0434\u0440\u0435\u0441\n </div>\n <div class=\"aeb-footer-top__cell\">\n \u0433. \u042F\u043A\u0443\u0442\u0441\u043A, \u0443\u043B. \u041B\u0435\u043D\u0438\u043D\u0430, 1\n </div>\n </div>\n </div>\n <div class=\"aeb-footer-top__app\">\n <a class=\"aeb-footer-top__mobile-icon\">\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect width=\"48\" height=\"48\" rx=\"8\" fill=\"#2F88F0\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.5406 25.319L25.3223 26.5376L26.1321 28.4946L28.4972 26.129L26.5406 25.319ZM24.8708 26.724H23.1436L22.3337 28.681H25.6735L24.8708 26.724ZM26.7342 23.1398V24.8602L28.6835 25.6702V22.3297L26.7342 23.1398ZM22.6849 26.5376L21.4665 25.319L19.5171 26.129L21.8822 28.4946L22.6849 26.5376ZM26.1321 19.5054L25.3223 21.4624L26.5406 22.681L28.4972 21.871L26.1321 19.5054ZM23.1436 21.2688H24.8708L25.6735 19.319H22.3337L23.1436 21.2688ZM21.2802 24.8602V23.1398L19.3308 22.3297V25.6702L21.2802 24.8602ZM21.4665 22.681L22.6849 21.4624L21.8822 19.5054L19.5171 21.871L21.4665 22.681ZM22.7566 18.0358H34.5675C34.976 18.0358 35.3845 18.1935 35.6999 18.509C36.0152 18.8244 36.1729 19.233 36.1729 19.6416C36.1729 20.0502 36.0152 20.466 35.6999 20.7814L38.409 23.491C39.4697 22.4301 40 21.0323 40 19.6416C40 18.2509 39.4697 16.8602 38.409 15.7993C37.3483 14.7384 35.9579 14.2079 34.5675 14.2079H26.5837L22.7566 18.0358ZM27.3362 18.8961L35.6856 27.2545C35.9794 27.5412 36.1586 27.9427 36.1586 28.3871C36.1586 28.8315 35.9794 29.233 35.6856 29.5269C35.3989 29.8136 34.9975 29.9928 34.5532 29.9928V33.828C36.0511 33.828 37.4128 33.2186 38.3946 32.2366C39.3836 31.2473 39.9857 29.8925 39.9857 28.3871C39.9857 26.8889 39.3765 25.5269 38.3946 24.5376L32.7543 18.8961H27.3362ZM29.9664 22.7455V34.5591C29.9664 34.9677 29.8087 35.3835 29.4934 35.6989C29.1781 36.0072 28.7695 36.1649 28.361 36.1649C27.9525 36.1649 27.5368 36.0072 27.2287 35.6989L24.5124 38.4086C25.5803 39.4695 26.9707 40 28.361 40C29.7514 40 31.1418 39.4695 32.2096 38.4086C33.2703 37.3477 33.8007 35.9498 33.8007 34.5591L33.7935 26.5806L29.9664 22.7455ZM29.1064 27.3262L20.757 35.6846C20.4632 35.9713 20.0618 36.1505 19.6175 36.1505C19.1731 36.1505 18.7789 35.9713 18.4851 35.6846C18.1913 35.3907 18.0121 34.9892 18.0121 34.5448H14.1778C14.1778 36.0502 14.787 37.405 15.776 38.3943C16.7579 39.3763 18.1196 39.9857 19.6175 39.9857C21.1225 39.9857 22.477 39.3763 23.4661 38.3943L29.1064 32.7455V27.3262ZM25.2578 29.957H13.4468C13.0383 29.957 12.6226 29.7993 12.3144 29.491C11.9991 29.1756 11.8414 28.767 11.8414 28.3513C11.8414 27.9427 11.9991 27.534 12.3144 27.2186L9.60538 24.509C8.53751 25.5699 8.00717 26.9606 8.00717 28.3513C8.00717 29.7419 8.53751 31.1398 9.60538 32.2007C10.6661 33.2616 12.0564 33.7921 13.4468 33.7921H21.4307L25.2578 29.957ZM20.6567 29.0466L12.3073 20.6953C12.0134 20.4014 11.8343 20 11.8343 19.5556C11.8343 19.1111 12.0134 18.7097 12.3073 18.4229C12.594 18.129 12.9953 17.9498 13.4396 17.9498V14.1219C11.9418 14.1219 10.5801 14.7312 9.59821 15.7133C8.60918 16.6953 8 18.0573 8 19.5556C8 21.0609 8.60918 22.4158 9.59821 23.405L15.2385 29.0466H20.6567ZM18.0479 25.2473V13.4337C18.0479 13.0251 18.2056 12.6165 18.5209 12.3011C18.8291 11.9857 19.2448 11.8351 19.6533 11.828C20.0618 11.828 20.4703 11.9857 20.7857 12.3011L23.5019 9.5914C22.434 8.53047 21.0437 8 19.6533 8C18.2629 8 16.8726 8.53047 15.8047 9.5914C14.744 10.6523 14.2137 12.043 14.2137 13.4409V21.4194L18.0479 25.2473ZM18.908 20.6667L27.2573 12.3154C27.5512 12.0215 27.9525 11.8495 28.3969 11.8495C28.8412 11.8495 29.2354 12.0287 29.5292 12.3154C29.8231 12.6093 30.0022 13.0036 30.0022 13.4552H33.8365C33.8365 11.9498 33.2202 10.5878 32.2383 9.60573C31.2564 8.62366 29.8947 8.01434 28.3969 8.01434C26.8918 8.01434 25.5301 8.62366 24.5483 9.60573L18.908 15.2473V20.6667ZM24.9639 26.3082L26.3113 24.9534V23.0394L24.9639 21.6918H23.0504L21.6959 23.0394V24.9534L23.0504 26.3082H24.9639ZM21.8965 29.0968L18.908 26.1147V21.8853L21.8965 18.8961H26.1178L29.1064 21.8853V26.1147L26.1178 29.0968H21.8965Z\" fill=\"white\"/>\n </svg>\n </a>\n <div class=\"aeb-footer-top__row\">\n <div class=\"aeb-footer-top__head\">\n \u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u0434\u043B\u044F iOS \u0438 Android\n </div>\n <div class=\"aeb-footer-top__cell\">\n \u0410\u042D\u0411 \u041E\u043D\u043B\u0430\u0439\u043D 3.0\n </div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
3179
|
-
encapsulation: ViewEncapsulation.None,
|
|
3180
|
-
styles: [".aeb-footer-top{display:flex;padding:24px 0;box-sizing:border-box;position:relative;border-bottom:1px solid hsla(0,0%,100%,.1)}@media screen and (max-width:1000px){.aeb-footer-top{flex-direction:column;align-items:center;padding:16px 0 24px 16px}}.aeb-footer-top__column:not(:last-child){margin-right:64px}@media screen and (max-width:1000px){.aeb-footer-top__column{width:100%;margin-right:0!important}.aeb-footer-top__column:not(:last-child){margin-bottom:24px}}.aeb-footer-top__wrapper{width:100%;display:flex}@media screen and (max-width:1000px){.aeb-footer-top__wrapper{flex-direction:column;align-items:center;width:unset}}.aeb-footer-top__row{display:flex;flex-direction:column}.aeb-footer-top__head{color:var(--gray-primary);margin-bottom:4px;font-size:14px}.aeb-footer-top__cell{color:var(--white);font-size:18px}.aeb-footer-top__app{position:absolute;right:0;top:24px;display:flex;cursor:pointer}@media screen and (max-width:1000px){.aeb-footer-top__app{position:static}}.aeb-footer-top__mobile-icon{margin-right:24px}"]
|
|
3181
|
-
},] }
|
|
3182
|
-
];
|
|
3183
|
-
FooterTopComponent.ctorParameters = () => [];
|
|
3184
|
-
FooterTopComponent.propDecorators = {
|
|
3185
|
-
onlyPhone: [{ type: Input, args: ['onlyPhone',] }],
|
|
3186
|
-
content: [{ type: ViewChild, args: ['content', { read: ElementRef, static: true },] }]
|
|
3187
|
-
};
|
|
3188
|
-
|
|
3189
|
-
class FooterMenuComponent {
|
|
3190
|
-
constructor() {
|
|
3191
|
-
this.items = [
|
|
3192
|
-
{
|
|
3193
|
-
name: 'Кредиты',
|
|
3194
|
-
link: '#'
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
name: 'Ипотека',
|
|
3198
|
-
link: '#'
|
|
3199
|
-
},
|
|
3200
|
-
{
|
|
3201
|
-
name: 'Вклады',
|
|
3202
|
-
link: '#'
|
|
3203
|
-
},
|
|
3204
|
-
{
|
|
3205
|
-
name: 'Карты',
|
|
3206
|
-
link: '#'
|
|
3207
|
-
},
|
|
3208
|
-
{
|
|
3209
|
-
name: 'Страхование',
|
|
3210
|
-
link: '#'
|
|
3211
|
-
},
|
|
3212
|
-
{
|
|
3213
|
-
name: 'Инвестиции',
|
|
3214
|
-
link: '#'
|
|
3215
|
-
},
|
|
3216
|
-
{
|
|
3217
|
-
name: 'Премиум',
|
|
3218
|
-
link: '#'
|
|
3219
|
-
},
|
|
3220
|
-
{
|
|
3221
|
-
name: 'Еще',
|
|
3222
|
-
link: '#'
|
|
3223
|
-
}
|
|
3224
|
-
];
|
|
3225
|
-
this.hasContent = false;
|
|
3226
|
-
}
|
|
3227
|
-
ngOnInit() {
|
|
3228
|
-
this.hasContent = !!this.content.nativeElement.innerHTML;
|
|
3229
|
-
}
|
|
3230
|
-
}
|
|
3231
|
-
FooterMenuComponent.decorators = [
|
|
3232
|
-
{ type: Component, args: [{
|
|
3233
|
-
selector: 'aeb-footer-menu',
|
|
3234
|
-
template: "<div #content>\n <ng-content></ng-content>\n</div>\n<div *ngIf=\"!hasContent\" class=\"aeb-footer-menu\">\n <div class=\"aeb-footer-menu__wrapper\">\n <a\n class=\"aeb-footer-menu__item\"\n *ngFor=\"let item of items\"\n [href]=\"item.link\"\n >\n {{item.name}}\n </a>\n </div>\n</div>\n",
|
|
3235
|
-
encapsulation: ViewEncapsulation.None,
|
|
3236
|
-
styles: [".aeb-footer-menu{width:100%;position:relative;border-bottom:1px solid hsla(0,0%,100%,.1);padding:24px 0;box-sizing:border-box;display:flex}@media screen and (max-width:1000px){.aeb-footer-menu{flex-direction:column;align-items:center;padding-left:32px}}.aeb-footer-menu__wrapper{box-sizing:border-box}@media screen and (max-width:1000px){.aeb-footer-menu__wrapper{display:flex;flex-direction:column;align-items:flex-start;width:271px}}.aeb-footer-menu__item{font-size:18px;color:var(--white);text-decoration:none}.aeb-footer-menu__item:not(:last-child){margin-right:35px}@media screen and (max-width:1000px){.aeb-footer-menu__item{margin-right:0!important}.aeb-footer-menu__item:not(:last-child){margin-bottom:24px}}"]
|
|
3237
|
-
},] }
|
|
3238
|
-
];
|
|
3239
|
-
FooterMenuComponent.ctorParameters = () => [];
|
|
3240
|
-
FooterMenuComponent.propDecorators = {
|
|
3241
|
-
items: [{ type: Input, args: ['items',] }],
|
|
3242
|
-
content: [{ type: ViewChild, args: ['content', { read: ElementRef, static: true },] }]
|
|
3243
|
-
};
|
|
3244
|
-
|
|
3245
|
-
class FooterBottomComponent {
|
|
3246
|
-
constructor() {
|
|
3247
|
-
this.links = [
|
|
3248
|
-
{
|
|
3249
|
-
name: 'Информация о максимальных процентных ставках по вкладам физических лиц',
|
|
3250
|
-
link: '#'
|
|
3251
|
-
},
|
|
3252
|
-
{
|
|
3253
|
-
name: 'Раскрытие информации профессиональным участником рынка ценных бумаг',
|
|
3254
|
-
link: '#'
|
|
3255
|
-
},
|
|
3256
|
-
{
|
|
3257
|
-
name: 'Раскрытие информации на сайте информационного агенства АО «СКРИН»',
|
|
3258
|
-
link: '#'
|
|
3259
|
-
},
|
|
3260
|
-
{
|
|
3261
|
-
name: 'Информация о лицах, под контролем либо значительным влиянием которых находится банк',
|
|
3262
|
-
link: '#'
|
|
3263
|
-
}
|
|
3264
|
-
];
|
|
3265
|
-
this.hasContent = false;
|
|
3266
|
-
}
|
|
3267
|
-
ngOnInit() {
|
|
3268
|
-
this.hasContent = !!this.content.nativeElement.innerHTML;
|
|
3269
|
-
}
|
|
3270
|
-
}
|
|
3271
|
-
FooterBottomComponent.decorators = [
|
|
3272
|
-
{ type: Component, args: [{
|
|
3273
|
-
selector: 'aeb-footer-bottom',
|
|
3274
|
-
template: "<div #content>\n <ng-content></ng-content>\n</div>\n<div *ngIf=\"!hasContent\" class=\"aeb-footer-bottom\">\n <div class=\"aeb-footer-bottom__rights\">\n \u00A9 2020 \u0410\u041A\u0411 \u00AB\u0410\u043B\u043C\u0430\u0437\u044D\u0440\u0433\u0438\u044D\u043D\u0431\u0430\u043D\u043A\u00BB \u0410\u041E. \u0413\u0435\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u043B\u0438\u0446\u0435\u043D\u0437\u0438\u044F \u0426\u0411 \u0420\u0424 \u21162602 \u043E\u0442\n 08.06.2015\n </div>\n <a\n class=\"aeb-footer-bottom__link\"\n *ngFor=\"let link of links\"\n [href]=\"link.link\"\n >\n {{ link.name }}\n </a>\n</div>\n",
|
|
3275
|
-
encapsulation: ViewEncapsulation.None,
|
|
3276
|
-
styles: [".aeb-footer-bottom{width:100%;padding:24px 0;box-sizing:border-box;border-bottom:1px solid hsla(0,0%,100%,.1);position:relative}@media screen and (max-width:1000px){.aeb-footer-bottom{padding-left:16px}}.aeb-footer-bottom__rights{color:hsla(0,0%,100%,.2);font-size:16px}.aeb-footer-bottom__link{display:block;text-decoration:none;color:var(--white);font-size:12px;margin-top:12px}.aeb-footer-bottom__soc-networks{position:absolute;top:16px;right:0}@media screen and (max-width:1000px){.aeb-footer-bottom__soc-networks{position:static;margin-top:16px}}.aeb-footer-bottom__soc-icon:not(:last-child){margin-right:24px}"]
|
|
3277
|
-
},] }
|
|
3278
|
-
];
|
|
3279
|
-
FooterBottomComponent.ctorParameters = () => [];
|
|
3280
|
-
FooterBottomComponent.propDecorators = {
|
|
3281
|
-
links: [{ type: Input, args: ['links',] }],
|
|
3282
|
-
content: [{ type: ViewChild, args: ['content', { read: ElementRef, static: true },] }]
|
|
3283
|
-
};
|
|
3284
|
-
|
|
3285
|
-
class FooterModule {
|
|
3286
|
-
}
|
|
3287
|
-
FooterModule.decorators = [
|
|
3288
|
-
{ type: NgModule, args: [{
|
|
3289
|
-
declarations: [FooterComponent, FooterTopComponent, FooterMenuComponent, FooterBottomComponent],
|
|
3290
|
-
imports: [
|
|
3291
|
-
CommonModule
|
|
3292
|
-
],
|
|
3293
|
-
exports: [
|
|
3294
|
-
FooterComponent,
|
|
3295
|
-
FooterTopComponent,
|
|
3296
|
-
FooterMenuComponent,
|
|
3297
|
-
FooterBottomComponent
|
|
3298
|
-
]
|
|
3299
|
-
},] }
|
|
3300
|
-
];
|
|
3301
|
-
|
|
3302
|
-
const breakPoints = {
|
|
3303
|
-
1150: 5,
|
|
3304
|
-
700: 3,
|
|
3305
|
-
600: 2,
|
|
3306
|
-
};
|
|
3307
|
-
const defaultAbountOptions = [
|
|
3308
|
-
{
|
|
3309
|
-
value: 10,
|
|
3310
|
-
label: 'По 10 на стр.',
|
|
3311
|
-
},
|
|
3312
|
-
{
|
|
3313
|
-
value: 20,
|
|
3314
|
-
label: 'По 20 на стр.',
|
|
3315
|
-
},
|
|
3316
|
-
{
|
|
3317
|
-
value: 30,
|
|
3318
|
-
label: 'По 30 на стр.',
|
|
3319
|
-
},
|
|
3320
|
-
];
|
|
3321
|
-
class PaginationComponent {
|
|
3322
|
-
constructor(cdr) {
|
|
3323
|
-
this.cdr = cdr;
|
|
3324
|
-
this.pageSelect = new EventEmitter();
|
|
3325
|
-
this.amountChange = new EventEmitter();
|
|
3326
|
-
this.total = 1500;
|
|
3327
|
-
this.currentPage = 1;
|
|
3328
|
-
this.amountOptions = defaultAbountOptions;
|
|
3329
|
-
this.adaptiveBase = 13;
|
|
3330
|
-
}
|
|
3331
|
-
renderPages(firstPage) {
|
|
3332
|
-
this.middle = [...new Array(this.adaptiveBase)]
|
|
3333
|
-
.map((_, i) => {
|
|
3334
|
-
const page = firstPage + i;
|
|
3335
|
-
return page <= this.total ? page : null;
|
|
3336
|
-
})
|
|
3337
|
-
.filter((item) => !!item);
|
|
3338
|
-
if (this.total === 1) {
|
|
3339
|
-
this.head = [];
|
|
3340
|
-
}
|
|
3341
|
-
else {
|
|
3342
|
-
this.head = [1, 2].filter((page) => !this.middle.includes(page));
|
|
3343
|
-
}
|
|
3344
|
-
this.tail = [...new Array(2)]
|
|
3345
|
-
.map((_, i) => this.total - i)
|
|
3346
|
-
.filter((item) => !this.middle.includes(item) && item > this.currentPage)
|
|
3347
|
-
.reverse();
|
|
3348
|
-
}
|
|
3349
|
-
middlePageHandler(page) {
|
|
3350
|
-
this.currentPage = page;
|
|
3351
|
-
this.pageSelect.emit(this.currentPage);
|
|
3352
|
-
}
|
|
3353
|
-
nextPageHandler() {
|
|
3354
|
-
if (this.currentPage === this.total)
|
|
3355
|
-
return;
|
|
3356
|
-
const nextPage = this.currentPage + 1;
|
|
3357
|
-
this.currentPage = nextPage;
|
|
3358
|
-
if (!this.middle.includes(nextPage)) {
|
|
3359
|
-
this.renderPages(nextPage);
|
|
3360
|
-
}
|
|
3361
|
-
this.pageSelect.emit(this.currentPage);
|
|
3362
|
-
}
|
|
3363
|
-
prevPageHandler() {
|
|
3364
|
-
if (this.currentPage === 1)
|
|
3365
|
-
return;
|
|
3366
|
-
const prevPage = this.currentPage - 1;
|
|
3367
|
-
this.currentPage = prevPage;
|
|
3368
|
-
if (!this.middle.includes(prevPage)) {
|
|
3369
|
-
this.renderPages(prevPage - (this.adaptiveBase - 1));
|
|
3370
|
-
}
|
|
3371
|
-
this.pageSelect.emit(this.currentPage);
|
|
3372
|
-
}
|
|
3373
|
-
tailPageHandler(page) {
|
|
3374
|
-
this.currentPage = page;
|
|
3375
|
-
this.renderPages([...new Array(this.adaptiveBase)]
|
|
3376
|
-
.map((_, i) => this.total - i)
|
|
3377
|
-
.reverse()
|
|
3378
|
-
.filter((item) => !this.middle.includes(item))[0]);
|
|
3379
|
-
this.pageSelect.emit(this.currentPage);
|
|
3380
|
-
}
|
|
3381
|
-
headPageHandler(page) {
|
|
3382
|
-
this.currentPage = page;
|
|
3383
|
-
this.renderPages(1);
|
|
3384
|
-
this.pageSelect.emit(this.currentPage);
|
|
3385
|
-
}
|
|
3386
|
-
amountChangeHandler(amount) {
|
|
3387
|
-
this.amountChange.emit(amount);
|
|
3388
|
-
}
|
|
3389
|
-
ngOnInit() {
|
|
3390
|
-
this.currentPage = parseInt(this.currentPage.toString(), 10);
|
|
3391
|
-
this.adaptiveBase = this.adaptive ? this.adaptive : this.adaptiveBase;
|
|
3392
|
-
if (window.innerWidth <= 600) {
|
|
3393
|
-
this.adaptiveBase = 2;
|
|
3394
|
-
}
|
|
3395
|
-
else if (window.innerWidth <= 700) {
|
|
3396
|
-
this.adaptiveBase = 3;
|
|
3397
|
-
}
|
|
3398
|
-
else if (window.innerWidth <= 1150) {
|
|
3399
|
-
this.adaptiveBase = 5;
|
|
3400
|
-
}
|
|
3401
|
-
window.addEventListener('resize', () => {
|
|
3402
|
-
const adaptiveStep = +(window.innerWidth / 50).toFixed() * 50;
|
|
3403
|
-
if (breakPoints[adaptiveStep]) {
|
|
3404
|
-
this.adaptiveBase = breakPoints[adaptiveStep];
|
|
3405
|
-
this.renderPages(this.middle[0]);
|
|
3406
|
-
}
|
|
3407
|
-
else if (window.innerWidth > 1150) {
|
|
3408
|
-
this.adaptiveBase = this.adaptive || 13;
|
|
3409
|
-
this.renderPages(this.middle[0]);
|
|
3410
|
-
}
|
|
3411
|
-
});
|
|
3412
|
-
this.renderPages(this.currentPage);
|
|
3413
|
-
}
|
|
3414
|
-
ngAfterViewInit() {
|
|
3415
|
-
this.amountSelect.writeValue(this.amount);
|
|
3416
|
-
this.cdr.detectChanges();
|
|
3417
|
-
}
|
|
3418
|
-
ngOnChanges(changes) {
|
|
3419
|
-
if (this.currentPage &&
|
|
3420
|
-
changes.currentPage &&
|
|
3421
|
-
!changes.currentPage.firstChange) {
|
|
3422
|
-
if (changes.currentPage.currentValue !== changes.currentPage.previousValue) {
|
|
3423
|
-
this.renderPages(changes.currentPage.currentValue);
|
|
3424
|
-
}
|
|
3425
|
-
}
|
|
3426
|
-
if (changes.total && this.middle) {
|
|
3427
|
-
this.currentPage = 1;
|
|
3428
|
-
this.renderPages(1);
|
|
3429
|
-
this.pageSelect.emit(1);
|
|
3430
|
-
}
|
|
3431
|
-
}
|
|
3432
|
-
}
|
|
3433
|
-
PaginationComponent.decorators = [
|
|
3434
|
-
{ type: Component, args: [{
|
|
3435
|
-
selector: 'aeb-pagination',
|
|
3436
|
-
template: "<div class=\"aeb-pagination\">\n <div\n class=\"aeb-pagination__button\"\n (click)=\"prevPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === 1\n }\"\n >\n <div class=\"aeb-pagination__arrow-icon aeb-pagination__arrow-icon--left\">\n <svg\n width=\"6\"\n height=\"10\"\n viewBox=\"0 0 6 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1 9L4.92929 5.07071C4.96834 5.03166 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <span class=\"aeb-pagination__button-label\">\n \u041D\u0430\u0437\u0430\u0434\n </span>\n </div>\n <div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__page\"\n *ngFor=\"let page of head\"\n (click)=\"headPageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"head.length\">\n ...\n </div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngFor=\"let page of middle\"\n [ngClass]=\"{\n 'aeb-pagination__page--active': currentPage === page\n }\"\n (click)=\"middlePageHandler(page)\"\n >\n {{ page }}\n </div>\n\n <div class=\"aeb-pagination__breaker\" *ngIf=\"tail.length\">\n ...\n </div>\n\n <div\n class=\"aeb-pagination__page\"\n *ngFor=\"let page of tail\"\n (click)=\"tailPageHandler(page)\"\n >\n {{ page }}\n </div>\n </div>\n <div class=\"aeb-pagination__block\">\n <div class=\"aeb-pagination__amount\">\n <aeb-select\n (change)=\"amountChangeHandler($event)\"\n #amountSelect\n [direction]=\"'top'\"\n >\n <aeb-option *ngFor=\"let option of amountOptions\" [value]=\"option.value\">\n {{ option.label }}\n </aeb-option>\n </aeb-select>\n </div>\n\n <div class=\"aeb-pagination__block\">\n <div\n class=\"aeb-pagination__button aeb-pagination__button--right\"\n (click)=\"nextPageHandler()\"\n [ngClass]=\"{\n 'aeb-pagination__button--disable': currentPage === total\n }\"\n >\n <span class=\"aeb-pagination__button-label\">\n \u0414\u0430\u043B\u0435\u0435\n </span>\n <div\n class=\"aeb-pagination__arrow-icon aeb-pagination__arrow-icon--right\"\n >\n <svg\n width=\"6\"\n height=\"10\"\n viewBox=\"0 0 6 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1 9L4.92929 5.07071C4.96834 5.03166 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
3437
|
-
encapsulation: ViewEncapsulation.None,
|
|
3438
|
-
styles: [".aeb-pagination{display:inline-flex;width:100%;align-items:center;justify-content:space-between;position:relative;color:var(--darkblue)}.aeb-pagination__button{width:133px;display:flex;align-items:center;background-color:var(--white);padding:8px 24px;border-radius:10px;color:var(--blue);box-sizing:border-box;border:2px solid var(--blue);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.aeb-pagination__button--right{margin-left:27px;padding-left:24px}.aeb-pagination__button--disable{border:2px solid var(--gray-primary);color:var(--gray-primary);cursor:unset}.aeb-pagination__button--disable .aeb-pagination__arrow-icon svg path{stroke:var(--gray-primary)}@media screen and (max-width:1150px){.aeb-pagination__button{width:100px;padding:6px 12px;font-size:14px}.aeb-pagination__button--right{margin-left:13px}}@media screen and (max-width:600px){.aeb-pagination__button{width:unset;padding:2px 8px;justify-content:center}.aeb-pagination__button--right{margin-left:10px}}.aeb-pagination__arrow-icon{margin-right:18px;position:relative;bottom:1px}.aeb-pagination__arrow-icon--left{transform:scaleX(-1)}.aeb-pagination__arrow-icon--right{margin-left:18px;margin-right:0}@media screen and (max-width:1150px){.aeb-pagination__arrow-icon{bottom:0}}@media screen and (max-width:600px){.aeb-pagination__arrow-icon,.aeb-pagination__arrow-icon--right{margin:0;top:1px}}.aeb-pagination__page{color:var(--blue);margin-left:27px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.aeb-pagination__page--active{color:var(--darkblue)}@media screen and (max-width:1150px){.aeb-pagination__page{font-size:14px;margin-left:13px}}@media screen and (max-width:600px){.aeb-pagination__page{font-size:12px;margin-left:10px}}.aeb-pagination__breaker{color:var(--blue);margin-left:27px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (max-width:1150px){.aeb-pagination__breaker{margin-left:13px}}@media screen and (max-width:600px){.aeb-pagination__breaker{margin-left:10px}}@media screen and (max-width:600px){.aeb-pagination__button-label{display:none}}.aeb-pagination__block{display:inline-flex;align-items:center}.aeb-pagination__amount{width:168px;height:44px;margin-left:27px;position:relative;top:3px}.aeb-pagination__amount .aeb-dropdown-selected-item{height:39px!important}.aeb-pagination__amount .aeb-dropdown-selected-item.open{background:var(--white)!important}.aeb-pagination__amount .aeb-dropdown-icon{top:10px!important}.aeb-pagination__amount .aeb-dropdown-item{padding:8px 16px!important}.aeb-pagination__amount .aeb-dropdown-selected-item{background:transparent!important;color:var(--darkblue)}@media screen and (max-width:1150px){.aeb-pagination__amount{position:absolute;top:calc(100% + 18px);left:0;margin:0}}"]
|
|
3439
|
-
},] }
|
|
3440
|
-
];
|
|
3441
|
-
PaginationComponent.ctorParameters = () => [
|
|
3442
|
-
{ type: ChangeDetectorRef }
|
|
3443
|
-
];
|
|
3444
|
-
PaginationComponent.propDecorators = {
|
|
3445
|
-
pageSelect: [{ type: Output, args: ['pageSelect',] }],
|
|
3446
|
-
amountChange: [{ type: Output, args: ['amountChange',] }],
|
|
3447
|
-
total: [{ type: Input, args: ['totalPages',] }],
|
|
3448
|
-
currentPage: [{ type: Input, args: ['page',] }],
|
|
3449
|
-
amount: [{ type: Input, args: ['amount',] }],
|
|
3450
|
-
amountOptions: [{ type: Input, args: ['amountOptions',] }],
|
|
3451
|
-
amountSelect: [{ type: ViewChild, args: ['amountSelect',] }],
|
|
3452
|
-
adaptive: [{ type: Input, args: ['adaptive',] }]
|
|
3453
|
-
};
|
|
3454
|
-
|
|
3455
|
-
class PaginationModule {
|
|
3456
|
-
}
|
|
3457
|
-
PaginationModule.decorators = [
|
|
3458
|
-
{ type: NgModule, args: [{
|
|
3459
|
-
declarations: [PaginationComponent],
|
|
3460
|
-
imports: [
|
|
3461
|
-
CommonModule,
|
|
3462
|
-
SelectModule,
|
|
3463
|
-
],
|
|
3464
|
-
exports: [
|
|
3465
|
-
PaginationComponent
|
|
3466
|
-
]
|
|
3467
|
-
},] }
|
|
3468
|
-
];
|
|
3469
|
-
|
|
3470
|
-
class PopUpComponent {
|
|
3471
|
-
constructor() { }
|
|
3472
|
-
ngOnInit() {
|
|
3473
|
-
}
|
|
3474
|
-
hidePopUp() {
|
|
3475
|
-
this.popUp.nativeElement.style.opacity = '0';
|
|
3476
|
-
this.popUp.nativeElement.style.pointerEvents = 'none';
|
|
3477
|
-
}
|
|
3478
|
-
}
|
|
3479
|
-
PopUpComponent.decorators = [
|
|
3480
|
-
{ type: Component, args: [{
|
|
3481
|
-
selector: 'aeb-pop-up',
|
|
3482
|
-
template: "<div\n class=\"aeb-pop-up\"\n #popUp\n>\n <div class=\"aeb-pop-up__header\">\n <div class=\"aeb-pop-up__heading\">\n {{header}}\n </div>\n <div\n class=\"aeb-pop-up__close-icon\"\n (click)=\"hidePopUp()\"\n >\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.63086 5.63074L18.3693 18.3692\" stroke=\"#2F88F0\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n <path d=\"M18.3691 5.63074L5.63065 18.3692\" stroke=\"#2F88F0\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n </div>\n </div>\n <div class=\"aeb-pop-up__container\">\n <ng-content></ng-content>\n </div>\n</div>",
|
|
3483
|
-
encapsulation: ViewEncapsulation.None,
|
|
3484
|
-
styles: [".aeb-pop-up{position:fixed;opacity:0;transition:opacity,.2s;min-width:360px;background-color:var(--white);box-shadow:0 3px 15px rgba(0,0,0,.25);border-radius:10px;padding:20px 16px;box-sizing:border-box;pointer-events:none;cursor:default;z-index:2000}.aeb-pop-up__header{width:100%;border-bottom:1px solid var(--lightgray);display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding-bottom:15px}.aeb-pop-up__heading{font-size:14px;font-weight:500}.aeb-pop-up__close-icon{cursor:pointer;position:relative;top:1px}"]
|
|
3485
|
-
},] }
|
|
3486
|
-
];
|
|
3487
|
-
PopUpComponent.ctorParameters = () => [];
|
|
3488
|
-
PopUpComponent.propDecorators = {
|
|
3489
|
-
popUp: [{ type: ViewChild, args: ['popUp',] }],
|
|
3490
|
-
header: [{ type: Input, args: ['header',] }],
|
|
3491
|
-
html: [{ type: Input, args: ['html',] }]
|
|
3492
|
-
};
|
|
3493
|
-
|
|
3494
|
-
class PopUpDirective {
|
|
3495
|
-
constructor(el) {
|
|
3496
|
-
this.el = el;
|
|
3497
|
-
this.position = 'bottom';
|
|
3498
|
-
this.popUpConfig = {
|
|
3499
|
-
right: (boundaries, popUp) => {
|
|
3500
|
-
const targetHalf = boundaries.top + (boundaries.height / 2);
|
|
3501
|
-
const tooltipHalf = popUp.offsetHeight / 2;
|
|
3502
|
-
return [boundaries.right + 15, targetHalf - tooltipHalf];
|
|
3503
|
-
},
|
|
3504
|
-
bottom: (boundaries, popUp) => {
|
|
3505
|
-
const targetHalf = boundaries.right - (boundaries.width / 2);
|
|
3506
|
-
const tooltipHalf = popUp.offsetWidth / 2;
|
|
3507
|
-
return [targetHalf - tooltipHalf, boundaries.bottom + 15];
|
|
3508
|
-
},
|
|
3509
|
-
left: (boundaries, popUp) => {
|
|
3510
|
-
const targetHalf = boundaries.top + (boundaries.height / 2);
|
|
3511
|
-
const tooltipHalf = popUp.offsetHeight / 2;
|
|
3512
|
-
return [(boundaries.left - popUp.offsetWidth) - 15, targetHalf - tooltipHalf];
|
|
3513
|
-
},
|
|
3514
|
-
top: (boundaries, popUp) => {
|
|
3515
|
-
const targetHalf = boundaries.right - (boundaries.width / 2);
|
|
3516
|
-
const tooltipHalf = popUp.offsetWidth / 2;
|
|
3517
|
-
return [targetHalf - tooltipHalf, (boundaries.top - popUp.offsetHeight) - 15];
|
|
3518
|
-
}
|
|
3519
|
-
};
|
|
3520
|
-
}
|
|
3521
|
-
onClick(event) {
|
|
3522
|
-
if (event.target !== this.el.nativeElement)
|
|
3523
|
-
return;
|
|
3524
|
-
const popUp = this.popUpContent.popUp.nativeElement;
|
|
3525
|
-
popUp.style.opacity = '1';
|
|
3526
|
-
popUp.style.pointerEvents = 'all';
|
|
3527
|
-
const boundaries = this.el.nativeElement.getBoundingClientRect();
|
|
3528
|
-
const [left, top] = this.popUpConfig[this.position](boundaries, popUp);
|
|
3529
|
-
popUp.style.left = `${left}px`;
|
|
3530
|
-
popUp.style.top = `${top}px`;
|
|
3531
|
-
popUp.className = `aeb-pop-up aeb-pop-up--${this.position}`;
|
|
3532
|
-
}
|
|
3533
|
-
}
|
|
3534
|
-
PopUpDirective.decorators = [
|
|
3535
|
-
{ type: Directive, args: [{
|
|
3536
|
-
selector: '[aebPopUp]'
|
|
3537
|
-
},] }
|
|
3538
|
-
];
|
|
3539
|
-
PopUpDirective.ctorParameters = () => [
|
|
3540
|
-
{ type: ElementRef }
|
|
3541
|
-
];
|
|
3542
|
-
PopUpDirective.propDecorators = {
|
|
3543
|
-
header: [{ type: Input, args: ['header',] }],
|
|
3544
|
-
position: [{ type: Input, args: ['position',] }],
|
|
3545
|
-
popUpContent: [{ type: ContentChild, args: [PopUpComponent,] }],
|
|
3546
|
-
onClick: [{ type: HostListener, args: ['click', ['$event'],] }]
|
|
3547
|
-
};
|
|
3548
|
-
|
|
3549
|
-
class PopUpModule {
|
|
3550
|
-
}
|
|
3551
|
-
PopUpModule.decorators = [
|
|
3552
|
-
{ type: NgModule, args: [{
|
|
3553
|
-
declarations: [PopUpComponent, PopUpDirective],
|
|
3554
|
-
imports: [
|
|
3555
|
-
CommonModule
|
|
3556
|
-
],
|
|
3557
|
-
exports: [PopUpComponent, PopUpDirective]
|
|
3558
|
-
},] }
|
|
3559
|
-
];
|
|
3560
|
-
|
|
3561
|
-
class FilterTagsComponent {
|
|
3562
|
-
constructor() {
|
|
3563
|
-
this.filterValue = ['misc'];
|
|
3564
|
-
this.change = new EventEmitter();
|
|
3565
|
-
}
|
|
3566
|
-
tagHandler(tag) {
|
|
3567
|
-
if (this.filterValue.includes(tag)) {
|
|
3568
|
-
this.filterValue = this.filterValue.filter(item => item !== tag);
|
|
3569
|
-
}
|
|
3570
|
-
else {
|
|
3571
|
-
this.filterValue = [...this.filterValue, tag];
|
|
3572
|
-
}
|
|
3573
|
-
this.change.emit(this.filterValue);
|
|
3574
|
-
}
|
|
3575
|
-
ngOnInit() {
|
|
3576
|
-
}
|
|
3577
|
-
}
|
|
3578
|
-
FilterTagsComponent.decorators = [
|
|
3579
|
-
{ type: Component, args: [{
|
|
3580
|
-
selector: 'aeb-filter-tags',
|
|
3581
|
-
template: "<div class=\"aeb-filter-tags\">\n <aeb-filter-tag\n *ngFor=\"let tag of tags\"\n [value]=\"tag.value\"\n [active]=\"filterValue.includes(tag.value)\"\n (tagHandler)=\"tagHandler($event)\"\n >\n {{tag.label}}\n </aeb-filter-tag>\n</div>",
|
|
3582
|
-
encapsulation: ViewEncapsulation.None,
|
|
3583
|
-
styles: [".aeb-filter-tags{display:flex;flex-wrap:wrap;gap:20px}"]
|
|
3584
|
-
},] }
|
|
3585
|
-
];
|
|
3586
|
-
FilterTagsComponent.ctorParameters = () => [];
|
|
3587
|
-
FilterTagsComponent.propDecorators = {
|
|
3588
|
-
tags: [{ type: Input, args: ['tags',] }],
|
|
3589
|
-
filterValue: [{ type: Input, args: ['filterValue',] }],
|
|
3590
|
-
change: [{ type: Output, args: ['change',] }]
|
|
3591
|
-
};
|
|
3592
|
-
|
|
3593
|
-
class FilterTagComponent {
|
|
3594
|
-
constructor() {
|
|
3595
|
-
this.active = false;
|
|
3596
|
-
this.tagHandler = new EventEmitter();
|
|
3597
|
-
}
|
|
3598
|
-
clickHandler(tag) {
|
|
3599
|
-
this.tagHandler.emit(tag);
|
|
3600
|
-
}
|
|
3601
|
-
ngOnInit() {
|
|
3602
|
-
}
|
|
3603
|
-
}
|
|
3604
|
-
FilterTagComponent.decorators = [
|
|
3605
|
-
{ type: Component, args: [{
|
|
3606
|
-
selector: 'aeb-filter-tag',
|
|
3607
|
-
template: "<div\n class=\"aeb-filter-tag\"\n [ngClass]=\"{\n 'aeb-filter-tag--active': active\n }\"\n (click)=\"clickHandler(value)\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
3608
|
-
encapsulation: ViewEncapsulation.None,
|
|
3609
|
-
styles: [".aeb-filter-tag{display:inline-flex;align-items:center;justify-content:center;padding:10px 24px;border-radius:8px;box-sizing:border-box;border:2px solid var(--gray-8c);color:var(--gray-8c);font-size:18px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.aeb-filter-tag--active{background-color:var(--darkblue);border:2px solid var(--darkblue);color:var(--white)}"]
|
|
3610
|
-
},] }
|
|
3611
|
-
];
|
|
3612
|
-
FilterTagComponent.ctorParameters = () => [];
|
|
3613
|
-
FilterTagComponent.propDecorators = {
|
|
3614
|
-
value: [{ type: Input, args: ['value',] }],
|
|
3615
|
-
active: [{ type: Input, args: ['active',] }],
|
|
3616
|
-
tagHandler: [{ type: Output, args: ['tagHandler',] }]
|
|
3617
|
-
};
|
|
3618
|
-
|
|
3619
|
-
class FilterTagsModule {
|
|
3620
|
-
}
|
|
3621
|
-
FilterTagsModule.decorators = [
|
|
3622
|
-
{ type: NgModule, args: [{
|
|
3623
|
-
declarations: [FilterTagsComponent, FilterTagComponent],
|
|
3624
|
-
imports: [
|
|
3625
|
-
CommonModule
|
|
3626
|
-
],
|
|
3627
|
-
exports: [FilterTagComponent, FilterTagsComponent]
|
|
3628
|
-
},] }
|
|
3629
|
-
];
|
|
3630
|
-
|
|
3631
|
-
class SearchComponent {
|
|
3632
|
-
constructor() {
|
|
3633
|
-
this.change = new EventEmitter();
|
|
3634
|
-
this.withoutBg = true;
|
|
3635
|
-
this.placeholder = '';
|
|
3636
|
-
this.value = '';
|
|
3637
|
-
this.onShowOptions = false;
|
|
3638
|
-
}
|
|
3639
|
-
inputHandler(term) {
|
|
3640
|
-
this.onShowOptions = true;
|
|
3641
|
-
const target = term.target;
|
|
3642
|
-
this.value = target.value;
|
|
3643
|
-
this.change.emit(this.value);
|
|
3644
|
-
}
|
|
3645
|
-
selectHandler(term) {
|
|
3646
|
-
this.value = term;
|
|
3647
|
-
this.options = [];
|
|
3648
|
-
this.change.emit(this.value);
|
|
3649
|
-
}
|
|
3650
|
-
blurHandler() {
|
|
3651
|
-
this.onShowOptions = false;
|
|
3652
|
-
}
|
|
3653
|
-
focusHandler() {
|
|
3654
|
-
if (this.value)
|
|
3655
|
-
this.onShowOptions = true;
|
|
3656
|
-
}
|
|
3657
|
-
clearInput() {
|
|
3658
|
-
this.value = '';
|
|
3659
|
-
this.change.emit(this.value);
|
|
3660
|
-
}
|
|
3661
|
-
inputExample(term) {
|
|
3662
|
-
this.value = term;
|
|
3663
|
-
this.change.emit(this.value);
|
|
3664
|
-
}
|
|
3665
|
-
ngOnInit() {
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
SearchComponent.decorators = [
|
|
3669
|
-
{ type: Component, args: [{
|
|
3670
|
-
selector: 'aeb-search',
|
|
3671
|
-
template: "<div\n class=\"aeb-search\"\n [ngClass]=\"{\n 'aeb-search--plate': !withoutBg\n }\"\n>\n <div class=\"aeb-search__input-wrapper\">\n <div class=\"aeb-search__search-icon\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10.5\" cy=\"10.5\" r=\"6.5\" stroke=\"#2F88F0\" stroke-width=\"2\"/>\n <path d=\"M15 15.5L19.5 20\" stroke=\"#2F88F0\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n </div>\n <input\n class=\"aeb-search__input\"\n clickOutside\n [placeholder]=\"placeholder\"\n (input)=\"inputHandler($event)\"\n (clickOutside)=\"blurHandler()\"\n [value]=\"value\"\n (focus)=\"focusHandler()\"\n [ngClass]=\"{\n 'aeb-search__input--expanded': onShowOptions && options.length\n }\"\n #input\n />\n <div\n class=\"aeb-search__options\"\n *ngIf=\"onShowOptions && options.length\"\n >\n <div\n class=\"aeb-search__option-wrapper\"\n *ngFor=\"let option of options\"\n (click)=\"selectHandler(option.value)\"\n >\n <div\n class=\"aeb-search__option\"\n >\n <div class=\"aeb-search__option-img\">\n <img *ngIf=\"option.image; else elseTemplate\" [src]=\"option.image\" />\n <ng-template #elseTemplate>\n {{option.value[0].toUpperCase()}}\n </ng-template>\n </div>\n <div class=\"aeb-search__option-content\">\n <div\n class=\"aeb-search__option-value\"\n [innerHTML]=\"option.value | highlight:value\"\n ></div>\n <div class=\"aeb-search__option-desc\">\n {{option.description}}\n </div>\n </div>\n </div>\n </div>\n </div>\n <ng-container\n *ngIf=\"!withoutBg\"\n >\n <div\n class=\"aeb-search__examples\"\n *ngIf=\"examples.length\"\n >\n \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440:\n <span\n class=\"aeb-search__example\"\n *ngFor=\"let example of examples; index as i\"\n (click)=\"inputExample(example)\"\n >\n {{example}}<span *ngIf=\"i !== examples.length - 1\">, </span>\n </span>\n </div>\n </ng-container>\n <div\n class=\"aeb-search__close-icon\"\n *ngIf=\"value\"\n (click)=\"clearInput()\"\n >\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.63074 5.63086L18.3692 18.3693\" stroke=\"#27303E\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n <path d=\"M18.3693 5.63086L5.63077 18.3693\" stroke=\"#27303E\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n </div>\n </div>\n</div>\n",
|
|
3672
|
-
encapsulation: ViewEncapsulation.None,
|
|
3673
|
-
styles: [".aeb-search{display:flex}.aeb-search--plate{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABkAAAADMCAYAAAArrm8+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAFdESURBVHgB7d3pcttotub7F+A8aLZs2a6srrMr9o7z7UScq+wr6YvqiKrOyNxOW6YlUQNnEuh3LQAUKXEmSALE/xehtOyUZdmiKPJ9sNbj/H//s+kbAAAAAAAAAACAI+IaAAAAAAAAAACAI0MAAgAAAAAAAAAAjk7eJEi+6JrrLxX9sfHfHdNtDw0AAAAAAAD2w3Ec+x8TvjjhS/g/3eAVx3UmfkP4dsZMv+3UO514m014/mq/7tuf+6+vBv+Z/vWp3xO+7ntshweAY5WYAERCj8//qJl8IRhKufhYMt9/JwABAAAAAADYhgYWkj+4bvij8xpiyI+TryfRvI9rwce7zt9k/LZRUOJNByfjgMQL/7/++pv/BwBIpEQEIG/DD1GuJWo4BQAAAAAAIHHGExs5N1h0bkMOJ/p5GHZgRdG/5Zt/s0X/guP/J0HIRFCiwyeeZ1/MODDxR4QlALBviUgZLq5LU+GH8PimAAAAAAAAoHRiIww5HPmRgCNZJidpTBSM5KbeRH9NwpDRRCASBScjCU04CwOwPidvg++rinEKOb0/8Rpt4w9GBoGDByAn50VTty9v9bt8kgAAAAAAQLa8CzryLiHHMZEpk3zYpVJ487/CcCQIRrwgKCEYAbCAhB/ux1rwvULY7xfup5rxfrwYf+gZHDgAcXOOOf9Ymvn/npt9AwAAAAAAcKw07MgH0xxOToIPZ7uycKRbGI44elr3Oj3ihIGIHmYSigAIyfeQqfAjIj1PlxXj/2wZHDgAObt6v/pKDPueeWkODAAAAAAAwDHQro58MNFB2IG16O0lF6y3CTk6KWIDkYGEIh5l7EAGOSel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K7AAAAAAAJjABMhOySos97lHCJIF0gdy/vqJ9n51tl4xRwCyR6y+AnAU5BsP+00BAAAAAAhwneDO3f3omqo3Mldle0buGBwx6QJxKoXgJyPPeA9dsw0CkD3yblskwgCOgj/ivgwAAAAAAMV53140vnVMxfXNx6r9SYcNO8fMvaoYJx9EF36rv1UfCAHInnhNej8AHJHhyAAAAAAAAMOWhD3pd0em2ejJliRzlvPM6Nuz8V76BkfIdYxzWRn/1JdaieFmZ+sEIHsgX4j+E6uvABwRJkAAAAAAAAgwAbI3j3c97QQ5uyqZcsk1/n2HIORIOeW8rsNSNmSUz/UmCEB2jN4PAMdIV2DxAA8AAAAAAJ4e75mswvLsucT13yrGzTm6dWcchDS7G08KIHnci7JxCjl93e8Ojfe4fh8IAciOeY02q68AHB/76I4eEAAAAAAADCuw9mw48IJVWAXXXH95XZOkQchTz3h/PZvRz5dgKw+fm9Rzr6vGOEHzvQwa+L3hOr+dAGSXtPdjwJ58AEeKKyoAAAAAACAAOYBoFVb1tGCqJ4X3b9Ad6VSI999PxrvrGJ/S9PTKu8Y9L41/6v3qrPU1RwCyI/R+ADh6BCAAAAAAgKxj/9XBjFdhfa2YfHH+Mbff6uuWntEfj2bUaAXntpxppIp0gTiVMOgaecZbo3KCAGQHtPfjYf19ZACQJvpggQd6AAAAAIAMY8XS4cgqrMZfHe0BmVqFtUhnGEyGRGuynnrG77PBJw3cq8rrKqzn1Vdh/V+lJEsDGSzExwAAAABJRU5ErkJggg==\");height:205px;justify-content:center;align-items:center;background-position:50%;padding:0 10px}.aeb-search__input-wrapper{width:1200px;position:relative}.aeb-search__input{width:100%;height:64px;font-size:20px;padding:20px 68px;box-sizing:border-box;outline:none;border:none;border-radius:14px}.aeb-search__input::-moz-placeholder{color:var(--gray-primary)}.aeb-search__input:-ms-input-placeholder{color:var(--gray-primary)}.aeb-search__input::placeholder{color:var(--gray-primary)}@media screen and (max-width:420px){.aeb-search__input{padding:20px 38px;font-size:16px}}.aeb-search__input--expanded{border-radius:14px 14px 0 0}.aeb-search__search-icon{position:absolute;left:23px;top:20px}@media screen and (max-width:420px){.aeb-search__search-icon{left:8px}}.aeb-search__close-icon{position:absolute;right:25px;top:20px;cursor:pointer}@media screen and (max-width:420px){.aeb-search__close-icon{right:10px}}.aeb-search__examples{margin-top:12px;color:hsla(0,0%,100%,.7);font-size:14px}.aeb-search__example{cursor:pointer;color:var(--white)}.aeb-search__options{position:absolute;background-color:var(--white);top:64px;width:100%;box-shadow:0 6px 26px rgba(0,0,0,.1);border-radius:0 0 14px 14px;box-sizing:border-box}.aeb-search__option-wrapper{padding:0 20px;box-sizing:border-box;cursor:pointer}.aeb-search__option-wrapper:hover{background-color:var(--lightgray-secondary)}.aeb-search__option-wrapper:last-child{border-radius:0 0 14px 14px}.aeb-search__option{box-sizing:border-box;padding:24px 0;border-bottom:1px solid var(--lightgray-secondary);overflow:hidden;display:flex;align-items:center}.aeb-search__option-img{width:40px;height:40px;background-color:var(--lightblue);display:flex;justify-content:center;align-items:center;font-size:24px;color:var(--white);margin-right:16px;border-radius:50%}.aeb-search__option-img img{width:100%;height:100%;border-radius:50%}.aeb-search__option-value{color:var(--darkblue);font-size:16px;margin-bottom:4px}.aeb-search__option-desc{font-size:14px;color:var(--gray-primary)}"]
|
|
3674
|
-
},] }
|
|
3675
|
-
];
|
|
3676
|
-
SearchComponent.ctorParameters = () => [];
|
|
3677
|
-
SearchComponent.propDecorators = {
|
|
3678
|
-
input: [{ type: ViewChild, args: ['input',] }],
|
|
3679
|
-
change: [{ type: Output, args: ['change',] }],
|
|
3680
|
-
withoutBg: [{ type: Input, args: ['withoutBg',] }],
|
|
3681
|
-
placeholder: [{ type: Input, args: ['placeholder',] }],
|
|
3682
|
-
examples: [{ type: Input, args: ['examples',] }],
|
|
3683
|
-
options: [{ type: Input, args: ['options',] }]
|
|
3684
|
-
};
|
|
3685
|
-
|
|
3686
|
-
class HighlightPipe {
|
|
3687
|
-
transform(value, ...args) {
|
|
3688
|
-
return `${value.replace(RegExp(args[0]), `<b>${args[0]}</b>`)}`;
|
|
3689
|
-
}
|
|
3690
|
-
}
|
|
3691
|
-
HighlightPipe.decorators = [
|
|
3692
|
-
{ type: Pipe, args: [{
|
|
3693
|
-
name: 'highlight'
|
|
3694
|
-
},] }
|
|
3695
|
-
];
|
|
3696
|
-
|
|
3697
|
-
class SearchModule {
|
|
3698
|
-
}
|
|
3699
|
-
SearchModule.decorators = [
|
|
3700
|
-
{ type: NgModule, args: [{
|
|
3701
|
-
declarations: [SearchComponent, HighlightPipe],
|
|
3702
|
-
imports: [
|
|
3703
|
-
CommonModule,
|
|
3704
|
-
ClickOutsideModule
|
|
3705
|
-
],
|
|
3706
|
-
exports: [SearchComponent]
|
|
3707
|
-
},] }
|
|
3708
|
-
];
|
|
3709
|
-
|
|
3710
|
-
class ActionBarComponent {
|
|
3711
|
-
constructor() { }
|
|
3712
|
-
ngOnInit() {
|
|
3713
|
-
}
|
|
3714
|
-
}
|
|
3715
|
-
ActionBarComponent.decorators = [
|
|
3716
|
-
{ type: Component, args: [{
|
|
3717
|
-
selector: 'aeb-action-bar',
|
|
3718
|
-
template: "<div\n class=\"aeb-action-bar\"\n [style]=\"'z-index: ' + zIndex\"\n [ngClass]=\"{\n 'aeb-action-bar--open': isOpen\n }\"\n>\n <ng-content></ng-content>\n</div>",
|
|
3719
|
-
encapsulation: ViewEncapsulation.None,
|
|
3720
|
-
styles: [".aeb-action-bar{position:fixed;bottom:-90px;width:100vw;height:90px;background-color:var(--white);transition:position,.2s;z-index:1000}.aeb-action-bar--open{bottom:0}"]
|
|
3721
|
-
},] }
|
|
3722
|
-
];
|
|
3723
|
-
ActionBarComponent.ctorParameters = () => [];
|
|
3724
|
-
ActionBarComponent.propDecorators = {
|
|
3725
|
-
isOpen: [{ type: Input, args: ['isOpen',] }],
|
|
3726
|
-
zIndex: [{ type: Input, args: ['zIndex',] }]
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
|
-
class ActionBarModule {
|
|
3730
|
-
}
|
|
3731
|
-
ActionBarModule.decorators = [
|
|
3732
|
-
{ type: NgModule, args: [{
|
|
3733
|
-
declarations: [ActionBarComponent],
|
|
3734
|
-
imports: [
|
|
3735
|
-
CommonModule
|
|
3736
|
-
],
|
|
3737
|
-
exports: [ActionBarComponent]
|
|
3738
|
-
},] }
|
|
3739
|
-
];
|
|
3740
|
-
|
|
3741
|
-
class NewsCardComponent {
|
|
3742
|
-
constructor() { }
|
|
3743
|
-
}
|
|
3744
|
-
NewsCardComponent.decorators = [
|
|
3745
|
-
{ type: Component, args: [{
|
|
3746
|
-
selector: 'aeb-news-card',
|
|
3747
|
-
template: "<div class=\"aeb-news-card\">\n <div class=\"aeb-news-card__date\">\n {{date}}\n </div>\n <div class=\"aeb-news-card__content\">\n <ng-content></ng-content>\n </div>\n</div>",
|
|
3748
|
-
encapsulation: ViewEncapsulation.None,
|
|
3749
|
-
styles: [".aeb-news-card{box-sizing:border-box;max-width:320px;color:var(--darkblue)}.aeb-news-card__date{padding:9px 10px;box-sizing:border-box;font-size:12px;border:1px solid var(--lightblue);border-radius:16px;display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-bottom:16px}.aeb-news-card__content{max-width:320px;text-decoration:none!important;font-size:16px}.aeb-news-card__content a{text-decoration:none;color:var(--blue)}"]
|
|
3750
|
-
},] }
|
|
3751
|
-
];
|
|
3752
|
-
NewsCardComponent.ctorParameters = () => [];
|
|
3753
|
-
NewsCardComponent.propDecorators = {
|
|
3754
|
-
date: [{ type: Input, args: ['date',] }]
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
class NewsCardModule {
|
|
3758
|
-
}
|
|
3759
|
-
NewsCardModule.decorators = [
|
|
3760
|
-
{ type: NgModule, args: [{
|
|
3761
|
-
declarations: [NewsCardComponent],
|
|
3762
|
-
imports: [
|
|
3763
|
-
CommonModule
|
|
3764
|
-
],
|
|
3765
|
-
exports: [NewsCardComponent]
|
|
3766
|
-
},] }
|
|
3767
|
-
];
|
|
3768
|
-
|
|
3769
|
-
class NewDropdownComponent {
|
|
3770
|
-
constructor() {
|
|
3771
|
-
this.label = '';
|
|
3772
|
-
this.options = [];
|
|
3773
|
-
this.filter = true;
|
|
3774
|
-
this.hasError = false;
|
|
3775
|
-
this.select = new EventEmitter();
|
|
3776
|
-
this.inputChange = new EventEmitter();
|
|
3777
|
-
this.isOpen = false;
|
|
3778
|
-
this._fieldValue = '';
|
|
3779
|
-
this._value = '';
|
|
3780
|
-
this.disabled = false;
|
|
3781
|
-
this.touched = false;
|
|
3782
|
-
this.viewOptions = [];
|
|
3783
|
-
}
|
|
3784
|
-
set value(value) {
|
|
3785
|
-
if (!value) {
|
|
3786
|
-
this.resetValue();
|
|
3787
|
-
return;
|
|
3788
|
-
}
|
|
3789
|
-
this._value = value;
|
|
3790
|
-
}
|
|
3791
|
-
set fieldValue(vl) {
|
|
3792
|
-
const match = (this.options || []).find(item => item.value === vl);
|
|
3793
|
-
if (match) {
|
|
3794
|
-
this.value = match.label;
|
|
3795
|
-
this._fieldValue = match.value;
|
|
3796
|
-
this.selected = match;
|
|
3797
|
-
}
|
|
3798
|
-
}
|
|
3799
|
-
resetValue() {
|
|
3800
|
-
this._value = '';
|
|
3801
|
-
this.selected = null;
|
|
3802
|
-
this.writeValue(null);
|
|
3803
|
-
this.viewOptions = this.options;
|
|
3804
|
-
}
|
|
3805
|
-
get fieldValue() {
|
|
3806
|
-
return this._fieldValue;
|
|
3807
|
-
}
|
|
3808
|
-
get value() {
|
|
3809
|
-
return this._value;
|
|
3810
|
-
}
|
|
3811
|
-
openHandler() {
|
|
3812
|
-
if (this.disabled)
|
|
3813
|
-
return;
|
|
3814
|
-
if (this.isOpen) {
|
|
3815
|
-
this.input.nativeElement.classList.remove('aeb-new-dropdown__input--lock');
|
|
3816
|
-
}
|
|
3817
|
-
this.isOpen = !this.isOpen;
|
|
3818
|
-
}
|
|
3819
|
-
clickInput() {
|
|
3820
|
-
if (this.disabled)
|
|
3821
|
-
return;
|
|
3822
|
-
if (!this.isOpen) {
|
|
3823
|
-
this.isOpen = true;
|
|
3824
|
-
this.input.nativeElement.classList.add('aeb-new-dropdown__input--lock');
|
|
3825
|
-
}
|
|
3826
|
-
}
|
|
3827
|
-
clickOutsideHandler() {
|
|
3828
|
-
if (this.isOpen) {
|
|
3829
|
-
this.isOpen = false;
|
|
3830
|
-
this.input.nativeElement.classList.remove('aeb-new-dropdown__input--lock');
|
|
3831
|
-
}
|
|
3832
|
-
}
|
|
3833
|
-
inputHandler(term) {
|
|
3834
|
-
if (this.disabled)
|
|
3835
|
-
return;
|
|
3836
|
-
const target = term.target;
|
|
3837
|
-
this.value = target.value;
|
|
3838
|
-
this.inputChange.emit(this.value);
|
|
3839
|
-
if (!this.value) {
|
|
3840
|
-
this.viewOptions = this.options;
|
|
3841
|
-
return;
|
|
3842
|
-
}
|
|
3843
|
-
if (this.value !== this.fieldValue) {
|
|
3844
|
-
this.selected = null;
|
|
3845
|
-
this.writeValue(null);
|
|
3846
|
-
}
|
|
3847
|
-
const match = (this.options || []).find(item => item.label === this.value);
|
|
3848
|
-
if (match) {
|
|
3849
|
-
this.writeValue(match.value);
|
|
3850
|
-
this.selected = match;
|
|
3851
|
-
}
|
|
3852
|
-
this.filterOptions();
|
|
3853
|
-
}
|
|
3854
|
-
filterOptions() {
|
|
3855
|
-
if (!this.filter)
|
|
3856
|
-
return;
|
|
3857
|
-
this.viewOptions = (this.options || []).filter(item => {
|
|
3858
|
-
return item.label.slice(0, this.value.length).toLocaleLowerCase() === this.value.toLocaleLowerCase();
|
|
3859
|
-
});
|
|
3860
|
-
}
|
|
3861
|
-
selectHandler(item) {
|
|
3862
|
-
this.value = item.label;
|
|
3863
|
-
this.selected = item;
|
|
3864
|
-
this.filterOptions();
|
|
3865
|
-
this.fieldValue = item.value;
|
|
3866
|
-
this.writeValue(item.value);
|
|
3867
|
-
this.input.nativeElement.classList.remove('aeb-new-dropdown__input--lock');
|
|
3868
|
-
this.isOpen = false;
|
|
3869
|
-
}
|
|
3870
|
-
ngOnInit() {
|
|
3871
|
-
this.viewOptions = this.options;
|
|
3872
|
-
}
|
|
3873
|
-
onChange(value) { }
|
|
3874
|
-
onTouch() { }
|
|
3875
|
-
registerOnChange(fn) {
|
|
3876
|
-
this.onChange = fn;
|
|
3877
|
-
}
|
|
3878
|
-
registerOnTouched(fn) {
|
|
3879
|
-
this.onTouch = fn;
|
|
3880
|
-
}
|
|
3881
|
-
writeValue(value) {
|
|
3882
|
-
if (this.disabled)
|
|
3883
|
-
return;
|
|
3884
|
-
this.fieldValue = value;
|
|
3885
|
-
this.onChange(value);
|
|
3886
|
-
this.onTouch();
|
|
3887
|
-
if (!this.touched)
|
|
3888
|
-
this.touched = true;
|
|
3889
|
-
this.select.emit(this.selected);
|
|
3890
|
-
}
|
|
3891
|
-
setDisabledState(disabled) {
|
|
3892
|
-
this.disabled = disabled;
|
|
3893
|
-
}
|
|
3894
|
-
ngOnChanges(changes) {
|
|
3895
|
-
if (changes.options) {
|
|
3896
|
-
this.viewOptions = this.options;
|
|
3897
|
-
}
|
|
3898
|
-
}
|
|
3899
|
-
}
|
|
3900
|
-
NewDropdownComponent.decorators = [
|
|
3901
|
-
{ type: Component, args: [{
|
|
3902
|
-
selector: 'aeb-new-dropdown',
|
|
3903
|
-
template: "<div\n class=\"aeb-new-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n [ngClass]=\"{\n 'aeb-new-dropdown--on-error': hasError,\n 'aeb-new-dropdown--disabled': disabled\n }\"\n>\n <div\n class=\"aeb-new-dropdown__input-wrapper\"\n >\n <div\n class=\"aeb-new-dropdown__input\"\n [ngClass]=\"{\n 'aeb-new-dropdown__input--isOpen': isOpen\n }\"\n (click)=\"clickInput()\"\n #input\n >\n <aeb-form-field #field>\n <aeb-label>{{label}}</aeb-label>\n <input\n aebInput\n type=\"text\"\n (input)=\"inputHandler($event)\"\n [(ngModel)]=\"value\"\n />\n </aeb-form-field>\n </div>\n <div\n class=\"aeb-new-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-new-dropdown__icon--isOpen': isOpen\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6.85718 9.42854L12 14.5714L17.1429 9.42854\"\n stroke=\"#94A8BE\"\n stroke-width=\"1.6\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n *ngIf=\"isOpen\"\n class=\"aeb-new-dropdown__items\"\n >\n <div\n *ngFor=\"let option of viewOptions\"\n class=\"aeb-new-dropdown__option\"\n (click)=\"selectHandler(option)\"\n >\n {{option.label}}\n </div>\n </div>\n</div>",
|
|
3904
|
-
encapsulation: ViewEncapsulation.None,
|
|
3905
|
-
providers: [
|
|
3906
|
-
{
|
|
3907
|
-
provide: NG_VALUE_ACCESSOR,
|
|
3908
|
-
useExisting: forwardRef(() => NewDropdownComponent),
|
|
3909
|
-
multi: true
|
|
3910
|
-
}
|
|
3911
|
-
],
|
|
3912
|
-
styles: [".aeb-new-dropdown{width:100%;position:relative}.aeb-new-dropdown--disabled{pointer-events:none;opacity:.5}.aeb-new-dropdown--on-error .aeb-input{border-color:#ff3055!important}.aeb-new-dropdown--on-error .aeb-label{color:#ff3055!important}.aeb-new-dropdown--on-error .aeb-new-dropdown__icon svg path{stroke:#ff3055}.aeb-new-dropdown__input-wrapper{width:100%;position:relative}.aeb-new-dropdown__icon{position:absolute;right:10px;top:calc(50% - 12px);display:flex;align-items:center;justify-content:center;cursor:pointer}.aeb-new-dropdown__icon svg{transition:transform,.2s}.aeb-new-dropdown__icon--isOpen svg{transform:rotate(180deg)}.aeb-new-dropdown__input--isOpen .aeb-input{border:2px solid var(--blue)!important}.aeb-new-dropdown__input--lock .aeb-label{transform:translateY(calc(var(--input-height) / -2 + -50%))!important;font-size:12px!important}.aeb-new-dropdown__items{position:absolute;top:calc(100% - 8px);width:100%;background-color:#fff;border:2px solid var(--blue);border-top:none;border-radius:0 0 10px 10px;box-sizing:border-box;padding-top:8px;z-index:1}.aeb-new-dropdown__option{box-sizing:border-box;width:100%;padding:18px 16px;cursor:pointer}.aeb-new-dropdown__option:hover{background-color:var(--lightblue)}.aeb-new-dropdown__option:last-child{border-radius:0 0 10px 10px}"]
|
|
3913
|
-
},] }
|
|
3914
|
-
];
|
|
3915
|
-
NewDropdownComponent.ctorParameters = () => [];
|
|
3916
|
-
NewDropdownComponent.propDecorators = {
|
|
3917
|
-
label: [{ type: Input, args: ['label',] }],
|
|
3918
|
-
options: [{ type: Input, args: ['options',] }],
|
|
3919
|
-
filter: [{ type: Input, args: ['filter',] }],
|
|
3920
|
-
hasError: [{ type: Input }],
|
|
3921
|
-
select: [{ type: Output, args: ['select',] }],
|
|
3922
|
-
inputChange: [{ type: Output, args: ['inputChange',] }],
|
|
3923
|
-
input: [{ type: ViewChild, args: ['input',] }],
|
|
3924
|
-
value: [{ type: Input }],
|
|
3925
|
-
fieldValue: [{ type: Input }],
|
|
3926
|
-
disabled: [{ type: Input }]
|
|
3927
|
-
};
|
|
3928
|
-
|
|
3929
|
-
class NewDropdownModule {
|
|
3930
|
-
}
|
|
3931
|
-
NewDropdownModule.decorators = [
|
|
3932
|
-
{ type: NgModule, args: [{
|
|
3933
|
-
declarations: [NewDropdownComponent],
|
|
3934
|
-
imports: [
|
|
3935
|
-
CommonModule,
|
|
3936
|
-
FormFieldModule,
|
|
3937
|
-
ClickOutsideModule,
|
|
3938
|
-
FormsModule
|
|
3939
|
-
],
|
|
3940
|
-
exports: [NewDropdownComponent]
|
|
3941
|
-
},] }
|
|
3942
|
-
];
|
|
3943
|
-
|
|
3944
|
-
class TableComponent {
|
|
3945
|
-
constructor() {
|
|
3946
|
-
this.action = new EventEmitter();
|
|
3947
|
-
}
|
|
3948
|
-
ngOnInit() { }
|
|
3949
|
-
onRowActionClicked(actionType, id) {
|
|
3950
|
-
const userAction = {
|
|
3951
|
-
actionToPerform: actionType,
|
|
3952
|
-
id,
|
|
3953
|
-
};
|
|
3954
|
-
this.action.emit(userAction);
|
|
3955
|
-
}
|
|
3956
|
-
}
|
|
3957
|
-
TableComponent.decorators = [
|
|
3958
|
-
{ type: Component, args: [{
|
|
3959
|
-
selector: 'aeb-table',
|
|
3960
|
-
template: "<table class=\"table\">\n <thead>\n <tr>\n <th\n align=\"{{ columnHead.align || 'left' }}\"\n class=\"table-title\"\n *ngFor=\"let columnHead of tableConfig.columns\"\n >\n {{ columnHead.title }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let columnData of tableContent\">\n <td\n *ngFor=\"let columnHead of tableConfig.columns\"\n align=\"{{ columnHead.align || 'left' }}\"\n >\n <div [ngSwitch]=\"columnHead.dataField\">\n <div *ngSwitchCase=\"'ROW_ACTION'\">\n <div class=\"table-action\">\n <div *ngFor=\"let action of tableConfig.rowActions\">\n <img\n src=\"{{ action.logoImageUrl }}\"\n (click)=\"\n onRowActionClicked(action.actionToPerform, columnData.id)\n \"\n />\n </div>\n </div>\n </div>\n\n <div *ngSwitchCase=\"'STATUS'\">\n <div [ngSwitch]=\"columnData[columnHead.dataProperty]\">\n <ng-container\n *ngFor=\"let status of tableConfig.status; let i = index\"\n >\n <div\n (click)=\"\n onRowActionClicked(\n columnHead.action || 'SHOW',\n columnData.id\n )\n \"\n class=\"table-status\"\n style=\"color: {{ status.color }}\"\n *ngSwitchCase=\"i\"\n >\n <img src=\"{{ status.iconUrl }}\" />\n <span>{{ status.label }}</span>\n </div>\n </ng-container>\n </div>\n </div>\n <div\n *ngSwitchDefault\n (click)=\"\n onRowActionClicked(columnHead.action || 'SHOW', columnData.id)\n \"\n [innerHTML]=\"\n columnData[columnHead.dataProperty]\n | formatTable\n : columnHead.format?.type\n : columnHead.format?.placeholder\n : columnHead.format?.local\n \"\n ></div>\n </div>\n </td>\n </tr>\n </tbody>\n</table>\n",
|
|
3961
|
-
styles: [".table{width:100%}.table-title{color:var(--primary-gray);font-size:14px;line-height:16px}.table-title,.table tr td{padding:16px 0;font-style:normal;font-weight:400}.table tr td{border-top:1px solid var(--secondary-light-gray);color:var(--primary-dark);cursor:pointer;font-size:16px;line-height:20px}.table tr:last-child td{border-bottom:1px solid var(--secondary-light-gray)}.table-price{font-size:16px;font-weight:700;line-height:20px}.table-status{display:inline-flex}.table-status>span{margin-left:1rem}.table .table-action{display:flex;justify-content:flex-end}.table .table-action>div{padding:5px}"]
|
|
3962
|
-
},] }
|
|
3963
|
-
];
|
|
3964
|
-
TableComponent.propDecorators = {
|
|
3965
|
-
tableConfig: [{ type: Input }],
|
|
3966
|
-
tableContent: [{ type: Input }],
|
|
3967
|
-
action: [{ type: Output }]
|
|
3968
|
-
};
|
|
3969
|
-
|
|
3970
|
-
class FormatTablePipe {
|
|
3971
|
-
transform(value, type, format, locale = 'ru') {
|
|
3972
|
-
if (type === 'date') {
|
|
3973
|
-
return formatDate(value, format, locale);
|
|
3974
|
-
}
|
|
3975
|
-
if (type === 'number') {
|
|
3976
|
-
let innerNumber = formatNumber(value, locale, format).split(',');
|
|
3977
|
-
return `<b>${innerNumber[0]}, </b>${innerNumber[1]}`;
|
|
3978
|
-
}
|
|
3979
|
-
return value;
|
|
3980
|
-
}
|
|
3981
|
-
}
|
|
3982
|
-
FormatTablePipe.decorators = [
|
|
3983
|
-
{ type: Pipe, args: [{ name: 'formatTable' },] }
|
|
3984
|
-
];
|
|
3985
|
-
|
|
3986
|
-
class TableModule {
|
|
3987
|
-
}
|
|
3988
|
-
TableModule.decorators = [
|
|
3989
|
-
{ type: NgModule, args: [{
|
|
3990
|
-
declarations: [TableComponent, FormatTablePipe],
|
|
3991
|
-
imports: [CommonModule],
|
|
3992
|
-
exports: [TableComponent],
|
|
3993
|
-
},] }
|
|
3994
|
-
];
|
|
3995
|
-
|
|
3996
|
-
class AebUiKitModule {
|
|
3997
|
-
}
|
|
3998
|
-
AebUiKitModule.decorators = [
|
|
3999
|
-
{ type: NgModule, args: [{
|
|
4000
|
-
declarations: [],
|
|
4001
|
-
imports: [
|
|
4002
|
-
ButtonModule,
|
|
4003
|
-
NewButtonModule,
|
|
4004
|
-
CheckboxModule,
|
|
4005
|
-
DropdownModule,
|
|
4006
|
-
HeaderModule,
|
|
4007
|
-
SidebarModule,
|
|
4008
|
-
SliderModule,
|
|
4009
|
-
WizardModule,
|
|
4010
|
-
FormFieldModule,
|
|
4011
|
-
TooltipModule,
|
|
4012
|
-
LabelModule,
|
|
4013
|
-
VisaModule,
|
|
4014
|
-
SpinnerModule,
|
|
4015
|
-
NotificationsModule,
|
|
4016
|
-
SelectModule,
|
|
4017
|
-
FileAttachModule,
|
|
4018
|
-
CreditItemCardModule,
|
|
4019
|
-
TagTabModule,
|
|
4020
|
-
FieldSliderModule,
|
|
4021
|
-
TabsModule,
|
|
4022
|
-
HeadingModule,
|
|
4023
|
-
NewTooltipModule,
|
|
4024
|
-
NewNotificationsModule,
|
|
4025
|
-
DatepickerModule,
|
|
4026
|
-
RadioButtonsModule,
|
|
4027
|
-
AccordionModule,
|
|
4028
|
-
CommentModule,
|
|
4029
|
-
FooterModule,
|
|
4030
|
-
PaginationModule,
|
|
4031
|
-
PopUpModule,
|
|
4032
|
-
FilterTagsModule,
|
|
4033
|
-
SearchModule,
|
|
4034
|
-
ActionBarModule,
|
|
4035
|
-
NewsCardModule,
|
|
4036
|
-
NewDropdownModule,
|
|
4037
|
-
TableModule,
|
|
4038
|
-
],
|
|
4039
|
-
exports: [
|
|
4040
|
-
ButtonModule,
|
|
4041
|
-
NewButtonModule,
|
|
4042
|
-
CheckboxModule,
|
|
4043
|
-
DropdownModule,
|
|
4044
|
-
HeaderModule,
|
|
4045
|
-
SidebarModule,
|
|
4046
|
-
SliderModule,
|
|
4047
|
-
WizardModule,
|
|
4048
|
-
FormFieldModule,
|
|
4049
|
-
TooltipModule,
|
|
4050
|
-
LabelModule,
|
|
4051
|
-
VisaModule,
|
|
4052
|
-
SpinnerModule,
|
|
4053
|
-
NotificationsModule,
|
|
4054
|
-
SelectModule,
|
|
4055
|
-
FileAttachModule,
|
|
4056
|
-
CreditItemCardModule,
|
|
4057
|
-
TagTabModule,
|
|
4058
|
-
FieldSliderModule,
|
|
4059
|
-
TabsModule,
|
|
4060
|
-
HeadingModule,
|
|
4061
|
-
DatepickerModule,
|
|
4062
|
-
RadioButtonsModule,
|
|
4063
|
-
AccordionModule,
|
|
4064
|
-
CommentModule,
|
|
4065
|
-
FooterModule,
|
|
4066
|
-
PaginationModule,
|
|
4067
|
-
PopUpModule,
|
|
4068
|
-
FilterTagsModule,
|
|
4069
|
-
SearchModule,
|
|
4070
|
-
ActionBarModule,
|
|
4071
|
-
NewsCardModule,
|
|
4072
|
-
NewDropdownModule,
|
|
4073
|
-
TableModule,
|
|
4074
|
-
],
|
|
4075
|
-
},] }
|
|
4076
|
-
];
|
|
4077
|
-
|
|
4078
|
-
/*
|
|
4079
|
-
* Public API Surface of aeb-ui-kit
|
|
4080
|
-
*/
|
|
4081
|
-
|
|
4082
|
-
/**
|
|
4083
|
-
* Generated bundle index. Do not edit.
|
|
4084
|
-
*/
|
|
4085
|
-
|
|
4086
|
-
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebNotificationsComponent, AebUiKitModule, BreadcrumpsComponent, ButtonComponent, ButtonModule, CheckboxComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DatepickerComponent, DatepickerModule, DragAndDropDirective, DropdownComponent, DropdownModule, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterComponent, FooterModule, FormFieldComponent, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, InputDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, NewButtonComponent, NewButtonModule, NewDropdownComponent, NewDropdownModule, NewNotificationsComponent, NewNotificationsModule, NewTooltipComponent, NewTooltipModule, NewsCardComponent, NewsCardModule, NotificationsModule, OptionComponent, PaginationComponent, PaginationModule, PopUpComponent, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TextareaDirective, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule, WizardComponent, WizardModule, WizardStepComponent, maskModule, ɵ0$1 as ɵ0, ReplacePipe as ɵa, ReplacePipe$1 as ɵb, NumbersOnlyDirective as ɵc, TabDirective as ɵd, DOMService as ɵe, DatepickerUtilsService as ɵf, MaskUtilsService as ɵg, DatepickerCoreComponent as ɵh, DatepickerMonthComponent as ɵi, DateToStrPipe as ɵj, DatepickerTilesComponent as ɵk, FooterTopComponent as ɵl, FooterMenuComponent as ɵm, FooterBottomComponent as ɵn, PopUpDirective as ɵo, HighlightPipe as ɵp, FormatTablePipe as ɵq };
|
|
4087
|
-
//# sourceMappingURL=aeb-ui-kit.js.map
|