ngx-dynamic-entity 1.7.0 → 1.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-dynamic-entity",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Angular standalone UI library for rendering dynamic entity forms.",
5
5
  "//typings": "Local workspace resolution only: ng-packagr 21 writes types/ngx-dynamic-entity.d.ts into dist/package.json. Do NOT add a 'main' field here — ng-packagr does not generate one, so it would be copied verbatim and resolve wrongly in the published package.",
6
6
  "typings": "types/ngx-dynamic-entity.d.ts",
@@ -8,7 +8,7 @@
8
8
  "@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
9
9
  "@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
10
10
  "@angular/forms": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
11
- "@dynamic-entity/core": "^1.7.0",
11
+ "@dynamic-entity/core": "^1.8.0",
12
12
  "rxjs": "^7.0.0"
13
13
  },
14
14
  "keywords": [
@@ -816,6 +816,15 @@ declare class DynamicFormComponent implements OnInit, OnChanges, OnDestroy {
816
816
  get submitBlocked(): boolean;
817
817
  ngOnInit(): void;
818
818
  ngOnChanges(changes: SimpleChanges): void;
819
+ /**
820
+ * Whether an `initialData` change represents loading a different record.
821
+ *
822
+ * Not every change does. A template binding like `[initialData]="record() || {}"` yields a
823
+ * fresh object literal on each evaluation, so `ngOnChanges` fires with two empty objects
824
+ * and nothing has actually been loaded — resetting there would drag someone back to the
825
+ * first tab while they were filling in a new record on the third.
826
+ */
827
+ private isRecordSwap;
819
828
  ngOnDestroy(): void;
820
829
  /**
821
830
  * `focusPanel: false` is for a caller that is about to focus something more specific.