@3kles/kles-material-table-v2 21.6.0 → 21.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3kles/kles-material-table-v2",
3
- "version": "21.6.0",
3
+ "version": "21.7.1",
4
4
  "keywords": [
5
5
  "3KLES"
6
6
  ],
@@ -383,8 +383,13 @@ interface PaginatorConfig {
383
383
  selectConfig?: MatPaginatorSelectConfig;
384
384
  }
385
385
  interface InfiniteScrollConfig {
386
- /** Reserved for the future infinite-scroll implementation. */
387
386
  infinite?: boolean;
387
+ /** Number of rows requested per page. Defaults to 10. */
388
+ pageSize?: number;
389
+ /** Distance, in pixels, from the bottom at which the next page is requested. Defaults to 200. */
390
+ scrollThreshold?: number;
391
+ /** Minimum delay, in milliseconds, between scroll checks. Defaults to 100. */
392
+ scrollDebounceTime?: number;
388
393
  }
389
394
  interface DragDropRowChange<TValue = unknown> extends DragDropRowContext<TValue> {
390
395
  previousIndex: number;
@@ -449,9 +454,9 @@ type Selection<T> = {
449
454
  selection?: SelectionConfig<T>;
450
455
  };
451
456
  type Exclusive<T, U> = (T & {
452
- [K in keyof U]?: never;
457
+ [K in Exclude<keyof U, keyof T>]?: never;
453
458
  }) | (U & {
454
- [K in keyof T]?: never;
459
+ [K in Exclude<keyof T, keyof U>]?: never;
455
460
  });
456
461
  type KlesTableConfig<T = unknown, R = unknown> = DefaultTableConfig & Exclusive<PaginatorConfig, InfiniteScrollConfig> & LoaderConfig<T, R> & DragDrop<R> & Selection<T> & ExtraRow;
457
462
 
@@ -1496,9 +1501,9 @@ interface KlesTableApi<TValue = unknown> {
1496
1501
  }>;
1497
1502
  }
1498
1503
 
