@messaia/cdk 22.0.1-rc.9 → 22.0.1

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.
@@ -2,7 +2,7 @@ import * as i1 from '@angular/common';
2
2
  import { Location, DecimalPipe } from '@angular/common';
3
3
  import { HttpHeaders, HttpClient, HttpParams, HttpEvent, HttpInterceptor, HttpRequest, HttpHandler } from '@angular/common/http';
4
4
  import * as i0 from '@angular/core';
5
- import { ViewContainerRef, Provider, NgZone, EventEmitter, Type as Type$1, OnInit, AfterViewInit, ChangeDetectorRef, QueryList, ElementRef, Renderer2, ComponentRef, AfterViewChecked, TemplateRef, OnDestroy, OnChanges, SimpleChanges, AfterContentInit, EmbeddedViewRef, ModuleWithProviders, InjectionToken, DoCheck, PipeTransform } from '@angular/core';
5
+ import { ViewContainerRef, Provider, NgZone, EventEmitter, Type as Type$1, OnInit, AfterViewInit, ChangeDetectorRef, QueryList, ElementRef, Renderer2, ComponentRef, OnChanges, AfterViewChecked, OnDestroy, TemplateRef, SimpleChanges, AfterContentInit, EmbeddedViewRef, ModuleWithProviders, InjectionToken, DoCheck, PipeTransform } from '@angular/core';
6
6
  import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
7
7
  import { MatExpansionPanel } from '@angular/material/expansion';
8
8
  import { MatSnackBar, MatSnackBarRef, TextOnlySnackBar } from '@angular/material/snack-bar';
