@acorex/components 18.12.39 → 18.12.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dialog/lib/dialog.component.d.ts +11 -11
  2. package/dialog/lib/dialog.service.d.ts +2 -2
  3. package/esm2022/common/lib/types/placement.mjs +8 -2
  4. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +3 -3
  5. package/esm2022/dialog/lib/dialog.component.mjs +12 -12
  6. package/esm2022/dialog/lib/dialog.service.mjs +5 -5
  7. package/esm2022/form/lib/validation-rule.directive.mjs +1 -1
  8. package/esm2022/notification/lib/notification.component.mjs +4 -4
  9. package/esm2022/notification/lib/notification.config.mjs +2 -1
  10. package/esm2022/notification/lib/notification.service.mjs +137 -39
  11. package/esm2022/toast/lib/toast.component.mjs +2 -2
  12. package/esm2022/toast/lib/toast.config.mjs +2 -1
  13. package/esm2022/toast/lib/toast.service.mjs +140 -36
  14. package/fesm2022/acorex-components-common.mjs +7 -1
  15. package/fesm2022/acorex-components-common.mjs.map +1 -1
  16. package/fesm2022/acorex-components-datetime-picker.mjs +2 -2
  17. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  18. package/fesm2022/acorex-components-dialog.mjs +15 -15
  19. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  20. package/fesm2022/acorex-components-form.mjs.map +1 -1
  21. package/fesm2022/acorex-components-notification.mjs +139 -40
  22. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  23. package/fesm2022/acorex-components-toast.mjs +140 -35
  24. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  25. package/form/lib/validation-rule.directive.d.ts +1 -1
  26. package/notification/lib/notification.component.d.ts +3 -3
  27. package/notification/lib/notification.config.d.ts +1 -0
  28. package/notification/lib/notification.service.d.ts +13 -0
  29. package/package.json +1 -1
  30. package/toast/lib/toast.component.d.ts +1 -1
  31. package/toast/lib/toast.config.d.ts +1 -0
  32. package/toast/lib/toast.service.d.ts +13 -0
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi1ydWxlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9mb3JtL3NyYy9saWIvdmFsaWRhdGlvbi1ydWxlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUVoRSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBcUIsTUFBTSxlQUFlLENBQUM7OztBQUtwRSxNQUFNLE9BQU8seUJBQXlCO0lBaUJwQyxZQUFvQixJQUF5QjtRQUF6QixTQUFJLEdBQUosSUFBSSxDQUFxQjtJQUFHLENBQUM7SUFFakQsUUFBUTtRQUNOLElBQUksQ0FBQyxJQUFJLENBQUMsaUJBQWlCLENBQUMsRUFBRSxJQUFJLEVBQUUsSUFBSSxDQUFDLElBQUksRUFBRSxPQUFPLEVBQUUsSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUM7SUFDOUUsQ0FBQztJQUVELFdBQVc7UUFDVCxJQUFJLENBQUMsSUFBSSxDQUFDLG9CQUFvQixDQUFDO1lBQzdCLElBQUksRUFBRSxJQUFJLENBQUMsSUFBSTtZQUNmLE9BQU8sRUFBRSxJQUFJLENBQUMsV0FBVztTQUMxQixDQUFDLENBQUM7SUFDTCxDQUFDO0lBRUQsSUFBWSxXQUFXO1FBQ3JCLE9BQU8sTUFBTSxDQUFDLE1BQU0sQ0FBQyxFQUFFLE9BQU8sRUFBRSxJQUFJLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRSxJQUFJLENBQUMs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ucyk7XG4gIH1cbn1cbiJdfQ==
@@ -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
- * Closes the dialog and provides the component and HTML element for reference.
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9ub3RpZmljYXRpb24vc3JjL2xpYi9ub3RpZmljYXRpb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL25vdGlmaWNhdGlvbi9zcmMvbGliL25vdGlmaWNhdGlvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQXlCLGVBQWUsRUFBRS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LWNsb3NlLWJ1dHRvbj5cbn1cbkBpZihjb25maWcudGltZU91dFByb2dyZXNzICYmIGNvbmZpZy50aW1lT3V0KXtcbjxkaXYgY2xhc3M9XCJheC1ub3RpZmljYXRpb24tcHJvZ3Jlc3NcIiBbc3R5bGUuYW5pbWF0aW9uLWR1cmF0aW9uLm1zXT1cImNvbmZpZy50aW1lT3V0XCI+PC9kaXY+XG59Il19
@@ -9,6 +9,7 @@ export const AXNotificationDefaultConfig = {
9
9
  timeOutProgress: true,
10
10
  closeButton: true,
11
11
  location: 'top-end',
12
+ limit: 3,
12
13
  };