1499
- declare class KlesTableComponent<TValue = unknown> implements OnInit, KlesTableApi<TValue> {
1504
+ declare class KlesTableComponent<TParams = unknown, TValue = unknown> implements OnInit, KlesTableApi<TValue> {
1500
1505
  private connectorService;
1501
- tableConfig: i0.InputSignal<KlesTableConfig>;
1506
+ tableConfig: i0.InputSignal<KlesTableConfig<TParams, TValue>>;
1502
1507
  private readonly destroyRef;
1503
1508
  tableEvent: EventEmitter<TableEvent<TValue>>;
1504
1509
  rowClick: EventEmitter<RowMousePayload<TValue>>;
@@ -1546,8 +1551,8 @@ declare class KlesTableComponent<TValue = unknown> implements OnInit, KlesTableA
1546
1551
  footer: GroupUiState;
1547
1552
  }>;
1548
1553
  private dispatchEvent;
1549
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesTableComponent<any>, never>;
1550
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesTableComponent<any>, "kles-dynamic-table", never, { "tableConfig": { "alias": "tableConfig"; "required": true; "isSignal": true; }; }, { "tableEvent": "tableEvent"; "rowClick": "rowClick"; "rowDoubleClick": "rowDoubleClick"; "rowContextMenu": "rowContextMenu"; "rowMouseEnter": "rowMouseEnter"; "rowMouseLeave": "rowMouseLeave"; "rowDrop": "rowDrop"; "rowDropSuccess": "rowDropSuccess"; "rowDropError": "rowDropError"; "cellClick": "cellClick"; "cellDoubleClick": "cellDoubleClick"; "cellContextMenu": "cellContextMenu"; "cellValueChange": "cellValueChange"; "selectionChange": "selectionChange"; "selectionError": "selectionError"; "pageChange": "pageChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "loadError": "loadError"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeLoadChildren": "nodeLoadChildren"; "nodeChildrenLoaded": "nodeChildrenLoaded"; }, never, never, true, never>;
1554
+ static ɵfac: i0.ɵɵFactoryDeclaration<KlesTableComponent<any, any>, never>;
1555
+ static ɵcmp: i0.ɵɵComponentDeclaration<KlesTableComponent<any, any>, "kles-dynamic-table", never, { "tableConfig": { "alias": "tableConfig"; "required": true; "isSignal": true; }; }, { "tableEvent": "tableEvent"; "rowClick": "rowClick"; "rowDoubleClick": "rowDoubleClick"; "rowContextMenu": "rowContextMenu"; "rowMouseEnter": "rowMouseEnter"; "rowMouseLeave": "rowMouseLeave"; "rowDrop": "rowDrop"; "rowDropSuccess": "rowDropSuccess"; "rowDropError": "rowDropError"; "cellClick": "cellClick"; "cellDoubleClick": "cellDoubleClick"; "cellContextMenu": "cellContextMenu"; "cellValueChange": "cellValueChange"; "selectionChange": "selectionChange"; "selectionError": "selectionError"; "pageChange": "pageChange"; "sortChange": "sortChange"; "filterChange": "filterChange"; "loadError": "loadError"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeLoadChildren": "nodeLoadChildren"; "nodeChildrenLoaded": "nodeChildrenLoaded"; }, never, never, true, never>;
1551
1556
  }
1552
1557
 
1553
1558
  declare class KlesMaterialTableModule {
@@ -1567,6 +1572,7 @@ declare const ROW_DRAG_DROP: InjectionToken<DragDropService>;
1567
1572
  declare const DRAG_DROP_CONFIG: InjectionToken<DragDropConfig<unknown>>;
1568
1573
  declare const KLES_DRAG_DROP_ROW_CONTEXT: InjectionToken<DragDropRowContext<unknown>>;
1569
1574
  declare const PAGINATOR_CONFIG: InjectionToken<PaginatorConfig>;
1575
+ declare const INFINITE_SCROLL_CONFIG: InjectionToken<InfiniteScrollConfig>;
1570
1576
  declare const SORT_CONFIG: InjectionToken<Sort>;
1571
1577
  declare const HEADER_SERVICE: InjectionToken<IHeaderService>;
1572
1578
  declare const LOADER_SERVICE: InjectionToken<ILoader<unknown>>;
@@ -1578,5 +1584,5 @@ declare const SCROLLBAR_ORCHESTRATOR_SERVICE: InjectionToken<IScrollbarOrchestra
1578
1584
  declare const TABLE_SERVICE: InjectionToken<ITableService>;
1579
1585
  declare const EMPTY_STATE_CONFIG: InjectionToken<boolean | EmptyStateConfig>;
1580
1586
 
1581
- export { AlignCell, COLUMNS, DATASOURCE_SERVICE, DRAG_DROP_CONFIG, EMPTY_STATE_CONFIG, EXTRA_ROWS, FOOTER, HEADER_SERVICE, KLES_DRAG_DROP_ROW_CONTEXT, KlesMaterialTableModule, KlesTableComponent, KlesTableEmptyStateComponent, KlesTableIntl, LINES_SERVICE, LOADER_CONFIG, LOADER_SERVICE, MULTI_UNFOLD, PAGINATOR_CONFIG, ROW_DRAG_DROP, SCROLLBAR_ORCHESTRATOR_SERVICE, SELECTION_CONFIG, SELECTION_SERVICE, SORT_CONFIG, SORT_SERVICE, Span, TABLE_SERVICE, TableComponent, linesLazyLoader, linesLoader, selectionConfig };
1587
+ export { AlignCell, COLUMNS, DATASOURCE_SERVICE, DRAG_DROP_CONFIG, EMPTY_STATE_CONFIG, EXTRA_ROWS, FOOTER, HEADER_SERVICE, INFINITE_SCROLL_CONFIG, KLES_DRAG_DROP_ROW_CONTEXT, KlesMaterialTableModule, KlesTableComponent, KlesTableEmptyStateComponent, KlesTableIntl, LINES_SERVICE, LOADER_CONFIG, LOADER_SERVICE, MULTI_UNFOLD, PAGINATOR_CONFIG, ROW_DRAG_DROP, SCROLLBAR_ORCHESTRATOR_SERVICE, SELECTION_CONFIG, SELECTION_SERVICE, SORT_CONFIG, SORT_SERVICE, Span, TABLE_SERVICE, TableComponent, linesLazyLoader, linesLoader, selectionConfig };
1582
1588
  export type { AggregationType, BulkActionClickPayload, CellMousePayload, CellPayload, CellValueChangePayload, ColumnApi, ColumnClass, ColumnDropPayload, ColumnOrderChangePayload, ColumnPayload, ColumnResizePayload, ColumnSeparatorConfig, ColumnSeparatorStyle, ColumnVisibilityChangePayload, DefaultTableConfig, DragDrop, DragDropConfig, DragDropRowChange, DragDropRowContext, EmptyStateApi, EmptyStateChangePayload, EmptyStateConfig, EventsApi, ExpansionPayload, ExtraRow, ExtraRowConfig, ExtraRowMode, FilterChangePayload, FooterApi, FooterFormApi, FormApi, FormValue, GlobalSearchPayload, HeaderFormApi, IKlesCellFieldConfig, IKlesFooterFieldConfig, IKlesHeaderFieldConfig, ITable, InfiniteScrollConfig, KlesColumnConfig, KlesExtraCellFieldConfig, KlesStyleMap, KlesStyleValue, KlesTableApi, KlesTableConfig, LinesLazyLoader, LinesLoader, LoadErrorPayload, LoadSuccessPayload, LoaderConfig, LoaderLazyResult, LoaderResult, LoadingApi, LoadingChangePayload, NgStyleInput, PageChangePayload, PaginationApi, PaginatorConfig, RenderApi, RowActionClickPayload, RowDropErrorPayload, RowDropPayload, RowId, RowMousePayload, RowPayload, 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 };