@3kles/kles-material-table-v2 21.0.3 → 21.2.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
|
@@ -52,6 +52,16 @@ interface KlesExtraCellFieldConfig extends IKlesCellFieldConfig {
|
|
|
52
52
|
rowspan?: number;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
type ColumnSeparatorStyle = 'solid' | 'dashed' | 'dotted' | 'double';
|
|
56
|
+
interface ColumnSeparatorConfig {
|
|
57
|
+
color?: string;
|
|
58
|
+
width?: string;
|
|
59
|
+
style?: ColumnSeparatorStyle;
|
|
60
|
+
header?: boolean;
|
|
61
|
+
body?: boolean;
|
|
62
|
+
footer?: boolean;
|
|
63
|
+
showAfterLastColumn?: boolean;
|
|
64
|
+
}
|
|
55
65
|
interface KlesColumnConfig {
|
|
56
66
|
columnDef: string;
|
|
57
67
|
sticky?: boolean;
|
|
@@ -73,6 +83,7 @@ interface KlesColumnConfig {
|
|
|
73
83
|
maxWidth?: string;
|
|
74
84
|
canExpand?: boolean;
|
|
75
85
|
canExpandNode?: boolean;
|
|
86
|
+
separator?: boolean | ColumnSeparatorConfig;
|
|
76
87
|
}
|
|
77
88
|
|
|
78
89
|
interface ColumnApi {
|
|
@@ -337,6 +348,7 @@ type Brand<K extends string> = {
|
|
|
337
348
|
type SelectionConfig<T> = SelectionConfigDef<T> & Brand<'SelectionConfig'>;
|
|
338
349
|
declare const selectionConfig: <T>(l: SelectionConfigDef<T>) => SelectionConfig<T>;
|
|
339
350
|
|
|
351
|
+
type TableElevationLevel = 0 | 1 | 2 | 3 | 4 | 5;
|
|
340
352
|
interface DefaultTableConfig {
|
|
341
353
|
id?: string;
|
|
342
354
|
columns: KlesColumnConfig[];
|
|
@@ -344,6 +356,8 @@ interface DefaultTableConfig {
|
|
|
344
356
|
lineAsyncValidations?: AsyncValidatorFn[];
|
|
345
357
|
footer?: boolean;
|
|
346
358
|
sortConfig?: Sort;
|
|
359
|
+
columnSeparator?: boolean | ColumnSeparatorConfig;
|
|
360
|
+
elevation?: TableElevationLevel;
|
|
347
361
|
}
|
|
348
362
|
interface PaginatorConfig {
|
|
349
363
|
paginator?: boolean;
|
|
@@ -727,6 +741,8 @@ declare class ColumnsService {
|
|
|
727
741
|
constructor(_columns: WritableSignal<KlesColumnConfig[]>, eventsService: EventsService);
|
|
728
742
|
register(): void;
|
|
729
743
|
get columns(): Signal<KlesColumnConfig[]>;
|
|
744
|
+
readonly stickyStartBoundary: Signal<string>;
|
|
745
|
+
readonly stickyEndBoundary: Signal<string>;
|
|
730
746
|
getVisible(): string[];
|
|
731
747
|
setVisible(columnDef: string, visible: boolean): void;
|
|
732
748
|
toggleVisible(columnDef: string): void;
|
|
@@ -744,6 +760,7 @@ declare class ColumnsService {
|
|
|
744
760
|
setColumnPosition(columnDef: string, position: number): void;
|
|
745
761
|
private updateColumn;
|
|
746
762
|
private setDisplayedColumns;
|
|
763
|
+
private getVisibleColumns;
|
|
747
764
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsService, never>;
|
|
748
765
|
static ɵprov: i0.ɵɵInjectableDeclaration<ColumnsService>;
|
|
749
766
|
}
|
|
@@ -1077,6 +1094,7 @@ declare class CellService {
|
|
|
1077
1094
|
static ɵprov: i0.ɵɵInjectableDeclaration<CellService>;
|
|
1078
1095
|
}
|
|
1079
1096
|
|
|
1097
|
+
type TableSection = 'header' | 'body' | 'footer';
|
|
1080
1098
|
declare class TableComponent implements ITable, OnInit, AfterViewInit, OnDestroy {
|
|
1081
1099
|
private readonly host;
|
|
1082
1100
|
private readonly connectorService;
|
|
@@ -1138,6 +1156,10 @@ declare class TableComponent implements ITable, OnInit, AfterViewInit, OnDestroy
|
|
|
1138
1156
|
ngAfterViewInit(): void;
|
|
1139
1157
|
ngOnDestroy(): void;
|
|
1140
1158
|
submit(): void;
|
|
1159
|
+
getColumnSeparator(column: KlesColumnConfig, section: TableSection): string | null;
|
|
1160
|
+
getStickyStartSeparator(column: KlesColumnConfig, section: TableSection): string | null;
|
|
1161
|
+
getStickyEndSeparator(column: KlesColumnConfig, section: TableSection): string | null;
|
|
1162
|
+
private getSeparatorStyle;
|
|
1141
1163
|
private calculHeaderHeight;
|
|
1142
1164
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, null, null, null, null, null]>;
|
|
1143
1165
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "kles-table", never, {}, {}, never, never, true, never>;
|
|
@@ -1170,6 +1192,7 @@ declare class KlesTableComponent<TValue = unknown> implements OnInit, KlesTableA
|
|
|
1170
1192
|
rowContextMenu: EventEmitter<RowMousePayload<TValue>>;
|
|
1171
1193
|
cellClick: EventEmitter<CellMousePayload<TValue>>;
|
|
1172
1194
|
cellValueChange: EventEmitter<CellValueChangePayload<TValue>>;
|
|
1195
|
+
readonly elevationShadow: i0.Signal<string>;
|
|
1173
1196
|
constructor(connectorService: KlesTableConnectorService);
|
|
1174
1197
|
ngOnInit(): void;
|
|
1175
1198
|
get hostId(): string;
|
|
@@ -1218,4 +1241,4 @@ declare const SCROLLBAR_ORCHESTRATOR_SERVICE: InjectionToken<IScrollbarOrchestra
|
|
|
1218
1241
|
declare const TABLE_SERVICE: InjectionToken<ITableService>;
|
|
1219
1242
|
|
|
1220
1243
|
export { AlignCell, COLUMNS, DATASOURCE_SERVICE, DRAG_DROP_CONFIG, EXTRA_ROWS, FOOTER, HEADER_SERVICE, KlesMaterialTableModule, KlesTableComponent, 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 };
|
|
1221
|
-
export type { DefaultTableConfig, DragDrop, DragDropConfig, ExtraRow, ExtraRowConfig, ExtraRowMode, IKlesCellFieldConfig, IKlesFooterFieldConfig, IKlesHeaderFieldConfig, ITable, InfiniteScrollConfig, KlesColumnConfig, KlesExtraCellFieldConfig, KlesTableApi, KlesTableConfig, LinesLazyLoader, LinesLoader, LoaderConfig, LoaderLazyResult, LoaderResult, NgStyleInput, PaginatorConfig, RowId, Selection, SelectionAllResponse, SelectionConfig, SelectionResponse, SelectionState };
|
|
1244
|
+
export type { ColumnSeparatorConfig, ColumnSeparatorStyle, DefaultTableConfig, DragDrop, DragDropConfig, ExtraRow, ExtraRowConfig, ExtraRowMode, IKlesCellFieldConfig, IKlesFooterFieldConfig, IKlesHeaderFieldConfig, ITable, InfiniteScrollConfig, KlesColumnConfig, KlesExtraCellFieldConfig, KlesTableApi, KlesTableConfig, LinesLazyLoader, LinesLoader, LoaderConfig, LoaderLazyResult, LoaderResult, NgStyleInput, PaginatorConfig, RowId, Selection, SelectionAllResponse, SelectionConfig, SelectionResponse, SelectionState, TableElevationLevel };
|