@3kles/kles-material-table-v2 21.10.0 → 22.0.0

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,21 +1,21 @@
1
1
  {
2
2
  "name": "@3kles/kles-material-table-v2",
3
- "version": "21.10.0",
3
+ "version": "22.0.0",
4
4
  "keywords": [
5
5
  "3KLES"
6
6
  ],
7
7
  "author": "3Kles Lab",
8
8
  "license": "ISC",
9
9
  "peerDependencies": {
10
- "@3kles/kles-material-dynamicforms": "^21.3.0",
11
- "@angular/animations": "^21.0.0",
12
- "@angular/cdk": "^21.0.0",
13
- "@angular/common": "^21.0.0",
14
- "@angular/core": "^21.0.0",
15
- "@angular/forms": "^21.0.0",
16
- "@angular/material": "^21.0.0",
17
- "@angular/platform-browser": "^21.0.0",
18
- "@angular/router": "^21.0.0",
10
+ "@3kles/kles-material-dynamicforms": "^22.0.0",
11
+ "@angular/animations": "^22.0.0",
12
+ "@angular/cdk": "^22.0.0",
13
+ "@angular/common": "^22.0.0",
14
+ "@angular/core": "^22.0.0",
15
+ "@angular/forms": "^22.0.0",
16
+ "@angular/material": "^22.0.0",
17
+ "@angular/platform-browser": "^22.0.0",
18
+ "@angular/router": "^22.0.0",
19
19
  "rxjs": "^6.5.3 || ^7.4.0"
20
20
  },
21
21
  "dependencies": {
@@ -868,12 +868,12 @@ declare class EventsService<TValue = unknown> {
868
868
  declare class ColumnsService {
869
869
  private _columns;
870
870
  private readonly eventsService;
871
- displayedColumns: Signal<string[]> | undefined;
871
+ displayedColumns: Signal<string[]>;
872
872
  constructor(_columns: WritableSignal<KlesColumnConfig[]>, eventsService: EventsService);
873
873
  register(): void;
874
874
  get columns(): Signal<KlesColumnConfig[]>;
875
- readonly stickyStartBoundary: Signal<string>;
876
- readonly stickyEndBoundary: Signal<string>;
875
+ readonly stickyStartBoundary: Signal<string | undefined>;
876
+ readonly stickyEndBoundary: Signal<string | undefined>;
877
877
  getVisible(): string[];
878
878
  setVisible(columnDef: string, visible: boolean): void;
879
879
  toggleVisible(columnDef: string): void;
@@ -986,7 +986,7 @@ declare class KlesForm {
986
986
  updateRow(_id: number | string, value: any, options?: {
987
987
  emitEvent?: boolean;
988
988
  onlySelf?: boolean;
989
- }): FormGroup<any>;
989
+ }): FormGroup<any> | undefined;
990
990
  resetRow(_id: number | string, value?: any, options?: {
991
991
  onlySelf?: boolean;
992
992
  emitEvent?: boolean;
@@ -1013,22 +1013,22 @@ declare class KlesForm {
1013
1013
  static ɵprov: i0.ɵɵInjectableDeclaration<KlesForm>;
1014
1014
  }
1015
1015
 
1016
- declare abstract class DragDropBase {
1017
- protected config: DragDropConfig | undefined;
1016
+ declare abstract class DragDropBase<TValue = unknown> {
1017
+ protected config: DragDropConfig<TValue> | undefined;
1018
1018
  protected readonly eventsService: EventsService;
1019
1019
  protected readonly klesForm: KlesForm;
1020
1020
  protected readonly injector: Injector;
1021
1021
  private static nextDropListId;
1022
1022
  readonly dropListId: string;
1023
- constructor(config: DragDropConfig | undefined, eventsService: EventsService, klesForm: KlesForm, injector: Injector, tableId?: string);
1023
+ constructor(config: DragDropConfig<TValue> | undefined, eventsService: EventsService, klesForm: KlesForm, injector: Injector, tableId?: string);
1024
1024
  get enable(): boolean;
1025
1025
  get handleOnly(): boolean;
1026
1026
  get autoScrollStep(): number;
1027
- get connectedTo(): string[];
1027
+ get connectedTo(): string[] | undefined;
1028
1028
  get sortPredicate(): (index: number, item: CdkDrag<FormGroup>) => boolean;
1029
- get previewComponent(): i0.Type<unknown>;
1029
+ get previewComponent(): i0.Type<unknown> | undefined;
1030
1030
  get previewMatchSize(): boolean;
1031
- get placeholderComponent(): i0.Type<unknown>;
1031
+ get placeholderComponent(): i0.Type<unknown> | undefined;
1032
1032
  isDragDisabled(row: FormGroup): boolean;
1033
1033
  componentInjector(row: FormGroup, rowIndex: number): Injector;
1034
1034
  abstract listDropped(event: CdkDragDrop<KlesForm>): void;
@@ -1046,8 +1046,8 @@ declare abstract class DragDropBase {
1046
1046
  private handleDrop;
1047
1047
  private toDropListId;
1048
1048
  }
1049
- declare class DragDropService extends DragDropBase {
1050
- constructor(config: DragDropConfig | undefined, eventsService: EventsService, klesForm: KlesForm, injector: Injector, tableId?: string);
1049
+ declare class DragDropService<TValue = unknown> extends DragDropBase<TValue> {
1050
+ constructor(config: DragDropConfig<TValue> | undefined, eventsService: EventsService, klesForm: KlesForm, injector: Injector, tableId?: string);
1051
1051
  listDropped(event: CdkDragDrop<KlesForm>): void;
1052
1052
  }
1053
1053
 
@@ -1065,7 +1065,7 @@ declare class ScrollbarService {
1065
1065
  toLeft(sb?: ScrollBehavior): void;
1066
1066
  toRight(sb?: ScrollBehavior): void;
1067
1067
  to(top: number, left: number, sb?: ScrollBehavior): void;
1068
- getTop(): number;
1068
+ getTop(): number | undefined;
1069
1069
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollbarService, never>;
1070
1070
  static ɵprov: i0.ɵɵInjectableDeclaration<ScrollbarService>;
1071
1071
  }
@@ -1474,7 +1474,7 @@ declare class TableComponent implements ITable, OnInit, AfterViewInit, OnDestroy
1474
1474
  viewportScrollRangePx: i0.WritableSignal<number>;
1475
1475
  dataSource: IKlesDataSource;
1476
1476
  columns: Signal<KlesColumnConfig[]>;
1477
- displayedColumns: Signal<string[]> | undefined;
1477
+ displayedColumns: Signal<string[]>;
1478
1478
  showFooter: Signal<boolean>;
1479
1479
  multiTemplateDataRows: Signal<boolean>;
1480
1480
  extraRows: Signal<(ExtraRowConfig & {
@@ -1482,10 +1482,12 @@ declare class TableComponent implements ITable, OnInit, AfterViewInit, OnDestroy
1482
1482
  })[]>;
1483
1483
  readonly isEmpty: Signal<boolean>;
1484
1484
  private ro?;
1485
+ private readonly changeDetectorRef;
1485
1486
  private readonly destroyRef;
1486
1487
  private rafId?;
1487
1488
  private _cleanup?;
1488
1489
  emptyStateComponent: typeof KlesTableEmptyStateComponent;
1490
+ readonly identityTrackBy: (_: number, row: FormGroup) => FormGroup;
1489
1491
  constructor(host: ElementRef<HTMLElement>, connectorService: KlesTableConnectorService, loader: ILoader<unknown>, datasourceService: IDatasourceService, tableService: ITableService, dragDropRowService: DragDropService, columnDragDropService: ColumnDragDropService, rowAppearance: RowAppearanceConfig, selectionService: ISelectionService, columnsService: ColumnsService, loadingService: LoadingService, paginatorService: PaginatorService, scrollbarService: ScrollbarService, footerService: FooterService, extraRowService: ExtraRowService, renderService: RenderService, sortService: ISortService, filterService: FilterService, expandedRowStore: ExpandedRowStore, rowFactory: RowFormFactory, eventsService: EventsService, rowService: RowService, cellService: CellService, emptyStateService: EmptyStateService, treeService: TreeService<unknown, unknown>, rowContextStore: RowContextStore);
1490
1492
  getRowContext(row: FormGroup): KlesRowContext;
1491
1493
  isRowSelected(row: FormGroup): boolean;
@@ -1554,7 +1556,7 @@ interface KlesTableApi<TValue = unknown> {
1554
1556
  declare class KlesTableComponent<TParams = unknown, TValue = unknown> implements OnInit, KlesTableApi<TValue> {
1555
1557
  private connectorService;
1556
1558
  tableConfig: i0.InputSignal<KlesTableConfig<TParams, TValue>>;
1557
- readonly footerStart: i0.Signal<KlesTableFooterStartDirective>;
1559
+ readonly footerStart: i0.Signal<KlesTableFooterStartDirective | undefined>;
1558
1560
  private readonly destroyRef;
1559
1561
  tableEvent: EventEmitter<TableEvent<TValue>>;
1560
1562
  rowClick: EventEmitter<RowMousePayload<TValue>>;
@@ -1582,7 +1584,7 @@ declare class KlesTableComponent<TParams = unknown, TValue = unknown> implements
1582
1584
  readonly elevationShadow: i0.Signal<string>;
1583
1585
  constructor(connectorService: KlesTableConnectorService);
1584
1586
  ngOnInit(): void;
1585
- get hostId(): string;
1587
+ get hostId(): string | undefined;
1586
1588
  refresh(): void;
1587
1589
  get scrollbar(): ScrollbarApi;
1588
1590
  get column(): ColumnApi;
@@ -1620,9 +1622,9 @@ declare const FOOTER: InjectionToken<WritableSignal<boolean>>;
1620
1622
  declare const EXTRA_ROWS: InjectionToken<WritableSignal<ExtraRowConfig[]>>;
1621
1623
  declare const MULTI_UNFOLD: InjectionToken<boolean>;
1622
1624
  declare const ROW_APPEARANCE_CONFIG: InjectionToken<RowAppearanceConfig<unknown>>;
1623
- declare const ROW_DRAG_DROP: InjectionToken<DragDropService>;
1625
+ declare const ROW_DRAG_DROP: InjectionToken<DragDropService<unknown>>;
1624
1626
  declare const COLUMN_DRAG_DROP: InjectionToken<ColumnDragDropService>;
1625
- declare const DRAG_DROP_CONFIG: InjectionToken<DragDropConfig<unknown>>;
1627
+ declare const DRAG_DROP_CONFIG: InjectionToken<DragDropConfig<unknown> | undefined>;
1626
1628
  declare const KLES_DRAG_DROP_ROW_CONTEXT: InjectionToken<DragDropRowContext<unknown>>;
1627
1629
  declare const PAGINATOR_CONFIG: InjectionToken<PaginatorConfig>;
1628
1630
  declare const INFINITE_SCROLL_CONFIG: InjectionToken<InfiniteScrollConfig>;
@@ -1635,7 +1637,7 @@ declare const SELECTION_SERVICE: InjectionToken<ISelectionService>;
1635
1637
  declare const SORT_SERVICE: InjectionToken<ISortService>;
1636
1638
  declare const SCROLLBAR_ORCHESTRATOR_SERVICE: InjectionToken<IScrollbarOrchestratorService>;
1637
1639
  declare const TABLE_SERVICE: InjectionToken<ITableService>;
1638
- declare const EMPTY_STATE_CONFIG: InjectionToken<boolean | EmptyStateConfig>;
1640
+ declare const EMPTY_STATE_CONFIG: InjectionToken<boolean | EmptyStateConfig | undefined>;
1639
1641
 
1640
1642
  export { AlignCell, COLUMNS, COLUMN_DRAG_DROP, DATASOURCE_SERVICE, DRAG_DROP_CONFIG, EMPTY_STATE_CONFIG, EXTRA_ROWS, FOOTER, HEADER_SERVICE, INFINITE_SCROLL_CONFIG, KLES_DRAG_DROP_ROW_CONTEXT, KlesMaterialTableModule, KlesTableComponent, KlesTableEmptyStateComponent, KlesTableFooterStartDirective, KlesTableIntl, LINES_SERVICE, LOADER_CONFIG, LOADER_SERVICE, MULTI_UNFOLD, PAGINATOR_CONFIG, ROW_APPEARANCE_CONFIG, ROW_DRAG_DROP, SCROLLBAR_ORCHESTRATOR_SERVICE, SELECTION_CONFIG, SELECTION_SERVICE, SORT_CONFIG, SORT_SERVICE, Span, TABLE_SERVICE, TableComponent, linesLazyLoader, linesLoader, selectionConfig };
1641
1643
  export type { AggregationType, BulkActionClickPayload, CellMousePayload, CellPayload, CellValueChangePayload, ColumnApi, ColumnClass, ColumnDragDropConfig, ColumnDropPayload, ColumnOrderChangePayload, ColumnPayload, ColumnResizePayload, ColumnSeparatorConfig, ColumnSeparatorStyle, ColumnVisibilityChangePayload, DefaultTableConfig, DragDrop, DragDropConfig, DragDropRowChange, DragDropRowContext, EmptyStateApi, EmptyStateChangePayload, EmptyStateConfig, EventsApi, ExpansionPayload, ExtraRow, ExtraRowConfig, ExtraRowMode, ExtraRowWidth, FilterChangePayload, FooterApi, FooterFormApi, FormApi, FormValue, GlobalSearchPayload, HeaderFormApi, IKlesCellFieldConfig, IKlesFooterFieldConfig, IKlesHeaderFieldConfig, ITable, InfiniteScrollConfig, KlesColumnConfig, KlesExtraCellFieldConfig, KlesRowContext, KlesStyleMap, KlesStyleValue, KlesTableApi, KlesTableConfig, LinesLazyLoader, LinesLoader, LoadErrorPayload, LoadSuccessPayload, LoaderConfig, LoaderLazyResult, LoaderResult, LoadingApi, LoadingChangePayload, NgStyleInput, PageChangePayload, PaginationApi, PaginatorConfig, RenderApi, RowActionClickPayload, RowAppearanceConfig, RowClassInput, RowClassValue, RowDropErrorPayload, RowDropPayload, RowId, RowMousePayload, RowPayload, RowStyleInput, RowValidatePayload, RowsFormApi, ScrollbarApi, Selection, SelectionAllResponse, SelectionApi, SelectionChangePayload, SelectionConfig, SelectionErrorPayload, SelectionResponse, SelectionState, SortApi, SortPayload, StateChangePayload, SummaryChangePayload, TableElevationLevel, TableEvent, TableEventMap, TableEventPayload, TableEventType, TableFormValue, TreeApi, TreeNodeId, TreePayload, ValidationErrorPayload, VisibilityChangePayload };