zek 17.3.36 → 17.3.39
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/esm2022/lib/components/base.component.mjs +6 -3
- package/esm2022/lib/services/auth-guard.service.mjs +2 -2
- package/fesm2022/zek.mjs +7 -4
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/components/base.component.d.ts +3 -1
- package/lib/services/auth-guard.service.d.ts +1 -1
- package/lib/utils/bootstrap.helper.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
3
|
import { PrintType } from '../models/print.model';
|
|
3
4
|
import { CoreComponent } from './core.component';
|
|
@@ -13,6 +14,7 @@ export declare class BaseComponent<TModel = any> extends CoreComponent {
|
|
|
13
14
|
private _url;
|
|
14
15
|
protected get url(): string;
|
|
15
16
|
model?: TModel | null;
|
|
17
|
+
modelChange: EventEmitter<TModel | null | undefined>;
|
|
16
18
|
protected getParam(name: string): string | null;
|
|
17
19
|
protected getQueryParam(name: string): string | null;
|
|
18
20
|
protected navigateReturnUrl(): void;
|
|
@@ -20,5 +22,5 @@ export declare class BaseComponent<TModel = any> extends CoreComponent {
|
|
|
20
22
|
downloadFile(blob: Blob | null, fileName: string, type?: string | null): void;
|
|
21
23
|
print(id?: number | null, printType?: PrintType): void;
|
|
22
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent<any>, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent<any>, never, never, { "readOnly": { "alias": "readOnly"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent<any>, never, never, { "readOnly": { "alias": "readOnly"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, false, never>;
|
|
24
26
|
}
|
|
@@ -2,7 +2,7 @@ import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router, CanAc
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { AuthService } from './auth.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const zekAuthGuard: CanActivateFn;
|
|
6
6
|
export declare class AuthGuardService implements CanActivate {
|
|
7
7
|
protected readonly authService: AuthService;
|
|
8
8
|
protected readonly router: Router;
|
|
@@ -16,7 +16,7 @@ export declare enum Color {
|
|
|
16
16
|
Dark = 8
|
|
17
17
|
}
|
|
18
18
|
export declare class BootstrapHelper {
|
|
19
|
-
static cssColor(color?: Color | null): "bg-primary text-white" | "bg-secondary text-white" | "bg-success text-white" | "bg-danger text-white" | "bg-warning text-dark" | "bg-info text-dark" | "bg-dark text-white"
|
|
19
|
+
static cssColor(color?: Color | null): "" | "bg-primary text-white" | "bg-secondary text-white" | "bg-success text-white" | "bg-danger text-white" | "bg-warning text-dark" | "bg-info text-dark" | "bg-dark text-white";
|
|
20
20
|
static cssIcon(type: ComponentType): string | null;
|
|
21
21
|
static cssButton(type: ComponentType): string;
|
|
22
22
|
static cssAlert(type?: AlertType | null): string;
|