@quadrel-enterprise-ui/framework 20.27.2 → 20.27.3-beta.236.1
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
|
@@ -7314,6 +7314,9 @@ declare class QdInputComponent implements OnInit, OnChanges, OnDestroy, ControlV
|
|
|
7314
7314
|
writeValue(value: QdInputValueWithUnit | QdInputValue): void;
|
|
7315
7315
|
setDisabledState(disabled: boolean): void;
|
|
7316
7316
|
handleInput(event: any): void;
|
|
7317
|
+
private handleNumberInput;
|
|
7318
|
+
private setInvalidCharactersError;
|
|
7319
|
+
private clearInvalidCharactersError;
|
|
7317
7320
|
handleOptionSelected(option: QdFormInputOption): void;
|
|
7318
7321
|
onOptionsOpened(): void;
|
|
7319
7322
|
onOptionsClosed(): void;
|
|
@@ -14312,6 +14315,7 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14312
14315
|
private bottomOffset$;
|
|
14313
14316
|
private readonly dialogRef;
|
|
14314
14317
|
private readonly navigationInterceptor;
|
|
14318
|
+
private readonly injector;
|
|
14315
14319
|
private readonly confirmationDialogService;
|
|
14316
14320
|
/**
|
|
14317
14321
|
* This property defines the configuration for the QdPage component, including the page type,
|
|
@@ -14400,6 +14404,10 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14400
14404
|
* - 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.
|
|
14401
14405
|
* - FormArrays are restored with dynamic resizing (length is aligned to snapshot before values are reset).
|
|
14402
14406
|
*
|
|
14407
|
+
* ### **Filling a form right after connecting it**
|
|
14408
|
+
* - 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.
|
|
14409
|
+
* - So loading data into a fresh form never triggers a false "unsaved changes" prompt. Only later edits count.
|
|
14410
|
+
*
|
|
14403
14411
|
* ### **Page-Dialog (FullWidth) – Unsaved-Changes Close Contract**
|
|
14404
14412
|
* - When a QdPage is embedded in a full-width page dialog, the directive’s registered form groups are also used to guard dialog closing.
|
|
14405
14413
|
* - The page dialog can only close (e.g. via ESC or backdrop) if no unsaved changes are detected ($hasValuesChanged() is false).
|
|
@@ -14412,8 +14420,10 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14412
14420
|
* ```html
|
|
14413
14421
|
* <qd-page [config]="pageConfig">
|
|
14414
14422
|
* <qd-section [config]="sectionConfig">
|
|
14415
|
-
* <qd-grid
|
|
14416
|
-
*
|
|
14423
|
+
* <qd-grid
|
|
14424
|
+
* qdConnectFormStateToPage="myFormGroup"
|
|
14425
|
+
* [formGroup]="myFormGroup">
|
|
14426
|
+
* My Section
|
|
14417
14427
|
* </qd-grid>
|
|
14418
14428
|
* </qd-section>
|
|
14419
14429
|
* </qd-page>
|
|
@@ -14433,13 +14443,14 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
|
|
|
14433
14443
|
declare class QdConnectFormStateToPageDirective implements OnInit, OnDestroy {
|
|
14434
14444
|
private formGroupManagerService;
|
|
14435
14445
|
private formGroupDirective;
|
|
14446
|
+
private closeInitialBuildupHandle?;
|
|
14436
14447
|
/**
|
|
14437
14448
|
* 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.
|
|
14438
14449
|
*/
|
|
14439
14450
|
qdConnectFormStateToPage: string;
|
|
14440
14451
|
ngOnInit(): void;
|
|
14441
14452
|
ngOnDestroy(): void;
|
|
14442
|
-
|
|
14453
|
+
private scheduleInitialBaseline;
|
|
14443
14454
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdConnectFormStateToPageDirective, never>;
|
|
14444
14455
|
static ɵdir: i0.ɵɵDirectiveDeclaration<QdConnectFormStateToPageDirective, "[qdConnectFormStateToPage]", never, { "qdConnectFormStateToPage": { "alias": "qdConnectFormStateToPage"; "required": false; }; }, {}, never, never, false, never>;
|
|
14445
14456
|
}
|
|
@@ -14513,6 +14524,7 @@ declare class QdPageObjectHeaderComponent<T extends object> implements OnInit, O
|
|
|
14513
14524
|
private confirmationDialogService;
|
|
14514
14525
|
private contextService;
|
|
14515
14526
|
private resolverTriggerService;
|
|
14527
|
+
private readonly injector;
|
|
14516
14528
|
private pageStoreService;
|
|
14517
14529
|
config: QdPageConfig<T>;
|
|
14518
14530
|
hasNavigation: boolean;
|