@quadrel-enterprise-ui/framework 20.27.2 → 20.27.3-beta.234.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
@@ -14312,6 +14312,7 @@ 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;
14315
14316
  private readonly confirmationDialogService;
14316
14317
  /**
14317
14318
  * This property defines the configuration for the QdPage component, including the page type,
@@ -14400,6 +14401,10 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
14400
14401
  * - 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
14402
  * - FormArrays are restored with dynamic resizing (length is aligned to snapshot before values are reset).
14402
14403
  *
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
+ *
14403
14408
  * ### **Page-Dialog (FullWidth) – Unsaved-Changes Close Contract**
14404
14409
  * - 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
14410
  * - The page dialog can only close (e.g. via ESC or backdrop) if no unsaved changes are detected ($hasValuesChanged() is false).
@@ -14412,8 +14417,10 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
14412
14417
  * ```html
14413
14418
  * <qd-page [config]="pageConfig">
14414
14419
  * <qd-section [config]="sectionConfig">
14415
- * <qd-grid [formGroup]="myFormGroup" qdConnectFormStateToPage="myFormGroup">
14416
- * My Section
14420
+ * <qd-grid
14421
+ * qdConnectFormStateToPage="myFormGroup"
14422
+ * [formGroup]="myFormGroup">
14423
+ * My Section
14417
14424
  * </qd-grid>
14418
14425
  * </qd-section>
14419
14426
  * </qd-page>
@@ -14433,13 +14440,14 @@ declare class QdPageComponent<T extends object> implements OnInit, OnChanges, Af
14433
14440
  declare class QdConnectFormStateToPageDirective implements OnInit, OnDestroy {
14434
14441
  private formGroupManagerService;
14435
14442
  private formGroupDirective;
14443
+ private closeInitialBuildupHandle?;
14436
14444
  /**
14437
14445
  * 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
14446
  */
14439
14447
  qdConnectFormStateToPage: string;
14440
14448
  ngOnInit(): void;
14441
14449
  ngOnDestroy(): void;
14442
- isValid(): boolean;
14450
+ private scheduleInitialBaseline;
14443
14451
  static ɵfac: i0.ɵɵFactoryDeclaration<QdConnectFormStateToPageDirective, never>;
14444
14452
  static ɵdir: i0.ɵɵDirectiveDeclaration<QdConnectFormStateToPageDirective, "[qdConnectFormStateToPage]", never, { "qdConnectFormStateToPage": { "alias": "qdConnectFormStateToPage"; "required": false; }; }, {}, never, never, false, never>;
14445
14453
  }
@@ -14513,6 +14521,7 @@ declare class QdPageObjectHeaderComponent<T extends object> implements OnInit, O
14513
14521
  private confirmationDialogService;
14514
14522
  private contextService;
14515
14523
  private resolverTriggerService;
14524
+ private readonly injector;
14516
14525
  private pageStoreService;
14517
14526
  config: QdPageConfig<T>;
14518
14527
  hasNavigation: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/framework",
3
- "version": "20.27.2",
3
+ "version": "20.27.3-beta.234.1",
4
4
  "exports": {
5
5
  "./jest-preset": "./jest-preset.js",
6
6
  "./package.json": {