@quadrel-enterprise-ui/framework 20.27.3-beta.234.1 → 20.27.4
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
|
@@ -14312,7 +14312,6 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14312
14312
|
private bottomOffset$;
|
|
14313
14313
|
private readonly dialogRef;
|
|
14314
14314
|
private readonly navigationInterceptor;
|
|
14315
|
-
private readonly injector;
|
|
14316
14315
|
private readonly confirmationDialogService;
|
|
14317
14316
|
/**
|
|
14318
14317
|
* This property defines the configuration for the QdPage component, including the page type,
|
|
@@ -14401,10 +14400,6 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14401
14400
|
* - Snapshots store only raw values and are taken by the page/header workflow (e.g. on init, edit, save). The confirmation dialog may restore all registered form groups from the snapshot.
|
|
14402
14401
|
* - FormArrays are restored with dynamic resizing (length is aligned to snapshot before values are reset).
|
|
14403
14402
|
*
|
|
14404
|
-
* ### **Filling a form right after connecting it**
|
|
14405
|
-
* - You can fill a connected form right after registration — e.g. an `effect` that adds controls or pushes `FormArray` rows. This first fill is the form's starting point, not a user change.
|
|
14406
|
-
* - So loading data into a fresh form never triggers a false "unsaved changes" prompt. Only later edits count.
|
|
14407
|
-
*
|
|
14408
14403
|
* ### **Page-Dialog (FullWidth) – Unsaved-Changes Close Contract**
|
|
14409
14404
|
* - When a QdPage is embedded in a full-width page dialog, the directive’s registered form groups are also used to guard dialog closing.
|
|
14410
14405
|
* - The page dialog can only close (e.g. via ESC or backdrop) if no unsaved changes are detected ($hasValuesChanged() is false).
|
|
@@ -14417,10 +14412,8 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14417
14412
|
* ```html
|
|
14418
14413
|
* <qd-page [config]="pageConfig">
|
|
14419
14414
|
* <qd-section [config]="sectionConfig">
|
|
14420
|
-
* <qd-grid
|
|
14421
|
-
*
|
|
14422
|
-
* [formGroup]="myFormGroup">
|
|
14423
|
-
* My Section
|
|
14415
|
+
* <qd-grid [formGroup]="myFormGroup" qdConnectFormStateToPage="myFormGroup">
|
|
14416
|
+
* My Section
|
|
14424
14417
|
* </qd-grid>
|
|
14425
14418
|
* </qd-section>
|
|
14426
14419
|
* </qd-page>
|
|
@@ -14440,14 +14433,13 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14440
14433
|
declare class QdConnectFormStateToPageDirective implements OnInit, OnDestroy {
|
|
14441
14434
|
private formGroupManagerService;
|
|
14442
14435
|
private formGroupDirective;
|
|
14443
|
-
private closeInitialBuildupHandle?;
|
|
14444
14436
|
/**
|
|
14445
14437
|
* This key is used to manage and track the form state within the page. It has to be unique for each FormGroup Connector. Use the property name of the FormGroup in your component.
|
|
14446
14438
|
*/
|
|
14447
14439
|
qdConnectFormStateToPage: string;
|
|
14448
14440
|
ngOnInit(): void;
|
|
14449
14441
|
ngOnDestroy(): void;
|
|
14450
|
-
|
|
14442
|
+
isValid(): boolean;
|
|
14451
14443
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdConnectFormStateToPageDirective, never>;
|
|
14452
14444
|
static ɵdir: i0.ɵɵDirectiveDeclaration<QdConnectFormStateToPageDirective, "[qdConnectFormStateToPage]", never, { "qdConnectFormStateToPage": { "alias": "qdConnectFormStateToPage"; "required": false; }; }, {}, never, never, false, never>;
|
|
14453
14445
|
}
|
|
@@ -14521,7 +14513,6 @@ declare class QdPageObjectHeaderComponent<T extends object> implements OnInit, O
|
|
|
14521
14513
|
private confirmationDialogService;
|
|
14522
14514
|
private contextService;
|
|
14523
14515
|
private resolverTriggerService;
|
|
14524
|
-
private readonly injector;
|
|
14525
14516
|
private pageStoreService;
|
|
14526
14517
|
config: QdPageConfig<T>;
|
|
14527
14518
|
hasNavigation: boolean;
|