@rosoftlab/core 1.0.5-alpha-1 → 1.0.5-alpha-3
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/rosoftlab-core.mjs +393 -88
- package/fesm2022/rosoftlab-core.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/lib/auth/auth.service.d.ts +29 -0
- package/lib/auth/index.d.ts +4 -0
- package/lib/auth/provide-auth.d.ts +3 -0
- package/lib/auth/tokens.d.ts +5 -0
- package/lib/auth/user-manager.factory.d.ts +5 -0
- package/lib/base-components/base-crud-implementation.d.ts +44 -0
- package/lib/base-components/base-form-edit.component.d.ts +56 -0
- package/lib/base-components/base-table-implementation.d.ts +56 -0
- package/lib/base-components/field-error-display/field-error-display.component.d.ts +7 -0
- package/lib/base-components/index.d.ts +3 -0
- package/lib/base-components/page-not-found/page-not-found.component.d.ts +8 -0
- package/lib/base-components/under-construction/under-construction.component.d.ts +6 -0
- package/lib/configurations.d.ts +6 -0
- package/lib/constants/symbols.d.ts +1 -0
- package/lib/converters/date/date.converter.d.ts +5 -0
- package/lib/core.d.ts +16 -0
- package/lib/decorators/attribute.decorator.d.ts +2 -0
- package/lib/decorators/base-datastore-config.decorator.d.ts +1 -0
- package/lib/decorators/base-model-config.decorator.d.ts +1 -0
- package/lib/decorators/custom.type.decorator.d.ts +1 -0
- package/lib/grid-layout-format.enum.d.ts +12 -0
- package/lib/index.d.ts +26 -0
- package/lib/interceptors/cache.interceptor.d.ts +13 -0
- package/lib/interceptors/index.d.ts +1 -0
- package/lib/interfaces/attribute-decorator-options.interface.d.ts +8 -0
- package/lib/interfaces/datastore-config.interface.d.ts +8 -0
- package/lib/interfaces/dialog.interface.d.ts +9 -0
- package/lib/interfaces/model-config.interface.d.ts +10 -0
- package/lib/interfaces/overrides.interface.d.ts +5 -0
- package/lib/interfaces/property-converter.interface.d.ts +4 -0
- package/lib/models/base-meta.model.d.ts +5 -0
- package/lib/models/base-query-data.d.ts +7 -0
- package/lib/models/base.model.d.ts +31 -0
- package/lib/models/employee.d.ts +12 -0
- package/lib/models/error-response.model.d.ts +17 -0
- package/lib/models/filter-request.d.ts +8 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/menu.d.ts +15 -0
- package/lib/models/metadata-storage.d.ts +5 -0
- package/lib/models/right.d.ts +14 -0
- package/lib/models/role.d.ts +6 -0
- package/lib/models/rule.d.ts +5 -0
- package/lib/models/user.d.ts +8 -0
- package/lib/pipes/Nl2brPipe.pipe.d.ts +7 -0
- package/lib/pipes/input-error.pipe.d.ts +10 -0
- package/lib/providers.d.ts +2 -0
- package/lib/resolvers/dynamically-class-resolver.d.ts +3 -0
- package/lib/resolvers/dynamically-service-resolver.d.ts +3 -0
- package/lib/resolvers/index.d.ts +2 -0
- package/lib/rsl-base-module.d.ts +13 -0
- package/lib/services/base-datastore.service.d.ts +47 -0
- package/lib/services/base.service.d.ts +27 -0
- package/lib/services/cache.service.d.ts +11 -0
- package/lib/services/datastore.service.d.ts +12 -0
- package/lib/services/dialog.service.d.ts +7 -0
- package/lib/services/employee.service.d.ts +9 -0
- package/lib/services/index.d.ts +11 -0
- package/lib/services/local-file.service.d.ts +11 -0
- package/lib/services/right.service.d.ts +8 -0
- package/lib/services/role.service.d.ts +11 -0
- package/lib/services/route-history.service.d.ts +12 -0
- package/lib/services/translate-loader.service.d.ts +14 -0
- package/lib/services/user.service.d.ts +12 -0
- package/lib/tokens/table-tokens.d.ts +7 -0
- package/lib/utils.d.ts +2 -0
- package/lib/validators/pattern-validator.d.ts +4 -0
- package/package.json +9 -9
- package/public-api.d.ts +1 -0
- package/types/rosoftlab-core.d.ts +0 -507
package/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UserManager } from 'oidc-client-ts';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AuthService {
|
|
4
|
+
private manager;
|
|
5
|
+
private _authNavStatusSource;
|
|
6
|
+
authNavStatus$: import("rxjs").Observable<boolean>;
|
|
7
|
+
private user;
|
|
8
|
+
constructor(manager: UserManager);
|
|
9
|
+
login(): void;
|
|
10
|
+
logout(): void;
|
|
11
|
+
completeAuthentication(): Promise<void>;
|
|
12
|
+
isAuthenticated(): boolean;
|
|
13
|
+
get authorizationHeaderValue(): string;
|
|
14
|
+
get getToken(): string;
|
|
15
|
+
get getId(): string | null;
|
|
16
|
+
get name(): string;
|
|
17
|
+
get email(): string | null | undefined;
|
|
18
|
+
get firstName(): string;
|
|
19
|
+
set firstName(newValue: string);
|
|
20
|
+
get lastName(): string;
|
|
21
|
+
set lastName(newValue: string);
|
|
22
|
+
get userCode(): string;
|
|
23
|
+
get roles(): string;
|
|
24
|
+
get organisationId(): string;
|
|
25
|
+
get organisationName(): string;
|
|
26
|
+
signout(): Promise<void>;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Location } from '@angular/common';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare abstract class BaseCrudImplementation<T = any> {
|
|
8
|
+
protected router: Router;
|
|
9
|
+
protected route: ActivatedRoute;
|
|
10
|
+
protected translate: TranslateService;
|
|
11
|
+
protected location: Location;
|
|
12
|
+
protected modelService: import("@rosoftlab/core").BaseService<import("@rosoftlab/core").BaseModel>;
|
|
13
|
+
protected modelToken: import("@angular/core").Type<import("@rosoftlab/core").BaseModel>;
|
|
14
|
+
protected dialogService: import("../interfaces/dialog.interface").IDialogService;
|
|
15
|
+
model: T | null;
|
|
16
|
+
modelName: string | null;
|
|
17
|
+
dictPath: string | null;
|
|
18
|
+
fileLayout: string;
|
|
19
|
+
idProperty: string;
|
|
20
|
+
customInclude: string;
|
|
21
|
+
changeUrlRoute: boolean;
|
|
22
|
+
hostClass: string;
|
|
23
|
+
basePath: string;
|
|
24
|
+
title: string;
|
|
25
|
+
protected baseForm: FormGroup<{}>;
|
|
26
|
+
protected modelId: string;
|
|
27
|
+
protected isEdit: boolean;
|
|
28
|
+
protected isLoading: boolean;
|
|
29
|
+
protected cancelRoute: string;
|
|
30
|
+
protected editRoute: string;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
get hostClasses(): string;
|
|
33
|
+
afterSave(model: T): Observable<T>;
|
|
34
|
+
beforeSave(model: T): Observable<T>;
|
|
35
|
+
protected getFromGroup(formGroup?: FormGroup | string): FormGroup;
|
|
36
|
+
validateAllFormFields(formGroup?: FormGroup | string): void;
|
|
37
|
+
canDeactivate(): Observable<boolean> | boolean;
|
|
38
|
+
getFiledName(filedTranslationKey: string): {
|
|
39
|
+
field: any;
|
|
40
|
+
};
|
|
41
|
+
serverErrors(err: any): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseCrudImplementation<any>, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseCrudImplementation<any>, never, never, { "model": { "alias": "model"; "required": false; }; "modelName": { "alias": "modelName"; "required": false; }; "dictPath": { "alias": "dictPath"; "required": false; }; "fileLayout": { "alias": "fileLayout"; "required": false; }; "idProperty": { "alias": "idProperty"; "required": false; }; "customInclude": { "alias": "customInclude"; "required": false; }; "changeUrlRoute": { "alias": "changeUrlRoute"; "required": false; }; "hostClass": { "alias": "hostClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Location } from '@angular/common';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { BaseModel } from '../models/base.model';
|
|
8
|
+
import { BaseService } from '../services/base.service';
|
|
9
|
+
import { DialogService } from '../services/dialog.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare abstract class BaseFormEditComponent<T extends BaseModel> implements OnInit {
|
|
12
|
+
protected fb: UntypedFormBuilder;
|
|
13
|
+
protected router: Router;
|
|
14
|
+
protected route: ActivatedRoute;
|
|
15
|
+
protected modelService: BaseService<T>;
|
|
16
|
+
protected dialogService: DialogService;
|
|
17
|
+
protected translate: TranslateService;
|
|
18
|
+
protected location: Location;
|
|
19
|
+
baseForm: UntypedFormGroup;
|
|
20
|
+
modelId: string;
|
|
21
|
+
model: T;
|
|
22
|
+
isEdit: boolean;
|
|
23
|
+
isLoading: boolean;
|
|
24
|
+
cancelRoute: string;
|
|
25
|
+
editRoute: string;
|
|
26
|
+
changeUrlRoute: boolean;
|
|
27
|
+
constructor(fb: UntypedFormBuilder, router: Router, route: ActivatedRoute, modelService: BaseService<T>, dialogService: DialogService, translate: TranslateService, location: Location);
|
|
28
|
+
afterSave(model: T): Observable<T>;
|
|
29
|
+
beforeSave(model: T): Observable<T>;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
initForm(customInclude?: string, newModelId?: string, model?: T): void;
|
|
32
|
+
generateForm(model?: T): void;
|
|
33
|
+
afterFormGenerated(): void;
|
|
34
|
+
private getFromGroup;
|
|
35
|
+
validateAllFormFields(formGroup?: UntypedFormGroup | string): void;
|
|
36
|
+
isFieldValid(field: string, formGroup?: UntypedFormGroup | string): boolean;
|
|
37
|
+
isFieldValidFromArray(arrayIndex: number, field: string, arrayName?: string): boolean;
|
|
38
|
+
displayFieldCss(field: string): {
|
|
39
|
+
'has-error': boolean;
|
|
40
|
+
'has-feedback': boolean;
|
|
41
|
+
};
|
|
42
|
+
onCancel(): void;
|
|
43
|
+
onSave(): void;
|
|
44
|
+
saveModel(formGroup?: UntypedFormGroup | string): void;
|
|
45
|
+
serverErrors(err: any): void;
|
|
46
|
+
canDeactivate(): Observable<boolean> | boolean;
|
|
47
|
+
getFiledName(filedTranslationKey: string): {
|
|
48
|
+
field: any;
|
|
49
|
+
};
|
|
50
|
+
getCustomErrorMessage(error: any, fieldLabel: string): string;
|
|
51
|
+
getErrorMessageFromArray(arrayIndex: number, field: string, filedTranslationKey: string, arrayName?: string): string;
|
|
52
|
+
getErrorMessage(field: string, filedTranslationKey: string, formGroup?: UntypedFormGroup | string): string;
|
|
53
|
+
getErrorMessageForField(fieldControl: any, filedTranslationKey: string): string;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormEditComponent<any>, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormEditComponent<any>, "app-base.form.edit", never, {}, {}, never, never, false, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { Rule } from '../models/rule';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class BaseTableImplementation<T = any, TEditArgs = any, TRemoveArgs = any> implements OnInit {
|
|
7
|
+
protected router: Router;
|
|
8
|
+
protected translate: TranslateService;
|
|
9
|
+
protected dataService: import("@rosoftlab/core").BaseService<import("@rosoftlab/core").BaseModel>;
|
|
10
|
+
protected modelToken: import("@angular/core").Type<import("@rosoftlab/core").BaseModel>;
|
|
11
|
+
protected dialogService: import("../interfaces/dialog.interface").IDialogService;
|
|
12
|
+
basePath: string;
|
|
13
|
+
title: string;
|
|
14
|
+
model: T | null;
|
|
15
|
+
dictPath: string | null;
|
|
16
|
+
fileLayout: string;
|
|
17
|
+
idProperty: string;
|
|
18
|
+
showHeader: boolean;
|
|
19
|
+
showSearch: boolean;
|
|
20
|
+
searchFields: string[] | null;
|
|
21
|
+
pageable: boolean;
|
|
22
|
+
pageSizes: number[];
|
|
23
|
+
defaultSort: string | null;
|
|
24
|
+
defaultSortDirection: 'asc' | 'desc' | null;
|
|
25
|
+
defaultFilter: any;
|
|
26
|
+
customInclude: string;
|
|
27
|
+
hasAdd: boolean;
|
|
28
|
+
canDelete: boolean;
|
|
29
|
+
canEdit: boolean;
|
|
30
|
+
deletePropertyName: string;
|
|
31
|
+
deleteDisableRule: Rule[];
|
|
32
|
+
editOnClick: boolean;
|
|
33
|
+
editOnDblClick: boolean;
|
|
34
|
+
editColumn: string | null;
|
|
35
|
+
useView: boolean;
|
|
36
|
+
hostClass: string;
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
get hostClasses(): string;
|
|
39
|
+
abstract loadData(): void;
|
|
40
|
+
protected addHandler(): void;
|
|
41
|
+
abstract editHandler(args: TEditArgs): void;
|
|
42
|
+
protected edit(dataItem: any, column?: any): void;
|
|
43
|
+
/**
|
|
44
|
+
* Abstract contract for removing items.
|
|
45
|
+
* TRemoveArgs allows Kendo to use RemoveEvent, while others might use a simple ID.
|
|
46
|
+
*/
|
|
47
|
+
abstract removeHandler(args: TRemoveArgs): void;
|
|
48
|
+
/**
|
|
49
|
+
* Shared delete logic that can be called by any implementation
|
|
50
|
+
*/
|
|
51
|
+
protected delete(dataItem: any): void;
|
|
52
|
+
abstract performDelete(id: any): void;
|
|
53
|
+
abstract getCellValue(item: any, column: any): any;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseTableImplementation<any, any, any>, never>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseTableImplementation<any, any, any>, never, never, { "model": { "alias": "model"; "required": false; }; "dictPath": { "alias": "dictPath"; "required": false; }; "fileLayout": { "alias": "fileLayout"; "required": false; }; "idProperty": { "alias": "idProperty"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "searchFields": { "alias": "searchFields"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "pageSizes": { "alias": "pageSizes"; "required": false; }; "defaultSort": { "alias": "defaultSort"; "required": false; }; "defaultSortDirection": { "alias": "defaultSortDirection"; "required": false; }; "defaultFilter": { "alias": "defaultFilter"; "required": false; }; "customInclude": { "alias": "customInclude"; "required": false; }; "hasAdd": { "alias": "hasAdd"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "deletePropertyName": { "alias": "deletePropertyName"; "required": false; }; "deleteDisableRule": { "alias": "deleteDisableRule"; "required": false; }; "editOnClick": { "alias": "editOnClick"; "required": false; }; "editOnDblClick": { "alias": "editOnDblClick"; "required": false; }; "editColumn": { "alias": "editColumn"; "required": false; }; "useView": { "alias": "useView"; "required": false; }; "hostClass": { "alias": "hostClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FieldErrorDisplayComponent {
|
|
3
|
+
errorMsg: string;
|
|
4
|
+
displayError: boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldErrorDisplayComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldErrorDisplayComponent, "rsl-field-error-display", never, { "errorMsg": { "alias": "errorMsg"; "required": false; }; "displayError": { "alias": "displayError"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PageNotFoundComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageNotFoundComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageNotFoundComponent, "rsl-page-not-found", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UnderConstructionComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnderConstructionComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnderConstructionComponent, "rsl-under-construction", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AttributeMetadata: any;
|
package/lib/core.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './auth';
|
|
2
|
+
export { FieldErrorDisplayComponent, PageNotFoundComponent, UnderConstructionComponent } from './base-components';
|
|
3
|
+
export * from './base-components/base-crud-implementation';
|
|
4
|
+
export { BaseFormEditComponent } from './base-components/base-form-edit.component';
|
|
5
|
+
export * from './base-components/base-table-implementation';
|
|
6
|
+
export * from './configurations';
|
|
7
|
+
export * from './grid-layout-format.enum';
|
|
8
|
+
export * from './index';
|
|
9
|
+
export { DIALOG_SERVICE_TOKEN, IDialogService } from './interfaces/dialog.interface';
|
|
10
|
+
export * from './models';
|
|
11
|
+
export * from './models/metadata-storage';
|
|
12
|
+
export * from './providers';
|
|
13
|
+
export * from './rsl-base-module';
|
|
14
|
+
export { RightService } from './services/right.service';
|
|
15
|
+
export * from './tokens/table-tokens';
|
|
16
|
+
export * from './utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BaseDatastoreConfig(config?: any): (target: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BaseModelConfig(config?: any): (target: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CustomType(config?: any): (target: any, propertyName: string | symbol) => void;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from './auth';
|
|
2
|
+
export * from './base-components';
|
|
3
|
+
export * from './decorators/attribute.decorator';
|
|
4
|
+
export * from './decorators/base-datastore-config.decorator';
|
|
5
|
+
export * from './decorators/base-model-config.decorator';
|
|
6
|
+
export * from './decorators/custom.type.decorator';
|
|
7
|
+
export * from './interceptors';
|
|
8
|
+
export * from './interfaces/attribute-decorator-options.interface';
|
|
9
|
+
export * from './interfaces/datastore-config.interface';
|
|
10
|
+
export * from './interfaces/model-config.interface';
|
|
11
|
+
export * from './interfaces/overrides.interface';
|
|
12
|
+
export * from './interfaces/property-converter.interface';
|
|
13
|
+
export * from './models/base-meta.model';
|
|
14
|
+
export * from './models/base-query-data';
|
|
15
|
+
export * from './models/base.model';
|
|
16
|
+
export * from './models/error-response.model';
|
|
17
|
+
export * from './models/filter-request';
|
|
18
|
+
export * from './models/rule';
|
|
19
|
+
export * from './pipes/input-error.pipe';
|
|
20
|
+
export * from './pipes/Nl2brPipe.pipe';
|
|
21
|
+
export * from './providers';
|
|
22
|
+
export * from './resolvers';
|
|
23
|
+
export * from './rsl-base-module';
|
|
24
|
+
export * from './services/base.service';
|
|
25
|
+
export * from './services/local-file.service';
|
|
26
|
+
export * from './validators/pattern-validator';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CacheService } from '../services/cache.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CacheInterceptor implements HttpInterceptor {
|
|
6
|
+
private expirationTime;
|
|
7
|
+
private cacheService;
|
|
8
|
+
private cache;
|
|
9
|
+
constructor(expirationTime: number, cacheService: CacheService);
|
|
10
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CacheInterceptor, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CacheInterceptor>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cache.interceptor';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export interface IDialogService {
|
|
4
|
+
confirmDelete(): Observable<boolean>;
|
|
5
|
+
confirm(content?: string, title?: string, confirmButtonText?: string, cancelButtonText?: string): Observable<boolean>;
|
|
6
|
+
showError(content?: string, title?: string, confirmButtonText?: string, cancelButtonText?: string): Observable<boolean>;
|
|
7
|
+
showSaveMessage(message?: string): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const DIALOG_SERVICE_TOKEN: InjectionToken<IDialogService>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ModelConfig } from '../interfaces/model-config.interface';
|
|
5
|
+
import { BaseDatastore, ModelType } from '../services/base-datastore.service';
|
|
6
|
+
export declare class BaseModel {
|
|
7
|
+
protected _datastore: BaseDatastore;
|
|
8
|
+
highlighted: boolean;
|
|
9
|
+
id: any;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
constructor(_datastore: BaseDatastore, data?: any);
|
|
12
|
+
save(params?: any, headers?: HttpHeaders, customUrl?: string, customBody?: any): Observable<this>;
|
|
13
|
+
patch(origModel: this, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<this>;
|
|
14
|
+
replace(params?: any, headers?: HttpHeaders, customUrl?: string, customBody?: any): Observable<this>;
|
|
15
|
+
get attributeMetadata(): any;
|
|
16
|
+
set attributeMetadata(val: any);
|
|
17
|
+
get hasDirtyAttributes(): boolean;
|
|
18
|
+
rollbackAttributes(): void;
|
|
19
|
+
get modelConfig(): ModelConfig;
|
|
20
|
+
protected deserializeModel<T extends BaseModel>(modelType: ModelType<T>, data: any): T;
|
|
21
|
+
protected transformSerializedNamesToPropertyNames<T extends BaseModel>(modelType: ModelType<T>, attributes: any): any;
|
|
22
|
+
getModelPropertyNames(model: BaseModel): any;
|
|
23
|
+
getModelRequiredPropertyNames(model: BaseModel): any;
|
|
24
|
+
getModelDefaultPropertyValues(model: BaseModel): any;
|
|
25
|
+
getModelSubGroupPropertyNames(model: BaseModel): any;
|
|
26
|
+
getFromGroup(fb: UntypedFormBuilder): UntypedFormGroup;
|
|
27
|
+
private getSubFromGroup;
|
|
28
|
+
getModelFromFormGroup(formGroup: UntypedFormGroup, id?: any): void;
|
|
29
|
+
getSerializedModel(): any;
|
|
30
|
+
getCellClass(property: string): string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./base.model";
|
|
2
|
+
export declare class Employee extends BaseModel {
|
|
3
|
+
id: string;
|
|
4
|
+
userName: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
role: any;
|
|
9
|
+
password: string;
|
|
10
|
+
confirmPassword: string;
|
|
11
|
+
extraData: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface JsonBaseError {
|
|
2
|
+
id?: string;
|
|
3
|
+
links?: Array<any>;
|
|
4
|
+
status?: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
detail?: string;
|
|
8
|
+
source?: {
|
|
9
|
+
pointer?: string;
|
|
10
|
+
parameter?: string;
|
|
11
|
+
};
|
|
12
|
+
meta?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare class ErrorResponse {
|
|
15
|
+
errors?: JsonBaseError[];
|
|
16
|
+
constructor(errors?: JsonBaseError[]);
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel } from "./base.model";
|
|
2
|
+
export declare class Menu extends BaseModel {
|
|
3
|
+
id: string;
|
|
4
|
+
header?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
link?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
sublinks?: Menu[];
|
|
9
|
+
target?: string;
|
|
10
|
+
external?: boolean;
|
|
11
|
+
description?: string;
|
|
12
|
+
order?: number;
|
|
13
|
+
translationKey: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from "./base.model";
|
|
2
|
+
export declare class Right extends BaseModel {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
rightKey: string;
|
|
6
|
+
pagePath: string;
|
|
7
|
+
order: number;
|
|
8
|
+
isMenu: boolean;
|
|
9
|
+
resourceName: string;
|
|
10
|
+
parentId: string;
|
|
11
|
+
color: string;
|
|
12
|
+
defaultRoles: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class Nl2brPipe implements PipeTransform {
|
|
4
|
+
transform(value: any, args?: any): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Nl2brPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<Nl2brPipe, "nl2br", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputErrorPipe implements PipeTransform {
|
|
5
|
+
protected translate: TranslateService;
|
|
6
|
+
constructor(translate: TranslateService);
|
|
7
|
+
transform(value: any, filedTranslationKey: any): string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputErrorPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputErrorPipe, "inputError", false>;
|
|
10
|
+
}
|