@stemy/ngx-utils 19.0.4 → 19.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.
- package/fesm2022/stemy-ngx-utils.mjs +12 -12
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +2 -1
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +1 -1
- package/ngx-utils/ngx-utils.imports.d.ts +4 -4
- package/ngx-utils/services/{dialog.service.d.ts → base-dialog.service.d.ts} +3 -3
- package/ngx-utils/services/{toaster.service.d.ts → base-toaster.service.d.ts} +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +2 -2
|
@@ -342,6 +342,7 @@ export interface ITableColumn {
|
|
|
342
342
|
title?: string;
|
|
343
343
|
sort?: string;
|
|
344
344
|
filter?: boolean;
|
|
345
|
+
filterType?: "text" | "checkbox";
|
|
345
346
|
[key: string]: any;
|
|
346
347
|
}
|
|
347
348
|
export interface ITableColumns {
|
|
@@ -357,7 +358,7 @@ export interface ITableTemplates {
|
|
|
357
358
|
[column: string]: ITableTemplate;
|
|
358
359
|
}
|
|
359
360
|
export interface ITableDataQuery {
|
|
360
|
-
[column: string]: string;
|
|
361
|
+
[column: string]: string | boolean;
|
|
361
362
|
}
|
|
362
363
|
export type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string, query: ITableDataQuery) => Promise<IPaginationData>;
|
|
363
364
|
export declare class ResourceIfContext {
|
|
@@ -48,7 +48,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
48
48
|
refresh(time?: number): void;
|
|
49
49
|
setFilter(filter: string): void;
|
|
50
50
|
setOrder(column: string): void;
|
|
51
|
-
updateQuery(col: string, value: string): void;
|
|
51
|
+
updateQuery(col: string, value: string | boolean): void;
|
|
52
52
|
loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
53
53
|
private loadLocalData;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
@@ -8,7 +8,7 @@ import { StaticAuthService } from "./services/auth.service";
|
|
|
8
8
|
import { BaseHttpClient } from "./services/base-http.client";
|
|
9
9
|
import { BaseHttpService } from "./services/base-http.service";
|
|
10
10
|
import { ConfigService } from "./services/config.service";
|
|
11
|
-
import {
|
|
11
|
+
import { BaseDialogService } from "./services/base-dialog.service";
|
|
12
12
|
import { ErrorHandlerService } from "./services/error-handler.service";
|
|
13
13
|
import { EventsService } from "./services/events.service";
|
|
14
14
|
import { FormatterService } from "./services/formatter.service";
|
|
@@ -19,7 +19,7 @@ import { OpenApiService } from "./services/open-api.service";
|
|
|
19
19
|
import { StateService } from "./services/state.service";
|
|
20
20
|
import { StaticLanguageService } from "./services/static-language.service";
|
|
21
21
|
import { StorageService } from "./services/storage.service";
|
|
22
|
-
import { BaseToasterService } from "./services/toaster.service";
|
|
22
|
+
import { BaseToasterService } from "./services/base-toaster.service";
|
|
23
23
|
import { TranslatedUrlSerializer } from "./services/translated-url.serializer";
|
|
24
24
|
import { UniversalService } from "./services/universal.service";
|
|
25
25
|
import { WasmService } from "./services/wasm.service";
|
|
@@ -50,8 +50,8 @@ import { PaginationMenuComponent } from "./components/pagination-menu/pagination
|
|
|
50
50
|
import { UnorderedListComponent } from "./components/unordered-list/unordered-list.component";
|
|
51
51
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
52
52
|
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)[];
|
|
53
|
-
export declare const components: (typeof
|
|
54
|
-
export declare const providers: (typeof
|
|
53
|
+
export declare const components: (typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent)[];
|
|
54
|
+
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 | {
|
|
55
55
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
56
56
|
useClass: typeof ResizeEventPlugin;
|
|
57
57
|
multi: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IConfirmDialogConfig, IDialogConfig, IDialogService, IToasterService } from "../common-types";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class BaseDialogService implements IDialogService {
|
|
4
4
|
readonly toaster: IToasterService;
|
|
5
5
|
constructor(toaster: IToasterService);
|
|
6
6
|
dialog(config: IDialogConfig): void;
|
|
7
7
|
confirm(config: IConfirmDialogConfig): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDialogService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseDialogService>;
|
|
10
10
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AsyncMethod, ILanguageService, IToasterService, ToastType } from "../common-types";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BaseToasterService implements IToasterService {
|
|
4
|
-
|
|
4
|
+
protected language: ILanguageService;
|
|
5
5
|
protected colorMap: Record<ToastType, string>;
|
|
6
6
|
constructor(language: ILanguageService);
|
|
7
|
-
error(message: string, params?: any): void;
|
|
8
7
|
info(message: string, params?: any): void;
|
|
9
8
|
success(message: string, params?: any): void;
|
|
10
9
|
warning(message: string, params?: any): void;
|
|
10
|
+
error(message: string, params?: any): void;
|
|
11
11
|
handleAsyncMethod(method: AsyncMethod): void;
|
|
12
12
|
protected translateMessage(message: string, params: any, type: ToastType): void;
|
|
13
13
|
protected show(message: string, type: ToastType): any;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { StaticAuthService } from "./ngx-utils/services/auth.service";
|
|
|
31
31
|
export { BaseHttpClient } from "./ngx-utils/services/base-http.client";
|
|
32
32
|
export { BaseHttpService } from "./ngx-utils/services/base-http.service";
|
|
33
33
|
export { ConfigService } from "./ngx-utils/services/config.service";
|
|
34
|
-
export {
|
|
34
|
+
export { BaseDialogService } from "./ngx-utils/services/base-dialog.service";
|
|
35
35
|
export { ErrorHandlerService } from "./ngx-utils/services/error-handler.service";
|
|
36
36
|
export { EventsService } from "./ngx-utils/services/events.service";
|
|
37
37
|
export { FormatterService } from "./ngx-utils/services/formatter.service";
|
|
@@ -43,7 +43,7 @@ export { OpenApiService } from "./ngx-utils/services/open-api.service";
|
|
|
43
43
|
export { IStateInfo, StateService } from "./ngx-utils/services/state.service";
|
|
44
44
|
export { StaticLanguageService } from "./ngx-utils/services/static-language.service";
|
|
45
45
|
export { StorageService } from "./ngx-utils/services/storage.service";
|
|
46
|
-
export { BaseToasterService } from "./ngx-utils/services/toaster.service";
|
|
46
|
+
export { BaseToasterService } from "./ngx-utils/services/base-toaster.service";
|
|
47
47
|
export { IUrlDictionary, TranslatedUrlSerializer } from "./ngx-utils/services/translated-url.serializer";
|
|
48
48
|
export { PromiseService } from "./ngx-utils/services/promise.service";
|
|
49
49
|
export { ResizeEventPlugin } from "./ngx-utils/plugins/resize-event.plugin";
|