@decaf-ts/for-angular 0.0.82 → 0.0.83
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 +100 -66
- package/fesm2022/decaf-ts-for-angular.mjs.map +1 -1
- package/index.d.ts +19 -16
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1153,7 +1153,7 @@ declare class NgxRepositoryDirective<M extends Model> extends DecafComponent<M>
|
|
|
1153
1153
|
protected buildCondition(attr?: keyof M): Condition<M>;
|
|
1154
1154
|
read(uid: PrimaryKeyType): Promise<M>;
|
|
1155
1155
|
delete(data: PrimaryKeyType | PrimaryKeyType[] | M[], pk: PrimaryKeyType): Promise<void>;
|
|
1156
|
-
query(
|
|
1156
|
+
query(condition?: Condition<M>, sortBy?: keyof M, sortDirection?: OrderDirection): Promise<M[]>;
|
|
1157
1157
|
paginate(limit?: number, sortDirection?: OrderDirection, condition?: Condition<M>): Promise<Paginator<M>>;
|
|
1158
1158
|
protected transactionBegin<M extends Model>(data: M, repository: DecafRepository<M>, operation: CrudOperations): Promise<M | M[] | PrimaryKeyType | undefined>;
|
|
1159
1159
|
protected transactionEnd<M extends Model>(model: M, repository: DecafRepository<M>, operation: CrudOperations): Promise<M | M[] | PrimaryKeyType | undefined>;
|
|
@@ -2206,6 +2206,7 @@ declare abstract class NgxPageDirective extends NgxComponentDirective implements
|
|
|
2206
2206
|
}
|
|
2207
2207
|
|
|
2208
2208
|
declare abstract class NgxModelPageDirective extends NgxPageDirective implements AfterViewInit {
|
|
2209
|
+
refreshing: boolean;
|
|
2209
2210
|
/**
|
|
2210
2211
|
* @description The CRUD operation type to be performed on the model.
|
|
2211
2212
|
* @summary Specifies which operation (Create, Read, Update, Delete) this component instance
|
|
@@ -2241,6 +2242,7 @@ declare abstract class NgxModelPageDirective extends NgxPageDirective implements
|
|
|
2241
2242
|
*/
|
|
2242
2243
|
get repository(): DecafRepository<Model>;
|
|
2243
2244
|
initialize(): Promise<void>;
|
|
2245
|
+
ionViewWillEnter(): Promise<void>;
|
|
2244
2246
|
/**
|
|
2245
2247
|
* @description Refreshes the component data by loading the specified model instance.
|
|
2246
2248
|
* @summary Loads model data from the repository based on the current operation type.
|
|
@@ -3475,15 +3477,6 @@ declare class CrudFieldComponent extends NgxFormFieldDirective implements OnInit
|
|
|
3475
3477
|
static ɵcmp: i0.ɵɵComponentDeclaration<CrudFieldComponent, "ngx-decaf-crud-field", never, { "operation": { "alias": "operation"; "required": true; }; "name": { "alias": "name"; "required": true; }; "className": { "alias": "className"; "required": false; }; "path": { "alias": "path"; "required": true; }; "childOf": { "alias": "childOf"; "required": false; }; "type": { "alias": "type"; "required": true; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "format": { "alias": "format"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "step": { "alias": "step"; "required": false; }; "equals": { "alias": "equals"; "required": false; }; "different": { "alias": "different"; "required": false; }; "lessThan": { "alias": "lessThan"; "required": false; }; "lessThanOrEqual": { "alias": "lessThanOrEqual"; "required": false; }; "greaterThan": { "alias": "greaterThan"; "required": false; }; "greaterThanOrEqual": { "alias": "greaterThanOrEqual"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "cancelText": { "alias": "cancelText"; "required": false; }; "interface": { "alias": "interface"; "required": false; }; "options": { "alias": "options"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "startEmpty": { "alias": "startEmpty"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "updateOn": { "alias": "updateOn"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "uid": { "alias": "uid"; "required": false; }; "page": { "alias": "page"; "required": false; }; }, {}, never, never, true, never>;
|
|
3476
3478
|
}
|
|
3477
3479
|
|
|
3478
|
-
/**
|
|
3479
|
-
* @module module:lib/engine/NgxParentComponentDirective
|
|
3480
|
-
* @description Directive base for parent container components used by the rendering system.
|
|
3481
|
-
* @summary Provides NgxParentComponentDirective which offers inputs for children metadata,
|
|
3482
|
-
* column/row configuration and parent component wiring used by layout and container components.
|
|
3483
|
-
*
|
|
3484
|
-
* @link {@link NgxParentComponentDirective}
|
|
3485
|
-
*/
|
|
3486
|
-
|
|
3487
3480
|
/**
|
|
3488
3481
|
* @description Layout component for creating responsive grid layouts in Angular applications.
|
|
3489
3482
|
* @summary This component provides a flexible grid system that can be configured with dynamic
|
|
@@ -3495,8 +3488,8 @@ declare class CrudFieldComponent extends NgxFormFieldDirective implements OnInit
|
|
|
3495
3488
|
* @extends {NgxComponentDirective}
|
|
3496
3489
|
* @implements {OnInit}
|
|
3497
3490
|
*/
|
|
3498
|
-
declare class NgxParentComponentDirective extends NgxComponentDirective
|
|
3499
|
-
|
|
3491
|
+
declare class NgxParentComponentDirective extends NgxComponentDirective {
|
|
3492
|
+
refreshing: boolean;
|
|
3500
3493
|
/**
|
|
3501
3494
|
* @description Unique identifier for the current record.
|
|
3502
3495
|
* @summary A unique identifier for the current record being displayed or manipulated.
|
|
@@ -3632,10 +3625,10 @@ declare class NgxParentComponentDirective extends NgxComponentDirective implemen
|
|
|
3632
3625
|
ngOnDestroy(): Promise<void>;
|
|
3633
3626
|
protected getActivePage(page: number, firstClick?: boolean): UIModelMetadata | UIModelMetadata[] | FieldDefinition | undefined;
|
|
3634
3627
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxParentComponentDirective, never>;
|
|
3635
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxParentComponentDirective, never, never, { "page": { "alias": "page"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "parentForm": { "alias": "parentForm"; "required": false; }; "children": { "alias": "children"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cardBody": { "alias": "cardBody"; "required": false; }; "cardType": { "alias": "cardType"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "match": { "alias": "match"; "required": false; }; }, {}, never, never, true, never>;
|
|
3628
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxParentComponentDirective, never, never, { "refreshing": { "alias": "refreshing"; "required": false; }; "page": { "alias": "page"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "parentForm": { "alias": "parentForm"; "required": false; }; "children": { "alias": "children"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cardBody": { "alias": "cardBody"; "required": false; }; "cardType": { "alias": "cardType"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "match": { "alias": "match"; "required": false; }; }, {}, never, never, true, never>;
|
|
3636
3629
|
}
|
|
3637
3630
|
|
|
3638
|
-
declare abstract class NgxFormDirective extends NgxParentComponentDirective implements
|
|
3631
|
+
declare abstract class NgxFormDirective extends NgxParentComponentDirective implements AfterViewInit, IFormElement, OnDestroy, IRenderedModel {
|
|
3639
3632
|
/**
|
|
3640
3633
|
* @description Reactive form group associated with this fieldset.
|
|
3641
3634
|
* @summary The FormGroup instance that contains all form controls within this fieldset.
|
|
@@ -3828,7 +3821,17 @@ declare abstract class NgxFormDirective extends NgxParentComponentDirective impl
|
|
|
3828
3821
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxFormDirective, never, never, { "parentFormId": { "alias": "parentFormId"; "required": false; }; "deepMerge": { "alias": "deepMerge"; "required": false; }; "path": { "alias": "path"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "updateOn": { "alias": "updateOn"; "required": false; }; "target": { "alias": "target"; "required": false; }; "method": { "alias": "method"; "required": false; }; "options": { "alias": "options"; "required": false; }; "action": { "alias": "action"; "required": false; }; "operation": { "alias": "operation"; "required": true; }; "handlers": { "alias": "handlers"; "required": false; }; "rendererId": { "alias": "rendererId"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "match": { "alias": "match"; "required": false; }; }, { "submitEvent": "submitEvent"; "formGroupLoadedEvent": "formGroupLoadedEvent"; }, never, never, true, never>;
|
|
3829
3822
|
}
|
|
3830
3823
|
|
|
3831
|
-
|
|
3824
|
+
/**
|
|
3825
|
+
* @module module:lib/components/crud-form/crud-form.component
|
|
3826
|
+
* @description CRUD form component module.
|
|
3827
|
+
* @summary Provides `CrudFormComponent` — a wrapper that composes dynamic form
|
|
3828
|
+
* fields and layout to produce create/read/update/delete forms with validation
|
|
3829
|
+
* and submission handling.
|
|
3830
|
+
*
|
|
3831
|
+
* @link {@link CrudFormComponent}
|
|
3832
|
+
*/
|
|
3833
|
+
|
|
3834
|
+
declare class CrudFormComponent extends NgxFormDirective implements OnInit {
|
|
3832
3835
|
constructor();
|
|
3833
3836
|
/**
|
|
3834
3837
|
* @description Component initialization lifecycle method.
|
|
@@ -8251,7 +8254,7 @@ declare class NgxRouterService {
|
|
|
8251
8254
|
*
|
|
8252
8255
|
* @memberOf RouterService
|
|
8253
8256
|
*/
|
|
8254
|
-
parseAllQueryParams(params
|
|
8257
|
+
parseAllQueryParams(params?: string | string[]): KeyValue[];
|
|
8255
8258
|
/**
|
|
8256
8259
|
* @description Checks if a query parameter exists in the current route.
|
|
8257
8260
|
* @summary Determines whether a specific query parameter is present in the current route's
|