@3kles/kles-material-table-v2 21.0.2 → 21.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@3kles/kles-material-table-v2",
3
- "version": "21.0.2",
3
+ "version": "21.1.0",
4
4
  "keywords": [
5
5
  "3KLES"
6
6
  ],
@@ -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 {
@@ -344,6 +355,7 @@ interface DefaultTableConfig {
344
355
  lineAsyncValidations?: AsyncValidatorFn[];
345
356
  footer?: boolean;
346
357
  sortConfig?: Sort;
358
+ columnSeparator?: boolean | ColumnSeparatorConfig;
347
359
  }
348
360
  interface PaginatorConfig {
349
361
  paginator?: boolean;
@@ -1077,6 +1089,7 @@ declare class CellService {
1077
1089
  static ɵprov: i0.ɵɵInjectableDeclaration<CellService>;
1078
1090
  }
1079
1091
 
1092
+ type TableSection = 'header' | 'body' | 'footer';
1080
1093
  declare class TableComponent implements ITable, OnInit, AfterViewInit, OnDestroy {
1081
1094
  private readonly host;
1082
1095
  private readonly connectorService;
@@ -1138,6 +1151,7 @@ declare class TableComponent implements ITable, OnInit, AfterViewInit, OnDestroy
1138
1151
  ngAfterViewInit(): void;
1139
1152
  ngOnDestroy(): void;
1140
1153
  submit(): void;
1154
+ getColumnSeparator(column: KlesColumnConfig, section: TableSection): string | null;
1141
1155
  private calculHeaderHeight;
1142
1156
  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
1157
  static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "kles-table", never, {}, {}, never, never, true, never>;
@@ -1218,4 +1232,4 @@ declare const SCROLLBAR_ORCHESTRATOR_SERVICE: InjectionToken<IScrollbarOrchestra
1218
1232
  declare const TABLE_SERVICE: InjectionToken<ITableService>;
1219
1233
 
1220
1234
  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 };
1235
+ 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 };