13
14
  export function notificationConfig(config = {}) {
14
15
  const result = {
@@ -17,4 +18,4 @@ export function notificationConfig(config = {}) {
17
18
  };
18
19
  return result;
19
20
  }
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9ub3RpZmljYXRpb24vc3JjL2xpYi9ub3RpZmljYXRpb24uY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFVL0MsTUFBTSxDQUFDLE1BQU0sc0JBQXNCLEdBQUcsSUFBSSxjQUFjLENBQXVCLHdCQUF3QixFQUFFO0lBQ3ZHLFVBQVUsRUFBRSxNQUFNO0lBQ2xCLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQywyQkFBMkI7Q0FDM0MsQ0FBQyxDQUFDO0FBRUgsTUFBTSxDQUFDLE1BQU0sMkJBQTJCLEdBQXlCO0lBQy9ELEdBQUcsRUFBRSxDQUFDO0lBQ04sT0FBTyxFQUFFLElBQUk7SUFDYixlQUFlLEVBQUUsSUFBSTtJQUNyQixXQUFXLEVBQUUsSUF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WVuZCcsXG4gIGxpbWl0OiAzLFxufTtcblxuZXhwb3J0IHR5cGUgUGFydGlhbE5vdGlmaWNhdGlvbkNvbmZpZyA9IFBhcnRpYWw8QVhOb3RpZmljYXRpb25Db25maWc+O1xuXG5leHBvcnQgZnVuY3Rpb24gbm90aWZpY2F0aW9uQ29uZmlnKGNvbmZpZzogUGFydGlhbE5vdGlmaWNhdGlvbkNvbmZpZyA9IHt9KTogQVhOb3RpZmljYXRpb25Db25maWcge1xuICBjb25zdCByZXN1bHQgPSB7XG4gICAgLi4uQVhOb3RpZmljYXRpb25EZWZhdWx0Q29uZmlnLFxuICAgIC4uLmNvbmZpZyxcbiAgfTtcbiAgcmV0dXJuIHJlc3VsdDtcbn1cbiJdfQ==
@@ -1,6 +1,6 @@
1
1
  import { Dialog } from '@angular/cdk/dialog';
2
2
  import { GlobalPositionStrategy } from '@angular/cdk/overlay';
3
- import { Injectable, inject } from '@angular/core';
3
+ import { Injectable, effect, inject, signal } from '@angular/core';
4
4
  import { AXNotificationComponent } from './notification.component';
5
5
  import { AX_NOTIFICATION_CONFIG } from './notification.config';
6
6
  import * as i0 from "@angular/core";
@@ -8,43 +8,41 @@ export class AXNotificationService {
8
8
  constructor() {
9
9
  this.dialog = inject(Dialog);
10
10
  this.defaultConfig = inject(AX_NOTIFICATION_CONFIG);
11
+ this.activeNotifications = signal([]);
12
+ this.reservedNotifications = signal([]);
13
+ this.notificationCounterElement = signal(null);
14
+ this.moreNotificationsColor = signal('primary');
15
+ this.moreNotificationsLocation = signal('bottom-center');
16
+ this.reserveCounter = signal(0);
17
+ this.#effect = effect(() => {
18
+ if (this.defaultConfig.limit <= 0)
19
+ return;
20
+ this.handleShowReservedNotification();
21
+ this.handleShowReservedNotificationCounter();
22
+ this.handleReserveCounter();
23
+ }, { allowSignalWrites: true });
11
24
  }
