@cauca-911/datagrid 22.2.4 → 22.2.6-beta1

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.4",
3
+ "version": "22.2.6-beta1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.1.0",
6
6
  "@angular/core": ">=22.1.0",
@@ -24,6 +24,11 @@ declare class DataGridRowDropEvent {
24
24
  });
25
25
  }
26
26
 
27
+ interface ColumnsChangedEvent {
28
+ columns: string[];
29
+ persist: boolean;
30
+ }
31
+
27
32
  type ExportCell = string | number | boolean | Date | null;
28
33
  declare abstract class BaseGridColumnComponent implements OnDestroy, OnInit {
29
34
  table: MatTable<unknown>;
@@ -169,7 +174,7 @@ declare abstract class BaseDataGridComponent implements AfterContentInit {
169
174
  /** The set of columns to render, before the user's own column selection is applied. */
170
175
  protected computeDisplayedColumns(): string[];
171
176
  protected setUpPaginator(_paginator: MatPaginator, _showPaginator: boolean): void;
172
- protected onColumnsChanged(columns: string[]): void;
177
+ protected onColumnsChanged({ columns, persist }: ColumnsChangedEvent): void;
173
178
  protected applyColumns(): void;
174
179
  private removeMandatoryColumns;
175
180
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseDataGridComponent, never>;
@@ -204,7 +209,7 @@ declare class DataGridComponent extends BaseDataGridComponent implements AfterCo
204
209
  protected getExportSourceRows(): unknown[];
205
210
  protected setUpPaginator(paginator: MatPaginator, showPaginator: boolean): void;
206
211
  protected computeDisplayedColumns(): string[];
207
- protected onColumnsChanged(columns: string[]): void;
212
+ protected onColumnsChanged({ columns, persist }: ColumnsChangedEvent): void;
208
213
  protected setUpFilterPredicate(): void;
209
214
  protected forceReloadFilter(): void;
210
215
  /** `position` and `expand` are grid-owned columns, not part of the caller's list. */
@@ -301,7 +306,7 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnDest
301
306
  protected getExportSourceRows(): Promise<unknown[]>;
302
307
  protected forceReloadFilter(): void;
303
308
  protected computeDisplayedColumns(): string[];
304
- protected onColumnsChanged(columns: string[]): void;
309
+ protected onColumnsChanged({ columns, persist }: ColumnsChangedEvent): void;
305
310
  private applyFilterValue;
306
311
  /** `expand` is a grid-owned column, not part of the caller's list. */
307
312
  private decorateColumns;