@decaf-ts/for-angular 0.0.91 → 0.0.92
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
|
@@ -4,7 +4,7 @@ import { IonInput, IonSelect, IonTextarea, IonCheckbox, MenuController, SpinnerT
|
|
|
4
4
|
import { TextFieldTypes, SelectInterface, AutocompleteTypes, CheckboxCustomEvent, Color, PredefinedColors, OverlayEventDetail } from '@ionic/core';
|
|
5
5
|
import * as i2 from '@angular/forms';
|
|
6
6
|
import { FormGroup, FormControl, FormArray, ControlValueAccessor, AbstractControl } from '@angular/forms';
|
|
7
|
-
import { OrderDirection, AttributeOption, Observer, Condition, Paginator, Repository, Adapter
|
|
7
|
+
import { OrderDirection, AttributeOption, Observer, Condition, Paginator, Repository, Adapter } from '@decaf-ts/core';
|
|
8
8
|
import { UIFunctionLike, CrudOperationKeys, FieldProperties, IPagedComponentProperties, DecafComponent, DecafTranslateService, HTML5InputTypes, ElementSizes, LayoutGridGaps, ElementPositions, UIEventProperty, UIModelMetadata, FieldDefinition, UIMediaBreakPointsType, RenderingEngine, DecafEventHandler } from '@decaf-ts/ui-decorators';
|
|
9
9
|
import { VALIDATION_PARENT_KEY, Model, ModelConstructor, ComparisonValidationKeys } from '@decaf-ts/decorator-validation';
|
|
10
10
|
import * as _ionic_angular_standalone from '@ionic/angular/standalone';
|
|
@@ -638,6 +638,7 @@ interface I18nToken {
|
|
|
638
638
|
interface ICrudFormEvent extends IBaseCustomEvent {
|
|
639
639
|
handler?: UIFunctionLike;
|
|
640
640
|
handlers?: Record<string, UIFunctionLike>;
|
|
641
|
+
modelId?: PrimaryKeyType;
|
|
641
642
|
role: (typeof ActionRoles)[keyof typeof ActionRoles] & CrudOperationKeys;
|
|
642
643
|
}
|
|
643
644
|
/**
|
|
@@ -2275,7 +2276,7 @@ declare abstract class NgxModelPageDirective extends NgxPageDirective implements
|
|
|
2275
2276
|
*
|
|
2276
2277
|
* @param {string} [uid] - The unique identifier of the model to load; defaults to modelId
|
|
2277
2278
|
*/
|
|
2278
|
-
refresh(uid?:
|
|
2279
|
+
refresh(uid?: PrimaryKeyType): Promise<void>;
|
|
2279
2280
|
/**
|
|
2280
2281
|
* @description Enables CRUD operations except those specified.
|
|
2281
2282
|
* @summary Sets the allowed CRUD operations for the component, excluding any operations provided in the 'except' array.
|
|
@@ -2315,7 +2316,7 @@ declare abstract class NgxModelPageDirective extends NgxPageDirective implements
|
|
|
2315
2316
|
* @param {string} uid - The unique identifier of the model instance to retrieve
|
|
2316
2317
|
* @return {Promise<Model | undefined>} Promise resolving to the model instance or undefined
|
|
2317
2318
|
*/
|
|
2318
|
-
handleRead<M extends Model>(uid?:
|
|
2319
|
+
handleRead<M extends Model>(uid?: PrimaryKeyType, repository?: IRepository<M>, modelName?: string): Promise<Model | undefined>;
|
|
2319
2320
|
process<M extends Model>(event: ICrudFormEvent, model?: M, submit?: boolean): Promise<ILayoutModelContext | IModelComponentSubmitEvent<M>>;
|
|
2320
2321
|
/**
|
|
2321
2322
|
* @description Handles form submission events for CRUD operations.
|