@paperless/angular 0.1.0-alpha.210 → 0.1.0-alpha.213
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 +9 -1
- package/esm2020/lib/modules/toast/components/toast-container/toast-container.component.mjs +1 -3
- package/esm2020/lib/modules/toast/services/toast.service.mjs +3 -3
- package/fesm2015/paperless-angular.mjs +2 -4
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +2 -4
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2820,10 +2820,10 @@ class ToastService {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
show(header, content, variant = ToastVariants.Success, options = {}) {
|
|
2822
2822
|
options = {
|
|
2823
|
-
...options,
|
|
2824
2823
|
...this.defaultOptions,
|
|
2824
|
+
...options,
|
|
2825
2825
|
icon: options?.icon
|
|
2826
|
-
? { ...
|
|
2826
|
+
? { ...this.defaultOptions.icon, ...options.icon }
|
|
2827
2827
|
: this.defaultOptions.icon,
|
|
2828
2828
|
};
|
|
2829
2829
|
this._toasts.push({
|
|
@@ -2897,8 +2897,6 @@ let ToastContainer = class ToastContainer {
|
|
|
2897
2897
|
this._toastService = _toastService;
|
|
2898
2898
|
this.toasts$ = this._toastService.toasts$;
|
|
2899
2899
|
this.el = r.nativeElement;
|
|
2900
|
-
console.log('Toast container created!');
|
|
2901
|
-
this.toasts$.subscribe((toasts) => console.log('Toasts updated', toasts.length));
|
|
2902
2900
|
}
|
|
2903
2901
|
dismiss(index) {
|
|
2904
2902
|
this._toastService.hide(index);
|