@3kles/kles-material-table-v2 21.5.0 → 21.6.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
|
@@ -401,6 +401,8 @@ interface DragDropRowChange<TValue = unknown> extends DragDropRowContext<TValue>
|
|
|
401
401
|
interface DragDropConfig<TValue = unknown> {
|
|
402
402
|
enable?: boolean;
|
|
403
403
|
options?: {
|
|
404
|
+
/** Restricts row dragging to the dedicated handle rendered in the first visible column. */
|
|
405
|
+
handleOnly?: boolean;
|
|
404
406
|
autoScrollStep?: number;
|
|
405
407
|
connectedTo?: string[];
|
|
406
408
|
dragDisabled?: (row: FormGroup) => boolean;
|
|
@@ -433,6 +435,7 @@ interface ExtraRowConfig {
|
|
|
433
435
|
}
|
|
434
436
|
interface ExtraRow {
|
|
435
437
|
extraRows?: ExtraRowConfig[];
|
|
438
|
+
/** Allows several expandable data rows to remain open. Defaults to false. */
|
|
436
439
|
multiUnfold?: boolean;
|
|
437
440
|
}
|
|
438
441
|
type LoaderConfig<T, R> = {
|
|
@@ -996,6 +999,7 @@ declare abstract class DragDropBase {
|
|
|
996
999
|
readonly dropListId: string;
|
|
997
1000
|
constructor(config: DragDropConfig | undefined, eventsService: EventsService, klesForm: KlesForm, injector: Injector, tableId?: string);
|
|
998
1001
|
get enable(): boolean;
|
|
1002
|
+
get handleOnly(): boolean;
|
|
999
1003
|
get autoScrollStep(): number;
|
|
1000
1004
|
get connectedTo(): string[];
|
|
1001
1005
|
get sortPredicate(): (index: number, item: CdkDrag<FormGroup>) => boolean;
|
|
@@ -1229,15 +1233,18 @@ interface IHeaderService {
|
|
|
1229
1233
|
register(): void;
|
|
1230
1234
|
}
|
|
1231
1235
|
|
|
1236
|
+
type ExpandedRowId = string | number;
|
|
1232
1237
|
declare class ExpandedRowStore implements ITableStore {
|
|
1238
|
+
private readonly multiUnfold;
|
|
1233
1239
|
private readonly _expandedIds$;
|
|
1234
|
-
readonly expandedIds$: rxjs.Observable<Set<
|
|
1240
|
+
readonly expandedIds$: rxjs.Observable<Set<ExpandedRowId>>;
|
|
1241
|
+
constructor(multiUnfold?: boolean);
|
|
1235
1242
|
reset(): void;
|
|
1236
|
-
isExpanded(id:
|
|
1237
|
-
get expandedIds(): ReadonlySet<
|
|
1238
|
-
expand(id:
|
|
1239
|
-
collapse(id:
|
|
1240
|
-
toggle(id:
|
|
1243
|
+
isExpanded(id: ExpandedRowId): boolean;
|
|
1244
|
+
get expandedIds(): ReadonlySet<ExpandedRowId>;
|
|
1245
|
+
expand(id: ExpandedRowId): void;
|
|
1246
|
+
collapse(id: ExpandedRowId): void;
|
|
1247
|
+
toggle(id: ExpandedRowId): void;
|
|
1241
1248
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandedRowStore, never>;
|
|
1242
1249
|
static ɵprov: i0.ɵɵInjectableDeclaration<ExpandedRowStore>;
|
|
1243
1250
|
}
|
|
@@ -1250,7 +1257,7 @@ declare class ExtraRowService {
|
|
|
1250
1257
|
displayedColumns: string[];
|
|
1251
1258
|
})[]>;
|
|
1252
1259
|
constructor(_extraRowsConfig: WritableSignal<ExtraRowConfig[]>, expandedRowStore: ExpandedRowStore);
|
|
1253
|
-
|
|
1260
|
+
extraFields(): IKlesFieldConfig[];
|
|
1254
1261
|
private createWhen;
|
|
1255
1262
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExtraRowService, never>;
|
|
1256
1263
|
static ɵprov: i0.ɵɵInjectableDeclaration<ExtraRowService>;
|
|
@@ -1555,6 +1562,7 @@ declare const LOADER_CONFIG: InjectionToken<LoaderConfig<unknown, unknown>>;
|
|
|
1555
1562
|
declare const COLUMNS: InjectionToken<WritableSignal<KlesColumnConfig[]>>;
|
|
1556
1563
|
declare const FOOTER: InjectionToken<WritableSignal<boolean>>;
|
|
1557
1564
|
declare const EXTRA_ROWS: InjectionToken<WritableSignal<ExtraRowConfig[]>>;
|
|
1565
|
+
declare const MULTI_UNFOLD: InjectionToken<boolean>;
|
|
1558
1566
|
declare const ROW_DRAG_DROP: InjectionToken<DragDropService>;
|
|
1559
1567
|
declare const DRAG_DROP_CONFIG: InjectionToken<DragDropConfig<unknown>>;
|
|
1560
1568
|
declare const KLES_DRAG_DROP_ROW_CONTEXT: InjectionToken<DragDropRowContext<unknown>>;
|
|
@@ -1570,5 +1578,5 @@ declare const SCROLLBAR_ORCHESTRATOR_SERVICE: InjectionToken<IScrollbarOrchestra
|
|
|
1570
1578
|
declare const TABLE_SERVICE: InjectionToken<ITableService>;
|
|
1571
1579
|
declare const EMPTY_STATE_CONFIG: InjectionToken<boolean | EmptyStateConfig>;
|
|
1572
1580
|
|
|
1573
|
-
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, PAGINATOR_CONFIG, ROW_DRAG_DROP, SCROLLBAR_ORCHESTRATOR_SERVICE, SELECTION_CONFIG, SELECTION_SERVICE, SORT_CONFIG, SORT_SERVICE, Span, TABLE_SERVICE, TableComponent, linesLazyLoader, linesLoader, selectionConfig };
|
|
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 };
|
|
1574
1582
|
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 };
|