@acorex/components 18.12.39 → 18.12.40
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/form/lib/validation-rule.directive.mjs +1 -1
- package/esm2022/notification/lib/notification.component.mjs +4 -4
- package/esm2022/notification/lib/notification.service.mjs +53 -36
- package/esm2022/toast/lib/toast.component.mjs +2 -2
- package/esm2022/toast/lib/toast.config.mjs +2 -1
- package/esm2022/toast/lib/toast.service.mjs +130 -36
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +54 -37
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +130 -35
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/form/lib/validation-rule.directive.d.ts +1 -1
- package/notification/lib/notification.component.d.ts +3 -3
- package/notification/lib/notification.service.d.ts +2 -0
- package/package.json +1 -1
- package/toast/lib/toast.component.d.ts +1 -1
- package/toast/lib/toast.config.d.ts +1 -0
- package/toast/lib/toast.service.d.ts +9 -1
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
33
33
|
}], message: [{
|
34
34
|
type: Input
|
35
35
|
}] } });
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi1ydWxlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9mb3JtL3NyYy9saWIvdmFsaWRhdGlvbi1ydWxlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUVoRSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBcUIsTUF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==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AXClosbaleComponent, MXBaseComponent } from '@acorex/components/common';
|
2
2
|
import { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';
|
3
3
|
import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
4
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Inject, TemplateRef, ViewEncapsulation } from '@angular/core';
|
4
|
+
import { ChangeDetectionStrategy, Component, HostBinding, Inject, TemplateRef, ViewEncapsulation, } from '@angular/core';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
import * as i1 from "@angular/cdk/dialog";
|
7
7
|
import * as i2 from "@angular/cdk/portal";
|
@@ -86,8 +86,8 @@ export class AXNotificationComponent extends MXBaseComponent {
|
|
86
86
|
return `ax-${this.config.color}`;
|
87
87
|
}
|
88
88
|
/**
|
89
|
-
|
90
|
-
|
89
|
+
* Closes the dialog and provides the component and HTML element for reference.
|
90
|
+
*/
|
91
91
|
close() {
|
92
92
|
this.dialogRef.close({
|
93
93
|
component: this,
|
@@ -107,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
107
107
|
type: HostBinding,
|
108
108
|
args: ['class']
|
109
109
|
}] } });
|
110
|
-
//# sourceMappingURL=data:application/json;base64,
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9ub3RpZmljYXRpb24vc3JjL2xpYi9ub3RpZmljYXRpb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL25vdGlmaWNhdGlvbi9zcmMvbGliL25vdGlmaWNhdGlvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lc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XMuX2ljb24gPSAnYXgtaWNvbiBheC1pY29uLWNoZWNrLWNpcmNsZSc7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgJ2Rhbmdlcic6XG4gICAgICAgICAgdGhpcy5faWNvbiA9ICdheC1pY29uIGF4LWljb24tZXJyb3InO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlICd3YXJuaW5nJzpcbiAgICAgICAgICB0aGlzLl9pY29uID0gJ2F4LWljb24gYXgtaWNvbi13YXJuaW5nJztcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnaW5mbyc6XG4gICAgICAgICAgdGhpcy5faWNvbiA9ICdheC1pY29uIGF4LWljb24taW5mbyc7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgdGhpcy5faWNvbiA9IHRoaXMuY29uZmlnLmljb24gfHwgJ2F4LWljb24gYXgtaWNvbi1jaGVjay1jaXJjbGUnO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLl9pY29uID0gdGhpcy5jb25maWcuaWNvbjtcbiAgICB9XG4gIH1cblxuICAvKiogQGlnbm9yZSAqL1xuICBwcm90ZWN0ZWQgX2hhbmRsZUJ1dHRvbkNsaWNrKGJ1dHRvbjogQVhOb3RpZmljYXRpb25CdXR0b25JdGVtKSB7XG4gICAgaWYgKGJ1dHRvbi5vbkNsaWNrKSB7XG4gICAgICBidXR0b24ub25DbGljayh7IHNvdXJjZTogYnV0dG9uIH0pO1xuICAgIH1cbiAgfVxuXG4gIC8qKiBAaWdub3JlICovXG4gIEBIb3N0QmluZGluZygnY2xhc3MnKVxuICBwcml2YXRlIGdldCBfX2hvc3RDbGFzcygpOiBzdHJpbmcge1xuICAgIHJldHVybiBgYXgtJHt0aGlzLmNvbmZpZy5jb2xvcn1gO1xuICB9XG5cbiAgLyoqXG4gICAqIENsb3NlcyB0aGUgZGlhb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dPVwiYnV0dG9uLmRpc2FibGVkXCIgKG9uQ2xpY2spPVwiX2hhbmRsZUJ1dHRvbkNsaWNrKGJ1dHRvbilcIj5cbiAgICAgIEBpZihidXR0b24ubG9hZGluZyl7XG4gICAgICA8YXgtbG9hZGluZz48L2F4LWxvYWRpbmc+XG4gICAgICB9XG4gICAgPC9heC1idXR0b24+XG4gICAgfVxuICA8L2Rpdj5cbiAgfVxuXG48L2Rpdj5cbkBpZihjb25maWcuY2xvc2VCdXR0b24pe1xuPGF4LWNsb3NlLWJ1dHRvbj48L2F4LWNsb3NlLWJ1dHRvbj5cbn1cbkBpZihjb25maWcudGltZU91dFByb2dyZXNzICYmIGNvbmZpZy50aW1lT3V0KXtcbjxkaXYgY2xhc3M9XCJheC1ub3RpZmljYXRpb24tcHJvZ3Jlc3NcIiBbc3R5bGUuYW5pbWF0aW9uLWR1cmF0aW9uLm1zXT1cImNvbmZpZy50aW1lT3V0XCI+PC9kaXY+XG59Il19
|
@@ -15,36 +15,8 @@ export class AXNotificationService {
|
|
15
15
|
location: this.defaultConfig.location,
|
16
16
|
}, config);
|
17
17
|
const gap = this.defaultConfig.gap;
|
18
|
-
let positionStrategy = new GlobalPositionStrategy();
|
19
18
|
const pos = this.getPosition(config.location) + gap + 'px';
|
20
|
-
|
21
|
-
case 'bottom-center':
|
22
|
-
positionStrategy = positionStrategy.bottom(pos).centerHorizontally();
|
23
|
-
break;
|
24
|
-
case 'bottom-end':
|
25
|
-
positionStrategy = positionStrategy.bottom(pos).right(gap + 'px');
|
26
|
-
break;
|
27
|
-
case 'bottom-start':
|
28
|
-
positionStrategy = positionStrategy.bottom(pos).left(gap + 'px');
|
29
|
-
break;
|
30
|
-
case 'top-center':
|
31
|
-
positionStrategy = positionStrategy.top(pos).centerHorizontally();
|
32
|
-
break;
|
33
|
-
case 'top-end':
|
34
|
-
positionStrategy = positionStrategy.top(pos).right(gap + 'px');
|
35
|
-
break;
|
36
|
-
case 'top-start':
|
37
|
-
positionStrategy = positionStrategy.top(pos).left(gap + 'px');
|
38
|
-
break;
|
39
|
-
case 'center-start':
|
40
|
-
positionStrategy = positionStrategy.centerVertically().left(gap + 'px');
|
41
|
-
break;
|
42
|
-
case 'center-end':
|
43
|
-
positionStrategy = positionStrategy.centerVertically().right(gap + 'px');
|
44
|
-
break;
|
45
|
-
default:
|
46
|
-
break;
|
47
|
-
}
|
19
|
+
const positionStrategy = this.getPositionStrategy(new GlobalPositionStrategy(), config.location, pos, gap);
|
48
20
|
const dialogRef = this.dialog.open(AXNotificationComponent, {
|
49
21
|
data: config,
|
50
22
|
autoFocus: '__no_element__',
|
@@ -55,11 +27,11 @@ export class AXNotificationService {
|
|
55
27
|
closeOnDestroy: true,
|
56
28
|
hasBackdrop: false,
|
57
29
|
panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],
|
58
|
-
positionStrategy
|
30
|
+
positionStrategy,
|
59
31
|
});
|
60
32
|
const toastRef = dialogRef.componentInstance;
|
61
33
|
dialogRef.closed.subscribe(() => {
|
62
|
-
this.reposition();
|
34
|
+
this.reposition(toastRef.config.location, gap);
|
63
35
|
});
|
64
36
|
return {
|
65
37
|
close: () => {
|
@@ -70,8 +42,27 @@ export class AXNotificationService {
|
|
70
42
|
hideAll() {
|
71
43
|
this.dialog.closeAll();
|
72
44
|
}
|
73
|
-
reposition() {
|
74
|
-
|
45
|
+
reposition(toastLocation, gap) {
|
46
|
+
const list = this.dialog.openDialogs
|
47
|
+
.map((c) => c.componentInstance)
|
48
|
+
.filter((c) => c.config?.location == toastLocation);
|
49
|
+
list.forEach((element, index) => {
|
50
|
+
const pos = this.getRepositionPosition(index, gap, list, toastLocation);
|
51
|
+
this.getPositionStrategy(element.dialogRef.config.positionStrategy, toastLocation, pos, gap).apply();
|
52
|
+
});
|
53
|
+
}
|
54
|
+
getRepositionPosition(index, gap, list, toastLocation) {
|
55
|
+
if (index === 0) {
|
56
|
+
return gap + 'px';
|
57
|
+
}
|
58
|
+
const previouseElement = list[index - 1];
|
59
|
+
if (toastLocation.split('-')[0] == 'bottom') {
|
60
|
+
return window.innerHeight - previouseElement.getHostElement().offsetTop + gap + 'px';
|
61
|
+
}
|
62
|
+
return (previouseElement.getHostElement().offsetTop +
|
63
|
+
previouseElement.getHostElement().offsetHeight +
|
64
|
+
gap +
|
65
|
+
'px');
|
75
66
|
}
|
76
67
|
getPosition(location) {
|
77
68
|
const list = this.dialog.openDialogs
|
@@ -82,8 +73,34 @@ export class AXNotificationService {
|
|
82
73
|
if (location.split('-')[0] == 'bottom') {
|
83
74
|
return window.innerHeight - list[list.length - 1].getHostElement().offsetTop;
|
84
75
|
}
|
85
|
-
|
86
|
-
|
76
|
+
return (list[list.length - 1].getHostElement().offsetTop + list[list.length - 1].getHostElement().offsetHeight);
|
77
|
+
}
|
78
|
+
getPositionStrategy(positionStrategy, location, pos, gap) {
|
79
|
+
switch (location) {
|
80
|
+
case 'bottom-center':
|
81
|
+
return positionStrategy.bottom(pos).centerHorizontally();
|
82
|
+
break;
|
83
|
+
case 'bottom-end':
|
84
|
+
return positionStrategy.bottom(pos).right(gap + 'px');
|
85
|
+
break;
|
86
|
+
case 'bottom-start':
|
87
|
+
return positionStrategy.bottom(pos).left(gap + 'px');
|
88
|
+
break;
|
89
|
+
case 'top-center':
|
90
|
+
return positionStrategy.top(pos).centerHorizontally();
|
91
|
+
break;
|
92
|
+
case 'top-end':
|
93
|
+
return positionStrategy.top(pos).right(gap + 'px');
|
94
|
+
break;
|
95
|
+
case 'top-start':
|
96
|
+
return positionStrategy.top(pos).left(gap + 'px');
|
97
|
+
break;
|
98
|
+
case 'center-start':
|
99
|
+
return positionStrategy.centerVertically().left(gap + 'px');
|
100
|
+
break;
|
101
|
+
case 'center-end':
|
102
|
+
return positionStrategy.centerVertically().right(gap + 'px');
|
103
|
+
break;
|
87
104
|
}
|
88
105
|
}
|
89
106
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
@@ -92,4 +109,4 @@ export class AXNotificationService {
|
|
92
109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNotificationService, decorators: [{
|
93
110
|
type: Injectable
|
94
111
|
}] });
|
95
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbm90aWZpY2F0aW9uL3NyYy9saWIvbm90aWZpY2F0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5ELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ25FLE9BQU8sRUFBd0Isc0JBQXNCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFHckYsTUFBTSxPQUFPLHFCQUFxQjtJQURsQztRQUVVLFdBQU0sR0FBVyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDaEMsa0JBQWEsR0FBeUIsTUFBTSxDQUFDLHNCQUFzQixDQUFDLENBQUM7S0F1RjlFO0lBckZDLElBQUksQ0FBQyxNQUFtQztRQUN0QyxNQUFNLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FDcEI7WUFDRSxXQUFXLEVBQUUsSUFBSTtZQUNqQixRQUFRLEVBQUUsSUFBSSxDQUFDLGFBQWE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XR1cm4gcG9zaXRpb25TdHJhdGVneS50b3AocG9zKS5sZWZ0KGdhcCArICdweCcpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2NlbnRlci1zdGFydCc6XG4gICAgICAgIHJldHVybiBwb3NpdGlvblN0cmF0ZWd5LmNlbnRlclZlcnRpY2FsbHkoKS5sZWZ0KGdhcCArICdweCcpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2NlbnRlci1lbmQnOlxuICAgICAgICByZXR1cm4gcG9zaXRpb25TdHJhdGVneS5jZW50ZXJWZXJ0aWNhbGx5KCkucmlnaHQoZ2FwICsgJ3B4Jyk7XG4gICAgICAgIGJyZWFrO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AXClosbaleComponent, MXBaseComponent } from '@acorex/components/common';
|
2
2
|
import { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';
|
3
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Inject, ViewEncapsulation } from '@angular/core';
|
3
|
+
import { ChangeDetectionStrategy, Component, HostBinding, Inject, ViewEncapsulation, } from '@angular/core';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "@angular/cdk/dialog";
|
6
6
|
import * as i2 from "@acorex/components/decorators";
|
@@ -83,4 +83,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
83
83
|
type: HostBinding,
|
84
84
|
args: ['class']
|
85
85
|
}] } });
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3RvYXN0L3NyYy9saWIvdG9hc3QuY29tcG9uZW50LnRzIiwiLi4vLi4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JvZ3Jlc3MgJiYgY29uZmlnLnRpbWVPdXQpe1xuPGRpdiBjbGFzcz1cImF4LXRvYXN0LXByb2dyZXNzXCIgW3N0eWxlLmFuaW1hdGlvbi1kdXJhdGlvbi5tc109XCJjb25maWcudGltZU91dFwiPjwvZGl2PlxufSJdfQ==
|
@@ -14,6 +14,7 @@ export const AXToastDefaultConfig = {
|
|
14
14
|
timeOut: 2500,
|
15
15
|
timeOutProgress: true,
|
16
16
|
location: 'bottom-center',
|
17
|
+
limit: 3,
|
17
18
|
};
|
18
19
|
export function toastConfig(config = {}) {
|
19
20
|
const result = {
|
@@ -22,4 +23,4 @@ export function toastConfig(config = {}) {
|
|
22
23
|
};
|
23
24
|
return result;
|
24
25
|
}
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3RvYXN0L3NyYy9saWIvdG9hc3QuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZELE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFVaEMsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHLElBQUksY0FBYyxDQUFnQixpQkFBaUIsRUFBRTtJQUNsRixVQUFVLEVBQUUsTUFBTTtJQUNsQixPQUFPLEVBQUUsR0FBRyxFQUFFO1FBQ1osTUFBTSxNQUFNLEdBQUcsTUFBTSxDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFDeEMsR0FBRy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0FTVF9DT05GSUcnLCB7XG4gIHByb3ZpZGVkSW46ICdyb290JyxcbiAgZmFjdG9yeTogKCkgPT4ge1xuICAgIGNvbnN0IGdsb2JhbCA9IGluamVjdChBWF9HTE9CQUxfQ09ORklHKTtcbiAgICBzZXQoZ2xvYmFsLCAnbGF5b3V0LnRvYXN0JywgQVhfVE9BU1RfQ09ORklHKTtcbiAgICByZXR1cm4gQVhUb2FzdERlZmF1bHRDb25maWc7XG4gIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IEFYVG9hc3REZWZhdWx0Q29uZmlnOiBBWFRvYXN0Q29uZmlnID0ge1xuICBnYXA6IDUsXG4gIHRpbWVPdXQ6IDI1MDAsXG4gIHRpbWVPdXRQcm9ncmVzczogdHJ1ZSxcbiAgbG9jYXRpb246ICdib3R0b20tY2VudGVyJyxcbiAgbGltaXQ6IDMsXG59O1xuXG5leHBvcnQgdHlwZSBQYXJ0aWFsVG9hc3RDb25maWcgPSBQYXJ0aWFsPEFYVG9hc3RDb25maWc+O1xuXG5leHBvcnQgZnVuY3Rpb24gdG9hc3RDb25maWcoY29uZmlnOiBQYXJ0aWFsVG9hc3RDb25maWcgPSB7fSk6IEFYVG9hc3RDb25maWcge1xuICBjb25zdCByZXN1bHQgPSB7XG4gICAgLi4uQVhUb2FzdERlZmF1bHRDb25maWcsXG4gICAgLi4uY29uZmlnLFxuICB9O1xuICByZXR1cm4gcmVzdWx0O1xufVxuIl19
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dialog } from '@angular/cdk/dialog';
|
2
2
|
import { GlobalPositionStrategy, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
3
|
-
import { Injectable, inject } from '@angular/core';
|
3
|
+
import { Injectable, effect, inject, signal } from '@angular/core';
|
4
4
|
import { AXToastComponent } from './toast.component';
|
5
5
|
import { AX_TOAST_CONFIG } from './toast.config';
|
6
6
|
import * as i0 from "@angular/core";
|
@@ -10,7 +10,36 @@ export class AXToastService {
|
|
10
10
|
this.scrollStrategyOptions = scrollStrategyOptions;
|
11
11
|
this.dialog = inject(Dialog);
|
12
12
|
this.defaultConfig = inject(AX_TOAST_CONFIG);
|
13
|
+
this.activeToasts = signal([]);
|
14
|
+
this.reservedToasts = signal([]);
|
15
|
+
this.toastCounterElement = signal(null);
|
16
|
+
this.reserveCounter = signal(0);
|
17
|
+
this.moreToastsColor = signal('primary');
|
13
18
|
this.scrollStrategy = this.scrollStrategyOptions.noop();
|
19
|
+
if (this.defaultConfig.limit) {
|
20
|
+
effect(() => {
|
21
|
+
if (this.activeToasts().length <= this.defaultConfig.limit - 1 && this.reservedToasts().length) {
|
22
|
+
this.show(this.reservedToasts()[0]);
|
23
|
+
this.reservedToasts.update((value) => {
|
24
|
+
const arr = [...value];
|
25
|
+
arr.shift();
|
26
|
+
return arr;
|
27
|
+
});
|
28
|
+
}
|
29
|
+
if (this.reservedToasts().length !== this.reserveCounter()) {
|
30
|
+
this.reserveCounter.set(this.reservedToasts().length);
|
31
|
+
if (this.toastCounterElement() !== null) {
|
32
|
+
this.toastCounterElement().close();
|
33
|
+
}
|
34
|
+
this.createReservedCounterToast();
|
35
|
+
}
|
36
|
+
if (this.reserveCounter() === 0) {
|
37
|
+
if (this.toastCounterElement() !== null) {
|
38
|
+
this.toastCounterElement().close();
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}, { allowSignalWrites: true });
|
42
|
+
}
|
14
43
|
}
|
15
44
|
primary(content) {
|
16
45
|
this.show({
|
@@ -52,35 +81,18 @@ export class AXToastService {
|
|
52
81
|
closeButton: true,
|
53
82
|
location: this.defaultConfig.location ?? 'bottom-center',
|
54
83
|
}, config);
|
84
|
+
this.moreToastsColor.set(opt.color);
|
85
|
+
if (this.defaultConfig.limit) {
|
86
|
+
if (this.activeToasts().length >= this.defaultConfig.limit) {
|
87
|
+
this.reservedToasts.update((value) => {
|
88
|
+
return [...value, opt];
|
89
|
+
});
|
90
|
+
return;
|
91
|
+
}
|
92
|
+
}
|
55
93
|
const gap = this.defaultConfig.gap;
|
56
|
-
let positionStrategy = new GlobalPositionStrategy();
|
57
94
|
const pos = this.getPosition(opt.location) + gap + 'px';
|
58
|
-
|
59
|
-
case 'bottom-center':
|
60
|
-
positionStrategy = positionStrategy.bottom(pos).centerHorizontally();
|
61
|
-
break;
|
62
|
-
case 'bottom-end':
|
63
|
-
positionStrategy = positionStrategy.bottom(pos).right(gap + 'px');
|
64
|
-
break;
|
65
|
-
case 'bottom-start':
|
66
|
-
positionStrategy = positionStrategy.bottom(pos).left(gap + 'px');
|
67
|
-
break;
|
68
|
-
case 'top-center':
|
69
|
-
positionStrategy = positionStrategy.top(pos).centerHorizontally();
|
70
|
-
break;
|
71
|
-
case 'top-end':
|
72
|
-
positionStrategy = positionStrategy.top(pos).right(gap + 'px');
|
73
|
-
break;
|
74
|
-
case 'top-start':
|
75
|
-
positionStrategy = positionStrategy.top(pos).left(gap + 'px');
|
76
|
-
break;
|
77
|
-
case 'center-start':
|
78
|
-
positionStrategy = positionStrategy.centerVertically().left(gap + 'px');
|
79
|
-
break;
|
80
|
-
case 'center-end':
|
81
|
-
positionStrategy = positionStrategy.centerVertically().right(gap + 'px');
|
82
|
-
break;
|
83
|
-
}
|
95
|
+
const positionStrategy = this.getPositionStrategy(new GlobalPositionStrategy(), opt.location, pos, gap);
|
84
96
|
const dialogRef = this.dialog.open(AXToastComponent, {
|
85
97
|
data: opt,
|
86
98
|
autoFocus: '__no_element__',
|
@@ -91,12 +103,20 @@ export class AXToastService {
|
|
91
103
|
closeOnDestroy: true,
|
92
104
|
hasBackdrop: false,
|
93
105
|
panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],
|
94
|
-
positionStrategy
|
106
|
+
positionStrategy,
|
95
107
|
scrollStrategy: this.scrollStrategy,
|
96
108
|
});
|
109
|
+
this.activeToasts.update((value) => {
|
110
|
+
return [...value, dialogRef.id];
|
111
|
+
});
|
97
112
|
const toastRef = dialogRef.componentInstance;
|
98
113
|
dialogRef.closed.subscribe(() => {
|
99
|
-
this.
|
114
|
+
this.activeToasts.update((value) => {
|
115
|
+
return [...value].filter((dialogID) => dialogID !== dialogRef.id);
|
116
|
+
});
|
117
|
+
setTimeout(() => {
|
118
|
+
this.reposition(opt.location, gap);
|
119
|
+
}, 0);
|
100
120
|
});
|
101
121
|
return {
|
102
122
|
close: () => {
|
@@ -107,18 +127,92 @@ export class AXToastService {
|
|
107
127
|
hideAll() {
|
108
128
|
this.dialog.closeAll();
|
109
129
|
}
|
110
|
-
|
111
|
-
|
130
|
+
createReservedCounterToast() {
|
131
|
+
const opt = {
|
132
|
+
closeButton: false,
|
133
|
+
color: this.moreToastsColor(),
|
134
|
+
location: 'bottom-center',
|
135
|
+
title: `And ${this.reserveCounter()} more...`,
|
136
|
+
timeOutProgress: false,
|
137
|
+
};
|
138
|
+
const gap = this.defaultConfig.gap;
|
139
|
+
const pos = this.getPosition(opt.location) + gap + 'px';
|
140
|
+
const positionStrategy = this.getPositionStrategy(new GlobalPositionStrategy(), opt.location, pos, gap);
|
141
|
+
const dialogRef = this.dialog.open(AXToastComponent, {
|
142
|
+
data: opt,
|
143
|
+
autoFocus: '__no_element__',
|
144
|
+
restoreFocus: true,
|
145
|
+
role: 'dialog',
|
146
|
+
ariaModal: true,
|
147
|
+
closeOnNavigation: true,
|
148
|
+
closeOnDestroy: true,
|
149
|
+
hasBackdrop: false,
|
150
|
+
panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],
|
151
|
+
positionStrategy,
|
152
|
+
scrollStrategy: this.scrollStrategy,
|
153
|
+
});
|
154
|
+
this.toastCounterElement.set(dialogRef.componentInstance);
|
155
|
+
}
|
156
|
+
reposition(toastLocation, gap) {
|
157
|
+
const list = this.dialog.openDialogs
|
158
|
+
.map((c) => c.componentInstance)
|
159
|
+
.filter((c) => c.config?.location == toastLocation);
|
160
|
+
list.forEach((element, index) => {
|
161
|
+
const pos = this.getRepositionPosition(index, gap, list, toastLocation);
|
162
|
+
console.log(index, element);
|
163
|
+
this.getPositionStrategy(element.dialogRef.config.positionStrategy, toastLocation, pos, gap).apply();
|
164
|
+
});
|
165
|
+
}
|
166
|
+
getRepositionPosition(index, gap, list, toastLocation) {
|
167
|
+
if (index === 0) {
|
168
|
+
return gap + 'px';
|
169
|
+
}
|
170
|
+
const previouseElement = list[index - 1];
|
171
|
+
if (toastLocation.split('-')[0] == 'bottom') {
|
172
|
+
return window.innerHeight - previouseElement.getHostElement().offsetTop + gap + 'px';
|
173
|
+
}
|
174
|
+
return (previouseElement.getHostElement().offsetTop +
|
175
|
+
previouseElement.getHostElement().offsetHeight +
|
176
|
+
gap +
|
177
|
+
'px');
|
112
178
|
}
|
113
179
|
getPosition(location) {
|
114
|
-
const list = this.dialog.openDialogs
|
180
|
+
const list = this.dialog.openDialogs
|
181
|
+
.map((c) => c.componentInstance)
|
182
|
+
.filter((c) => c.config?.location == location);
|
115
183
|
if (list.length == 0)
|
116
184
|
return 0;
|
117
185
|
if (location.split('-')[0] == 'bottom') {
|
118
186
|
return window.innerHeight - list[list.length - 1].getHostElement().offsetTop;
|
119
187
|
}
|
120
|
-
|
121
|
-
|
188
|
+
return (list[list.length - 1].getHostElement().offsetTop + list[list.length - 1].getHostElement().offsetHeight);
|
189
|
+
}
|
190
|
+
getPositionStrategy(positionStrategy, location, pos, gap) {
|
191
|
+
switch (location) {
|
192
|
+
case 'bottom-center':
|
193
|
+
return positionStrategy.bottom(pos).centerHorizontally();
|
194
|
+
break;
|
195
|
+
case 'bottom-end':
|
196
|
+
return positionStrategy.bottom(pos).right(gap + 'px');
|
197
|
+
break;
|
198
|
+
case 'bottom-start':
|
199
|
+
return positionStrategy.bottom(pos).left(gap + 'px');
|
200
|
+
break;
|
201
|
+
case 'top-center':
|
202
|
+
return positionStrategy.top(pos).centerHorizontally();
|
203
|
+
break;
|
204
|
+
case 'top-end':
|
205
|
+
return positionStrategy.top(pos).right(gap + 'px');
|
206
|
+
break;
|
207
|
+
case 'top-start':
|
208
|
+
return positionStrategy.top(pos).left(gap + 'px');
|
209
|
+
break;
|
210
|
+
case 'center-start':
|
211
|
+
return positionStrategy.centerVertically().left(gap + 'px');
|
212
|
+
break;
|
213
|
+
case 'center-end':
|
214
|
+
return positionStrategy.centerVertically().right(gap + 'px');
|
215
|
+
break;
|
122
216
|
}
|
123
217
|
}
|
124
218
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXToastService, deps: [{ token: i1.ScrollStrategyOptions }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
@@ -127,4 +221,4 @@ export class AXToastService {
|
|
127
221
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXToastService, decorators: [{
|
128
222
|
type: Injectable
|
129
223
|
}], ctorParameters: () => [{ type: i1.ScrollStrategyOptions }] });
|
130
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3Quc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy90b2FzdC9zcmMvbGliL3RvYXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxzQkFBc0IsRUFBa0IscUJBQXFCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNyRyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVuRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNyRCxPQUFPLEVBQWlCLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFHaEUsTUFBTSxPQUFPLG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uc2hvdyh7XG4gICAgICB0aW1lT3V0OiB0aGlzLmRlZmF1bHRDb25maWcudGltZU91dCxcbiAgICAgIGNvbG9yOiAnc3VjY2VzcycsXG4gICAgICBjb250ZW50OiBjb250ZW50LFxuICAgIH0pO1xuICB9XG5cbiAgd2FybmluZyhjb250ZW50OiBzdHJpbmcpIHtcbiAgICB0aGlzLnNob3coe1xuICAgICAgdGltZU91dDogdGhpcy5kZWZhdWx0Q29uZmlnLnRpbWVPdXQsXG4gICAgICBjb2xvcjogJ3dhcm5pbmcnLFxuICAgICAgY29udGVudDogY29udGVudCxcbiAgICB9KTtcbiAgfVxuICBkYW5nZXIoY29udGVudDogc3RyaW5nKSB7XG4gICAgdGhpcy5zaG93KHtcbiAgICAgIHRpbWVPdXQ6IHRoaXMuZGVmYXVsdENvbmZpZy50aW1lT3V0LFxuICAgICAgY29sb3I6ICdkYW5nZXInLFxuICAgICAgY29udGVudDogY29udGVudCxcbiAgICB9KTtcbiAgfVxuICBzaG93KGNvbmZpZzogQVhUb2FzdERpc3BsYXlDb25maWcpOiBBWFRvYXN0UmVmIHtcbiAgICBjb25zdCBvcHQgPSBPYmplY3QuYXNzaWduKFxuICAgICAge1xuICAgICAgICBjbG9zZUJ1dHRvbjogdHJ1ZSxcbiAgICAgICAgbG9jYXRpb246IHRoaXMuZGVmYXVsdENvbmZpZy5sb2NhdGlvbiA/PyAnYm90dG9tLWNlbnRlcicsXG4gICAgICB9LFxuICAgICAgY29uZmlnLFxuICAgICk7XG4gICAgY29uc3QgZ2FwID0gdGhpcy5kZWZhdWx0Q29uZmlnLmdhcDtcblxuICAgIGxldCBwb3NpdGlvblN0cmF0ZWd5ID0gbmV3IEdsb2JhbFBvc2l0aW9uU3RyYXRlZ3koKTtcbiAgICBjb25zdCBwb3MgPSB0aGlzLmdldFBvc2l0aW9uKG9wdC5sb2NhdGlvbikgKyBnYXAgKyAncHgnO1xuICAgIHN3aXRjaCAob3B0LmxvY2F0aW9uKSB7XG4gICAgICBjY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AgIGFyci5zaGlmdCgpO1xuICAgICAgICAgICAgICByZXR1cm4gYXJyO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmICh0aGlzLnJlc2VydmVkVG9hc3RzKCkubGVuZ3RoICE9PSB0aGlzLnJlc2VydmVDb3VudGVyKCkpIHtcbiAgICAgICAgICAgIHRoaXMucmVzZXJ2ZUNvdW50ZXIuc2V0KHRoaXMucmVzZXJ2ZWRUb2FzdHMoKS5sZW5ndGgpO1xuICAgICAgICAgICAgaWYgKHRoaXMudG9hc3RDb3VudGVyRWxlbWVudCgpICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgIHRoaXMudG9hc3RDb3VudGVyRWxlbWVudCgpLmNsb3NlKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLmNyZWF0ZVJlc2VydmVkQ291bnRlclRvYXN0KCk7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmICh0aGlzLnJlc2VydmVDb3VudGVyKCkgPT09IDApIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnRvYXN0Q291bnRlckVsZW1lbnQoKSAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICB0aGlzLnRvYXN0Q291bnRlckVsZW1lbnQoKS5jbG9zZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgeyBhbGxvd1NpZ25hbFdyaXRlczogdHJ1ZSB9LFxuICAgICAgKTtcbiAgICB9XG4gIH1cblxuICBwcmltYXJ5KGNvbnRlbnQ6IHN0cmluZykge1xuICAgIHRoaXMuc2hvdyh7XG4gICAgICB0aW1lT3V0OiB0aGlzLmRlZmF1bHRDb25maWcudGltZU91dCxcbiAgICAgIGNvbG9yOiAncHJpbWFyeScsXG4gICAgICBjb250ZW50OiBjb250ZW50LFxuICAgIH0pO1xuICB9XG4gIHNlY29uZGFyeShjb250ZW50OiBzdHJpbmcpIHtcbiAgICB0aGlzLnNob3coe1xu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