25
+ #effect;
12
26
  show(config) {
13
27
  config = Object.assign({
14
28
  closeButton: true,
15
29
  location: this.defaultConfig.location,
16
30
  }, config);
31
+ this.moreNotificationsColor.set(config.color);
32
+ this.moreNotificationsLocation.set(config.location);
33
+ if (this.defaultConfig.limit > 0) {
34
+ if (this.activeNotifications().length >= this.defaultConfig.limit) {
35
+ this.reservedNotifications.update((value) => [...value, config]);
36
+ return {
37
+ close: () => {
38
+ //TODO close reserved notification
39
+ },
40
+ };
41
+ }
42
+ }
17
43
  const gap = this.defaultConfig.gap;
18
- let positionStrategy = new GlobalPositionStrategy();
19
44
  const pos = this.getPosition(config.location) + gap + 'px';
20
- switch (config.location) {
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
- }
45
+ const positionStrategy = this.getPositionStrategy(new GlobalPositionStrategy(), config.location, pos, gap);
48
46
  const dialogRef = this.dialog.open(AXNotificationComponent, {
49
47
  data: config,
50
48
  autoFocus: '__no_element__',
@@ -55,23 +53,97 @@ export class AXNotificationService {
55
53
  closeOnDestroy: true,
56
54
  hasBackdrop: false,
57
55
  panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],
58
- positionStrategy: positionStrategy,
56
+ positionStrategy,
59
57
  });
60
- const toastRef = dialogRef.componentInstance;
58
+ this.activeNotifications.update((value) => [...value, dialogRef.id]);
59
+ const notificationRef = dialogRef.componentInstance;
61
60
  dialogRef.closed.subscribe(() => {
62
- this.reposition();
61
+ this.activeNotifications.update((value) => [...value].filter((dialogID) => dialogID !== dialogRef.id));
62
+ setTimeout(() => {
63
+ this.reposition(config.location, gap);
64
+ }, 0);
63
65
  });
64
66
  return {
65
67
  close: () => {
66
- toastRef.close();
68
+ notificationRef.close();
67
69
  },
68
70
  };
69
71
  }
70
72
  hideAll() {
71
73
  this.dialog.closeAll();
72
74
  }
73
- reposition() {
74
- //TODO: reposition vertically afer close toast
75
+ handleShowReservedNotification() {
76
+ if (this.activeNotifications().length > this.defaultConfig.limit - 1)
77
+ return;
78
+ if (!this.reservedNotifications().length)
79
+ return;
80
+ this.show(this.reservedNotifications()[0]);
81
+ this.reservedNotifications.update((value) => {
82
+ const arr = [...value];
83
+ arr.shift();
84
+ return arr;
85
+ });
86
+ }
87
+ handleShowReservedNotificationCounter() {
88
+ if (this.reservedNotifications().length === this.reserveCounter())
89
+ return;
90
+ this.reserveCounter.set(this.reservedNotifications().length);
91
+ if (this.notificationCounterElement() !== null)
92
+ this.notificationCounterElement().close();
93
+ this.createReservedCounterToast();
94
+ }
95
+ handleReserveCounter() {
96
+ if (this.reserveCounter() !== 0)
97
+ return;
98
+ if (this.notificationCounterElement() === null)
99
+ return;
100
+ this.notificationCounterElement().close();
101
+ }
102
+ createReservedCounterToast() {
103
+ const opt = {
104
+ closeButton: false,
105
+ color: this.moreNotificationsColor(),
106
+ location: this.moreNotificationsLocation(),
107
+ title: `And ${this.reserveCounter()} more...`,
108
+ timeOutProgress: false,
109
+ };
110
+ const gap = this.defaultConfig.gap;
111
+ const pos = this.getPosition(opt.location) + gap + 'px';
112
+ const positionStrategy = this.getPositionStrategy(new GlobalPositionStrategy(), opt.location, pos, gap);
113
+ const dialogRef = this.dialog.open(AXNotificationComponent, {
114
+ data: opt,
115
+ autoFocus: '__no_element__',
116
+ restoreFocus: true,
117
+ role: 'dialog',
118
+ ariaModal: true,
119
+ closeOnNavigation: true,
120
+ closeOnDestroy: true,
121
+ hasBackdrop: false,
122
+ panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],
123
+ positionStrategy,
124
+ });
125
+ this.notificationCounterElement.set(dialogRef.componentInstance);
126
+ }
127
+ reposition(notificationLocation, gap) {
128
+ const list = this.dialog.openDialogs
129
+ .map((c) => c.componentInstance)
130
+ .filter((c) => c.config?.location == notificationLocation);
131
+ list.forEach((element, index) => {
132
+ const pos = this.getRepositionPosition(index, gap, list, notificationLocation);
133
+ this.getPositionStrategy(element.dialogRef.config.positionStrategy, notificationLocation, pos, gap).apply();
134
+ });
135
+ }
136
+ getRepositionPosition(index, gap, list, notificationLocation) {
137
+ if (index === 0)
138
+ return gap + 'px';
139
+ const previouseElement = list[index - 1];
140
+ if (notificationLocation.split('-')[0] == 'bottom') {
141
+ return window.innerHeight - previouseElement.getHostElement().offsetTop + gap + 'px';
142
+ }
143
+ return (previouseElement.getHostElement().offsetTop +
144
+ previouseElement.getHostElement().offsetHeight +
145
+ gap +
146
+ 'px');
75
147
  }
