aeb-ui-kit 1.0.0 → 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 -373
- 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 -167
- 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 -4492
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +4310 -4493
- 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 -89
- 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 -35
- 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 +4 -4
- package/public-api.d.ts +92 -101
- package/styles.css +3 -3
- 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,30 +1,30 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "./table.pipe";
|
|
5
|
-
export class TableComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.action = new EventEmitter();
|
|
8
|
-
}
|
|
9
|
-
ngOnInit() { }
|
|
10
|
-
onRowActionClicked(actionType, id) {
|
|
11
|
-
const userAction = {
|
|
12
|
-
actionToPerform: actionType,
|
|
13
|
-
id,
|
|
14
|
-
};
|
|
15
|
-
this.action.emit(userAction);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TableComponent, selector: "aeb-table", inputs: { tableConfig: "tableConfig", tableContent: "tableContent" }, outputs: { action: "action" }, ngImport: i0, template: "<table class=\"table\">\n <thead>\n <tr>\n <th\n align=\"{{ columnHead.align || 'left' }}\"\n class=\"table-title\"\
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableComponent, decorators: [{
|
|
21
|
-
type: Component,
|
|
22
|
-
args: [{ selector: 'aeb-table', template: "<table class=\"table\">\n <thead>\n <tr>\n <th\n align=\"{{ columnHead.align || 'left' }}\"\n class=\"table-title\"\
|
|
23
|
-
}], propDecorators: { tableConfig: [{
|
|
24
|
-
type: Input
|
|
25
|
-
}], tableContent: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], action: [{
|
|
28
|
-
type: Output
|
|
29
|
-
}] } });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "./table.pipe";
|
|
5
|
+
export class TableComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.action = new EventEmitter();
|
|
8
|
+
}
|
|
9
|
+
ngOnInit() { }
|
|
10
|
+
onRowActionClicked(actionType, id) {
|
|
11
|
+
const userAction = {
|
|
12
|
+
actionToPerform: actionType,
|
|
13
|
+
id,
|
|
14
|
+
};
|
|
15
|
+
this.action.emit(userAction);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TableComponent, selector: "aeb-table", inputs: { tableConfig: "tableConfig", tableContent: "tableContent" }, outputs: { action: "action" }, ngImport: i0, template: "<table class=\"table\">\r\n <thead>\r\n <tr>\r\n <th\r\n *ngFor=\"let columnHead of tableConfig.columns\"\r\n align=\"{{ columnHead.align || 'left' }}\"\r\n class=\"table-title\"\r\n >\r\n {{ columnHead.title }}\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let columnData of tableContent\">\r\n <td\r\n *ngFor=\"let columnHead of tableConfig.columns\"\r\n align=\"{{ columnHead.align || 'left' }}\"\r\n >\r\n <div [ngSwitch]=\"columnHead.dataField\">\r\n <div *ngSwitchCase=\"'ROW_ACTION'\">\r\n <div class=\"table-action\">\r\n <div *ngFor=\"let action of tableConfig.rowActions\">\r\n <img\r\n src=\"{{ action.logoImageUrl }}\"\r\n (click)=\"\r\n onRowActionClicked(action.actionToPerform, columnData.id)\r\n \"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngSwitchCase=\"'STATUS'\">\r\n <div [ngSwitch]=\"columnData[columnHead.dataProperty]\">\r\n <ng-container\r\n *ngFor=\"let status of tableConfig.status; let i = index\"\r\n >\r\n <div\r\n (click)=\"\r\n onRowActionClicked(\r\n columnHead.action || 'SHOW',\r\n columnData.id\r\n )\r\n \"\r\n class=\"table-status\"\r\n [style.color]=\"status.color\"\r\n *ngSwitchCase=\"i\"\r\n >\r\n <img src=\"{{ status.iconUrl }}\" />\r\n <span>{{ status.label }}</span>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div\r\n *ngSwitchDefault\r\n (click)=\"\r\n onRowActionClicked(columnHead.action || 'SHOW', columnData.id)\r\n \"\r\n [innerHTML]=\"\r\n columnData[columnHead.dataProperty]\r\n | formatTable\r\n : columnHead.format?.type\r\n : columnHead.format?.placeholder\r\n : columnHead.format?.local\r\n \"\r\n ></div>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n", styles: [".table{width:100%}.table-title{padding:16px 0;color:var(--primary-gray);font-size:14px;font-style:normal;font-weight:400;line-height:16px}.table tr td{padding:16px 0;border-top:1px solid var(--secondary-light-gray);color:var(--primary-dark);cursor:pointer;font-size:16px;font-style:normal;font-weight:400;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}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "formatTable": i2.FormatTablePipe } });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'aeb-table', template: "<table class=\"table\">\r\n <thead>\r\n <tr>\r\n <th\r\n *ngFor=\"let columnHead of tableConfig.columns\"\r\n align=\"{{ columnHead.align || 'left' }}\"\r\n class=\"table-title\"\r\n >\r\n {{ columnHead.title }}\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let columnData of tableContent\">\r\n <td\r\n *ngFor=\"let columnHead of tableConfig.columns\"\r\n align=\"{{ columnHead.align || 'left' }}\"\r\n >\r\n <div [ngSwitch]=\"columnHead.dataField\">\r\n <div *ngSwitchCase=\"'ROW_ACTION'\">\r\n <div class=\"table-action\">\r\n <div *ngFor=\"let action of tableConfig.rowActions\">\r\n <img\r\n src=\"{{ action.logoImageUrl }}\"\r\n (click)=\"\r\n onRowActionClicked(action.actionToPerform, columnData.id)\r\n \"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngSwitchCase=\"'STATUS'\">\r\n <div [ngSwitch]=\"columnData[columnHead.dataProperty]\">\r\n <ng-container\r\n *ngFor=\"let status of tableConfig.status; let i = index\"\r\n >\r\n <div\r\n (click)=\"\r\n onRowActionClicked(\r\n columnHead.action || 'SHOW',\r\n columnData.id\r\n )\r\n \"\r\n class=\"table-status\"\r\n [style.color]=\"status.color\"\r\n *ngSwitchCase=\"i\"\r\n >\r\n <img src=\"{{ status.iconUrl }}\" />\r\n <span>{{ status.label }}</span>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div\r\n *ngSwitchDefault\r\n (click)=\"\r\n onRowActionClicked(columnHead.action || 'SHOW', columnData.id)\r\n \"\r\n [innerHTML]=\"\r\n columnData[columnHead.dataProperty]\r\n | formatTable\r\n : columnHead.format?.type\r\n : columnHead.format?.placeholder\r\n : columnHead.format?.local\r\n \"\r\n ></div>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n", styles: [".table{width:100%}.table-title{padding:16px 0;color:var(--primary-gray);font-size:14px;font-style:normal;font-weight:400;line-height:16px}.table tr td{padding:16px 0;border-top:1px solid var(--secondary-light-gray);color:var(--primary-dark);cursor:pointer;font-size:16px;font-style:normal;font-weight:400;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}\n"] }]
|
|
23
|
+
}], propDecorators: { tableConfig: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], tableContent: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], action: [{
|
|
28
|
+
type: Output
|
|
29
|
+
}] } });
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4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xuXHJcbiAgICAgICAgICA8ZGl2ICpuZ1N3aXRjaENhc2U9XCInU1RBVFVTJ1wiPlxyXG4gICAgICAgICAgICA8ZGl2IFtuZ1N3aXRjaF09XCJjb2x1bW5EYXRhW2NvbHVtbkhlYWQuZGF0YVByb3BlcnR5XVwiPlxyXG4gICAgICAgICAgICAgIDxuZy1jb250YWluZXJcclxuICAgICAgICAgICAgICAgICpuZ0Zvcj1cImxldCBzdGF0dXMgb2YgdGFibGVDb25maWcuc3RhdHVzOyBsZXQgaSA9IGluZGV4XCJcclxuICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8ZGl2XHJcbiAgICAgICAgICAgICAgICAgIChjbGljayk9XCJcclxuICAgICAgICAgICAgICAgICAgICBvblJvd0FjdGlvbkNsaWNrZWQoXHJcbiAgICAgICAgICAgICAgICAgICAgICBjb2x1bW5IZWFkLmFjdGlvbiB8fCAnU0hPVycsXHJcbiAgICAgICAgICAgICAgICAgICAgICBjb2x1bW5EYXRhLmlkXHJcbiAgICAgICAgICAgICAgICAgICAgKVxyXG4gICAgICAgICAgICAgICAgICBcIlxyXG4gICAgICAgICAgICAgICAgICBjbGFzcz1cInRhYmxlLXN0YXR1c1wiXHJcbiAgICAgICAgICAgICAgICAgIFtzdHlsZS5jb2xvcl09XCJzdGF0dXMuY29sb3JcIlxyXG4gICAgICAgICAgICAgICAgICAqbmdTd2l0Y2hDYXNlPVwiaVwiXHJcbiAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgIDxpbWcgc3JjPVwie3sgc3RhdHVzLmljb25VcmwgfX1cIiAvPlxyXG4gICAgICAgICAgICAgICAgICA8c3Bhbj57eyBzdGF0dXMubGFiZWwgfX08L3NwYW4+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgIDxkaXZcclxuICAgICAgICAgICAgKm5nU3dpdGNoRGVmYXVsdFxyXG4gICAgICAgICAgICAoY2xpY2spPVwiXHJcbiAgICAgICAgICAgICAgb25Sb3dBY3Rpb25DbGlja2VkKGNvbHVtbkhlYWQuYWN0aW9uIHx8ICdTSE9XJywgY29sdW1uRGF0YS5pZClcclxuICAgICAgICAgICAgXCJcclxuICAgICAgICAgICAgW2lubmVySFRNTF09XCJcclxuICAgICAgICAgICAgICBjb2x1bW5EYXRhW2NvbHVtbkhlYWQuZGF0YVByb3BlcnR5XVxyXG4gICAgICAgICAgICAgICAgfCBmb3JtYXRUYWJsZVxyXG4gICAgICAgICAgICAgICAgICA6IGNvbHVtbkhlYWQuZm9ybWF0Py50eXBlXHJcbiAgICAgICAgICAgICAgICAgIDogY29sdW1uSGVhZC5mb3JtYXQ/LnBsYWNlaG9sZGVyXHJcbiAgICAgICAgICAgICAgICAgIDogY29sdW1uSGVhZC5mb3JtYXQ/LmxvY2FsXHJcbiAgICAgICAgICAgIFwiXHJcbiAgICAgICAgICA+PC9kaXY+XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICAgIDwvdGQ+XHJcbiAgICA8L3RyPlxyXG4gIDwvdGJvZHk+XHJcbjwvdGFibGU+XHJcbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvdGFibGUvdGFibGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSURhdGFUYWJsZVR5cGU8VD4ge1xyXG4gIGNvbHVtbnM6IElDb2x1bW5UeXBlPFQ+W107XHJcbiAgcm93QWN0aW9ucz86IElSb3dBY3Rpb25bXTtcclxuICBzdGF0dXM/OiBJU3RhdHVzW107XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSUNvbHVtblR5cGU8VD4ge1xyXG4gIHRpdGxlOiBzdHJpbmc7XHJcbiAgZGF0YVByb3BlcnR5Pzoga2V5b2YgVDtcclxuICBkYXRhRmllbGQ/OiAnUk9XX0FDVElPTicgfCAnU1RBVFVTJyB8ICdERUZBVUxUJztcclxuICBhbGlnbj86IHN0cmluZztcclxuICBhY3Rpb24/OiBzdHJpbmc7XHJcbiAgZm9ybWF0Pzoge1xyXG4gICAgdHlwZTogJ2RhdGUnIHwgJ251bWJlcic7XHJcbiAgICBwbGFjZWhvbGRlcjogc3RyaW5nO1xyXG4gICAgbG9jYWw/OiBzdHJpbmc7XHJcbiAgfTtcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJUm93QWN0aW9uIHtcclxuICBhY3Rpb25Ub1BlcmZvcm06IHN0cmluZztcclxuICBsb2dvSW1hZ2VVcmw6IHN0cmluZztcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJU3RhdHVzIHtcclxuICBzdGF0dXM6IG51bWJlcjtcclxuICBsYWJlbDogc3RyaW5nO1xyXG4gIGljb25Vcmw6IHN0cmluZztcclxuICBjb2xvcjogc3RyaW5nO1xyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFJvd0FjdGlvbldpdGhEYXRhIHtcclxuICBhY3Rpb25Ub1BlcmZvcm06IHN0cmluZztcclxuICBpZDogc3RyaW5nO1xyXG59XHJcbiJdfQ==
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { TableComponent } from './table.component';
|
|
4
|
-
import { FormatTablePipe } from './table.pipe';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class TableModule {
|
|
7
|
-
}
|
|
8
|
-
TableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
-
TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, declarations: [TableComponent, FormatTablePipe], imports: [CommonModule], exports: [TableComponent] });
|
|
10
|
-
TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, imports: [[CommonModule]] });
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, decorators: [{
|
|
12
|
-
type: NgModule,
|
|
13
|
-
args: [{
|
|
14
|
-
declarations: [TableComponent, FormatTablePipe],
|
|
15
|
-
imports: [CommonModule],
|
|
16
|
-
exports: [TableComponent],
|
|
17
|
-
}]
|
|
18
|
-
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { TableComponent } from './table.component';
|
|
4
|
+
import { FormatTablePipe } from './table.pipe';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class TableModule {
|
|
7
|
+
}
|
|
8
|
+
TableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, declarations: [TableComponent, FormatTablePipe], imports: [CommonModule], exports: [TableComponent] });
|
|
10
|
+
TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, imports: [[CommonModule]] });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableModule, decorators: [{
|
|
12
|
+
type: NgModule,
|
|
13
|
+
args: [{
|
|
14
|
+
declarations: [TableComponent, FormatTablePipe],
|
|
15
|
+
imports: [CommonModule],
|
|
16
|
+
exports: [TableComponent],
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL3RhYmxlL3RhYmxlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGNBQWMsQ0FBQzs7QUFPL0MsTUFBTSxPQUFPLFdBQVc7O3lHQUFYLFdBQVc7MEdBQVgsV0FBVyxpQkFKUCxjQUFjLEVBQUUsZUFBZSxhQUNwQyxZQUFZLGFBQ1osY0FBYzswR0FFYixXQUFXLFlBSGIsQ0FBQyxZQUFZLENBQUM7NEZBR1osV0FBVztrQkFMdkIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxjQUFjLEVBQUUsZUFBZSxDQUFDO29CQUMvQyxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLE9BQU8sRUFBRSxDQUFDLGNBQWMsQ0FBQztpQkFDMUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xyXG5pbXBvcnQgeyBUYWJsZUNvbXBvbmVudCB9IGZyb20gJy4vdGFibGUuY29tcG9uZW50JztcclxuaW1wb3J0IHsgRm9ybWF0VGFibGVQaXBlIH0gZnJvbSAnLi90YWJsZS5waXBlJztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbVGFibGVDb21wb25lbnQsIEZvcm1hdFRhYmxlUGlwZV0sXHJcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXHJcbiAgZXhwb3J0czogW1RhYmxlQ29tcG9uZW50XSxcclxufSlcclxuZXhwb3J0IGNsYXNzIFRhYmxlTW9kdWxlIHt9XHJcbiJdfQ==
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { formatDate, formatNumber } from '@angular/common';
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class FormatTablePipe {
|
|
5
|
-
transform(value, type, format, locale = 'ru') {
|
|
6
|
-
if (type === 'date') {
|
|
7
|
-
return formatDate(value, format, locale);
|
|
8
|
-
}
|
|
9
|
-
if (type === 'number') {
|
|
10
|
-
let innerNumber = formatNumber(value, locale, format).split(',');
|
|
11
|
-
return `<b>${innerNumber[0]}, </b>${innerNumber[1]}`;
|
|
12
|
-
}
|
|
13
|
-
return value;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
FormatTablePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatTablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
-
FormatTablePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatTablePipe, name: "formatTable" });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatTablePipe, decorators: [{
|
|
19
|
-
type: Pipe,
|
|
20
|
-
args: [{ name: 'formatTable' }]
|
|
21
|
-
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { formatDate, formatNumber } from '@angular/common';
|
|
2
|
+
import { Pipe } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class FormatTablePipe {
|
|
5
|
+
transform(value, type, format, locale = 'ru') {
|
|
6
|
+
if (type === 'date') {
|
|
7
|
+
return formatDate(value, format, locale);
|
|
8
|
+
}
|
|
9
|
+
if (type === 'number') {
|
|
10
|
+
let innerNumber = formatNumber(value, locale, format).split(',');
|
|
11
|
+
return `<b>${innerNumber[0]}, </b>${innerNumber[1]}`;
|
|
12
|
+
}
|
|
13
|
+
return value;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
FormatTablePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatTablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
17
|
+
FormatTablePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatTablePipe, name: "formatTable" });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatTablePipe, decorators: [{
|
|
19
|
+
type: Pipe,
|
|
20
|
+
args: [{ name: 'formatTable' }]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjp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GFyL2NvcmUnO1xyXG5cclxuQFBpcGUoeyBuYW1lOiAnZm9ybWF0VGFibGUnIH0pXHJcbmV4cG9ydCBjbGFzcyBGb3JtYXRUYWJsZVBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcclxuICB0cmFuc2Zvcm0oXHJcbiAgICB2YWx1ZTogc3RyaW5nIHwgbnVtYmVyLFxyXG4gICAgdHlwZTogc3RyaW5nLFxyXG4gICAgZm9ybWF0OiBzdHJpbmcsXHJcbiAgICBsb2NhbGU6IHN0cmluZyA9ICdydSdcclxuICApOiBzdHJpbmcge1xyXG4gICAgaWYgKHR5cGUgPT09ICdkYXRlJykge1xyXG4gICAgICByZXR1cm4gZm9ybWF0RGF0ZSh2YWx1ZSwgZm9ybWF0LCBsb2NhbGUpO1xyXG4gICAgfVxyXG5cclxuICAgIGlmICh0eXBlID09PSAnbnVtYmVyJykge1xyXG4gICAgICBsZXQgaW5uZXJOdW1iZXIgPSBmb3JtYXROdW1iZXIodmFsdWUgYXMgbnVtYmVyLCBsb2NhbGUsIGZvcm1hdCkuc3BsaXQoXHJcbiAgICAgICAgJywnXHJcbiAgICAgICk7XHJcbiAgICAgIHJldHVybiBgPGI+JHtpbm5lck51bWJlclswXX0sIDwvYj4ke2lubmVyTnVtYmVyWzFdfWA7XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIHZhbHVlIGFzIHN0cmluZztcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class TabDirective {
|
|
4
|
-
constructor(template) {
|
|
5
|
-
this.template = template;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
TabDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
-
TabDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TabDirective, selector: "[aebTab]", inputs: { name: ["aebTab", "name"] }, ngImport: i0 });
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabDirective, decorators: [{
|
|
11
|
-
type: Directive,
|
|
12
|
-
args: [{
|
|
13
|
-
selector: '[aebTab]'
|
|
14
|
-
}]
|
|
15
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { name: [{
|
|
16
|
-
type: Input,
|
|
17
|
-
args: ['aebTab']
|
|
18
|
-
}] } });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class TabDirective {
|
|
4
|
+
constructor(template) {
|
|
5
|
+
this.template = template;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
TabDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
TabDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TabDirective, selector: "[aebTab]", inputs: { name: ["aebTab", "name"] }, ngImport: i0 });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: '[aebTab]'
|
|
14
|
+
}]
|
|
15
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { name: [{
|
|
16
|
+
type: Input,
|
|
17
|
+
args: ['aebTab']
|
|
18
|
+
}] } });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FlYi11aS1raXQvc3JjL2xpYi90YWJzL3RhYi5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFFVCxLQUFLLEVBQ04sTUFBTSxlQUFlLENBQUM7O0FBS3ZCLE1BQU0sT0FBTyxZQUFZO0lBSXZCLFlBQW1CLFFBQTBCO1FBQTFCLGFBQVEsR0FBUixRQUFRLENBQWtCO0lBQUksQ0FBQzs7MEdBSnZDLFlBQVk7OEZBQVosWUFBWTs0RkFBWixZQUFZO2tCQUh4QixTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxVQUFVO2lCQUNyQjtrR0FHeUIsSUFBSTtzQkFBM0IsS0FBSzt1QkFBQyxRQUFRIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcclxuICBEaXJlY3RpdmUsXHJcbiAgVGVtcGxhdGVSZWYsXHJcbiAgSW5wdXRcclxufSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBEaXJlY3RpdmUoe1xyXG4gIHNlbGVjdG9yOiAnW2FlYlRhYl0nXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBUYWJEaXJlY3RpdmUge1xyXG5cclxuICBASW5wdXQoJ2FlYlRhYicpIHB1YmxpYyBuYW1lOiBzdHJpbmc7XHJcblxyXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyB0ZW1wbGF0ZTogVGVtcGxhdGVSZWY8YW55PikgeyB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { Component, ContentChildren, ViewChildren, ViewEncapsulation, ViewChild, Input, HostListener, Output, EventEmitter, } from '@angular/core';
|
|
2
|
-
import { TabDirective } from './tab.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
export class TabsComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.collapsed = false;
|
|
8
|
-
this.tab = 0;
|
|
9
|
-
this.change = new EventEmitter();
|
|
10
|
-
}
|
|
11
|
-
tabHandler(e, tab) {
|
|
12
|
-
const targetTab = e.target;
|
|
13
|
-
this.moveThumb(targetTab);
|
|
14
|
-
this.currentTab = tab;
|
|
15
|
-
this.change.emit(this.currentTab.name);
|
|
16
|
-
}
|
|
17
|
-
moveThumb(tab) {
|
|
18
|
-
const tabLeft = tab.getBoundingClientRect().left;
|
|
19
|
-
const containerLeft = this.container.nativeElement.getBoundingClientRect()
|
|
20
|
-
.left;
|
|
21
|
-
this.thumb.nativeElement.style.width = `${tab.offsetWidth}px`;
|
|
22
|
-
this.thumb.nativeElement.style.left = `${tabLeft - containerLeft}px`;
|
|
23
|
-
}
|
|
24
|
-
ngOnInit() { }
|
|
25
|
-
switchTab(tab) {
|
|
26
|
-
this.currentTab = this.tabs.toArray()[tab];
|
|
27
|
-
this.moveThumb(this.templateTabs.toArray()[tab].nativeElement);
|
|
28
|
-
}
|
|
29
|
-
ngAfterViewInit() {
|
|
30
|
-
setTimeout(() => {
|
|
31
|
-
if (String(this.tab) && !this.collapsed) {
|
|
32
|
-
this.switchTab(this.tab);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
ngOnChanges(changes) {
|
|
37
|
-
if (changes.tab && this.tabs) {
|
|
38
|
-
this.switchTab(this.tab);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
redrawThumb() {
|
|
42
|
-
const tabIndex = this.tabs.toArray().indexOf(this.currentTab);
|
|
43
|
-
this.moveThumb(this.templateTabs.toArray()[tabIndex].nativeElement);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
TabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
-
TabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TabsComponent, selector: "aeb-tabs", inputs: { layoutMod: "layoutMod", collapsed: "collapsed", tab: "tab" }, outputs: { change: "change" }, host: { listeners: { "window:resize": "redrawThumb()" } }, queries: [{ propertyName: "tabs", predicate: TabDirective }], viewQueries: [{ propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }, { propertyName: "templateTabs", predicate: ["rtab"], descendants: true }], usesOnChanges: true, ngImport: i0, 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>", 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)}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{ selector: 'aeb-tabs', encapsulation: ViewEncapsulation.None, 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>", 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)}\n"] }]
|
|
51
|
-
}], ctorParameters: function () { return []; }, propDecorators: { tabs: [{
|
|
52
|
-
type: ContentChildren,
|
|
53
|
-
args: [TabDirective]
|
|
54
|
-
}], templateTabs: [{
|
|
55
|
-
type: ViewChildren,
|
|
56
|
-
args: ['rtab']
|
|
57
|
-
}], thumb: [{
|
|
58
|
-
type: ViewChild,
|
|
59
|
-
args: ['thumb']
|
|
60
|
-
}], container: [{
|
|
61
|
-
type: ViewChild,
|
|
62
|
-
args: ['container']
|
|
63
|
-
}], layoutMod: [{
|
|
64
|
-
type: Input,
|
|
65
|
-
args: ['layoutMod']
|
|
66
|
-
}], collapsed: [{
|
|
67
|
-
type: Input,
|
|
68
|
-
args: ['collapsed']
|
|
69
|
-
}], tab: [{
|
|
70
|
-
type: Input,
|
|
71
|
-
args: ['tab']
|
|
72
|
-
}], change: [{
|
|
73
|
-
type: Output
|
|
74
|
-
}], redrawThumb: [{
|
|
75
|
-
type: HostListener,
|
|
76
|
-
args: ['window:resize']
|
|
77
|
-
}] } });
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ContentChildren, ViewChildren, ViewEncapsulation, ViewChild, Input, HostListener, Output, EventEmitter, } from '@angular/core';
|
|
2
|
+
import { TabDirective } from './tab.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
export class TabsComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.collapsed = false;
|
|
8
|
+
this.tab = 0;
|
|
9
|
+
this.change = new EventEmitter();
|
|
10
|
+
}
|
|
11
|
+
tabHandler(e, tab) {
|
|
12
|
+
const targetTab = e.target;
|
|
13
|
+
this.moveThumb(targetTab);
|
|
14
|
+
this.currentTab = tab;
|
|
15
|
+
this.change.emit(this.currentTab.name);
|
|
16
|
+
}
|
|
17
|
+
moveThumb(tab) {
|
|
18
|
+
const tabLeft = tab.getBoundingClientRect().left;
|
|
19
|
+
const containerLeft = this.container.nativeElement.getBoundingClientRect()
|
|
20
|
+
.left;
|
|
21
|
+
this.thumb.nativeElement.style.width = `${tab.offsetWidth}px`;
|
|
22
|
+
this.thumb.nativeElement.style.left = `${tabLeft - containerLeft}px`;
|
|
23
|
+
}
|
|
24
|
+
ngOnInit() { }
|
|
25
|
+
switchTab(tab) {
|
|
26
|
+
this.currentTab = this.tabs.toArray()[tab];
|
|
27
|
+
this.moveThumb(this.templateTabs.toArray()[tab].nativeElement);
|
|
28
|
+
}
|
|
29
|
+
ngAfterViewInit() {
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
if (String(this.tab) && !this.collapsed) {
|
|
32
|
+
this.switchTab(this.tab);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
ngOnChanges(changes) {
|
|
37
|
+
if (changes.tab && this.tabs) {
|
|
38
|
+
this.switchTab(this.tab);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
redrawThumb() {
|
|
42
|
+
const tabIndex = this.tabs.toArray().indexOf(this.currentTab);
|
|
43
|
+
this.moveThumb(this.templateTabs.toArray()[tabIndex].nativeElement);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
TabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
TabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TabsComponent, selector: "aeb-tabs", inputs: { layoutMod: "layoutMod", collapsed: "collapsed", tab: "tab" }, outputs: { change: "change" }, host: { listeners: { "window:resize": "redrawThumb()" } }, queries: [{ propertyName: "tabs", predicate: TabDirective }], viewQueries: [{ propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }, { propertyName: "templateTabs", predicate: ["rtab"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\r\n #container\r\n class=\"aeb-tabs\"\r\n [ngClass]=\"{\r\n 'aeb-tabs--compact': layoutMod === 'compact'\r\n }\"\r\n>\r\n <div class=\"aeb-tabs__wrapper\">\r\n <ng-container *ngFor=\"let tab of tabs\">\r\n <div\r\n class=\"aeb-tabs__tab\"\r\n (click)=\"tabHandler($event, tab)\"\r\n [ngClass]=\"{\r\n 'aeb-tabs__tab--active': tab === currentTab\r\n }\"\r\n #rtab\r\n >\r\n {{tab.name}}\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <div\r\n class=\"aeb-tabs__thumb\"\r\n #thumb\r\n ></div>\r\n</div>\r\n\r\n<ng-container *ngIf=\"currentTab\">\r\n <ng-template [ngTemplateOutlet]=\"currentTab.template\">\r\n </ng-template>\r\n</ng-container>", 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)}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{ selector: 'aeb-tabs', encapsulation: ViewEncapsulation.None, template: "<div\r\n #container\r\n class=\"aeb-tabs\"\r\n [ngClass]=\"{\r\n 'aeb-tabs--compact': layoutMod === 'compact'\r\n }\"\r\n>\r\n <div class=\"aeb-tabs__wrapper\">\r\n <ng-container *ngFor=\"let tab of tabs\">\r\n <div\r\n class=\"aeb-tabs__tab\"\r\n (click)=\"tabHandler($event, tab)\"\r\n [ngClass]=\"{\r\n 'aeb-tabs__tab--active': tab === currentTab\r\n }\"\r\n #rtab\r\n >\r\n {{tab.name}}\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <div\r\n class=\"aeb-tabs__thumb\"\r\n #thumb\r\n ></div>\r\n</div>\r\n\r\n<ng-container *ngIf=\"currentTab\">\r\n <ng-template [ngTemplateOutlet]=\"currentTab.template\">\r\n </ng-template>\r\n</ng-container>", 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)}\n"] }]
|
|
51
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tabs: [{
|
|
52
|
+
type: ContentChildren,
|
|
53
|
+
args: [TabDirective]
|
|
54
|
+
}], templateTabs: [{
|
|
55
|
+
type: ViewChildren,
|
|
56
|
+
args: ['rtab']
|
|
57
|
+
}], thumb: [{
|
|
58
|
+
type: ViewChild,
|
|
59
|
+
args: ['thumb']
|
|
60
|
+
}], container: [{
|
|
61
|
+
type: ViewChild,
|
|
62
|
+
args: ['container']
|
|
63
|
+
}], layoutMod: [{
|
|
64
|
+
type: Input,
|
|
65
|
+
args: ['layoutMod']
|
|
66
|
+
}], collapsed: [{
|
|
67
|
+
type: Input,
|
|
68
|
+
args: ['collapsed']
|
|
69
|
+
}], tab: [{
|
|
70
|
+
type: Input,
|
|
71
|
+
args: ['tab']
|
|
72
|
+
}], change: [{
|
|
73
|
+
type: Output
|
|
74
|
+
}], redrawThumb: [{
|
|
75
|
+
type: HostListener,
|
|
76
|
+
args: ['window:resize']
|
|
77
|
+
}] } });
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvdGFicy90YWJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FlYi11aS1raXQvc3JjL2xpYi90YWJzL3RhYnMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFFVCxlQUFlLEVBQ2YsWUFBWSxFQUVaLGlCQUFpQixFQUNqQixTQUFTLEVBRVQsS0FBSyxFQUdMLFlBQVksRUFDWixNQUFNLEVBQ04sWUFBWSxHQUNiLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7O0FBUS9DLE1BQU0sT0FB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AgIGlmIChjaGFuZ2VzLnRhYiAmJiB0aGlzLnRhYnMpIHtcclxuICAgICAgdGhpcy5zd2l0Y2hUYWIodGhpcy50YWIpO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgQEhvc3RMaXN0ZW5lcignd2luZG93OnJlc2l6ZScpIHJlZHJhd1RodW1iKCk6IHZvaWQge1xyXG4gICAgY29uc3QgdGFiSW5kZXggPSB0aGlzLnRhYnMudG9BcnJheSgpLmluZGV4T2YodGhpcy5jdXJyZW50VGFiKTtcclxuXHJcbiAgICB0aGlzLm1vdmVUaHVtYih0aGlzLnRlbXBsYXRlVGFicy50b0FycmF5KClbdGFiSW5kZXhdLm5hdGl2ZUVsZW1lbnQpO1xyXG4gIH1cclxufVxyXG4iLCI8ZGl2XHJcbiAgICAjY29udGFpbmVyXHJcbiAgICBjbGFzcz1cImFlYi10YWJzXCJcclxuICAgIFtuZ0NsYXNzXT1cIntcclxuICAgICAgICAnYWViLXRhYnMtLWNvbXBhY3QnOiBsYXlvdXRNb2QgPT09ICdjb21wYWN0J1xyXG4gICAgfVwiXHJcbj5cclxuICAgIDxkaXYgY2xhc3M9XCJhZWItdGFic19fd3JhcHBlclwiPlxyXG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nRm9yPVwibGV0IHRhYiBvZiB0YWJzXCI+XHJcbiAgICAgICAgICAgIDxkaXZcclxuICAgICAgICAgICAgICAgIGNsYXNzPVwiYWViLXRhYnNfX3RhYlwiXHJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwidGFiSGFuZGxlcigkZXZlbnQsIHRhYilcIlxyXG4gICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwie1xyXG4gICAgICAgICAgICAgICAgICAgICdhZWItdGFic19fdGFiLS1hY3RpdmUnOiB0YWIgPT09IGN1cnJlbnRUYWJcclxuICAgICAgICAgICAgICAgIH1cIlxyXG4gICAgICAgICAgICAgICAgI3J0YWJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAge3t0YWIubmFtZX19XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgPC9kaXY+XHJcblxyXG4gICAgPGRpdlxyXG4gICAgICAgIGNsYXNzPVwiYWViLXRhYnNfX3RodW1iXCJcclxuICAgICAgICAjdGh1bWJcclxuICAgID48L2Rpdj5cclxuPC9kaXY+XHJcblxyXG48bmctY29udGFpbmVyICpuZ0lmPVwiY3VycmVudFRhYlwiPlxyXG4gICAgPG5nLXRlbXBsYXRlIFtuZ1RlbXBsYXRlT3V0bGV0XT1cImN1cnJlbnRUYWIudGVtcGxhdGVcIj5cclxuICAgIDwvbmctdGVtcGxhdGU+XHJcbjwvbmctY29udGFpbmVyPiJdfQ==
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { TabsComponent } from './tabs.component';
|
|
4
|
-
import { TabDirective } from './tab.directive';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class TabsModule {
|
|
7
|
-
}
|
|
8
|
-
TabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
-
TabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, declarations: [TabsComponent, TabDirective], imports: [CommonModule], exports: [TabsComponent, TabDirective] });
|
|
10
|
-
TabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, imports: [[
|
|
11
|
-
CommonModule
|
|
12
|
-
]] });
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, decorators: [{
|
|
14
|
-
type: NgModule,
|
|
15
|
-
args: [{
|
|
16
|
-
declarations: [TabsComponent, TabDirective],
|
|
17
|
-
imports: [
|
|
18
|
-
CommonModule
|
|
19
|
-
],
|
|
20
|
-
exports: [TabsComponent, TabDirective]
|
|
21
|
-
}]
|
|
22
|
-
}] });
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { TabsComponent } from './tabs.component';
|
|
4
|
+
import { TabDirective } from './tab.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class TabsModule {
|
|
7
|
+
}
|
|
8
|
+
TabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
TabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, declarations: [TabsComponent, TabDirective], imports: [CommonModule], exports: [TabsComponent, TabDirective] });
|
|
10
|
+
TabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, imports: [[
|
|
11
|
+
CommonModule
|
|
12
|
+
]] });
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TabsModule, decorators: [{
|
|
14
|
+
type: NgModule,
|
|
15
|
+
args: [{
|
|
16
|
+
declarations: [TabsComponent, TabDirective],
|
|
17
|
+
imports: [
|
|
18
|
+
CommonModule
|
|
19
|
+
],
|
|
20
|
+
exports: [TabsComponent, TabDirective]
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8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lvbnM6IFtUYWJzQ29tcG9uZW50LCBUYWJEaXJlY3RpdmVdLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZVxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1RhYnNDb21wb25lbnQsIFRhYkRpcmVjdGl2ZV1cclxufSlcclxuZXhwb3J0IGNsYXNzIFRhYnNNb2R1bGUgeyB9XHJcbiJdfQ==
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
export class TagTabComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.isActive = false;
|
|
7
|
-
this.label = '';
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TagTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TagTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
-
TagTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TagTabComponent, selector: "aeb-tag-tab", inputs: { isActive: "isActive", label: "label" }, ngImport: i0, template: "<div class=\"tag\" [ngClass]=\"{ 'tag--active' : isActive }\">{{ label }}</div>", 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)}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TagTabComponent, decorators: [{
|
|
13
|
-
type: Component,
|
|
14
|
-
args: [{ selector: 'aeb-tag-tab', template: "<div class=\"tag\" [ngClass]=\"{ 'tag--active' : isActive }\">{{ label }}</div>", 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)}\n"] }]
|
|
15
|
-
}], propDecorators: { isActive: [{
|
|
16
|
-
type: Input
|
|
17
|
-
}], label: [{
|
|
18
|
-
type: Input
|
|
19
|
-
}] } });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export class TagTabComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.isActive = false;
|
|
7
|
+
this.label = '';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
TagTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TagTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
TagTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TagTabComponent, selector: "aeb-tag-tab", inputs: { isActive: "isActive", label: "label" }, ngImport: i0, template: "<div class=\"tag\" [ngClass]=\"{ 'tag--active' : isActive }\">{{ label }}</div>", 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)}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TagTabComponent, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{ selector: 'aeb-tag-tab', template: "<div class=\"tag\" [ngClass]=\"{ 'tag--active' : isActive }\">{{ label }}</div>", 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)}\n"] }]
|
|
15
|
+
}], propDecorators: { isActive: [{
|
|
16
|
+
type: Input
|
|
17
|
+
}], label: [{
|
|
18
|
+
type: Input
|
|
19
|
+
}] } });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFnLXRhYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZWItdWkta2l0L3NyYy9saWIvdGFnLXRhYi90YWctdGFiLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FlYi11aS1raXQvc3JjL2xpYi90YWctdGFiL3RhZy10YWIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQU9qRCxNQUFNLE9BQU8sZUFBZTtJQUw1QjtRQVFJLGFBQVEsR0FBWSxLQUFLLENBQUM7UUFFMUIsVUFBSyxHQUFXLEVBQUUsQ0FBQztLQUV0Qjs7NkdBUFksZUFBZTtpR0FBZixlQUFlLHFHQ1A1QixpRkFBMkU7NEZETzlELGVBQWU7a0JBTDNCLFNBQVM7K0JBQ0ksYUFBYTs4QkFPdkIsUUFBUTtzQkFEUCxLQUFLO2dCQUdOLEtBQUs7c0JBREosS0FBSyIsInNvdXJ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