@stemy/ngx-utils 19.2.6 → 19.2.8

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.
@@ -54,7 +54,7 @@ import { UploadComponent } from "./components/upload/upload.component";
54
54
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
55
55
  export declare const directives: (typeof AsyncMethodBase | typeof BackgroundDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
56
56
  export declare const components: (typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
57
- export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof WasmService | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
57
+ export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof BaseHttpClient | typeof BaseHttpService | typeof AuthGuard | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
58
58
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
59
59
  useClass: typeof DragDropEventPlugin;
60
60
  multi: boolean;
@@ -1,6 +1,6 @@
1
1
  import { AsyncMethod, ILanguageService, IToasterService, ToastType } from "../common-types";
2
2
  import * as i0 from "@angular/core";
3
- export declare class BaseToasterService implements IToasterService {
3
+ export declare class BaseToasterService<T = any> implements IToasterService {
4
4
  protected language: ILanguageService;
5
5
  protected colorMap: Record<ToastType, string>;
6
6
  constructor(language: ILanguageService);
@@ -8,9 +8,14 @@ export declare class BaseToasterService implements IToasterService {
8
8
  success(message: string, params?: any): void;
9
9
  warning(message: string, params?: any): void;
10
10
  error(message: string, params?: any): void;
11
+ infoPromised(message: string, params?: any): Promise<T>;
12
+ successPromised(message: string, params?: any): Promise<T>;
13
+ warningPromised(message: string, params?: any): Promise<T>;
14
+ errorPromised(message: string, params?: any): Promise<T>;
11
15
  handleAsyncMethod(method: AsyncMethod): void;
12
- protected translateMessage(message: string, params: any, type: ToastType): void;
13
- protected show(message: string, type: ToastType): any;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseToasterService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseToasterService>;
16
+ protected translate(message: string, params: any, type: ToastType): void;
17
+ protected translatePromised(message: string, params: any, type: ToastType): Promise<T>;
18
+ protected show(message: string, type: ToastType): T;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseToasterService<any>, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseToasterService<any>>;
16
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.2.6",
3
+ "version": "19.2.8",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",