@decaf-ts/for-angular 0.0.69 → 0.0.71
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/fesm2022/decaf-ts-for-angular.mjs +112 -29
- package/fesm2022/decaf-ts-for-angular.mjs.map +1 -1
- package/index.d.ts +33 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { Observable, Subject, Subscription } from 'rxjs';
|
|
|
21
21
|
import { HttpClient } from '@angular/common/http';
|
|
22
22
|
import { SafeHtml, DomSanitizer, Title } from '@angular/platform-browser';
|
|
23
23
|
import { NavigationOptions } from '@ionic/angular/common/providers/nav-controller';
|
|
24
|
+
import { FunctionLike as FunctionLike$1 } from 'src/lib/engine';
|
|
24
25
|
import { InjectablesRegistry } from '@decaf-ts/injectable-decorators';
|
|
25
26
|
import { LoggedClass, Logger } from '@decaf-ts/logging';
|
|
26
27
|
|
|
@@ -453,7 +454,7 @@ interface ISortObject {
|
|
|
453
454
|
*/
|
|
454
455
|
interface IFilterQuery {
|
|
455
456
|
query: IFilterQueryItem[] | undefined;
|
|
456
|
-
sort
|
|
457
|
+
sort?: ISortObject;
|
|
457
458
|
}
|
|
458
459
|
/**
|
|
459
460
|
* @description Component input properties
|
|
@@ -3045,6 +3046,7 @@ declare class CrudFieldComponent extends NgxFormFieldDirective implements OnInit
|
|
|
3045
3046
|
* @memberOf CrudFieldComponent
|
|
3046
3047
|
*/
|
|
3047
3048
|
translatable: boolean;
|
|
3049
|
+
private loadingController;
|
|
3048
3050
|
constructor();
|
|
3049
3051
|
/**
|
|
3050
3052
|
* @description Component initialization lifecycle method.
|
|
@@ -5495,7 +5497,31 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
|
|
|
5495
5497
|
* @memberOf ListComponent
|
|
5496
5498
|
*/
|
|
5497
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
|
+
*/
|
|
5498
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;
|
|
5499
5525
|
/**
|
|
5500
5526
|
* @description Refreshes the list data from the configured source.
|
|
5501
5527
|
* @summary This method handles both initial data loading and subsequent refresh operations,
|
|
@@ -8121,10 +8147,13 @@ declare class TableComponent extends ListComponent implements OnInit {
|
|
|
8121
8147
|
filterOptionsMapper: FunctionLike;
|
|
8122
8148
|
filterValue?: string;
|
|
8123
8149
|
cols: string[];
|
|
8150
|
+
headers: string[];
|
|
8124
8151
|
allowOperations: boolean;
|
|
8125
8152
|
routerService: NgxRouterService;
|
|
8126
8153
|
injector: EnvironmentInjector;
|
|
8127
8154
|
private get _cols();
|
|
8155
|
+
private get _headers();
|
|
8156
|
+
get _mapper(): KeyValue;
|
|
8128
8157
|
ngOnInit(): Promise<void>;
|
|
8129
8158
|
protected getFilterOptions(): Promise<void>;
|
|
8130
8159
|
protected itemMapper(item: KeyValue, mapper: KeyValue, props?: KeyValue): KeyValue;
|
|
@@ -9058,6 +9087,9 @@ declare class NgxFormService {
|
|
|
9058
9087
|
|
|
9059
9088
|
declare abstract class NgxEventHandler extends DecafEventHandler {
|
|
9060
9089
|
changeDetectorRef: ChangeDetectorRef;
|
|
9090
|
+
readonly: boolean | FunctionLike$1;
|
|
9091
|
+
hidden?: boolean | CrudOperationKeys[] | FunctionLike$1;
|
|
9092
|
+
label?: string;
|
|
9061
9093
|
constructor();
|
|
9062
9094
|
refresh(...args: unknown[]): Promise<void>;
|
|
9063
9095
|
preview(...args: unknown[]): Promise<void>;
|