@@ -800,7 +800,9 @@ type ShowConfirmationDialog = (message: string, observable: Observable<any>, suc
800
800
  * @param options.inProgressMessage - Message displayed while the task is in progress.
801
801
  * @param options.successMessage - Message displayed on successful completion.
802
802
  * @param options.errorMessage - Message displayed if the task fails.
803
+ * @param options.showErrorDetails - Whether to display messages from the API error response.
803
804
  * @param options.successButtonText - Text for the success action button (e.g., "Download").
805
+ * @param options.retryButtonText - Enables manual retry after failure by re-subscribing to the task.
804
806
  * @param options.task - An Observable representing the asynchronous task to execute.
805
807
  * @param options.buttons - Optional array of dynamic buttons to display in the dialog.
806
808
  * @param options.successButtonClick - Callback triggered when the success button is clicked; receives the task result and dialog reference.
@@ -811,7 +813,9 @@ type ShowTaskDialog = <T>(options: {
811
813
  inProgressMessage: string;
812
814
  successMessage: string;
813
815
  errorMessage: string;
816
+ showErrorDetails?: boolean;
814
817
  successButtonText: string;
818
+ retryButtonText?: string;
815
819
  task: Observable<T>;
816
820
  buttons?: DialogButtonConfig<T>[];
817
821
  successButtonClick?: (result: T, dialogRef: any) => void;
@@ -3422,6 +3426,11 @@ declare class TableColumn<TEntity = any> {
3422
3426
  * @property
3423
3427
  */
3424
3428
  multiple?: boolean;
3429
+ /**
3430
+ * The property of the entity that this column represents.
3431
+ * @property
3432
+ */
3433
+ property?: string;
3425
3434
  /**
3426
3435
  * The name of the column.
3427
3436
  * @property
@@ -4048,7 +4057,11 @@ declare class Pagination<TModel> {
4048
4057
  }
4049
4058
 
4050
4059
  /**
4051
- * A generic datasource for data-table
4060
+ * @class TableDataSource
4061
+ * @description Provides a server-backed data source with filtering, sorting, pagination,
4062
+ * reloading, and row selection for an Angular Material table.
4063
+ * @template TEntity - The entity type displayed by the table.
4064
+ * @template TService - The service type used to retrieve entities.
4052
4065
  */
4053
4066
  declare class TableDataSource<TEntity, TService extends GenericService<TEntity>> extends DataSource<TEntity> {
4054
4067
  service: TService;
@@ -4056,240 +4069,304 @@ declare class TableDataSource<TEntity, TService extends GenericService<TEntity>>
4056
4069
  sorter?: MatSort | undefined;
4057
4070
  /**
4058
4071
  * @property _filterChange
4059
- * @description Represents a value that changes over time.
4060
- * Observers can subscribe to this BehaviorSubject to receive filter changes.
4072
+ * @description Stores and emits the current free-text filter.
4061
4073
  * @type {BehaviorSubject<string>}
4062
4074
  */
4063
4075
  private _filterChange;
4064
4076
  /**
4065
4077
  * @property _reloadChange
4066
- * @description Represents a value that triggers reload actions.
4067
- * It is used to notify when a reload should occur by emitting a new value.
4078
+ * @description Emits a new token whenever the table data must be reloaded.
4068
4079
  * @type {BehaviorSubject<number>}
4069
4080
  */
4070
4081
  _reloadChange: BehaviorSubject<number>;
4071
4082
  /**
4072
4083
  * @property onDataLoaded
4073
- * @description Event emitted after the data is loaded.
4074
- * It is a BehaviorSubject that holds pagination data or a null value if no data is loaded.
4084
+ * @description Emits the latest pagination response after data loads successfully.
4085
+ * The initial value is `null` until the first response is received.
4075
4086
  * @type {BehaviorSubject<Pagination<TEntity> | any>}
4076
4087
  */
4077
4088
  onDataLoaded: BehaviorSubject<Pagination<TEntity> | any>;
4078
4089
  /**
4079
4090
  * @property selectionModel
4080
- * @description Used to power selecting one or more options from a list.
4091
+ * @description Tracks entities across pages by non-null ID, falling back to reference
4092
+ * equality for entities without an ID.
4081
4093
  * @type {SelectionModel<TEntity>}
4082
4094
  */
4083
4095
  selectionModel: SelectionModel<TEntity>;
4084
4096
  /**
4085
4097
  * @property filter
4086
- * @description Gets the current filter applied to the data.
4098
+ * @description Gets the current free-text filter.
4087
4099
  * @type {string}
4088
4100
  */
4089
4101
  get filter(): string;
4090
4102
  /**
4091
4103
  * @property filter
4092
- * @description Sets the filter and resets the page index if the paginator exists.
4093
- * @param {string} filter - The filter value to be applied.
4104
+ * @description Sets the free-text filter and returns pagination to the first page.
4105
+ * @param {string} filter - The filter text to apply.
4094
4106
  */
4095
4107
  set filter(filter: string);
4096
4108
  /**
4097
4109
  * @property onSortChange
4098
- * @description Sort change event emitter used to notify changes in sorting.
4110
+ * @description Relays changes emitted by the assigned sort controller.
4099
4111
  * @type {EventEmitter<Sort>}
4100
4112
  */
4101
4113
  private onSortChange;
4102
4114
  /**
4103
4115
  * @property _sort
4104
- * @description Private instance of MatSort used to control the sorting of the table.
4105
- * @type {MatSort | null}
4116
+ * @description Stores the sort controller currently assigned to the data source.
4117
+ * @type {MatSort | undefined}
4106
4118
  */
4107
4119
  private _sort?;
4108
4120
  /**
4109
4121
  * @property sort
4110
- * @description Gets or sets the MatSort instance used to control the sorting of the table.
4111
- * Changes in sorting will trigger an update to the table’s rendered data.
4122
+ * @description Gets or sets the sort controller whose changes reload the table data.
4112
4123
  * @type {MatSort | undefined}
4113
4124
  */
4114
4125
  get sort(): MatSort | undefined;
4115
4126
  set sort(sort: MatSort | undefined);
4116
4127
  /**
4117
4128
  * @property reloadToken
4118
- * @description Gets the current reload token, used to trigger reload events.
4129
+ * @description Gets the token emitted by the most recent reload request.
4119
4130
  * @type {number}
4120
4131
  */
4121
4132
  get reloadToken(): number;
4122
4133
  /**
4123
4134
  * @property isConnected
4124
- * @description Flag indicating whether the data source is connected.
4135
+ * @description Indicates whether a collection viewer is connected to the data source.
4125
4136
  * @type {boolean}
4126
4137
  */
4127
4138
  isConnected: boolean;
4139
+ /**
4140
+ * Scope used by the dynamic table to remember this list's selection.
4141
+ */
4142
+ rememberSelectionKey?: string;
4128
4143
  /**
4129
4144
  * @property includes
4130
- * @description The list of navigations to be included in the data query.
4145
+ * @description Lists the related resources to include in each data request.
4131
4146
  * @type {Array<string>}
4132
4147
  */
4133
4148
  includes: Array<string>;
4134
4149
  /**
4135
4150
  * @property path
4136
- * @description The endpoint path for the data source.
4151
+ * @description Specifies the optional service endpoint path used to retrieve data.
4137
4152
  * @type {string | undefined}
4138
4153
  */
4139
4154
  path?: string;
4140
4155
  /**
4141
4156
  * @property projection
4142
- * @description Defines the fields to be included in the data query projection.
4157
+ * @description Specifies the fields requested from the service, either as a comma-separated
4158
+ * string or an array of field names.
4143
4159
  * @type {string | string[]}
4144
4160
  */
4145
4161
  projection: string | string[];
4146
4162
  /**
4147
4163
  * @property items
4148
- * @description The list of items to be displayed in the data table.
4164
+ * @description Contains the entities returned for the current page.
4149
4165
  * @type {TEntity[]}
4150
4166
  */
4151
4167
  items: TEntity[];
4152
4168
  /**
4153
4169
  * @property parameters
4154
- * @description The parameters for pagination and sorting.
4170
+ * @description Contains additional parameters returned by the latest data request.
4155
4171
  * @type {any}
4156
4172
  */
4157
4173
  parameters?: any;
4158
4174
  /**
4159
4175
  * @property facets
4160
- * @description The list of facets for filtering items.
4176
+ * @description Contains the facets returned by the latest data request.
4161
4177
  * @type {Facet[] | undefined}
4162
4178
  */
4163
4179
  facets?: Facet[];
4164
4180
  /**
4165
4181
  * @property fieldFilters
4166
- * @description A set of field filters applied to the data.
4182
+ * @description Contains mutable field filters applied to data requests.
4167
4183
  * @type {any}
4168
4184
  */
4169
4185
  fieldFilters: any;
4170
4186
  /**
4171
4187
  * @property fieldOperators
4172
- * @description A set of field operators used for filtering.
4188
+ * @description Contains operators associated with field-based filtering.
4173
4189
  * @type {any}
4174
4190
  */
4175
4191
  fieldOperators: any;
4176
4192
  /**
4177
4193
  * @property staticFieldFilters
4178
- * @description A set of static field filters applied to the data.
4194
+ * @description Contains persistent field filters applied to every data request.
4179
4195
  * @type {any}
4180
4196
  */
4181
4197
  staticFieldFilters: any;
4182
4198
  /**
4183
4199
  * @property pageIndex
4184
- * @description The current page index for pagination.
4200
+ * @description Stores the zero-based index of the current page.
4185
4201
  * @type {number}
4186
4202
  */
4187
4203
  pageIndex: number;
4188
4204
  /**
4189
4205
  * @property total
4190
- * @description The current total number of items being paged.
4206
+ * @description Stores the total number of entities reported by the service.
4191
4207
  * @type {number}
4192
4208
  */
4193
4209
  total: number;
4194
4210
  /**
4195
4211
  * @property pageSize
4196
- * @description The number of items displayed per page in the data-table.
4197
- * It controls how many records are shown on a single page.
4212
+ * @description Stores the number of entities requested per page.
4198
4213
  * @type {number}
4199
4214
  */
4200
4215
  pageSize: number;
4201
4216
  /**
4202
4217
  * @property pageCount
4203
- * @description The total number of pages based on pagination.
4218
+ * @description Stores the total number of pages reported by the service.
4204
4219
  * @type {number}
4205
4220
  */
4206
4221
  pageCount: number;
4207
4222
  /**
4208
4223
  * @property isLoading
4209
- * @description Flag to show the loading process when the data is being fetched.
4224
+ * @description Indicates whether a data request is currently in progress.
4210
4225
  * @type {boolean}
4211
4226
  */
4212
4227
  isLoading: boolean;
4213
4228
  /**
4214
4229
  * @constructor
4215
- * @description Initializes a new instance of the class and sets up the service, paginator, and sorter.
4216
- * The paginator and sorter are optional parameters used for handling pagination and sorting logic
4217
- * for the data displayed in the table.
4218
- * @param {TService} service - The service used for fetching and managing data.
4219
- * @param {MatPaginator} [paginator] - The paginator instance used for pagination functionality.
4220
- * @param {MatSort} [sorter] - The MatSort instance used for sorting functionality.
4230
+ * @description Creates a data source backed by the supplied service and optional Material
4231
+ * pagination and sorting controllers.
4232
+ * @param {TService} service - The service used to retrieve table data.
4233
+ * @param {MatPaginator} [paginator] - The controller used for server-side pagination.
4234
+ * @param {MatSort} [sorter] - The controller used for server-side sorting.
4221
4235
  */
4222
4236
  constructor(service: TService, paginator?: MatPaginator | undefined, sorter?: MatSort | undefined);
4223
4237
  /**
4224
- * Connects a collection viewer (such as a data-table) to this data source.
4225
- * @param _ The component that exposes a view over the data provided by this
4226
- * data source.
4227
- * @returns Observable that emits a new value when the data changes.
4238
+ * @method connect
4239
+ * @description Connects a collection viewer and reloads server data when sorting,
4240
+ * pagination, filtering, or the reload token changes.
4241
+ * @param {CollectionViewer} [_] - The viewer that consumes the emitted entities.
4242
+ * @returns {Observable<TEntity[]>} An observable that emits the current page of entities.
4228
4243
  */
4229
4244
  connect(_?: CollectionViewer): Observable<TEntity[]>;
4230
4245
  /**
4231
- * Disconnects a collection viewer (such as a data-table) from this data source. Can be used
4232
- * to perform any clean-up or tear-down operations when a view is being destroyed.
4233
- *
4234
- * @param _ The component that exposes a view over the data provided by this
4235
- * data source.
4246
+ * @method disconnect
4247
+ * @description Marks the data source as disconnected from its collection viewer.
4248
+ * @param {CollectionViewer} _ - The viewer that no longer consumes this data source.
4249
+ * @returns {void}
4236
4250
  */
4237
4251
  disconnect(_: CollectionViewer): void;
4238
4252
  /**
4239
- * Reloads items
4240
- * @param clearSelection
4253
+ * @method reload
4254
+ * @description Requests fresh data and optionally clears the current row selection.
4255
+ * @param {boolean} [clearSelection=true] - Whether to clear selected entities.
4256
+ * @returns {void}
4241
4257
  */
4242
4258
  reload(clearSelection?: boolean): void;
4243
4259
  /**
4244
- * Clears field filters
4260
+ * @method applyFilters
4261
+ * @description Replaces the mutable field filters and requests fresh data.
4262
+ * @param {any} [newFilters={}] - The field filters to apply.
4263
+ * @returns {void}
4245
4264
  */
4246
4265
  applyFilters(newFilters?: any): void;
4247
4266
  /**
4248
- * Clears field filters
4267
+ * @method clearFilters
4268
+ * @description Resets mutable field filters to the supplied object, or to an empty object
4269
+ * when no replacement is supplied, and requests fresh data.
4270
+ * @param {any} [newFilters={}] - Optional field filters retained after the reset.
4271
+ * @returns {void}
4249
4272
  */
4250
4273
  clearFilters(newFilters?: any): void;
4251
4274
  /**
4252
- * Checks, whether all items are selected
4275
+ * @method isAllSelected
4276
+ * @description Determines whether the selected entity count matches the total entity count.
4277
+ * An empty selection is never considered complete.
4278
+ * @returns {boolean} `true` when every reported entity is selected; otherwise, `false`.
4253
4279
  */
4254
4280
  isAllSelected(): boolean;
4255
4281
  /**
4256
- * Toggles selected items
4257
- * @param checkbox
4258
- * @param predicate
4282
+ * @method toggleSelect
4283
+ * @description Clears an existing selection or selects each unlocked entity on the current
4284
+ * page that satisfies the optional predicate.
4285
+ * @param {MatCheckboxChange} checkbox - The select-all checkbox change event.
4286
+ * @param {(value: TEntity, index: number, array: TEntity[]) => unknown} [predicate] - Optional
4287
+ * condition used to choose selectable entities.
4288
+ * @returns {void}
4259
4289
  */
4260
4290
  toggleSelect(checkbox: MatCheckboxChange, predicate?: (value: TEntity, index: number, array: TEntity[]) => unknown): void;
4261
4291
  /**
4262
- * Get selected Items
4292
+ * @property getSelected
4293
+ * @description Maps selected entities to the values stored under the specified property key.
4294
+ * @template TType - The expected property value type.
4295
+ * @param {string} key - The entity property key to read.
4296
+ * @returns {TType[]} The selected property values.
4263
4297
  */
4264
4298
  getSelected: <TType>(key: string) => TType[];
4265
4299
  /**
4266
- * Get selected Items
4300
+ * @property getSelectedItems
4301
+ * @description Gets all currently selected entities.
4302
+ * @returns {TEntity[]} The selected entities.
4303
+ */
4304
+ getSelectedItems: () => TEntity[];
4305
+ /**
4306
+ * @property getSelectedIds
4307
+ * @description Gets the numeric identifiers of all selected entities.
4308
+ * @returns {number[]} The selected entity identifiers.
4267
4309
  */
4268
4310
  getSelectedIds: () => number[];
4269
4311
  }
4270
4312
 
4271
- declare class VdDynamicTableComponent implements OnInit, AfterViewChecked {
4313
+ declare class VdDynamicTableComponent implements OnChanges, OnInit, AfterViewChecked, OnDestroy {
4272
4314
  private dynamicBuilder;
4273
4315
  private changeDetector;
4274
4316
  /**
4275
4317
  * Reference to the table component, used for accessing MatTable functionalities.
4318
+ * @type {MatTable<any> | undefined}
4276
4319
  */
4277
4320
  table?: MatTable<any>;
4278
4321
  /**
4279
4322
  * References to the container elements for detail templates, with ViewContainerRef
4280
4323
  * allowing dynamic insertion of views.
4324
+ * @type {QueryList<any> | undefined}
4281
4325
  */
4282
4326
  detailsTemplateRef?: QueryList<any>;
4283
4327
  /**
4284
4328
  * Reference to a content child template (details template) of type TemplateRef,
4285
4329
  * used for rendering custom templates in the table.
4330
+ * @type {TemplateRef<any> | undefined}
4286
4331
  */
4287
4332
  templateRef?: TemplateRef<any>;
4288
4333
  /**
4289
4334
  * Data source for the table, which can either be a custom TableDataSource
4290
4335
  * implementation or a dynamic object.
4336
+ * @type {TableDataSource<any, any> | any}
4291
4337
  */
4292
4338
  dataSource: TableDataSource<any, any> | any;
4339
+ /**
4340
+ * Overrides the selection scope inferred from the table definition or data source.
4341
+ * Use a distinct key for each table and record scope.
4342
+ * @type {string | undefined}
4343
+ */
4344
+ rememberSelectionKey?: string;
4345
+ /**
4346
+ * The currently active selection key, used for remembering selection across navigation.
4347
+ * @type {string | undefined}
4348
+ */
4349
+ private readonly route;
4350
+ /**
4351
+ * The table definition object, which contains metadata and configuration for the table.
4352
+ * @type {TableDefinition | undefined}
4353
+ */
4354
+ private tableDefinition?;
4355
+ /**
4356
+ * Indicates whether the table should remember selection across navigation.
4357
+ * @type {string | undefined}
4358
+ */
4359
+ protected activeSelectionKey?: string;
4360
+ /**
4361
+ * Stores the remembered table rows for persisting selection across navigation.
4362
+ * @type {Map<string, any>}
4363
+ */
4364
+ private readonly rememberedTableRows;
4365
+ /**
4366
+ * Subscription for tracking selection changes in the table.
4367
+ * @type {Subscription | undefined}
4368
+ */
4369
+ private selectionSubscription?;
4293
4370
  /**
4294
4371
  * Input data for the table, which is set as a static data source.
4295
4372
  * This method also initializes sorting and pagination for the table.
@@ -4483,6 +4560,10 @@ declare class VdDynamicTableComponent implements OnInit, AfterViewChecked {
4483
4560
  * Observable tracking the filterable columns displayed in the table.
4484
4561
  */
4485
4562
  displayedFilterColumns$?: Observable<string[]>;
4563
+ /**
4564
+ * Name of the last visible sticky-start column used as right boundary marker.
4565
+ */
4566
+ lastStickyStartColumnName?: string;
4486
4567
  /**
4487
4568
  * Input property for row-specific action menu items.
4488
4569
  * Defines actions available in the context menu for each row.
@@ -4543,6 +4624,11 @@ declare class VdDynamicTableComponent implements OnInit, AfterViewChecked {
4543
4624
  * @param changeDetector Service for detecting and triggering UI changes.
4544
4625
  */
4545
4626
  constructor(dynamicBuilder: DynamicBuilder, changeDetector: ChangeDetectorRef);
4627
+ /**
4628
+ * Lifecycle hook that is called when any data-bound property of a directive changes.
4629
+ * @param changes - An object of key/value pairs for the changed properties.
4630
+ */
4631
+ ngOnChanges(changes: SimpleChanges<VdDynamicTableComponent>): void;
4546
4632
  /**
4547
4633
  * A callback method that is invoked immediately after the
4548
4634
  * default change detector has checked the directive's
@@ -4570,10 +4656,21 @@ declare class VdDynamicTableComponent implements OnInit, AfterViewChecked {
4570
4656
  trackBy(index: number, item: any): string;
4571
4657
  /**
4572
4658
  * A function to to compute the identity of items in an iterable.
4573
- * @param index
4574
- * @param item
4659
+ * @param index The index of the column in the array
4660
+ * @param item The column item itself
4575
4661
  */
4576
4662
  columnsTrackBy(index: number, item: any): string;
4663
+ /**
4664
+ * Checks if the given column is the last sticky start column
4665
+ * @param column The column to check
4666
+ * @returns True if it is the last sticky start column, false otherwise
4667
+ */
4668
+ isLastStickyStartColumn(column: TableColumn): boolean;
4669
+ /**
4670
+ * Updates the name of the last sticky start column based on the current visible columns.
4671
+ * @param columns The array of table columns to evaluate.
4672
+ */
4673
+ private updateLastStickyStartColumnName;
4577
4674
  /**
4578
4675
  * Handles row click event
4579
4676
  * @param index
@@ -4665,8 +4762,13 @@ declare class VdDynamicTableComponent implements OnInit, AfterViewChecked {
4665
4762
  * for a component's view.
4666
4763
  */
4667
4764
  ngAfterViewChecked(): void;
4765
+ /**
4766
+ * Lifecycle hook that is called when the directive is destroyed.
4767
+ * It is used to clean up any resources, such as subscriptions.
4768
+ */
4769
+ ngOnDestroy(): void;
4668
4770
  static ɵfac: i0.ɵɵFactoryDeclaration<VdDynamicTableComponent, never>;
4669
- static ɵcmp: i0.ɵɵComponentDeclaration<VdDynamicTableComponent, "vd-dynamic-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "data": { "alias": "data"; "required": false; }; "parentControl": { "alias": "parentControl"; "required": false; }; "entityObject": { "alias": "entityObject"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "debugValue": { "alias": "debugValue"; "required": false; }; "classType": { "alias": "classType"; "required": false; }; "context": { "alias": "context"; "required": false; }; "dataSourceFilter": { "alias": "dataSourceFilter"; "required": false; }; "static": { "alias": "static"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "tableWidth": { "alias": "tableWidth"; "required": false; }; "useFilterOperator": { "alias": "useFilterOperator"; "required": false; }; "paginable": { "alias": "paginable"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "sortActive": { "alias": "sortActive"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "stickyFilter": { "alias": "stickyFilter"; "required": false; }; "columnSets": { "alias": "columnSets"; "required": false; }; "rowNgClass": { "alias": "rowNgClass"; "required": false; }; "detailsTemplate": { "alias": "detailsTemplate"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "selectAllFilter": { "alias": "selectAllFilter"; "required": false; }; "paginatorRef": { "alias": "paginatorRef"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowMenuItems": { "alias": "rowMenuItems"; "required": false; }; "rowAction": { "alias": "rowAction"; "required": false; }; "excludedColumns": { "alias": "excludedColumns"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "rowClick": "rowClick"; }, ["templateRef"], ["[table-footer]"], true, never>;
4771
+ static ɵcmp: i0.ɵɵComponentDeclaration<VdDynamicTableComponent, "vd-dynamic-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "rememberSelectionKey": { "alias": "rememberSelectionKey"; "required": false; }; "data": { "alias": "data"; "required": false; }; "parentControl": { "alias": "parentControl"; "required": false; }; "entityObject": { "alias": "entityObject"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "debugValue": { "alias": "debugValue"; "required": false; }; "classType": { "alias": "classType"; "required": false; }; "context": { "alias": "context"; "required": false; }; "dataSourceFilter": { "alias": "dataSourceFilter"; "required": false; }; "static": { "alias": "static"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "tableWidth": { "alias": "tableWidth"; "required": false; }; "useFilterOperator": { "alias": "useFilterOperator"; "required": false; }; "paginable": { "alias": "paginable"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "sortActive": { "alias": "sortActive"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "stickyFilter": { "alias": "stickyFilter"; "required": false; }; "columnSets": { "alias": "columnSets"; "required": false; }; "rowNgClass": { "alias": "rowNgClass"; "required": false; }; "detailsTemplate": { "alias": "detailsTemplate"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "selectAllFilter": { "alias": "selectAllFilter"; "required": false; }; "paginatorRef": { "alias": "paginatorRef"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowMenuItems": { "alias": "rowMenuItems"; "required": false; }; "rowAction": { "alias": "rowAction"; "required": false; }; "excludedColumns": { "alias": "excludedColumns"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "rowClick": "rowClick"; }, ["templateRef"], ["[table-footer]"], true, never>;
4670
4772
  }
4671
4773
 
4672
4774
  interface IGenericListComponent<TEntity extends IEntity | any> extends IBaseComponent {
@@ -5130,11 +5232,12 @@ declare abstract class GenericListComponent<TEntity extends IEntity | any, TServ
5130
5232
  */
5131
5233
  add(): void;
5132
5234
  /**
5133
- * Navigates to the edit page.
5235
+ * Navigates to the edit page for the specified entity.
5134
5236
  * @param entity - The entity to be edited.
5135
5237
  * @param context - Additional context data.
5238
+ * @param returnToCurrentRoute - Whether to return to the current route after editing.
5136
5239
  */
5137
- edit(entity?: TEntity, context?: any): void;
5240
+ edit(entity?: TEntity, context?: any, returnToCurrentRoute?: boolean): void;
5138
5241
  /**
5139
5242
  * Patches the entity
5140
5243
  * Patches the entity
@@ -5334,7 +5437,7 @@ declare abstract class GenericListComponent<TEntity extends IEntity | any, TServ
5334
5437
  */
5335
5438
  get [Symbol.toStringTag](): string;
5336
5439
  static ɵfac: i0.ɵɵFactoryDeclaration<GenericListComponent<any, any>, never>;
5337
- static ɵdir: i0.ɵɵDirectiveDeclaration<GenericListComponent<any, any>, never, never, { "backButton": { "alias": "backButton"; "required": false; }; }, {}, never, never, true, never>;
5440
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GenericListComponent<any, any>, never, never, { "columnSets": { "alias": "columnSets"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "addable": { "alias": "addable"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "deletable": { "alias": "deletable"; "required": false; }; "downloadable": { "alias": "downloadable"; "required": false; }; "duplicable": { "alias": "duplicable"; "required": false; }; "configurable": { "alias": "configurable"; "required": false; }; "exportable": { "alias": "exportable"; "required": false; }; "exportFileName": { "alias": "exportFileName"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "backButton": { "alias": "backButton"; "required": false; }; }, {}, never, never, true, never>;
5338
5441
  }
5339
5442
 
5340
5443
  /**
@@ -5988,6 +6091,11 @@ declare class FormFieldDefinition<TEntity = any, TProperty = any> {
5988
6091
  * Defaults to true.
5989
6092
  */
5990
6093
  defaultOption?: boolean;
6094
+ /**
6095
+ * Predicate used to resolve the default option(s) from loaded options.
6096
+ * Return true for the option(s) that should be preselected.
6097
+ */
6098
+ default?: (option: any) => boolean;
5991
6099
  /**
5992
6100
  * Template function for rendering options in the selection.
5993
6101
  * @param x The current property value.
@@ -5996,6 +6104,14 @@ declare class FormFieldDefinition<TEntity = any, TProperty = any> {
5996
6104
  * @param ctx The context of the generic form component.
5997
6105
  */
5998
6106
  optionTemplate?: (x: TProperty, y?: TEntity, f?: FormGroup, ctx?: IGenericFormBaseComponent<TEntity>) => any;
6107
+ /**
6108
+ * Property name in the option object used as the option group label.
6109
+ */
6110
+ optionGroupProperty?: string;
6111
+ /**
6112
+ * Whether the option group label is appended in parentheses to built-in trigger text.
6113
+ */
6114
+ showOptionGroupInTrigger: boolean;
5999
6115
  /**
6000
6116
  * Property name in the option object for displaying text.
6001
6117
  * Used to specify which property shows as the option's text.
@@ -6309,13 +6425,29 @@ declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TServic
6309
6425
  */
6310
6426
  SaveAction: typeof SaveAction;
6311
6427
  /**
6312
- * Navigation routes.
6428
+ * The route to navigate to after saving and editing the form.
6313
6429
  */
6314
6430
  editSaveAndCloseRoute: string;
6431
+ /**
6432
+ * The route to navigate to after saving and adding a new form.
6433
+ */
6315
6434
  addSaveAndCloseRoute: string;
6435
+ /**
6436
+ * The route to navigate to after saving and editing the form.
6437
+ */
6316
6438
  addSaveAndEditRoute: string;
6439
+ /**
6440
+ * The route to navigate to after saving and creating a new form.
6441
+ */
6317
6442
  addSaveAndNewRoute: string;
6443
+ /**
6444
+ * The route to navigate to after saving and closing the form.
6445
+ */
6318
6446
  listRoute: string;
6447
+ /**
6448
+ * The toolbar Back destination, preferring the decoded return URL over the list route.
6449
+ */
6450
+ get backNavigationRoute(): string;
6319
6451
  /**
6320
6452
  * The ID of the item to load.
6321
6453
  */
@@ -8559,6 +8691,10 @@ declare class TaskDialogData<TResult> {
8559
8691
  * @type {string}
8560
8692
  */
8561
8693
  errorMessage?: string;
8694
+ /**
8695
+ * Opts in to displaying API error messages alongside the task's failure message.
8696
+ */
8697
+ showErrorDetails?: boolean;
8562
8698
  /**
8563
8699
  * Content of the dialog, usually descriptive text
8564
8700
  * @type {string}
@@ -8609,6 +8745,10 @@ declare class TaskDialogData<TResult> {
8609
8745
  * @type {string}
8610
8746
  */
8611
8747
  successButtonText?: string;
8748
+ /**
8749
+ * Label for the manual retry button shown after failure. The task must support re-subscription.
8750
+ */
8751
+ retryButtonText?: string;
8612
8752
  /**
8613
8753
  * Callback function to execute on success button click
8614
8754
  * @type {Function}
@@ -8626,14 +8766,24 @@ declare class TaskDialogData<TResult> {
8626
8766
  constructor(init?: Partial<TaskDialogData<TResult>>);
8627
8767
  }
8628
8768
 
8629
- declare class VdTaskDialogComponent implements AfterViewInit, OnDestroy {
8769
+ declare class VdTaskDialogComponent implements OnInit, OnDestroy {
8630
8770
  private dialogRef;
8631
8771
  protected data: TaskDialogData<any>;
8772
+ /**
8773
+ * Marks the dialog for a view update when an asynchronous task succeeds or fails.
8774
+ * @type {ChangeDetectorRef}
8775
+ */
8776
+ private readonly changeDetector;
8632
8777
  /**
8633
8778
  * The message content displayed within the dialog.
8634
8779
  * @type {string | undefined}
8635
8780
  */
8636
8781
  content?: string;
8782
+ /**
8783
+ * User-facing API messages for the current attempt, populated only when enabled.
8784
+ * @type {string[]}
8785
+ */
8786
+ protected errorDetails: string[];
8637
8787
  /**
8638
8788
  * The result of the task, if available.
8639
8789
  * @type {any}
@@ -8661,10 +8811,23 @@ declare class VdTaskDialogComponent implements AfterViewInit, OnDestroy {
8661
8811
  */
8662
8812
  constructor(dialogRef: MatDialogRef<VdTaskDialogComponent>, data: TaskDialogData<any>);
8663
8813
  /**
8664
- * Lifecycle hook after view initialization.
8665
- * Subscribes to the task observable and handles success or error callbacks.
8814
+ * Starts the first attempt before Angular checks the task state in the view.
8666
8815
  */
8667
- ngAfterViewInit(): void;
8816
+ ngOnInit(): void;
8817
+ /**
8818
+ * Retry is opt-in and shown only after a failure. Cancel also ends the in-progress state,
8819
+ * so check that the dialog is still open before offering Retry.
8820
+ */
8821
+ get canRetry(): boolean;
8822
+ /**
8823
+ * Re-subscribes to the task without reopening the dialog. Recheck eligibility here
8824
+ * so a second click cannot start an overlapping attempt before the button disappears.
8825
+ */
8826
+ retry(): void;
8827
+ /**
8828
+ * Executes the task and manages its state, including in-progress, success, and error handling.
8829
+ */
8830
+ private runTask;
8668
8831
  /**
8669
8832
  * Cancels the task and closes the dialog without any result.
8670
8833
  */
@@ -11755,7 +11918,7 @@ declare class MatSelectRequiredDirective implements DoCheck {
11755
11918
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectRequiredDirective, "mat-select[formControl]:not([required]), mat-select[formControlName]:not([required])", never, {}, {}, never, never, true, never>;
11756
11919
  }
11757
11920
 
11758
- declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T> implements OnInit {
11921
+ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T> implements OnInit, OnDestroy {
11759
11922
  /**
11760
11923
  * @property _endpointChange
11761
11924
  * @description A BehaviorSubject that tracks changes to the endpoint data.
@@ -11768,6 +11931,12 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
11768
11931
  * @type {BehaviorSubject<any[]>}
11769
11932
  */
11770
11933
  private _enumChange;
11934
+ /**
11935
+ * @property destroy$
11936
+ * @description Subject used to dispose subscriptions when the component is destroyed.
11937
+ * @type {Subject<void>}
11938
+ */
11939
+ private readonly destroy$;
11771
11940
  /**
11772
11941
  * @property _http
11773
11942
  * @description The HTTP client service used to fetch data from an API.
@@ -11795,9 +11964,9 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
11795
11964
  /**
11796
11965
  * @property _endpoint
11797
11966
  * @description The API endpoint or a function returning the endpoint URL.
11798
- * @type {string | Function | undefined}
11967
+ * @type {string | URL | Function | undefined}
11799
11968
  */
11800
- protected _endpoint?: string | Function;
11969
+ protected _endpoint?: string | URL | Function;
11801
11970
  /**
11802
11971
  * @property _params
11803
11972
  * @description Parameters to be sent with the API request.
@@ -11822,6 +11991,12 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
11822
11991
  * @type {Function | undefined}
11823
11992
  */
11824
11993
  protected _enumFilter?: Function;
11994
+ /**
11995
+ * @property _default
11996
+ * @description A predicate that identifies default option(s) after options are loaded.
11997
+ * @type {((x: any) => boolean) | undefined}
11998
+ */
11999
+ protected _default?: (x: any) => boolean;
11825
12000
  /**
11826
12001
  * @property _compareWith
11827
12002
  * @description A function to compare option values with the selected values.
@@ -11962,10 +12137,10 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
11962
12137
  /**
11963
12138
  * @property endpoint
11964
12139
  * @description The API endpoint or a function returning the endpoint URL.
11965
- * @type {string | Function | undefined}
12140
+ * @type {string | URL | Function | undefined}
11966
12141
  */
11967
- get endpoint(): string | Function | undefined;
11968
- set endpoint(endpoint: string | Function);
12142
+ get endpoint(): string | URL | Function | undefined;
12143
+ set endpoint(endpoint: string | URL | Function);
11969
12144
  /**
11970
12145
  * @property params
11971
12146
  * @description Parameters to be sent with the API request.
@@ -11994,6 +12169,13 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
11994
12169
  */
11995
12170
  get enumFilter(): Function | undefined;
11996
12171
  set enumFilter(enumFilter: Function);
12172
+ /**
12173
+ * @property default
12174
+ * @description A predicate used to select default option(s) from loaded options.
12175
+ * @type {((x: any) => boolean) | undefined}
12176
+ */
12177
+ get default(): ((x: any) => boolean) | undefined;
12178
+ set default(defaultFn: ((x: any) => boolean) | undefined);
11997
12179
  /**
11998
12180
  * @property disabled
11999
12181
  * @description Whether the control is disabled.
@@ -12062,10 +12244,15 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
12062
12244
  */
12063
12245
  constructor(controlType: string);
12064
12246
  /**
12065
- * Lifecycle hook that is called after a component's
12066
- * view has been fully initialized.
12247
+ * @description Initializes option sources and runtime subscriptions.
12248
+ * For enum-driven controls, metadata is recalculated on parent form changes
12249
+ * so hide and disable callbacks always use the latest form state.
12067
12250
  */
12068
12251
  ngOnInit(): void;
12252
+ /**
12253
+ * Disposes runtime subscriptions and delegates common form-field cleanup.
12254
+ */
12255
+ ngOnDestroy(): void;
12069
12256
  /**
12070
12257
  * From ControlValueAccessor interface
12071
12258
  * @param value
@@ -12096,6 +12283,17 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
12096
12283
  * @returns An array of filtered options that match the given value.
12097
12284
  */
12098
12285
  protected filterValue(value: any): any[] | undefined;
12286
+ /**
12287
+ * @description Normalizes endpoint payloads to a safe array for template iteration.
12288
+ * @param source Raw payload from endpoint or mapper.
12289
+ * @returns {any[]} Iterable options array.
12290
+ */
12291
+ protected normalizeOptions(source: any): any[];
12292
+ /**
12293
+ * @description Applies default option selection when a default predicate is configured.
12294
+ * @returns {void}
12295
+ */
12296
+ protected applyDefaultSelection(): void;
12099
12297
  /**
12100
12298
  * Trigger endpoint changed
12101
12299
  */
@@ -12104,6 +12302,11 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
12104
12302
  * Trigger enum changed
12105
12303
  */
12106
12304
  protected enumChanged(): void;
12305
+ /**
12306
+ * @description Builds enum options from metadata and then applies runtime enum filters.
12307
+ * @returns {void}
12308
+ */
12309
+ protected rebuildEnumOptions(): void;
12107
12310
  /**
12108
12311
  * Log to console
12109
12312
  * @param message
@@ -12111,7 +12314,7 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
12111
12314
  */
12112
12315
  log(message: any, ...optionalParams: any[]): void;
12113
12316
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelectFormField<any>, never>;
12114
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelectFormField<any>, never, never, { "enum": { "alias": "enum"; "required": false; }; "enumMetadata": { "alias": "enumMetadata"; "required": false; }; "textPrefix": { "alias": "textPrefix"; "required": false; }; "optionTextProperty": { "alias": "optionTextProperty"; "required": false; }; "optionValueProperty": { "alias": "optionValueProperty"; "required": false; }; "matIconKey": { "alias": "matIconKey"; "required": false; }; "svgIconKey": { "alias": "svgIconKey"; "required": false; }; "fontSet": { "alias": "fontSet"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "options": { "alias": "options"; "required": false; }; "filteredOptions": { "alias": "filteredOptions"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "cache": { "alias": "cache"; "required": false; }; "selectFirst": { "alias": "selectFirst"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; "optionIcon": { "alias": "optionIcon"; "required": false; }; "defaultOption": { "alias": "defaultOption"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "sorted": { "alias": "sorted"; "required": false; }; "endpoint": { "alias": "endpoint"; "required": false; }; "params": { "alias": "params"; "required": false; }; "projection": { "alias": "projection"; "required": false; }; "loadData": { "alias": "loadData"; "required": false; }; "enumFilter": { "alias": "enumFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "context": { "alias": "context"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; }, { "onValueChange": "change"; "onItemChange": "itemChange"; "onSelected": "selected"; "onItemSelected": "itemSelected"; "onLaunch": "launch"; }, never, never, true, never>;
12317
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelectFormField<any>, never, never, { "enum": { "alias": "enum"; "required": false; }; "enumMetadata": { "alias": "enumMetadata"; "required": false; }; "textPrefix": { "alias": "textPrefix"; "required": false; }; "optionTextProperty": { "alias": "optionTextProperty"; "required": false; }; "optionValueProperty": { "alias": "optionValueProperty"; "required": false; }; "matIconKey": { "alias": "matIconKey"; "required": false; }; "svgIconKey": { "alias": "svgIconKey"; "required": false; }; "fontSet": { "alias": "fontSet"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "options": { "alias": "options"; "required": false; }; "filteredOptions": { "alias": "filteredOptions"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "cache": { "alias": "cache"; "required": false; }; "selectFirst": { "alias": "selectFirst"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; "optionIcon": { "alias": "optionIcon"; "required": false; }; "defaultOption": { "alias": "defaultOption"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "sorted": { "alias": "sorted"; "required": false; }; "endpoint": { "alias": "endpoint"; "required": false; }; "params": { "alias": "params"; "required": false; }; "projection": { "alias": "projection"; "required": false; }; "loadData": { "alias": "loadData"; "required": false; }; "enumFilter": { "alias": "enumFilter"; "required": false; }; "default": { "alias": "default"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "context": { "alias": "context"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; }, { "onValueChange": "change"; "onItemChange": "itemChange"; "onSelected": "selected"; "onItemSelected": "itemSelected"; "onLaunch": "launch"; }, never, never, true, never>;
12115
12318
  }
12116
12319
 
12117
12320
  /**
@@ -12155,6 +12358,14 @@ declare class VdSelectComponent extends AbstractSelectFormField<any> implements
12155
12358
  * Reference to the filter input element.
12156
12359
  */
12157
12360
  filterInput?: ElementRef;
12361
+ /**
12362
+ * Property whose value is used as the option group label.
12363
+ */
12364
+ optionGroupProperty?: string;
12365
+ /**
12366
+ * Whether the option group label is appended to built-in trigger text.
12367
+ */
12368
+ showOptionGroupInTrigger: boolean;
12158
12369
  /**
12159
12370
  * CSS class applied to the trigger element.
12160
12371
  */
@@ -12166,6 +12377,29 @@ declare class VdSelectComponent extends AbstractSelectFormField<any> implements
12166
12377
  * @returns The display values of the selected options
12167
12378
  */
12168
12379
  get triggerValues(): any[];
12380
+ /**
12381
+ * Gets the group label for an option.
12382
+ *
12383
+ * @param option The option whose group label should be resolved
12384
+ * @returns The resolved group label
12385
+ */
12386
+ getOptionGroupLabel(option: any): string;
12387
+ /**
12388
+ * Gets the text displayed for an option in the built-in trigger.
12389
+ *
12390
+ * @param option The selected option
12391
+ * @returns The option text with its optional group label
12392
+ */
12393
+ getOptionTriggerLabel(option: any): string;
12394
+ /**
12395
+ * Gets the filtered options grouped by their configured group property.
12396
+ *
12397
+ * @returns The ordered option groups
12398
+ */
12399
+ get optionGroups(): {
12400
+ label: string;
12401
+ options: any[];
12402
+ }[];
12169
12403
  /**
12170
12404
  * Retrieves the currently selected options from the filtered options.
12171
12405
  * If multiple options are selected, returns them as an array.
@@ -12213,7 +12447,7 @@ declare class VdSelectComponent extends AbstractSelectFormField<any> implements
12213
12447
  */
12214
12448
  handleFilter($event?: Event): void;
12215
12449
  static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectComponent, never>;
12216
- static ɵcmp: i0.ɵɵComponentDeclaration<VdSelectComponent, "vd-select", never, { "triggerCssClass": { "alias": "triggerCssClass"; "required": false; }; }, {}, ["optionTemplate", "triggerTemplate"], never, true, never>;
12450
+ static ɵcmp: i0.ɵɵComponentDeclaration<VdSelectComponent, "vd-select", never, { "optionGroupProperty": { "alias": "optionGroupProperty"; "required": false; }; "showOptionGroupInTrigger": { "alias": "showOptionGroupInTrigger"; "required": false; }; "triggerCssClass": { "alias": "triggerCssClass"; "required": false; }; }, {}, ["optionTemplate", "triggerTemplate"], never, true, never>;
12217
12451
  }
12218
12452
 
12219
12453
  /**
@@ -14402,6 +14636,13 @@ declare class TableDefinition<T = any> {
14402
14636
  * @type {boolean}
14403
14637
  */
14404
14638
  selectable?: boolean;
14639
+ /**
14640
+ * @property rememberSelection
14641
+ * @description Restores selected rows in server-backed tables when returning to a list.
14642
+ * Defaults to `false`.
14643
+ * @type {boolean}
14644
+ */
14645
+ rememberSelection: boolean;
14405
14646
  /**
14406
14647
  * @property addable
14407
14648
  * @description Flag to indicate if new items can be added to the table.
@@ -14519,27 +14760,37 @@ declare class TableDefinition<T = any> {
14519
14760
 
14520
14761
  /**
14521
14762
  * Class decorator to define a table with its configuration.
14522
- * @param tableDefinition Optional partial table definition to customize the table's behavior and appearance.
14763
+ * @param tableDefinition Optional table settings, including `rememberSelection` to restore selected rows on navigation.
14523
14764
  * @returns A function that takes the target class and applies the table definition metadata.
14524
14765
  */
14525
14766
  declare function Table<T = any>(tableDefinition?: Partial<TableDefinition<T>>): Function;
14526
14767
 
14527
14768
  declare class DataSourceFilterDirective implements OnInit {
14528
14769
  /**
14529
- * DataSource instance
14770
+ * The table data source to which the filter will be applied.
14771
+ * @type {TableDataSource<any, any>}
14530
14772
  */
14531
14773
  dataSource?: TableDataSource<any, any>;
14774
+ /**
14775
+ * Keeps restored rows selected on the initial load.
14776
+ * Later filter changes still clear the selection.
14777
+ * @type {boolean}
14778
+ */
14779
+ preserveInitialSelection: boolean;
14532
14780
  /**
14533
14781
  * Represents a value that changes over time.
14534
14782
  * Observers can subscribe to the subject to receive filter changes
14783
+ * @type {BehaviorSubject<any>}
14535
14784
  */
14536
14785
  private _queryChange;
14537
14786
  /**
14538
- * Sets query
14787
+ * Sets the filter query for the data source.
14788
+ * @param query The filter query to apply to the data source.
14539
14789
  */
14540
14790
  set dataSourceFilter(query: any);
14541
14791
  /**
14542
- * Gets query
14792
+ * Gets the current filter query for the data source.
14793
+ * @returns The current filter query.
14543
14794
  */
14544
14795
  get dataSourceFilter(): any;
14545
14796
  /**
@@ -14547,7 +14798,7 @@ declare class DataSourceFilterDirective implements OnInit {
14547
14798
  */
14548
14799
  ngOnInit(): void;
14549
14800
  static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceFilterDirective, never>;
14550
- static ɵdir: i0.ɵɵDirectiveDeclaration<DataSourceFilterDirective, "[dataSourceFilter]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "dataSourceFilter": { "alias": "dataSourceFilter"; "required": false; }; }, {}, never, never, true, never>;
14801
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataSourceFilterDirective, "[dataSourceFilter]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "preserveInitialSelection": { "alias": "preserveInitialSelection"; "required": false; }; "dataSourceFilter": { "alias": "dataSourceFilter"; "required": false; }; }, {}, never, never, true, never>;
14551
14802
  }
14552
14803
 
14553
14804
  /**
@@ -14567,9 +14818,15 @@ declare class VdTableFieldDirective extends CdkPortal {
14567
14818
  }
14568
14819
 
14569
14820
  /**
14570
- * Gets classes decoarated with @Table
14571
- * @param origin
14572
- * @returns
14821
+ * Gets the ID of a table row.
14822
+ * @param row - The row object to extract the ID from.
14823
+ * @returns The ID of the row, or undefined if not available.
14824
+ */
14825
+ declare function getTableRowId(row: unknown): unknown;
14826
+ /**
14827
+ * Gets the table definition for a given class decorated with @Table.
14828
+ * @param origin - The class to retrieve the table definition from.
14829
+ * @returns The table definition associated with the class.
14573
14830
  */
14574
14831
  declare function getTableDefinition(origin: object): TableDefinition;
14575
14832
 
@@ -14741,5 +14998,5 @@ declare class TableStaticDataSource<TEntity> extends MatTableDataSource<TEntity>
14741
14998
  getSelected: <TType>(key?: string) => TType[];
14742
14999
  }
14743
15000
 
14744
- export { AbstractMatFormField, AbstractSelectFormField, ActionItem, Api, ApiResponse, AppEvent, AppEventType, AppSetting, AppStorage, AsyncValidationDirective, AuditEntity, AuditUser, AuthHelper, AuthUser, AutofocusDirective, BaseComponent, BaseDirective, BaseEntity, BaseInterceptor, BaseService, BindPipe, CachingInterceptor, Column, ColumnObject, Common, CommonError, CommonHandlerContext, ConfirmExitGuard, ContextHelper, DIALOG_PROVIDER, DIALOG_PROVIDER_FACTORY, DataSourceFilterDirective, DataSourcePipe, DatePickerHeaderComponent, DisableControlDirective, Display, DisplayNameNumberProjection, DisplayNameProjection, DynamicBuilder, DynamicComponentCompiler, EXPORT_DIALOG_COMPONENT, EmptyStringResetDirective, EnumMetadata, EnumPipe, EnumService, EqualValidator, ErrorMessageBindingStrategy, EventQueueService, Facet, FacetValue, FieldFuncPipe, FileControlDirective, FileService, FileSizePipe, FilterClearComponent, FilterDateComponent, FilterGlue, FilterInputComponent, FilterOperator, FilterPipe, FilterSelectComponent, FirstLetterPipe, Form, FormArrayPipe, FormBuilderConfiguration, FormControlPipe, FormDefinition, FormField, FormFieldDefinition, FormFieldGroup, FormFieldGroupDefinition, FormFieldType, FormGroupPipe, FuncPipe, GenericEmbeddedListComponent, GenericFormBaseComponent, GenericFormComponent, GenericListComponent, GenericReactiveFormComponent, GenericService, GlobalRoles, Grid, GroupFilterPipe, HtmlControlTemplateDirective, IAbstractControl, Icon, ImageFileControlDirective, IpVersion, KeyValue, KeysPipe, LayoutToggle, LoadingScreenInterceptor, LoadingScreenService, MEDIA_PROVIDER, MEDIA_PROVIDER_FACTORY, MENU_RESOLVE_OPTIONS, MatFormFieldEditorDirective, MatFormFieldRadioDirective, MatFormFieldReadonlyDirective, MatInputRequiredDirective, MatSelectRequiredDirective, Menu, MenuClient, MenuDepartment, MenuFormIncludesResolve, MenuItem, MenuItemClient, MenuItemDepartment, MenuItemFormIncludesResolve, MenuItemService, MenuItemTarget, MenuListProjectionResolve, MenuResolve, MenuScope, MenuService, MenuSettings, MenuSettingsResolve, MessageType, ModifiableEntity, MonthNamePipe, MsaEditFormActionsComponent, MsaEnumDisplayComponent, MsaSelectRequiredDirective, MsaSelectionLabelComponent, NameNumberProjection, NameProjection, NativeElementInjectorDirective, NumericValueType, OnlyNumberDirective, OrderPipe, Pagination, PaginatorIntl, ParseDecimalDirective, Permission, PlaceholderPipe, PrefixDirective, PrintService, PropertyJoinPipe, ReactiveFormConfig, ReactiveTypedFormsModule, RemoveWhitespaceDirective, ResetFormType, RxFormArray, RxFormBuilder, RxFormControl, RxFormControlDirective, RxFormGroup, RxReactiveFormsModule, RxwebFormDirective, RxwebValidators, SafeHtmlPipe, Salutation, SaveAction, SplitPipe, SubMenuResolve, SuffixButton, TABLE_COLUMNS_METADATA_KEY, TABLE_DEFINITION_METADATA_KEY, Table, TableColumn, TableColumnConfig, TableColumnType, TableConfig, TableDataSource, TableDefinition, TableQueryConfig, TableStaticDataSource, TaskDialogData, Templates, TimePipe, TitleCase, TitleProjection, TruncatePipe, TypedForm, TypedFormBuilder, UniqueValidatorDirective, UrlValidationType, Utils, ValidationAlphabetLocale, ValueAccessorBase, ValuesPipe, VdAlertDialogComponent, VdChipsComponent, VdCodeDirective, VdConfirmDialogComponent, VdCustomDirective, VdDelayedHoverDirective, VdDialogActionsDirective, VdDialogComponent, VdDialogContentDirective, VdDialogHeaderActionsComponent, VdDialogHeaderComponent, VdDialogMaximizeDirective, VdDialogService, VdDialogTitleDirective, VdDynamicMenuComponent, VdDynamicTableComponent, VdDynamicTableConfigDialogComponent, VdEditorDirective, VdFileDirective, VdFileInputComponent, VdFileModule, VdFilterOptionDirective, VdGenericFormComponent, VdGenericFormCustomFieldDirective, VdLayoutCardOverComponent, VdLayoutCloseDirective, VdLayoutCompactComponent, VdLayoutComponent, VdLayoutFooterComponent, VdLayoutManageListCloseDirective, VdLayoutManageListComponent, VdLayoutManageListOpenDirective, VdLayoutManageListToggleDirective, VdLayoutNavComponent, VdLayoutNavListCloseDirective, VdLayoutNavListComponent, VdLayoutNavListOpenDirective, VdLayoutNavListToggleDirective, VdLayoutOpenDirective, VdLayoutToggleDirective, VdListOptionDirective, VdListToolbarComponent, VdMediaService, VdMediaToggleDirective, VdMenuComponent, VdNavigationDrawerComponent, VdNavigationDrawerMenuDirective, VdNavigationDrawerToolbarDirective, VdPromptDialogComponent, VdSelectComponent, VdSelectOptionDirective, VdSelectTriggerDirective, VdTableFieldDirective, VdTaskDialogComponent, allOf, allOfAsync, alpha, alphaAsync, alphaNumeric, alphaNumericAsync, and, ascii, async, blacklist, choice, choiceAsync, compare, compose, contains, containsAsync, creditCard, creditCardAsync, cusip, custom, customAsync, dataUri, date, dateAsync, different, digit, disable, elementClass, email, endpointMetadataKey, endsWith, endsWithAsync, error, escape, even, extension, extensionAsync, factor, factorAsync, file, fileAsync, fileSize, fileSizeAsync, formDefinitionMetadataKey, formFieldGroupsMetadataKey, formFieldsMetadataKey, getDisplay, getEndpoint, getFormDefinition, getFormGroups, getTableDefinition, graphql, greaterThan, greaterThanAsync, greaterThanEqualTo, greaterThanEqualToAsync, grid, hasRequiredValidator, headerMetadataKey, hexColor, iban, ibanAsync, image, imageAsync, json, latLong, latitude, leapYear, lessThan, lessThanAsync, lessThanEqualTo, lessThanEqualToAsync, longitude, lowerCase, ltrim, mac, mask, maxDate, maxDateAsync, maxLength, maxLengthAsync, maxNumber, maxNumberAsync, maxTime, maxTimeAsync, minDate, minDateAsync, minLength, minLengthAsync, minNumber, minNumberAsync, minTime, minTimeAsync, mixinDisableRipple, mixinDisabled, model, noneOf, noneOfAsync, not, notEmpty, numeric, numericAsync, odd, oneOf, oneOfAsync, or, parseProjectionArray, parseProjectionString, password, passwordAsync, pattern, patternAsync, port, prefix, primeNumber, prop, propArray, propObject, range, rangeAsync, required, requiredTrue, rtrim, rule, sanitize, startsWith, startsWithAsync, stripLow, suffix, time, timeAsync, toBoolean, toDate, toDouble, toFloat, toInt, toString, trim, unique, updateOn, upperCase, url, urlAsync, whitelist };
15001
+ export { AbstractMatFormField, AbstractSelectFormField, ActionItem, Api, ApiResponse, AppEvent, AppEventType, AppSetting, AppStorage, AsyncValidationDirective, AuditEntity, AuditUser, AuthHelper, AuthUser, AutofocusDirective, BaseComponent, BaseDirective, BaseEntity, BaseInterceptor, BaseService, BindPipe, CachingInterceptor, Column, ColumnObject, Common, CommonError, CommonHandlerContext, ConfirmExitGuard, ContextHelper, DIALOG_PROVIDER, DIALOG_PROVIDER_FACTORY, DataSourceFilterDirective, DataSourcePipe, DatePickerHeaderComponent, DisableControlDirective, Display, DisplayNameNumberProjection, DisplayNameProjection, DynamicBuilder, DynamicComponentCompiler, EXPORT_DIALOG_COMPONENT, EmptyStringResetDirective, EnumMetadata, EnumPipe, EnumService, EqualValidator, ErrorMessageBindingStrategy, EventQueueService, Facet, FacetValue, FieldFuncPipe, FileControlDirective, FileService, FileSizePipe, FilterClearComponent, FilterDateComponent, FilterGlue, FilterInputComponent, FilterOperator, FilterPipe, FilterSelectComponent, FirstLetterPipe, Form, FormArrayPipe, FormBuilderConfiguration, FormControlPipe, FormDefinition, FormField, FormFieldDefinition, FormFieldGroup, FormFieldGroupDefinition, FormFieldType, FormGroupPipe, FuncPipe, GenericEmbeddedListComponent, GenericFormBaseComponent, GenericFormComponent, GenericListComponent, GenericReactiveFormComponent, GenericService, GlobalRoles, Grid, GroupFilterPipe, HtmlControlTemplateDirective, IAbstractControl, Icon, ImageFileControlDirective, IpVersion, KeyValue, KeysPipe, LayoutToggle, LoadingScreenInterceptor, LoadingScreenService, MEDIA_PROVIDER, MEDIA_PROVIDER_FACTORY, MENU_RESOLVE_OPTIONS, MatFormFieldEditorDirective, MatFormFieldRadioDirective, MatFormFieldReadonlyDirective, MatInputRequiredDirective, MatSelectRequiredDirective, Menu, MenuClient, MenuDepartment, MenuFormIncludesResolve, MenuItem, MenuItemClient, MenuItemDepartment, MenuItemFormIncludesResolve, MenuItemService, MenuItemTarget, MenuListProjectionResolve, MenuResolve, MenuScope, MenuService, MenuSettings, MenuSettingsResolve, MessageType, ModifiableEntity, MonthNamePipe, MsaEditFormActionsComponent, MsaEnumDisplayComponent, MsaSelectRequiredDirective, MsaSelectionLabelComponent, NameNumberProjection, NameProjection, NativeElementInjectorDirective, NumericValueType, OnlyNumberDirective, OrderPipe, Pagination, PaginatorIntl, ParseDecimalDirective, Permission, PlaceholderPipe, PrefixDirective, PrintService, PropertyJoinPipe, ReactiveFormConfig, ReactiveTypedFormsModule, RemoveWhitespaceDirective, ResetFormType, RxFormArray, RxFormBuilder, RxFormControl, RxFormControlDirective, RxFormGroup, RxReactiveFormsModule, RxwebFormDirective, RxwebValidators, SafeHtmlPipe, Salutation, SaveAction, SplitPipe, SubMenuResolve, SuffixButton, TABLE_COLUMNS_METADATA_KEY, TABLE_DEFINITION_METADATA_KEY, Table, TableColumn, TableColumnConfig, TableColumnType, TableConfig, TableDataSource, TableDefinition, TableQueryConfig, TableStaticDataSource, TaskDialogData, Templates, TimePipe, TitleCase, TitleProjection, TruncatePipe, TypedForm, TypedFormBuilder, UniqueValidatorDirective, UrlValidationType, Utils, ValidationAlphabetLocale, ValueAccessorBase, ValuesPipe, VdAlertDialogComponent, VdChipsComponent, VdCodeDirective, VdConfirmDialogComponent, VdCustomDirective, VdDelayedHoverDirective, VdDialogActionsDirective, VdDialogComponent, VdDialogContentDirective, VdDialogHeaderActionsComponent, VdDialogHeaderComponent, VdDialogMaximizeDirective, VdDialogService, VdDialogTitleDirective, VdDynamicMenuComponent, VdDynamicTableComponent, VdDynamicTableConfigDialogComponent, VdEditorDirective, VdFileDirective, VdFileInputComponent, VdFileModule, VdFilterOptionDirective, VdGenericFormComponent, VdGenericFormCustomFieldDirective, VdLayoutCardOverComponent, VdLayoutCloseDirective, VdLayoutCompactComponent, VdLayoutComponent, VdLayoutFooterComponent, VdLayoutManageListCloseDirective, VdLayoutManageListComponent, VdLayoutManageListOpenDirective, VdLayoutManageListToggleDirective, VdLayoutNavComponent, VdLayoutNavListCloseDirective, VdLayoutNavListComponent, VdLayoutNavListOpenDirective, VdLayoutNavListToggleDirective, VdLayoutOpenDirective, VdLayoutToggleDirective, VdListOptionDirective, VdListToolbarComponent, VdMediaService, VdMediaToggleDirective, VdMenuComponent, VdNavigationDrawerComponent, VdNavigationDrawerMenuDirective, VdNavigationDrawerToolbarDirective, VdPromptDialogComponent, VdSelectComponent, VdSelectOptionDirective, VdSelectTriggerDirective, VdTableFieldDirective, VdTaskDialogComponent, allOf, allOfAsync, alpha, alphaAsync, alphaNumeric, alphaNumericAsync, and, ascii, async, blacklist, choice, choiceAsync, compare, compose, contains, containsAsync, creditCard, creditCardAsync, cusip, custom, customAsync, dataUri, date, dateAsync, different, digit, disable, elementClass, email, endpointMetadataKey, endsWith, endsWithAsync, error, escape, even, extension, extensionAsync, factor, factorAsync, file, fileAsync, fileSize, fileSizeAsync, formDefinitionMetadataKey, formFieldGroupsMetadataKey, formFieldsMetadataKey, getDisplay, getEndpoint, getFormDefinition, getFormGroups, getTableDefinition, getTableRowId, graphql, greaterThan, greaterThanAsync, greaterThanEqualTo, greaterThanEqualToAsync, grid, hasRequiredValidator, headerMetadataKey, hexColor, iban, ibanAsync, image, imageAsync, json, latLong, latitude, leapYear, lessThan, lessThanAsync, lessThanEqualTo, lessThanEqualToAsync, longitude, lowerCase, ltrim, mac, mask, maxDate, maxDateAsync, maxLength, maxLengthAsync, maxNumber, maxNumberAsync, maxTime, maxTimeAsync, minDate, minDateAsync, minLength, minLengthAsync, minNumber, minNumberAsync, minTime, minTimeAsync, mixinDisableRipple, mixinDisabled, model, noneOf, noneOfAsync, not, notEmpty, numeric, numericAsync, odd, oneOf, oneOfAsync, or, parseProjectionArray, parseProjectionString, password, passwordAsync, pattern, patternAsync, port, prefix, primeNumber, prop, propArray, propObject, range, rangeAsync, required, requiredTrue, rtrim, rule, sanitize, startsWith, startsWithAsync, stripLow, suffix, time, timeAsync, toBoolean, toDate, toDouble, toFloat, toInt, toString, trim, unique, updateOn, upperCase, url, urlAsync, whitelist };
14745
15002
  export type { AppFormGroup, CanComponentDeactivate, Constructor$1 as Constructor, Delegate, DialogButtonConfig, EditorChange, EnumItem, Filter, FilterField, FormGroupExtension, IAlertConfig, IBaseComponent, ICanDisable, ICanDisableRipple, ICommonHandlerContext, IConfirmConfig, IDialogConfig, IEntity, IFormGroup, IGenericFormBaseComponent, IGenericListComponent, IGenericReactiveFormBaseComponent, ILayoutTogglable, IPromptConfig, MenuResolveOptions, Options, ShowConfirmationDialog, ShowTaskDialog, VdGenericFormInitEvent };