@kuzntsv/uikit 0.0.1

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 (100) hide show
  1. package/README.md +63 -0
  2. package/assets/_navbar-theme.scss +25 -0
  3. package/auth/auth.types.d.ts +1 -0
  4. package/auth/directives/disable-if-role.directive.d.ts +12 -0
  5. package/auth/directives/disable-if-unauthorized.directive.d.ts +13 -0
  6. package/auth/directives/hide-if-role-not.directive.d.ts +12 -0
  7. package/auth/directives/hide-if-unauthorized.directive.d.ts +13 -0
  8. package/auth/directives/index.d.ts +4 -0
  9. package/auth/index.d.ts +4 -0
  10. package/auth/login-form.component.d.ts +16 -0
  11. package/auth/login-page.component.d.ts +29 -0
  12. package/auth/models/user.d.ts +7 -0
  13. package/auth/permit-form.component.d.ts +18 -0
  14. package/auth/services/auth-guard.service.d.ts +2 -0
  15. package/auth/services/auth-role.service.d.ts +10 -0
  16. package/auth/services/auth-user.service.d.ts +35 -0
  17. package/auth/services/auth.service.d.ts +44 -0
  18. package/auth/services/index.d.ts +5 -0
  19. package/auth/services/role-guard.service.d.ts +2 -0
  20. package/base/base-classes/base-class.d.ts +3 -0
  21. package/base/base-classes/base-edit-class.d.ts +17 -0
  22. package/base/base-classes/base-edit-dialog-data.d.ts +9 -0
  23. package/base/base-classes/base-entity-action.d.ts +10 -0
  24. package/base/base-classes/base-filter-class.d.ts +7 -0
  25. package/base/base-classes/base-nav-bar-menu-class.d.ts +11 -0
  26. package/base/base-classes/base-page-class.d.ts +117 -0
  27. package/base/base-classes/base-service-class.d.ts +23 -0
  28. package/base/base-classes/index.d.ts +8 -0
  29. package/base/base-toolbar/base-toolbar.service.d.ts +7 -0
  30. package/base/base-toolbar/components/base-toolbar.component.d.ts +67 -0
  31. package/base/index.d.ts +2 -0
  32. package/base/interfaces/alert-service.interface.d.ts +44 -0
  33. package/base/interfaces/index.d.ts +1 -0
  34. package/core/animations/animations.service.d.ts +10 -0
  35. package/core/animations/index.d.ts +2 -0
  36. package/core/animations/route.animations.d.ts +6 -0
  37. package/core/index.d.ts +1 -0
  38. package/fesm2022/kuzntsv-uikit.mjs +2540 -0
  39. package/fesm2022/kuzntsv-uikit.mjs.map +1 -0
  40. package/guards/index.d.ts +1 -0
  41. package/guards/redirect-guard.d.ts +8 -0
  42. package/index.d.ts +5 -0
  43. package/loader/index.d.ts +2 -0
  44. package/loader/loader.service.d.ts +11 -0
  45. package/loader/progress-spinner.component.d.ts +9 -0
  46. package/models/deserializable.model.d.ts +3 -0
  47. package/models/environment.model.d.ts +12 -0
  48. package/models/index.d.ts +3 -0
  49. package/models/sec-user-view.model.d.ts +16 -0
  50. package/models/sec-user.model.d.ts +12 -0
  51. package/package.json +23 -0
  52. package/pipes/index.d.ts +3 -0
  53. package/pipes/safe.pipe.d.ts +10 -0
  54. package/pipes/time.pipe.d.ts +7 -0
  55. package/pipes/truncate.pipe.d.ts +7 -0
  56. package/public-api.d.ts +10 -0
  57. package/services/alert.service.d.ts +16 -0
  58. package/services/avatar.service.d.ts +11 -0
  59. package/services/export.service.d.ts +9 -0
  60. package/services/index.d.ts +4 -0
  61. package/services/local-storage-service.d.ts +10 -0
  62. package/services/log.service.d.ts +10 -0
  63. package/shared/chip-input-autocomplete/chip-input-autocomplete.component.d.ts +28 -0
  64. package/shared/chip-input-autocomplete/index.d.ts +2 -0
  65. package/shared/chip-input-autocomplete/models/chip-item.d.ts +4 -0
  66. package/shared/chip-input-autocomplete/models/index.d.ts +1 -0
  67. package/shared/date-range-filter/date-range-filter.component.d.ts +22 -0
  68. package/shared/date-range-filter/index.d.ts +2 -0
  69. package/shared/date-range-filter/models/date-formats.d.ts +11 -0
  70. package/shared/date-range-filter/models/date-range.d.ts +5 -0
  71. package/shared/date-range-filter/models/index.d.ts +2 -0
  72. package/shared/dialog/dialog.component.d.ts +11 -0
  73. package/shared/dialog/index.d.ts +2 -0
  74. package/shared/dialog/models/dialog-action.d.ts +6 -0
  75. package/shared/dialog/models/dialog-data.d.ts +7 -0
  76. package/shared/dialog/models/index.d.ts +2 -0
  77. package/shared/index.d.ts +9 -0
  78. package/shared/logo/imz-logo.component.d.ts +5 -0
  79. package/shared/logo/index.d.ts +1 -0
  80. package/shared/navbar/index.d.ts +1 -0
  81. package/shared/navbar/navbar.d.ts +24 -0
  82. package/shared/not-found/index.d.ts +1 -0
  83. package/shared/not-found/not-found.component.d.ts +6 -0
  84. package/shared/select-autocomplete-with-virtual-scroll/index.d.ts +1 -0
  85. package/shared/select-autocomplete-with-virtual-scroll/models/index.d.ts +1 -0
  86. package/shared/select-autocomplete-with-virtual-scroll/models/select-item.d.ts +4 -0
  87. package/shared/select-autocomplete-with-virtual-scroll/select-autocomplete-with-virtual-scroll.component.d.ts +27 -0
  88. package/shared/select-with-group/index.d.ts +2 -0
  89. package/shared/select-with-group/models/index.d.ts +2 -0
  90. package/shared/select-with-group/models/select-group.d.ts +5 -0
  91. package/shared/select-with-group/models/select-item.d.ts +4 -0
  92. package/shared/select-with-group/select-with-group.component.d.ts +21 -0
  93. package/shared/table/index.d.ts +3 -0
  94. package/shared/table/models/column-options.interface.d.ts +26 -0
  95. package/shared/table/models/context-menu-options.interface.d.ts +22 -0
  96. package/shared/table/models/index.d.ts +2 -0
  97. package/shared/table/table.component.d.ts +75 -0
  98. package/shared/table/table.state.d.ts +11 -0
  99. package/types/index.d.ts +1 -0
  100. package/types/types.d.ts +6 -0
