@praxisui/dynamic-form 9.0.5-rc.36 → 9.0.5-rc.37
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/README.md
CHANGED
|
@@ -31,15 +31,15 @@ Peer dependencies:
|
|
|
31
31
|
|
|
32
32
|
## Reactive backend determinations
|
|
33
33
|
|
|
34
|
-
When the exact request schema from `/schemas/filtered` publishes root-level `x-ui.reactiveDeterminations`, the form
|
|
34
|
+
When the exact request schema from `/schemas/filtered` publishes root-level `x-ui.reactiveDeterminations`, the form executes the Metadata-compiled backend capability after a valid source changes and applies server-derived draft values. After edit/create hydration, an already populated source is also validated before the draft can be reported as stable; an empty initial source settles as not applicable without an HTTP call. The projection is one closed graph: if any definition is malformed, the complete projection is rejected instead of partially executing. It remains backend-owned, tenant-neutral and transient: it is never copied to `FormConfig` and cannot be authored as a callback, URL or local write policy.
|
|
35
35
|
|
|
36
36
|
Triggers, source fields and request/response bindings use JSON Pointer. The runtime supports nested object bindings, accepts at most 64 total input/output bindings and rejects duplicate or hierarchically overlapping pointers. It resolves the capability only against the configured API origin and rejects protocol-relative, encoded-separator or cross-origin targets. Output bindings have one closed meaning: server-derived draft values replace their targets. Metadata cannot select `if-pristine`, `if-empty` or another incidental UI policy.
|
|
37
37
|
|
|
38
|
-
The runtime waits until hydration finishes and invalidates the previous generation as soon as a newer relevant value or validation status arrives, before the new debounce completes. `sourcePaths` is an intentional trigger subset of `inputs`: changing a non-trigger input invalidates the current draft, emits `input-changed-awaiting-trigger`, and blocks submit/navigation until a source trigger recalculates it. Every configured response path is resolved before target controls are written; all nested targets are populated before change observers are notified. Chained determinations receive one logical batch signal after the complete commit, rather than one execution per output control. Their dependency order uses hierarchical input/output JSON Pointer overlap, and the canonical projection rejects cycles and overlapping multi-writers. Downstream waits while upstream is pending and runs only after authoritative outputs or confirmed unchanged inputs. Null/undefined upstream outputs and failed, invalid or cancelled upstream generations settle downstream as skipped instead of invoking it with missing or stale data. If a control rejects a write, the runtime attempts to restore earlier writes and reports a terminal failure. This is a coordinated client-side batch, not a transaction or an ACID guarantee.
|
|
38
|
+
The runtime waits until hydration finishes and invalidates the previous generation as soon as a newer relevant value or validation status arrives, before the new debounce completes. `sourcePaths` is an intentional trigger subset of `inputs`: changing a non-trigger input invalidates the current draft, emits `input-changed-awaiting-trigger`, and blocks submit/navigation until a source trigger recalculates it. Every configured response path is resolved before target controls are written; all nested targets are populated before change observers are notified. Chained determinations receive one logical batch signal after the complete commit, rather than one execution per output control. Their dependency order uses hierarchical input/output JSON Pointer overlap, and the canonical projection rejects cycles and overlapping multi-writers. Downstream waits while upstream is pending and runs only after authoritative outputs or confirmed unchanged inputs. Null/undefined upstream outputs and failed, invalid or cancelled upstream generations settle downstream as skipped instead of invoking it with missing or stale data. If a control rejects a write, the runtime attempts to restore earlier writes and reports a terminal failure. This is a coordinated client-side batch, not a transaction or an ACID guarantee. Each capability remains a separate HTTP request, so an activation may occur between two chained previews; only a host command that resolves and revalidates one aggregate can claim snapshot consistency for the complete business decision.
|
|
39
39
|
|
|
40
40
|
A determination remains pending through debounce, asynchronous validation and capability execution. Submit attempts wait with a bounded timeout and repeat the stability check after hooks that may mutate controls. Output controls are disabled transiently as server-owned draft values, but remain present in `getRawValue()`, `valueChange` and submit payloads; this state is not persisted in `FormConfig`.
|
|
41
41
|
|
|
42
|
-
Hosts can observe metadata-only evidence through `reactiveDeterminationExecuted` and aggregate state through `reactiveDeterminationPendingChange`. Before navigating or closing a composed surface, inspect `hasPendingReactiveDeterminations()` and `hasUnsatisfiedReactiveDeterminations()` and await `waitForReactiveDeterminations(timeoutMs?)`; `false` means timeout or that the latest generation did not produce a current authoritative draft, and must block the transition. Cancelled pending correlations terminate as `skipped/superseded`. No event or method exposes form or response values.
|
|
42
|
+
Hosts can observe metadata-only evidence through `reactiveDeterminationExecuted` and aggregate state through `reactiveDeterminationPendingChange`. Before navigating or closing a composed surface, inspect `hasPendingReactiveDeterminations()` and `hasUnsatisfiedReactiveDeterminations()` and await `waitForReactiveDeterminations(timeoutMs?)`; `false` means timeout or that the latest generation did not produce a current authoritative draft, and must block the transition. A programmatic change to an owned output invalidates the previous authority and triggers a new determination. Cancelled pending correlations terminate as `skipped/superseded`. No event or method exposes form or response values.
|
|
43
43
|
|
|
44
44
|
Use `optionSource.dependsOn` for dependent option lists and workflow actions for persistent transitions. Recommendations, side-effect refresh and backend validation are separate capabilities. The final backend command must still authorize, recompute or validate fiscal, pricing, eligibility, compliance and approval outcomes.
|
|
45
45
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"generatedAt": "2026-08-19T01:49:06.767Z",
|
|
4
4
|
"packageName": "@praxisui/dynamic-form",
|
|
5
|
-
"packageVersion": "9.0.5-rc.
|
|
5
|
+
"packageVersion": "9.0.5-rc.37",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 2,
|
|
@@ -20,7 +20,7 @@ import * as i9 from '@angular/material/snack-bar';
|
|
|
20
20
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
21
21
|
import * as i19 from '@angular/material/badge';
|
|
22
22
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
23
|
-
import { map, Subscription, merge, timer, NEVER, EMPTY, defer, TimeoutError,
|
|
23
|
+
import { map, Subscription, merge, of, timer, NEVER, EMPTY, defer, TimeoutError, Subject, firstValueFrom, BehaviorSubject, throwError, combineLatest, debounceTime as debounceTime$1, takeUntil as takeUntil$1 } from 'rxjs';
|
|
24
24
|
import { filter, map as map$1, switchMap, take, timeout, throwIfEmpty, tap, catchError, ignoreElements, finalize, takeUntil, skip, debounceTime, startWith } from 'rxjs/operators';
|
|
25
25
|
import * as i1 from '@praxisui/core';
|
|
26
26
|
import { serializeEntityLookupValueForPayload, PraxisI18nService, PraxisIconButtonComponent, PraxisIconDirective, providePraxisI18nConfig, RULE_PROPERTY_SCHEMA, FIELD_METADATA_CAPABILITIES, migrateFormLayoutRule, PraxisJsonLogicService, normalizeFormLayoutItems, deepMerge, createDefaultFormConfig, normalizeFormConfig as normalizeFormConfig$1, ensureIds, createEmptyRichContentDocument, resolveHidden, resolveOrder, resolveSpan, projectGroupedCommandPartialRows, isPraxisRuntimeGlobalActionEffect, ASYNC_CONFIG_STORAGE, withFormConfigSections, createFieldLayoutItem, getFormLayoutFieldNames, LoggerService, createCorporateLoggerConfig, ConsoleLoggerSink, ResourceDiscoveryService, GlobalActionService, ResourceQuickConnectComponent, composeHeadersWithVersion, buildApiUrl, mapFieldDefinitionsToMetadata, reconcileFormConfig, materializeFormLayoutFromMetadata, syncWithServerMetadata, PRAXIS_LOADING_CTX, evaluateFieldAccess, normalizeControlTypeKey, normalizePraxisEffectPolicy, buildPraxisEffectDistinctKey, getFormColumnFieldNames, resolveGroupedCommandPartialRowSpans, resolveOffset, buildSchemaIdStorageKeySegment, buildSchemaId, fetchWithETag, resolveControlTypeAlias, getTextTransformer, MemoryCacheAdapter, LocalStorageCacheAdapter, SchemaMetadataClient, normalizeReactiveDeterminations, CONNECTION_STORAGE, API_URL, PRAXIS_LOADING_RENDERER, FORM_HOOKS_PRESETS, EmptyStateCardComponent, isValidFormConfig, ComponentMetadataRegistry, FieldControlType, isRequiredGlobalActionPayloadMissing, GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_ACTION_CATALOG, getGlobalActionCatalog, SURFACE_OPEN_I18N_NAMESPACE, getGlobalActionUiSchema, getRequiredGlobalActionPayloadKeys, hasMeaningfulGlobalActionPayloadValue, SurfaceOpenActionEditorComponent, SURFACE_OPEN_I18N_CONFIG, validateGlobalActionRefs, normalizeFormMetadata } from '@praxisui/core';
|
|
@@ -265,6 +265,7 @@ class ReactiveDeterminationRuntimeService {
|
|
|
265
265
|
const determinationKey = determinationKeyFor(definitionIndex, definition);
|
|
266
266
|
let generation = 0;
|
|
267
267
|
let lastSuccessfulFingerprint = null;
|
|
268
|
+
let lastSuccessfulOutputFingerprint = null;
|
|
268
269
|
const triggerControls = this.resolveControls(form, definition.trigger.sourcePaths);
|
|
269
270
|
const inputControls = this.resolveControls(form, definition.inputs.map((binding) => binding.fieldPath));
|
|
270
271
|
const targetControls = this.resolveControls(form, definition.outputs.map((binding) => binding.fieldPath));
|
|
@@ -296,11 +297,24 @@ class ReactiveDeterminationRuntimeService {
|
|
|
296
297
|
}
|
|
297
298
|
composite.add(this.claimTargets(form, targetControls));
|
|
298
299
|
const triggerControlSet = new Set(triggerControls);
|
|
299
|
-
const
|
|
300
|
+
const targetControlSet = new Set(targetControls);
|
|
301
|
+
const dependencyObservedControls = [...new Set([...triggerControls, ...inputControls])];
|
|
302
|
+
const directlyObservedControls = [
|
|
303
|
+
...new Set([...dependencyObservedControls, ...targetControls]),
|
|
304
|
+
];
|
|
300
305
|
const committedControls$ = this.getOrCreateCommittedControls(form);
|
|
301
|
-
const changes$ = merge(
|
|
306
|
+
const changes$ = merge(of({
|
|
307
|
+
shouldExecute: triggerControls.some((control) => hasMeaningfulSourceValue(control.value)),
|
|
308
|
+
initial: true,
|
|
309
|
+
}), ...directlyObservedControls.flatMap((control) => [control.valueChanges, control.statusChanges].map((changes) => changes.pipe(filter(() => !this.publishingCommitByForm.has(form)), map$1(() => ({
|
|
310
|
+
shouldExecute: triggerControlSet.has(control) || targetControlSet.has(control),
|
|
311
|
+
initial: false,
|
|
312
|
+
}))))), committedControls$.pipe(filter((committedControls) => dependencyObservedControls.some((control) => committedControls.has(control))), map$1((committedControls) => ({
|
|
313
|
+
shouldExecute: triggerControls.some((control) => committedControls.has(control)),
|
|
314
|
+
initial: false,
|
|
315
|
+
}))));
|
|
302
316
|
const determinationSubscription = changes$
|
|
303
|
-
.pipe(map$1((shouldExecute) => {
|
|
317
|
+
.pipe(map$1(({ shouldExecute, initial }) => {
|
|
304
318
|
const currentGeneration = ++generation;
|
|
305
319
|
const correlationId = createCorrelationId();
|
|
306
320
|
// Publish the new authority before switchMap finalizes the old one.
|
|
@@ -308,6 +322,10 @@ class ReactiveDeterminationRuntimeService {
|
|
|
308
322
|
if (shouldExecute) {
|
|
309
323
|
publishEvent(this.event(definition, 'pending', correlationId, 0));
|
|
310
324
|
}
|
|
325
|
+
else if (initial) {
|
|
326
|
+
this.satisfyGeneration(form, determinationKey, currentGeneration);
|
|
327
|
+
publishEvent(this.event(definition, 'skipped', correlationId, 0, 'initial-source-empty'));
|
|
328
|
+
}
|
|
311
329
|
else {
|
|
312
330
|
publishEvent(this.event(definition, 'skipped', correlationId, 0, 'input-changed-awaiting-trigger'));
|
|
313
331
|
}
|
|
@@ -340,7 +358,10 @@ class ReactiveDeterminationRuntimeService {
|
|
|
340
358
|
publishEvent(this.event(definition, 'error', signal.correlationId, 0, 'request-binding-invalid'));
|
|
341
359
|
return EMPTY;
|
|
342
360
|
}
|
|
343
|
-
|
|
361
|
+
const currentOutputFingerprint = this.buildOutputFingerprint(form, definition);
|
|
362
|
+
if (invocation.fingerprint === lastSuccessfulFingerprint &&
|
|
363
|
+
currentOutputFingerprint !== null &&
|
|
364
|
+
currentOutputFingerprint === lastSuccessfulOutputFingerprint) {
|
|
344
365
|
this.satisfyGeneration(form, determinationKey, signal.generation);
|
|
345
366
|
publishEvent(this.event(definition, 'skipped', signal.correlationId, 0, 'unchanged-inputs'));
|
|
346
367
|
return EMPTY;
|
|
@@ -358,6 +379,7 @@ class ReactiveDeterminationRuntimeService {
|
|
|
358
379
|
this.commit(form, commit);
|
|
359
380
|
this.satisfyGeneration(form, determinationKey, signal.generation);
|
|
360
381
|
lastSuccessfulFingerprint = invocation.fingerprint;
|
|
382
|
+
lastSuccessfulOutputFingerprint = this.buildOutputFingerprint(form, definition);
|
|
361
383
|
publishEvent(this.event(definition, 'success', signal.correlationId, Date.now() - startedAt, undefined, commit.map((entry) => entry.targetPath)));
|
|
362
384
|
}), catchError((error) => {
|
|
363
385
|
if (this.isCurrentGeneration(form, determinationKey, signal.generation)) {
|
|
@@ -467,6 +489,16 @@ class ReactiveDeterminationRuntimeService {
|
|
|
467
489
|
}
|
|
468
490
|
return entries;
|
|
469
491
|
}
|
|
492
|
+
buildOutputFingerprint(form, definition) {
|
|
493
|
+
const values = [];
|
|
494
|
+
for (const binding of definition.outputs) {
|
|
495
|
+
const control = form.get(jsonPointerSegments(binding.fieldPath));
|
|
496
|
+
if (!control)
|
|
497
|
+
return null;
|
|
498
|
+
values.push(control.value);
|
|
499
|
+
}
|
|
500
|
+
return stableFingerprint(values);
|
|
501
|
+
}
|
|
470
502
|
commit(form, entries) {
|
|
471
503
|
// Reactive Determination outputs have one closed semantic: server-derived
|
|
472
504
|
// draft values. Metadata cannot choose an overwrite policy.
|
|
@@ -703,6 +735,15 @@ function stableFingerprint(value) {
|
|
|
703
735
|
return String(value);
|
|
704
736
|
}
|
|
705
737
|
}
|
|
738
|
+
function hasMeaningfulSourceValue(value) {
|
|
739
|
+
if (value === null || value === undefined)
|
|
740
|
+
return false;
|
|
741
|
+
if (typeof value === 'string')
|
|
742
|
+
return value.trim().length > 0;
|
|
743
|
+
if (Array.isArray(value))
|
|
744
|
+
return value.length > 0;
|
|
745
|
+
return true;
|
|
746
|
+
}
|
|
706
747
|
function createCorrelationId() {
|
|
707
748
|
const runtimeCrypto = globalThis.crypto;
|
|
708
749
|
if (runtimeCrypto && typeof runtimeCrypto.randomUUID === 'function') {
|
|
@@ -11112,6 +11153,12 @@ class PraxisDynamicFormDestroyedError extends Error {
|
|
|
11112
11153
|
const FORM_CONFIG_LOAD_TIMEOUT_MS = 1200;
|
|
11113
11154
|
const FORM_INPUT_PREFS_LOAD_TIMEOUT_MS = 1200;
|
|
11114
11155
|
const SCHEMA_GLOBAL_CONFIG_READY_TIMEOUT_MS = 1200;
|
|
11156
|
+
class InvalidReactiveDeterminationProjectionError extends Error {
|
|
11157
|
+
constructor() {
|
|
11158
|
+
super('Invalid x-ui.reactiveDeterminations projection.');
|
|
11159
|
+
this.name = 'InvalidReactiveDeterminationProjectionError';
|
|
11160
|
+
}
|
|
11161
|
+
}
|
|
11115
11162
|
const PRAXIS_DYNAMIC_FORM_FALLBACK_LOGGER = new LoggerService(createCorporateLoggerConfig('dev'), [new ConsoleLoggerSink()]);
|
|
11116
11163
|
class PraxisDynamicForm {
|
|
11117
11164
|
crud;
|
|
@@ -20058,15 +20105,24 @@ class PraxisDynamicForm {
|
|
|
20058
20105
|
if (hooks && typeof hooks === 'object') {
|
|
20059
20106
|
this.schemaRootHooks = hooks;
|
|
20060
20107
|
}
|
|
20108
|
+
const rawDeterminations = rootUi && typeof rootUi === 'object'
|
|
20109
|
+
? rootUi.reactiveDeterminations
|
|
20110
|
+
: undefined;
|
|
20061
20111
|
const normalizedDeterminations = ctx.schemaType === 'request'
|
|
20062
|
-
? normalizeReactiveDeterminations(
|
|
20063
|
-
? rootUi.reactiveDeterminations
|
|
20064
|
-
: undefined)
|
|
20112
|
+
? normalizeReactiveDeterminations(rawDeterminations)
|
|
20065
20113
|
: [];
|
|
20114
|
+
if (ctx.schemaType === 'request' && rawDeterminations !== undefined && (!Array.isArray(rawDeterminations)
|
|
20115
|
+
|| normalizedDeterminations.length !== rawDeterminations.length)) {
|
|
20116
|
+
throw new InvalidReactiveDeterminationProjectionError();
|
|
20117
|
+
}
|
|
20066
20118
|
this.schemaRootReactiveDeterminations = normalizedDeterminations.filter((definition) => !this.schemaRootOperationId
|
|
20067
20119
|
|| definition.scope.schemaOperationId === this.schemaRootOperationId);
|
|
20068
20120
|
}
|
|
20069
|
-
catch {
|
|
20121
|
+
catch (error) {
|
|
20122
|
+
if (error instanceof InvalidReactiveDeterminationProjectionError) {
|
|
20123
|
+
throw error;
|
|
20124
|
+
}
|
|
20125
|
+
}
|
|
20070
20126
|
const schemaId = buildSchemaId(schemaContext);
|
|
20071
20127
|
this.lastSchemaMeta = { schemaId, serverHash: entry.schemaHash, context: schemaContext };
|
|
20072
20128
|
this.schemaCache = defs;
|
|
@@ -20091,6 +20147,9 @@ class PraxisDynamicForm {
|
|
|
20091
20147
|
return defs;
|
|
20092
20148
|
}
|
|
20093
20149
|
catch (error) {
|
|
20150
|
+
if (error instanceof InvalidReactiveDeterminationProjectionError) {
|
|
20151
|
+
throw error;
|
|
20152
|
+
}
|
|
20094
20153
|
if (this.isDestroyed || error instanceof PraxisDynamicFormDestroyedError) {
|
|
20095
20154
|
throw new PraxisDynamicFormDestroyedError();
|
|
20096
20155
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-form",
|
|
3
|
-
"version": "9.0.5-rc.
|
|
3
|
+
"version": "9.0.5-rc.37",
|
|
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.5-rc.
|
|
13
|
-
"@praxisui/dynamic-fields": "^9.0.5-rc.
|
|
14
|
-
"@praxisui/metadata-editor": "^9.0.5-rc.
|
|
15
|
-
"@praxisui/rich-content": "^9.0.5-rc.
|
|
16
|
-
"@praxisui/settings-panel": "^9.0.5-rc.
|
|
17
|
-
"@praxisui/visual-builder": "^9.0.5-rc.
|
|
18
|
-
"@praxisui/core": "^9.0.5-rc.
|
|
12
|
+
"@praxisui/ai": "^9.0.5-rc.37",
|
|
13
|
+
"@praxisui/dynamic-fields": "^9.0.5-rc.37",
|
|
14
|
+
"@praxisui/metadata-editor": "^9.0.5-rc.37",
|
|
15
|
+
"@praxisui/rich-content": "^9.0.5-rc.37",
|
|
16
|
+
"@praxisui/settings-panel": "^9.0.5-rc.37",
|
|
17
|
+
"@praxisui/visual-builder": "^9.0.5-rc.37",
|
|
18
|
+
"@praxisui/core": "^9.0.5-rc.37",
|
|
19
19
|
"rxjs": "^7.8.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
@@ -78,13 +78,13 @@ Este documento e a referencia canonica da API JSON de praxis-dynamic-form.
|
|
|
78
78
|
## Backend-owned reactive determinations
|
|
79
79
|
|
|
80
80
|
- `x-ui.reactiveDeterminations` e lido exclusivamente do request schema exato retornado por `/schemas/filtered`; nao integra nem e persistido em `FormConfig`.
|
|
81
|
-
- O runtime aceita somente o contrato fechado normalizado por `normalizeReactiveDeterminations`: trigger `on-change`, scope de create/edit, capability `POST`, no maximo 64 bindings totais, JSON Pointers sem duplicidade ou sobreposicao hierarquica e provenance estrutural.
|
|
81
|
+
- O runtime aceita somente o contrato fechado normalizado por `normalizeReactiveDeterminations`: trigger `on-change`, scope de create/edit, capability `POST`, no maximo 64 bindings totais, JSON Pointers sem duplicidade ou sobreposicao hierarquica e provenance estrutural. A lista e um unico grafo canonico: uma definicao invalida rejeita a projecao inteira, sem execucao parcial.
|
|
82
82
|
- `href`, request/response schemas e bindings sao compilados pelo Praxis Metadata. O Angular nao aceita callback, headers, method, URL ou write policy autorados pelo host/editor/LLM.
|
|
83
83
|
- Cada valor ou status relevante invalida imediatamente a geracao anterior, antes do debounce da proxima chamada; somente a geracao ainda autoritativa pode aplicar a resposta.
|
|
84
84
|
- Hrefs protocol-relative, com separadores codificados ou resolvidos fora da origem configurada da API falham de forma fechada.
|
|
85
85
|
- A resposta so e aplicada quando todos os bindings existem. Os controles alvo aninhados sao preenchidos antes da notificacao dos observers; determinacoes encadeadas recebem um unico sinal logico depois do commit completo, nao um disparo por output. A ordem da cadeia e derivada dos bindings existentes: downstream aguarda a geracao upstream e so executa apos outputs autoritativos ou inputs confirmados como inalterados. Output upstream `null`/`undefined` e geracao upstream com erro, invalida ou cancelada encerram downstream como `skipped`, sem chamada com dado ausente ou obsoleto. Se um controle rejeitar a escrita, o runtime tenta restaurar os anteriores e emite falha terminal. O resultado tem semantica fechada server-derived e substitui o draft alvo; o commit e um batch coordenado no cliente, sem promessa de transacao ACID.
|
|
86
86
|
- O estado permanece pending durante debounce, validacao assincrona e execucao. Uma tentativa de submit aguarda estabilizacao com timeout e repete a espera depois de hooks que podem alterar controles.
|
|
87
|
-
- Controles de output sao desabilitados transitoriamente como valores server-derived, sem mutar/persistir `FormConfig`; seus valores continuam em `getRawValue()`, `valueChange` e no payload de submit.
|
|
87
|
+
- Controles de output sao desabilitados transitoriamente como valores server-derived, sem mutar/persistir `FormConfig`; seus valores continuam em `getRawValue()`, `valueChange` e no payload de submit. Depois da hidratacao, fonte inicialmente preenchida entra em `pending` e e determinada antes de o draft ser considerado estavel; fonte inicial vazia encerra como `skipped/initial-source-empty`, satisfeita e sem HTTP. Alteracao programatica posterior em output owned invalida a autoridade anterior e reexecuta a capability.
|
|
88
88
|
- `reactiveDeterminationExecuted` publica apenas IDs, paths, provenance, estado (`pending`, `success`, `skipped` ou `error`), duracao, correlation ID e motivo. Valores do formulario e da resposta nao participam da evidencia.
|
|
89
89
|
- Hosts compostos recebem estado agregado por `reactiveDeterminationPendingChange`. Antes de navegar ou fechar, devem consultar `hasPendingReactiveDeterminations()` e `hasUnsatisfiedReactiveDeterminations()` e aguardar `waitForReactiveDeterminations(timeoutMs?)`; retorno `false` indica timeout ou geração mais recente sem draft autoritativo e bloqueia a transição. Correlações canceladas recebem terminal `skipped/superseded`.
|
|
90
90
|
- Cascatas de opcoes continuam em `optionSource.dependsOn`; recommendations, side-effect refresh, backend validation e workflow actions permanecem capacidades separadas.
|