cilog-lib 1.13.16 → 1.13.18

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": "cilog-lib",
3
- "version": "1.13.16",
3
+ "version": "1.13.18",
4
4
  "peerDependencies": {
5
5
  "@types/node": "^20.11.19",
6
6
  "exceljs": "^4.4.0",
@@ -8,7 +8,8 @@ import { ContextMenu } from 'primeng/contextmenu';
8
8
  import { InputNumber } from 'primeng/inputnumber';
9
9
  import * as ag_stack from 'ag-stack';
10
10
  import * as ag_grid_community from 'ag-grid-community';
11
- import { GridApi, CellContextMenuEvent, ColDef, GetRowIdParams, RowClassParams, RowStyle, GridReadyEvent, RowClickedEvent, CellClickedEvent, CellValueChangedEvent } from 'ag-grid-community';
11
+ import { IFilterParams, GridApi, CellContextMenuEvent, ColDef, GetRowIdParams, RowClassParams, RowStyle, GridReadyEvent, RowClickedEvent, CellClickedEvent, CellValueChangedEvent } from 'ag-grid-community';
12
+ import { IFilterAngularComp } from 'ag-grid-angular';
12
13
  import { Editor } from 'primeng/editor';
13
14
  import { ControlValueAccessor } from '@angular/forms';
14
15
  import { HttpClient } from '@angular/common/http';
@@ -414,7 +415,7 @@ declare class CilogTableComponent implements OnInit {
414
415
  onRowDoubleClickEvent(row: IRow): void;
415
416
  getMultiSelectConcat(value: any, label: string): any;
416
417
  getSelectLibelleByValue(row: any, col: any): string;
417
- getFilterByCol(col: IColumn): "dateRangeFilter" | "objetFilter" | "listeFilter" | "textFilter" | "switchFilter" | "selectButtonFilter";
418
+ getFilterByCol(col: IColumn): "dateRangeFilter" | "objetFilter" | "selectButtonFilter" | "listeFilter" | "switchFilter" | "textFilter";
418
419
  onFilterCol(event: any, col: IColumn): void;
419
420
  filter(col: IColumn, val: any, filter: string): void;
420
421
  getTotal(col: IColumn): number;
@@ -436,6 +437,26 @@ declare class CilogTableComponent implements OnInit {
436
437
  static ɵcmp: i0.ɵɵComponentDeclaration<CilogTableComponent, "cilog-table", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "values": { "alias": "values"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "columns": "columnsChange"; "values": "valuesChange"; "onEdit": "onEdit"; "onEditInit": "onEditInit"; "onDelete": "onDelete"; "onSelect": "onSelect"; "onUnselect": "onUnselect"; "onFilter": "onFilter"; "onFilterInit": "onFilterInit"; "onSort": "onSort"; "onPage": "onPage"; "onRowDoubleClick": "onRowDoubleClick"; }, never, never, true, never>;
437
438
  }
438
439
 
440
+ interface CustomFilterParams extends IFilterParams {
441
+ optionLabel: string;
442
+ }
443
+ declare class GridSetFilterComponent implements IFilterAngularComp {
444
+ private params;
445
+ options: any[];
446
+ selectedValues: any[];
447
+ optionLabel: string;
448
+ agInit(params: CustomFilterParams): void;
449
+ refresh(params: CustomFilterParams): boolean;
450
+ private extractUniqueObjects;
451
+ isFilterActive(): boolean;
452
+ doesFilterPass(params: any): boolean;
453
+ getModel(): any;
454
+ setModel(model: any): void;
455
+ onSelectionChange(): void;
456
+ static ɵfac: i0.ɵɵFactoryDeclaration<GridSetFilterComponent, never>;
457
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridSetFilterComponent, "cilog-grid-set-filter", never, {}, {}, never, never, true, never>;
458
+ }
459
+
439
460
  declare class CilogGridComponent {
440
461
  gridApi: GridApi;
441
462
  onRowClick: i0.OutputEmitterRef<IRowClick>;
@@ -1241,7 +1262,10 @@ declare class CilogGridComponent {
1241
1262
  colDefs: i0.Signal<ColDef<any, any>[]>;
1242
1263
  getTypeCellule(row: IRow, col: IColumn): any;
1243
1264
  getRowId: (params: GetRowIdParams) => any;
1244
- getTypeFiltre(col: IColumn): "agDateColumnFilter" | "agNumberColumnFilter" | "agTextColumnFilter";
1265
+ getTypeFiltre(col: IColumn): typeof GridSetFilterComponent | "agDateColumnFilter" | "agNumberColumnFilter" | "agTextColumnFilter";
1266
+ getFilterParams(col: IColumn): {
1267
+ optionLabel: any;
1268
+ };
1245
1269
  totalRowData: i0.Signal<any[]>;
1246
1270
  getRowStyle: (params: RowClassParams) => RowStyle | undefined;
1247
1271
  onGridReady(params: GridReadyEvent): void;