@praxisui/dynamic-form 10.0.0-rc.43 → 10.0.0-rc.45
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 +32 -0
- package/ai/component-registry.json +1248 -52
- package/docs/dynamic-form-stepper-implementation-plan.md +83 -0
- package/docs/hot-metadata-updates.md +8 -2
- package/fesm2022/praxisui-dynamic-form.mjs +425 -62
- package/package.json +8 -8
- package/src/lib/praxis-dynamic-form.json-api.md +17 -4
- package/types/praxisui-dynamic-form.d.ts +37 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-form",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.45",
|
|
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": "^10.0.0-rc.
|
|
13
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
14
|
-
"@praxisui/metadata-editor": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/rich-content": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
17
|
-
"@praxisui/visual-builder": "^10.0.0-rc.
|
|
18
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
12
|
+
"@praxisui/ai": "^10.0.0-rc.45",
|
|
13
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.45",
|
|
14
|
+
"@praxisui/metadata-editor": "^10.0.0-rc.45",
|
|
15
|
+
"@praxisui/rich-content": "^10.0.0-rc.45",
|
|
16
|
+
"@praxisui/settings-panel": "^10.0.0-rc.45",
|
|
17
|
+
"@praxisui/visual-builder": "^10.0.0-rc.45",
|
|
18
|
+
"@praxisui/core": "^10.0.0-rc.45",
|
|
19
19
|
"rxjs": "^7.8.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
@@ -38,7 +38,7 @@ source_of_truth:
|
|
|
38
38
|
- "projects/praxis-core/src/lib/models/form/rule-property.schema.ts"
|
|
39
39
|
- "projects/praxis-dynamic-form/docs/layout-items-visual-blocks.md"
|
|
40
40
|
source_of_truth_last_verified: "2026-08-12"
|
|
41
|
-
last_updated: "2026-
|
|
41
|
+
last_updated: "2026-11-01"
|
|
42
42
|
toc: true
|
|
43
43
|
sidebar: true
|
|
44
44
|
tags:
|
|
@@ -280,8 +280,10 @@ O host deve persistir `formSubmit.formData` para fluxos normais. `formSubmit.raw
|
|
|
280
280
|
`initialValue` is an active component input for host-authored or complementary
|
|
281
281
|
field values. In `edit/view`, the runtime applies it without redefining the
|
|
282
282
|
canonical remote entity loaded through `resourcePath` and `resourceId`. In
|
|
283
|
-
`create`, including item-scoped command forms, it
|
|
284
|
-
|
|
283
|
+
`create`, including item-scoped command forms, it supplies explicit initial
|
|
284
|
+
values: a contextual `resourceId` never triggers entity hydration. Ordinary
|
|
285
|
+
create without an object seed may still use schema/config defaults; an explicit
|
|
286
|
+
object, including `{}`, suppresses omitted defaults as described below.
|
|
285
287
|
|
|
286
288
|
| Binding/Path | Type | Required | Source | Runtime normalization | Notes |
|
|
287
289
|
| --- | --- | --- | --- | --- | --- |
|
|
@@ -626,7 +628,18 @@ No ecossistema Praxis, ele funciona tanto como runtime final quanto como superfi
|
|
|
626
628
|
#### Component inputs
|
|
627
629
|
|
|
628
630
|
`initialValue` is part of the public runtime contract and accepts
|
|
629
|
-
`Record<string, unknown> | null` for local initial values.
|
|
631
|
+
`Record<string, unknown> | null` for local initial values. In `mode='create'`, an
|
|
632
|
+
explicit object, including `{}`, is authoritative: `false`/`null` survive and
|
|
633
|
+
omitted fields do not regain schema/config defaults. Metadata/config rebuilds
|
|
634
|
+
preserve compatible edits and suppress defaults on newly added omitted fields.
|
|
635
|
+
Without an object seed (absent or null), ordinary create retains defaults.
|
|
636
|
+
|
|
637
|
+
This input does not select a copy policy or transport values across routes.
|
|
638
|
+
The backend prepares `duplicate-draft`; CRUD clones it and passes it into the
|
|
639
|
+
CREATE request form, retaining POST creation after confirmation. Cancel does not
|
|
640
|
+
persist. The usual submit pipeline still applies, so an untouched optional null
|
|
641
|
+
may be omitted from the request. Remote edit/view hydration retains its own
|
|
642
|
+
canonical read lifecycle; this create rule does not replace it.
|
|
630
643
|
|
|
631
644
|
| Input | Tipo | Default | Status | Runtime notes |
|
|
632
645
|
| --- | --- | --- | --- | --- |
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _praxisui_core from '@praxisui/core';
|
|
2
|
+
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormConfigWithSections, FormLayoutItem, ReactiveDeterminationDefinition, ReactiveDeterminationExecutionEvent, FormActionButton, PraxisRuleViolationDiagnostic, DynamicFormMode, PraxisRuntimeFormValueTargetIdentity, PraxisRuntimeFormValueEligibility, PraxisRuntimeFormValueProposal, PraxisRuntimeFormValueApplyMode, PraxisRuntimeFormValuePreviewResult, PraxisRuntimeFormValueApplyRequest, PraxisRuntimeFormValueApplyReceipt, PraxisRuntimeFormValueUndoReceipt, AiCapability, DynamicFormLayoutScope, BackConfig, FormPresentationConfig, EmptyStateTone, EmptyStateVariant, EmptyStateAlignment, EmptyStateDensity, EmptyStateIconContainer, FormPresentationPreset, PraxisRuntimeFormValueTargetPort, RichBlockHostCapabilities, ApiEndpoint, ApiUrlEntry, FormLayoutMode, FormLayoutOptions, DynamicFormLayoutPolicy, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, FormPayloadPreviewEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, FormLayoutTabItem, RichContentDocument, JsonLogicRecord, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, EnterpriseRuntimeContextService, FormLayoutTabsAppearance, FormSectionHeaderAction, FormSectionHeaderConfig, PraxisRuntimeComponentObservationEnvelope, FormConfigState, JsonLogicExpression, FormHelpPresentationConfig, GlobalActionCatalogEntry, PraxisRuntimeConditionalEffectRule, PraxisRuntimeGlobalActionEffect, SurfaceOpenPayload, GlobalActionField, PraxisEffectPolicy, FieldDefinition, ComponentDocMeta, DiscoveredResourceOption, Breakpoint, DomainRuleRequestOptions, DomainRuleService, DomainRuleMaterialization, SchemaIdParams, CompiledDynamicFormSchema, TableConfig, SurfaceOpenActionEditorComponent, IconPickerService, GlobalActionRef, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest, GovernedPagePreviewWidgetAdapter, WidgetInstance } from '@praxisui/core';
|
|
3
|
+
export { CompiledDynamicFormSchema, DynamicFormLayoutScope, DynamicFormMode } from '@praxisui/core';
|
|
1
4
|
import * as i0 from '@angular/core';
|
|
2
5
|
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, OnInit, ChangeDetectorRef, NgZone, Provider, AfterViewInit, ElementRef } from '@angular/core';
|
|
3
6
|
import { HttpClient } from '@angular/common/http';
|
|
@@ -6,9 +9,6 @@ import { Router, ActivatedRoute } from '@angular/router';
|
|
|
6
9
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
10
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
8
11
|
import { CdkDragStart, CdkDragMove, CdkDragEnd, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
9
|
-
import * as _praxisui_core from '@praxisui/core';
|
|
10
|
-
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormConfigWithSections, FormLayoutItem, ReactiveDeterminationDefinition, ReactiveDeterminationExecutionEvent, FormActionButton, DynamicFormMode, PraxisRuntimeFormValueTargetIdentity, PraxisRuntimeFormValueEligibility, PraxisRuntimeFormValueProposal, PraxisRuntimeFormValueApplyMode, PraxisRuntimeFormValuePreviewResult, PraxisRuntimeFormValueApplyRequest, PraxisRuntimeFormValueApplyReceipt, PraxisRuntimeFormValueUndoReceipt, AiCapability, DynamicFormLayoutScope, BackConfig, FormPresentationConfig, EmptyStateTone, EmptyStateVariant, EmptyStateAlignment, EmptyStateDensity, EmptyStateIconContainer, FormPresentationPreset, PraxisRuntimeFormValueTargetPort, RichBlockHostCapabilities, ApiEndpoint, ApiUrlEntry, FormLayoutMode, FormLayoutOptions, DynamicFormLayoutPolicy, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, FormPayloadPreviewEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, FormLayoutTabItem, RichContentDocument, JsonLogicRecord, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, EnterpriseRuntimeContextService, FormLayoutTabsAppearance, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, JsonLogicExpression, FormHelpPresentationConfig, GlobalActionCatalogEntry, PraxisRuntimeConditionalEffectRule, PraxisRuntimeGlobalActionEffect, SurfaceOpenPayload, GlobalActionField, PraxisEffectPolicy, FieldDefinition, ComponentDocMeta, DiscoveredResourceOption, Breakpoint, DomainRuleRequestOptions, DomainRuleService, DomainRuleMaterialization, SchemaIdParams, CompiledDynamicFormSchema, TableConfig, SurfaceOpenActionEditorComponent, IconPickerService, GlobalActionRef, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest, GovernedPagePreviewWidgetAdapter, WidgetInstance } from '@praxisui/core';
|
|
11
|
-
export { CompiledDynamicFormSchema, DynamicFormLayoutScope, DynamicFormMode } from '@praxisui/core';
|
|
12
12
|
import * as rxjs from 'rxjs';
|
|
13
13
|
import { Observable, Subscription, BehaviorSubject } from 'rxjs';
|
|
14
14
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
@@ -445,8 +445,13 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
445
445
|
private buttonStylesCache;
|
|
446
446
|
private invalidSubmitHintCacheSignature;
|
|
447
447
|
private invalidSubmitHintCacheValue;
|
|
448
|
-
|
|
449
|
-
|
|
448
|
+
get submitErrorTitle(): string;
|
|
449
|
+
get ruleViolationTitle(): string;
|
|
450
|
+
get multiRuleViolationTitle(): string;
|
|
451
|
+
get inspectRuleLabel(): string;
|
|
452
|
+
get violationStageLabel(): string;
|
|
453
|
+
get violationSourceLabel(): string;
|
|
454
|
+
get violationLineageLabel(): string;
|
|
450
455
|
/** Configuration object describing form action buttons */
|
|
451
456
|
actions?: FormConfig['actions'];
|
|
452
457
|
/** Whether the actions are rendered inside an editorial visual context */
|
|
@@ -457,6 +462,10 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
457
462
|
formIsValid: boolean;
|
|
458
463
|
/** Optional error message displayed above the actions */
|
|
459
464
|
submitError?: string | null;
|
|
465
|
+
/** Structured rule-violation diagnostics (`422` / `409`) for explainable X-Ray display */
|
|
466
|
+
ruleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
467
|
+
/** Whether the contextual Decision Inspector drawer can be opened for the current violation */
|
|
468
|
+
canInspectDecision: boolean;
|
|
460
469
|
/** Visible required fields that currently block submit */
|
|
461
470
|
invalidRequiredFieldLabels: string[];
|
|
462
471
|
/** Suppresses invalid-form copy while a host runtime is still hydrating data. */
|
|
@@ -467,6 +476,8 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
467
476
|
actionOverrides?: Record<string, Record<string, any>>;
|
|
468
477
|
/** Emitted whenever a form action button is triggered */
|
|
469
478
|
action: EventEmitter<PraxisFormActionEvent>;
|
|
479
|
+
/** Emitted when the user requests contextual inspection of an applied business rule */
|
|
480
|
+
inspectDecision: EventEmitter<PraxisRuleViolationDiagnostic | undefined>;
|
|
470
481
|
private shortcutDisposers;
|
|
471
482
|
constructor(shortcuts: KeyboardShortcutService);
|
|
472
483
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -493,13 +504,20 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
493
504
|
getButtonStyles(button: FormActionButton): Record<string, any> | null;
|
|
494
505
|
isActionButtonDisabled(button: FormActionButton): boolean;
|
|
495
506
|
shouldShowInvalidSubmitHint(): boolean;
|
|
507
|
+
getPrimaryRuleViolation(): PraxisRuleViolationDiagnostic | undefined;
|
|
508
|
+
getAdditionalRuleViolations(): readonly PraxisRuleViolationDiagnostic[];
|
|
509
|
+
hasMultipleRuleViolations(): boolean;
|
|
510
|
+
hasRuleViolationProvenance(target?: PraxisRuleViolationDiagnostic | undefined): boolean;
|
|
511
|
+
formatRuleStage(stage: string): string;
|
|
512
|
+
formatRuleSource(source: string): string;
|
|
513
|
+
onInspectDecisionClick(event: Event, violation?: PraxisRuleViolationDiagnostic): void;
|
|
496
514
|
getInvalidSubmitHint(): string;
|
|
497
515
|
private applyOverrides;
|
|
498
516
|
private registerActionShortcuts;
|
|
499
517
|
private resolveButtonActionId;
|
|
500
518
|
private isSecondaryButton;
|
|
501
519
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisFormActionsComponent, never>;
|
|
502
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFormActionsComponent, "praxis-form-actions", never, { "actions": { "alias": "actions"; "required": false; }; "editorialVisualContext": { "alias": "editorialVisualContext"; "required": false; }; "isSubmitting": { "alias": "isSubmitting"; "required": false; }; "formIsValid": { "alias": "formIsValid"; "required": false; }; "submitError": { "alias": "submitError"; "required": false; }; "invalidRequiredFieldLabels": { "alias": "invalidRequiredFieldLabels"; "required": false; }; "suppressInvalidSubmitHint": { "alias": "suppressInvalidSubmitHint"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "actionOverrides": { "alias": "actionOverrides"; "required": false; }; }, { "action": "action"; }, never, never, true, never>;
|
|
520
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFormActionsComponent, "praxis-form-actions", never, { "actions": { "alias": "actions"; "required": false; }; "editorialVisualContext": { "alias": "editorialVisualContext"; "required": false; }; "isSubmitting": { "alias": "isSubmitting"; "required": false; }; "formIsValid": { "alias": "formIsValid"; "required": false; }; "submitError": { "alias": "submitError"; "required": false; }; "ruleViolations": { "alias": "ruleViolations"; "required": false; }; "canInspectDecision": { "alias": "canInspectDecision"; "required": false; }; "invalidRequiredFieldLabels": { "alias": "invalidRequiredFieldLabels"; "required": false; }; "suppressInvalidSubmitHint": { "alias": "suppressInvalidSubmitHint"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "actionOverrides": { "alias": "actionOverrides"; "required": false; }; }, { "action": "action"; "inspectDecision": "inspectDecision"; }, never, never, true, never>;
|
|
503
521
|
}
|
|
504
522
|
|
|
505
523
|
/**
|
|
@@ -788,6 +806,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisR
|
|
|
788
806
|
private readonly aiTurnOrchestrator;
|
|
789
807
|
private readonly jsonLogic;
|
|
790
808
|
private readonly resourceDiscovery;
|
|
809
|
+
private readonly runtimeObservationRegistry;
|
|
810
|
+
private runtimeObservationRegistration;
|
|
791
811
|
private readonly aiAssistantSessionEffect;
|
|
792
812
|
private readonly globalActions;
|
|
793
813
|
private readonly optionRegistry;
|
|
@@ -797,6 +817,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisR
|
|
|
797
817
|
private effectiveActionsCacheOverride?;
|
|
798
818
|
private invalidRequiredFieldLabelsCache;
|
|
799
819
|
private invalidRequiredFieldLabelsSignature;
|
|
820
|
+
readonly formVisualBlockSurfaceCapabilities: _praxisui_core.ClientSurfaceCapabilities;
|
|
800
821
|
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
801
822
|
resourcePath?: string;
|
|
802
823
|
resourceId?: string | number;
|
|
@@ -964,6 +985,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisR
|
|
|
964
985
|
get effectiveReadonly(): boolean;
|
|
965
986
|
get effectiveDisabledMode(): boolean | null;
|
|
966
987
|
get effectiveFormIsValid(): boolean;
|
|
988
|
+
private hasBlockingClientValidationErrors;
|
|
967
989
|
protected get configControlLabel(): string;
|
|
968
990
|
protected get disconnectControlLabel(): string;
|
|
969
991
|
get invalidRequiredFieldLabels(): string[];
|
|
@@ -1099,6 +1121,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisR
|
|
|
1099
1121
|
private consumingSuppressedCommandEvaluation;
|
|
1100
1122
|
private readonly submitFieldErrorSubscriptions;
|
|
1101
1123
|
private activeSubmitErrorDetails;
|
|
1124
|
+
activeRuleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
1125
|
+
private readonly decisionInspector;
|
|
1102
1126
|
private reactiveDeterminationSubscription;
|
|
1103
1127
|
private reactiveDeterminationScheduledBuildId;
|
|
1104
1128
|
private dependencyPolicySubscription;
|
|
@@ -1463,7 +1487,12 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisR
|
|
|
1463
1487
|
private clearSubmitFieldErrors;
|
|
1464
1488
|
private clearSubmitFieldError;
|
|
1465
1489
|
private resetSubmitErrorState;
|
|
1490
|
+
canInspectSubmitRuleViolations(): boolean;
|
|
1491
|
+
openSubmitDecisionInspector(violation?: PraxisRuleViolationDiagnostic): void;
|
|
1466
1492
|
private resolveSubmitErrorMessage;
|
|
1493
|
+
private isGenericEnvelopeErrorMessage;
|
|
1494
|
+
private formatStructuredSubmitErrorMessage;
|
|
1495
|
+
private resolveSubmitErrorControl;
|
|
1467
1496
|
private normalizeSubmitErrorTarget;
|
|
1468
1497
|
private navigateAfterSave;
|
|
1469
1498
|
private shouldConfirmCancelOnDirty;
|
|
@@ -1493,6 +1522,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisR
|
|
|
1493
1522
|
private initializeAiAssistantController;
|
|
1494
1523
|
private buildAiAssistantContextItems;
|
|
1495
1524
|
private buildAiAssistantContextSnapshot;
|
|
1525
|
+
buildRuntimeComponentObservation(): PraxisRuntimeComponentObservationEnvelope;
|
|
1526
|
+
private registerRuntimeComponentObservationProvider;
|
|
1496
1527
|
private syncAiAssistantSession;
|
|
1497
1528
|
private hasAiAssistantSessionState;
|
|
1498
1529
|
private resolveAiAssistantSessionId;
|