@devopmaat/badaboom 1.4.2 → 1.4.3

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.2",
3
+ "version": "1.4.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.0",
6
6
  "@angular/core": "^21.1.0",
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, EnvironmentProviders, TemplateRef, Type, PipeTransform, EventEmitter, OnInit, OnDestroy, AfterViewInit, ElementRef, Signal, TrackByFunction, OnChanges, AfterContentInit, Renderer2, InputSignal, ChangeDetectorRef, ProviderToken } from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders, TemplateRef, Type, PipeTransform, EventEmitter, OnInit, DestroyRef, OnDestroy, AfterViewInit, ElementRef, Signal, TrackByFunction, OnChanges, AfterContentInit, Renderer2, InputSignal, ChangeDetectorRef, ProviderToken } from '@angular/core';
3
3
  import { Routes, Router, ActivatedRoute, Route, CanActivateFn, ResolveFn } from '@angular/router';
4
4
  import { DataSource, SelectionModel, CollectionViewer, ListRange } from '@angular/cdk/collections';
5
- import { Observable, BehaviorSubject, Subject } from 'rxjs';
6
5
  import { HttpClient, HttpErrorResponse, HttpInterceptorFn } from '@angular/common/http';
6
+ import { Observable, BehaviorSubject, Subject } from 'rxjs';
7
7
  import { FormGroup, FormControl, ControlValueAccessor, NgControl, ControlContainer, AbstractControl, ValidatorFn } from '@angular/forms';
8
8
  import { MatDialogRef, MatDialog } from '@angular/material/dialog';
9
9
  import * as _devopmaat_badaboom from '@devopmaat/badaboom';
@@ -74,17 +74,6 @@ declare const BDB_OPTIONS: InjectionToken<BdbOptions>;
74
74
  */
75
75
  declare function provideBaDaBoom(optionsConfigure: BdbOptionsConfigure, routes: Routes): EnvironmentProviders;
76
76
 
77
- interface BdbEntityRead {
78
- id: number;
79
- }
80
-
81
- interface BdbResponse<T> {
82
- page: number;
83
- pageSize: number;
84
- rows: T[];
85
- count: number;
86
- }
87
-
88
77
  interface BdbFilter {
89
78
  type: 'Field' | 'Group';
90
79
  field?: string;
@@ -109,10 +98,21 @@ interface BdbRequestOptions {
109
98
  replaceUrl?: boolean;
110
99
  }
111
100
 
101
+ interface BdbResponse<T> {
102
+ page: number;
103
+ pageSize: number;
104
+ rows: T[];
105
+ count: number;
106
+ }
107
+
112
108
  interface BdbEntity {
113
109
  id: number;
114
110
  }
115
111
 
112
+ interface BdbEntityRead {
113
+ id: number;
114
+ }
115
+
116
116
  declare abstract class BdbService {
117
117
  baseUrl: string;
118
118
  httpClient: HttpClient;
@@ -280,9 +280,9 @@ declare abstract class BdbDataSourceV2<TEntity extends BdbEntity, TState extends
280
280
 
281
281
  declare class BdbGridComponent<TEntityRead extends BdbEntity> {
282
282
  dataSource: i0.InputSignal<BdbDataSourceV2<TEntityRead, _devopmaat_badaboom.DataSourceState>>;
283
- columns: BdbColumn<TEntityRead, unknown>[];
284
- displayedColumns: string[];
285
- selection?: SelectionModel<TEntityRead>;
283
+ columns: i0.InputSignal<BdbColumn<TEntityRead, unknown>[]>;
284
+ displayedColumns: i0.InputSignal<string[]>;
285
+ selection: i0.InputSignal<SelectionModel<TEntityRead> | undefined>;
286
286
  contextActions: i0.InputSignal<BdbContextAction<TEntityRead>[]>;
287
287
  contextAction: i0.OutputEmitterRef<{
288
288
  action: BdbContextAction<TEntityRead>;
@@ -290,26 +290,23 @@ declare class BdbGridComponent<TEntityRead extends BdbEntity> {
290
290
  }>;
291
291
  rowColor: i0.InputSignal<((x: TEntityRead) => BdbM3Palette) | undefined>;
292
292
  rowClick: i0.OutputEmitterRef<TEntityRead>;
293
- filterDrawerOpen: any;
293
+ filterDrawerOpen: boolean;
294
294
  filterDrawerOpened: i0.OutputEmitterRef<boolean>;
295
295
  onContextAction(action: BdbContextAction<TEntityRead>, row: TEntityRead): void;
296
296
  readonly cellTemplates: i0.Signal<readonly BdbCellDirective[]>;
297
297
  sortChange(event: Sort): void;
298
298
  static ɵfac: i0.ɵɵFactoryDeclaration<BdbGridComponent<any>, never>;
299
- static ɵcmp: i0.ɵɵComponentDeclaration<BdbGridComponent<any>, "bdb-grid", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; "isSignal": true; }; "rowColor": { "alias": "rowColor"; "required": false; "isSignal": true; }; }, { "contextAction": "contextAction"; "rowClick": "rowClick"; "filterDrawerOpened": "filterDrawerOpened"; }, ["cellTemplates"], ["toolbar-item", "filter-drawer"], true, never>;
299
+ static ɵcmp: i0.ɵɵComponentDeclaration<BdbGridComponent<any>, "bdb-grid", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "contextActions": { "alias": "contextActions"; "required": false; "isSignal": true; }; "rowColor": { "alias": "rowColor"; "required": false; "isSignal": true; }; }, { "contextAction": "contextAction"; "rowClick": "rowClick"; "filterDrawerOpened": "filterDrawerOpened"; }, ["cellTemplates"], ["toolbar-item", "filter-drawer"], true, never>;
300
300
  }
301
301
 
302
- declare class BdbPaginatorV2Component<TEntity extends BdbEntity> implements OnInit, OnDestroy {
302
+ declare class BdbPaginatorV2Component<TEntity extends BdbEntity> implements OnInit {
303
303
  dataSource: i0.InputSignal<BdbDataSourceV2<TEntity, _devopmaat_badaboom.DataSourceState>>;
304
- private _onDestroy;
305
- set disabled(disabled: boolean);
306
- get disabled(): boolean;
307
- private _disabled;
308
- pageSize?: number;
309
- page?: number;
310
- length?: number;
304
+ destroyRef: DestroyRef;
305
+ disabled: i0.WritableSignal<boolean>;
306
+ pageSize: i0.WritableSignal<number | undefined>;
307
+ page: i0.WritableSignal<number | undefined>;
308
+ length: i0.WritableSignal<number | undefined>;
311
309
  ngOnInit(): void;
312
- ngOnDestroy(): void;
313
310
  changePage(event: PageEvent): void;
314
311
  static ɵfac: i0.ɵɵFactoryDeclaration<BdbPaginatorV2Component<any>, never>;
315
312
  static ɵcmp: i0.ɵɵComponentDeclaration<BdbPaginatorV2Component<any>, "bdb-paginator-v2", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;