76
148
  getPosition(location) {
77
149
  const list = this.dialog.openDialogs
@@ -82,8 +154,34 @@ export class AXNotificationService {
82
154
  if (location.split('-')[0] == 'bottom') {
83
155
  return window.innerHeight - list[list.length - 1].getHostElement().offsetTop;
84
156
  }
85
- else {
86
- return list[list.length - 1].getHostElement().offsetTop + list[list.length - 1].getHostElement().offsetHeight;
157
+ return (list[list.length - 1].getHostElement().offsetTop + list[list.length - 1].getHostElement().offsetHeight);
158
+ }
159
+ getPositionStrategy(positionStrategy, location, pos, gap) {
160
+ switch (location) {
161
+ case 'bottom-center':
162
+ return positionStrategy.bottom(pos).centerHorizontally();
163
+ break;
164
+ case 'bottom-end':
165
+ return positionStrategy.bottom(pos).right(gap + 'px');
166
+ break;
167
+ case 'bottom-start':
168
+ return positionStrategy.bottom(pos).left(gap + 'px');
169
+ break;
170
+ case 'top-center':
171
+ return positionStrategy.top(pos).centerHorizontally();
172
+ break;
173
+ case 'top-end':
174
+ return positionStrategy.top(pos).right(gap + 'px');
175
+ break;
176
+ case 'top-start':
177
+ return positionStrategy.top(pos).left(gap + 'px');
178
+ break;
179
+ case 'center-start':
180
+ return positionStrategy.centerVertically().left(gap + 'px');
181
+ break;
182
+ case 'center-end':
183
+ return positionStrategy.centerVertically().right(gap + 'px');
184
+ break;
87
185
  }
88
186
  }
89
187
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -92,4 +190,4 @@ export class AXNotificationService {
92
190
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNotificationService, decorators: [{
93
191
  type: Injectable
94
192
  }] });
95
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbm90aWZpY2F0aW9uL3NyYy9saWIvbm90aWZpY2F0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5ELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ25FLE9BQU8sRUFBd0Isc0JBQXNCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFHckYsTUFBTSxPQUFPLHFCQUFxQjtJQURsQztRQUVVLFdBQU0sR0FBVyxNQUFNLENBQUMsTUF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CA9PSAwKSByZXR1cm4gMDtcbiAgICBpZiAobG9jYXRpb24uc3BsaXQoJy0nKVswXSA9PSAnYm90dG9tJykge1xuICAgICAgcmV0dXJuIHdpbmRvdy5pbm5lckhlaWdodCAtIGxpc3RbbGlzdC5sZW5ndGggLSAxXS5nZXRIb3N0RWxlbWVudCgpLm9mZnNldFRvcDtcbiAgICB9XG4gICAgcmV0dXJuIChcbiAgICAgIGxpc3RbbGlzdC5sZW5ndGggLSAxXS5nZXRIb3N0RWxlbWVudCgpLm9mZnNldFRvcCArIGxpc3RbbGlzdC5sZW5ndGggLSAxXS5nZXRIb3N0RWxlbWVudCgpLm9mZnNldEhlaWdodFxuICAgICk7XG4gIH1cblxuICBwcml2YXRlIGdldFBvc2l0aW9uU3RyYXRlZ3koXG4gICAgcG9zaXRpb25TdHJhdGVneTogR2xvYmFsUG9zaXRpb25TdHJhdGVneSxcbiAgICBsb2NhdGlvbjogQVhMb2NhdGlvbixcbiAgICBwb3M6IHN0cmluZyxcbiAgICBnYXA6IG51bWJlcixcbiAgKSB7XG4gICAgc3dpdGNoIChsb2NhdGlvbikge1xuICAgICAgY2FzZSAnYm90dG9tLWNlbnRlcic6XG4gICAgICAgIHJldHVybiBwb3NpdGlvblN0cmF0ZWd5LmJvdHRvbShwb3MpLmNlbnRlckhvcml6b250YWxseSgpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2JvdHRvbS1lbmQnOlxuICAgICAgICByZXR1cm4gcG9zaXRpb25TdHJhdGVneS5ib3R0b20ocG9zKS5yaWdodChnYXAgKyAncHgnKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdib3R0b20tc3RhcnQnOlxuICAgICAgICByZXR1cm4gcG9zaXRpb25TdHJhdGVneS5ib3R0b20ocG9zKS5sZWZ0KGdhcCArICdweCcpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3RvcC1jZW50ZXInOlxuICAgICAgICByZXR1cm4gcG9zaXRpb25TdHJhdGVneS50b3AocG9zKS5jZW50ZXJIb3Jpem9udGFsbHkoKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICd0b3AtZW5kJzpcbiAgICAgICAgcmV0dXJuIHBvc2l0aW9uU3RyYXRlZ3kudG9wKHBvcykucmlnaHQoZ2FwICsgJ3B4Jyk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAndG9wLXN0YXJ0JzpcbiAgICAgICAgcmV0dXJuIHBvc2l0aW9uU3RyYXRlZ3kudG9wKHBvcykubGVmdChnYXAgKyAncHgnKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdjZW50ZXItc3RhcnQnOlxuICAgICAgICByZXR1cm4gcG9zaXRpb25TdHJhdGVneS5jZW50ZXJWZXJ0aWNhbGx5KCkubGVmdChnYXAgKyAncHgnKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdjZW50ZXItZW5kJzpcbiAgICAgICAgcmV0dXJuIHBvc2l0aW9uU3RyYXRlZ3kuY2VudGVyVmVydGljYWxseSgpLnJpZ2h0KGdhcCArICdweCcpO1xuICAgICAgICBicmVhaztcbiAgICB9XG4gIH1cbn1cbiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJ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XN0LWljb24gYXgtaWNvbi1zb2xpZCB7eyBfaWNvbiB9fVwiPjwvc3Bhbj5cbjxkaXYgY2xhc3M9XCJheC10b2FzdC1jb250ZW50XCI+XG4gIDxkaXYgY2xhc3M9XCJheC10b2FzdC10aXRsZVwiIFtjbGFzcy5heC1tYi0yXT1cImNvbmZpZy50aXRsZSAmJiBjb25maWcuY29udGVudFwiPnt7IGNvbmZpZy50aXRsZSB8IHRyYW5zbGF0ZSB8IGFzeW5jIH19XG4gIDwvZGl2PlxuICA8ZGl2IGNsYXNzPVwiYXgtdG9hc3QtY29udGVudFwiIFtpbm5lckhUTUxdPVwiY29uZmlnLmNvbnRlbnRcIj48L2Rpdj5cbjwvZGl2PlxuQGlmKGNvbmZpZy5jbG9zZUJ1dHRvbil7XG48YXgtY2xvc2UtYnV0dG9uPjwvYXgtY2xvc2UtYnV0dG9uPlxufVxuQGlmKGNvbmZpZy50aW1lT3V0UHJvZ3Jlc3MgJiYgY29uZmlnLnRpbWVPdXQpe1xuPGRpdiBjbGFzcz1cImF4LXRvYXN0LXByb2dyZXNzXCIgW3N0eWxlLmFuaW1hdGlvbi1kdXJhdGlvbi5tc109XCJjb25maWcudGltZU91dFwiPjwvZGl2PlxufSJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3RvYXN0L3NyYy9saWIvdG9hc3QuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwib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