@@ -0,0 +1 @@
1
+ export * from './redirect-guard';
@@ -0,0 +1,8 @@
1
+ import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RedirectGuard {
4
+ constructor();
5
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RedirectGuard, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<RedirectGuard>;
8
+ }
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@kuzntsv/uikit" />
5
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from './loader.service';
2
+ export * from './progress-spinner.component';
@@ -0,0 +1,11 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoaderService {
4
+ private overlay;
5
+ private overlayRef;
6
+ constructor(overlay: Overlay);
7
+ show(): void;
8
+ hide(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { ChangeDetectorRef, AfterViewInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ProgressSpinnerComponent implements AfterViewInit {
4
+ private cdRef;
5
+ constructor(cdRef: ChangeDetectorRef);
6
+ ngAfterViewInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressSpinnerComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressSpinnerComponent, "lib-loader", never, {}, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,3 @@
1
+ export interface Deserializable {
2
+ deserialize(input: any): this;
3
+ }
@@ -0,0 +1,12 @@
1
+ export declare abstract class Environment {
2
+ abstract readonly appVersion: string;
3
+ abstract readonly production: boolean;
4
+ abstract readonly endpoints: {
5
+ readonly common: string;
6
+ readonly integration: string;
7
+ readonly integration1c: string;
8
+ readonly main: string;
9
+ readonly scheduler: string;
10
+ readonly elasticSearch: string;
11
+ };
12
+ }
@@ -0,0 +1,3 @@
1
+ export * from './deserializable.model';
2
+ export * from './environment.model';
3
+ export * from './sec-user.model';
@@ -0,0 +1,16 @@
1
+ import { Deserializable } from './deserializable.model';
2
+ export declare class SecUserView implements Deserializable {
3
+ id: number;
4
+ idHuman: number;
5
+ loginAD: string;
6
+ dept: number;
7
+ tabnum: number;
8
+ lastname: string;
9
+ firstname: string;
10
+ middlename: string;
11
+ fio: string;
12
+ dateHuman: Date | undefined;
13
+ profession: string;
14
+ constructor(init: SecUserView);
15
+ deserialize(input: any): this;
16
+ }
@@ -0,0 +1,12 @@
1
+ import { Deserializable } from './deserializable.model';
2
+ import { SecUserView } from './sec-user-view.model';
3
+ export declare class SecUser implements Deserializable {
4
+ id: number;
5
+ login: string;
6
+ fio: string;
7
+ dept: number;
8
+ tabnum: number;
9
+ userView: SecUserView | undefined;
10
+ constructor(init: SecUser);
11
+ deserialize(input: any): this;
12
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@kuzntsv/uikit",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^19.2.0",
6
+ "@angular/core": "^19.2.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false,
12
+ "module": "fesm2022/kuzntsv-uikit.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "default": "./fesm2022/kuzntsv-uikit.mjs"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,3 @@
1
+ export * from './safe.pipe';
2
+ export * from './time.pipe';
3
+ export * from './truncate.pipe';
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SafePipe implements PipeTransform {
5
+ private sanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(url: string): import("@angular/platform-browser").SafeResourceUrl;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TimePipe implements PipeTransform {
4
+ transform(value: number): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimePipe, "time", true>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TruncatePipe implements PipeTransform {
4
+ transform(value: string, args: any[]): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
7
+ }
@@ -0,0 +1,10 @@
1
+ export * from './auth';
2
+ export * from './base';
3
+ export * from './core';
4
+ export * from './guards';
5
+ export * from './loader';
6
+ export * from './models';
7
+ export * from './pipes';
8
+ export * from './services';
9
+ export * from './shared';
10
+ export * from './types';
@@ -0,0 +1,16 @@
1
+ import { MatSnackBar } from '@angular/material/snack-bar';
2
+ import { IAlertService } from '../base/interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AlertService implements IAlertService {
5
+ private _snackBar;
6
+ private readonly duration;
7
+ constructor(_snackBar: MatSnackBar);
8
+ openSnackBar(message: string, action: string, duration?: number): void;
9
+ success(message: string, duration?: number): void;
10
+ info(message: string, duration?: number): void;
11
+ helper(message: string, duration?: number): void;
12
+ warning(message: string, duration?: number): void;
13
+ error(message: string, duration?: number): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
16
+ }
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AvatarService {
5
+ private http;
6
+ baseRoute: string;
7
+ constructor(http: HttpClient);
8
+ getAvatarById(idHuman: number): Observable<ArrayBuffer>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvatarService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<AvatarService>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ExportService {
3
+ constructor();
4
+ exportCSV(data: any, filename: string | undefined, arrHeader: any, newHeaders: any): void;
5
+ convertToCSV(objArray: any, headerList: any, newHeaders: any): string;
6
+ exportExcel(data: any, heading: any, sheetName?: string, filename?: string): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExportService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExportService>;
9
+ }
@@ -0,0 +1,4 @@
1
+ export * from './alert.service';
2
+ export * from './avatar.service';
3
+ export * from './local-storage-service';
4
+ export * from './export.service';
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LocalStorageService {
3
+ constructor();
4
+ saveData(key: string, value: string): void;
5
+ getData(key: string): string | null;
6
+ removeData(key: string): void;
7
+ clearData(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Environment } from '../models/environment.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LogService {
4
+ private env;
5
+ logPrefix: string;
6
+ constructor(env: Environment);
7
+ log(...args: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<LogService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<LogService>;
10
+ }
@@ -0,0 +1,28 @@
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormControl } from "@angular/forms";
3
+ import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
4
+ import { BehaviorSubject, Observable, Subscription } from "rxjs";
5
+ import { ChipItem } from './models';
6
+ import * as i0 from "@angular/core";
7
+ export declare class BaseMatChipComponent implements OnInit, OnDestroy {
8
+ items$: BehaviorSubject<ChipItem[]>;
9
+ selectedItems$: Observable<string[]>;
10
+ title: string;
11
+ selectedItemsChange: EventEmitter<string[]>;
12
+ input: ElementRef<HTMLInputElement> | undefined;
13
+ separatorKeysCodes: number[];
14
+ inputCtrl: FormControl<any>;
15
+ filteredItems$: Observable<ChipItem[]> | undefined;
16
+ selectedItems: ChipItem[];
17
+ items: ChipItem[];
18
+ subscription: Subscription | undefined;
19
+ constructor();
20
+ ngOnInit(): void;
21
+ ngOnDestroy(): void;
22
+ remove(value: string): void;
23
+ selected(event: MatAutocompleteSelectedEvent): void;
24
+ private _filter;
25
+ onCloseClick($event: MouseEvent): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMatChipComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseMatChipComponent, "lib-chip-input-autocomplete", never, { "items$": { "alias": "items$"; "required": false; }; "selectedItems$": { "alias": "selectedItems$"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "selectedItemsChange": "selectedItemsChange"; }, never, never, true, never>;
28
+ }
@@ -0,0 +1,2 @@
1
+ export * from './chip-input-autocomplete.component';
2
+ export * from './models';
@@ -0,0 +1,4 @@
1
+ export interface ChipItem {
2
+ value: string;
3
+ viewValue: string;
4
+ }
@@ -0,0 +1 @@
1
+ export * from './chip-item';
@@ -0,0 +1,22 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import 'moment/locale/ru';
4
+ import { Subject, BehaviorSubject, Subscription } from 'rxjs';
5
+ import { DateRange } from './models';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DateRangeFilterComponent implements OnInit, OnDestroy {
8
+ label: string;
9
+ dateRange$: BehaviorSubject<DateRange>;
10
+ minDate: Date;
11
+ clearFilter$: Subject<boolean>;
12
+ required: boolean;
13
+ dateRangeChange: EventEmitter<DateRange>;
14
+ form: FormGroup;
15
+ subscription: Subscription | undefined;
16
+ constructor();
17
+ ngOnInit(): void;
18
+ ngOnDestroy(): void;
19
+ private rangeToDateDateRange;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeFilterComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeFilterComponent, "lib-date-range-filter", never, { "label": { "alias": "label"; "required": false; }; "dateRange$": { "alias": "dateRange$"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "clearFilter$": { "alias": "clearFilter$"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "dateRangeChange": "dateRangeChange"; }, never, never, true, never>;
22
+ }
@@ -0,0 +1,2 @@
1
+ export * from './date-range-filter.component';
2
+ export * from './models';
@@ -0,0 +1,11 @@
1
+ export declare const MY_FORMATS: {
2
+ parse: {
3
+ dateInput: string;
4
+ };
5
+ display: {
6
+ dateInput: string;
7
+ monthYearLabel: string;
8
+ dateA11yLabel: string;
9
+ monthYearA11yLabel: string;
10
+ };
11
+ };
@@ -0,0 +1,5 @@
1
+ export interface DateRange {
2
+ begin: string;
3
+ end: string;
4
+ }
5
+ export declare function dateFormat(date: Date): string;
@@ -0,0 +1,2 @@
1
+ export * from './date-range';
2
+ export * from './date-formats';
@@ -0,0 +1,11 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { DialogData } from '.';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DialogComponent {
5
+ dialogRef: MatDialogRef<DialogComponent>;
6
+ data: DialogData;
7
+ constructor(dialogRef: MatDialogRef<DialogComponent>, data: DialogData);
8
+ onNoClick(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "lib-dialog", never, {}, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from './dialog.component';
2
+ export * from './models';
@@ -0,0 +1,6 @@
1
+ export declare enum DialogAction {
2
+ Add = "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",
3
+ Edit = "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C",
4
+ Delete = "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
5
+ None = ""
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface DialogData {
2
+ id: string;
3
+ title: string;
4
+ message: string;
5
+ btnNoTitle: string;
6
+ btnYesTitle: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './dialog-action';
2
+ export * from './dialog-data';
@@ -0,0 +1,9 @@
1
+ export * from './chip-input-autocomplete';
2
+ export * from './date-range-filter';
3
+ export * from './dialog';
4
+ export * from './logo';
5
+ export * from './navbar';
6
+ export * from './not-found';
7
+ export * from './select-autocomplete-with-virtual-scroll';
8
+ export * from './select-with-group';
9
+ export * from './table';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ImzLogoComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImzLogoComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImzLogoComponent, "lib-imz-logo", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1 @@
1
+ export * from './imz-logo.component';
@@ -0,0 +1 @@
1
+ export * from './navbar';
@@ -0,0 +1,24 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { Router } from '@angular/router';
4
+ import { BehaviorSubject, Subscription } from 'rxjs';
5
+ import { AuthService, UserService } from '../../auth';
6
+ import { AvatarService } from '../../services';
7
+ import * as i0 from "@angular/core";
8
+ export declare class NavBarComponent implements OnDestroy {
9
+ private authService;
10
+ private avatarService;
11
+ private dialog;
12
+ private router;
13
+ loggedIn$: BehaviorSubject<boolean>;
14
+ roles$: BehaviorSubject<string[]>;
15
+ fioUser: string;
16
+ photoURL: string;
17
+ subscription: Subscription | undefined;
18
+ constructor(authService: AuthService, userService: UserService, avatarService: AvatarService, dialog: MatDialog, router: Router);
19
+ ngOnDestroy(): void;
20
+ logout(): void;
21
+ openDialog(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavBarComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavBarComponent, "lib-navbar", never, {}, {}, never, ["*"], true, never>;
24
+ }
@@ -0,0 +1 @@
1
+ export * from './not-found.component';
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NotFoundComponent {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotFoundComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotFoundComponent, "lib-not-found", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './select-autocomplete-with-virtual-scroll.component';
@@ -0,0 +1 @@
1
+ export * from './select-item';
@@ -0,0 +1,4 @@
1
+ export interface SelectItem {
2
+ value: string;
3
+ viewValue: string;
4
+ }
@@ -0,0 +1,27 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { BehaviorSubject, Subscription } from 'rxjs';
4
+ import { SelectItem } from './models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BaseSelectAutocompleteWithVirtualScrollComponent implements OnInit, OnDestroy {
7
+ items$: BehaviorSubject<SelectItem[]>;
8
+ selectedItem$: BehaviorSubject<SelectItem | undefined>;
9
+ title: string;
10
+ isVisible: boolean;
11
+ isRequired: boolean;
12
+ isDisabled: boolean;
13
+ width: string;
14
+ selectedItemChange: EventEmitter<string>;
15
+ height: string;
16
+ inputCtrl: FormControl<any>;
17
+ filteredItems$: BehaviorSubject<SelectItem[]>;
18
+ subscription: Subscription | undefined;
19
+ constructor();
20
+ ngOnInit(): void;
21
+ ngOnDestroy(): void;
22
+ onSelectedItemChange(item: any): void;
23
+ onClearClick($event: MouseEvent): void;
24
+ displayWithFn(lookup: any): any;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelectAutocompleteWithVirtualScrollComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseSelectAutocompleteWithVirtualScrollComponent, "lib-select-autocomplete-with-virtual-scroll", never, { "items$": { "alias": "items$"; "required": false; }; "selectedItem$": { "alias": "selectedItem$"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "selectedItemChange": "selectedItemChange"; }, never, never, true, never>;
27
+ }
@@ -0,0 +1,2 @@
1
+ export * from './select-with-group.component';
2
+ export * from './models';
@@ -0,0 +1,2 @@
1
+ export * from './select-item';
2
+ export * from './select-group';
@@ -0,0 +1,5 @@
1
+ import { SelectItem } from "./select-item";
2
+ export interface SelectGroup {
3
+ name: string;
4
+ items: SelectItem[];
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface SelectItem {
2
+ value: string;
3
+ viewValue: string;
4
+ }
@@ -0,0 +1,21 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormControl } from "@angular/forms";
3
+ import { BehaviorSubject, Observable, Subscription } from "rxjs";
4
+ import { SelectGroup } from './models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BaseSelectWithGroupComponent implements OnInit, OnDestroy {
7
+ groups$: BehaviorSubject<SelectGroup[]>;
8
+ selectedItems$: Observable<string[]>;
9
+ title: string;
10
+ selectedItemsChange: EventEmitter<string[]>;
11
+ separatorKeysCodes: number[];
12
+ control: FormControl<number[] | null>;
13
+ subscription: Subscription | undefined;
14
+ constructor();
15
+ ngOnInit(): void;
16
+ ngOnDestroy(): void;
17
+ selectionChange($event: any): void;
18
+ onClick($event: MouseEvent): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelectWithGroupComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseSelectWithGroupComponent, "lib-select-with-group", never, { "groups$": { "alias": "groups$"; "required": false; }; "selectedItems$": { "alias": "selectedItems$"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "selectedItemsChange": "selectedItemsChange"; }, never, never, true, never>;
21
+ }
@@ -0,0 +1,3 @@
1
+ export * from './table.state';
2
+ export * from './table.component';
3
+ export * from './models';
@@ -0,0 +1,26 @@
1
+ /** Настройки колонки. */
2
+ export interface IColumnOptions {
3
+ /** Имя. */
4
+ name: string;
5
+ /** Заголовок. */
6
+ title: string;
7
+ /**
8
+ * Формат колонки {
9
+ * '' - текст (по умолчанию) |
10
+ * 'pre-wrap' - текст с переносами строк |
11
+ * 'link' - гиперссылка |
12
+ * 'linkIcon' - гиперссылка (иконка вместо текста) |
13
+ * 'routerLink' - ссылка на страницу в приложении |
14
+ * 'routerLinkIcon' - ссылка на страницу в приложении (иконка вместо текста) |
15
+ * 'checkbox' - чекбокс
16
+ * }. * */
17
+ format?: string;
18
+ /** Отключить сортировку по заголовку. */
19
+ titleSortDisable?: boolean;
20
+ /** Иконка вместо текста, когда format = 'link' | 'routerLink' | 'routerLinkIcon'. */
21
+ icon?: string;
22
+ /** Символ (Material Symbols) вместо текста, когда format = 'link' | 'routerLink' | 'routerLinkIcon'. */
23
+ symbol?: string;
24
+ /** Скрыть колонку. */
25
+ hide?: boolean;
26
+ }
@@ -0,0 +1,22 @@
1
+ import { MatMenuTrigger } from "@angular/material/menu";
2
+ /** Настройки пункта меню. */
3
+ export interface IContextMenuOptions<T> {
4
+ /** Заголовок. */
5
+ title: string;
6
+ /** Функция обработчик нажатия. */
7
+ onClickFn?: (item: T | undefined) => void;
8
+ /** Функция обработчик нажатия средней кнопкой мыши. */
9
+ onClickMiddleFn?: ($event: MouseEvent, item: T | undefined, contextMenu: MatMenuTrigger) => void;
10
+ /** Иконка. */
11
+ icon?: string;
12
+ /** Символ (Material Symbols). */
13
+ symbol?: string;
14
+ /** Доступность. */
15
+ disabled?: boolean;
16
+ /** Функция определяющая доступность. */
17
+ disabledFn?: (item: T | undefined) => boolean;
18
+ /** Видимость. */
19
+ hide?: boolean;
20
+ /** Функция определяющая видимость. */
21
+ hideFn?: (item: T | undefined) => boolean;
22
+ }
@@ -0,0 +1,2 @@
1
+ export * from './context-menu-options.interface';
2
+ export * from './column-options.interface';