@decaf-ts/for-angular 0.0.70 → 0.0.72

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/index.d.ts CHANGED
@@ -5497,7 +5497,31 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
5497
5497
  * @memberOf ListComponent
5498
5498
  */
5499
5499
  ngOnDestroy(): Promise<void>;
5500
+ /**
5501
+ * @description Releases component resources and unregisters repository observers.
5502
+ * @summary Invoked by Angular teardown logic to ensure the base directive and any
5503
+ * attached repositories stop emitting events, preventing memory leaks when the
5504
+ * list component leaves the DOM.
5505
+ *
5506
+ * The method performs the following actions:
5507
+ * - Delegates to the parent directive's `ngOnDestroy` for shared cleanup
5508
+ * - Detaches the repository observer when one is registered
5509
+ * - Catches and logs repository errors to avoid bubbling failures
5510
+ * - Clears internal references to large objects so they can be garbage collected
5511
+ *
5512
+ * @returns {Promise<void>} Resolves when every teardown step completes.
5513
+ */
5500
5514
  destroy(): Promise<void>;
5515
+ /**
5516
+ * @description Produces the sanitized mapper configuration.
5517
+ * @summary Merges the component mapper with the primary key metadata and filters
5518
+ * non-string entries so downstream rendering logic only receives valid bindings.
5519
+ *
5520
+ * @protected
5521
+ * @returns {KeyValue} A mapper object that contains string values mapped to the
5522
+ * component's public keys.
5523
+ */
5524
+ protected get _mapper(): KeyValue;
5501
5525
  /**
5502
5526
  * @description Refreshes the list data from the configured source.
5503
5527
  * @summary This method handles both initial data loading and subsequent refresh operations,
@@ -8123,10 +8147,13 @@ declare class TableComponent extends ListComponent implements OnInit {
8123
8147
  filterOptionsMapper: FunctionLike;
8124
8148
  filterValue?: string;
8125
8149
  cols: string[];
8150
+ headers: string[];
8126
8151
  allowOperations: boolean;
8127
8152
  routerService: NgxRouterService;
8128
8153
  injector: EnvironmentInjector;
8129
8154
  private get _cols();
8155
+ private get _headers();
8156
+ get _mapper(): KeyValue;
8130
8157
  ngOnInit(): Promise<void>;
8131
8158
  protected getFilterOptions(): Promise<void>;
8132
8159
  protected itemMapper(item: KeyValue, mapper: KeyValue, props?: KeyValue): KeyValue;
@@ -9062,6 +9089,7 @@ declare abstract class NgxEventHandler extends DecafEventHandler {
9062
9089
  changeDetectorRef: ChangeDetectorRef;
9063
9090
  readonly: boolean | FunctionLike$1;
9064
9091
  hidden?: boolean | CrudOperationKeys[] | FunctionLike$1;
9092
+ label?: string;
9065
9093
  constructor();
9066
9094
  refresh(...args: unknown[]): Promise<void>;
9067
9095
  preview(...args: unknown[]): Promise<void>;
@@ -9358,7 +9386,7 @@ declare abstract class NgxModelPageDirective extends NgxPageDirective {
9358
9386
  * @param {IBaseCustomEvent} event - The submit event containing form data
9359
9387
  * @return {Promise<IModelComponentSubmitEvent|void>} Promise that resolves on success or throws on error
9360
9388
  */
9361
- submit(event: Partial<IBaseCustomEvent>, redirect?: boolean, repository?: DecafRepository<Model>): Promise<IModelComponentSubmitEvent>;
9389
+ submit(event: Partial<IBaseCustomEvent>, redirect?: boolean, repo?: IRepository<Model>): Promise<IModelComponentSubmitEvent>;
9362
9390
  /**
9363
9391
  * @description Retrieves a model instance from the repository by unique identifier.
9364
9392
  * @summary Fetches a specific model instance using the repository's read method.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/for-angular",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "author": "Tiago Venceslau and Contributors",
5
5
  "license": "MPL-2.0 OR AGPL-3.0",
6
6
  "repository": {