ngx-toastr 14.3.0 → 15.1.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 +2 -5
- package/esm2020/overlay/overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay.mjs +3 -3
- package/esm2020/public_api.mjs +2 -2
- package/esm2020/toastr/toast-noanimation.component.mjs +9 -10
- package/esm2020/toastr/toast-ref.mjs +72 -0
- package/esm2020/toastr/toast.component.mjs +5 -5
- package/esm2020/toastr/toast.directive.mjs +7 -7
- package/esm2020/toastr/toastr-config.mjs +1 -1
- package/esm2020/toastr/toastr.module.mjs +10 -11
- package/esm2020/toastr/toastr.service.mjs +9 -7
- package/fesm2015/ngx-toastr.mjs +108 -121
- package/fesm2015/ngx-toastr.mjs.map +1 -1
- package/fesm2020/ngx-toastr.mjs +108 -121
- package/fesm2020/ngx-toastr.mjs.map +1 -1
- package/{ngx-toastr.d.ts → index.d.ts} +0 -0
- package/package.json +6 -7
- package/public_api.d.ts +1 -1
- package/toastr/toast-noanimation.component.d.ts +1 -1
- package/toastr/{toast-injector.d.ts → toast-ref.d.ts} +0 -9
- package/toastr/toast.component.d.ts +1 -1
- package/toastr/toast.directive.d.ts +1 -1
- package/toastr/toastr-config.d.ts +1 -1
- package/toastr/toastr.service.d.ts +1 -1
- package/esm2020/toastr/toast-injector.mjs +0 -86
package/fesm2020/ngx-toastr.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Directive, NgModule, InjectionToken, Injectable, Inject, SecurityContext, Component, HostBinding, HostListener } from '@angular/core';
|
2
|
+
import { Directive, NgModule, InjectionToken, Injectable, Inject, SecurityContext, Injector, Component, HostBinding, HostListener } from '@angular/core';
|
3
3
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
4
4
|
import { Subject } from 'rxjs';
|
5
5
|
import * as i3 from '@angular/common';
|
@@ -14,9 +14,9 @@ class ToastContainerDirective {
|
|
14
14
|
return this.el.nativeElement;
|
15
15
|
}
|
16
16
|
}
|
17
|
-
ToastContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
18
|
-
ToastContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
17
|
+
ToastContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastContainerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
18
|
+
ToastContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: ToastContainerDirective, selector: "[toastContainer]", exportAs: ["toastContainer"], ngImport: i0 });
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastContainerDirective, decorators: [{
|
20
20
|
type: Directive,
|
21
21
|
args: [{
|
22
22
|
selector: '[toastContainer]',
|
@@ -25,10 +25,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
25
25
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
26
26
|
class ToastContainerModule {
|
27
27
|
}
|
28
|
-
ToastContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
29
|
-
ToastContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
30
|
-
ToastContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
28
|
+
ToastContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
29
|
+
ToastContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: ToastContainerModule, declarations: [ToastContainerDirective], exports: [ToastContainerDirective] });
|
30
|
+
ToastContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastContainerModule });
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastContainerModule, decorators: [{
|
32
32
|
type: NgModule,
|
33
33
|
args: [{
|
34
34
|
declarations: [ToastContainerDirective],
|
@@ -93,76 +93,6 @@ class BasePortalHost {
|
|
93
93
|
}
|
94
94
|
}
|
95
95
|
|
96
|
-
/**
|
97
|
-
* Everything a toast needs to launch
|
98
|
-
*/
|
99
|
-
class ToastPackage {
|
100
|
-
constructor(toastId, config, message, title, toastType, toastRef) {
|
101
|
-
this.toastId = toastId;
|
102
|
-
this.config = config;
|
103
|
-
this.message = message;
|
104
|
-
this.title = title;
|
105
|
-
this.toastType = toastType;
|
106
|
-
this.toastRef = toastRef;
|
107
|
-
this._onTap = new Subject();
|
108
|
-
this._onAction = new Subject();
|
109
|
-
this.toastRef.afterClosed().subscribe(() => {
|
110
|
-
this._onAction.complete();
|
111
|
-
this._onTap.complete();
|
112
|
-
});
|
113
|
-
}
|
114
|
-
/** Fired on click */
|
115
|
-
triggerTap() {
|
116
|
-
this._onTap.next();
|
117
|
-
if (this.config.tapToDismiss) {
|
118
|
-
this._onTap.complete();
|
119
|
-
}
|
120
|
-
}
|
121
|
-
onTap() {
|
122
|
-
return this._onTap.asObservable();
|
123
|
-
}
|
124
|
-
/** available for use in custom toast */
|
125
|
-
triggerAction(action) {
|
126
|
-
this._onAction.next(action);
|
127
|
-
}
|
128
|
-
onAction() {
|
129
|
-
return this._onAction.asObservable();
|
130
|
-
}
|
131
|
-
}
|
132
|
-
const DefaultNoComponentGlobalConfig = {
|
133
|
-
maxOpened: 0,
|
134
|
-
autoDismiss: false,
|
135
|
-
newestOnTop: true,
|
136
|
-
preventDuplicates: false,
|
137
|
-
countDuplicates: false,
|
138
|
-
resetTimeoutOnDuplicate: false,
|
139
|
-
includeTitleDuplicates: false,
|
140
|
-
iconClasses: {
|
141
|
-
error: 'toast-error',
|
142
|
-
info: 'toast-info',
|
143
|
-
success: 'toast-success',
|
144
|
-
warning: 'toast-warning',
|
145
|
-
},
|
146
|
-
// Individual
|
147
|
-
closeButton: false,
|
148
|
-
disableTimeOut: false,
|
149
|
-
timeOut: 5000,
|
150
|
-
extendedTimeOut: 1000,
|
151
|
-
enableHtml: false,
|
152
|
-
progressBar: false,
|
153
|
-
toastClass: 'ngx-toastr',
|
154
|
-
positionClass: 'toast-top-right',
|
155
|
-
titleClass: 'toast-title',
|
156
|
-
messageClass: 'toast-message',
|
157
|
-
easing: 'ease-in',
|
158
|
-
easeTime: 300,
|
159
|
-
tapToDismiss: true,
|
160
|
-
onActivateTick: false,
|
161
|
-
progressAnimation: 'decreasing',
|
162
|
-
payload: null
|
163
|
-
};
|
164
|
-
const TOAST_CONFIG = new InjectionToken('ToastConfig');
|
165
|
-
|
166
96
|
/**
|
167
97
|
* Reference to a toast opened via the Toastr service.
|
168
98
|
*/
|
@@ -233,19 +163,76 @@ class ToastRef {
|
|
233
163
|
}
|
234
164
|
}
|
235
165
|
}
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Everything a toast needs to launch
|
169
|
+
*/
|
170
|
+
class ToastPackage {
|
171
|
+
constructor(toastId, config, message, title, toastType, toastRef) {
|
172
|
+
this.toastId = toastId;
|
173
|
+
this.config = config;
|
174
|
+
this.message = message;
|
175
|
+
this.title = title;
|
176
|
+
this.toastType = toastType;
|
177
|
+
this.toastRef = toastRef;
|
178
|
+
this._onTap = new Subject();
|
179
|
+
this._onAction = new Subject();
|
180
|
+
this.toastRef.afterClosed().subscribe(() => {
|
181
|
+
this._onAction.complete();
|
182
|
+
this._onTap.complete();
|
183
|
+
});
|
184
|
+
}
|
185
|
+
/** Fired on click */
|
186
|
+
triggerTap() {
|
187
|
+
this._onTap.next();
|
188
|
+
if (this.config.tapToDismiss) {
|
189
|
+
this._onTap.complete();
|
245
190
|
}
|
246
|
-
|
191
|
+
}
|
192
|
+
onTap() {
|
193
|
+
return this._onTap.asObservable();
|
194
|
+
}
|
195
|
+
/** available for use in custom toast */
|
196
|
+
triggerAction(action) {
|
197
|
+
this._onAction.next(action);
|
198
|
+
}
|
199
|
+
onAction() {
|
200
|
+
return this._onAction.asObservable();
|
247
201
|
}
|
248
202
|
}
|
203
|
+
const DefaultNoComponentGlobalConfig = {
|
204
|
+
maxOpened: 0,
|
205
|
+
autoDismiss: false,
|
206
|
+
newestOnTop: true,
|
207
|
+
preventDuplicates: false,
|
208
|
+
countDuplicates: false,
|
209
|
+
resetTimeoutOnDuplicate: false,
|
210
|
+
includeTitleDuplicates: false,
|
211
|
+
iconClasses: {
|
212
|
+
error: 'toast-error',
|
213
|
+
info: 'toast-info',
|
214
|
+
success: 'toast-success',
|
215
|
+
warning: 'toast-warning',
|
216
|
+
},
|
217
|
+
// Individual
|
218
|
+
closeButton: false,
|
219
|
+
disableTimeOut: false,
|
220
|
+
timeOut: 5000,
|
221
|
+
extendedTimeOut: 1000,
|
222
|
+
enableHtml: false,
|
223
|
+
progressBar: false,
|
224
|
+
toastClass: 'ngx-toastr',
|
225
|
+
positionClass: 'toast-top-right',
|
226
|
+
titleClass: 'toast-title',
|
227
|
+
messageClass: 'toast-message',
|
228
|
+
easing: 'ease-in',
|
229
|
+
easeTime: 300,
|
230
|
+
tapToDismiss: true,
|
231
|
+
onActivateTick: false,
|
232
|
+
progressAnimation: 'decreasing',
|
233
|
+
payload: null
|
234
|
+
};
|
235
|
+
const TOAST_CONFIG = new InjectionToken('ToastConfig');
|
249
236
|
|
250
237
|
/**
|
251
238
|
* A PortalHost for attaching portals to an arbitrary DOM element outside of the Angular
|
@@ -353,9 +340,9 @@ class OverlayContainer {
|
|
353
340
|
this._containerElement = container;
|
354
341
|
}
|
355
342
|
}
|
356
|
-
OverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
357
|
-
OverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
343
|
+
OverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: OverlayContainer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
344
|
+
OverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: OverlayContainer, providedIn: 'root' });
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: OverlayContainer, decorators: [{
|
359
346
|
type: Injectable,
|
360
347
|
args: [{ providedIn: 'root' }]
|
361
348
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -431,9 +418,9 @@ class Overlay {
|
|
431
418
|
return new OverlayRef(this._createPortalHost(pane));
|
432
419
|
}
|
433
420
|
}
|
434
|
-
Overlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
435
|
-
Overlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
421
|
+
Overlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Overlay, deps: [{ token: OverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
422
|
+
Overlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Overlay, providedIn: 'root' });
|
423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Overlay, decorators: [{
|
437
424
|
type: Injectable,
|
438
425
|
args: [{ providedIn: 'root' }]
|
439
426
|
}], ctorParameters: function () { return [{ type: OverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: undefined, decorators: [{
|
@@ -596,7 +583,9 @@ class ToastrService {
|
|
596
583
|
}
|
597
584
|
const toastRef = new ToastRef(overlayRef);
|
598
585
|
const toastPackage = new ToastPackage(this.index, config, sanitizedMessage, title, toastType, toastRef);
|
599
|
-
|
586
|
+
/** New injector that contains an instance of `ToastPackage`. */
|
587
|
+
const providers = [{ provide: ToastPackage, useValue: toastPackage }];
|
588
|
+
const toastInjector = Injector.create({ providers, parent: this._injector });
|
600
589
|
const component = new ComponentPortal(config.toastComponent, toastInjector);
|
601
590
|
const portal = overlayRef.attach(component, this.toastrConfig.newestOnTop);
|
602
591
|
toastRef.componentInstance = portal.instance;
|
@@ -621,9 +610,9 @@ class ToastrService {
|
|
621
610
|
return ins;
|
622
611
|
}
|
623
612
|
}
|
624
|
-
ToastrService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
625
|
-
ToastrService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
613
|
+
ToastrService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrService, deps: [{ token: TOAST_CONFIG }, { token: Overlay }, { token: i0.Injector }, { token: i2.DomSanitizer }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
614
|
+
ToastrService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrService, providedIn: 'root' });
|
615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrService, decorators: [{
|
627
616
|
type: Injectable,
|
628
617
|
args: [{ providedIn: 'root' }]
|
629
618
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -796,8 +785,8 @@ class Toast {
|
|
796
785
|
}
|
797
786
|
}
|
798
787
|
}
|
799
|
-
Toast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
800
|
-
Toast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
788
|
+
Toast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Toast, deps: [{ token: ToastrService }, { token: ToastPackage }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
789
|
+
Toast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: Toast, selector: "[toast-component]", host: { listeners: { "click": "tapToast()", "mouseenter": "stickAround()", "mouseleave": "delayedHideToast()" }, properties: { "class": "this.toastClasses", "@flyInOut": "this.state", "style.display": "this.displayStyle" } }, ngImport: i0, template: `
|
801
790
|
<button *ngIf="options.closeButton" (click)="remove()" type="button" class="toast-close-button" aria-label="Close">
|
802
791
|
<span aria-hidden="true">×</span>
|
803
792
|
</button>
|
@@ -814,7 +803,7 @@ Toast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2
|
|
814
803
|
<div *ngIf="options.progressBar">
|
815
804
|
<div class="toast-progress" [style.width]="width + '%'"></div>
|
816
805
|
</div>
|
817
|
-
`, isInline: true,
|
806
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
|
818
807
|
trigger('flyInOut', [
|
819
808
|
state('inactive', style({ opacity: 0 })),
|
820
809
|
state('active', style({ opacity: 1 })),
|
@@ -823,7 +812,7 @@ Toast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2
|
|
823
812
|
transition('active => removed', animate('{{ easeTime }}ms {{ easing }}'))
|
824
813
|
])
|
825
814
|
] });
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Toast, decorators: [{
|
827
816
|
type: Component,
|
828
817
|
args: [{
|
829
818
|
selector: '[toast-component]',
|
@@ -896,16 +885,15 @@ class ToastrModule {
|
|
896
885
|
};
|
897
886
|
}
|
898
887
|
}
|
899
|
-
ToastrModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
900
|
-
ToastrModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
901
|
-
ToastrModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
888
|
+
ToastrModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
889
|
+
ToastrModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: ToastrModule, declarations: [Toast], imports: [CommonModule], exports: [Toast] });
|
890
|
+
ToastrModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrModule, imports: [CommonModule] });
|
891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrModule, decorators: [{
|
903
892
|
type: NgModule,
|
904
893
|
args: [{
|
905
894
|
imports: [CommonModule],
|
906
895
|
declarations: [Toast],
|
907
896
|
exports: [Toast],
|
908
|
-
entryComponents: [Toast],
|
909
897
|
}]
|
910
898
|
}] });
|
911
899
|
class ToastrComponentlessModule {
|
@@ -924,10 +912,10 @@ class ToastrComponentlessModule {
|
|
924
912
|
};
|
925
913
|
}
|
926
914
|
}
|
927
|
-
ToastrComponentlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
928
|
-
ToastrComponentlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
929
|
-
ToastrComponentlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
915
|
+
ToastrComponentlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrComponentlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
916
|
+
ToastrComponentlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: ToastrComponentlessModule, imports: [CommonModule] });
|
917
|
+
ToastrComponentlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrComponentlessModule, imports: [CommonModule] });
|
918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastrComponentlessModule, decorators: [{
|
931
919
|
type: NgModule,
|
932
920
|
args: [{
|
933
921
|
imports: [CommonModule],
|
@@ -1073,8 +1061,8 @@ class ToastNoAnimation {
|
|
1073
1061
|
}
|
1074
1062
|
}
|
1075
1063
|
}
|
1076
|
-
ToastNoAnimation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1077
|
-
ToastNoAnimation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1064
|
+
ToastNoAnimation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastNoAnimation, deps: [{ token: ToastrService }, { token: ToastPackage }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Component });
|
1065
|
+
ToastNoAnimation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: ToastNoAnimation, selector: "[toast-component]", host: { listeners: { "click": "tapToast()", "mouseenter": "stickAround()", "mouseleave": "delayedHideToast()" }, properties: { "class": "this.toastClasses", "style.display": "this.displayStyle" } }, ngImport: i0, template: `
|
1078
1066
|
<button *ngIf="options.closeButton" (click)="remove()" type="button" class="toast-close-button" aria-label="Close">
|
1079
1067
|
<span aria-hidden="true">×</span>
|
1080
1068
|
</button>
|
@@ -1091,8 +1079,8 @@ ToastNoAnimation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
1091
1079
|
<div *ngIf="options.progressBar">
|
1092
1080
|
<div class="toast-progress" [style.width]="width + '%'"></div>
|
1093
1081
|
</div>
|
1094
|
-
`, isInline: true,
|
1095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1082
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
1083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastNoAnimation, decorators: [{
|
1096
1084
|
type: Component,
|
1097
1085
|
args: [{
|
1098
1086
|
selector: '[toast-component]',
|
@@ -1151,16 +1139,15 @@ class ToastNoAnimationModule {
|
|
1151
1139
|
};
|
1152
1140
|
}
|
1153
1141
|
}
|
1154
|
-
ToastNoAnimationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1155
|
-
ToastNoAnimationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
1156
|
-
ToastNoAnimationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1142
|
+
ToastNoAnimationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastNoAnimationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1143
|
+
ToastNoAnimationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: ToastNoAnimationModule, declarations: [ToastNoAnimation], imports: [CommonModule], exports: [ToastNoAnimation] });
|
1144
|
+
ToastNoAnimationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastNoAnimationModule, imports: [CommonModule] });
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ToastNoAnimationModule, decorators: [{
|
1158
1146
|
type: NgModule,
|
1159
1147
|
args: [{
|
1160
1148
|
imports: [CommonModule],
|
1161
1149
|
declarations: [ToastNoAnimation],
|
1162
1150
|
exports: [ToastNoAnimation],
|
1163
|
-
entryComponents: [ToastNoAnimation],
|
1164
1151
|
}]
|
1165
1152
|
}] });
|
1166
1153
|
|
@@ -1168,5 +1155,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
1168
1155
|
* Generated bundle index. Do not edit.
|
1169
1156
|
*/
|
1170
1157
|
|
1171
|
-
export { BasePortalHost, ComponentPortal, DefaultGlobalConfig, DefaultNoAnimationsGlobalConfig, DefaultNoComponentGlobalConfig, Overlay, OverlayContainer, OverlayRef, TOAST_CONFIG, Toast, ToastContainerDirective, ToastContainerModule,
|
1158
|
+
export { BasePortalHost, ComponentPortal, DefaultGlobalConfig, DefaultNoAnimationsGlobalConfig, DefaultNoComponentGlobalConfig, Overlay, OverlayContainer, OverlayRef, TOAST_CONFIG, Toast, ToastContainerDirective, ToastContainerModule, ToastNoAnimation, ToastNoAnimationModule, ToastPackage, ToastRef, ToastrComponentlessModule, ToastrModule, ToastrService };
|
1172
1159
|
//# sourceMappingURL=ngx-toastr.mjs.map
|