@stemy/ngx-utils 12.0.3 → 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(): void;
6
+ protected getMethod(): AsyncMethod;
16
7
  }
@@ -49,7 +49,7 @@ import { UnorderedListComponent } from "./components/unordered-list/unordered-li
49
49
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
50
50
  export declare const directives: (typeof AsyncMethodDirective | typeof BackgroundDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective | typeof StickyClassDirective)[];
51
51
  export declare const components: (typeof UnorderedListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent)[];
52
- export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof ConsoleToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof GlobalTemplateService | typeof DeviceDetectorService | {
52
+ export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof ConsoleToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
53
53
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").ɵangular_packages_platform_browser_platform_browser_g[]>;
54
54
  useClass: typeof ResizeEventPlugin;
55
55
  multi: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "12.0.3",
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
@@ -28,6 +28,7 @@ export { ConfigService } from "./ngx-utils/services/config.service";
28
28
  export { ErrorHandlerService } from "./ngx-utils/services/error-handler.service";
29
29
  export { EventsService } from "./ngx-utils/services/events.service";
30
30
  export { FormatterService } from "./ngx-utils/services/formatter.service";
31
+ export { GlobalTemplateService } from "./ngx-utils/services/global-template.service";
31
32
  export { IconService } from "./ngx-utils/services/icon.service";
32
33
  export { LanguageService } from "./ngx-utils/services/language.service";
33
34
  export { OpenApiService } from "./ngx-utils/services/open-api.service";
@@ -63,6 +64,7 @@ export { RoundPipe } from "./ngx-utils/pipes/round.pipe";
63
64
  export { SafeHtmlPipe } from "./ngx-utils/pipes/safe-html.pipe";
64
65
  export { TranslatePipe } from "./ngx-utils/pipes/translate.pipe";
65
66
  export { ValuesPipe } from "./ngx-utils/pipes/values.pipe";
67
+ export { AsyncMethodBase } from "./ngx-utils/directives/async-method.base";
66
68
  export { AsyncMethodDirective } from "./ngx-utils/directives/async-method.directive";
67
69
  export { BackgroundDirective } from "./ngx-utils/directives/background.directive";
68
70
  export { DynamicTableTemplateDirective } from "./ngx-utils/directives/dynamic-table-template.directive";
@@ -4,4 +4,3 @@
4
4
  export * from './public_api';
5
5
  export { StickyClassDirective as ɵf } from './ngx-utils/directives/sticky-class.directive';
6
6
  export { components as ɵc, directives as ɵb, loadConfig as ɵe, pipes as ɵa, providers as ɵd } from './ngx-utils/ngx-utils.module';
7
- export { GlobalTemplateService as ɵg } from './ngx-utils/services/global-template.service';