@3kles/kles-material-table-v2 21.6.0 → 21.7.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
|
@@ -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
|
|
|
@@ -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 };
|