@kuzntsv/uikit 1.0.58 → 1.0.59
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { AfterViewInit, ElementRef, EnvironmentProviders, InjectionToken,
|
|
2
|
+
import { AfterViewInit, ElementRef, EnvironmentProviders, InjectionToken, OnDestroy, OnInit, PipeTransform, WritableSignal } from "@angular/core";
|
|
3
3
|
import { NotificationService, RoleService } from "@kuzntsv/uikit";
|
|
4
4
|
import { HttpClient, HttpContext, HttpParams, HttpResourceRef } from "@angular/common/http";
|
|
5
5
|
import { Observable, Subject, Subscription } from "rxjs";
|
|
@@ -978,7 +978,6 @@ export declare abstract class BaseSignalFilterClass<F extends SafeFilterState> {
|
|
|
978
978
|
}
|
|
979
979
|
export declare abstract class BaseSignalPageClass<T extends BaseSchemaClass, F extends SafeFilterState = Record<string, never>> implements OnDestroy {
|
|
980
980
|
protected dialog: MatDialog;
|
|
981
|
-
protected injector: Injector;
|
|
982
981
|
protected entityService: any;
|
|
983
982
|
protected entityEditComponent?: any;
|
|
984
983
|
protected extraData?: any;
|
|
@@ -1027,18 +1026,17 @@ export declare abstract class BaseSignalPageClass<T extends BaseSchemaClass, F e
|
|
|
1027
1026
|
allowMultiSelect: boolean;
|
|
1028
1027
|
/** Выбранные строки в таблице. */
|
|
1029
1028
|
selected: T[];
|
|
1030
|
-
protected fnGetData:
|
|
1031
|
-
protected fnGetCount:
|
|
1032
|
-
protected fnMapEntity:
|
|
1033
|
-
protected dataResource: import("@angular/core").Signal<import("@angular/common/http").HttpResourceRef<T[]
|
|
1034
|
-
protected countResource: import("@angular/core").Signal<import("@angular/common/http").HttpResourceRef<number
|
|
1029
|
+
protected abstract fnGetData: fnGetDataResType<T>;
|
|
1030
|
+
protected abstract fnGetCount: fnGetCountResType<T>;
|
|
1031
|
+
protected abstract fnMapEntity: fnMapEntityType<T> | undefined;
|
|
1032
|
+
protected dataResource: import("@angular/core").Signal<import("@angular/common/http").HttpResourceRef<T[]>>;
|
|
1033
|
+
protected countResource: import("@angular/core").Signal<import("@angular/common/http").HttpResourceRef<number>>;
|
|
1035
1034
|
/** Данные для табличного компонента. */
|
|
1036
1035
|
data: import("@angular/core").Signal<T[]>;
|
|
1037
1036
|
/** Количество записей по фильтру. */
|
|
1038
1037
|
length: import("@angular/core").Signal<number>;
|
|
1039
1038
|
/** Глобальный индикатор загрузки (для спиннера на странице) */
|
|
1040
1039
|
isLoading: import("@angular/core").Signal<boolean>;
|
|
1041
|
-
private componentInjector;
|
|
1042
1040
|
/** Доступность кнопки "Изменить". */
|
|
1043
1041
|
editBtnDisabled: boolean;
|
|
1044
1042
|
/** Доступность кнопки "Удалить". */
|
|
@@ -1056,8 +1054,9 @@ export declare abstract class BaseSignalPageClass<T extends BaseSchemaClass, F e
|
|
|
1056
1054
|
/** Объект для отписки (вызывается метод unsubscribe при уничтожении компонента). */
|
|
1057
1055
|
subscription: Subscription;
|
|
1058
1056
|
private getInitialFilters;
|
|
1057
|
+
/** Разово прочитать сохраненные значения из localStorage при старте страницы,
|
|
1058
|
+
* провалидировать их через Zod-схему и записать в сигнал filters */
|
|
1059
1059
|
protected initFilters(): void;
|
|
1060
|
-
private trackFilterChanges;
|
|
1061
1060
|
clearEvent(): void;
|
|
1062
1061
|
private getInitialFilters2;
|
|
1063
1062
|
filters: import("@angular/core").WritableSignal<F>;
|
|
@@ -1069,7 +1068,6 @@ export declare abstract class BaseSignalPageClass<T extends BaseSchemaClass, F e
|
|
|
1069
1068
|
tableState: import("@angular/core").WritableSignal<ITableState>;
|
|
1070
1069
|
constructor();
|
|
1071
1070
|
ngOnDestroy(): void;
|
|
1072
|
-
subscribeToLoadData(fnGetData: fnGetDataResType<T>, fnGetCount: fnGetCountResType<T>, fnMapEntity?: fnMapEntityType<T>, injector?: Injector): void;
|
|
1073
1071
|
/** Установка значение фильтра.
|
|
1074
1072
|
* @param key - имя фильтра.
|
|
1075
1073
|
* @param value - значение.
|