cilog-lib 1.13.15 → 1.13.17

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.15",
3
+ "version": "1.13.17",
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, 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';
@@ -129,6 +130,7 @@ interface IOptionsGrille {
129
130
  headersAffichageEntier?: boolean;
130
131
  resizableColumns?: boolean;
131
132
  rowClick?: boolean;
133
+ cellClick?: boolean;
132
134
  }
133
135
  interface IRow {
134
136
  id?: any;
@@ -141,6 +143,7 @@ interface IRow {
141
143
  exclusionTotal?: boolean;
142
144
  exportable?: boolean;
143
145
  typeSaisie?: ColType;
146
+ disableClick?: boolean;
144
147
  [key: string]: any;
145
148
  }
146
149
  interface ICell {
@@ -163,6 +166,7 @@ interface ICell {
163
166
  pastilleHautDroite?: string;
164
167
  pastilleBasGauche?: string;
165
168
  pastilleBasDroite?: string;
169
+ disableClick?: boolean;
166
170
  }
167
171
  interface IColumn {
168
172
  id: any;
@@ -182,6 +186,7 @@ interface IColumn {
182
186
  backgroundColor?: string;
183
187
  textColor?: string;
184
188
  disableFilter?: boolean;
189
+ disableSort?: boolean;
185
190
  exportable?: boolean;
186
191
  contextMenuDisabled?: boolean;
187
192
  }
@@ -286,6 +291,9 @@ interface ISelection {
286
291
  interface IRowClick {
287
292
  row: IRow;
288
293
  }
294
+ interface ICellClick {
295
+ cell: ICell;
296
+ }
289
297
  interface IFilter {
290
298
  column: IColumn;
291
299
  value: any;
@@ -378,6 +386,7 @@ declare class CilogTableComponent implements OnInit {
378
386
  backgroundColor?: string;
379
387
  textColor?: string;
380
388
  disableFilter?: boolean;
389
+ disableSort?: boolean;
381
390
  exportable?: boolean;
382
391
  contextMenuDisabled?: boolean;
383
392
  }[]>;
@@ -428,9 +437,30 @@ declare class CilogTableComponent implements OnInit {
428
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>;
429
438
  }
430
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
+
431
460
  declare class CilogGridComponent {
432
461
  gridApi: GridApi;
433
462
  onRowClick: i0.OutputEmitterRef<IRowClick>;
463
+ onCellClick: i0.OutputEmitterRef<ICellClick>;
434
464
  onDelete: i0.OutputEmitterRef<ISuppression>;
435
465
  onEdit: i0.OutputEmitterRef<IEdition>;
436
466
  exportService: ExportService;
@@ -1232,12 +1262,16 @@ declare class CilogGridComponent {
1232
1262
  colDefs: i0.Signal<ColDef<any, any>[]>;
1233
1263
  getTypeCellule(row: IRow, col: IColumn): any;
1234
1264
  getRowId: (params: GetRowIdParams) => any;
1235
- getTypeFiltre(col: IColumn): "agDateColumnFilter" | "agNumberColumnFilter" | "agTextColumnFilter";
1265
+ getTypeFiltre(col: IColumn): typeof GridSetFilterComponent | "agDateColumnFilter" | "agNumberColumnFilter" | "agTextColumnFilter";
1266
+ getFilterParams(col: IColumn): {
1267
+ optionLabel: any;
1268
+ };
1236
1269
  totalRowData: i0.Signal<any[]>;
1237
1270
  getRowStyle: (params: RowClassParams) => RowStyle | undefined;
1238
1271
  onGridReady(params: GridReadyEvent): void;
1239
1272
  exportExcel(byFiltre?: boolean, withColors?: boolean): void;
1240
1273
  onRowClickEvent(event: RowClickedEvent): void;
1274
+ onCellClickEvent(event: CellClickedEvent): void;
1241
1275
  onDeleteEvent(row: any): void;
1242
1276
  onCellValueChanged(event: CellValueChangedEvent): void;
1243
1277
  onCellContextMenu(params: CellContextMenuEvent): void;
@@ -1245,7 +1279,7 @@ declare class CilogGridComponent {
1245
1279
  onGridContextMenu(event: MouseEvent): void;
1246
1280
  executeAction(actionType: string): void;
1247
1281
  static ɵfac: i0.ɵɵFactoryDeclaration<CilogGridComponent, never>;
1248
- 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"; "onEdit": "onEdit"; "columns": "columnsChange"; "values": "valuesChange"; }, never, never, true, never>;
1282
+ 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"; "onCellClick": "onCellClick"; "onDelete": "onDelete"; "onEdit": "onEdit"; "columns": "columnsChange"; "values": "valuesChange"; }, never, never, true, never>;
1249
1283
  }
1250
1284
 
1251
1285
  declare class CilogTreetableComponent {
@@ -1283,6 +1317,7 @@ declare class CilogTreetableComponent {
1283
1317
  backgroundColor?: string;
1284
1318
  textColor?: string;
1285
1319
  disableFilter?: boolean;
1320
+ disableSort?: boolean;
1286
1321
  exportable?: boolean;
1287
1322
  contextMenuDisabled?: boolean;
1288
1323
  }[]>;
@@ -1411,4 +1446,4 @@ declare class CilogTableService {
1411
1446
  }
1412
1447
 
1413
1448
  export { CilogEditorComponent, CilogGridComponent, CilogInputNumberComponent, CilogLibComponent, CilogLibService, CilogMessageComponent, CilogMessageService, CilogTableComponent, CilogTableService, CilogTreetableComponent, ColType, DocumentationContextuelleComponent, ExportService, ModeCalendar, ModeSelection, Position, Severity, ThemeGrille };
1414
- 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 };
1449
+ export type { ICell, ICellClick, 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 };