aeb-ui-kit 1.0.0-beta.4 → 1.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/README.md +24 -24
- package/aeb-ui-kit.d.ts +5 -5
- package/assets/fonts/LICENSE.txt +202 -202
- package/assets/images/arrow_down/arrow_down_blue.svg +3 -3
- package/assets/images/arrow_down/arrow_down_gray.svg +3 -3
- package/assets/images/arrow_down/arrow_down_turquoise.svg +3 -3
- package/assets/images/arrow_down/arrow_down_white.svg +3 -3
- package/assets/images/attach/passport_primary.svg +13 -13
- package/assets/images/attach/passport_secondary.svg +15 -15
- package/assets/images/button-icons/disabled/icon-download.svg +4 -0
- package/assets/images/button-icons/disabled/icon-edit.svg +5 -0
- package/assets/images/button-icons/hovered/icon-spinner.svg +9 -0
- package/assets/images/button-icons/icon-download.svg +4 -0
- package/assets/images/button-icons/icon-edit.svg +5 -0
- package/assets/images/clip.svg +3 -3
- package/assets/images/clip_blue.svg +3 -3
- package/assets/images/close.svg +4 -4
- package/assets/images/icon-add.svg +5 -5
- package/assets/images/icon-back.svg +3 -3
- package/assets/images/icon-blocked.svg +5 -5
- package/assets/images/icon-checked.svg +3 -3
- package/assets/images/icon-download.svg +4 -4
- package/assets/images/icon-edit.svg +5 -5
- package/assets/images/icon-failure.svg +5 -5
- package/assets/images/icon-more.svg +5 -5
- package/assets/images/icon-rework.svg +5 -5
- package/assets/images/icon-spinner.svg +9 -9
- package/assets/images/icon-subtract.svg +4 -4
- package/assets/images/icon-success.svg +4 -4
- package/assets/images/icon-time.svg +5 -5
- package/assets/images/icon-trash.svg +6 -6
- package/assets/images/info.svg +5 -5
- package/assets/images/nt-icon.svg +6 -6
- package/assets/images/visa/icon_failure.svg +5 -5
- package/assets/images/visa/icon_time.svg +5 -5
- package/assets/images/visa/success_icon.svg +4 -4
- package/esm2020/aeb-ui-kit.mjs +4 -4
- package/esm2020/extended-global.mjs +2 -0
- package/esm2020/index.mjs +2 -2
- package/esm2020/lib/accordion/accordion.component.mjs +36 -36
- package/esm2020/lib/accordion/accordion.module.mjs +22 -22
- package/esm2020/lib/action-bar/action-bar.component.mjs +21 -21
- package/esm2020/lib/action-bar/action-bar.module.mjs +22 -22
- package/esm2020/lib/aeb-ui-kit.module.mjs +234 -262
- package/esm2020/lib/checkbox/checkbox.component.mjs +103 -103
- package/esm2020/lib/checkbox/checkbox.module.mjs +18 -18
- package/esm2020/lib/click-outside/click-outside.directive.mjs +45 -45
- package/esm2020/lib/click-outside/click-outside.module.mjs +18 -18
- package/esm2020/lib/comment/comment.component.mjs +72 -71
- package/esm2020/lib/comment/comment.module.mjs +40 -40
- package/esm2020/lib/credit-item-card/credit-item-card.component.mjs +30 -30
- package/esm2020/lib/credit-item-card/credit-item-card.module.mjs +26 -26
- package/esm2020/lib/credit-item-card/models/IProductItemCard.mjs +2 -2
- package/esm2020/lib/datepicker/datepicker-core/datepicker-core.component.mjs +161 -161
- package/esm2020/lib/datepicker/datepicker-month/datepicker-month.component.mjs +61 -61
- package/esm2020/lib/datepicker/datepicker-tiles/datepicker-tiles.component.mjs +104 -104
- package/esm2020/lib/datepicker/datepicker.component.mjs +378 -378
- package/esm2020/lib/datepicker/datepicker.module.mjs +65 -65
- package/esm2020/lib/datepicker/pipes/date-to-str.pipe.mjs +17 -17
- package/esm2020/lib/datepicker/services/datepicker-utils.service.mjs +150 -150
- package/esm2020/lib/datepicker/services/mask-utils.service.mjs +60 -60
- package/esm2020/lib/field-slider/directives/numbers-only.directive.mjs +71 -71
- package/esm2020/lib/field-slider/field-slider.component.mjs +170 -170
- package/esm2020/lib/field-slider/field-slider.module.mjs +38 -38
- package/esm2020/lib/field-slider/pipes/replace.pipe.mjs +19 -19
- package/esm2020/lib/file-attach/directives/drag-and-drop.directive.mjs +49 -49
- package/esm2020/lib/file-attach/file-attach.component.mjs +73 -73
- package/esm2020/lib/file-attach/file-attach.module.mjs +20 -20
- package/esm2020/lib/filter-tags/filter-tag/filter-tag.component.mjs +30 -30
- package/esm2020/lib/filter-tags/filter-tags.component.mjs +37 -37
- package/esm2020/lib/filter-tags/filter-tags.module.mjs +23 -23
- package/esm2020/lib/footer/footer-bottom/footer-bottom.component.mjs +42 -42
- package/esm2020/lib/footer/footer-menu/footer-menu.component.mjs +58 -58
- package/esm2020/lib/footer/footer-top/footer-top.component.mjs +25 -25
- package/esm2020/lib/footer/footer.component.mjs +24 -24
- package/esm2020/lib/footer/footer.module.mjs +33 -33
- package/esm2020/lib/form-field/form-field.component.mjs +87 -87
- package/esm2020/lib/form-field/form-field.module.mjs +22 -22
- package/esm2020/lib/form-field/icon.directive.mjs +14 -14
- package/esm2020/lib/form-field/input.directive.mjs +69 -69
- package/esm2020/lib/form-field/label.directive.mjs +14 -14
- package/esm2020/lib/form-field/textarea.directive.mjs +69 -69
- package/esm2020/lib/header/header.component.mjs +22 -22
- package/esm2020/lib/header/header.module.mjs +19 -19
- package/esm2020/lib/header/logo.component.mjs +15 -15
- package/esm2020/lib/heading/breadcrumps/breadcrumps.component.mjs +25 -27
- package/esm2020/lib/heading/heading.component.mjs +13 -17
- package/esm2020/lib/heading/heading.module.mjs +24 -24
- package/esm2020/lib/heading/product-title/product-title.component.mjs +21 -25
- package/esm2020/lib/label/label.component.mjs +13 -13
- package/esm2020/lib/label/label.module.mjs +18 -18
- package/esm2020/lib/new-button/new-button.component.mjs +77 -60
- package/esm2020/lib/new-button/new-button.module.mjs +18 -18
- package/esm2020/lib/new-dropdown/new-dropdown.component.mjs +187 -185
- package/esm2020/lib/new-dropdown/new-dropdown.module.mjs +34 -34
- package/esm2020/lib/new-notifications/new-notifications.component.mjs +47 -35
- package/esm2020/lib/new-notifications/new-notifications.module.mjs +22 -22
- package/esm2020/lib/new-tooltip/new-tooltip.component.mjs +23 -23
- package/esm2020/lib/new-tooltip/new-tooltip.module.mjs +27 -27
- package/esm2020/lib/new-tooltip/services/domservice.service.mjs +41 -41
- package/esm2020/lib/new-tooltip/tooltip.directive.mjs +159 -159
- package/esm2020/lib/news-card/news-card.component.mjs +14 -15
- package/esm2020/lib/news-card/news-card.module.mjs +27 -22
- package/esm2020/lib/pagination/pagination.component.mjs +187 -187
- package/esm2020/lib/pagination/pagination.module.mjs +28 -28
- package/esm2020/lib/pop-up/pop-up.component.mjs +20 -27
- package/esm2020/lib/pop-up/pop-up.directive.mjs +67 -64
- package/esm2020/lib/pop-up/pop-up.module.mjs +23 -23
- package/esm2020/lib/radio-buttons/radio-buttons.component.mjs +81 -69
- package/esm2020/lib/radio-buttons/radio-buttons.module.mjs +22 -22
- package/esm2020/lib/search/highlight.pipe.mjs +16 -16
- package/esm2020/lib/search/search.component.mjs +67 -67
- package/esm2020/lib/search/search.module.mjs +27 -27
- package/esm2020/lib/select/option.component.mjs +27 -27
- package/esm2020/lib/select/select.component.mjs +114 -114
- package/esm2020/lib/select/select.module.mjs +20 -20
- package/esm2020/lib/sidebar/sidebar.component.mjs +31 -32
- package/esm2020/lib/sidebar/sidebar.module.mjs +18 -18
- package/esm2020/lib/slider/pipes/replace.pipe.mjs +19 -19
- package/esm2020/lib/slider/slider.component.mjs +141 -141
- package/esm2020/lib/slider/slider.module.mjs +23 -23
- package/esm2020/lib/spinner/spinner.component.mjs +13 -13
- package/esm2020/lib/spinner/spinner.module.mjs +18 -18
- package/esm2020/lib/table/table.component.mjs +30 -30
- package/esm2020/lib/table/table.model.mjs +2 -2
- package/esm2020/lib/table/table.module.mjs +19 -19
- package/esm2020/lib/table/table.pipe.mjs +22 -22
- package/esm2020/lib/tabs/tab.directive.mjs +19 -19
- package/esm2020/lib/tabs/tabs.component.mjs +78 -78
- package/esm2020/lib/tabs/tabs.module.mjs +23 -23
- package/esm2020/lib/tag-tab/tag-tab.component.mjs +20 -20
- package/esm2020/lib/tag-tab/tag-tab.module.mjs +18 -18
- package/esm2020/lib/visa/visa-item.component.mjs +16 -16
- package/esm2020/lib/visa/visa-span.directive.mjs +31 -31
- package/esm2020/lib/visa/visa.component.mjs +13 -13
- package/esm2020/lib/visa/visa.module.mjs +36 -36
- package/esm2020/lib/wizard/wizard-step.component.mjs +41 -41
- package/esm2020/lib/wizard/wizard.component.mjs +83 -83
- package/esm2020/lib/wizard/wizard.module.mjs +19 -19
- package/esm2020/public-api.mjs +96 -105
- package/extended-global.d.ts +9 -0
- package/fesm2015/aeb-ui-kit.mjs +4309 -4517
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +4310 -4518
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/lib/accordion/accordion.component.d.ts +13 -13
- package/lib/accordion/accordion.module.d.ts +8 -8
- package/lib/action-bar/action-bar.component.d.ts +10 -10
- package/lib/action-bar/action-bar.module.d.ts +8 -8
- package/lib/aeb-ui-kit.module.d.ts +38 -42
- package/lib/checkbox/checkbox.component.d.ts +32 -32
- package/lib/checkbox/checkbox.module.d.ts +8 -8
- package/lib/click-outside/click-outside.directive.d.ts +16 -16
- package/lib/click-outside/click-outside.module.d.ts +8 -8
- package/lib/comment/comment.component.d.ts +40 -39
- package/lib/comment/comment.module.d.ts +12 -12
- package/lib/credit-item-card/credit-item-card.component.d.ts +13 -13
- package/lib/credit-item-card/credit-item-card.module.d.ts +9 -9
- package/lib/credit-item-card/models/IProductItemCard.d.ts +16 -16
- package/lib/datepicker/datepicker-core/datepicker-core.component.d.ts +41 -41
- package/lib/datepicker/datepicker-month/datepicker-month.component.d.ts +22 -22
- package/lib/datepicker/datepicker-tiles/datepicker-tiles.component.d.ts +31 -31
- package/lib/datepicker/datepicker.component.d.ts +89 -93
- package/lib/datepicker/datepicker.module.d.ts +16 -16
- package/lib/datepicker/pipes/date-to-str.pipe.d.ts +7 -7
- package/lib/datepicker/services/datepicker-utils.service.d.ts +32 -32
- package/lib/datepicker/services/mask-utils.service.d.ts +10 -10
- package/lib/field-slider/directives/numbers-only.directive.d.ts +10 -10
- package/lib/field-slider/field-slider.component.d.ts +34 -34
- package/lib/field-slider/field-slider.module.d.ts +12 -12
- package/lib/field-slider/pipes/replace.pipe.d.ts +7 -7
- package/lib/file-attach/directives/drag-and-drop.directive.d.ts +12 -12
- package/lib/file-attach/file-attach.component.d.ts +28 -28
- package/lib/file-attach/file-attach.module.d.ts +10 -10
- package/lib/filter-tags/filter-tag/filter-tag.component.d.ts +12 -12
- package/lib/filter-tags/filter-tags.component.d.ts +17 -17
- package/lib/filter-tags/filter-tags.module.d.ts +9 -9
- package/lib/footer/footer-bottom/footer-bottom.component.d.ts +16 -16
- package/lib/footer/footer-menu/footer-menu.component.d.ts +16 -16
- package/lib/footer/footer-top/footer-top.component.d.ts +11 -11
- package/lib/footer/footer.component.d.ts +10 -10
- package/lib/footer/footer.module.d.ts +11 -11
- package/lib/form-field/form-field.component.d.ts +19 -19
- package/lib/form-field/form-field.module.d.ts +12 -12
- package/lib/form-field/icon.directive.d.ts +6 -6
- package/lib/form-field/input.directive.d.ts +25 -25
- package/lib/form-field/label.directive.d.ts +6 -6
- package/lib/form-field/textarea.directive.d.ts +25 -25
- package/lib/header/header.component.d.ts +9 -9
- package/lib/header/header.module.d.ts +9 -9
- package/lib/header/logo.component.d.ts +8 -8
- package/lib/heading/breadcrumps/breadcrumps.component.d.ts +9 -11
- package/lib/heading/heading.component.d.ts +6 -9
- package/lib/heading/heading.module.d.ts +10 -10
- package/lib/heading/product-title/product-title.component.d.ts +9 -11
- package/lib/label/label.component.d.ts +8 -8
- package/lib/label/label.module.d.ts +8 -8
- package/lib/new-button/new-button.component.d.ts +59 -41
- package/lib/new-button/new-button.module.d.ts +8 -8
- package/lib/new-dropdown/new-dropdown.component.d.ts +45 -45
- package/lib/new-dropdown/new-dropdown.module.d.ts +11 -11
- package/lib/new-notifications/new-notifications.component.d.ts +30 -22
- package/lib/new-notifications/new-notifications.module.d.ts +8 -8
- package/lib/new-tooltip/new-tooltip.component.d.ts +11 -11
- package/lib/new-tooltip/new-tooltip.module.d.ts +9 -9
- package/lib/new-tooltip/services/domservice.service.d.ts +15 -15
- package/lib/new-tooltip/tooltip.directive.d.ts +48 -50
- package/lib/news-card/news-card.component.d.ts +6 -7
- package/lib/news-card/news-card.module.d.ts +8 -8
- package/lib/pagination/pagination.component.d.ts +40 -40
- package/lib/pagination/pagination.module.d.ts +9 -9
- package/lib/pop-up/pop-up.component.d.ts +9 -12
- package/lib/pop-up/pop-up.directive.d.ts +20 -15
- package/lib/pop-up/pop-up.module.d.ts +9 -9
- package/lib/radio-buttons/radio-buttons.component.d.ts +43 -26
- package/lib/radio-buttons/radio-buttons.module.d.ts +8 -8
- package/lib/search/highlight.pipe.d.ts +7 -7
- package/lib/search/search.component.d.ts +27 -27
- package/lib/search/search.module.d.ts +10 -10
- package/lib/select/option.component.d.ts +13 -13
- package/lib/select/select.component.d.ts +45 -45
- package/lib/select/select.module.d.ts +10 -10
- package/lib/sidebar/sidebar.component.d.ts +12 -12
- package/lib/sidebar/sidebar.module.d.ts +8 -8
- package/lib/slider/pipes/replace.pipe.d.ts +7 -7
- package/lib/slider/slider.component.d.ts +35 -35
- package/lib/slider/slider.module.d.ts +9 -9
- package/lib/spinner/spinner.component.d.ts +8 -8
- package/lib/spinner/spinner.module.d.ts +8 -8
- package/lib/table/table.component.d.ts +12 -12
- package/lib/table/table.model.d.ts +31 -31
- package/lib/table/table.module.d.ts +9 -9
- package/lib/table/table.pipe.d.ts +7 -7
- package/lib/tabs/tab.directive.d.ts +9 -9
- package/lib/tabs/tabs.component.d.ts +24 -24
- package/lib/tabs/tabs.module.d.ts +9 -9
- package/lib/tag-tab/tag-tab.component.d.ts +7 -7
- package/lib/tag-tab/tag-tab.module.d.ts +8 -8
- package/lib/visa/visa-item.component.d.ts +9 -9
- package/lib/visa/visa-span.directive.d.ts +11 -11
- package/lib/visa/visa.component.d.ts +8 -8
- package/lib/visa/visa.module.d.ts +10 -10
- package/lib/wizard/wizard-step.component.d.ts +17 -17
- package/lib/wizard/wizard.component.d.ts +22 -22
- package/lib/wizard/wizard.module.d.ts +9 -9
- package/package.json +1 -1
- package/public-api.d.ts +92 -101
- package/esm2020/lib/button/button.component.mjs +0 -28
- package/esm2020/lib/button/button.module.mjs +0 -18
- package/esm2020/lib/dropdown/dropdown.component.mjs +0 -99
- package/esm2020/lib/dropdown/dropdown.module.mjs +0 -19
- package/esm2020/lib/notifications/notifications.component.mjs +0 -23
- package/esm2020/lib/notifications/notifications.module.mjs +0 -18
- package/esm2020/lib/tooltip/tooltip.component.mjs +0 -24
- package/esm2020/lib/tooltip/tooltip.module.mjs +0 -18
- package/lib/button/button.component.d.ts +0 -12
- package/lib/button/button.module.d.ts +0 -8
- package/lib/dropdown/dropdown.component.d.ts +0 -42
- package/lib/dropdown/dropdown.module.d.ts +0 -9
- package/lib/notifications/notifications.component.d.ts +0 -15
- package/lib/notifications/notifications.module.d.ts +0 -8
- package/lib/tooltip/tooltip.component.d.ts +0 -11
- package/lib/tooltip/tooltip.module.d.ts +0 -8
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./footer-top/footer-top.component";
|
|
4
|
-
import * as i2 from "./footer-menu/footer-menu.component";
|
|
5
|
-
import * as i3 from "./footer-bottom/footer-bottom.component";
|
|
6
|
-
import * as i4 from "@angular/common";
|
|
7
|
-
export class FooterComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.hasContent = false;
|
|
10
|
-
}
|
|
11
|
-
ngOnInit() {
|
|
12
|
-
this.hasContent = !!this.content.nativeElement.innerHTML;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FooterComponent, selector: "aeb-footer", viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ElementRef, static: true }], ngImport: i0, 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>", 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%}}\n"], components: [{ type: i1.FooterTopComponent, selector: "aeb-footer-top", inputs: ["onlyPhone"] }, { type: i2.FooterMenuComponent, selector: "aeb-footer-menu", inputs: ["items"] }, { type: i3.FooterBottomComponent, selector: "aeb-footer-bottom", inputs: ["links"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'aeb-footer', encapsulation: ViewEncapsulation.None, 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>", 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%}}\n"] }]
|
|
20
|
-
}], ctorParameters: function () { return []; }, propDecorators: { content: [{
|
|
21
|
-
type: ViewChild,
|
|
22
|
-
args: ['content', { read: ElementRef, static: true }]
|
|
23
|
-
}] } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./footer-top/footer-top.component";
|
|
4
|
+
import * as i2 from "./footer-menu/footer-menu.component";
|
|
5
|
+
import * as i3 from "./footer-bottom/footer-bottom.component";
|
|
6
|
+
import * as i4 from "@angular/common";
|
|
7
|
+
export class FooterComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.hasContent = false;
|
|
10
|
+
}
|
|
11
|
+
ngOnInit() {
|
|
12
|
+
this.hasContent = !!this.content.nativeElement.innerHTML;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FooterComponent, selector: "aeb-footer", viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<footer class=\"aeb-footer\">\r\n <div #content class=\"aeb-footer__content\">\r\n <ng-content></ng-content>\r\n </div>\r\n</footer>\r\n\r\n<footer\r\n class=\"aeb-footer\"\r\n *ngIf=\"!hasContent\"\r\n>\r\n <div class=\"aeb-footer__content\">\r\n <aeb-footer-top></aeb-footer-top>\r\n <aeb-footer-menu></aeb-footer-menu>\r\n <aeb-footer-bottom></aeb-footer-bottom>\r\n </div>\r\n</footer>", 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%}}\n"], components: [{ type: i1.FooterTopComponent, selector: "aeb-footer-top", inputs: ["onlyPhone"] }, { type: i2.FooterMenuComponent, selector: "aeb-footer-menu", inputs: ["items"] }, { type: i3.FooterBottomComponent, selector: "aeb-footer-bottom", inputs: ["links"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: 'aeb-footer', encapsulation: ViewEncapsulation.None, template: "<footer class=\"aeb-footer\">\r\n <div #content class=\"aeb-footer__content\">\r\n <ng-content></ng-content>\r\n </div>\r\n</footer>\r\n\r\n<footer\r\n class=\"aeb-footer\"\r\n *ngIf=\"!hasContent\"\r\n>\r\n <div class=\"aeb-footer__content\">\r\n <aeb-footer-top></aeb-footer-top>\r\n <aeb-footer-menu></aeb-footer-menu>\r\n <aeb-footer-bottom></aeb-footer-bottom>\r\n </div>\r\n</footer>", 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%}}\n"] }]
|
|
20
|
+
}], ctorParameters: function () { return []; }, propDecorators: { content: [{
|
|
21
|
+
type: ViewChild,
|
|
22
|
+
args: ['content', { read: ElementRef, static: true }]
|
|
23
|
+
}] } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vdGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FlYi11aS1raXQvc3JjL2xpYi9mb290ZXIvZm9vdGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2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
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FooterComponent } from './footer.component';
|
|
4
|
-
import { FooterTopComponent } from './footer-top/footer-top.component';
|
|
5
|
-
import { FooterMenuComponent } from './footer-menu/footer-menu.component';
|
|
6
|
-
import { FooterBottomComponent } from './footer-bottom/footer-bottom.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export class FooterModule {
|
|
9
|
-
}
|
|
10
|
-
FooterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
-
FooterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, declarations: [FooterComponent, FooterTopComponent, FooterMenuComponent, FooterBottomComponent], imports: [CommonModule], exports: [FooterComponent,
|
|
12
|
-
FooterTopComponent,
|
|
13
|
-
FooterMenuComponent,
|
|
14
|
-
FooterBottomComponent] });
|
|
15
|
-
FooterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, imports: [[
|
|
16
|
-
CommonModule
|
|
17
|
-
]] });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, decorators: [{
|
|
19
|
-
type: NgModule,
|
|
20
|
-
args: [{
|
|
21
|
-
declarations: [FooterComponent, FooterTopComponent, FooterMenuComponent, FooterBottomComponent],
|
|
22
|
-
imports: [
|
|
23
|
-
CommonModule
|
|
24
|
-
],
|
|
25
|
-
exports: [
|
|
26
|
-
FooterComponent,
|
|
27
|
-
FooterTopComponent,
|
|
28
|
-
FooterMenuComponent,
|
|
29
|
-
FooterBottomComponent
|
|
30
|
-
]
|
|
31
|
-
}]
|
|
32
|
-
}] });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FooterComponent } from './footer.component';
|
|
4
|
+
import { FooterTopComponent } from './footer-top/footer-top.component';
|
|
5
|
+
import { FooterMenuComponent } from './footer-menu/footer-menu.component';
|
|
6
|
+
import { FooterBottomComponent } from './footer-bottom/footer-bottom.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class FooterModule {
|
|
9
|
+
}
|
|
10
|
+
FooterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
FooterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, declarations: [FooterComponent, FooterTopComponent, FooterMenuComponent, FooterBottomComponent], imports: [CommonModule], exports: [FooterComponent,
|
|
12
|
+
FooterTopComponent,
|
|
13
|
+
FooterMenuComponent,
|
|
14
|
+
FooterBottomComponent] });
|
|
15
|
+
FooterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, imports: [[
|
|
16
|
+
CommonModule
|
|
17
|
+
]] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FooterModule, decorators: [{
|
|
19
|
+
type: NgModule,
|
|
20
|
+
args: [{
|
|
21
|
+
declarations: [FooterComponent, FooterTopComponent, FooterMenuComponent, FooterBottomComponent],
|
|
22
|
+
imports: [
|
|
23
|
+
CommonModule
|
|
24
|
+
],
|
|
25
|
+
exports: [
|
|
26
|
+
FooterComponent,
|
|
27
|
+
FooterTopComponent,
|
|
28
|
+
FooterMenuComponent,
|
|
29
|
+
FooterBottomComponent
|
|
30
|
+
]
|
|
31
|
+
}]
|
|
32
|
+
}] });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base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W1CO3dCQUNuQixxQkFBcUI7cUJBQ3RCO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcclxuaW1wb3J0IHsgRm9vdGVyQ29tcG9uZW50IH0gZnJvbSAnLi9mb290ZXIuY29tcG9uZW50JztcclxuaW1wb3J0IHsgRm9vdGVyVG9wQ29tcG9uZW50IH0gZnJvbSAnLi9mb290ZXItdG9wL2Zvb3Rlci10b3AuY29tcG9uZW50JztcclxuaW1wb3J0IHsgRm9vdGVyTWVudUNvbXBvbmVudCB9IGZyb20gJy4vZm9vdGVyLW1lbnUvZm9vdGVyLW1lbnUuY29tcG9uZW50JztcclxuaW1wb3J0IHsgRm9vdGVyQm90dG9tQ29tcG9uZW50IH0gZnJvbSAnLi9mb290ZXItYm90dG9tL2Zvb3Rlci1ib3R0b20uY29tcG9uZW50JztcclxuXHJcblxyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtGb290ZXJDb21wb25lbnQsIEZvb3RlclRvcENvbXBvbmVudCwgRm9vdGVyTWVudUNvbXBvbmVudCwgRm9vdGVyQm90dG9tQ29tcG9uZW50XSxcclxuICBpbXBvcnRzOiBbXHJcbiAgICBDb21tb25Nb2R1bGVcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtcclxuICAgIEZvb3RlckNvbXBvbmVudCxcclxuICAgIEZvb3RlclRvcENvbXBvbmVudCxcclxuICAgIEZvb3Rlck1lbnVDb21wb25lbnQsXHJcbiAgICBGb290ZXJCb3R0b21Db21wb25lbnRcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBGb290ZXJNb2R1bGUgeyB9XHJcbiJdfQ==
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, HostBinding, ContentChild, Input, } from '@angular/core';
|
|
2
|
-
import { InputDirective } from './input.directive';
|
|
3
|
-
import { TextareaDirective } from './textarea.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class FormFieldComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.center = false;
|
|
8
|
-
}
|
|
9
|
-
get focused() {
|
|
10
|
-
if (this.input)
|
|
11
|
-
return this.input.isFocused;
|
|
12
|
-
else
|
|
13
|
-
return this.textarea.isFocused;
|
|
14
|
-
}
|
|
15
|
-
get svoi() {
|
|
16
|
-
return this.cssMod === 'svoi';
|
|
17
|
-
}
|
|
18
|
-
get hasValue() {
|
|
19
|
-
if (this.input) {
|
|
20
|
-
if (this.input.ngControl) {
|
|
21
|
-
return Boolean(this.input.ngControl.value);
|
|
22
|
-
}
|
|
23
|
-
return this.input.isHasValue;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
if (this.textarea.ngControl) {
|
|
27
|
-
return Boolean(this.textarea.ngControl.value);
|
|
28
|
-
}
|
|
29
|
-
return this.textarea.isHasValue;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
get error() {
|
|
33
|
-
if (this.onError) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
if (this.input) {
|
|
37
|
-
if (this.input.ngControl) {
|
|
38
|
-
return this.input.ngControl.invalid && this.input.ngControl.touched;
|
|
39
|
-
}
|
|
40
|
-
return this.input.error;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
if (this.textarea.ngControl) {
|
|
44
|
-
return this.textarea.ngControl.invalid && this.textarea.ngControl.touched;
|
|
45
|
-
}
|
|
46
|
-
return this.textarea.error;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
ngOnInit() { }
|
|
50
|
-
}
|
|
51
|
-
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
-
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormFieldComponent, selector: "aeb-form-field", inputs: { center: "center", onError: "onError", cssMod: "cssMod" }, host: { properties: { "class.center": "this.center", "class.focused": "this.focused", "class.aeb-form-field--svoi": "this.svoi", "class.has-value": "this.hasValue", "class.error": "this.error" }, classAttribute: "aeb-form-field" }, queries: [{ propertyName: "input", first: true, predicate: InputDirective, descendants: true }, { propertyName: "textarea", first: true, predicate: TextareaDirective, descendants: true }], ngImport: i0, 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", 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;color:var(--darkblue)}.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-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{-moz-appearance:textfield}.aeb-form-field .aeb-input::-webkit-input-placeholder{font-family:Roboto}.aeb-form-field .aeb-input::-webkit-datetime-edit{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 cubic-bezier(.4,0,.2,1) .2s}.aeb-form-field.focused .aeb-input{border-color:#2f88f0}.aeb-form-field.focused .aeb-label{transform:translateY(calc(var(--input-height) / -2 - 50%));font-size:12px;color:#2f88f0}.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))}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
54
|
-
type: Component,
|
|
55
|
-
args: [{ selector: 'aeb-form-field', encapsulation: ViewEncapsulation.None, host: {
|
|
56
|
-
class: 'aeb-form-field',
|
|
57
|
-
}, 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", 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;color:var(--darkblue)}.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-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{-moz-appearance:textfield}.aeb-form-field .aeb-input::-webkit-input-placeholder{font-family:Roboto}.aeb-form-field .aeb-input::-webkit-datetime-edit{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 cubic-bezier(.4,0,.2,1) .2s}.aeb-form-field.focused .aeb-input{border-color:#2f88f0}.aeb-form-field.focused .aeb-label{transform:translateY(calc(var(--input-height) / -2 - 50%));font-size:12px;color:#2f88f0}.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))}\n"] }]
|
|
58
|
-
}], ctorParameters: function () { return []; }, propDecorators: { input: [{
|
|
59
|
-
type: ContentChild,
|
|
60
|
-
args: [InputDirective]
|
|
61
|
-
}], textarea: [{
|
|
62
|
-
type: ContentChild,
|
|
63
|
-
args: [TextareaDirective]
|
|
64
|
-
}], center: [{
|
|
65
|
-
type: HostBinding,
|
|
66
|
-
args: ['class.center']
|
|
67
|
-
}, {
|
|
68
|
-
type: Input
|
|
69
|
-
}], onError: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], cssMod: [{
|
|
72
|
-
type: Input,
|
|
73
|
-
args: ['cssMod']
|
|
74
|
-
}], focused: [{
|
|
75
|
-
type: HostBinding,
|
|
76
|
-
args: ['class.focused']
|
|
77
|
-
}], svoi: [{
|
|
78
|
-
type: HostBinding,
|
|
79
|
-
args: ['class.aeb-form-field--svoi']
|
|
80
|
-
}], hasValue: [{
|
|
81
|
-
type: HostBinding,
|
|
82
|
-
args: ['class.has-value']
|
|
83
|
-
}], error: [{
|
|
84
|
-
type: HostBinding,
|
|
85
|
-
args: ['class.error']
|
|
86
|
-
}] } });
|
|
87
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ViewEncapsulation, HostBinding, ContentChild, Input, } from '@angular/core';
|
|
2
|
+
import { InputDirective } from './input.directive';
|
|
3
|
+
import { TextareaDirective } from './textarea.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class FormFieldComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.center = false;
|
|
8
|
+
}
|
|
9
|
+
get focused() {
|
|
10
|
+
if (this.input)
|
|
11
|
+
return this.input.isFocused;
|
|
12
|
+
else
|
|
13
|
+
return this.textarea.isFocused;
|
|
14
|
+
}
|
|
15
|
+
get svoi() {
|
|
16
|
+
return this.cssMod === 'svoi';
|
|
17
|
+
}
|
|
18
|
+
get hasValue() {
|
|
19
|
+
if (this.input) {
|
|
20
|
+
if (this.input.ngControl) {
|
|
21
|
+
return Boolean(this.input.ngControl.value);
|
|
22
|
+
}
|
|
23
|
+
return this.input.isHasValue;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
if (this.textarea.ngControl) {
|
|
27
|
+
return Boolean(this.textarea.ngControl.value);
|
|
28
|
+
}
|
|
29
|
+
return this.textarea.isHasValue;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
get error() {
|
|
33
|
+
if (this.onError) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (this.input) {
|
|
37
|
+
if (this.input.ngControl) {
|
|
38
|
+
return this.input.ngControl.invalid && this.input.ngControl.touched;
|
|
39
|
+
}
|
|
40
|
+
return this.input.error;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
if (this.textarea.ngControl) {
|
|
44
|
+
return this.textarea.ngControl.invalid && this.textarea.ngControl.touched;
|
|
45
|
+
}
|
|
46
|
+
return this.textarea.error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
ngOnInit() { }
|
|
50
|
+
}
|
|
51
|
+
FormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
+
FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormFieldComponent, selector: "aeb-form-field", inputs: { center: "center", onError: "onError", cssMod: "cssMod" }, host: { properties: { "class.center": "this.center", "class.focused": "this.focused", "class.aeb-form-field--svoi": "this.svoi", "class.has-value": "this.hasValue", "class.error": "this.error" }, classAttribute: "aeb-form-field" }, queries: [{ propertyName: "input", first: true, predicate: InputDirective, descendants: true }, { propertyName: "textarea", first: true, predicate: TextareaDirective, descendants: true }], ngImport: i0, template: "<ng-content></ng-content>\r\n\r\n<div class=\"aeb-label\">\r\n <ng-content select=\"aeb-label\"></ng-content>\r\n</div>\r\n\r\n<div class=\"aeb-icon\">\r\n <ng-content select=\"aeb-icon\"></ng-content>\r\n</div>\r\n", 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;color:var(--darkblue)}.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-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{-moz-appearance:textfield}.aeb-form-field .aeb-input::-webkit-input-placeholder{font-family:Roboto}.aeb-form-field .aeb-input::-webkit-datetime-edit{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 cubic-bezier(.4,0,.2,1) .2s}.aeb-form-field.focused .aeb-input{border-color:#2f88f0}.aeb-form-field.focused .aeb-label{transform:translateY(calc(var(--input-height) / -2 - 50%));font-size:12px;color:#2f88f0}.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))}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
54
|
+
type: Component,
|
|
55
|
+
args: [{ selector: 'aeb-form-field', encapsulation: ViewEncapsulation.None, host: {
|
|
56
|
+
class: 'aeb-form-field',
|
|
57
|
+
}, template: "<ng-content></ng-content>\r\n\r\n<div class=\"aeb-label\">\r\n <ng-content select=\"aeb-label\"></ng-content>\r\n</div>\r\n\r\n<div class=\"aeb-icon\">\r\n <ng-content select=\"aeb-icon\"></ng-content>\r\n</div>\r\n", 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;color:var(--darkblue)}.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-contacts-auto-fill-button,.aeb-form-field .aeb-input::-webkit-caps-lock-indicator,.aeb-form-field .aeb-input::-webkit-credentials-auto-fill-button{visibility:hidden}.aeb-form-field .aeb-input::-webkit-outer-spin-button,.aeb-form-field .aeb-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.aeb-form-field .aeb-input[type=number]{-moz-appearance:textfield}.aeb-form-field .aeb-input::-webkit-input-placeholder{font-family:Roboto}.aeb-form-field .aeb-input::-webkit-datetime-edit{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 cubic-bezier(.4,0,.2,1) .2s}.aeb-form-field.focused .aeb-input{border-color:#2f88f0}.aeb-form-field.focused .aeb-label{transform:translateY(calc(var(--input-height) / -2 - 50%));font-size:12px;color:#2f88f0}.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))}\n"] }]
|
|
58
|
+
}], ctorParameters: function () { return []; }, propDecorators: { input: [{
|
|
59
|
+
type: ContentChild,
|
|
60
|
+
args: [InputDirective]
|
|
61
|
+
}], textarea: [{
|
|
62
|
+
type: ContentChild,
|
|
63
|
+
args: [TextareaDirective]
|
|
64
|
+
}], center: [{
|
|
65
|
+
type: HostBinding,
|
|
66
|
+
args: ['class.center']
|
|
67
|
+
}, {
|
|
68
|
+
type: Input
|
|
69
|
+
}], onError: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], cssMod: [{
|
|
72
|
+
type: Input,
|
|
73
|
+
args: ['cssMod']
|
|
74
|
+
}], focused: [{
|
|
75
|
+
type: HostBinding,
|
|
76
|
+
args: ['class.focused']
|
|
77
|
+
}], svoi: [{
|
|
78
|
+
type: HostBinding,
|
|
79
|
+
args: ['class.aeb-form-field--svoi']
|
|
80
|
+
}], hasValue: [{
|
|
81
|
+
type: HostBinding,
|
|
82
|
+
args: ['class.has-value']
|
|
83
|
+
}], error: [{
|
|
84
|
+
type: HostBinding,
|
|
85
|
+
args: ['class.error']
|
|
86
|
+
}] } });
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvZm9ybS1maWVsZC9mb3JtLWZpZWxkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FlYi11aS1raXQvc3JjL2xpYi9mb3JtLWZpZWxkL2Zvcm0tZmllbGQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFFVCxpQkFBaUIsRUFDakIsV0FBVyxFQUNYLFlBQVksRUFDWixLQUFLLEdBQ04sTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDOztBQVd6RCxNQUFNLE9BQU8sa0JBQWtCO0lBWTdCO1FBTkEsV0FBTSxHQUFhLEtBQUssQ0FBQztJQU1WLENBQUM7SUFFaEIsSUFDSSxPQUFPO1FBQ1QsSUFBSSxJQUFJLENBQUMsS0FBSztZQUFFLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxTQUFTLENBQUM7O1lBQ3ZDLE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQyxTQUFTLENBQUM7SUFDdEMsQ0FBQztJQUVELElBQ0ksSUFBSTtRQUNOLE9BQU8sSUFBSSxDQUFDLE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cmV0dXJuIHRoaXMuaW5wdXQubmdDb250cm9sLmludmFsaWQgJiYgdGhpcy5pbnB1dC5uZ0NvbnRyb2wudG91Y2hlZDtcclxuICAgICAgfVxyXG4gICAgICByZXR1cm4gdGhpcy5pbnB1dC5lcnJvcjtcclxuICAgIH1cclxuICAgIGVsc2Uge1xyXG4gICAgICBpZiAodGhpcy50ZXh0YXJlYS5uZ0NvbnRyb2wpIHtcclxuICAgICAgICByZXR1cm4gdGhpcy50ZXh0YXJlYS5uZ0NvbnRyb2wuaW52YWxpZCAmJiB0aGlzLnRleHRhcmVhLm5nQ29udHJvbC50b3VjaGVkO1xyXG4gICAgICB9XHJcbiAgICAgIHJldHVybiB0aGlzLnRleHRhcmVhLmVycm9yO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7fVxyXG59XHJcbiIsIjxuZy1jb250ZW50PjwvbmctY29udGVudD5cclxuXHJcbjxkaXYgY2xhc3M9XCJhZWItbGFiZWxcIj5cclxuICA8bmctY29udGVudCBzZWxlY3Q9XCJhZWItbGFiZWxcIj48L25nLWNvbnRlbnQ+XHJcbjwvZGl2PlxyXG5cclxuPGRpdiBjbGFzcz1cImFlYi1pY29uXCI+XHJcbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiYWViLWljb25cIj48L25nLWNvbnRlbnQ+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormFieldComponent } from './form-field.component';
|
|
4
|
-
import { LabelDirective } from './label.directive';
|
|
5
|
-
import { InputDirective } from './input.directive';
|
|
6
|
-
import { TextareaDirective } from './textarea.directive';
|
|
7
|
-
import { IconDirective } from './icon.directive';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export class FormFieldModule {
|
|
10
|
-
}
|
|
11
|
-
FormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
-
FormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, declarations: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective], imports: [CommonModule], exports: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective] });
|
|
13
|
-
FormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, imports: [[CommonModule]] });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, decorators: [{
|
|
15
|
-
type: NgModule,
|
|
16
|
-
args: [{
|
|
17
|
-
declarations: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective],
|
|
18
|
-
imports: [CommonModule],
|
|
19
|
-
exports: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective],
|
|
20
|
-
}]
|
|
21
|
-
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormFieldComponent } from './form-field.component';
|
|
4
|
+
import { LabelDirective } from './label.directive';
|
|
5
|
+
import { InputDirective } from './input.directive';
|
|
6
|
+
import { TextareaDirective } from './textarea.directive';
|
|
7
|
+
import { IconDirective } from './icon.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export class FormFieldModule {
|
|
10
|
+
}
|
|
11
|
+
FormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
+
FormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, declarations: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective], imports: [CommonModule], exports: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective] });
|
|
13
|
+
FormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, imports: [[CommonModule]] });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormFieldModule, decorators: [{
|
|
15
|
+
type: NgModule,
|
|
16
|
+
args: [{
|
|
17
|
+
declarations: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective],
|
|
18
|
+
imports: [CommonModule],
|
|
19
|
+
exports: [FormFieldComponent, LabelDirective, InputDirective, TextareaDirective, IconDirective],
|
|
20
|
+
}]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvZm9ybS1maWVsZC9mb3JtLWZpZWxkLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM1RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFFLGNBQWMsRUFBRSx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lucHV0LmRpcmVjdGl2ZSc7XHJcbmltcG9ydCB7IFRleHRhcmVhRGlyZWN0aXZlIH0gZnJvbSAnLi90ZXh0YXJlYS5kaXJlY3RpdmUnO1xyXG5pbXBvcnQgeyBJY29uRGlyZWN0aXZlIH0gZnJvbSAnLi9pY29uLmRpcmVjdGl2ZSc7XHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGRlY2xhcmF0aW9uczogW0Zvcm1GaWVsZENvbXBvbmVudCwgTGFiZWxEaXJlY3RpdmUsIElucHV0RGlyZWN0aXZlLCBUZXh0YXJlYURpcmVjdGl2ZSwgSWNvbkRpcmVjdGl2ZV0sXHJcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXHJcbiAgZXhwb3J0czogW0Zvcm1GaWVsZENvbXBvbmVudCwgTGFiZWxEaXJlY3RpdmUsIElucHV0RGlyZWN0aXZlLCBUZXh0YXJlYURpcmVjdGl2ZSwgSWNvbkRpcmVjdGl2ZV0sXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBGb3JtRmllbGRNb2R1bGUge31cclxuIl19
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class IconDirective {
|
|
4
|
-
constructor() { }
|
|
5
|
-
}
|
|
6
|
-
IconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7
|
-
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: IconDirective, selector: "aeb-icon", ngImport: i0 });
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconDirective, decorators: [{
|
|
9
|
-
type: Directive,
|
|
10
|
-
args: [{
|
|
11
|
-
selector: 'aeb-icon',
|
|
12
|
-
}]
|
|
13
|
-
}], ctorParameters: function () { return []; } });
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class IconDirective {
|
|
4
|
+
constructor() { }
|
|
5
|
+
}
|
|
6
|
+
IconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7
|
+
IconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: IconDirective, selector: "aeb-icon", ngImport: i0 });
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconDirective, decorators: [{
|
|
9
|
+
type: Directive,
|
|
10
|
+
args: [{
|
|
11
|
+
selector: 'aeb-icon',
|
|
12
|
+
}]
|
|
13
|
+
}], ctorParameters: function () { return []; } });
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvZm9ybS1maWVsZC9pY29uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUsxQyxNQUFNLE9BQU8sYUFBYTtJQUN4QixnQkFBZSxDQUFDOzsyR0FETCxhQUFhOytGQUFiLGFBQWE7NEZBQWIsYUFBYTtrQkFIekIsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsVUFBVTtpQkFDckIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBEaXJlY3RpdmUoe1xyXG4gIHNlbGVjdG9yOiAnYWViLWljb24nLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgSWNvbkRpcmVjdGl2ZSB7XHJcbiAgY29uc3RydWN0b3IoKSB7fVxyXG59XHJcbiJdfQ==
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { Directive, HostListener, Optional, Self, HostBinding, Input, } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/forms";
|
|
4
|
-
class MatInputBase {
|
|
5
|
-
constructor(_parentForm, _parentFormGroup, ngControl) {
|
|
6
|
-
this._parentForm = _parentForm;
|
|
7
|
-
this._parentFormGroup = _parentFormGroup;
|
|
8
|
-
this.ngControl = ngControl;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export class InputDirective extends MatInputBase {
|
|
12
|
-
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
13
|
-
super(_parentForm, _parentFormGroup, ngControl);
|
|
14
|
-
this.ngControl = ngControl;
|
|
15
|
-
this.error = false;
|
|
16
|
-
this._value = '';
|
|
17
|
-
}
|
|
18
|
-
set value(value) {
|
|
19
|
-
this.isHasValue = Boolean(value);
|
|
20
|
-
this._value = value;
|
|
21
|
-
}
|
|
22
|
-
;
|
|
23
|
-
get value() {
|
|
24
|
-
return this._value;
|
|
25
|
-
}
|
|
26
|
-
change(value) {
|
|
27
|
-
this.value = value;
|
|
28
|
-
}
|
|
29
|
-
focus() {
|
|
30
|
-
this.isFocused = true;
|
|
31
|
-
}
|
|
32
|
-
blur() {
|
|
33
|
-
this.isFocused = false;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
InputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
37
|
-
InputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: InputDirective, selector: "input[aebInput]", inputs: { value: "value" }, host: { listeners: { "input": "change($event.target.value)", "focus": "focus()", "blur": "blur()" }, properties: { "attr.error": "this.error" }, classAttribute: "aeb-input" }, usesInheritance: true, ngImport: i0 });
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputDirective, decorators: [{
|
|
39
|
-
type: Directive,
|
|
40
|
-
args: [{
|
|
41
|
-
selector: 'input[aebInput]',
|
|
42
|
-
host: {
|
|
43
|
-
class: 'aeb-input',
|
|
44
|
-
},
|
|
45
|
-
}]
|
|
46
|
-
}], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
|
|
47
|
-
type: Optional
|
|
48
|
-
}, {
|
|
49
|
-
type: Self
|
|
50
|
-
}] }, { type: i1.NgForm, decorators: [{
|
|
51
|
-
type: Optional
|
|
52
|
-
}] }, { type: i1.FormGroupDirective, decorators: [{
|
|
53
|
-
type: Optional
|
|
54
|
-
}] }]; }, propDecorators: { error: [{
|
|
55
|
-
type: HostBinding,
|
|
56
|
-
args: ['attr.error']
|
|
57
|
-
}], value: [{
|
|
58
|
-
type: Input
|
|
59
|
-
}], change: [{
|
|
60
|
-
type: HostListener,
|
|
61
|
-
args: ['input', ['$event.target.value']]
|
|
62
|
-
}], focus: [{
|
|
63
|
-
type: HostListener,
|
|
64
|
-
args: ['focus']
|
|
65
|
-
}], blur: [{
|
|
66
|
-
type: HostListener,
|
|
67
|
-
args: ['blur']
|
|
68
|
-
}] } });
|
|
69
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive, HostListener, Optional, Self, HostBinding, Input, } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
class MatInputBase {
|
|
5
|
+
constructor(_parentForm, _parentFormGroup, ngControl) {
|
|
6
|
+
this._parentForm = _parentForm;
|
|
7
|
+
this._parentFormGroup = _parentFormGroup;
|
|
8
|
+
this.ngControl = ngControl;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class InputDirective extends MatInputBase {
|
|
12
|
+
constructor(ngControl, _parentForm, _parentFormGroup) {
|
|
13
|
+
super(_parentForm, _parentFormGroup, ngControl);
|
|
14
|
+
this.ngControl = ngControl;
|
|
15
|
+
this.error = false;
|
|
16
|
+
this._value = '';
|
|
17
|
+
}
|
|
18
|
+
set value(value) {
|
|
19
|
+
this.isHasValue = Boolean(value);
|
|
20
|
+
this._value = value;
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
get value() {
|
|
24
|
+
return this._value;
|
|
25
|
+
}
|
|
26
|
+
change(value) {
|
|
27
|
+
this.value = value;
|
|
28
|
+
}
|
|
29
|
+
focus() {
|
|
30
|
+
this.isFocused = true;
|
|
31
|
+
}
|
|
32
|
+
blur() {
|
|
33
|
+
this.isFocused = false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
InputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
37
|
+
InputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: InputDirective, selector: "input[aebInput]", inputs: { value: "value" }, host: { listeners: { "input": "change($event.target.value)", "focus": "focus()", "blur": "blur()" }, properties: { "attr.error": "this.error" }, classAttribute: "aeb-input" }, usesInheritance: true, ngImport: i0 });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InputDirective, decorators: [{
|
|
39
|
+
type: Directive,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: 'input[aebInput]',
|
|
42
|
+
host: {
|
|
43
|
+
class: 'aeb-input',
|
|
44
|
+
},
|
|
45
|
+
}]
|
|
46
|
+
}], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
|
|
47
|
+
type: Optional
|
|
48
|
+
}, {
|
|
49
|
+
type: Self
|
|
50
|
+
}] }, { type: i1.NgForm, decorators: [{
|
|
51
|
+
type: Optional
|
|
52
|
+
}] }, { type: i1.FormGroupDirective, decorators: [{
|
|
53
|
+
type: Optional
|
|
54
|
+
}] }]; }, propDecorators: { error: [{
|
|
55
|
+
type: HostBinding,
|
|
56
|
+
args: ['attr.error']
|
|
57
|
+
}], value: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], change: [{
|
|
60
|
+
type: HostListener,
|
|
61
|
+
args: ['input', ['$event.target.value']]
|
|
62
|
+
}], focus: [{
|
|
63
|
+
type: HostListener,
|
|
64
|
+
args: ['focus']
|
|
65
|
+
}], blur: [{
|
|
66
|
+
type: HostListener,
|
|
67
|
+
args: ['blur']
|
|
68
|
+
}] } });
|
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL2Zvcm0tZmllbGQvaW5wdXQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFFBQVEsRUFDUixJQUFJLEVBQ0osV0FBVyxFQUNYLEtBQUssR0FDTixNQUFNLGVBQWUsQ0FBQzs7O0FBR3ZCLE1BQU0sWUFBWTtJQUNoQixZQUNTLFdBQW1CLEVBQ25CLGdCQUFvQyxFQUNwQyxTQUFvQjtRQUZwQ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