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,35 +1,47 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/
|
|
4
|
-
|
|
5
|
-
export class NewNotificationsComponent {
|
|
6
|
-
constructor(
|
|
7
|
-
this.
|
|
8
|
-
this.close = new EventEmitter();
|
|
9
|
-
this.clickItem = new EventEmitter();
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
;
|
|
5
|
+
export class NewNotificationsComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.notificationPosition = "bottomRight";
|
|
8
|
+
this.close = new EventEmitter();
|
|
9
|
+
this.clickItem = new EventEmitter();
|
|
10
|
+
/**
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
this.orientations = {
|
|
14
|
+
topLeft: 'aeb-new-notifications-left aeb-new-notifications-top',
|
|
15
|
+
topRight: 'aeb-new-notifications-right aeb-new-notifications-top',
|
|
16
|
+
bottomLeft: 'aeb-new-notifications-left aeb-new-notifications-bottom',
|
|
17
|
+
bottomRight: 'aeb-new-notifications-right aeb-new-notifications-bottom'
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
getOrientation() {
|
|
24
|
+
return this.orientations[this.notificationPosition];
|
|
25
|
+
}
|
|
26
|
+
handleClose(id) {
|
|
27
|
+
this.close.emit(id);
|
|
28
|
+
}
|
|
29
|
+
handleItemClick(id) {
|
|
30
|
+
this.clickItem.emit(id);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
NewNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
NewNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NewNotificationsComponent, selector: "aeb-new-notifications", inputs: { notifications: "notifications", notificationPosition: "notificationPosition" }, outputs: { close: "close", clickItem: "clickItem" }, ngImport: i0, template: "<div\r\n class=\"aeb-new-notifications\"\r\n *ngIf=\"notifications.length\"\r\n [ngClass]=\"getOrientation()\"\r\n>\r\n <div\r\n *ngFor=\"let item of notifications\"\r\n (click)=\"handleItemClick(item.id)\"\r\n class=\"aeb-new-notifications__item\"\r\n >\r\n <div class=\"aeb-new-notifications__icon\">\r\n <img [src]=\"item.iconPath\">\r\n <!-- <object type=\"image/svg+xml\" [data]=\"bypassURL(item.iconPath)\"></object> -->\r\n </div>\r\n <div class=\"aeb-new-notifications__info\">\r\n <div class=\"aeb-new-notifications__header\">\r\n {{item.header}}\r\n </div>\r\n <div class=\"aeb-new-notifications__msg\">\r\n {{item.message}}\r\n </div>\r\n </div>\r\n <div\r\n class=\"aeb-new-notifications__close\"\r\n (click)=\"handleClose(item.id)\"\r\n >\r\n <svg\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M5.63086 5.63074L18.3693 18.3692\"\r\n stroke=\"white\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n />\r\n <path\r\n d=\"M18.3691 5.63074L5.63065 18.3692\"\r\n stroke=\"white\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".aeb-new-notifications{position:fixed;z-index:1500}.aeb-new-notifications-left{left:30px}.aeb-new-notifications-right{right:30px}.aeb-new-notifications-top{top:80px}.aeb-new-notifications-bottom{bottom:80px}.aeb-new-notifications__item{display:flex;width:324px;height:auto;min-height:76px;justify-content:space-between;border-radius:8px;background-color:var(--darkblue);padding:16px;box-sizing:border-box}.aeb-new-notifications__item:not(:last-child){margin-bottom:12px}.aeb-new-notifications__icon{flex:0;width:36px;height:36px}.aeb-new-notifications__info{width:100%;margin-left:16px}.aeb-new-notifications__header{flex:auto;word-break:break-all;color:var(--white);font-size:16px;font-weight:500;margin-bottom:8px}.aeb-new-notifications__info{color:var(--white);font-size:14px}.aeb-new-notifications__close{flex:0;top:16px;right:16px;cursor:pointer}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsComponent, decorators: [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{ selector: 'aeb-new-notifications', encapsulation: ViewEncapsulation.None, template: "<div\r\n class=\"aeb-new-notifications\"\r\n *ngIf=\"notifications.length\"\r\n [ngClass]=\"getOrientation()\"\r\n>\r\n <div\r\n *ngFor=\"let item of notifications\"\r\n (click)=\"handleItemClick(item.id)\"\r\n class=\"aeb-new-notifications__item\"\r\n >\r\n <div class=\"aeb-new-notifications__icon\">\r\n <img [src]=\"item.iconPath\">\r\n <!-- <object type=\"image/svg+xml\" [data]=\"bypassURL(item.iconPath)\"></object> -->\r\n </div>\r\n <div class=\"aeb-new-notifications__info\">\r\n <div class=\"aeb-new-notifications__header\">\r\n {{item.header}}\r\n </div>\r\n <div class=\"aeb-new-notifications__msg\">\r\n {{item.message}}\r\n </div>\r\n </div>\r\n <div\r\n class=\"aeb-new-notifications__close\"\r\n (click)=\"handleClose(item.id)\"\r\n >\r\n <svg\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M5.63086 5.63074L18.3693 18.3692\"\r\n stroke=\"white\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n />\r\n <path\r\n d=\"M18.3691 5.63074L5.63065 18.3692\"\r\n stroke=\"white\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".aeb-new-notifications{position:fixed;z-index:1500}.aeb-new-notifications-left{left:30px}.aeb-new-notifications-right{right:30px}.aeb-new-notifications-top{top:80px}.aeb-new-notifications-bottom{bottom:80px}.aeb-new-notifications__item{display:flex;width:324px;height:auto;min-height:76px;justify-content:space-between;border-radius:8px;background-color:var(--darkblue);padding:16px;box-sizing:border-box}.aeb-new-notifications__item:not(:last-child){margin-bottom:12px}.aeb-new-notifications__icon{flex:0;width:36px;height:36px}.aeb-new-notifications__info{width:100%;margin-left:16px}.aeb-new-notifications__header{flex:auto;word-break:break-all;color:var(--white);font-size:16px;font-weight:500;margin-bottom:8px}.aeb-new-notifications__info{color:var(--white);font-size:14px}.aeb-new-notifications__close{flex:0;top:16px;right:16px;cursor:pointer}\n"] }]
|
|
38
|
+
}], ctorParameters: function () { return []; }, propDecorators: { notifications: [{
|
|
39
|
+
type: Input
|
|
40
|
+
}], notificationPosition: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}], close: [{
|
|
43
|
+
type: Output
|
|
44
|
+
}], clickItem: [{
|
|
45
|
+
type: Output
|
|
46
|
+
}] } });
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV3LW5vdGlmaWNhdGlvbnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL25ldy1ub3RpZmljYXRpb25zL25ldy1ub3RpZmljYXRpb25zLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FlYi11aS1raXQvc3JjL2xpYi9uZXctbm90aWZpY2F0aW9ucy9uZXctbm90aWZpY2F0aW9ucy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFDTCxNQUFNLEVBQ04sWUFBWSxFQUNaLGlCQUFpQ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ICAgID5cclxuICAgICAgPHN2Z1xyXG4gICAgICAgIHdpZHRoPVwiMjRcIlxyXG4gICAgICAgIGhlaWdodD1cIjI0XCJcclxuICAgICAgICB2aWV3Qm94PVwiMCAwIDI0IDI0XCJcclxuICAgICAgICBmaWxsPVwibm9uZVwiXHJcbiAgICAgICAgeG1sbnM9XCJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Z1wiXHJcbiAgICAgID5cclxuICAgICAgICA8cGF0aFxyXG4gICAgICAgICAgZD1cIk01LjYzMDg2IDUuNjMwNzRMMTguMzY5MyAxOC4zNjkyXCJcclxuICAgICAgICAgIHN0cm9rZT1cIndoaXRlXCJcclxuICAgICAgICAgIHN0cm9rZS13aWR0aD1cIjJcIlxyXG4gICAgICAgICAgc3Ryb2tlLWxpbmVjYXA9XCJyb3VuZFwiXHJcbiAgICAgICAgLz5cclxuICAgICAgICA8cGF0aFxyXG4gICAgICAgICAgZD1cIk0xOC4zNjkxIDUuNjMwNzRMNS42MzA2NSAxOC4zNjkyXCJcclxuICAgICAgICAgIHN0cm9rZT1cIndoaXRlXCJcclxuICAgICAgICAgIHN0cm9rZS13aWR0aD1cIjJcIlxyXG4gICAgICAgICAgc3Ryb2tlLWxpbmVjYXA9XCJyb3VuZFwiXHJcbiAgICAgICAgLz5cclxuICAgICAgPC9zdmc+XHJcbiAgICA8L2Rpdj5cclxuICA8L2Rpdj5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NewNotificationsComponent } from './new-notifications.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class NewNotificationsModule {
|
|
6
|
-
}
|
|
7
|
-
NewNotificationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
-
NewNotificationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, declarations: [NewNotificationsComponent], imports: [CommonModule], exports: [NewNotificationsComponent] });
|
|
9
|
-
NewNotificationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, imports: [[
|
|
10
|
-
CommonModule
|
|
11
|
-
]] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
declarations: [NewNotificationsComponent],
|
|
16
|
-
imports: [
|
|
17
|
-
CommonModule
|
|
18
|
-
],
|
|
19
|
-
exports: [NewNotificationsComponent]
|
|
20
|
-
}]
|
|
21
|
-
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { NewNotificationsComponent } from './new-notifications.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class NewNotificationsModule {
|
|
6
|
+
}
|
|
7
|
+
NewNotificationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
NewNotificationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, declarations: [NewNotificationsComponent], imports: [CommonModule], exports: [NewNotificationsComponent] });
|
|
9
|
+
NewNotificationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, imports: [[
|
|
10
|
+
CommonModule
|
|
11
|
+
]] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewNotificationsModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [NewNotificationsComponent],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule
|
|
18
|
+
],
|
|
19
|
+
exports: [NewNotificationsComponent]
|
|
20
|
+
}]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV3LW5vdGlmaWNhdGlvbnMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL25ldy1ub3RpZmljYXRpb25zL25ldy1ub3RpZmljYXRpb25zLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQzs7QUFTMUUsTUFBTSxPQUFPLHNCQUFzQjs7b0hBQXRCLHNCQUFzQjtxSEFBdEIsc0JBQXNCLGlCQU5sQix5QkFBeUIsYUFFdEMsWUFBWSxhQUVKLHlCQUF5QjtxSEFFeEIsc0JBQXNCLFlBTHhCO1lBQ1AsWUFBWTtTQUNiOzRGQUdVLHNCQUFzQjtrQkFQbEMsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyx5QkFBeUIsQ0FBQztvQkFDekMsT0FBTyxFQUFFO3dCQUNQLFlBQVk7cUJBQ2I7b0JBQ0QsT0FBTyxFQUFFLENBQUMseUJBQXlCLENBQUM7aUJBQ3JDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcclxuaW1wb3J0IHsgTmV3Tm90aWZpY2F0aW9uc0NvbXBvbmVudCB9IGZyb20gJy4vbmV3LW5vdGlmaWNhdGlvbnMuY29tcG9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbTmV3Tm90aWZpY2F0aW9uc0NvbXBvbmVudF0sXHJcbiAgaW1wb3J0czogW1xyXG4gICAgQ29tbW9uTW9kdWxlXHJcbiAgXSxcclxuICBleHBvcnRzOiBbTmV3Tm90aWZpY2F0aW9uc0NvbXBvbmVudF1cclxufSlcclxuZXhwb3J0IGNsYXNzIE5ld05vdGlmaWNhdGlvbnNNb2R1bGUgeyB9XHJcbiJdfQ==
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Component, ViewChild, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class NewTooltipComponent {
|
|
4
|
-
constructor() { }
|
|
5
|
-
ngOnInit() {
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
NewTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
-
NewTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NewTooltipComponent, selector: "aeb-new-tooltip", inputs: { data: "data", html: "html" }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: ["tooltip"], descendants: true }], ngImport: i0, template: "<div\n class=\"aeb-new-tooltip\"\n #tooltip\n>\n <div [innerHTML]=\"html || data\" class=\"aeb-new-tooltip__container\">\n </div>\n</div>", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-new-tooltip{background-color:var(--darkblue);position:fixed;opacity:0;pointer-events:none;border-radius:8px;transition:opacity,.2s;z-index:9999}.aeb-new-tooltip--open{opacity:1;animation:out .2s}.aeb-new-tooltip__container{width:100%;height:100%;position:relative;align-items:center;justify-content:center;padding:12px;font-size:14px;border-radius:8px;word-break:keep-all;white-space:nowrap;color:var(--white)}.aeb-new-tooltip--top .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);bottom:-5px;transform:rotate(45deg)}.aeb-new-tooltip--right .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:-5px;top:calc(50% - 5px);transform:rotate(45deg)}.aeb-new-tooltip--bottom .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);top:-5px;transform:rotate(45deg)}.aeb-new-tooltip--left .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);right:19px;top:calc(50% - 5px);transform:rotate(45deg)}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipComponent, decorators: [{
|
|
11
|
-
type: Component,
|
|
12
|
-
args: [{ selector: 'aeb-new-tooltip', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"aeb-new-tooltip\"\n #tooltip\n>\n <div [innerHTML]=\"html || data\" class=\"aeb-new-tooltip__container\">\n </div>\n</div>", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-new-tooltip{background-color:var(--darkblue);position:fixed;opacity:0;pointer-events:none;border-radius:8px;transition:opacity,.2s;z-index:9999}.aeb-new-tooltip--open{opacity:1;animation:out .2s}.aeb-new-tooltip__container{width:100%;height:100%;position:relative;align-items:center;justify-content:center;padding:12px;font-size:14px;border-radius:8px;word-break:keep-all;white-space:nowrap;color:var(--white)}.aeb-new-tooltip--top .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);bottom:-5px;transform:rotate(45deg)}.aeb-new-tooltip--right .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:-5px;top:calc(50% - 5px);transform:rotate(45deg)}.aeb-new-tooltip--bottom .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);top:-5px;transform:rotate(45deg)}.aeb-new-tooltip--left .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);right:19px;top:calc(50% - 5px);transform:rotate(45deg)}\n"] }]
|
|
13
|
-
}], ctorParameters: function () { return []; }, propDecorators: { tooltip: [{
|
|
14
|
-
type: ViewChild,
|
|
15
|
-
args: ['tooltip']
|
|
16
|
-
}], data: [{
|
|
17
|
-
type: Input,
|
|
18
|
-
args: ['data']
|
|
19
|
-
}], html: [{
|
|
20
|
-
type: Input,
|
|
21
|
-
args: ['html']
|
|
22
|
-
}] } });
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ViewChild, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class NewTooltipComponent {
|
|
4
|
+
constructor() { }
|
|
5
|
+
ngOnInit() {
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
NewTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
NewTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NewTooltipComponent, selector: "aeb-new-tooltip", inputs: { data: "data", html: "html" }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: ["tooltip"], descendants: true }], ngImport: i0, template: "<div\r\n class=\"aeb-new-tooltip\"\r\n #tooltip\r\n>\r\n <div [innerHTML]=\"html || data\" class=\"aeb-new-tooltip__container\">\r\n </div>\r\n</div>", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-new-tooltip{background-color:var(--darkblue);position:fixed;opacity:0;pointer-events:none;border-radius:8px;transition:opacity,.2s;z-index:9999}.aeb-new-tooltip--open{opacity:1;animation:out .2s}.aeb-new-tooltip__container{width:100%;height:100%;position:relative;align-items:center;justify-content:center;padding:12px;font-size:14px;border-radius:8px;word-break:keep-all;white-space:nowrap;color:var(--white)}.aeb-new-tooltip--top .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);bottom:-5px;transform:rotate(45deg)}.aeb-new-tooltip--right .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:-5px;top:calc(50% - 5px);transform:rotate(45deg)}.aeb-new-tooltip--bottom .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);top:-5px;transform:rotate(45deg)}.aeb-new-tooltip--left .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);right:19px;top:calc(50% - 5px);transform:rotate(45deg)}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipComponent, decorators: [{
|
|
11
|
+
type: Component,
|
|
12
|
+
args: [{ selector: 'aeb-new-tooltip', encapsulation: ViewEncapsulation.None, template: "<div\r\n class=\"aeb-new-tooltip\"\r\n #tooltip\r\n>\r\n <div [innerHTML]=\"html || data\" class=\"aeb-new-tooltip__container\">\r\n </div>\r\n</div>", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-new-tooltip{background-color:var(--darkblue);position:fixed;opacity:0;pointer-events:none;border-radius:8px;transition:opacity,.2s;z-index:9999}.aeb-new-tooltip--open{opacity:1;animation:out .2s}.aeb-new-tooltip__container{width:100%;height:100%;position:relative;align-items:center;justify-content:center;padding:12px;font-size:14px;border-radius:8px;word-break:keep-all;white-space:nowrap;color:var(--white)}.aeb-new-tooltip--top .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);bottom:-5px;transform:rotate(45deg)}.aeb-new-tooltip--right .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:-5px;top:calc(50% - 5px);transform:rotate(45deg)}.aeb-new-tooltip--bottom .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);left:calc(50% - 16px);top:-5px;transform:rotate(45deg)}.aeb-new-tooltip--left .aeb-new-tooltip__container:before{content:\"\";position:absolute;width:10px;height:10px;background-color:var(--darkblue);right:19px;top:calc(50% - 5px);transform:rotate(45deg)}\n"] }]
|
|
13
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tooltip: [{
|
|
14
|
+
type: ViewChild,
|
|
15
|
+
args: ['tooltip']
|
|
16
|
+
}], data: [{
|
|
17
|
+
type: Input,
|
|
18
|
+
args: ['data']
|
|
19
|
+
}], html: [{
|
|
20
|
+
type: Input,
|
|
21
|
+
args: ['html']
|
|
22
|
+
}] } });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV3LXRvb2x0aXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL25ldy10b29sdGlwL25ldy10b29sdGlwLmNvbXBvbmVudC50cy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lbnRzIE9uSW5pdCB7XHJcbiAgQFZpZXdDaGlsZCAoJ3Rvb2x0aXAnKSB0b29sdGlwOiBIVE1MRGl2RWxlbWVudDtcclxuXHJcbiAgQElucHV0ICgnZGF0YScpIGRhdGE6IHN0cmluZztcclxuICBASW5wdXQgKCdodG1sJykgaHRtbDogSW5uZXJIVE1MO1xyXG4gXHJcbiAgY29uc3RydWN0b3IoKSB7IH1cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgfVxyXG5cclxufVxyXG4iLCI8ZGl2XHJcbiAgICBjbGFzcz1cImFlYi1uZXctdG9vbHRpcFwiXHJcbiAgICAjdG9vbHRpcFxyXG4+XHJcbiAgICA8ZGl2IFtpbm5lckhUTUxdPVwiaHRtbCB8fCBkYXRhXCIgY2xhc3M9XCJhZWItbmV3LXRvb2x0aXBfX2NvbnRhaW5lclwiPlxyXG4gICAgPC9kaXY+XHJcbjwvZGl2PiJdfQ==
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NewTooltipComponent } from './new-tooltip.component';
|
|
4
|
-
import { TooltipDirective } from './tooltip.directive';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class NewTooltipModule {
|
|
7
|
-
}
|
|
8
|
-
NewTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
-
NewTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, declarations: [NewTooltipComponent, TooltipDirective], imports: [CommonModule], exports: [NewTooltipComponent,
|
|
10
|
-
TooltipDirective] });
|
|
11
|
-
NewTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, imports: [[
|
|
12
|
-
CommonModule
|
|
13
|
-
]] });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, decorators: [{
|
|
15
|
-
type: NgModule,
|
|
16
|
-
args: [{
|
|
17
|
-
declarations: [NewTooltipComponent, TooltipDirective],
|
|
18
|
-
imports: [
|
|
19
|
-
CommonModule
|
|
20
|
-
],
|
|
21
|
-
exports: [
|
|
22
|
-
NewTooltipComponent,
|
|
23
|
-
TooltipDirective
|
|
24
|
-
]
|
|
25
|
-
}]
|
|
26
|
-
}] });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { NewTooltipComponent } from './new-tooltip.component';
|
|
4
|
+
import { TooltipDirective } from './tooltip.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class NewTooltipModule {
|
|
7
|
+
}
|
|
8
|
+
NewTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
NewTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, declarations: [NewTooltipComponent, TooltipDirective], imports: [CommonModule], exports: [NewTooltipComponent,
|
|
10
|
+
TooltipDirective] });
|
|
11
|
+
NewTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, imports: [[
|
|
12
|
+
CommonModule
|
|
13
|
+
]] });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewTooltipModule, decorators: [{
|
|
15
|
+
type: NgModule,
|
|
16
|
+
args: [{
|
|
17
|
+
declarations: [NewTooltipComponent, TooltipDirective],
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule
|
|
20
|
+
],
|
|
21
|
+
exports: [
|
|
22
|
+
NewTooltipComponent,
|
|
23
|
+
TooltipDirective
|
|
24
|
+
]
|
|
25
|
+
}]
|
|
26
|
+
}] });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV3LXRvb2x0aXAubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL25ldy10b29sdGlwL25ldy10b29sdGlwLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUM5RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7QUFjdkQsTUFBTSxPQUFPLGdCQUFnQjs7OEdBQWhCLGdCQUFnQjsrR0FBaEIsZ0JBQWdCLGlCQVRWLG1CQUFtQixFQUFFLGdCQUFnQixhQUVoRCxZQUFZLGFBR1osbUJBQW1CO1FBQ25CLGdCQUFnQjsrR0FHWCxnQkFBZ0IsWUFSaEI7WUFDTCxZQUFZO1NBQ2Y7NEZBTVEsZ0JBQWdCO2tCQVY1QixRQUFRO21CQUFDO29CQUNOLFlBQVksRUFBRSxDQUFDLG1CQUFtQixFQUFFLGdCQUFnQixDQUFDO29CQUNyRCxPQUFPLEVBQUU7d0JBQ0wsWUFBWTtxQkFDZjtvQkFDRCxPQUFPLEVBQUU7d0JBQ0wsbUJBQW1CO3dCQUNuQixnQkFBZ0I7cUJBQ25CO2lCQUNKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcclxuaW1wb3J0IHsgTmV3VG9vbHRpcENvbXBvbmVudCB9IGZyb20gJy4vbmV3LXRvb2x0aXAuY29tcG9uZW50JztcclxuaW1wb3J0IHsgVG9vbHRpcERpcmVjdGl2ZSB9IGZyb20gJy4vdG9vbHRpcC5kaXJlY3RpdmUnO1xyXG5cclxuXHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gICAgZGVjbGFyYXRpb25zOiBbTmV3VG9vbHRpcENvbXBvbmVudCwgVG9vbHRpcERpcmVjdGl2ZV0sXHJcbiAgICBpbXBvcnRzOiBbXHJcbiAgICAgICAgQ29tbW9uTW9kdWxlXHJcbiAgICBdLFxyXG4gICAgZXhwb3J0czogW1xyXG4gICAgICAgIE5ld1Rvb2x0aXBDb21wb25lbnQsXHJcbiAgICAgICAgVG9vbHRpcERpcmVjdGl2ZVxyXG4gICAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgTmV3VG9vbHRpcE1vZHVsZSB7IH1cclxuIl19
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Injectable, Inject } from '@angular/core';
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class DOMService {
|
|
5
|
-
constructor(document, componentFactoryResolver, injector, applicationRef, rendererFactory) {
|
|
6
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
7
|
-
this.injector = injector;
|
|
8
|
-
this.applicationRef = applicationRef;
|
|
9
|
-
this.renderer = rendererFactory.createRenderer(null, null);
|
|
10
|
-
this.document = document;
|
|
11
|
-
}
|
|
12
|
-
attachComponent(component, componentProps = null) {
|
|
13
|
-
const componentRef = this.componentFactoryResolver
|
|
14
|
-
.resolveComponentFactory(component)
|
|
15
|
-
.create(this.injector);
|
|
16
|
-
if (componentProps !== null && typeof componentRef.instance === 'object') {
|
|
17
|
-
Object.assign(componentRef.instance, componentProps);
|
|
18
|
-
}
|
|
19
|
-
this.applicationRef.attachView(componentRef.hostView);
|
|
20
|
-
const componentRootNode = componentRef.hostView.rootNodes[0];
|
|
21
|
-
this.renderer.appendChild(this.document.body, componentRootNode);
|
|
22
|
-
this.componentRef = componentRef;
|
|
23
|
-
return componentRef.instance;
|
|
24
|
-
}
|
|
25
|
-
removeComponent() {
|
|
26
|
-
this.applicationRef.detachView(this.componentRef.hostView);
|
|
27
|
-
this.componentRef.destroy();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DOMService, deps: [{ token: DOCUMENT }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
-
DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DOMService, providedIn: 'root' });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DOMService, decorators: [{
|
|
33
|
-
type: Injectable,
|
|
34
|
-
args: [{
|
|
35
|
-
providedIn: 'root'
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
38
|
-
type: Inject,
|
|
39
|
-
args: [DOCUMENT]
|
|
40
|
-
}] }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }, { type: i0.RendererFactory2 }]; } });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable, Inject } from '@angular/core';
|
|
2
|
+
import { DOCUMENT } from '@angular/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class DOMService {
|
|
5
|
+
constructor(document, componentFactoryResolver, injector, applicationRef, rendererFactory) {
|
|
6
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
7
|
+
this.injector = injector;
|
|
8
|
+
this.applicationRef = applicationRef;
|
|
9
|
+
this.renderer = rendererFactory.createRenderer(null, null);
|
|
10
|
+
this.document = document;
|
|
11
|
+
}
|
|
12
|
+
attachComponent(component, componentProps = null) {
|
|
13
|
+
const componentRef = this.componentFactoryResolver
|
|
14
|
+
.resolveComponentFactory(component)
|
|
15
|
+
.create(this.injector);
|
|
16
|
+
if (componentProps !== null && typeof componentRef.instance === 'object') {
|
|
17
|
+
Object.assign(componentRef.instance, componentProps);
|
|
18
|
+
}
|
|
19
|
+
this.applicationRef.attachView(componentRef.hostView);
|
|
20
|
+
const componentRootNode = componentRef.hostView.rootNodes[0];
|
|
21
|
+
this.renderer.appendChild(this.document.body, componentRootNode);
|
|
22
|
+
this.componentRef = componentRef;
|
|
23
|
+
return componentRef.instance;
|
|
24
|
+
}
|
|
25
|
+
removeComponent() {
|
|
26
|
+
this.applicationRef.detachView(this.componentRef.hostView);
|
|
27
|
+
this.componentRef.destroy();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DOMService, deps: [{ token: DOCUMENT }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
+
DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DOMService, providedIn: 'root' });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DOMService, decorators: [{
|
|
33
|
+
type: Injectable,
|
|
34
|
+
args: [{
|
|
35
|
+
providedIn: 'root'
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
38
|
+
type: Inject,
|
|
39
|
+
args: [DOCUMENT]
|
|
40
|
+
}] }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }, { type: i0.RendererFactory2 }]; } });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tc2VydmljZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL25ldy10b29sdGlwL3NlcnZpY2VzL2RvbXNlcnZpY2Uuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsVUFBVSxFQUNWLE1BQU0sRUFRUCxNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7O0FBSzNDLE1BQU0sT0FBTyxVQUFVO0lBUXJCLFlBQ29CLFFBQVEsRUFDbEIsd0JBQWtELEVBQ2xELFFBQWtCLEVBQ2xCLGNBQThCLEVBQ3RDLGVBQWlDO1FBSHpCLDZCQUF3QixHQUF4Qix3QkFBd0IsQ0FBMEI7UUFDbEQsYUFBUSxHQUFSLFFBQVEsQ0FBVTtRQUNsQixtQkFBYyxHQUFkLGNBQWMsQ0FBZ0I7UUFHdEMsSUFBSSxDQUFDLFFBQVEsR0FBRyxlQUFlLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztRQUMzRCxJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztJQUMzQixDQUFDO0lBRUQsZUFBZS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