@3kles/kles-material-table-v2 21.0.0 → 21.0.2

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@3kles/kles-material-table-v2",
3
- "version": "21.0.0",
3
+ "version": "21.0.2",
4
4
  "keywords": [
5
5
  "3KLES"
6
6
  ],
7
7
  "author": "3Kles Lab",
8
8
  "license": "ISC",
9
9
  "peerDependencies": {
10
- "@3kles/kles-material-dynamicforms": "^19.5.1",
10
+ "@3kles/kles-material-dynamicforms": "^21.0.1",
11
11
  "@angular/animations": "^21.0.0",
12
12
  "@angular/cdk": "^21.0.0",
13
13
  "@angular/common": "^21.0.0",
@@ -16,12 +16,7 @@
16
16
  "@angular/material": "^21.0.0",
17
17
  "@angular/platform-browser": "^21.0.0",
18
18
  "@angular/router": "^21.0.0",
19
- "rxjs": "^7.8.0",
20
- "zone.js": "~0.15.1",
21
- "hammerjs": "^2.0.8",
22
- "lodash": "^4.17.19",
23
- "ngx-color-picker": "^19.0.0",
24
- "ngx-mat-select-search": "^8.0.2"
19
+ "rxjs": "^7.8.0"
25
20
  },
26
21
  "dependencies": {
27
22
  "tslib": "^2.0.0"
@@ -301,23 +301,31 @@ declare const linesLoader: <T, R>(l: LinesLoaderDef<T, R>) => LinesLoader<T, R>;
301
301
  declare const linesLazyLoader: <T, R>(l: LinesLazyLoaderDef<T, R>) => LinesLazyLoader<T, R>;
302
302
 
303
303
  type RowId = string | number;
304
+ interface SelectionResponse {
305
+ selected: boolean;
306
+ count?: number;
307
+ }
308
+ interface SelectionAllResponse extends SelectionResponse {
309
+ footer?: any;
310
+ }
311
+ interface SelectionState {
312
+ loading: boolean;
313
+ success: boolean;
314
+ selected?: boolean;
315
+ footer?: any;
316
+ count?: number;
317
+ error?: unknown;
318
+ }
304
319
  type SelectionConfigDef<T> = {
305
320
  selectionMode?: boolean;
306
321
  key?: string;
307
322
  params?: () => Observable<T>;
308
323
  select?: (params: T, row: FormGroup, selected: boolean, filters?: {
309
324
  [key: string]: any;
310
- }) => Observable<{
311
- selected?: boolean;
312
- count?: number;
313
- }>;
314
- selectAll?: (params: T, selected: boolean, filters: {
325
+ }) => Observable<SelectionResponse>;
326
+ selectAll?: (params: T, selected: boolean, filters?: {
315
327
  [key: string]: any;
316
- }) => Observable<{
317
- selected: boolean;
318
- footer?: any;
319
- count?: number;
320
- }>;
328
+ }) => Observable<SelectionAllResponse>;
321
329
  /** optionnel */
322
330
  /** pour indiquer le critère des lignes déja sélectionné */
323
331
  isSelected?: (row: FormGroup) => boolean;
@@ -1210,4 +1218,4 @@ declare const SCROLLBAR_ORCHESTRATOR_SERVICE: InjectionToken<IScrollbarOrchestra
1210
1218
  declare const TABLE_SERVICE: InjectionToken<ITableService>;
1211
1219
 
1212
1220
  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 };
1213
- 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, 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 };