@praxisui/dynamic-form 9.0.0-beta.54 → 9.0.0-beta.55

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-07-08T21:38:45.010Z",
3
+ "generatedAt": "2026-07-08T22:08:16.337Z",
4
4
  "packageName": "@praxisui/dynamic-form",
5
- "packageVersion": "9.0.0-beta.54",
5
+ "packageVersion": "9.0.0-beta.55",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 2,
@@ -12199,6 +12199,7 @@ class PraxisDynamicForm {
12199
12199
  this.form.patchValue(this.normalizeFormPatchValue(this.loadedEntityData));
12200
12200
  this.hydratedEntityId = this.pendingEntityId;
12201
12201
  this.debugLog('[PDF] loadEntity:repatch', { id: this.pendingEntityId });
12202
+ this.flushEntityHydrationState();
12202
12203
  }
12203
12204
  else {
12204
12205
  this.debugLog('[PDF] loadEntity:duplicate', {
@@ -12213,6 +12214,7 @@ class PraxisDynamicForm {
12213
12214
  return;
12214
12215
  }
12215
12216
  this.entityHydrationPending = false;
12217
+ this.flushEntityHydrationState();
12216
12218
  this.warnLog('Skipping entity load because no readUrl or resourcePath is configured.', { id: this.pendingEntityId, formId: this.formId }, { actionId: 'entity.load.skip', throttleKey: 'praxis-dynamic-form:entity-load-without-resource' });
12217
12219
  return;
12218
12220
  }
@@ -12244,14 +12246,17 @@ class PraxisDynamicForm {
12244
12246
  id: this.pendingEntityId,
12245
12247
  });
12246
12248
  this.emitLoadingState('data', 'success', 'Dados carregados.');
12249
+ this.flushEntityHydrationState();
12247
12250
  }
12248
12251
  else {
12249
12252
  this.warnLog('Invalid entity data received:', data, { actionId: 'entity.load', throttleKey: 'praxis-dynamic-form:invalid-entity-data' });
12250
12253
  this.emitLoadingState('data', 'error', 'Dados inválidos recebidos.');
12254
+ this.flushEntityHydrationState();
12251
12255
  }
12252
12256
  },
12253
12257
  error: (err) => {
12254
12258
  this.entityHydrationPending = false;
12259
+ this.flushEntityHydrationState();
12255
12260
  this.emitLoadingState('data', 'error', 'Erro ao carregar dados.', err);
12256
12261
  },
12257
12262
  });
@@ -12270,8 +12275,18 @@ class PraxisDynamicForm {
12270
12275
  this.hydratedEntityId = this.pendingEntityId;
12271
12276
  this.debugLog('[PDF] loadEntity:initialValue', { id: this.pendingEntityId });
12272
12277
  this.emitLoadingState('data', 'success', 'Dados carregados.');
12278
+ this.flushEntityHydrationState();
12273
12279
  return true;
12274
12280
  }
12281
+ flushEntityHydrationState() {
12282
+ this.fieldLoaders?.forEach((loader) => loader.refreshGlobalStates({
12283
+ readonlyMode: this.effectiveReadonly,
12284
+ disabledMode: this.effectiveDisabledMode,
12285
+ presentationMode: this.presentationForLoader,
12286
+ visible: this.visibleGlobal,
12287
+ }));
12288
+ this.cdr.markForCheck();
12289
+ }
12275
12290
  buildFormFromConfig(options = { reason: 'initialization' }) {
12276
12291
  this.runtimeFieldMetadata = null;
12277
12292
  const fieldMetadata = this.getRuntimeFieldMetadata();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/dynamic-form",
3
- "version": "9.0.0-beta.54",
3
+ "version": "9.0.0-beta.55",
4
4
  "description": "Angular dynamic form engine for Praxis UI: metadata-driven forms, hooks, and services integrating @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -9,13 +9,13 @@
9
9
  "@angular/forms": "^21.0.0",
10
10
  "@angular/material": "^21.0.0",
11
11
  "@angular/router": "^21.0.0",
12
- "@praxisui/ai": "^9.0.0-beta.54",
13
- "@praxisui/dynamic-fields": "^9.0.0-beta.54",
14
- "@praxisui/metadata-editor": "^9.0.0-beta.54",
15
- "@praxisui/rich-content": "^9.0.0-beta.54",
16
- "@praxisui/settings-panel": "^9.0.0-beta.54",
17
- "@praxisui/visual-builder": "^9.0.0-beta.54",
18
- "@praxisui/core": "^9.0.0-beta.54",
12
+ "@praxisui/ai": "^9.0.0-beta.55",
13
+ "@praxisui/dynamic-fields": "^9.0.0-beta.55",
14
+ "@praxisui/metadata-editor": "^9.0.0-beta.55",
15
+ "@praxisui/rich-content": "^9.0.0-beta.55",
16
+ "@praxisui/settings-panel": "^9.0.0-beta.55",
17
+ "@praxisui/visual-builder": "^9.0.0-beta.55",
18
+ "@praxisui/core": "^9.0.0-beta.55",
19
19
  "rxjs": "^7.8.0"
20
20
  },
21
21
  "dependencies": {
@@ -1018,6 +1018,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
1018
1018
  private syncWithServer;
1019
1019
  private loadEntity;
1020
1020
  private hydrateEntityFromInitialValue;
1021
+ private flushEntityHydrationState;
1021
1022
  private buildFormFromConfig;
1022
1023
  private resetFormValueChangesSubscription;
1023
1024
  private resetDependencyPolicySubscription;