aeb-ui-kit 0.0.118 → 0.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aeb-ui-kit.metadata.json +1 -1
- package/bundles/aeb-ui-kit.umd.js +7 -2
- package/bundles/aeb-ui-kit.umd.js.map +1 -1
- package/bundles/aeb-ui-kit.umd.min.js +1 -1
- package/bundles/aeb-ui-kit.umd.min.js.map +1 -1
- package/esm2015/lib/new-notifications/new-notifications.component.js +8 -3
- package/fesm2015/aeb-ui-kit.js +7 -2
- package/fesm2015/aeb-ui-kit.js.map +1 -1
- package/lib/new-notifications/new-notifications.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -4,12 +4,16 @@ export class NewNotificationsComponent {
|
|
|
4
4
|
constructor(dom) {
|
|
5
5
|
this.dom = dom;
|
|
6
6
|
this.close = new EventEmitter();
|
|
7
|
+
this.clickItem = new EventEmitter();
|
|
7
8
|
}
|
|
8
9
|
ngOnInit() {
|
|
9
10
|
}
|
|
10
11
|
handleClose(id) {
|
|
11
12
|
this.close.emit(id);
|
|
12
13
|
}
|
|
14
|
+
handleItemClick(id) {
|
|
15
|
+
this.clickItem.emit(id);
|
|
16
|
+
}
|
|
13
17
|
bypassURL(url) {
|
|
14
18
|
return this.dom.bypassSecurityTrustResourceUrl(url);
|
|
15
19
|
}
|
|
@@ -17,7 +21,7 @@ export class NewNotificationsComponent {
|
|
|
17
21
|
NewNotificationsComponent.decorators = [
|
|
18
22
|
{ type: Component, args: [{
|
|
19
23
|
selector: 'aeb-new-notifications',
|
|
20
|
-
template: "<div\r\n class=\"aeb-new-notifications\"\r\n *ngIf=\"notifications.length\"\r\n>\r\n <div\r\n *ngFor=\"let item of notifications\"\r\n class=\"aeb-new-notifications__item\"\r\n >\r\n <div class=\"aeb-new-notifications__icon\">\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",
|
|
24
|
+
template: "<div\r\n class=\"aeb-new-notifications\"\r\n *ngIf=\"notifications.length\"\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 <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",
|
|
21
25
|
encapsulation: ViewEncapsulation.None,
|
|
22
26
|
styles: [".aeb-new-notifications{position:fixed;z-index:1500;top:80px;right:30px}.aeb-new-notifications__item{display:flex;width:324px;height:auto;min-height:76px;justify-content:space-between;border-radius:8px;background-color:var(--darkblue);padding:16px;box-sizing:border-box}.aeb-new-notifications__item:not(:last-child){margin-bottom:12px}.aeb-new-notifications__icon{flex:0;width:36px;height:36px}.aeb-new-notifications__info{width:100%;margin-left:16px}.aeb-new-notifications__header{flex:auto;word-break:break-all;color:var(--white);font-size:16px;font-weight:500;margin-bottom:8px}.aeb-new-notifications__info{color:var(--white);font-size:14px}.aeb-new-notifications__close{flex:0;top:16px;right:16px;cursor:pointer}"]
|
|
23
27
|
},] }
|
|
@@ -27,6 +31,7 @@ NewNotificationsComponent.ctorParameters = () => [
|
|
|
27
31
|
];
|
|
28
32
|
NewNotificationsComponent.propDecorators = {
|
|
29
33
|
notifications: [{ type: Input }],
|
|
30
|
-
close: [{ type: Output }]
|
|
34
|
+
close: [{ type: Output }],
|
|
35
|
+
clickItem: [{ type: Output }]
|
|
31
36
|
};
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV3LW5vdGlmaWNhdGlvbnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWViLXVpLWtpdC9zcmMvbGliL25ldy1ub3RpZmljYXRpb25zL25ldy1ub3RpZmljYXRpb25zLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULEtBQUssRUFDTCxNQUFNLEVBQ04sWU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l0KGlkKTtcclxuICB9XHJcblxyXG4gIGhhbmRsZUl0ZW1DbGljayhpZDogc3RyaW5nKTogdm9pZCB7XHJcbiAgICB0aGlzLmNsaWNrSXRlbS5lbWl0KGlkKTtcclxuICB9XHJcblxyXG5cclxuICBieXBhc3NVUkwodXJsOiBzdHJpbmcpOiBTYWZlVXJsIHtcclxuICAgIHJldHVybiB0aGlzLmRvbS5ieXBhc3NTZWN1cml0eVRydXN0UmVzb3VyY2VVcmwodXJsKTtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
package/fesm2015/aeb-ui-kit.js
CHANGED
|
@@ -2082,12 +2082,16 @@ class NewNotificationsComponent {
|
|
|
2082
2082
|
constructor(dom) {
|
|
2083
2083
|
this.dom = dom;
|
|
2084
2084
|
this.close = new EventEmitter();
|
|
2085
|
+
this.clickItem = new EventEmitter();
|
|
2085
2086
|
}
|
|
2086
2087
|
ngOnInit() {
|
|
2087
2088
|
}
|
|
2088
2089
|
handleClose(id) {
|
|
2089
2090
|
this.close.emit(id);
|
|
2090
2091
|
}
|
|
2092
|
+
handleItemClick(id) {
|
|
2093
|
+
this.clickItem.emit(id);
|
|
2094
|
+
}
|
|
2091
2095
|
bypassURL(url) {
|
|
2092
2096
|
return this.dom.bypassSecurityTrustResourceUrl(url);
|
|
2093
2097
|
}
|
|
@@ -2095,7 +2099,7 @@ class NewNotificationsComponent {
|
|
|
2095
2099
|
NewNotificationsComponent.decorators = [
|
|
2096
2100
|
{ type: Component, args: [{
|
|
2097
2101
|
selector: 'aeb-new-notifications',
|
|
2098
|
-
template: "<div\r\n class=\"aeb-new-notifications\"\r\n *ngIf=\"notifications.length\"\r\n>\r\n <div\r\n *ngFor=\"let item of notifications\"\r\n class=\"aeb-new-notifications__item\"\r\n >\r\n <div class=\"aeb-new-notifications__icon\">\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",
|
|
2102
|
+
template: "<div\r\n class=\"aeb-new-notifications\"\r\n *ngIf=\"notifications.length\"\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 <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",
|
|
2099
2103
|
encapsulation: ViewEncapsulation.None,
|
|
2100
2104
|
styles: [".aeb-new-notifications{position:fixed;z-index:1500;top:80px;right:30px}.aeb-new-notifications__item{display:flex;width:324px;height:auto;min-height:76px;justify-content:space-between;border-radius:8px;background-color:var(--darkblue);padding:16px;box-sizing:border-box}.aeb-new-notifications__item:not(:last-child){margin-bottom:12px}.aeb-new-notifications__icon{flex:0;width:36px;height:36px}.aeb-new-notifications__info{width:100%;margin-left:16px}.aeb-new-notifications__header{flex:auto;word-break:break-all;color:var(--white);font-size:16px;font-weight:500;margin-bottom:8px}.aeb-new-notifications__info{color:var(--white);font-size:14px}.aeb-new-notifications__close{flex:0;top:16px;right:16px;cursor:pointer}"]
|
|
2101
2105
|
},] }
|
|
@@ -2105,7 +2109,8 @@ NewNotificationsComponent.ctorParameters = () => [
|
|
|
2105
2109
|
];
|
|
2106
2110
|
NewNotificationsComponent.propDecorators = {
|
|
2107
2111
|
notifications: [{ type: Input }],
|
|
2108
|
-
close: [{ type: Output }]
|
|
2112
|
+
close: [{ type: Output }],
|
|
2113
|
+
clickItem: [{ type: Output }]
|
|
2109
2114
|
};
|
|
2110
2115
|
|
|
2111
2116
|
class NewNotificationsModule {
|