@kuzntsv/uikit 0.0.39 → 0.0.42

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.
Files changed (29) hide show
  1. package/auth/components/login-page/login-page.component.d.ts +4 -7
  2. package/auth/components/permit-form/permit-form.component.d.ts +0 -1
  3. package/auth/directives/disable-if-role.directive.d.ts +4 -5
  4. package/auth/directives/disable-if-unauthorized.directive.d.ts +3 -5
  5. package/auth/directives/hide-if-role-not.directive.d.ts +4 -5
  6. package/auth/directives/hide-if-unauthorized.directive.d.ts +3 -5
  7. package/auth/services/auth-role.service.d.ts +1 -3
  8. package/auth/services/auth.service.d.ts +6 -11
  9. package/base/base-classes/base-edit-class.d.ts +0 -1
  10. package/base/base-classes/base-filter-class.d.ts +1 -1
  11. package/base/base-classes/base-nav-bar-menu-class.d.ts +0 -1
  12. package/base/base-classes/base-page-class.d.ts +1 -1
  13. package/base/base-classes/base-service-class.d.ts +0 -1
  14. package/base/base-toolbar/components/base-toolbar.component.d.ts +3 -3
  15. package/fesm2022/kuzntsv-uikit.mjs +237 -309
  16. package/fesm2022/kuzntsv-uikit.mjs.map +1 -1
  17. package/guards/redirect-guard.d.ts +0 -1
  18. package/loader/loader.service.d.ts +1 -3
  19. package/loader/progress-spinner.component.d.ts +2 -3
  20. package/package.json +1 -1
  21. package/pipes/safe.pipe.d.ts +1 -3
  22. package/services/alert.service.d.ts +1 -3
  23. package/services/avatar.service.d.ts +1 -3
  24. package/services/export.service.d.ts +0 -1
  25. package/services/log.service.d.ts +1 -3
  26. package/shared/date-range-input/date-range-input.component.d.ts +5 -2
  27. package/shared/dialog/dialog.component.d.ts +4 -4
  28. package/shared/navbar/navbar.d.ts +6 -9
  29. package/shared/not-found/not-found.component.d.ts +0 -1
@@ -1,14 +1,8 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { ActivatedRoute } from '@angular/router';
3
2
  import { Subscription } from 'rxjs';
4
- import { LoaderService } from '../../../loader';
5
3
  import { Authenticate } from '../../models/user';
6
- import { AuthService } from '../../services/auth.service';
7
4
  import * as i0 from "@angular/core";
