@stemy/ngx-utils 12.0.5 → 12.0.6

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.
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { AsyncMethod, IAsyncMessage, IToasterService } from "../common-types";
3
+ export declare abstract class AsyncMethodBase {
4
+ protected toaster: IToasterService;
5
+ disabled: boolean;
6
+ context: any;
7
+ onSuccess: EventEmitter<IAsyncMessage>;
8
+ onError: EventEmitter<IAsyncMessage>;
9
+ protected loading: boolean;
10
+ get isDisabled(): boolean;
11
+ get isLoading(): boolean;
12
+ protected constructor(toaster: IToasterService);
13
+ protected abstract getMethod(): AsyncMethod;
14
+ click(): void;
15
+ callMethod(): boolean;
16
+ }
@@ -1,16 +1,7 @@
1
- import { EventEmitter } from "@angular/core";
2
- import { IToasterService, IAsyncMessage, AsyncMethod } from "../common-types";
3
- export declare class AsyncMethodDirective {
4
- private toaster;
1
+ import { AsyncMethod, IToasterService } from "../common-types";
2
+ import { AsyncMethodBase } from "./async-method.base";
3
+ export declare class AsyncMethodDirective extends AsyncMethodBase {
5
4
  method: AsyncMethod;
6
- disabled: boolean;
7
- context: any;
8
- onSuccess: EventEmitter<IAsyncMessage>;
9
- onError: EventEmitter<IAsyncMessage>;
10
- private loading;
11
- get isDisabled(): boolean;
12
- get isLoading(): boolean;
13
5
  constructor(toaster: IToasterService);
14
- click(): void;
15
- callMethod(): boolean;
6
+ protected getMethod(): AsyncMethod;
16
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "12.0.5",
3
+ "version": "12.0.6",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
package/public_api.d.ts CHANGED
@@ -64,6 +64,7 @@ export { RoundPipe } from "./ngx-utils/pipes/round.pipe";
64
64
  export { SafeHtmlPipe } from "./ngx-utils/pipes/safe-html.pipe";
65
65
  export { TranslatePipe } from "./ngx-utils/pipes/translate.pipe";
66
66
  export { ValuesPipe } from "./ngx-utils/pipes/values.pipe";
67
+ export { AsyncMethodBase } from "./ngx-utils/directives/async-method.base";
67
68
  export { AsyncMethodDirective } from "./ngx-utils/directives/async-method.directive";
68
69
  export { BackgroundDirective } from "./ngx-utils/directives/background.directive";
69
70
  export { DynamicTableTemplateDirective } from "./ngx-utils/directives/dynamic-table-template.directive";