@cauca-911/datagrid 22.2.7 → 22.3.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": "@cauca-911/datagrid",
3
- "version": "22.2.7",
3
+ "version": "22.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.1.0",
6
6
  "@angular/core": ">=22.1.0",
@@ -29,7 +29,15 @@ interface ColumnsChangedEvent {
29
29
  persist: boolean;
30
30
  }
31
31
 
32
- type ExportCell = string | number | boolean | Date | null;
32
+ type ExportValue = string | number | boolean | Date | null;
33
+ interface FilledExportCell {
34
+ value: ExportValue;
35
+ fillColor: string;
36
+ }
37
+ type ExportCell = ExportValue | FilledExportCell;
38
+ declare function isFilledExportCell(cell: ExportCell): cell is FilledExportCell;
39
+ declare function hexToArgb(fillColor: string): string | undefined;
40
+
33
41
  declare abstract class BaseGridColumnComponent implements OnDestroy, OnInit {
34
42
  table: MatTable<unknown>;
35
43
  readonly prop: _angular_core.InputSignal<string>;
@@ -376,6 +384,9 @@ declare class GridExportService {
376
384
  toPdf(matrix: ExportMatrix, fileName: string): Promise<void>;
377
385
  private loadWorkbook;
378
386
  private load;
387
+ private applyFill;
388
+ private applyPdfFill;
389
+ private valueOf;
379
390
  private localize;
380
391
  private stringify;
381
392
  private download;
@@ -387,6 +398,7 @@ declare class ColorDataGridColumnComponent extends BaseGridColumnComponent imple
387
398
  readonly odata: OdataGridComponent;
388
399
  readonly grid: DataGridComponent;
389
400
  constructor(odata: OdataGridComponent, grid: DataGridComponent);
401
+ getExportValue(row: Record<string, unknown>): ExportCell;
390
402
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorDataGridColumnComponent, [{ optional: true; }, { optional: true; }]>;
391
403
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorDataGridColumnComponent, "cauca-color-data-grid-column", never, {}, {}, never, never, true, never>;
392
404
  }
@@ -538,5 +550,5 @@ interface CaucaGridOptions {
538
550
  declare const PREFERENCE_SERVICE_TOKEN: InjectionToken<BasePreferenceService>;
539
551
  declare function provideCaucaGrid(options?: CaucaGridOptions): (Provider | EnvironmentProviders);
540
552
 
541
- export { ALL_EXPORT_FORMATS, BaseGridColumnComponent, ColorDataGridColumnComponent, DataGridCheckColumnComponent, DataGridColumnComponent, DataGridCommandIconColumnComponent, DataGridCommandsColumnComponent, DataGridComponent, DataGridHeaderComponent, DataGridIconColumnComponent, DataGridMenuColumnComponent, DataGridRowDropEvent, DateGridColumnComponent, Density, GRID_OWNED_COLUMNS, GridConfiguration, GridExportService, GridStateRestorationService, OdataGridComponent, OdataListingService, PREFERENCE_SERVICE_TOKEN, Preference, SortableDataGridCheckColumnComponent, SortableDataGridColumnComponent, TimeSpanDataGridColumnComponent, TranslationGridColumnComponent, buildExportMatrix, emptyQueryParams, fromQueryParams, paramsEqual, provideCaucaGrid, provideGridStateRestoration, toQueryParams };
542
- export type { BasePreferenceService, CaucaGridOptions, ExportCell, ExportMatrix, GridExportFormat, GridUrlState, Paginator, Sort };
553
+ export { ALL_EXPORT_FORMATS, BaseGridColumnComponent, ColorDataGridColumnComponent, DataGridCheckColumnComponent, DataGridColumnComponent, DataGridCommandIconColumnComponent, DataGridCommandsColumnComponent, DataGridComponent, DataGridHeaderComponent, DataGridIconColumnComponent, DataGridMenuColumnComponent, DataGridRowDropEvent, DateGridColumnComponent, Density, GRID_OWNED_COLUMNS, GridConfiguration, GridExportService, GridStateRestorationService, OdataGridComponent, OdataListingService, PREFERENCE_SERVICE_TOKEN, Preference, SortableDataGridCheckColumnComponent, SortableDataGridColumnComponent, TimeSpanDataGridColumnComponent, TranslationGridColumnComponent, buildExportMatrix, emptyQueryParams, fromQueryParams, hexToArgb, isFilledExportCell, paramsEqual, provideCaucaGrid, provideGridStateRestoration, toQueryParams };
554
+ export type { BasePreferenceService, CaucaGridOptions, ExportCell, ExportMatrix, ExportValue, FilledExportCell, GridExportFormat, GridUrlState, Paginator, Sort };