@kuzntsv/uikit 1.0.83 → 1.0.85
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/kuzntsv-uikit-interceptors.mjs +9 -2
- package/fesm2022/kuzntsv-uikit-interceptors.mjs.map +1 -1
- package/fesm2022/kuzntsv-uikit-ui.mjs +3073 -3414
- package/fesm2022/kuzntsv-uikit-ui.mjs.map +1 -1
- package/fesm2022/kuzntsv-uikit.mjs +123 -20
- package/fesm2022/kuzntsv-uikit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/kuzntsv-uikit-ui.d.ts +196 -187
- package/types/kuzntsv-uikit.d.ts +16 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import { AfterViewInit, EnvironmentProviders, InjectionToken, Injector, OnDestroy, OnInit, PipeTransform, WritableSignal } from "@angular/core";
|
|
3
|
-
import { NotificationService, RoleService, SignalSelectionModel } from "@kuzntsv/uikit";
|
|
4
1
|
import z, { z as z$1 } from "zod";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { EnvironmentProviders, InjectionToken, Injector, OnDestroy, PipeTransform, WritableSignal } from "@angular/core";
|
|
4
|
+
import { LoaderService, NotificationService, RoleService, SignalSelectionModel } from "@kuzntsv/uikit";
|
|
5
5
|
import { HttpClient, HttpContext, HttpParams, HttpResourceRef } from "@angular/common/http";
|
|
6
6
|
import { Observable, Subject, Subscription } from "rxjs";
|
|
7
7
|
import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
|
|
8
|
-
import {
|
|
8
|
+
import { FieldTree, FormValueControl } from "@angular/forms/signals";
|
|
9
9
|
import { NativeDateAdapter } from "@angular/material/core";
|
|
10
10
|
import { MatDialog, MatDialogRef } from "@angular/material/dialog";
|
|
11
|
-
import { SafeUrl } from "@angular/platform-browser";
|
|
11
|
+
import { SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl } from "@angular/platform-browser";
|
|
12
|
+
import { MatSelectChange } from "@angular/material/select";
|
|
12
13
|
import { MatMenuTrigger } from "@angular/material/menu";
|
|
13
14
|
import { MatPaginator, PageEvent } from "@angular/material/paginator";
|
|
14
15
|
import { MatSort, Sort } from "@angular/material/sort";
|
|
15
16
|
import { MatTableDataSource } from "@angular/material/table";
|
|
17
|
+
import { FormGroup } from "@angular/forms";
|
|
16
18
|
import { CanActivateFn, Router } from "@angular/router";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare class LoginPageComponent
|
|
23
|
-
pending: boolean
|
|
24
|
-
|
|
25
|
-
isKiosk: boolean;
|
|
19
|
+
declare const loginSchema: z$1.ZodObject<{
|
|
20
|
+
username: z$1.ZodString;
|
|
21
|
+
password: z$1.ZodString;
|
|
22
|
+
}, z$1.core.$strip>;
|
|
23
|
+
type Authenticate = z$1.infer<typeof loginSchema>;
|
|
24
|
+
export declare class LoginPageComponent {
|
|
25
|
+
pending: import("@angular/core").WritableSignal<boolean>;
|
|
26
|
+
isKiosk: import("@angular/core").WritableSignal<boolean>;
|
|
26
27
|
/**
|
|
27
28
|
* Идентификатор АС получаем автоматически из ActivatedRoute Data!
|
|
28
29
|
* (Для этого в настройках роутера должен быть включен withComponentInputBinding())
|
|
@@ -30,11 +31,13 @@ export declare class LoginPageComponent implements OnInit {
|
|
|
30
31
|
idCas: import("@angular/core").InputSignal<number>;
|
|
31
32
|
private readonly authService;
|
|
32
33
|
private readonly router;
|
|
33
|
-
private readonly loaderService;
|
|
34
34
|
private readonly notificationService;
|
|
35
|
-
|
|
36
|
-
onSubmit(
|
|
37
|
-
onSubmitPermit(
|
|
35
|
+
constructor();
|
|
36
|
+
onSubmit(event: Authenticate): Promise<void>;
|
|
37
|
+
onSubmitPermit(permit: string): Promise<void>;
|
|
38
|
+
private startLoading;
|
|
39
|
+
private finishLoading;
|
|
40
|
+
private handleError;
|
|
38
41
|
private handleSuccessLogin;
|
|
39
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoginPageComponent, never>;
|
|
40
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<LoginPageComponent, "ngx-uik-login-page", never, {
|
|
@@ -59,20 +62,22 @@ export interface ChipItem {
|
|
|
59
62
|
value: string;
|
|
60
63
|
viewValue: string;
|
|
61
64
|
}
|
|
62
|
-
export declare class ChipInputAutocompleteComponent {
|
|
65
|
+
export declare class ChipInputAutocompleteComponent implements FormValueControl<string[]> {
|
|
66
|
+
private readonly formFieldDirective;
|
|
67
|
+
/** Все элементы. */
|
|
63
68
|
items: import("@angular/core").InputSignal<ChipItem[]>;
|
|
64
|
-
|
|
69
|
+
/** Заголовок. */
|
|
65
70
|
title: import("@angular/core").InputSignal<string>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
protected form: import("@angular/forms/signals").FieldTree<string, string | number, "writable">;
|
|
71
|
+
readonly value: import("@angular/core").ModelSignal<string[]>;
|
|
72
|
+
readonly filterQuery: import("@angular/core").ModelSignal<string>;
|
|
69
73
|
separatorKeysCodes: number[];
|
|
70
74
|
readonly selectedItems: import("@angular/core").WritableSignal<ChipItem[]>;
|
|
71
75
|
readonly filteredItems: import("@angular/core").Signal<ChipItem[]>;
|
|
76
|
+
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
77
|
+
readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
72
78
|
remove(value: string): void;
|
|
73
79
|
selected(event: MatAutocompleteSelectedEvent): void;
|
|
74
80
|
onCloseClick($event: MouseEvent): void;
|
|
75
|
-
private emitChange;
|
|
76
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipInputAutocompleteComponent, never>;
|
|
77
82
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChipInputAutocompleteComponent, "ngx-uik-chip-input-autocomplete", never, {
|
|
78
83
|
"items": {
|
|
@@ -80,68 +85,49 @@ export declare class ChipInputAutocompleteComponent {
|
|
|
80
85
|
"required": false;
|
|
81
86
|
"isSignal": true;
|
|
82
87
|
};
|
|
83
|
-
"
|
|
84
|
-
"alias": "
|
|
88
|
+
"title": {
|
|
89
|
+
"alias": "title";
|
|
85
90
|
"required": false;
|
|
86
91
|
"isSignal": true;
|
|
87
92
|
};
|
|
88
|
-
"
|
|
89
|
-
"alias": "
|
|
93
|
+
"value": {
|
|
94
|
+
"alias": "value";
|
|
95
|
+
"required": false;
|
|
96
|
+
"isSignal": true;
|
|
97
|
+
};
|
|
98
|
+
"filterQuery": {
|
|
99
|
+
"alias": "filterQuery";
|
|
90
100
|
"required": false;
|
|
91
101
|
"isSignal": true;
|
|
92
102
|
};
|
|
93
103
|
}, {
|
|
94
|
-
"
|
|
104
|
+
"value": "valueChange";
|
|
105
|
+
"filterQuery": "filterQueryChange";
|
|
95
106
|
}, never, never, true, never>;
|
|
96
107
|
}
|
|
97
|
-
export declare class
|
|
98
|
-
|
|
99
|
-
format(date: Date, displayFormat: Object): string;
|
|
100
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateAdapter, never>;
|
|
101
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
102
|
-
}
|
|
103
|
-
export declare const MY_NATIVE_FORMATS: {
|
|
104
|
-
parse: {
|
|
105
|
-
dateInput: string;
|
|
106
|
-
};
|
|
107
|
-
display: {
|
|
108
|
-
dateInput: string;
|
|
109
|
-
monthYearLabel: {
|
|
110
|
-
year: string;
|
|
111
|
-
month: string;
|
|
112
|
-
};
|
|
113
|
-
dateA11yLabel: {
|
|
114
|
-
year: string;
|
|
115
|
-
month: string;
|
|
116
|
-
day: string;
|
|
117
|
-
};
|
|
118
|
-
monthYearA11yLabel: {
|
|
119
|
-
year: string;
|
|
120
|
-
month: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
export interface DateRange {
|
|
125
|
-
begin: string;
|
|
126
|
-
end: string;
|
|
127
|
-
}
|
|
128
|
-
export declare function dateFormat(date: Date | null | undefined): string;
|
|
129
|
-
export declare class DateRangeInputComponent implements OnInit, OnDestroy {
|
|
108
|
+
export declare class DateRangeInputComponent {
|
|
109
|
+
readonly DEFAULT_MIN_DATE: Date;
|
|
130
110
|
label: import("@angular/core").InputSignal<string>;
|
|
131
|
-
dateRange: import("@angular/core").InputSignal<
|
|
111
|
+
dateRange: import("@angular/core").InputSignal<{
|
|
112
|
+
begin: string;
|
|
113
|
+
end: string;
|
|
114
|
+
}>;
|
|
132
115
|
minDate: import("@angular/core").InputSignal<Date>;
|
|
133
116
|
clearInput: import("@angular/core").InputSignal<any>;
|
|
134
117
|
required: import("@angular/core").InputSignal<boolean>;
|
|
135
|
-
dateRangeChange: import("@angular/core").OutputEmitterRef<
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
end: FormControl<any>;
|
|
118
|
+
dateRangeChange: import("@angular/core").OutputEmitterRef<{
|
|
119
|
+
begin: string;
|
|
120
|
+
end: string;
|
|
139
121
|
}>;
|
|
140
|
-
|
|
122
|
+
formModel: import("@angular/core").WritableSignal<{
|
|
123
|
+
begin: Date | null;
|
|
124
|
+
end: Date | null;
|
|
125
|
+
}>;
|
|
126
|
+
form: import("@angular/forms/signals").FieldTree<{
|
|
127
|
+
begin: Date | null;
|
|
128
|
+
end: Date | null;
|
|
129
|
+
}, string | number, "writable">;
|
|
141
130
|
constructor();
|
|
142
|
-
ngOnInit(): void;
|
|
143
|
-
ngOnDestroy(): void;
|
|
144
|
-
private rangeToDateDateRange;
|
|
145
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeInputComponent, never>;
|
|
146
132
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent, "ngx-uik-date-range-input", never, {
|
|
147
133
|
"label": {
|
|
@@ -173,6 +159,49 @@ export declare class DateRangeInputComponent implements OnInit, OnDestroy {
|
|
|
173
159
|
"dateRangeChange": "dateRangeChange";
|
|
174
160
|
}, never, never, true, never>;
|
|
175
161
|
}
|
|
162
|
+
export declare class CustomDateAdapter extends NativeDateAdapter {
|
|
163
|
+
parse(value: any): Date | null;
|
|
164
|
+
format(date: Date, displayFormat: Object): string;
|
|
165
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateAdapter, never>;
|
|
166
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
167
|
+
}
|
|
168
|
+
export declare const MY_NATIVE_FORMATS: {
|
|
169
|
+
parse: {
|
|
170
|
+
dateInput: string;
|
|
171
|
+
};
|
|
172
|
+
display: {
|
|
173
|
+
dateInput: string;
|
|
174
|
+
monthYearLabel: {
|
|
175
|
+
year: string;
|
|
176
|
+
month: string;
|
|
177
|
+
};
|
|
178
|
+
dateA11yLabel: {
|
|
179
|
+
year: string;
|
|
180
|
+
month: string;
|
|
181
|
+
day: string;
|
|
182
|
+
};
|
|
183
|
+
monthYearA11yLabel: {
|
|
184
|
+
year: string;
|
|
185
|
+
month: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
export declare const dateRangeFormSchema: (isRequired: boolean) => z$1.ZodObject<{
|
|
190
|
+
begin: z$1.ZodNullable<z$1.ZodInstanceOf<Date>>;
|
|
191
|
+
end: z$1.ZodNullable<z$1.ZodInstanceOf<Date>>;
|
|
192
|
+
}, z$1.core.$strip>;
|
|
193
|
+
export type DateRangeForm = z$1.output<ReturnType<typeof dateRangeFormSchema>>;
|
|
194
|
+
export declare const dateRangeSchema: (isRequired: boolean) => z$1.ZodPipe<z$1.ZodObject<{
|
|
195
|
+
begin: z$1.ZodNullable<z$1.ZodInstanceOf<Date>>;
|
|
196
|
+
end: z$1.ZodNullable<z$1.ZodInstanceOf<Date>>;
|
|
197
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
198
|
+
begin: string;
|
|
199
|
+
end: string;
|
|
200
|
+
}, {
|
|
201
|
+
begin: Date | null;
|
|
202
|
+
end: Date | null;
|
|
203
|
+
}>>;
|
|
204
|
+
export type DateRange = z$1.output<ReturnType<typeof dateRangeSchema>>;
|
|
176
205
|
export declare enum DialogAction {
|
|
177
206
|
Add = "Добавить",
|
|
178
207
|
Edit = "Изменить",
|
|
@@ -187,16 +216,15 @@ export interface DialogData {
|
|
|
187
216
|
btnYesTitle: string;
|
|
188
217
|
}
|
|
189
218
|
export declare class DialogComponent {
|
|
190
|
-
readonly data: DialogData;
|
|
219
|
+
readonly data: DialogData | null;
|
|
191
220
|
readonly dialogRef: MatDialogRef<any, any>;
|
|
192
|
-
|
|
193
|
-
onNoClick(): void;
|
|
221
|
+
readonly dialogData: DialogData;
|
|
194
222
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
195
223
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ngx-uik-dialog", never, {}, {}, never, never, true, never>;
|
|
196
224
|
}
|
|
197
225
|
export declare class EmptyComponent {
|
|
198
226
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyComponent, never>;
|
|
199
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyComponent, "
|
|
227
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyComponent, "ngx-uik-empty-route-guard-holder", never, {}, {}, never, never, true, never>;
|
|
200
228
|
}
|
|
201
229
|
export declare class NavBarComponent extends BaseNavBarMenuClass {
|
|
202
230
|
/** Видимость панели, когда loggedIn === false. */
|
|
@@ -216,7 +244,6 @@ export declare class NavBarComponent extends BaseNavBarMenuClass {
|
|
|
216
244
|
/** Нажата кнопка "Выйти". */
|
|
217
245
|
logout: import("@angular/core").OutputEmitterRef<string>;
|
|
218
246
|
private readonly dialog;
|
|
219
|
-
constructor();
|
|
220
247
|
onLogout(): void;
|
|
221
248
|
openDialog(): void;
|
|
222
249
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavBarComponent, never>;
|
|
@@ -264,76 +291,65 @@ export declare class NotFoundComponent {
|
|
|
264
291
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotFoundComponent, never>;
|
|
265
292
|
static ɵcmp: i0.ɵɵComponentDeclaration<NotFoundComponent, "ngx-uik-not-found", never, {}, {}, never, never, true, never>;
|
|
266
293
|
}
|
|
267
|
-
export declare class ProgressSpinnerComponent implements AfterViewInit {
|
|
268
|
-
private readonly cdRef;
|
|
269
|
-
ngAfterViewInit(): void;
|
|
270
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressSpinnerComponent, never>;
|
|
271
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressSpinnerComponent, "ngx-uik-loader", never, {}, {}, never, never, true, never>;
|
|
272
|
-
}
|
|
273
294
|
interface SelectItem$1 {
|
|
274
295
|
value: string;
|
|
275
296
|
viewValue: string;
|
|
276
297
|
}
|
|
277
|
-
export declare class
|
|
298
|
+
export declare class SelectAutocompleteWithVsComponent implements FormValueControl<string | undefined> {
|
|
299
|
+
readonly ITEM_HEIGHT_PX = 50;
|
|
300
|
+
readonly MAX_VISIBLE_ITEMS = 4;
|
|
301
|
+
readonly MAX_HEIGHT_PX = 200;
|
|
302
|
+
private readonly formFieldDirective;
|
|
303
|
+
/** Все элементы. */
|
|
278
304
|
items: import("@angular/core").InputSignal<SelectItem$1[]>;
|
|
279
|
-
|
|
305
|
+
/** Заголовок. */
|
|
280
306
|
title: import("@angular/core").InputSignal<string>;
|
|
281
|
-
|
|
282
|
-
isRequired: import("@angular/core").InputSignal<boolean>;
|
|
283
|
-
isDisabled: import("@angular/core").InputSignal<boolean>;
|
|
307
|
+
/** Ширина. */
|
|
284
308
|
width: import("@angular/core").InputSignal<string>;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
309
|
+
readonly value: import("@angular/core").ModelSignal<string | undefined>;
|
|
310
|
+
readonly filterQuery: import("@angular/core").ModelSignal<string>;
|
|
311
|
+
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
312
|
+
readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
313
|
+
readonly debouncedQuery: import("@angular/core").Resource<string>;
|
|
314
|
+
readonly filteredItems: import("@angular/core").Signal<SelectItem$1[]>;
|
|
315
|
+
readonly height: import("@angular/core").Signal<string>;
|
|
291
316
|
constructor();
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
317
|
+
readonly selectedItemObject: import("@angular/core").Signal<SelectItem$1 | undefined>;
|
|
318
|
+
onOptionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
319
|
+
onInputChanges(event: Event): void;
|
|
320
|
+
onBlur(): void;
|
|
295
321
|
onClearClick($event: MouseEvent): void;
|
|
296
|
-
displayWithFn(
|
|
297
|
-
|
|
298
|
-
static
|
|
299
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseSelectAutocompleteWithVsComponent, "ngx-uik-select-autocomplete-with-vs", never, {
|
|
322
|
+
displayWithFn(item: SelectItem$1 | null | undefined): string;
|
|
323
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAutocompleteWithVsComponent, never>;
|
|
324
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectAutocompleteWithVsComponent, "ngx-uik-select-autocomplete-with-vs", never, {
|
|
300
325
|
"items": {
|
|
301
326
|
"alias": "items";
|
|
302
327
|
"required": false;
|
|
303
328
|
"isSignal": true;
|
|
304
329
|
};
|
|
305
|
-
"selectedItemInput": {
|
|
306
|
-
"alias": "selectedItemInput";
|
|
307
|
-
"required": false;
|
|
308
|
-
"isSignal": true;
|
|
309
|
-
};
|
|
310
330
|
"title": {
|
|
311
331
|
"alias": "title";
|
|
312
332
|
"required": false;
|
|
313
333
|
"isSignal": true;
|
|
314
334
|
};
|
|
315
|
-
"
|
|
316
|
-
"alias": "
|
|
317
|
-
"required": false;
|
|
318
|
-
"isSignal": true;
|
|
319
|
-
};
|
|
320
|
-
"isRequired": {
|
|
321
|
-
"alias": "isRequired";
|
|
335
|
+
"width": {
|
|
336
|
+
"alias": "width";
|
|
322
337
|
"required": false;
|
|
323
338
|
"isSignal": true;
|
|
324
339
|
};
|
|
325
|
-
"
|
|
326
|
-
"alias": "
|
|
340
|
+
"value": {
|
|
341
|
+
"alias": "value";
|
|
327
342
|
"required": false;
|
|
328
343
|
"isSignal": true;
|
|
329
344
|
};
|
|
330
|
-
"
|
|
331
|
-
"alias": "
|
|
345
|
+
"filterQuery": {
|
|
346
|
+
"alias": "filterQuery";
|
|
332
347
|
"required": false;
|
|
333
348
|
"isSignal": true;
|
|
334
349
|
};
|
|
335
350
|
}, {
|
|
336
|
-
"
|
|
351
|
+
"value": "valueChange";
|
|
352
|
+
"filterQuery": "filterQueryChange";
|
|
337
353
|
}, never, never, true, never>;
|
|
338
354
|
}
|
|
339
355
|
export interface SelectItem {
|
|
@@ -344,35 +360,35 @@ export interface SelectGroup {
|
|
|
344
360
|
name: string;
|
|
345
361
|
items: SelectItem[];
|
|
346
362
|
}
|
|
347
|
-
export declare class
|
|
363
|
+
export declare class SelectWithGroupComponent implements FormValueControl<string[]> {
|
|
364
|
+
/** Все группы. */
|
|
348
365
|
groups: import("@angular/core").InputSignal<SelectGroup[]>;
|
|
349
|
-
|
|
366
|
+
/** Заголовок. */
|
|
350
367
|
title: import("@angular/core").InputSignal<string>;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
selectionChange($event: any): void;
|
|
368
|
+
/** Выбранные элементы, ключи (BaseSelectItem.value). */
|
|
369
|
+
readonly value: import("@angular/core").ModelSignal<string[]>;
|
|
370
|
+
readonly separatorKeysCodes: number[];
|
|
371
|
+
onSelectionChange(event: MatSelectChange): void;
|
|
356
372
|
onClearClick($event: MouseEvent): void;
|
|
357
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
358
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
373
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectWithGroupComponent, never>;
|
|
374
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectWithGroupComponent, "ngx-uik-select-with-group", never, {
|
|
359
375
|
"groups": {
|
|
360
376
|
"alias": "groups";
|
|
361
377
|
"required": false;
|
|
362
378
|
"isSignal": true;
|
|
363
379
|
};
|
|
364
|
-
"
|
|
365
|
-
"alias": "
|
|
380
|
+
"title": {
|
|
381
|
+
"alias": "title";
|
|
366
382
|
"required": false;
|
|
367
383
|
"isSignal": true;
|
|
368
384
|
};
|
|
369
|
-
"
|
|
370
|
-
"alias": "
|
|
385
|
+
"value": {
|
|
386
|
+
"alias": "value";
|
|
371
387
|
"required": false;
|
|
372
388
|
"isSignal": true;
|
|
373
389
|
};
|
|
374
390
|
}, {
|
|
375
|
-
"
|
|
391
|
+
"value": "valueChange";
|
|
376
392
|
}, never, never, true, never>;
|
|
377
393
|
}
|
|
378
394
|
export type ObjectKeys<T extends string | number | symbol = string, K = any> = { [key in T]: K; };
|
|
@@ -910,6 +926,53 @@ export declare enum Action {
|
|
|
910
926
|
Add = "Добавление",
|
|
911
927
|
Edit = "Изменение"
|
|
912
928
|
}
|
|
929
|
+
export declare abstract class BaseEditClass<T> implements OnDestroy {
|
|
930
|
+
/** Заголовок. */
|
|
931
|
+
abstract title: string;
|
|
932
|
+
/** Данные диалога. */
|
|
933
|
+
protected abstract dialogData?: IEditDialogData<T>;
|
|
934
|
+
/** Форма. */
|
|
935
|
+
abstract form?: FormGroup<any>;
|
|
936
|
+
/** Ссылка на диалог. */
|
|
937
|
+
protected abstract dialogRef?: MatDialogRef<any, IEditDialogData<T> | null>;
|
|
938
|
+
/** Сервис индикатор загрузки. */
|
|
939
|
+
protected loaderService: LoaderService;
|
|
940
|
+
/** Сервис уведомлений. */
|
|
941
|
+
protected notificationService: NotificationService;
|
|
942
|
+
/** Сервис ролей. */
|
|
943
|
+
protected roleService: RoleService;
|
|
944
|
+
/** Объект для отписки (вызывается метод unsubscribe при уничтожении компонента). */
|
|
945
|
+
protected subscription: Subscription;
|
|
946
|
+
ngOnDestroy(): void;
|
|
947
|
+
onNoClick(event: MouseEvent): void;
|
|
948
|
+
onSubmit(): void;
|
|
949
|
+
formActionIsAdd(): boolean;
|
|
950
|
+
formActionIsEdit(): boolean;
|
|
951
|
+
/**
|
|
952
|
+
* Определяет видимость элемента на основе ЧЕРНОГО списка ролей.
|
|
953
|
+
* По умолчанию элемент ВИДИМ. Скрывается (возвращает false), если у пользователя
|
|
954
|
+
* есть запрещенная роль или если передан маркер скрытия фичи HIDE_ROLE_MARKER.
|
|
955
|
+
*/
|
|
956
|
+
protected isVisibleForForbiddenRoles(forbiddenRoles: string[]): boolean;
|
|
957
|
+
/**
|
|
958
|
+
* Определяет видимость элемента на основе БЕЛОГО списка ролей.
|
|
959
|
+
* По умолчанию элемент СКРЫТ. Показывается (возвращает true), только если у пользователя
|
|
960
|
+
* есть хотя бы одна из разрешенных ролей. Администратор (ADMIN) всегда видит элемент.
|
|
961
|
+
*/
|
|
962
|
+
protected isVisibleForAllowedRoles(allowedRoles: string[]): boolean;
|
|
963
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseEditClass<any>, never>;
|
|
964
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseEditClass<any>, never, never, {}, {}, never, never, true, never>;
|
|
965
|
+
}
|
|
966
|
+
export interface IEntityAction<T> {
|
|
967
|
+
action: EntityAction;
|
|
968
|
+
entity: T | undefined;
|
|
969
|
+
}
|
|
970
|
+
export declare enum EntityAction {
|
|
971
|
+
Init = "Инициализация",
|
|
972
|
+
Add = "Добавление",
|
|
973
|
+
Edit = "Изменение",
|
|
974
|
+
Delete = "Удаление"
|
|
975
|
+
}
|
|
913
976
|
export declare class AvatarService {
|
|
914
977
|
baseRoute: string;
|
|
915
978
|
private readonly http;
|
|
@@ -917,14 +980,6 @@ export declare class AvatarService {
|
|
|
917
980
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarService, never>;
|
|
918
981
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
919
982
|
}
|
|
920
|
-
export declare class LoaderService {
|
|
921
|
-
private overlayRef;
|
|
922
|
-
private readonly overlay;
|
|
923
|
-
show(): void;
|
|
924
|
-
hide(): void;
|
|
925
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
|
|
926
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
927
|
-
}
|
|
928
983
|
export declare class LocalStorageService {
|
|
929
984
|
constructor();
|
|
930
985
|
saveData(key: string, value: string): void;
|
|
@@ -968,53 +1023,6 @@ export declare class SseService<T> {
|
|
|
968
1023
|
static ɵfac: i0.ɵɵFactoryDeclaration<SseService<any>, never>;
|
|
969
1024
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
970
1025
|
}
|
|
971
|
-
export declare abstract class BaseEditClass<T> implements OnDestroy {
|
|
972
|
-
/** Заголовок. */
|
|
973
|
-
abstract title: string;
|
|
974
|
-
/** Данные диалога. */
|
|
975
|
-
protected abstract dialogData?: IEditDialogData<T>;
|
|
976
|
-
/** Форма. */
|
|
977
|
-
abstract form?: FormGroup<any>;
|
|
978
|
-
/** Ссылка на диалог. */
|
|
979
|
-
protected abstract dialogRef?: MatDialogRef<any, IEditDialogData<T> | null>;
|
|
980
|
-
/** Сервис индикатор загрузки. */
|
|
981
|
-
protected loaderService: LoaderService;
|
|
982
|
-
/** Сервис уведомлений. */
|
|
983
|
-
protected notificationService: NotificationService;
|
|
984
|
-
/** Сервис ролей. */
|
|
985
|
-
protected roleService: RoleService;
|
|
986
|
-
/** Объект для отписки (вызывается метод unsubscribe при уничтожении компонента). */
|
|
987
|
-
protected subscription: Subscription;
|
|
988
|
-
ngOnDestroy(): void;
|
|
989
|
-
onNoClick(event: MouseEvent): void;
|
|
990
|
-
onSubmit(): void;
|
|
991
|
-
formActionIsAdd(): boolean;
|
|
992
|
-
formActionIsEdit(): boolean;
|
|
993
|
-
/**
|
|
994
|
-
* Определяет видимость элемента на основе ЧЕРНОГО списка ролей.
|
|
995
|
-
* По умолчанию элемент ВИДИМ. Скрывается (возвращает false), если у пользователя
|
|
996
|
-
* есть запрещенная роль или если передан маркер скрытия фичи HIDE_ROLE_MARKER.
|
|
997
|
-
*/
|
|
998
|
-
protected isVisibleForForbiddenRoles(forbiddenRoles: string[]): boolean;
|
|
999
|
-
/**
|
|
1000
|
-
* Определяет видимость элемента на основе БЕЛОГО списка ролей.
|
|
1001
|
-
* По умолчанию элемент СКРЫТ. Показывается (возвращает true), только если у пользователя
|
|
1002
|
-
* есть хотя бы одна из разрешенных ролей. Администратор (ADMIN) всегда видит элемент.
|
|
1003
|
-
*/
|
|
1004
|
-
protected isVisibleForAllowedRoles(allowedRoles: string[]): boolean;
|
|
1005
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseEditClass<any>, never>;
|
|
1006
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseEditClass<any>, never, never, {}, {}, never, never, true, never>;
|
|
1007
|
-
}
|
|
1008
|
-
export interface IEntityAction<T> {
|
|
1009
|
-
action: EntityAction;
|
|
1010
|
-
entity: T | undefined;
|
|
1011
|
-
}
|
|
1012
|
-
export declare enum EntityAction {
|
|
1013
|
-
Init = "Инициализация",
|
|
1014
|
-
Add = "Добавление",
|
|
1015
|
-
Edit = "Изменение",
|
|
1016
|
-
Delete = "Удаление"
|
|
1017
|
-
}
|
|
1018
1026
|
export declare class BaseFilterClass implements OnDestroy {
|
|
1019
1027
|
/** Сервис для работы с LocalStorage. */
|
|
1020
1028
|
protected localStorageService: LocalStorageService;
|
|
@@ -1591,9 +1599,10 @@ export declare const secUserSchema: z.ZodObject<{
|
|
|
1591
1599
|
}, z.core.$strip>>>;
|
|
1592
1600
|
}, z.core.$strip>;
|
|
1593
1601
|
export type SecUser = z.infer<typeof secUserSchema>;
|
|
1602
|
+
export type SafeAny = SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
|
|
1594
1603
|
export declare class SafePipe implements PipeTransform {
|
|
1595
1604
|
private readonly sanitizer;
|
|
1596
|
-
transform(url: string |
|
|
1605
|
+
transform(url: string | SafeAny | null | undefined, type?: 'html' | 'style' | 'script' | 'url' | 'resourceUrl'): string | SafeAny;
|
|
1597
1606
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
|
|
1598
1607
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
|
|
1599
1608
|
}
|
package/types/kuzntsv-uikit.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { InjectionToken, Signal } from "@angular/core";
|
|
2
|
+
import { InjectionToken, OnDestroy, Signal } from "@angular/core";
|
|
3
3
|
import { HttpContextToken } from "@angular/common/http";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
5
|
import { ZodError } from "zod";
|
|
@@ -31,6 +31,7 @@ export declare const API_NAME: HttpContextToken<string>;
|
|
|
31
31
|
export declare const BYPASS_AUTH: HttpContextToken<boolean>;
|
|
32
32
|
export declare const DEFAULT_TIMEOUT: InjectionToken<number>;
|
|
33
33
|
export declare const REQUEST_TIMEOUT: HttpContextToken<number>;
|
|
34
|
+
export declare const SKIP_LOADER: HttpContextToken<boolean>;
|
|
34
35
|
export interface AppEnvironment {
|
|
35
36
|
appVersion: string;
|
|
36
37
|
production: boolean;
|
|
@@ -175,6 +176,20 @@ export declare class AuthService {
|
|
|
175
176
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
176
177
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
177
178
|
}
|
|
179
|
+
export declare class LoaderService implements OnDestroy {
|
|
180
|
+
private overlayRef;
|
|
181
|
+
private readonly overlay;
|
|
182
|
+
private activeRequests;
|
|
183
|
+
show(): void;
|
|
184
|
+
hide(): void;
|
|
185
|
+
/**
|
|
186
|
+
* Принудительный сброс (например, при смене роута или критической ошибке)
|
|
187
|
+
*/
|
|
188
|
+
reset(): void;
|
|
189
|
+
ngOnDestroy(): void;
|
|
190
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
|
|
191
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
192
|
+
}
|
|
178
193
|
export declare class NotificationService implements INotificationService {
|
|
179
194
|
private readonly duration;
|
|
180
195
|
private readonly _snackBar;
|