@devopmaat/badaboom 1.4.0 → 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,11 +1,12 @@
1
1
  {
2
2
  "name": "@devopmaat/badaboom",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.0",
6
6
  "@angular/core": "^21.1.0",
7
7
  "@angular/material": "^21.1.0",
8
- "@angular/youtube-player": "^21.1.0"
8
+ "@angular/youtube-player": "^21.1.0",
9
+ "date-fns": "^4.1.0"
9
10
  },
10
11
  "dependencies": {
11
12
  "tslib": "^2.3.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';
@@ -102,6 +104,10 @@ interface BdbRequest {
102
104
  baseFilter?: string;
103
105
  filter?: BdbFilter;
104
106
  }
107
+ interface BdbRequestOptions {
108
+ fromPopState?: boolean;
109
+ replaceUrl?: boolean;
110
+ }
105
111
 
106
112
  interface BdbEntity {
107
113
  id: number;
@@ -225,10 +231,13 @@ interface DataSourceState {
225
231
  sortDirection?: 'asc' | 'desc';
226
232
  query?: string;
227
233
  }
228
- 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> {
229
235
  private destroyRef;
230
236
  private router;
231
237
  private route;
238
+ persistence: {
239
+ replaceUrl: boolean;
240
+ };
232
241
  get state(): Partial<TState>;
233
242
  set state(value: TState);
234
243
  isCurrentState(state: TState): boolean;
@@ -242,23 +251,22 @@ declare abstract class BdbDataSourceV2<TEntity extends BdbEntity, TState extends
242
251
  defaultSortDirection: 'asc' | 'desc';
243
252
  query?: string;
244
253
  private requestSubject;
245
- request$: Observable<BdbRequest>;
254
+ request$: Observable<[BdbRequest, BdbRequestOptions]>;
246
255
  private responseSubject;
247
256
  response$: Observable<BdbResponse<TEntity> | undefined>;
257
+ private dataSubject;
248
258
  private _loading;
249
259
  loading: i0.Signal<boolean>;
250
260
  private _error;
251
261
  error: i0.Signal<HttpErrorResponse | undefined>;
252
- get data(): readonly TEntity[];
253
262
  private _persistenceRead?;
254
263
  private _persistenceWrite?;
255
264
  private _identifier;
256
265
  get identifier(): string | undefined;
257
266
  set identifier(value: string | undefined);
258
267
  constructor();
259
- disconnect(): void;
260
- connect(): Observable<TEntity[] | readonly TEntity[]>;
261
- load(): void;
268
+ connect(): BehaviorSubject<TEntity[]>;
269
+ load(loadOptions?: BdbRequestOptions): void;
262
270
  abstract loadMethod(request: BdbRequest): Observable<BdbResponse<TEntity>>;
263
271
  createRequest(): BdbRequest;
264
272
  private setPersistence;
@@ -281,7 +289,7 @@ declare class BdbGridComponent<TEntityRead extends BdbEntity> {
281
289
  row: TEntityRead;
282
290
  }>;
283
291
  rowColor: i0.InputSignal<((x: TEntityRead) => BdbM3Palette) | undefined>;
284
- rowClick: EventEmitter<TEntityRead>;
292
+ rowClick: i0.OutputEmitterRef<TEntityRead>;
285
293
  filterDrawerOpen: any;
286
294
  filterDrawerOpened: i0.OutputEmitterRef<boolean>;
287
295
  onContextAction(action: BdbContextAction<TEntityRead>, row: TEntityRead): void;
@@ -459,8 +467,8 @@ declare class BdbSearchComponent<TEntityRead extends BdbEntityRead> implements C
459
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>;
460
468
  }
461
469
 
462
- declare class BdbTableV2Component<TEntity extends BdbEntity> {
463
- dataSource: i0.InputSignal<readonly TEntity[]>;
470
+ declare class BdbTableV2Component<TEntity> {
471
+ dataSource: i0.InputSignal<MatTableDataSource<TEntity, _angular_material_paginator.MatPaginator>>;
464
472
  columns: i0.InputSignal<BdbColumn<TEntity, unknown>[]>;
465
473
  displayedColumns: i0.InputSignal<string[]>;
466
474
  activeColumns: Signal<string[]>;
@@ -1501,4 +1509,4 @@ declare class ResetPasswordPageComponent implements OnInit {
1501
1509
  }
1502
1510
 
1503
1511
  export { AccessDeniedPageComponent, AuthContainerComponent, AuthService, BDB_OPTIONS, BdbAlertComponent, BdbAlertErrorResponseComponent, BdbAppLayoutComponent, BdbBooleanDisplayComponent, BdbCellDirective, BdbCollapseRowComponent, BdbColumnBuilder, BdbColumnType, BdbDataSource, BdbDataSourceV2, BdbEntityResolver, BdbErrorResponseDialogComponent, BdbFieldComponent, BdbFlexChildDirective, BdbFlexDirective, BdbFormDialogComponent, BdbFormErrorDirective, BdbFullTableComponent, BdbGridChildDirective, BdbGridComponent, BdbGridDirective, BdbMediaDisplayComponent, BdbMediaInputComponent, BdbMediaUploadComponent, BdbNavListComponent, BdbOptionsBuilder, BdbPageHeaderComponent, BdbPaginatorComponent, BdbPaginatorV2Component, BdbQueryInputComponent, BdbQueryInputV2Component, BdbSearchComponent, BdbSearchInputComponent, BdbSearchV2Component, BdbSearchWrapperBaseComponent, BdbService, BdbServiceCR, BdbServiceCRD, BdbServiceCRU, BdbServiceCRUD, BdbServiceR, BdbServiceRD, BdbServiceRU, BdbServiceRUD, BdbTableComponent, BdbTableV2Component, ExceptionLogService, ExceptionLogTableComponent, FileSizePipe, ForgotPasswordPageComponent, InvalidTokenPageComponent, LoginPageComponent, LogoutPageComponent, MediaDropDirective, MediaFullTableComponent, MediaService, MediaTableComponent, MediaType, MediaTypeIconPipe, MediaTypeMap, MediaTypePipe, PlainNumberPipe, ResetPasswordPageComponent, RoleService, SearchV2Base, TaskLogOutcome, TaskLogOutcomeMap, TaskLogOutcomePipe, TaskLogParameterService, TaskLogParameterType, TaskLogParameterValuePipe, TaskLogScheduleService, TaskLogSchedulerService, TaskLogService, TaskLogStatus, TaskLogStatusMap, TaskLogStatusPipe, TaskLogTypeService, UserRoleService, UserService, UserTableComponent, equalValueValidator, getAuthorizationHeaderFromToken, getTokenFromAuthorizationHeader, loggedOutGuard, provideBaDaBoom, resetPasswordResolver, roleGuard, tokenExpiredInterceptor, tokenInterceptor };
1504
- export type { AccountInfo, BbdEntitySettings, BdbBooleanColumnOptions, BdbColumn, BdbColumnOptions, BdbContextAction, BdbCurrencyColumnOptions, BdbDateColumnOptions, BdbEntity, BdbEntityRead, BdbEntityUpdate, BdbEnumColumnOptions, BdbFilter, BdbM3Palette, BdbNumberColumnOptions, BdbOptions, BdbOptionsConfigure, BdbPalette, BdbPercentageColumnOptions, BdbRequest, BdbResponse, BdbRoute, BdbStringColumnOptions, DataSourceState, ExceptionLog, ExceptionLogRead, ImageFile, Media, MediaPreview, ResetPasswordToken, Role, RoleRead, TaskLog, TaskLogCreate, TaskLogParameter, TaskLogParameterCreate, TaskLogParameterRead, TaskLogRead, TaskLogSchedule, TaskLogScheduleCreate, TaskLogScheduleRead, TaskLogScheduleUpdate, TaskLogType, TaskLogTypeParameter, TokenResponse, User, UserCreate, UserRead, UserRole, UserRoleCreate, UserRoleRead, UserUpdate };
1512
+ export type { AccountInfo, BbdEntitySettings, BdbBooleanColumnOptions, BdbColumn, BdbColumnOptions, BdbContextAction, BdbCurrencyColumnOptions, BdbDateColumnOptions, BdbEntity, BdbEntityRead, BdbEntityUpdate, BdbEnumColumnOptions, BdbFilter, BdbM3Palette, BdbNumberColumnOptions, BdbOptions, BdbOptionsConfigure, BdbPalette, BdbPercentageColumnOptions, BdbRequest, BdbRequestOptions, BdbResponse, BdbRoute, BdbStringColumnOptions, DataSourceState, ExceptionLog, ExceptionLogRead, ImageFile, Media, MediaPreview, ResetPasswordToken, Role, RoleRead, TaskLog, TaskLogCreate, TaskLogParameter, TaskLogParameterCreate, TaskLogParameterRead, TaskLogRead, TaskLogSchedule, TaskLogScheduleCreate, TaskLogScheduleRead, TaskLogScheduleUpdate, TaskLogType, TaskLogTypeParameter, TokenResponse, User, UserCreate, UserRead, UserRole, UserRoleCreate, UserRoleRead, UserUpdate };