myrta-ui 17.0.0-beta.11 → 17.0.0-beta.12
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/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/toaster-service/components/toaster/toaster.component.mjs +27 -0
- package/esm2022/lib/services/toaster-service/models/toaster.model.mjs +15 -0
- package/esm2022/lib/services/toaster-service/toaster-service.module.mjs +39 -5
- package/esm2022/lib/services/toaster-service/toaster-service.service.mjs +41 -7
- package/fesm2022/myrta-ui.mjs +115 -17
- package/fesm2022/myrta-ui.mjs.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/toaster-service/components/toaster/toaster.component.d.ts +10 -0
- package/lib/services/toaster-service/models/toaster.model.d.ts +12 -0
- package/lib/services/toaster-service/toaster-service.module.d.ts +5 -2
- package/lib/services/toaster-service/toaster-service.service.d.ts +13 -4
- package/package.json +1 -1
package/lib/services/index.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export * from './modal-service/modal-service.service';
|
|
|
10
10
|
export * from './modal-service/helpers';
|
|
11
11
|
export * from './toaster-service/toaster-service.module';
|
|
12
12
|
export * from './toaster-service/toaster-service.service';
|
|
13
|
+
export * from './toaster-service/models/toaster.model';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Toast, ToastPackage, ToastrService } from 'ngx-toastr';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToasterComponent extends Toast {
|
|
4
|
+
protected toastrService: ToastrService;
|
|
5
|
+
toastPackage: ToastPackage;
|
|
6
|
+
constructor(toastrService: ToastrService, toastPackage: ToastPackage);
|
|
7
|
+
action(event: Event): boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToasterComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToasterComponent, "mrx-toaster", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum ToasterType {
|
|
2
|
+
Info = "info",
|
|
3
|
+
Positive = "positive",
|
|
4
|
+
Negative = "negative",
|
|
5
|
+
Attention = "attention"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ToasterPosition {
|
|
8
|
+
TopRight = "toast-top-right",
|
|
9
|
+
BottomRight = "toast-bottom-right",
|
|
10
|
+
TopLeft = "toast-top-left",
|
|
11
|
+
BottomLeft = "toast-bottom-left"
|
|
12
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
2
|
+
import * as i1 from "./components/toaster/toaster.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "ngx-toastr";
|
|
5
|
+
import * as i4 from "../../pipes/safe/safe.module";
|
|
3
6
|
export declare class ToasterServiceModule {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToasterServiceModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ToasterServiceModule,
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ToasterServiceModule, [typeof i1.ToasterComponent], [typeof i2.CommonModule, typeof i3.ToastrModule, typeof i4.SafeModule], never>;
|
|
6
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<ToasterServiceModule>;
|
|
7
10
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { ToastrService } from 'ngx-toastr';
|
|
2
|
+
import { ToasterType } from './models/toaster.model';
|
|
3
|
+
import { IndividualConfig } from 'ngx-toastr/toastr/toastr-config';
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
export declare class ToasterService {
|
|
6
|
+
private _toasterService;
|
|
7
|
+
constructor(_toasterService: ToastrService);
|
|
8
|
+
show(data: {
|
|
9
|
+
title?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
type?: ToasterType;
|
|
12
|
+
}, customConfig?: Partial<IndividualConfig>): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToasterService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToasterService>;
|
|
6
15
|
}
|