cilog-lib 1.13.3 → 1.13.4

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.3",
3
+ "version": "1.13.4",
4
4
  "peerDependencies": {
5
5
  "@types/node": "^20.11.19",
6
6
  "exceljs": "^4.4.0",
@@ -8,7 +8,7 @@ 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 { ColDef, RowClassParams, RowStyle, GridReadyEvent } from 'ag-grid-community';
11
+ import { ColDef, RowClassParams, RowStyle, GridReadyEvent, RowClickedEvent } from 'ag-grid-community';
12
12
  import { Editor } from 'primeng/editor';
13
13
  import { ControlValueAccessor } from '@angular/forms';
14
14
  import { HttpClient } from '@angular/common/http';
@@ -127,6 +127,7 @@ interface IOptionsGrille {
127
127
  contextMenuParCellule?: boolean;
128
128
  headersAffichageEntier?: boolean;
129
129
  resizableColumns?: boolean;
130
+ rowClick?: boolean;
130
131
  }
131
132
  interface IRow {
132
133
  id?: any;
@@ -279,6 +280,9 @@ interface ISelection {
279
280
  selectedRows?: IRow[] | IRow;
280
281
  checked?: boolean;
281
282
  }
283
+ interface IRowClick {
284
+ row: IRow;
285
+ }
282
286
  interface IFilter {
283
287
  column: IColumn;
284
288
  value: any;
@@ -399,7 +403,7 @@ declare class CilogTableComponent implements OnInit {
399
403
  onRowDoubleClickEvent(row: IRow): void;
400
404
  getMultiSelectConcat(value: any, label: string): any;
401
405
  getSelectLibelleByValue(row: any, col: any): string;
402
- getFilterByCol(col: IColumn): "dateRangeFilter" | "objetFilter" | "selectButtonFilter" | "listeFilter" | "switchFilter" | "textFilter";
406
+ getFilterByCol(col: IColumn): "dateRangeFilter" | "objetFilter" | "listeFilter" | "textFilter" | "switchFilter" | "selectButtonFilter";
403
407
  onFilterCol(event: any, col: IColumn): void;
404
408
  filter(col: IColumn, val: any, filter: string): void;
405
409
  getTotal(col: IColumn): number;
@@ -423,6 +427,8 @@ declare class CilogTableComponent implements OnInit {
423
427
 
424
428
  declare class CilogGridComponent {
425
429
  private gridApi;
430
+ onRowClick: i0.OutputEmitterRef<ISelection>;
431
+ onDelete: i0.OutputEmitterRef<ISuppression>;
426
432
  exportService: ExportService;
427
433
  localeText: {
428
434
  selectAll: string;
@@ -1216,12 +1222,15 @@ declare class CilogGridComponent {
1216
1222
  constructor();
1217
1223
  defaultColDef: ColDef;
1218
1224
  colDefs: i0.Signal<ColDef<any, any>[]>;
1225
+ getTypeFiltre(col: IColumn): "agDateColumnFilter" | "agNumberColumnFilter" | "agTextColumnFilter";
1219
1226
  totalRowData: i0.Signal<any[]>;
1220
1227
  getRowStyle: (params: RowClassParams) => RowStyle | undefined;
1221
1228
  onGridReady(params: GridReadyEvent): void;
1222
1229
  exportExcel(byFiltre?: boolean, withColors?: boolean): void;
1230
+ onRowClickEvent(event: RowClickedEvent): void;
1231
+ onDeleteEvent(row: any): void;
1223
1232
  static ɵfac: i0.ɵɵFactoryDeclaration<CilogGridComponent, never>;
1224
- static ɵcmp: i0.ɵɵComponentDeclaration<CilogGridComponent, "cilog-grid", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "values": { "alias": "values"; "required": true; "isSignal": true; }; }, { "columns": "columnsChange"; "values": "valuesChange"; }, never, never, true, never>;
1233
+ static ɵcmp: i0.ɵɵComponentDeclaration<CilogGridComponent, "cilog-grid", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "values": { "alias": "values"; "required": true; "isSignal": true; }; }, { "onRowClick": "onRowClick"; "onDelete": "onDelete"; "columns": "columnsChange"; "values": "valuesChange"; }, never, never, true, never>;
1225
1234
  }
1226
1235
 
1227
1236
  declare class CilogTreetableComponent {
@@ -1387,4 +1396,4 @@ declare class CilogTableService {
1387
1396
  }
1388
1397
 
1389
1398
  export { CilogEditorComponent, CilogGridComponent, CilogInputNumberComponent, CilogLibComponent, CilogLibService, CilogMessageComponent, CilogMessageService, CilogTableComponent, CilogTableService, CilogTreetableComponent, ColType, DocumentationContextuelleComponent, ExportService, ModeCalendar, ModeSelection, Position, Severity, ThemeGrille };
1390
- export type { ICell, IColumn, IEdition, IFilter, IGrouping, IMessage, IOptions, IOptionsButton, IOptionsDate, IOptionsDropdown, IOptionsFile, IOptionsGrille, IOptionsMultiSelect, IOptionsNumber, IOptionsSelectButton, IOptionsState, IOptionsSwitch, IOptionsText, IPage, IRow, ISelection, ISort, ISortCustom, IState, ISuppression };
1399
+ export type { ICell, IColumn, IEdition, IFilter, IGrouping, IMessage, IOptions, IOptionsButton, IOptionsDate, IOptionsDropdown, IOptionsFile, IOptionsGrille, IOptionsMultiSelect, IOptionsNumber, IOptionsSelectButton, IOptionsState, IOptionsSwitch, IOptionsText, IPage, IRow, IRowClick, ISelection, ISort, ISortCustom, IState, ISuppression };