@kuzntsv/uikit 1.0.76 → 1.0.80

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuzntsv/uikit",
3
- "version": "1.0.76",
3
+ "version": "1.0.80",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.2",
6
6
  "@angular/core": "^22.2.2",
@@ -13,7 +13,7 @@ import { SelectionModel } from "@angular/cdk/collections";
13
13
  import { MatMenuTrigger } from "@angular/material/menu";
14
14
  import { MatPaginator } from "@angular/material/paginator";
15
15
  import { MatSort } from "@angular/material/sort";
16
- import { MatTableDataSource } from "@angular/material/table";
16
+ import { MatTable, MatTableDataSource } from "@angular/material/table";
17
17
  import { CanActivateFn, Router } from "@angular/router";
18
18
  import { FieldTree } from "@angular/forms/signals";
19
19
  interface Authenticate {
@@ -51,6 +51,11 @@ type SafeFilterState = Readonly<Record<string, FilterValue>>;
51
51
  type CleanFilterValue = Exclude<FilterValue, null | undefined>;
52
52
  type CleanFilterState = Readonly<Record<string, CleanFilterValue>>;
53
53
  declare function cleanFilterParams(filters: SafeFilterState): CleanFilterState;
54
+ /**
55
+ * Проверяет, является ли значение фильтра пустым (мусорным),
56
+ * которое нужно удалить из URL/LocalStorage, чтобы не спамить бэкенд.
57
+ */
58
+ declare function isEmptyFilterValue(value: unknown): boolean;
54
59
  export interface ChipItem {
55
60
  value: string;
56
61
  viewValue: string;
@@ -526,6 +531,8 @@ export declare class TableComponent<T> implements OnInit {
526
531
  selectionChange: import("@angular/core").OutputEmitterRef<T[]>;
527
532
  /** Двойной щелчек ЛКМ*/
528
533
  rowDoubleClicked: import("@angular/core").OutputEmitterRef<T>;
534
+ private cdr;
535
+ readonly matTable: import("@angular/core").Signal<MatTable<T> | undefined>;
529
536
  readonly sort: import("@angular/core").Signal<MatSort | undefined>;
530
537
  readonly paginator: import("@angular/core").Signal<MatPaginator | undefined>;
531
538
  readonly contextMenu: import("@angular/core").Signal<MatMenuTrigger | undefined>;
@@ -1405,6 +1412,11 @@ export declare abstract class BaseSignalPageClass<T extends BaseSchemaClass, F e
1405
1412
  * @param value - значение.
1406
1413
  */
1407
1414
  setFilter<K extends keyof F>(key: K, value: F[K]): void;
1415
+ /**
1416
+ * Обновление нескольких фильтров одновременно (пачкой)
1417
+ * @param fields Пачка фильтров в виде объекта { имяПоля: значение }
1418
+ */
1419
+ setFilters(fields: Partial<F>): void;
1408
1420
  onPageChange(pageState: PageState): void;
1409
1421
  onSortChange(sortState: SortState): void;
1410
1422
  /** Событие изменение выбранных записей. */