8
5
  export declare class LoginPageComponent implements OnInit, OnDestroy {
9
- private authService;
10
- private route;
11
- private loaderService;
12
6
  pending: boolean;
13
7
  error: string;
14
8
  isKiosk: boolean;
@@ -18,7 +12,10 @@ export declare class LoginPageComponent implements OnInit, OnDestroy {
18
12
  sub: Subscription;
19
13
  /** Url страницы, с которой был переход (после входа вернет на неё) */
20
14
  returnUrl: string;
21
- constructor(authService: AuthService, route: ActivatedRoute, loaderService: LoaderService);
15
+ private readonly authService;
16
+ private readonly route;
17
+ private readonly loaderService;
18
+ constructor();
22
19
  ngOnInit(): void;
23
20
  ngOnDestroy(): void;
24
21
  onSubmitError(): () => void;
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
3
3
  export declare class PermitFormComponent implements OnInit {
4
4
  hidy: ElementRef | undefined;
5
5
  submitted: import("@angular/core").OutputEmitterRef<string>;
6
- constructor();
7
6
  mouseHandling(): void;
8
7
  ngOnInit(): void;
9
8
  /**
@@ -1,12 +1,11 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { AuthService } from '../services/auth.service';
1
+ import { OnInit } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class DisableIfRoleDirective implements OnInit {
5
- private el;
6
- private authService;
7
4
  role: import("@angular/core").InputSignal<string>;
8
5
  userRoles: import("@angular/core").WritableSignal<string[]>;
9
- constructor(el: ElementRef, authService: AuthService);
6
+ private readonly el;
7
+ private readonly authService;
8
+ constructor();
10
9
  ngOnInit(): void;
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DisableIfRoleDirective, never>;
12
11
  static ɵdir: i0.ɵɵDirectiveDeclaration<DisableIfRoleDirective, "[ngxUikDisableIfRole]", never, { "role": { "alias": "ngxUikDisableIfRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -1,12 +1,10 @@
1
- import { ElementRef } from '@angular/core';
2
1
  import { AuthPermission } from '../auth.types';
3
- import { AuthService } from '../services/auth.service';
4
2
  import * as i0 from "@angular/core";
5
3
  export declare class DisableIfUnauthorizedDirective {
6
- private el;
7
- private authservice;
8
4
  permission: import("@angular/core").InputSignal<AuthPermission | undefined>;
9
- constructor(el: ElementRef, authservice: AuthService);
5
+ private readonly el;
6
+ private readonly authService;
7
+ constructor();
10
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DisableIfUnauthorizedDirective, never>;
11
9
  static ɵdir: i0.ɵɵDirectiveDeclaration<DisableIfUnauthorizedDirective, "[ngxUikDisableIfUnauthorized]", never, { "permission": { "alias": "ngxUikDisableIfUnauthorized"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
10
  }
@@ -1,12 +1,11 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { AuthService } from '../services/auth.service';
1
+ import { OnInit } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class HideIfRoleNotDirective implements OnInit {
5
- private el;
6
- private authService;
7
4
  roles: import("@angular/core").InputSignal<string[]>;
8
5
  userRoles: import("@angular/core").WritableSignal<string[]>;
9
- constructor(el: ElementRef, authService: AuthService);
6
+ private readonly el;
7
+ private readonly authService;
8
+ constructor();
10
9
  ngOnInit(): void;
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<HideIfRoleNotDirective, never>;
12
11
  static ɵdir: i0.ɵɵDirectiveDeclaration<HideIfRoleNotDirective, "[ngxUikHideIfRoleNot]", never, { "roles": { "alias": "ngxUikHideIfRoleNot"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -1,12 +1,10 @@
1
- import { ElementRef, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { AuthPermission } from '../auth.types';
3
- import { AuthService } from '../services/auth.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class HideIfUnauthorizedDirective implements OnInit {
6
- private el;
7
- private authService;
8
5
  permission: import("@angular/core").InputSignal<AuthPermission | undefined>;
9
- constructor(el: ElementRef, authService: AuthService);
6
+ private readonly el;
7
+ private readonly authService;
10
8
  ngOnInit(): void;
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<HideIfUnauthorizedDirective, never>;
12
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<HideIfUnauthorizedDirective, "[ngxUikHideIfUnauthorized]", never, { "permission": { "alias": "ngxUikHideIfUnauthorized"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -1,9 +1,7 @@
1
- import { HttpClient } from '@angular/common/http';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class RoleService {
4
- private http;
5
3
  baseRoute: string;
6
- constructor(http: HttpClient);
4
+ private readonly http;
7
5
  getRoles(): import("rxjs").Observable<Object>;
8
6
  static ɵfac: i0.ɵɵFactoryDeclaration<RoleService, never>;
9
7
  static ɵprov: i0.ɵɵInjectableDeclaration<RoleService>;
@@ -1,17 +1,7 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Router } from '@angular/router';
3
1
  import { BehaviorSubject } from 'rxjs';
4
- import { AlertService } from '../../services/alert.service';
5
- import { LogService } from '../../services/log.service';
6
2
  import { AuthPermission } from '../auth.types';
7
- import { UserService } from './auth-user.service';
8
3
  import * as i0 from "@angular/core";
9
4
  export declare class AuthService {
10
- private http;
11
- private router;
12
- private console;
13
- private alertService;
14
- private user;
15
5
  baseRoute: string;
16
6
  permissions: string[];
17
7
  readonly defaultRoles: never[];
@@ -20,7 +10,12 @@ export declare class AuthService {
20
10
  private readonly hideRole;
21
11
  private readonly defaultHeader;
22
12
  private idHuman;
23
- constructor(http: HttpClient, router: Router, console: LogService, alertService: AlertService, user: UserService);
13
+ private readonly http;
14
+ private readonly router;
15
+ private readonly console;
16
+ private readonly alertService;
17
+ private readonly userService;
18
+ constructor();
24
19
  /** Проверка разрешений */
25
20
  hasPermission(authPermission: AuthPermission): boolean;
26
21
  /** Проверка ролей */
@@ -21,7 +21,6 @@ export declare abstract class BaseEditClass<T> implements OnDestroy {
21
21
  protected alertService: AlertService;
22
22
  /** Объект для отписки (вызывается метод unsubscribe при уничтожннии компонента). */
23
23
  protected subscription: Subscription;
24
- constructor();
25
24
  ngOnDestroy(): void;
26
25
  onNoClick(event: PointerEvent): void;
27
26
  onSubmit(): void;
@@ -8,7 +8,7 @@ export declare class BaseFilterClass implements OnDestroy {
8
8
  protected localStorageService: LocalStorageService;
9
9
  /** Сервис индиатор загрузки. */
10
10
  protected loaderService: LoaderService;
11
- /** Сервис уведослений. */
11
+ /** Сервис уведомлений. */
12
12
  protected alertService: AlertService;
13
13
  defaultDebounceTime: number;
14
14
  /** Объект для отписки (вызывается метод unsubscribe при уничтожннии компонента). */
@@ -3,7 +3,6 @@ import { Router } from "@angular/router";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BaseNavBarMenuClass {
5
5
  router: Router;
6
- constructor();
7
6
  /** Нажата средняя кнопка (открыть ссылку в новой вкладке). */
8
7
  onMiddleClick(event: PointerEvent, baseUrl: string, menu: MatMenuTrigger): void;
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseNavBarMenuClass, never>;
@@ -85,7 +85,7 @@ export declare class BasePageClass<T> implements OnDestroy {
85
85
  protected localStorageService: LocalStorageService;
86
86
  /** Сервис индиатор загрузки. */
87
87
  protected loaderService: LoaderService;
88
- /** Сервис уведослений. */
88
+ /** Сервис уведомлений. */
89
89
  protected alertService: AlertService;
90
90
  /** Объект для отписки (вызывается метод unsubscribe при уничтожннии компонента). */
91
91
  subscription: Subscription;
@@ -11,7 +11,6 @@ export declare abstract class BaseServiceClass<T extends BaseClass> {
11
11
  protected sortColumnParam: string;
12
12
  protected directionParam: string;
13
13
  protected http: HttpClient;
14
- constructor();
15
14
  getObjects(): Observable<T[]>;
16
15
  getObject(id: number): any;
17
16
  getCount(): Observable<number>;
@@ -1,9 +1,9 @@
1
- import { OnDestroy } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { AuthService } from '../../../auth';
4
4
  import { IContextMenuOptions } from '../../../shared/table';
5
5
  import * as i0 from "@angular/core";
6
- export declare class BaseToolbarComponent implements OnDestroy {
6
+ export declare class BaseToolbarComponent implements OnInit, OnDestroy {
7
7
  rolesNewBtn: import("@angular/core").InputSignal<string[]>;
8
8
  rolesEditBtn: import("@angular/core").InputSignal<string[]>;
9
9
  rolesRemoveBtn: import("@angular/core").InputSignal<string[]>;
@@ -49,7 +49,7 @@ export declare class BaseToolbarComponent implements OnDestroy {
49
49
  protected authService: AuthService;
50
50
  userRoles: string[];
51
51
  subscription: Subscription;
52
- constructor();
52
+ ngOnInit(): void;
53
53
  ngOnDestroy(): void;
54
54
  isShow(roles: string[]): boolean;
55
55
  onNewClick(): void;