zek 17.3.37 → 17.3.41

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.
@@ -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
  }
@@ -1,13 +1,2 @@
1
- import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router, CanActivateFn } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
- import { AuthService } from './auth.service';
4
- import * as i0 from "@angular/core";
1
+ import { CanActivateFn } from '@angular/router';
5
2
  export declare const zekAuthGuard: CanActivateFn;
6
- export declare class AuthGuardService implements CanActivate {
7
- protected readonly authService: AuthService;
8
- protected readonly router: Router;
9
- constructor(authService: AuthService, router: Router);
10
- canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean | Observable<boolean> | Promise<boolean>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuardService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuardService>;
13
- }
@@ -19,8 +19,8 @@ export interface IService {
19
19
  }
20
20
  export declare class CrudService extends BaseService implements IService {
21
21
  constructor(controller: string, api: WebApiClient, httpErrorHandler: HttpErrorHandler);
22
- get(id: number): Observable<any>;
23
- get2(id: number, id2: number): Observable<any>;
22
+ get(id: any): Observable<any>;
23
+ get2(id: any, id2: any): Observable<any>;
24
24
  getAll(filter?: any): Observable<PagedList>;
25
25
  sum(filter?: any): Observable<any>;
26
26
  save(model: any): Observable<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zek",
3
- "version": "17.3.37",
3
+ "version": "17.3.41",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"