@devopmaat/badaboom 1.4.1 → 1.4.2

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": "@devopmaat/badaboom",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.0",
6
6
  "@angular/core": "^21.1.0",
@@ -8,6 +8,8 @@ import { FormGroup, FormControl, ControlValueAccessor, NgControl, ControlContain
8
8
  import { MatDialogRef, MatDialog } from '@angular/material/dialog';
9
9
  import * as _devopmaat_badaboom from '@devopmaat/badaboom';
10
10
  import { Sort } from '@angular/material/sort';
11
+ import { MatTableDataSource } from '@angular/material/table';
12
+ import * as _angular_material_paginator from '@angular/material/paginator';
11
13
  import { PageEvent } from '@angular/material/paginator';
12
14
  import { MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
13
15
  import { MatFormFieldControl } from '@angular/material/form-field';
@@ -229,7 +231,7 @@ interface DataSourceState {
229
231
  sortDirection?: 'asc' | 'desc';
230
232
  query?: string;
231
233
  }
232
- declare abstract class BdbDataSourceV2<TEntity extends BdbEntity, TState extends DataSourceState = DataSourceState> implements DataSource<TEntity> {
234
+ declare abstract class BdbDataSourceV2<TEntity extends BdbEntity, TState extends DataSourceState = DataSourceState> extends MatTableDataSource<TEntity> {
233
235
  private destroyRef;
234
236
  private router;
235
237
  private route;
@@ -252,19 +254,18 @@ declare abstract class BdbDataSourceV2<TEntity extends BdbEntity, TState extends
252
254
  request$: Observable<[BdbRequest, BdbRequestOptions]>;
253
255
  private responseSubject;
254
256
  response$: Observable<BdbResponse<TEntity> | undefined>;
257
+ private dataSubject;
255
258
  private _loading;
256
259
  loading: i0.Signal<boolean>;
257
260
  private _error;
258
261
  error: i0.Signal<HttpErrorResponse | undefined>;
259
- get data(): readonly TEntity[];
260
262
  private _persistenceRead?;
261
263
  private _persistenceWrite?;
262
264
  private _identifier;
263
265
  get identifier(): string | undefined;
264
266
  set identifier(value: string | undefined);
265
267
  constructor();
266
- disconnect(): void;
267
- connect(): Observable<TEntity[] | readonly TEntity[]>;
268
+ connect(): BehaviorSubject<TEntity[]>;
268
269
  load(loadOptions?: BdbRequestOptions): void;
269
270
  abstract loadMethod(request: BdbRequest): Observable<BdbResponse<TEntity>>;
270
271
  createRequest(): BdbRequest;
@@ -288,7 +289,7 @@ declare class BdbGridComponent<TEntityRead extends BdbEntity> {
288
289
  row: TEntityRead;
289
290
  }>;
290
291
  rowColor: i0.InputSignal<((x: TEntityRead) => BdbM3Palette) | undefined>;
291
- rowClick: EventEmitter<TEntityRead>;
292
+ rowClick: i0.OutputEmitterRef<TEntityRead>;
292
293
  filterDrawerOpen: any;
293
294
  filterDrawerOpened: i0.OutputEmitterRef<boolean>;
294
295
  onContextAction(action: BdbContextAction<TEntityRead>, row: TEntityRead): void;
@@ -466,8 +467,8 @@ declare class BdbSearchComponent<TEntityRead extends BdbEntityRead> implements C
466
467
  static ɵcmp: i0.ɵɵComponentDeclaration<BdbSearchComponent<any>, "bdb-search", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayFn": { "alias": "displayFn"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
467
468
  }
468
469
 
469
- declare class BdbTableV2Component<TEntity extends BdbEntity> {
470
- dataSource: i0.InputSignal<readonly TEntity[]>;
470
+ declare class BdbTableV2Component<TEntity> {
471
+ dataSource: i0.InputSignal<MatTableDataSource<TEntity, _angular_material_paginator.MatPaginator>>;
471
472
  columns: i0.InputSignal<BdbColumn<TEntity, unknown>[]>;
472
473
  displayedColumns: i0.InputSignal<string[]>;
473
474
  activeColumns: Signal<string[]>;