@praxisui/dynamic-form 10.0.0-rc.5 → 10.0.0-rc.51
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 +126 -2
- package/ai/component-registry.json +1936 -239
- package/docs/custom-fields-enterprise-review.md +229 -0
- package/docs/dynamic-form-authoring-document-semantics.md +68 -2
- package/docs/dynamic-form-stepper-implementation-plan.md +83 -0
- package/docs/evidence/form-authoring-635-20261023/final-review.md +46 -0
- package/docs/evidence/form-authoring-635-20261023/independent-review-vb-form.md +50 -0
- package/docs/evidence/form-authoring-635-20261023/validation.md +76 -0
- package/docs/evidence/p1-authoring-20261022/validation.md +134 -0
- package/docs/governed-page-widget-adapter.md +58 -0
- package/docs/hot-metadata-updates.md +24 -2
- package/docs/schema-driven-layout-materialization-rfc.md +20 -20
- package/fesm2022/praxisui-dynamic-form.mjs +6085 -1255
- package/package.json +8 -8
- package/src/lib/config-editor/praxis-dynamic-form-config-editor.json-api.md +11 -3
- package/src/lib/praxis-dynamic-form.json-api.md +48 -11
- package/types/praxisui-dynamic-form.d.ts +334 -41
- package/fesm2022/praxisui-dynamic-form-dynamic-form-agentic-authoring-turn-flow-w9V0aQ9B.mjs +0 -539
|
@@ -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, AiCapability, BackConfig, FormPresentationConfig, EmptyStateTone, EmptyStateVariant, EmptyStateAlignment, EmptyStateDensity, EmptyStateIconContainer, FormPresentationPreset, 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, Breakpoint, DomainRuleRequestOptions, DomainRuleService, DomainRuleMaterialization, SchemaIdParams, CompiledDynamicFormSchema, TableConfig, SurfaceOpenActionEditorComponent, IconPickerService, GlobalActionRef, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
11
|
-
export { CompiledDynamicFormSchema, 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';
|
|
@@ -225,6 +225,7 @@ declare class DynamicFormLayoutService {
|
|
|
225
225
|
}): LayoutResult;
|
|
226
226
|
private resolvePath;
|
|
227
227
|
resolvePathByIds(config: FormConfig, ids: IdPath): FieldPath;
|
|
228
|
+
private resolveExplicitColSpan;
|
|
228
229
|
private createRowsFromFields;
|
|
229
230
|
private createCompactPresentationRowsFromFields;
|
|
230
231
|
private resolveCompactPresentationSpan;
|
|
@@ -375,7 +376,7 @@ declare class ReactiveDeterminationRuntimeService {
|
|
|
375
376
|
waitForStable(form: FormGroup, timeoutMs?: number): Promise<boolean>;
|
|
376
377
|
observePending(form: FormGroup, observer: (pending: boolean) => void): Subscription;
|
|
377
378
|
isOwnedTarget(form: FormGroup, control: AbstractControl): boolean;
|
|
378
|
-
connect(form: FormGroup, definitions: ReactiveDeterminationDefinition[], executor: ReactiveDeterminationExecutor, onEvent?: (event: ReactiveDeterminationExecutionEvent) => void, operationTimeoutMs?: number): Subscription;
|
|
379
|
+
connect(form: FormGroup, definitions: ReactiveDeterminationDefinition[], executor: ReactiveDeterminationExecutor, onEvent?: (event: ReactiveDeterminationExecutionEvent) => void, operationTimeoutMs?: number, fieldMetadata?: readonly FieldMetadata[]): Subscription;
|
|
379
380
|
private resolveControls;
|
|
380
381
|
private waitForUpstreamDeterminations;
|
|
381
382
|
private claimTargets;
|
|
@@ -445,8 +446,13 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
445
446
|
private buttonStylesCache;
|
|
446
447
|
private invalidSubmitHintCacheSignature;
|
|
447
448
|
private invalidSubmitHintCacheValue;
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
get submitErrorTitle(): string;
|
|
450
|
+
get ruleViolationTitle(): string;
|
|
451
|
+
get multiRuleViolationTitle(): string;
|
|
452
|
+
get inspectRuleLabel(): string;
|
|
453
|
+
get violationStageLabel(): string;
|
|
454
|
+
get violationSourceLabel(): string;
|
|
455
|
+
get violationLineageLabel(): string;
|
|
450
456
|
/** Configuration object describing form action buttons */
|
|
451
457
|
actions?: FormConfig['actions'];
|
|
452
458
|
/** Whether the actions are rendered inside an editorial visual context */
|
|
@@ -457,6 +463,10 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
457
463
|
formIsValid: boolean;
|
|
458
464
|
/** Optional error message displayed above the actions */
|
|
459
465
|
submitError?: string | null;
|
|
466
|
+
/** Structured rule-violation diagnostics (`422` / `409`) for explainable X-Ray display */
|
|
467
|
+
ruleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
468
|
+
/** Whether the contextual Decision Inspector drawer can be opened for the current violation */
|
|
469
|
+
canInspectDecision: boolean;
|
|
460
470
|
/** Visible required fields that currently block submit */
|
|
461
471
|
invalidRequiredFieldLabels: string[];
|
|
462
472
|
/** Suppresses invalid-form copy while a host runtime is still hydrating data. */
|
|
@@ -467,6 +477,8 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
467
477
|
actionOverrides?: Record<string, Record<string, any>>;
|
|
468
478
|
/** Emitted whenever a form action button is triggered */
|
|
469
479
|
action: EventEmitter<PraxisFormActionEvent>;
|
|
480
|
+
/** Emitted when the user requests contextual inspection of an applied business rule */
|
|
481
|
+
inspectDecision: EventEmitter<PraxisRuleViolationDiagnostic | undefined>;
|
|
470
482
|
private shortcutDisposers;
|
|
471
483
|
constructor(shortcuts: KeyboardShortcutService);
|
|
472
484
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -493,13 +505,20 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
493
505
|
getButtonStyles(button: FormActionButton): Record<string, any> | null;
|
|
494
506
|
isActionButtonDisabled(button: FormActionButton): boolean;
|
|
495
507
|
shouldShowInvalidSubmitHint(): boolean;
|
|
508
|
+
getPrimaryRuleViolation(): PraxisRuleViolationDiagnostic | undefined;
|
|
509
|
+
getAdditionalRuleViolations(): readonly PraxisRuleViolationDiagnostic[];
|
|
510
|
+
hasMultipleRuleViolations(): boolean;
|
|
511
|
+
hasRuleViolationProvenance(target?: PraxisRuleViolationDiagnostic | undefined): boolean;
|
|
512
|
+
formatRuleStage(stage: string): string;
|
|
513
|
+
formatRuleSource(source: string): string;
|
|
514
|
+
onInspectDecisionClick(event: Event, violation?: PraxisRuleViolationDiagnostic): void;
|
|
496
515
|
getInvalidSubmitHint(): string;
|
|
497
516
|
private applyOverrides;
|
|
498
517
|
private registerActionShortcuts;
|
|
499
518
|
private resolveButtonActionId;
|
|
500
519
|
private isSecondaryButton;
|
|
501
520
|
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>;
|
|
521
|
+
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
522
|
}
|
|
504
523
|
|
|
505
524
|
/**
|
|
@@ -514,6 +533,14 @@ interface FormAiHost {
|
|
|
514
533
|
readonlyModeGlobal?: boolean | null;
|
|
515
534
|
effectiveReadonly?: boolean;
|
|
516
535
|
applyConfigFromAdapter(config: FormConfig): void;
|
|
536
|
+
getRuntimeValueTargetIdentity?(): PraxisRuntimeFormValueTargetIdentity;
|
|
537
|
+
getRuntimeValueEligibility?(): PraxisRuntimeFormValueEligibility;
|
|
538
|
+
previewRuntimeValues?(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
539
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
540
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
541
|
+
}): PraxisRuntimeFormValuePreviewResult;
|
|
542
|
+
applyRuntimeValues?(request: PraxisRuntimeFormValueApplyRequest): Promise<PraxisRuntimeFormValueApplyReceipt> | PraxisRuntimeFormValueApplyReceipt;
|
|
543
|
+
undoRuntimeValues?(receiptId?: string): Promise<PraxisRuntimeFormValueUndoReceipt> | PraxisRuntimeFormValueUndoReceipt;
|
|
517
544
|
}
|
|
518
545
|
|
|
519
546
|
declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
@@ -529,6 +556,14 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
529
556
|
getDataProfile(): Record<string, any>;
|
|
530
557
|
getSchemaFields(): Record<string, any>[];
|
|
531
558
|
getAuthoringContext(): Record<string, any>;
|
|
559
|
+
getRuntimeValueTargetIdentity(): PraxisRuntimeFormValueTargetIdentity | null;
|
|
560
|
+
getRuntimeValueEligibility(): PraxisRuntimeFormValueEligibility | null;
|
|
561
|
+
previewRuntimeValues(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
562
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
563
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
564
|
+
}): PraxisRuntimeFormValuePreviewResult | null;
|
|
565
|
+
applyRuntimeValues(request: PraxisRuntimeFormValueApplyRequest): Promise<PraxisRuntimeFormValueApplyReceipt | null>;
|
|
566
|
+
undoRuntimeValues(receiptId?: string): Promise<PraxisRuntimeFormValueUndoReceipt | null>;
|
|
532
567
|
compileAiResponse(response: Record<string, unknown>): AiResponseCompileResult | null;
|
|
533
568
|
createSnapshot(): FormConfig;
|
|
534
569
|
restoreSnapshot(snapshot: FormConfig): Promise<void>;
|
|
@@ -576,6 +611,8 @@ interface EditorDiagnostic {
|
|
|
576
611
|
|
|
577
612
|
interface DynamicFormBindings {
|
|
578
613
|
mode?: DynamicFormMode;
|
|
614
|
+
/** Controls whether saved layout changes apply to all CRUD modes ('shared') or only the active mode ('mode-only'). */
|
|
615
|
+
layoutScope?: DynamicFormLayoutScope;
|
|
579
616
|
/** Opt-in view placeholder; null explicitly disables it. */
|
|
580
617
|
emptyState?: PraxisDynamicFormEmptyState | null;
|
|
581
618
|
/** true: presentation in view; false: fields; null/absent: inherit layout policy. */
|
|
@@ -589,7 +626,7 @@ interface DynamicFormSchemaPrefsSnapshot {
|
|
|
589
626
|
}
|
|
590
627
|
interface DynamicFormContextSnapshot {
|
|
591
628
|
backConfig?: BackConfig;
|
|
592
|
-
presentation?: DynamicFormPresentationSnapshot;
|
|
629
|
+
presentation?: DynamicFormPresentationSnapshot | null;
|
|
593
630
|
schemaPrefs?: DynamicFormSchemaPrefsSnapshot;
|
|
594
631
|
}
|
|
595
632
|
interface DynamicFormAuthoringDocument extends EditorDocument<FormConfig, DynamicFormBindings> {
|
|
@@ -648,6 +685,7 @@ interface DynamicFormApplyPlan {
|
|
|
648
685
|
};
|
|
649
686
|
diff?: {
|
|
650
687
|
modeChanged?: boolean;
|
|
688
|
+
layoutScopeChanged?: boolean;
|
|
651
689
|
presentationChanged?: boolean;
|
|
652
690
|
schemaPrefsChanged?: boolean;
|
|
653
691
|
backConfigChanged?: boolean;
|
|
@@ -730,7 +768,7 @@ interface FormColumnRichContentRenderItem {
|
|
|
730
768
|
style?: Record<string, any> | null;
|
|
731
769
|
}
|
|
732
770
|
type FormColumnRenderItem = FormColumnFieldsRenderItem | FormColumnRichContentRenderItem;
|
|
733
|
-
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
771
|
+
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisRuntimeFormValueTargetPort {
|
|
734
772
|
private crud;
|
|
735
773
|
private http;
|
|
736
774
|
private fb;
|
|
@@ -769,6 +807,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
769
807
|
private readonly aiTurnOrchestrator;
|
|
770
808
|
private readonly jsonLogic;
|
|
771
809
|
private readonly resourceDiscovery;
|
|
810
|
+
private readonly runtimeObservationRegistry;
|
|
811
|
+
private runtimeObservationRegistration;
|
|
772
812
|
private readonly aiAssistantSessionEffect;
|
|
773
813
|
private readonly globalActions;
|
|
774
814
|
private readonly optionRegistry;
|
|
@@ -778,10 +818,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
778
818
|
private effectiveActionsCacheOverride?;
|
|
779
819
|
private invalidRequiredFieldLabelsCache;
|
|
780
820
|
private invalidRequiredFieldLabelsSignature;
|
|
821
|
+
readonly formVisualBlockSurfaceCapabilities: _praxisui_core.ClientSurfaceCapabilities;
|
|
781
822
|
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
782
823
|
resourcePath?: string;
|
|
783
824
|
resourceId?: string | number;
|
|
784
825
|
initialValue?: Record<string, unknown> | null;
|
|
826
|
+
/**
|
|
827
|
+
* Opt-in overlay for edit mode: when true, explicit `initialValue` keys are
|
|
828
|
+
* merged over the server-hydrated GET /{id} record without suppressing entity load.
|
|
829
|
+
*/
|
|
830
|
+
overlayInitialValueOnEdit: boolean;
|
|
785
831
|
/**
|
|
786
832
|
* Replaces the form with a guided empty state while a view has neither a
|
|
787
833
|
* resource id nor a local record snapshot. Create/edit forms are unaffected.
|
|
@@ -794,7 +840,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
794
840
|
*/
|
|
795
841
|
editorialContext: Record<string, unknown> | null;
|
|
796
842
|
mode: DynamicFormMode;
|
|
797
|
-
|
|
843
|
+
private effectiveConfig;
|
|
844
|
+
private configAssignment;
|
|
845
|
+
get config(): FormConfig;
|
|
846
|
+
set config(value: FormConfig);
|
|
798
847
|
private hostConfigInputProvided;
|
|
799
848
|
/** Optional host-level overrides for the rendered form action bar. */
|
|
800
849
|
actions?: FormConfig['actions'] | null;
|
|
@@ -803,7 +852,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
803
852
|
* 'resource' (padrão) usa o schema do recurso (/{resource}/schemas -> .../all response)
|
|
804
853
|
* 'filter' usa o schema do DTO de filtro (via /schemas/filtered no POST /filter request)
|
|
805
854
|
*/
|
|
806
|
-
schemaSource: 'resource' | 'filter';
|
|
855
|
+
schemaSource: 'resource' | 'filter' | 'action';
|
|
856
|
+
/** Canonical workflow/action identifier when bound to a command surface. */
|
|
857
|
+
actionId?: string | null;
|
|
858
|
+
/** Canonical backend operationId when bound to a command/surface endpoint. */
|
|
859
|
+
operationId?: string | null;
|
|
807
860
|
/** Canonical schema URL published by the backend surface catalog. */
|
|
808
861
|
schemaUrl?: string | null;
|
|
809
862
|
/** Canonical read URL published by backend view/read-projection surfaces. */
|
|
@@ -851,7 +904,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
851
904
|
/** Identifier for persisting layouts */
|
|
852
905
|
formId?: string;
|
|
853
906
|
componentInstanceId?: string;
|
|
854
|
-
configPersistenceStrategy: 'local-first' | 'input-first';
|
|
907
|
+
configPersistenceStrategy: 'local-first' | 'input-first' | 'volatile';
|
|
855
908
|
/** Optional layout to use instead of generated one */
|
|
856
909
|
layout?: FormLayout;
|
|
857
910
|
/**
|
|
@@ -922,11 +975,23 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
922
975
|
isSectionEditorialCard(section?: FormSection | null): boolean;
|
|
923
976
|
isSectionCompactPresentation(section?: FormSection | null): boolean;
|
|
924
977
|
shouldShowContextEmptyState(): boolean;
|
|
978
|
+
private isItemScopedActionSubmitTarget;
|
|
979
|
+
getActionTargetRecordSummary(): {
|
|
980
|
+
id?: string;
|
|
981
|
+
title?: string;
|
|
982
|
+
subtitle?: string;
|
|
983
|
+
badges: Array<{
|
|
984
|
+
label: string;
|
|
985
|
+
value: string;
|
|
986
|
+
tone: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
987
|
+
}>;
|
|
988
|
+
} | null;
|
|
925
989
|
private hasResourceContext;
|
|
926
990
|
private hasLocalRecordContext;
|
|
927
991
|
get effectiveReadonly(): boolean;
|
|
928
992
|
get effectiveDisabledMode(): boolean | null;
|
|
929
993
|
get effectiveFormIsValid(): boolean;
|
|
994
|
+
private hasBlockingClientValidationErrors;
|
|
930
995
|
protected get configControlLabel(): string;
|
|
931
996
|
protected get disconnectControlLabel(): string;
|
|
932
997
|
get invalidRequiredFieldLabels(): string[];
|
|
@@ -978,10 +1043,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
978
1043
|
tabSelected: EventEmitter<FormLayoutTabItem>;
|
|
979
1044
|
/** Active tab ID when effectiveLayoutMode === 'tabs'. */
|
|
980
1045
|
activeTabId: string | null;
|
|
1046
|
+
/** Active step index (0-based) when effectiveLayoutMode === 'stepper'. */
|
|
1047
|
+
activeStepIndex: number;
|
|
1048
|
+
/** Emits the newly selected step index when navigating in stepper mode. */
|
|
1049
|
+
stepChange: EventEmitter<number>;
|
|
981
1050
|
private reactiveDeterminationPending;
|
|
982
1051
|
isLoading: boolean;
|
|
983
1052
|
submitting: boolean;
|
|
984
1053
|
private submitPreparationInProgress;
|
|
1054
|
+
private submitLifecycleSequence;
|
|
1055
|
+
private activeSubmitLifecycle;
|
|
1056
|
+
private activeSubmitAutomatic;
|
|
985
1057
|
submitError: string | null;
|
|
986
1058
|
initializationStatus: 'idle' | 'loading' | 'success' | 'error';
|
|
987
1059
|
currentErrorMessage: string;
|
|
@@ -1016,6 +1088,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1016
1088
|
private entitySelectionCleared;
|
|
1017
1089
|
private hydratedEntityId;
|
|
1018
1090
|
private loadedEntityData;
|
|
1091
|
+
private loadedResourceRevision;
|
|
1092
|
+
private resourceRevisionInvalidated;
|
|
1093
|
+
private entityReadAttempt;
|
|
1019
1094
|
protected entityHydrationPending: boolean;
|
|
1020
1095
|
protected entityReadFailed: boolean;
|
|
1021
1096
|
protected entityReadText(key: 'loading' | 'error' | 'retry' | 'region' | 'success'): string;
|
|
@@ -1028,20 +1103,37 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1028
1103
|
private assertSchemaInitializationCurrent;
|
|
1029
1104
|
private isSchemaTransportInterruption;
|
|
1030
1105
|
private schemaCache;
|
|
1106
|
+
private schemaValidationFailed;
|
|
1107
|
+
private initialValueContextInvalidated;
|
|
1031
1108
|
private lastSchemaMeta?;
|
|
1032
1109
|
private readonly schemaMetaPersistenceQueues;
|
|
1110
|
+
private persistenceContextEpoch;
|
|
1111
|
+
private persistenceContextDestroyed;
|
|
1112
|
+
/** Fence delayed work; requests already sent are not retroactively canceled. */
|
|
1113
|
+
private persistenceGuard;
|
|
1033
1114
|
private readonly formConfigPersistenceQueues;
|
|
1034
1115
|
private readonly formConfigPersistenceGenerations;
|
|
1035
1116
|
private readonly formConfigConflictBlockThrough;
|
|
1036
1117
|
private schemaRootHooks?;
|
|
1118
|
+
private schemaRootFormLayout?;
|
|
1037
1119
|
private schemaRootReactiveDeterminations;
|
|
1038
1120
|
private schemaRootOperationId;
|
|
1039
1121
|
private destroy$;
|
|
1040
1122
|
private readonly entityReadCancel$;
|
|
1041
1123
|
private isDestroyed;
|
|
1042
1124
|
private formValueChangesSubscription;
|
|
1125
|
+
private formStatusChangesSubscription;
|
|
1126
|
+
private readonly runtimeValueJournal;
|
|
1127
|
+
private runtimeValueRevision;
|
|
1128
|
+
private runtimeValueTrackedForm;
|
|
1129
|
+
private readonly runtimeValueTrackedControls;
|
|
1130
|
+
private suppressCommandRuleSideEffectsDepth;
|
|
1131
|
+
private pendingSuppressedCommandEvaluation;
|
|
1132
|
+
private consumingSuppressedCommandEvaluation;
|
|
1043
1133
|
private readonly submitFieldErrorSubscriptions;
|
|
1044
1134
|
private activeSubmitErrorDetails;
|
|
1135
|
+
activeRuleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
1136
|
+
private readonly decisionInspector;
|
|
1045
1137
|
private reactiveDeterminationSubscription;
|
|
1046
1138
|
private reactiveDeterminationScheduledBuildId;
|
|
1047
1139
|
private dependencyPolicySubscription;
|
|
@@ -1136,6 +1228,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1136
1228
|
private resolveSubmitOperation;
|
|
1137
1229
|
private buildSubmitRequest;
|
|
1138
1230
|
private resolveSubmitResourceVersion;
|
|
1231
|
+
/** Identity and server context are captured with the representation, never reconstructed at submit by GET. */
|
|
1232
|
+
private resourceRevisionBinding;
|
|
1233
|
+
private usesAutomaticItemRevision;
|
|
1234
|
+
private isResourceRevisionCurrent;
|
|
1235
|
+
private invalidateAutomaticSubmitUi;
|
|
1236
|
+
private resourceRevisionNeedsReload;
|
|
1237
|
+
private resourceRevisionReloadError;
|
|
1238
|
+
private captureSavedResourceRevision;
|
|
1239
|
+
private rejectResourceRevision;
|
|
1240
|
+
private normalizeResourceVersionToken;
|
|
1241
|
+
private extractResourceVersionCandidate;
|
|
1139
1242
|
private normalizeSubmitMethod;
|
|
1140
1243
|
private formatResourceVersion;
|
|
1141
1244
|
private resolveSubmitHref;
|
|
@@ -1162,10 +1265,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1162
1265
|
private initializeStandaloneConfig;
|
|
1163
1266
|
private initializeDisconnectedEmptyState;
|
|
1164
1267
|
private reloadForModeChange;
|
|
1268
|
+
private resourceRevisionContextScope;
|
|
1269
|
+
private subscribeToRuntimeContextChanges;
|
|
1165
1270
|
ngOnInit(): void;
|
|
1166
1271
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1167
1272
|
private blurAllInputs;
|
|
1168
1273
|
private initializeForm;
|
|
1274
|
+
private hasInitializationError;
|
|
1169
1275
|
private handleInitializationError;
|
|
1170
1276
|
private loadConfigFailOpen;
|
|
1171
1277
|
private resolveFieldLabel;
|
|
@@ -1174,12 +1280,15 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1174
1280
|
private createDefaultConfig;
|
|
1175
1281
|
private createConfigFromHostConfig;
|
|
1176
1282
|
private shouldUseSchemaLayoutPolicy;
|
|
1283
|
+
private hasSchemaRootFormLayout;
|
|
1284
|
+
private normalizeSchemaLayoutModeValue;
|
|
1177
1285
|
private layoutPolicyRequestsPresentation;
|
|
1178
1286
|
private shouldPersistGeneratedConfig;
|
|
1179
1287
|
private createSchemaMaterializedConfig;
|
|
1180
1288
|
private reconcileLoadedConfigWithServerSchema;
|
|
1181
1289
|
private hostConfigHasAuthoredLocalFieldsNotInLocalConfig;
|
|
1182
1290
|
private syncWithServer;
|
|
1291
|
+
private isActionCommandWithoutExplicitReadUrl;
|
|
1183
1292
|
private loadEntity;
|
|
1184
1293
|
private hydrateEntityFromInitialValue;
|
|
1185
1294
|
private flushEntityHydrationState;
|
|
@@ -1217,11 +1326,14 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1217
1326
|
private emitPayloadPreview;
|
|
1218
1327
|
private resetToHydratedSnapshot;
|
|
1219
1328
|
private collectDirtyFieldNames;
|
|
1329
|
+
private collectTouchedFieldNames;
|
|
1220
1330
|
private buildCurrentFormRuntimeContext;
|
|
1221
1331
|
private buildRestoreTargetContext;
|
|
1222
1332
|
private isCompatibleRuntimeStateContext;
|
|
1223
1333
|
private restoreFormRuntimeState;
|
|
1224
1334
|
private getNormalizedInitialValue;
|
|
1335
|
+
private getNormalizedEditOverlayValue;
|
|
1336
|
+
private markEditOverlayControlsDirty;
|
|
1225
1337
|
/**
|
|
1226
1338
|
* A local composition owns the complete snapshot supplied through initialValue.
|
|
1227
1339
|
* Once a readUrl/resourcePath can hydrate an edit/view entity, the backend remains
|
|
@@ -1255,6 +1367,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1255
1367
|
private getActiveFormRules;
|
|
1256
1368
|
private refreshMaterializedFormRules;
|
|
1257
1369
|
private resolveDomainRulesOptions;
|
|
1370
|
+
private evaluateFieldConditionalReadOnly;
|
|
1258
1371
|
private evaluateAndApplyRules;
|
|
1259
1372
|
private applyRuleComputedFieldValues;
|
|
1260
1373
|
private evaluateAndDispatchFormCommandRules;
|
|
@@ -1276,6 +1389,15 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1276
1389
|
getTabErrorCount(tab: FormLayoutTabItem): number;
|
|
1277
1390
|
getTabAriaControls(tab: FormLayoutTabItem): string;
|
|
1278
1391
|
getTabIdForSection(section?: FormSection): string | null;
|
|
1392
|
+
protected formTx(key: string, params?: Record<string, string | number | boolean | null | undefined>, fallback?: string): string;
|
|
1393
|
+
get effectiveSteps(): FormLayoutTabItem[];
|
|
1394
|
+
get normalizedActiveStepIndex(): number;
|
|
1395
|
+
ensureActiveStepValid(): void;
|
|
1396
|
+
selectStep(index: number): void;
|
|
1397
|
+
nextStep(): void;
|
|
1398
|
+
previousStep(): void;
|
|
1399
|
+
isSectionInActiveStep(section?: FormSection): boolean;
|
|
1400
|
+
getStepErrorCount(step: FormLayoutTabItem): number;
|
|
1279
1401
|
shouldHideSectionHeader(section?: FormSection): boolean;
|
|
1280
1402
|
isSectionCollapsed(section?: FormSection): boolean;
|
|
1281
1403
|
isSectionCollapsible(section?: FormSection): boolean;
|
|
@@ -1285,6 +1407,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1285
1407
|
private hasVisibleSectionBody;
|
|
1286
1408
|
private shouldRenderInsideLastSectionContent;
|
|
1287
1409
|
private resolveInsideLastSectionHost;
|
|
1410
|
+
get actionTargetSelectedRecordLabel(): string;
|
|
1288
1411
|
getSectionTitle(section: FormSection): string | undefined;
|
|
1289
1412
|
getSectionDescription(section: FormSection): string | undefined;
|
|
1290
1413
|
getSectionAppearance(section: FormSection): 'card' | 'plain' | 'step' | undefined;
|
|
@@ -1389,7 +1512,12 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1389
1512
|
private clearSubmitFieldErrors;
|
|
1390
1513
|
private clearSubmitFieldError;
|
|
1391
1514
|
private resetSubmitErrorState;
|
|
1515
|
+
canInspectSubmitRuleViolations(): boolean;
|
|
1516
|
+
openSubmitDecisionInspector(violation?: PraxisRuleViolationDiagnostic): void;
|
|
1392
1517
|
private resolveSubmitErrorMessage;
|
|
1518
|
+
private isGenericEnvelopeErrorMessage;
|
|
1519
|
+
private formatStructuredSubmitErrorMessage;
|
|
1520
|
+
private resolveSubmitErrorControl;
|
|
1393
1521
|
private normalizeSubmitErrorTarget;
|
|
1394
1522
|
private navigateAfterSave;
|
|
1395
1523
|
private shouldConfirmCancelOnDirty;
|
|
@@ -1408,7 +1536,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1408
1536
|
closeAiAssistant(): void;
|
|
1409
1537
|
onAiAssistantPromptChange(prompt: string): void;
|
|
1410
1538
|
onAiAssistantSubmit(prompt: string): void;
|
|
1411
|
-
onAiAssistantApply(): void;
|
|
1539
|
+
onAiAssistantApply(contextHints?: Record<string, unknown> | void): void;
|
|
1412
1540
|
onAiAssistantRetry(): void;
|
|
1413
1541
|
onAiAssistantCancel(): void;
|
|
1414
1542
|
onAiAssistantQuickReply(reply: PraxisAssistantShellQuickReply): void;
|
|
@@ -1419,6 +1547,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1419
1547
|
private initializeAiAssistantController;
|
|
1420
1548
|
private buildAiAssistantContextItems;
|
|
1421
1549
|
private buildAiAssistantContextSnapshot;
|
|
1550
|
+
buildRuntimeComponentObservation(): PraxisRuntimeComponentObservationEnvelope;
|
|
1551
|
+
private registerRuntimeComponentObservationProvider;
|
|
1422
1552
|
private syncAiAssistantSession;
|
|
1423
1553
|
private hasAiAssistantSessionState;
|
|
1424
1554
|
private resolveAiAssistantSessionId;
|
|
@@ -1572,6 +1702,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1572
1702
|
private captureCurrentPresentationSnapshot;
|
|
1573
1703
|
private captureCurrentSchemaPrefsSnapshot;
|
|
1574
1704
|
private executeDynamicFormEditorApplyPlan;
|
|
1705
|
+
private buildCrossModeMetadataSeed;
|
|
1706
|
+
private resolveSiblingModeComponentKeyIds;
|
|
1707
|
+
private resolveSiblingModeFormConfigKeys;
|
|
1708
|
+
private resolveSiblingModePresentationKeys;
|
|
1709
|
+
private persistSharedFormConfigAcrossModes;
|
|
1575
1710
|
private attachRuntimeMetadataToDynamicFormConfig;
|
|
1576
1711
|
private emitConfigPatchChange;
|
|
1577
1712
|
private cloneFormConfigForPatch;
|
|
@@ -1585,6 +1720,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1585
1720
|
showDetailedError(): void;
|
|
1586
1721
|
private tryBuildExplicitSchemaContext;
|
|
1587
1722
|
private buildSchemaContext;
|
|
1723
|
+
private requiresConfirmedSchemaContext;
|
|
1724
|
+
private schemaRepresentationContext;
|
|
1588
1725
|
private getSchemaWithCache;
|
|
1589
1726
|
/**
|
|
1590
1727
|
* Invalida o cache de schema compilado para a instância atual e força
|
|
@@ -1598,8 +1735,23 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1598
1735
|
private logRowGapsSnapshot;
|
|
1599
1736
|
private applyPresentationVars;
|
|
1600
1737
|
private applyPresentationConfig;
|
|
1738
|
+
getRuntimeValueTargetIdentity(): PraxisRuntimeFormValueTargetIdentity;
|
|
1739
|
+
getRuntimeValueEligibility(): PraxisRuntimeFormValueEligibility;
|
|
1740
|
+
previewRuntimeValues(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
1741
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
1742
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
1743
|
+
}): PraxisRuntimeFormValuePreviewResult;
|
|
1744
|
+
applyRuntimeValues(request: PraxisRuntimeFormValueApplyRequest): PraxisRuntimeFormValueApplyReceipt;
|
|
1745
|
+
undoRuntimeValues(receiptId?: string): PraxisRuntimeFormValueUndoReceipt;
|
|
1746
|
+
private clearRuntimeValueControlSubscriptions;
|
|
1747
|
+
private collectLeafFormControls;
|
|
1748
|
+
private ensureRuntimeValueTracking;
|
|
1749
|
+
private withSuppressedCommandSideEffects;
|
|
1750
|
+
private createRuntimeFormHostCallbacks;
|
|
1751
|
+
private isConfiguredReactiveDeterminationOutputField;
|
|
1752
|
+
private collectRuntimeValueFieldClassification;
|
|
1601
1753
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicForm, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1602
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; "emptyState": { "alias": "emptyState"; "required": false; }; "editorialContext": { "alias": "editorialContext"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "schemaSource": { "alias": "schemaSource"; "required": false; }; "schemaUrl": { "alias": "schemaUrl"; "required": false; }; "readUrl": { "alias": "readUrl"; "required": false; }; "submitUrl": { "alias": "submitUrl"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; "submitIdempotencyKey": { "alias": "submitIdempotencyKey"; "required": false; }; "submitCorrelationId": { "alias": "submitCorrelationId"; "required": false; }; "submitResourceVersion": { "alias": "submitResourceVersion"; "required": false; }; "submitResourceVersionTargetResourceKey": { "alias": "submitResourceVersionTargetResourceKey"; "required": false; }; "submitResourceVersionTargetIdField": { "alias": "submitResourceVersionTargetIdField"; "required": false; }; "responseSchemaUrl": { "alias": "responseSchemaUrl"; "required": false; }; "apiEndpointKey": { "alias": "apiEndpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showAiAssistant": { "alias": "showAiAssistant"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "layoutMode": { "alias": "layoutMode"; "required": false; }; "formLayout": { "alias": "formLayout"; "required": false; }; "generatedLayoutPreset": { "alias": "generatedLayoutPreset"; "required": false; }; "layoutPolicy": { "alias": "layoutPolicy"; "required": false; }; "backConfig": { "alias": "backConfig"; "required": false; }; "hooks": { "alias": "hooks"; "required": false; }; "removeEmptyContainersOnSave": { "alias": "removeEmptyContainersOnSave"; "required": false; }; "reactiveValidation": { "alias": "reactiveValidation"; "required": false; }; "reactiveValidationDebounceMs": { "alias": "reactiveValidationDebounceMs"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "readonlyModeGlobal": { "alias": "readonlyModeGlobal"; "required": false; }; "disabledModeGlobal": { "alias": "disabledModeGlobal"; "required": false; }; "presentationModeGlobal": { "alias": "presentationModeGlobal"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "presentationPreset": { "alias": "presentationPreset"; "required": false; }; "sectionDefaultAppearance": { "alias": "sectionDefaultAppearance"; "required": false; }; "sectionDivider": { "alias": "sectionDivider"; "required": false; }; "visibleGlobal": { "alias": "visibleGlobal"; "required": false; }; "fieldIconPolicy": { "alias": "fieldIconPolicy"; "required": false; }; "domainRules": { "alias": "domainRules"; "required": false; }; "customEndpoints": { "alias": "customEndpoints"; "required": false; }; }, { "formSubmit": "formSubmit"; "formCancel": "formCancel"; "formReset": "formReset"; "configChange": "configChange"; "configPatchChange": "configPatchChange"; "formReady": "formReady"; "valueChange": "valueChange"; "payloadPreviewChange": "payloadPreviewChange"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "ruleDiagnosticsChange": "ruleDiagnosticsChange"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "tabChange": "tabChange"; "tabSelected": "tabSelected"; }, never, never, true, never>;
|
|
1754
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; "overlayInitialValueOnEdit": { "alias": "overlayInitialValueOnEdit"; "required": false; }; "emptyState": { "alias": "emptyState"; "required": false; }; "editorialContext": { "alias": "editorialContext"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "schemaSource": { "alias": "schemaSource"; "required": false; }; "actionId": { "alias": "actionId"; "required": false; }; "operationId": { "alias": "operationId"; "required": false; }; "schemaUrl": { "alias": "schemaUrl"; "required": false; }; "readUrl": { "alias": "readUrl"; "required": false; }; "submitUrl": { "alias": "submitUrl"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; "submitIdempotencyKey": { "alias": "submitIdempotencyKey"; "required": false; }; "submitCorrelationId": { "alias": "submitCorrelationId"; "required": false; }; "submitResourceVersion": { "alias": "submitResourceVersion"; "required": false; }; "submitResourceVersionTargetResourceKey": { "alias": "submitResourceVersionTargetResourceKey"; "required": false; }; "submitResourceVersionTargetIdField": { "alias": "submitResourceVersionTargetIdField"; "required": false; }; "responseSchemaUrl": { "alias": "responseSchemaUrl"; "required": false; }; "apiEndpointKey": { "alias": "apiEndpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showAiAssistant": { "alias": "showAiAssistant"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "layoutMode": { "alias": "layoutMode"; "required": false; }; "formLayout": { "alias": "formLayout"; "required": false; }; "generatedLayoutPreset": { "alias": "generatedLayoutPreset"; "required": false; }; "layoutPolicy": { "alias": "layoutPolicy"; "required": false; }; "backConfig": { "alias": "backConfig"; "required": false; }; "hooks": { "alias": "hooks"; "required": false; }; "removeEmptyContainersOnSave": { "alias": "removeEmptyContainersOnSave"; "required": false; }; "reactiveValidation": { "alias": "reactiveValidation"; "required": false; }; "reactiveValidationDebounceMs": { "alias": "reactiveValidationDebounceMs"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "readonlyModeGlobal": { "alias": "readonlyModeGlobal"; "required": false; }; "disabledModeGlobal": { "alias": "disabledModeGlobal"; "required": false; }; "presentationModeGlobal": { "alias": "presentationModeGlobal"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "presentationPreset": { "alias": "presentationPreset"; "required": false; }; "sectionDefaultAppearance": { "alias": "sectionDefaultAppearance"; "required": false; }; "sectionDivider": { "alias": "sectionDivider"; "required": false; }; "visibleGlobal": { "alias": "visibleGlobal"; "required": false; }; "fieldIconPolicy": { "alias": "fieldIconPolicy"; "required": false; }; "domainRules": { "alias": "domainRules"; "required": false; }; "customEndpoints": { "alias": "customEndpoints"; "required": false; }; "activeStepIndex": { "alias": "activeStepIndex"; "required": false; }; }, { "formSubmit": "formSubmit"; "formCancel": "formCancel"; "formReset": "formReset"; "configChange": "configChange"; "configPatchChange": "configPatchChange"; "formReady": "formReady"; "valueChange": "valueChange"; "payloadPreviewChange": "payloadPreviewChange"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "ruleDiagnosticsChange": "ruleDiagnosticsChange"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "tabChange": "tabChange"; "tabSelected": "tabSelected"; "stepChange": "stepChange"; }, never, never, true, never>;
|
|
1603
1755
|
}
|
|
1604
1756
|
|
|
1605
1757
|
declare class FormConfigService {
|
|
@@ -1783,7 +1935,9 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1783
1935
|
formId?: string;
|
|
1784
1936
|
componentKeyId?: string;
|
|
1785
1937
|
inputMode: DynamicFormMode;
|
|
1938
|
+
inputLayoutScope: DynamicFormLayoutScope;
|
|
1786
1939
|
private includeBindingsBlock;
|
|
1940
|
+
private includeLayoutScopeBinding;
|
|
1787
1941
|
private readonly editorMode;
|
|
1788
1942
|
get isPresentationMode(): boolean;
|
|
1789
1943
|
supportsPresentationSettings: boolean;
|
|
@@ -1841,7 +1995,11 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1841
1995
|
};
|
|
1842
1996
|
private destroy$;
|
|
1843
1997
|
private hasProcessedInitialRuleState;
|
|
1998
|
+
ruleConversionFailed: boolean;
|
|
1999
|
+
private readonly jsonLogic;
|
|
2000
|
+
private readonly cascadeRulesService;
|
|
1844
2001
|
private jsonEditorIsValid;
|
|
2002
|
+
private cascadeDraftIsValid;
|
|
1845
2003
|
private globalActionValidationIssues;
|
|
1846
2004
|
private readonly i18n;
|
|
1847
2005
|
readonly globalActionCatalog: GlobalActionCatalogEntry[];
|
|
@@ -1854,7 +2012,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1854
2012
|
isValid$: BehaviorSubject<boolean>;
|
|
1855
2013
|
isBusy$: BehaviorSubject<boolean>;
|
|
1856
2014
|
private lastRulesSignature;
|
|
1857
|
-
private
|
|
2015
|
+
private supersededRuleStateSignature;
|
|
1858
2016
|
private readonly DEBUG;
|
|
1859
2017
|
private debugLog;
|
|
1860
2018
|
get configTabOptions(): ConfigEditorTabOption[];
|
|
@@ -1872,6 +2030,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1872
2030
|
onJsonValidationChange(result: JsonValidationResult): void;
|
|
1873
2031
|
onJsonEditorEvent(_event: JsonEditorEvent): void;
|
|
1874
2032
|
onConfigChange(newConfig: FormConfig): void;
|
|
2033
|
+
onCascadeValidChange(valid: boolean): void;
|
|
2034
|
+
private isCascadeGraphValid;
|
|
1875
2035
|
private updateValidityState;
|
|
1876
2036
|
private collectGlobalActionValidationIssues;
|
|
1877
2037
|
private collectGlobalActionValidationTargets;
|
|
@@ -1924,6 +2084,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1924
2084
|
getRuleDiagnosticDetails(diagnostic: FormRuleDiagnostics): string[];
|
|
1925
2085
|
private getRulePropertyIssueNames;
|
|
1926
2086
|
private markLlmRuleAccepted;
|
|
2087
|
+
private projectBuilderRules;
|
|
1927
2088
|
private refreshRuleDiagnostics;
|
|
1928
2089
|
get jsonDocument(): DynamicFormAuthoringDocument;
|
|
1929
2090
|
onBackConfigChange(): void;
|
|
@@ -1934,6 +2095,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1934
2095
|
hasResolvedRuntimeContract(): boolean;
|
|
1935
2096
|
describeRuntimeSource(source?: DynamicFormRuntimeValueSource): string;
|
|
1936
2097
|
onInputModeChange(): void;
|
|
2098
|
+
onLayoutScopeChange(scope: DynamicFormLayoutScope): void;
|
|
1937
2099
|
onPresentationPrefsChange(reason: string): void;
|
|
1938
2100
|
onSchemaPrefsChange(reason: string): void;
|
|
1939
2101
|
private createRuleBuilderConfig;
|
|
@@ -1954,10 +2116,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1954
2116
|
onCascadeApply(patch: Record<string, Partial<FieldDefinition>>): void;
|
|
1955
2117
|
private syncCascadeManagerFields;
|
|
1956
2118
|
private stripLegacy;
|
|
2119
|
+
private hydrateRuleDraft;
|
|
1957
2120
|
private computeRulesSignature;
|
|
1958
2121
|
restoreHintsDefaults(): void;
|
|
1959
2122
|
private loadPrefsFromStorage;
|
|
1960
2123
|
private normalizeMode;
|
|
2124
|
+
private normalizeLayoutScope;
|
|
1961
2125
|
private buildAuthoringDocument;
|
|
1962
2126
|
private normalizeResolvedRuntimeContract;
|
|
1963
2127
|
private createBackConfigState;
|
|
@@ -1982,6 +2146,14 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1982
2146
|
config: FormConfig;
|
|
1983
2147
|
formId?: string;
|
|
1984
2148
|
resourcePath?: string;
|
|
2149
|
+
/**
|
|
2150
|
+
* Optional logical endpoint key for multi-gateway filter schema resolution.
|
|
2151
|
+
*/
|
|
2152
|
+
endpointKey?: ApiEndpoint;
|
|
2153
|
+
/**
|
|
2154
|
+
* Optional explicit API URL entry override for filter schema resolution.
|
|
2155
|
+
*/
|
|
2156
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1985
2157
|
mode?: string;
|
|
1986
2158
|
formReady: EventEmitter<{
|
|
1987
2159
|
formGroup: FormGroup<Record<string, any>>;
|
|
@@ -1999,15 +2171,25 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1999
2171
|
form: FormGroup<Record<string, any>>;
|
|
2000
2172
|
private valueChangesSub?;
|
|
2001
2173
|
private statusChangesSub?;
|
|
2174
|
+
private schemaSub?;
|
|
2175
|
+
private hydratedFieldMetadata;
|
|
2176
|
+
private schemaHydrationPending;
|
|
2177
|
+
private schemaHydrationFailed;
|
|
2002
2178
|
private columnFieldsCache;
|
|
2003
2179
|
private singleFieldCache;
|
|
2180
|
+
private readonly crudService;
|
|
2181
|
+
private readonly resourceDiscovery;
|
|
2182
|
+
private readonly cdr;
|
|
2004
2183
|
constructor(dynamicForm: DynamicFormService);
|
|
2005
2184
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2006
2185
|
ngOnDestroy(): void;
|
|
2186
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2007
2187
|
private buildForm;
|
|
2008
2188
|
private buildRestorableValues;
|
|
2009
2189
|
private hasExplicitDefaultValue;
|
|
2010
2190
|
onFormSubmit(): void;
|
|
2191
|
+
private isFilterReady;
|
|
2192
|
+
private projectFilterValues;
|
|
2011
2193
|
getColumnFields(column: FormColumn): FieldMetadata[];
|
|
2012
2194
|
getSingleField(field: FieldMetadata): FieldMetadata[];
|
|
2013
2195
|
getColumnClasses(column: FormColumn): string | null;
|
|
@@ -2017,7 +2199,7 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
2017
2199
|
trackByRow(i: number, _row: FormRow): string;
|
|
2018
2200
|
trackByColumn(i: number, col: FormColumn): string;
|
|
2019
2201
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisFilterForm, never>;
|
|
2020
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilterForm, "praxis-filter-form", never, { "config": { "alias": "config"; "required": true; }; "formId": { "alias": "formId"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "formReady": "formReady"; "valueChange": "valueChange"; "submit": "submit"; "requestSearch": "requestSearch"; "validityChange": "validityChange"; }, never, never, true, never>;
|
|
2202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilterForm, "praxis-filter-form", never, { "config": { "alias": "config"; "required": true; }; "formId": { "alias": "formId"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "endpointKey": { "alias": "endpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "formReady": "formReady"; "valueChange": "valueChange"; "submit": "submit"; "requestSearch": "requestSearch"; "validityChange": "validityChange"; }, never, never, true, never>;
|
|
2021
2203
|
}
|
|
2022
2204
|
|
|
2023
2205
|
/** Metadata for PraxisFilterForm component */
|
|
@@ -2029,6 +2211,9 @@ interface PraxisFilterFormWidgetEditorInputs {
|
|
|
2029
2211
|
config?: FormConfig | null;
|
|
2030
2212
|
formId?: string;
|
|
2031
2213
|
resourcePath?: string;
|
|
2214
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2215
|
+
endpointKey?: ApiEndpoint;
|
|
2216
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2032
2217
|
mode?: DynamicFormMode | string;
|
|
2033
2218
|
[key: string]: unknown;
|
|
2034
2219
|
}
|
|
@@ -2042,13 +2227,37 @@ declare class PraxisFilterFormWidgetConfigEditor implements SettingsValueProvide
|
|
|
2042
2227
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2043
2228
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2044
2229
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2230
|
+
schemaWarning: string;
|
|
2045
2231
|
private readonly subscription;
|
|
2232
|
+
private schemaSubscription?;
|
|
2233
|
+
private childBusy;
|
|
2234
|
+
private schemaLoading;
|
|
2235
|
+
private resourcePathDraft?;
|
|
2236
|
+
private selectedCatalogResource;
|
|
2237
|
+
private committedBaselineDocument?;
|
|
2238
|
+
private readonly crudService;
|
|
2239
|
+
private readonly resourceDiscovery;
|
|
2240
|
+
private readonly cdr;
|
|
2241
|
+
get effectiveResourcePath(): string;
|
|
2242
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2243
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2244
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2245
|
+
onCatalogResourceSelected(entry: DiscoveredResourceOption | null): void;
|
|
2246
|
+
onResourceQuickClear(): void;
|
|
2247
|
+
private updateDirtyState;
|
|
2046
2248
|
ngAfterViewInit(): void;
|
|
2047
2249
|
ngOnDestroy(): void;
|
|
2048
2250
|
getSettingsValue(): PraxisFilterFormWidgetEditorValue;
|
|
2049
2251
|
onSave(): PraxisFilterFormWidgetEditorValue;
|
|
2050
2252
|
reset(): void;
|
|
2253
|
+
private publishBusy;
|
|
2051
2254
|
private initializeChildEditor;
|
|
2255
|
+
private applyBaselineDocumentToChildEditor;
|
|
2256
|
+
private applyDraftDocumentToChildEditor;
|
|
2257
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2258
|
+
private extractCatalogFallbackFields;
|
|
2259
|
+
private applyLoadedFilterFieldMetadata;
|
|
2260
|
+
private buildDiscoveryOptions;
|
|
2052
2261
|
private buildValue;
|
|
2053
2262
|
private createDocumentFromInputs;
|
|
2054
2263
|
private normalizeMode;
|
|
@@ -2144,6 +2353,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2144
2353
|
private readonly layoutService;
|
|
2145
2354
|
private readonly settingsPanel;
|
|
2146
2355
|
private readonly i18n;
|
|
2356
|
+
private readonly logger;
|
|
2147
2357
|
private visualBlockIdSequence;
|
|
2148
2358
|
private localFieldSequence;
|
|
2149
2359
|
protected readonly colorTokens: typeof LayoutColorToken;
|
|
@@ -2167,8 +2377,14 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2167
2377
|
get borderEnabled(): boolean;
|
|
2168
2378
|
get dividerEnabled(): boolean;
|
|
2169
2379
|
get layoutSections(): FormSection[];
|
|
2380
|
+
get layoutModeValue(): FormLayoutMode;
|
|
2381
|
+
onLayoutModeChange(mode: FormLayoutMode): void;
|
|
2170
2382
|
canApplyAll(): boolean;
|
|
2171
2383
|
applyGapToAll(): void;
|
|
2384
|
+
canCalibrateFieldsFromSemantics(): boolean;
|
|
2385
|
+
calibrateAllFieldsFromSemantics(): void;
|
|
2386
|
+
canOrganizeSectionsFromSemantics(): boolean;
|
|
2387
|
+
organizeSectionsFromSemantics(): void;
|
|
2172
2388
|
ngOnInit(): void;
|
|
2173
2389
|
handleKeydown(event: KeyboardEvent): void;
|
|
2174
2390
|
/**
|
|
@@ -2385,6 +2601,7 @@ declare class FieldConfiguratorComponent {
|
|
|
2385
2601
|
private readonly categoryByType;
|
|
2386
2602
|
private resolveEditorialMeta;
|
|
2387
2603
|
get icon(): string;
|
|
2604
|
+
private normalizedFieldControlType;
|
|
2388
2605
|
get typeClass(): string;
|
|
2389
2606
|
get typeSpecificClass(): string;
|
|
2390
2607
|
get typeLabel(): string;
|
|
@@ -2396,8 +2613,13 @@ declare class FieldConfiguratorComponent {
|
|
|
2396
2613
|
|
|
2397
2614
|
interface PraxisDynamicFormWidgetEditorInputs {
|
|
2398
2615
|
config?: FormConfig | null;
|
|
2616
|
+
resourcePath?: string | null;
|
|
2617
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2618
|
+
endpointKey?: ApiEndpoint;
|
|
2619
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2620
|
+
schemaSource?: 'resource' | 'filter';
|
|
2399
2621
|
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
2400
|
-
configPersistenceStrategy?: 'local-first' | 'input-first';
|
|
2622
|
+
configPersistenceStrategy?: 'local-first' | 'input-first' | 'volatile';
|
|
2401
2623
|
mode?: DynamicFormMode;
|
|
2402
2624
|
emptyState?: PraxisDynamicFormEmptyState | null;
|
|
2403
2625
|
presentationModeGlobal?: boolean | null;
|
|
@@ -2414,23 +2636,46 @@ interface PraxisDynamicFormWidgetEditorValue {
|
|
|
2414
2636
|
inputs: PraxisDynamicFormWidgetEditorInputs;
|
|
2415
2637
|
}
|
|
2416
2638
|
declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnDestroy {
|
|
2639
|
+
private readonly crudService;
|
|
2640
|
+
private readonly resourceDiscovery;
|
|
2641
|
+
private readonly cdr;
|
|
2417
2642
|
inputs: PraxisDynamicFormWidgetEditorInputs | null;
|
|
2418
2643
|
widgetKey?: string;
|
|
2419
2644
|
appliedValues$?: Observable<unknown>;
|
|
2420
2645
|
private appliedSource?;
|
|
2646
|
+
private appliedResourcePath?;
|
|
2421
2647
|
/** Runtime evidence supplied by the existing component editor context resolver. */
|
|
2422
2648
|
context: Record<string, unknown>;
|
|
2423
2649
|
formEditor?: PraxisDynamicFormConfigEditor;
|
|
2424
2650
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2425
2651
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2426
2652
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2653
|
+
schemaWarning: string;
|
|
2427
2654
|
private readonly subscription;
|
|
2655
|
+
private schemaSubscription?;
|
|
2656
|
+
private childBusy;
|
|
2657
|
+
private schemaLoading;
|
|
2428
2658
|
private initialEditorConfig?;
|
|
2659
|
+
private committedBaselineConfig?;
|
|
2660
|
+
private committedBaselineDocument?;
|
|
2429
2661
|
private sourceDraft?;
|
|
2430
|
-
|
|
2662
|
+
private resourcePathDraft?;
|
|
2663
|
+
selectedCatalogResource: DiscoveredResourceOption | null;
|
|
2664
|
+
private optionalInject;
|
|
2665
|
+
get configurationSource(): 'local-first' | 'input-first' | 'volatile';
|
|
2666
|
+
get effectiveResourcePath(): string;
|
|
2667
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2668
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2669
|
+
get effectiveDiscoveryIntent(): 'crud' | 'filter';
|
|
2670
|
+
get hasReadOnlyModeWarning(): boolean;
|
|
2671
|
+
switchToReadOnlyViewMode(): void;
|
|
2672
|
+
onCatalogResourceSelected(resource: DiscoveredResourceOption | null): void;
|
|
2431
2673
|
changeConfigurationSource(value: string): void;
|
|
2674
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2675
|
+
onResourceQuickClear(): void;
|
|
2676
|
+
private baselineResourcePath;
|
|
2432
2677
|
private updateDirtyState;
|
|
2433
|
-
private
|
|
2678
|
+
private publishBusy;
|
|
2434
2679
|
ngAfterViewInit(): void;
|
|
2435
2680
|
ngOnDestroy(): void;
|
|
2436
2681
|
getSettingsValue(): PraxisDynamicFormWidgetEditorValue;
|
|
@@ -2438,6 +2683,12 @@ declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvid
|
|
|
2438
2683
|
acceptAppliedValue(value: unknown): void;
|
|
2439
2684
|
reset(): void;
|
|
2440
2685
|
private initializeChildEditor;
|
|
2686
|
+
private applyBaselineDocumentToChildEditor;
|
|
2687
|
+
private applyDraftDocumentToChildEditor;
|
|
2688
|
+
private loadResourceSchemaFieldsIfNeeded;
|
|
2689
|
+
private extractCatalogFallbackFields;
|
|
2690
|
+
private applyFieldMetadataHydration;
|
|
2691
|
+
private buildDiscoveryOptions;
|
|
2441
2692
|
private buildValue;
|
|
2442
2693
|
private createDocumentFromInputs;
|
|
2443
2694
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicFormWidgetConfigEditor, never>;
|
|
@@ -2497,20 +2748,20 @@ declare class DynamicFormSchemaCacheService {
|
|
|
2497
2748
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormSchemaCacheService>;
|
|
2498
2749
|
}
|
|
2499
2750
|
|
|
2500
|
-
declare class
|
|
2751
|
+
declare class LegacyCompactPresentationExampleComponent {
|
|
2501
2752
|
private readonly dynamicLayout;
|
|
2502
|
-
readonly legacyFrequencyExample: _praxisui_dynamic_form.
|
|
2753
|
+
readonly legacyFrequencyExample: _praxisui_dynamic_form.LegacyCompactPresentationCompactPresentationExample;
|
|
2503
2754
|
readonly legacyFrequencyPresentationConfig: _praxisui_core.FormConfig;
|
|
2504
2755
|
readonly legacyFrequencyInitialValue: Record<string, unknown>;
|
|
2505
|
-
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.
|
|
2756
|
+
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2506
2757
|
readonly corporatePresentationExample: _praxisui_dynamic_form.CorporatePresentationExample;
|
|
2507
2758
|
readonly corporatePresentationConfig: _praxisui_core.FormConfig;
|
|
2508
2759
|
readonly corporatePresentationInitialValue: Record<string, unknown>;
|
|
2509
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2510
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
2760
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LegacyCompactPresentationExampleComponent, never>;
|
|
2761
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyCompactPresentationExampleComponent, "praxis-legacy-compact-presentation-example", never, {}, {}, never, never, true, never>;
|
|
2511
2762
|
}
|
|
2512
2763
|
|
|
2513
|
-
interface
|
|
2764
|
+
interface LegacyCompactPresentationLegacyFrequencyRow {
|
|
2514
2765
|
tipo: string;
|
|
2515
2766
|
codigo: string;
|
|
2516
2767
|
nome: string;
|
|
@@ -2518,12 +2769,12 @@ interface Ergadm00034LegacyFrequencyRow {
|
|
|
2518
2769
|
marcador: string;
|
|
2519
2770
|
selected?: boolean;
|
|
2520
2771
|
}
|
|
2521
|
-
interface
|
|
2522
|
-
readonly id: '
|
|
2772
|
+
interface LegacyCompactPresentationCompactPresentationExample {
|
|
2773
|
+
readonly id: 'legacy-compact-presentation';
|
|
2523
2774
|
readonly title: string;
|
|
2524
2775
|
readonly resourcePath: string;
|
|
2525
2776
|
readonly layoutPreset: 'compactPresentation';
|
|
2526
|
-
readonly rows: readonly
|
|
2777
|
+
readonly rows: readonly LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2527
2778
|
readonly tableConfig: TableConfig;
|
|
2528
2779
|
readonly metadata: readonly FieldMetadata[];
|
|
2529
2780
|
readonly initialValue: Record<string, unknown>;
|
|
@@ -2536,9 +2787,9 @@ interface CorporatePresentationExample {
|
|
|
2536
2787
|
readonly metadata: readonly FieldMetadata[];
|
|
2537
2788
|
readonly initialValue: Record<string, unknown>;
|
|
2538
2789
|
}
|
|
2539
|
-
declare const
|
|
2790
|
+
declare const LEGACY_COMPACT_PRESENTATION_COMPACT_PRESENTATION_EXAMPLE: LegacyCompactPresentationCompactPresentationExample;
|
|
2540
2791
|
declare const CORPORATE_PRESENTATION_FORMAT_GALLERY: CorporatePresentationExample;
|
|
2541
|
-
declare function
|
|
2792
|
+
declare function buildLegacyCompactPresentationCompactPresentationConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2542
2793
|
declare function buildCorporatePresentationFormatGalleryConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2543
2794
|
|
|
2544
2795
|
declare function isRuleSatisfied(rule: FormLayoutRule, data: unknown): boolean;
|
|
@@ -2551,23 +2802,22 @@ declare function applyVisibilityRules(rules: FormLayoutRule[], data: any): Recor
|
|
|
2551
2802
|
/**
|
|
2552
2803
|
* Converts a RuleBuilderState produced by the visual builder into
|
|
2553
2804
|
* an array of FormLayoutRule objects understood by the dynamic form.
|
|
2805
|
+
* Throws when a referenced condition graph cannot be serialized without losing semantics.
|
|
2554
2806
|
*/
|
|
2555
2807
|
declare function ruleBuilderStateToFormLayoutRules(state: RuleBuilderState | null | undefined): FormLayoutRule[];
|
|
2556
2808
|
/**
|
|
2557
2809
|
* Converts an array of FormLayoutRule back into a RuleBuilderState
|
|
2558
2810
|
* so that the visual builder can display the saved rules.
|
|
2559
2811
|
*
|
|
2560
|
-
*
|
|
2561
|
-
*
|
|
2812
|
+
* Every canonical effect reopens as a propertyRule, with all targets and both
|
|
2813
|
+
* branches intact. Conditions outside the visual vocabulary stay inline.
|
|
2562
2814
|
*/
|
|
2563
2815
|
declare function formLayoutRulesToBuilderState(rules: FormLayoutRule[] | null | undefined): RuleBuilderState;
|
|
2564
2816
|
|
|
2565
|
-
/**
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
*/
|
|
2570
|
-
declare function normalizeDateArrays(data: any): any;
|
|
2817
|
+
/** Converts legacy date tuples only where the existing field metadata declares a temporal value. */
|
|
2818
|
+
declare function normalizeDateArrays(data: any, fields: readonly FieldMetadata[]): any;
|
|
2819
|
+
/** One private draft shared by hydration and submit; only declared temporal fields are transformed. */
|
|
2820
|
+
declare function normalizeTemporalFieldValues(data: any, fields: readonly FieldMetadata[], normalizeString: (value: string) => string): any;
|
|
2571
2821
|
|
|
2572
2822
|
/**
|
|
2573
2823
|
* Helper provider to wire the PraxisDynamicForm component into the Settings Panel
|
|
@@ -3132,7 +3382,50 @@ declare const PRAXIS_FILTER_FORM_AUTHORING_PROJECTION: {
|
|
|
3132
3382
|
readonly operationIds: readonly ["field.label.set", "field.placeholder.set", "field.required.set", "field.readOnly.set", "field.disabled.set", "field.hidden.set", "field.controlType.set", "field.optionSource.set", "field.local.add", "field.local.remove", "layout.section.add", "layout.section.remove", "layout.row.add", "layout.column.add", "layout.field.move"];
|
|
3133
3383
|
readonly roundTripRequirements: readonly ["strip-undefined", "stable-field-order", "preserve-local-field-source", "preserve-section-row-column-ids"];
|
|
3134
3384
|
};
|
|
3135
|
-
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST:
|
|
3385
|
+
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST: {
|
|
3386
|
+
runtimeInputs: _praxisui_core.ManifestInput[];
|
|
3387
|
+
schemaVersion: string;
|
|
3388
|
+
componentId: string;
|
|
3389
|
+
ownerPackage: string;
|
|
3390
|
+
configSchemaId: string;
|
|
3391
|
+
manifestVersion: string;
|
|
3392
|
+
editableTargets: _praxisui_core.ManifestTarget[];
|
|
3393
|
+
operations: _praxisui_core.ManifestOperation[];
|
|
3394
|
+
validators: _praxisui_core.ManifestValidator[];
|
|
3395
|
+
roundTripRequirements?: string[];
|
|
3396
|
+
presentationAffordances?: _praxisui_core.ManifestPresentationAffordanceCatalog;
|
|
3397
|
+
examples: _praxisui_core.ManifestExample[];
|
|
3398
|
+
controlProfiles?: _praxisui_core.ManifestControlProfile[];
|
|
3399
|
+
};
|
|
3400
|
+
|
|
3401
|
+
/** Reconstruct raw native authorship. Normalized editor/runtime defaults are never the source. */
|
|
3402
|
+
declare function decodeDynamicFormPageInputs(value: unknown): {
|
|
3403
|
+
document: DynamicFormAuthoringDocument | null;
|
|
3404
|
+
diagnostics: EditorDiagnostic[];
|
|
3405
|
+
};
|
|
3406
|
+
/** Owner callback for Core admission; no component loading or second config authority. */
|
|
3407
|
+
declare function validateDynamicFormPageWidget(widget: WidgetInstance): readonly {
|
|
3408
|
+
code: string;
|
|
3409
|
+
path: string;
|
|
3410
|
+
}[];
|
|
3411
|
+
/** Inverse native projection. Explicit unrepresentable authoring blocks fail instead of being filtered. */
|
|
3412
|
+
declare function encodeDynamicFormPageInputs(value: unknown): {
|
|
3413
|
+
inputs: Record<string, unknown> | null;
|
|
3414
|
+
diagnostics: EditorDiagnostic[];
|
|
3415
|
+
};
|
|
3416
|
+
/** Persist only explicit deltas from the mounted native editor; bindings/context stay pinned to the seed. */
|
|
3417
|
+
declare function projectDynamicFormPageEditorChanges(authoredInputs: unknown, editorBaseline: unknown, editorValue: unknown): {
|
|
3418
|
+
inputs: Record<string, unknown> | null;
|
|
3419
|
+
diagnostics: EditorDiagnostic[];
|
|
3420
|
+
};
|
|
3421
|
+
/** Derive execution-only identity and disable independent preferences. Never persist this projection. */
|
|
3422
|
+
declare function materializeDynamicFormPageRuntimeInputs(value: unknown, pageId: string, widgetKey: string, options?: {
|
|
3423
|
+
preview?: boolean;
|
|
3424
|
+
}): {
|
|
3425
|
+
inputs: Record<string, unknown> | null;
|
|
3426
|
+
diagnostics: EditorDiagnostic[];
|
|
3427
|
+
};
|
|
3428
|
+
declare const DYNAMIC_FORM_GOVERNED_PAGE_PREVIEW_ADAPTER: GovernedPagePreviewWidgetAdapter;
|
|
3136
3429
|
|
|
3137
|
-
export { ActionsEditorComponent, CORPORATE_PRESENTATION_FORMAT_GALLERY, CanvasStateService, CanvasToolbarComponent, ColumnEditorComponent, DomainRuleFormRulesService, DynamicFormLayoutService, DynamicFormSchemaCacheService,
|
|
3138
|
-
export type { CanvasElement, CanvasElementType, CanvasPathPart, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, CorporatePresentationExample, DomainRuleFormRulesRequestOptions, DomainRuleMaterializedFormLayoutRule, DynamicFieldRenderErrorEvent, DynamicFormAllowedRuleProperties, DynamicFormApplyPlan, DynamicFormAuthoringDocument, DynamicFormBindings, DynamicFormConfigPatchChangeEvent, DynamicFormContextSnapshot, DynamicFormGeneratedLayoutPreset, DynamicFormPresentationSnapshot, DynamicFormProjectionContext, DynamicFormResolvedRuntimeContract, DynamicFormRuleAuthoringContext, DynamicFormRuleAuthoringField, DynamicFormRuleAuthoringTarget, DynamicFormRuleAuthoringTargetDetails, DynamicFormRuleAuthoringTargets, DynamicFormRuleAuthoringVisualBlockNode, DynamicFormRuleTargetType, DynamicFormRuntimeContext, DynamicFormRuntimeValueSource, DynamicFormSchemaPrefsSnapshot, DynamicFormValidationContext, EditorDiagnostic, EditorDocument,
|
|
3430
|
+
export { ActionsEditorComponent, CORPORATE_PRESENTATION_FORMAT_GALLERY, CanvasStateService, CanvasToolbarComponent, ColumnEditorComponent, DYNAMIC_FORM_GOVERNED_PAGE_PREVIEW_ADAPTER, DomainRuleFormRulesService, DynamicFormLayoutService, DynamicFormSchemaCacheService, FORM_AI_CAPABILITIES, FORM_COMPONENT_AI_CAPABILITIES, FieldConfiguratorComponent, FieldEditorComponent, FormConfigService, FormContextService, FormLayoutService, FormRulesService, JsonConfigEditorComponent, LEGACY_COMPACT_PRESENTATION_COMPACT_PRESENTATION_EXAMPLE, LayoutColorToken, LayoutEditorComponent, LayoutPrefsService, LegacyCompactPresentationExampleComponent, PRAXIS_DYNAMIC_FORM_AUTHORING_MANIFEST, PRAXIS_DYNAMIC_FORM_COMPONENT_METADATA, PRAXIS_FILTER_FORM_AUTHORING_MANIFEST, PRAXIS_FILTER_FORM_AUTHORING_PROJECTION, PRAXIS_FILTER_FORM_COMPONENT_METADATA, PraxisDynamicForm, PraxisDynamicFormConfigEditor, PraxisDynamicFormWidgetConfigEditor, PraxisFilterForm, PraxisFilterFormWidgetConfigEditor, PraxisFormActionsComponent, RowConfiguratorComponent, RowEditorComponent, SETTINGS_PANEL_DYNAMIC_FORM_PROVIDER, SectionEditorComponent, TASK_PRESETS, applyVisibilityRules, buildCorporatePresentationFormatGalleryConfig, buildDynamicFormApplyPlan, buildDynamicFormRuleAuthoringContext, buildLegacyCompactPresentationCompactPresentationConfig, createDynamicFormAuthoringDocument, decodeDynamicFormPageInputs, encodeDynamicFormPageInputs, formLayoutRulesToBuilderState, getFormAiCatalog, getFormCapabilities, getFormEnum, isRuleSatisfied, materializeDynamicFormPageRuntimeInputs, normalizeDateArrays, normalizeDynamicFormAuthoringDocument, normalizeTemporalFieldValues, parseLegacyOrDynamicFormDocument, projectDynamicFormPageEditorChanges, providePraxisDynamicFormMetadata, providePraxisFilterFormMetadata, provideSettingsPanelDynamicForm, ruleBuilderStateToFormLayoutRules, serializeDynamicFormAuthoringDocument, stripLegacyFieldMetadata, toCanonicalDynamicFormConfig, validateDynamicFormAuthoringDocument, validateDynamicFormAuthoringInput, validateDynamicFormPageWidget };
|
|
3431
|
+
export type { CanvasElement, CanvasElementType, CanvasPathPart, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, CorporatePresentationExample, DomainRuleFormRulesRequestOptions, DomainRuleMaterializedFormLayoutRule, DynamicFieldRenderErrorEvent, DynamicFormAllowedRuleProperties, DynamicFormApplyPlan, DynamicFormAuthoringDocument, DynamicFormBindings, DynamicFormConfigPatchChangeEvent, DynamicFormContextSnapshot, DynamicFormGeneratedLayoutPreset, DynamicFormPresentationSnapshot, DynamicFormProjectionContext, DynamicFormResolvedRuntimeContract, DynamicFormRuleAuthoringContext, DynamicFormRuleAuthoringField, DynamicFormRuleAuthoringTarget, DynamicFormRuleAuthoringTargetDetails, DynamicFormRuleAuthoringTargets, DynamicFormRuleAuthoringVisualBlockNode, DynamicFormRuleTargetType, DynamicFormRuntimeContext, DynamicFormRuntimeValueSource, DynamicFormSchemaPrefsSnapshot, DynamicFormValidationContext, EditorDiagnostic, EditorDocument, FieldPath, FieldPathContainer, FieldPathWithIndex, Capability as FormComponentCapability, CapabilityCatalog as FormComponentCapabilityCatalog, CapabilityCategory as FormComponentCapabilityCategory, ValueKind as FormComponentValueKind, FormConfigLike, GenerateFormConfigFromMetadataOptions, IdPath, InsertLocalFieldOptions, InsertLocalFieldResult, JsonEditorEvent, JsonValidationResult, LayoutChange, LayoutResult, LegacyCompactPresentationCompactPresentationExample, LegacyCompactPresentationLegacyFrequencyRow, LocalFieldInsertionDiagnostic, LocalFieldInsertionDiagnosticCode, Operation, Path, PathWithIndex, PraxisDynamicFormDomainRulesOptions, PraxisDynamicFormEmptyState, PraxisDynamicFormWidgetEditorInputs, PraxisDynamicFormWidgetEditorValue, PraxisFilterFormWidgetEditorInputs, PraxisFilterFormWidgetEditorValue, PraxisFormActionEvent, RemovePolicy, RuleApplicationContext, RuleApplicationDiagnostic, RuleApplicationDiagnosticCode, RuleApplicationResult, RuleApplicationTargetIndex, RuleApplicationTargetType, ValidationReport, ValueKind$1 as ValueKind };
|