@praxisui/dynamic-form 10.0.0-rc.8 → 10.0.0-rc.80
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 +173 -7
- package/ai/component-registry.json +2676 -337
- package/docs/custom-fields-enterprise-review.md +229 -0
- package/docs/dynamic-form-authoring-document-semantics.md +74 -2
- package/docs/dynamic-form-stepper-implementation-plan.md +111 -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 +21 -21
- package/fesm2022/praxisui-dynamic-form.mjs +11086 -1474
- package/package.json +8 -8
- package/src/lib/config-editor/praxis-dynamic-form-config-editor.json-api.md +14 -5
- package/src/lib/layout-editor/praxis-layout-editor.json-api.md +8 -0
- package/src/lib/praxis-dynamic-form.json-api.md +69 -22
- package/types/praxisui-dynamic-form.d.ts +560 -46
- 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, FormStepTelemetryEvent, RichContentDocument, JsonLogicRecord, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, EnterpriseRuntimeContextService, FormStepperReadMode, FormLayoutTabsAppearance, FormStepTelemetryReason, FormSectionHeaderAction, FormSectionHeaderConfig, PraxisRuntimeComponentObservationEnvelope, FormConfigState, JsonLogicExpression, FormHelpPresentationConfig, GlobalActionCatalogEntry, PraxisRuntimeConditionalEffectRule, PraxisRuntimeGlobalActionEffect, SurfaceOpenPayload, GlobalActionField, PraxisEffectPolicy, FieldDefinition, ComponentDocMeta, DiscoveredResourceOption, FormLayoutStepItem, 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;
|
|
@@ -371,11 +372,11 @@ declare class ReactiveDeterminationRuntimeService {
|
|
|
371
372
|
private readonly publishingCommitByForm;
|
|
372
373
|
private nextConnectionId;
|
|
373
374
|
hasPending(form: FormGroup): boolean;
|
|
374
|
-
hasUnsatisfied(form: FormGroup): boolean;
|
|
375
|
+
hasUnsatisfied(form: FormGroup, unvisitedFieldNames?: readonly string[]): boolean;
|
|
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;
|
|
@@ -422,6 +423,21 @@ interface PraxisFormActionEvent {
|
|
|
422
423
|
/** Original DOM event that triggered the action */
|
|
423
424
|
originalEvent: Event;
|
|
424
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* Stepper progression metadata consumed by the unified bottom/top action bar.
|
|
428
|
+
*/
|
|
429
|
+
interface PraxisFormActionsStepperState {
|
|
430
|
+
active: boolean;
|
|
431
|
+
currentStep: number;
|
|
432
|
+
totalSteps: number;
|
|
433
|
+
canGoPrevious: boolean;
|
|
434
|
+
canGoNext: boolean;
|
|
435
|
+
isLastStep: boolean;
|
|
436
|
+
pendingTransition?: boolean;
|
|
437
|
+
previousLabel?: string;
|
|
438
|
+
nextLabel?: string;
|
|
439
|
+
progressLabel?: string;
|
|
440
|
+
}
|
|
425
441
|
declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
426
442
|
private shortcuts;
|
|
427
443
|
private readonly i18n;
|
|
@@ -429,9 +445,11 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
429
445
|
private actionButtonsCacheSource?;
|
|
430
446
|
private actionButtonsCacheOverrides?;
|
|
431
447
|
private formActionsClassesCacheSource?;
|
|
448
|
+
private formActionsClassesCacheNavigationOnly?;
|
|
432
449
|
private formActionsClassesCache;
|
|
433
450
|
private viewClassMapCacheSource?;
|
|
434
451
|
private viewClassMapCacheEditorialContext?;
|
|
452
|
+
private viewClassMapCacheNavigationOnly?;
|
|
435
453
|
private viewClassMapCache;
|
|
436
454
|
private visibleButtonsCacheSource;
|
|
437
455
|
private visibleButtonsCache;
|
|
@@ -445,8 +463,13 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
445
463
|
private buttonStylesCache;
|
|
446
464
|
private invalidSubmitHintCacheSignature;
|
|
447
465
|
private invalidSubmitHintCacheValue;
|
|
448
|
-
|
|
449
|
-
|
|
466
|
+
get submitErrorTitle(): string;
|
|
467
|
+
get ruleViolationTitle(): string;
|
|
468
|
+
get multiRuleViolationTitle(): string;
|
|
469
|
+
get inspectRuleLabel(): string;
|
|
470
|
+
get violationStageLabel(): string;
|
|
471
|
+
get violationSourceLabel(): string;
|
|
472
|
+
get violationLineageLabel(): string;
|
|
450
473
|
/** Configuration object describing form action buttons */
|
|
451
474
|
actions?: FormConfig['actions'];
|
|
452
475
|
/** Whether the actions are rendered inside an editorial visual context */
|
|
@@ -457,6 +480,10 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
457
480
|
formIsValid: boolean;
|
|
458
481
|
/** Optional error message displayed above the actions */
|
|
459
482
|
submitError?: string | null;
|
|
483
|
+
/** Structured rule-violation diagnostics (`422` / `409`) for explainable X-Ray display */
|
|
484
|
+
ruleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
485
|
+
/** Whether the contextual Decision Inspector drawer can be opened for the current violation */
|
|
486
|
+
canInspectDecision: boolean;
|
|
460
487
|
/** Visible required fields that currently block submit */
|
|
461
488
|
invalidRequiredFieldLabels: string[];
|
|
462
489
|
/** Suppresses invalid-form copy while a host runtime is still hydrating data. */
|
|
@@ -465,8 +492,16 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
465
492
|
formId?: string;
|
|
466
493
|
/** Overrides coming from runtime rules */
|
|
467
494
|
actionOverrides?: Record<string, Record<string, any>>;
|
|
495
|
+
/** Optional stepper progression state when effectiveLayoutMode === 'stepper'. */
|
|
496
|
+
stepperState: PraxisFormActionsStepperState | null;
|
|
497
|
+
/** Renders only stepper progression controls without mutation buttons or alerts (read/presentation modes). */
|
|
498
|
+
navigationOnly: boolean;
|
|
468
499
|
/** Emitted whenever a form action button is triggered */
|
|
469
500
|
action: EventEmitter<PraxisFormActionEvent>;
|
|
501
|
+
/** Emitted when the user requests contextual inspection of an applied business rule */
|
|
502
|
+
inspectDecision: EventEmitter<PraxisRuleViolationDiagnostic | undefined>;
|
|
503
|
+
/** Emitted when user navigates stepper actions ('prev' | 'next') inside the unified bar. */
|
|
504
|
+
stepAction: EventEmitter<"next" | "prev">;
|
|
470
505
|
private shortcutDisposers;
|
|
471
506
|
constructor(shortcuts: KeyboardShortcutService);
|
|
472
507
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -479,6 +514,8 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
479
514
|
};
|
|
480
515
|
getMatColor(btn: FormActionButton | undefined): 'primary' | 'accent' | 'warn' | undefined;
|
|
481
516
|
getActionButtons(): FormActionButton[];
|
|
517
|
+
private actionButtonsCacheNonFinalStepper;
|
|
518
|
+
private actionButtonsCacheNavigationOnly;
|
|
482
519
|
private computeActionButtons;
|
|
483
520
|
private refreshActionButtons;
|
|
484
521
|
getVisibleButtons(): FormActionButton[];
|
|
@@ -492,14 +529,67 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
492
529
|
};
|
|
493
530
|
getButtonStyles(button: FormActionButton): Record<string, any> | null;
|
|
494
531
|
isActionButtonDisabled(button: FormActionButton): boolean;
|
|
532
|
+
isStepperActive(): boolean;
|
|
533
|
+
isNonFinalStepperStep(): boolean;
|
|
534
|
+
shouldRenderStepperNextButton(): boolean;
|
|
535
|
+
getStepperPreviousLabel(): string;
|
|
536
|
+
getStepperNextLabel(): string;
|
|
537
|
+
getStepperProgressLabel(): string;
|
|
538
|
+
onStepAction(direction: 'prev' | 'next'): void;
|
|
495
539
|
shouldShowInvalidSubmitHint(): boolean;
|
|
540
|
+
getPrimaryRuleViolation(): PraxisRuleViolationDiagnostic | undefined;
|
|
541
|
+
getAdditionalRuleViolations(): readonly PraxisRuleViolationDiagnostic[];
|
|
542
|
+
hasMultipleRuleViolations(): boolean;
|
|
543
|
+
hasRuleViolationProvenance(target?: PraxisRuleViolationDiagnostic | undefined): boolean;
|
|
544
|
+
formatRuleStage(stage: string): string;
|
|
545
|
+
formatRuleSource(source: string): string;
|
|
546
|
+
onInspectDecisionClick(event: Event, violation?: PraxisRuleViolationDiagnostic): void;
|
|
496
547
|
getInvalidSubmitHint(): string;
|
|
497
548
|
private applyOverrides;
|
|
498
549
|
private registerActionShortcuts;
|
|
499
550
|
private resolveButtonActionId;
|
|
500
551
|
private isSecondaryButton;
|
|
501
552
|
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>;
|
|
553
|
+
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; }; "stepperState": { "alias": "stepperState"; "required": false; }; "navigationOnly": { "alias": "navigationOnly"; "required": false; }; }, { "action": "action"; "inspectDecision": "inspectDecision"; "stepAction": "stepAction"; }, never, never, true, never>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
type DynamicFormStepVisualState = 'active' | 'completed' | 'error' | 'pending' | 'locked';
|
|
557
|
+
interface DynamicFormResolvedStep {
|
|
558
|
+
index: number;
|
|
559
|
+
id: string;
|
|
560
|
+
label: string;
|
|
561
|
+
sectionIds: string[];
|
|
562
|
+
icon?: string;
|
|
563
|
+
description?: string;
|
|
564
|
+
badge?: string | number;
|
|
565
|
+
disabled?: boolean;
|
|
566
|
+
optional?: boolean;
|
|
567
|
+
state: DynamicFormStepVisualState;
|
|
568
|
+
errorCount: number;
|
|
569
|
+
completed: boolean;
|
|
570
|
+
navigable: boolean;
|
|
571
|
+
locked: boolean;
|
|
572
|
+
}
|
|
573
|
+
interface DynamicFormStepperSnapshot {
|
|
574
|
+
steps: DynamicFormResolvedStep[];
|
|
575
|
+
activeStepIndex: number;
|
|
576
|
+
activeStepId: string | null;
|
|
577
|
+
totalSteps: number;
|
|
578
|
+
canGoPrevious: boolean;
|
|
579
|
+
canGoNext: boolean;
|
|
580
|
+
isFirstStep: boolean;
|
|
581
|
+
isLastStep: boolean;
|
|
582
|
+
pendingTransition: boolean;
|
|
583
|
+
announcement: string;
|
|
584
|
+
announcementTone: 'polite' | 'assertive';
|
|
585
|
+
}
|
|
586
|
+
type DynamicFormStepTransitionReason = 'committed' | 'noop' | 'disabled' | 'out-of-range' | 'validation-failed' | 'determination-unsatisfied' | 'cancelled' | 'destroyed';
|
|
587
|
+
interface DynamicFormStepTransitionResult {
|
|
588
|
+
transitioned: boolean;
|
|
589
|
+
reason: DynamicFormStepTransitionReason;
|
|
590
|
+
stepIndex?: number;
|
|
591
|
+
stepId?: string;
|
|
592
|
+
blockedStepIndex?: number;
|
|
503
593
|
}
|
|
504
594
|
|
|
505
595
|
/**
|
|
@@ -514,6 +604,14 @@ interface FormAiHost {
|
|
|
514
604
|
readonlyModeGlobal?: boolean | null;
|
|
515
605
|
effectiveReadonly?: boolean;
|
|
516
606
|
applyConfigFromAdapter(config: FormConfig): void;
|
|
607
|
+
getRuntimeValueTargetIdentity?(): PraxisRuntimeFormValueTargetIdentity;
|
|
608
|
+
getRuntimeValueEligibility?(): PraxisRuntimeFormValueEligibility;
|
|
609
|
+
previewRuntimeValues?(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
610
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
611
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
612
|
+
}): PraxisRuntimeFormValuePreviewResult;
|
|
613
|
+
applyRuntimeValues?(request: PraxisRuntimeFormValueApplyRequest): Promise<PraxisRuntimeFormValueApplyReceipt> | PraxisRuntimeFormValueApplyReceipt;
|
|
614
|
+
undoRuntimeValues?(receiptId?: string): Promise<PraxisRuntimeFormValueUndoReceipt> | PraxisRuntimeFormValueUndoReceipt;
|
|
517
615
|
}
|
|
518
616
|
|
|
519
617
|
declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
@@ -529,6 +627,14 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
529
627
|
getDataProfile(): Record<string, any>;
|
|
530
628
|
getSchemaFields(): Record<string, any>[];
|
|
531
629
|
getAuthoringContext(): Record<string, any>;
|
|
630
|
+
getRuntimeValueTargetIdentity(): PraxisRuntimeFormValueTargetIdentity | null;
|
|
631
|
+
getRuntimeValueEligibility(): PraxisRuntimeFormValueEligibility | null;
|
|
632
|
+
previewRuntimeValues(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
633
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
634
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
635
|
+
}): PraxisRuntimeFormValuePreviewResult | null;
|
|
636
|
+
applyRuntimeValues(request: PraxisRuntimeFormValueApplyRequest): Promise<PraxisRuntimeFormValueApplyReceipt | null>;
|
|
637
|
+
undoRuntimeValues(receiptId?: string): Promise<PraxisRuntimeFormValueUndoReceipt | null>;
|
|
532
638
|
compileAiResponse(response: Record<string, unknown>): AiResponseCompileResult | null;
|
|
533
639
|
createSnapshot(): FormConfig;
|
|
534
640
|
restoreSnapshot(snapshot: FormConfig): Promise<void>;
|
|
@@ -539,6 +645,8 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
539
645
|
private extractIncomingRules;
|
|
540
646
|
private extractComponentEditOperationPatch;
|
|
541
647
|
private applyComponentEditOperation;
|
|
648
|
+
private applyLayoutModeSet;
|
|
649
|
+
private applyBehaviorDraftPersistenceSet;
|
|
542
650
|
private applyLocalFieldAdd;
|
|
543
651
|
private applyFieldMetadataPatch;
|
|
544
652
|
private appendFieldToLayout;
|
|
@@ -576,6 +684,8 @@ interface EditorDiagnostic {
|
|
|
576
684
|
|
|
577
685
|
interface DynamicFormBindings {
|
|
578
686
|
mode?: DynamicFormMode;
|
|
687
|
+
/** Controls whether saved layout changes apply to all CRUD modes ('shared') or only the active mode ('mode-only'). */
|
|
688
|
+
layoutScope?: DynamicFormLayoutScope;
|
|
579
689
|
/** Opt-in view placeholder; null explicitly disables it. */
|
|
580
690
|
emptyState?: PraxisDynamicFormEmptyState | null;
|
|
581
691
|
/** true: presentation in view; false: fields; null/absent: inherit layout policy. */
|
|
@@ -589,7 +699,7 @@ interface DynamicFormSchemaPrefsSnapshot {
|
|
|
589
699
|
}
|
|
590
700
|
interface DynamicFormContextSnapshot {
|
|
591
701
|
backConfig?: BackConfig;
|
|
592
|
-
presentation?: DynamicFormPresentationSnapshot;
|
|
702
|
+
presentation?: DynamicFormPresentationSnapshot | null;
|
|
593
703
|
schemaPrefs?: DynamicFormSchemaPrefsSnapshot;
|
|
594
704
|
}
|
|
595
705
|
interface DynamicFormAuthoringDocument extends EditorDocument<FormConfig, DynamicFormBindings> {
|
|
@@ -648,6 +758,7 @@ interface DynamicFormApplyPlan {
|
|
|
648
758
|
};
|
|
649
759
|
diff?: {
|
|
650
760
|
modeChanged?: boolean;
|
|
761
|
+
layoutScopeChanged?: boolean;
|
|
651
762
|
presentationChanged?: boolean;
|
|
652
763
|
schemaPrefsChanged?: boolean;
|
|
653
764
|
backConfigChanged?: boolean;
|
|
@@ -730,7 +841,7 @@ interface FormColumnRichContentRenderItem {
|
|
|
730
841
|
style?: Record<string, any> | null;
|
|
731
842
|
}
|
|
732
843
|
type FormColumnRenderItem = FormColumnFieldsRenderItem | FormColumnRichContentRenderItem;
|
|
733
|
-
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
844
|
+
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisRuntimeFormValueTargetPort {
|
|
734
845
|
private crud;
|
|
735
846
|
private http;
|
|
736
847
|
private fb;
|
|
@@ -769,7 +880,14 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
769
880
|
private readonly aiTurnOrchestrator;
|
|
770
881
|
private readonly jsonLogic;
|
|
771
882
|
private readonly resourceDiscovery;
|
|
883
|
+
private readonly runtimeObservationRegistry;
|
|
884
|
+
private readonly parentWidgetShell;
|
|
885
|
+
private runtimeObservationRegistration;
|
|
886
|
+
private aiAssistantSessionDismissed;
|
|
887
|
+
private lastSyncedAiAssistantSessionId;
|
|
888
|
+
private lastHandledDismissalSeq;
|
|
772
889
|
private readonly aiAssistantSessionEffect;
|
|
890
|
+
private readonly aiAssistantDismissEffect;
|
|
773
891
|
private readonly globalActions;
|
|
774
892
|
private readonly optionRegistry;
|
|
775
893
|
private readonly DEBUG;
|
|
@@ -778,10 +896,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
778
896
|
private effectiveActionsCacheOverride?;
|
|
779
897
|
private invalidRequiredFieldLabelsCache;
|
|
780
898
|
private invalidRequiredFieldLabelsSignature;
|
|
899
|
+
readonly formVisualBlockSurfaceCapabilities: _praxisui_core.ClientSurfaceCapabilities;
|
|
781
900
|
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
782
901
|
resourcePath?: string;
|
|
783
902
|
resourceId?: string | number;
|
|
784
903
|
initialValue?: Record<string, unknown> | null;
|
|
904
|
+
/**
|
|
905
|
+
* Opt-in overlay for edit mode: when true, explicit `initialValue` keys are
|
|
906
|
+
* merged over the server-hydrated GET /{id} record without suppressing entity load.
|
|
907
|
+
*/
|
|
908
|
+
overlayInitialValueOnEdit: boolean;
|
|
785
909
|
/**
|
|
786
910
|
* Replaces the form with a guided empty state while a view has neither a
|
|
787
911
|
* resource id nor a local record snapshot. Create/edit forms are unaffected.
|
|
@@ -794,7 +918,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
794
918
|
*/
|
|
795
919
|
editorialContext: Record<string, unknown> | null;
|
|
796
920
|
mode: DynamicFormMode;
|
|
797
|
-
|
|
921
|
+
private effectiveConfig;
|
|
922
|
+
private configAssignment;
|
|
923
|
+
private authoredHostConfigSnapshot;
|
|
924
|
+
private hasRuntimeAuthoringEdits;
|
|
925
|
+
get config(): FormConfig;
|
|
926
|
+
set config(value: FormConfig);
|
|
927
|
+
private snapshotHostConfigInput;
|
|
798
928
|
private hostConfigInputProvided;
|
|
799
929
|
/** Optional host-level overrides for the rendered form action bar. */
|
|
800
930
|
actions?: FormConfig['actions'] | null;
|
|
@@ -803,9 +933,15 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
803
933
|
* 'resource' (padrão) usa o schema do recurso (/{resource}/schemas -> .../all response)
|
|
804
934
|
* 'filter' usa o schema do DTO de filtro (via /schemas/filtered no POST /filter request)
|
|
805
935
|
*/
|
|
806
|
-
schemaSource: 'resource' | 'filter';
|
|
936
|
+
schemaSource: 'resource' | 'filter' | 'action';
|
|
937
|
+
/** Canonical workflow/action identifier when bound to a command surface. */
|
|
938
|
+
actionId?: string | null;
|
|
939
|
+
/** Canonical backend operationId when bound to a command/surface endpoint. */
|
|
940
|
+
operationId?: string | null;
|
|
807
941
|
/** Canonical schema URL published by the backend surface catalog. */
|
|
808
942
|
schemaUrl?: string | null;
|
|
943
|
+
/** Optional RFC 6901 JSON Pointer selecting a sub-schema inside the fetched schema document. */
|
|
944
|
+
schemaPointer?: string | null;
|
|
809
945
|
/** Canonical read URL published by backend view/read-projection surfaces. */
|
|
810
946
|
readUrl?: string | null;
|
|
811
947
|
/** Canonical submit URL published by the backend surface catalog. */
|
|
@@ -851,16 +987,19 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
851
987
|
/** Identifier for persisting layouts */
|
|
852
988
|
formId?: string;
|
|
853
989
|
componentInstanceId?: string;
|
|
854
|
-
|
|
990
|
+
private _configPersistenceStrategy;
|
|
991
|
+
set configPersistenceStrategy(value: 'local-first' | 'input-first' | 'volatile' | 'storage-first');
|
|
992
|
+
get configPersistenceStrategy(): 'local-first' | 'input-first' | 'volatile';
|
|
855
993
|
/** Optional layout to use instead of generated one */
|
|
856
994
|
layout?: FormLayout;
|
|
857
995
|
/**
|
|
858
|
-
* Layout mode for organizing form sections: 'vertical' (default), 'tabs' or '
|
|
996
|
+
* Layout mode for organizing form sections: 'vertical' (default), 'tabs', 'accordion' or 'stepper'.
|
|
859
997
|
* Overrides config.layout.mode when specified.
|
|
860
998
|
*/
|
|
861
999
|
layoutMode?: FormLayoutMode;
|
|
862
1000
|
/**
|
|
863
|
-
* Layout configuration options for form sections (mode, tabs, defaultTabId, tabsAppearance,
|
|
1001
|
+
* Layout configuration options for form sections (mode, tabs, defaultTabId, tabsAppearance,
|
|
1002
|
+
* accordionMulti, hideSectionHeaderInTabs, hideSectionHeaderInStepper, etc.).
|
|
864
1003
|
* Merged with and takes precedence over config.layout.
|
|
865
1004
|
*/
|
|
866
1005
|
formLayout?: FormLayoutOptions;
|
|
@@ -922,17 +1061,30 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
922
1061
|
isSectionEditorialCard(section?: FormSection | null): boolean;
|
|
923
1062
|
isSectionCompactPresentation(section?: FormSection | null): boolean;
|
|
924
1063
|
shouldShowContextEmptyState(): boolean;
|
|
1064
|
+
private isItemScopedActionSubmitTarget;
|
|
1065
|
+
getActionTargetRecordSummary(): {
|
|
1066
|
+
id?: string;
|
|
1067
|
+
title?: string;
|
|
1068
|
+
subtitle?: string;
|
|
1069
|
+
badges: Array<{
|
|
1070
|
+
label: string;
|
|
1071
|
+
value: string;
|
|
1072
|
+
tone: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
1073
|
+
}>;
|
|
1074
|
+
} | null;
|
|
925
1075
|
private hasResourceContext;
|
|
926
1076
|
private hasLocalRecordContext;
|
|
927
1077
|
get effectiveReadonly(): boolean;
|
|
928
1078
|
get effectiveDisabledMode(): boolean | null;
|
|
929
1079
|
get effectiveFormIsValid(): boolean;
|
|
1080
|
+
private hasBlockingClientValidationErrors;
|
|
930
1081
|
protected get configControlLabel(): string;
|
|
931
1082
|
protected get disconnectControlLabel(): string;
|
|
932
1083
|
get invalidRequiredFieldLabels(): string[];
|
|
933
1084
|
/** Value propagated to DynamicFieldLoader; null allows per-field metadata */
|
|
934
1085
|
get presentationForLoader(): boolean | null;
|
|
935
1086
|
getRenderableFieldsForLoader(fields: FieldMetadata[]): FieldMetadata[];
|
|
1087
|
+
private attachApiUrlEntryToField;
|
|
936
1088
|
private materializeFieldPresentationPolicy;
|
|
937
1089
|
private shouldMaterializeBooleanControl;
|
|
938
1090
|
private materializeFieldHelpPolicy;
|
|
@@ -978,10 +1130,27 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
978
1130
|
tabSelected: EventEmitter<FormLayoutTabItem>;
|
|
979
1131
|
/** Active tab ID when effectiveLayoutMode === 'tabs'. */
|
|
980
1132
|
activeTabId: string | null;
|
|
1133
|
+
private static nextTabSetId;
|
|
1134
|
+
private readonly tabSetId;
|
|
1135
|
+
/** Active step index (0-based) when effectiveLayoutMode === 'stepper'. */
|
|
1136
|
+
activeStepIndex: number;
|
|
1137
|
+
/** Emits the newly selected step index when navigating in stepper mode. */
|
|
1138
|
+
stepChange: EventEmitter<number>;
|
|
1139
|
+
/** Emits structured metadata-only telemetry on step transitions and error/draft recoveries. */
|
|
1140
|
+
stepTelemetry: EventEmitter<FormStepTelemetryEvent>;
|
|
1141
|
+
private readonly stepperController;
|
|
1142
|
+
private formActionsStepperStateCacheKey;
|
|
1143
|
+
private formActionsStepperStateCache;
|
|
1144
|
+
private isReconcilingStepState;
|
|
1145
|
+
private pendingActiveStepIndexInputChange;
|
|
1146
|
+
private pendingStepperErrorFocus;
|
|
981
1147
|
private reactiveDeterminationPending;
|
|
982
1148
|
isLoading: boolean;
|
|
983
1149
|
submitting: boolean;
|
|
984
1150
|
private submitPreparationInProgress;
|
|
1151
|
+
private submitLifecycleSequence;
|
|
1152
|
+
private activeSubmitLifecycle;
|
|
1153
|
+
private activeSubmitAutomatic;
|
|
985
1154
|
submitError: string | null;
|
|
986
1155
|
initializationStatus: 'idle' | 'loading' | 'success' | 'error';
|
|
987
1156
|
currentErrorMessage: string;
|
|
@@ -995,6 +1164,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
995
1164
|
aiAssistantLayout: PraxisAssistantShellLayout;
|
|
996
1165
|
aiAssistantViewState: PraxisAssistantTurnViewState;
|
|
997
1166
|
readonly aiAssistantLabels: Partial<PraxisAssistantShellLabels>;
|
|
1167
|
+
protected shouldShowAiAssistantEntrypoint(): boolean;
|
|
998
1168
|
private aiAssistantController;
|
|
999
1169
|
private aiAssistantStateSubscription;
|
|
1000
1170
|
fieldVisibility: {
|
|
@@ -1016,6 +1186,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1016
1186
|
private entitySelectionCleared;
|
|
1017
1187
|
private hydratedEntityId;
|
|
1018
1188
|
private loadedEntityData;
|
|
1189
|
+
private loadedResourceRevision;
|
|
1190
|
+
private resourceRevisionInvalidated;
|
|
1191
|
+
private entityReadAttempt;
|
|
1019
1192
|
protected entityHydrationPending: boolean;
|
|
1020
1193
|
protected entityReadFailed: boolean;
|
|
1021
1194
|
protected entityReadText(key: 'loading' | 'error' | 'retry' | 'region' | 'success'): string;
|
|
@@ -1028,20 +1201,38 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1028
1201
|
private assertSchemaInitializationCurrent;
|
|
1029
1202
|
private isSchemaTransportInterruption;
|
|
1030
1203
|
private schemaCache;
|
|
1204
|
+
private schemaValidationFailed;
|
|
1205
|
+
private initialValueContextInvalidated;
|
|
1031
1206
|
private lastSchemaMeta?;
|
|
1032
1207
|
private readonly schemaMetaPersistenceQueues;
|
|
1208
|
+
private persistenceContextEpoch;
|
|
1209
|
+
private persistenceContextDestroyed;
|
|
1210
|
+
/** Fence delayed work; requests already sent are not retroactively canceled. */
|
|
1211
|
+
private persistenceGuard;
|
|
1033
1212
|
private readonly formConfigPersistenceQueues;
|
|
1034
1213
|
private readonly formConfigPersistenceGenerations;
|
|
1035
1214
|
private readonly formConfigConflictBlockThrough;
|
|
1036
1215
|
private schemaRootHooks?;
|
|
1216
|
+
private schemaRootFormLayout?;
|
|
1037
1217
|
private schemaRootReactiveDeterminations;
|
|
1038
1218
|
private schemaRootOperationId;
|
|
1219
|
+
private loadedRootSchema;
|
|
1039
1220
|
private destroy$;
|
|
1040
1221
|
private readonly entityReadCancel$;
|
|
1041
1222
|
private isDestroyed;
|
|
1042
1223
|
private formValueChangesSubscription;
|
|
1224
|
+
private formStatusChangesSubscription;
|
|
1225
|
+
private readonly runtimeValueJournal;
|
|
1226
|
+
private runtimeValueRevision;
|
|
1227
|
+
private runtimeValueTrackedForm;
|
|
1228
|
+
private readonly runtimeValueTrackedControls;
|
|
1229
|
+
private suppressCommandRuleSideEffectsDepth;
|
|
1230
|
+
private pendingSuppressedCommandEvaluation;
|
|
1231
|
+
private consumingSuppressedCommandEvaluation;
|
|
1043
1232
|
private readonly submitFieldErrorSubscriptions;
|
|
1044
1233
|
private activeSubmitErrorDetails;
|
|
1234
|
+
activeRuleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
1235
|
+
private readonly decisionInspector;
|
|
1045
1236
|
private reactiveDeterminationSubscription;
|
|
1046
1237
|
private reactiveDeterminationScheduledBuildId;
|
|
1047
1238
|
private dependencyPolicySubscription;
|
|
@@ -1053,6 +1244,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1053
1244
|
private lastCorrelationId?;
|
|
1054
1245
|
private currentDnD?;
|
|
1055
1246
|
private columnFieldsCache;
|
|
1247
|
+
private readonly renderableFieldsCache;
|
|
1056
1248
|
private rowClassesCache;
|
|
1057
1249
|
private rowStylesCache;
|
|
1058
1250
|
private sectionClassesCache;
|
|
@@ -1062,6 +1254,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1062
1254
|
private lastFieldPatchSig;
|
|
1063
1255
|
private lastFieldPatchAt;
|
|
1064
1256
|
schemaOutdated: boolean;
|
|
1257
|
+
sessionDraftRestored: boolean;
|
|
1258
|
+
stepperReviewShowOnlyDirty: boolean;
|
|
1259
|
+
private stepperReviewTotalDirtyCountValue;
|
|
1260
|
+
private stepperReviewChaptersCacheKey;
|
|
1261
|
+
private stepperReviewChaptersCache;
|
|
1065
1262
|
private resolvedPrefs;
|
|
1066
1263
|
private editorialWidgetContextCache;
|
|
1067
1264
|
private editorialWidgetContextDeps;
|
|
@@ -1089,6 +1286,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1089
1286
|
private reactiveValidate$?;
|
|
1090
1287
|
private warnedMissingId;
|
|
1091
1288
|
private schemaState;
|
|
1289
|
+
private readonly destroyRef;
|
|
1290
|
+
private readonly contextSwitchGuard;
|
|
1291
|
+
private canPersistFormStrategy;
|
|
1092
1292
|
private getLogger;
|
|
1093
1293
|
private buildLogOptions;
|
|
1094
1294
|
private debugLog;
|
|
@@ -1118,6 +1318,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1118
1318
|
labelAlign: 'start' | 'center' | 'end';
|
|
1119
1319
|
valueAlign: 'start' | 'center' | 'end';
|
|
1120
1320
|
};
|
|
1321
|
+
private hasExplicitPresLabelSize;
|
|
1322
|
+
private hasExplicitPresValueSize;
|
|
1323
|
+
private hasExplicitPresDensity;
|
|
1121
1324
|
hoveredElement: CanvasElement | null;
|
|
1122
1325
|
selectedElement: CanvasElement | null;
|
|
1123
1326
|
toolbarTransform: string;
|
|
@@ -1136,6 +1339,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1136
1339
|
private resolveSubmitOperation;
|
|
1137
1340
|
private buildSubmitRequest;
|
|
1138
1341
|
private resolveSubmitResourceVersion;
|
|
1342
|
+
/** Identity and server context are captured with the representation, never reconstructed at submit by GET. */
|
|
1343
|
+
private resourceRevisionBinding;
|
|
1344
|
+
private usesAutomaticItemRevision;
|
|
1345
|
+
private isResourceRevisionCurrent;
|
|
1346
|
+
private invalidateAutomaticSubmitUi;
|
|
1347
|
+
private resourceRevisionNeedsReload;
|
|
1348
|
+
private resourceRevisionReloadError;
|
|
1349
|
+
private captureSavedResourceRevision;
|
|
1350
|
+
private rejectResourceRevision;
|
|
1351
|
+
private normalizeResourceVersionToken;
|
|
1352
|
+
private extractResourceVersionCandidate;
|
|
1139
1353
|
private normalizeSubmitMethod;
|
|
1140
1354
|
private formatResourceVersion;
|
|
1141
1355
|
private resolveSubmitHref;
|
|
@@ -1162,10 +1376,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1162
1376
|
private initializeStandaloneConfig;
|
|
1163
1377
|
private initializeDisconnectedEmptyState;
|
|
1164
1378
|
private reloadForModeChange;
|
|
1379
|
+
private resourceRevisionContextScope;
|
|
1380
|
+
private subscribeToRuntimeContextChanges;
|
|
1165
1381
|
ngOnInit(): void;
|
|
1166
1382
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1167
1383
|
private blurAllInputs;
|
|
1168
1384
|
private initializeForm;
|
|
1385
|
+
private hasInitializationError;
|
|
1169
1386
|
private handleInitializationError;
|
|
1170
1387
|
private loadConfigFailOpen;
|
|
1171
1388
|
private resolveFieldLabel;
|
|
@@ -1174,12 +1391,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1174
1391
|
private createDefaultConfig;
|
|
1175
1392
|
private createConfigFromHostConfig;
|
|
1176
1393
|
private shouldUseSchemaLayoutPolicy;
|
|
1394
|
+
private hasSchemaRootFormLayout;
|
|
1395
|
+
private normalizeSchemaLayoutModeValue;
|
|
1396
|
+
private buildSchemaRootLayoutDefaults;
|
|
1177
1397
|
private layoutPolicyRequestsPresentation;
|
|
1178
1398
|
private shouldPersistGeneratedConfig;
|
|
1179
1399
|
private createSchemaMaterializedConfig;
|
|
1180
1400
|
private reconcileLoadedConfigWithServerSchema;
|
|
1181
1401
|
private hostConfigHasAuthoredLocalFieldsNotInLocalConfig;
|
|
1182
1402
|
private syncWithServer;
|
|
1403
|
+
private isActionCommandWithoutExplicitReadUrl;
|
|
1183
1404
|
private loadEntity;
|
|
1184
1405
|
private hydrateEntityFromInitialValue;
|
|
1185
1406
|
private flushEntityHydrationState;
|
|
@@ -1190,7 +1411,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1190
1411
|
/** True while at least one backend Reactive Determination is unsettled. */
|
|
1191
1412
|
hasPendingReactiveDeterminations(): boolean;
|
|
1192
1413
|
/** True when the latest settled generation failed or could not derive a current draft. */
|
|
1193
|
-
hasUnsatisfiedReactiveDeterminations(): boolean;
|
|
1414
|
+
hasUnsatisfiedReactiveDeterminations(unvisitedFieldNames?: readonly string[]): boolean;
|
|
1194
1415
|
/** Resolves true only when the latest generations settled successfully/current. */
|
|
1195
1416
|
waitForReactiveDeterminations(timeoutMs?: number): Promise<boolean>;
|
|
1196
1417
|
private setReactiveDeterminationPending;
|
|
@@ -1213,15 +1434,30 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1213
1434
|
private hasInteractiveFormState;
|
|
1214
1435
|
private captureFormRuntimeState;
|
|
1215
1436
|
private getDirtyFieldNames;
|
|
1437
|
+
getPreparedSubmitPayload(): Record<string, unknown> | null;
|
|
1438
|
+
getLoadedRootSchema(): Record<string, unknown> | null;
|
|
1216
1439
|
private prepareCurrentSubmitPayload;
|
|
1217
1440
|
private emitPayloadPreview;
|
|
1218
1441
|
private resetToHydratedSnapshot;
|
|
1442
|
+
private resetStepperStateOnFormReset;
|
|
1443
|
+
private isSessionDraftPersistenceEnabled;
|
|
1444
|
+
getSessionDraftStorageKey(): string | null;
|
|
1445
|
+
flushSessionDraft(): void;
|
|
1446
|
+
setBaselineSnapshot(snapshot: Record<string, unknown> | null): void;
|
|
1447
|
+
private buildSessionDraftStorageKey;
|
|
1448
|
+
private persistSessionDraftIfNeeded;
|
|
1449
|
+
restoreSessionDraftIfNeeded(): void;
|
|
1450
|
+
clearSessionDraft(): void;
|
|
1451
|
+
discardRestoredSessionDraft(): void;
|
|
1219
1452
|
private collectDirtyFieldNames;
|
|
1453
|
+
private collectTouchedFieldNames;
|
|
1220
1454
|
private buildCurrentFormRuntimeContext;
|
|
1221
1455
|
private buildRestoreTargetContext;
|
|
1222
1456
|
private isCompatibleRuntimeStateContext;
|
|
1223
1457
|
private restoreFormRuntimeState;
|
|
1224
1458
|
private getNormalizedInitialValue;
|
|
1459
|
+
private getNormalizedEditOverlayValue;
|
|
1460
|
+
private markEditOverlayControlsDirty;
|
|
1225
1461
|
/**
|
|
1226
1462
|
* A local composition owns the complete snapshot supplied through initialValue.
|
|
1227
1463
|
* Once a readUrl/resourcePath can hydrate an edit/view entity, the backend remains
|
|
@@ -1229,6 +1465,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1229
1465
|
*/
|
|
1230
1466
|
private usesInitialValueAsAuthoritativeSnapshot;
|
|
1231
1467
|
private normalizeFormPatchValue;
|
|
1468
|
+
private coerceRecordDateControls;
|
|
1469
|
+
private applyFormSnapshotValue;
|
|
1470
|
+
private releaseSubmitFieldErrorSubscriptionsUnder;
|
|
1232
1471
|
private isDateControlMetadata;
|
|
1233
1472
|
private coerceDateControlValue;
|
|
1234
1473
|
/**
|
|
@@ -1255,6 +1494,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1255
1494
|
private getActiveFormRules;
|
|
1256
1495
|
private refreshMaterializedFormRules;
|
|
1257
1496
|
private resolveDomainRulesOptions;
|
|
1497
|
+
private evaluateFieldConditionalReadOnly;
|
|
1498
|
+
private evaluateFieldConditionalDisplay;
|
|
1499
|
+
private evaluateFieldConditionExpression;
|
|
1258
1500
|
private evaluateAndApplyRules;
|
|
1259
1501
|
private applyRuleComputedFieldValues;
|
|
1260
1502
|
private evaluateAndDispatchFormCommandRules;
|
|
@@ -1265,18 +1507,84 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1265
1507
|
private areRuleValuesEqual;
|
|
1266
1508
|
private buildRuleApplicationTargetIndex;
|
|
1267
1509
|
private setRuleApplicationDiagnostics;
|
|
1510
|
+
private isUneditedSchemaMaterializedConfig;
|
|
1511
|
+
private getAuthoredConfigLayout;
|
|
1512
|
+
get effectiveStepperInReadMode(): FormStepperReadMode;
|
|
1268
1513
|
get effectiveLayoutMode(): FormLayoutMode;
|
|
1514
|
+
isStepperReadNavigationOnly(): boolean;
|
|
1515
|
+
shouldRenderFormActionsBar(placement: 'top' | 'insideLastSection' | 'afterSections'): boolean;
|
|
1269
1516
|
get effectiveTabsAppearance(): FormLayoutTabsAppearance;
|
|
1270
1517
|
get effectiveAccordionMulti(): boolean;
|
|
1271
1518
|
get effectiveHideSectionHeaderInTabs(): boolean;
|
|
1519
|
+
get effectiveHideSectionHeaderInStepper(): boolean;
|
|
1520
|
+
get effectiveStepperReviewStep(): boolean;
|
|
1272
1521
|
get effectiveTabs(): FormLayoutTabItem[];
|
|
1273
1522
|
ensureActiveTabValid(): void;
|
|
1523
|
+
protected resolveActiveTab(tabs: FormLayoutTabItem[]): FormLayoutTabItem | undefined;
|
|
1524
|
+
protected tabDomId(id: string): string;
|
|
1525
|
+
protected panelDomId(id: string): string;
|
|
1526
|
+
protected navigateFormTabs(event: KeyboardEvent, tab: FormLayoutTabItem, tabs: FormLayoutTabItem[]): void;
|
|
1274
1527
|
selectTab(tabId: string): void;
|
|
1275
1528
|
isSectionInActiveTab(section?: FormSection): boolean;
|
|
1276
1529
|
getTabErrorCount(tab: FormLayoutTabItem): number;
|
|
1530
|
+
protected tabValidationCounts(tab: FormLayoutTabItem): {
|
|
1531
|
+
errors: number;
|
|
1532
|
+
required: number;
|
|
1533
|
+
};
|
|
1277
1534
|
getTabAriaControls(tab: FormLayoutTabItem): string;
|
|
1278
|
-
getTabIdForSection(section?: FormSection): string | null;
|
|
1535
|
+
getTabIdForSection(section?: FormSection, tabs?: FormLayoutTabItem[]): string | null;
|
|
1536
|
+
protected formTx(key: string, params?: Record<string, string | number | boolean | null | undefined>, fallback?: string): string;
|
|
1537
|
+
isSectionOptional(section?: FormSection): boolean;
|
|
1538
|
+
get effectiveSteps(): FormLayoutTabItem[];
|
|
1539
|
+
private appendSyntheticStepperReviewStepIfNeeded;
|
|
1540
|
+
isStepperReviewStepActive(): boolean;
|
|
1541
|
+
get stepperReviewTotalDirtyCount(): number;
|
|
1542
|
+
toggleStepperReviewShowOnlyDirty(): void;
|
|
1543
|
+
private isControlSubtreeDirty;
|
|
1544
|
+
private areStepperReviewRawValuesEqual;
|
|
1545
|
+
get stepperReviewChapters(): Array<{
|
|
1546
|
+
stepIndex: number;
|
|
1547
|
+
stepId: string;
|
|
1548
|
+
label: string;
|
|
1549
|
+
optional: boolean;
|
|
1550
|
+
dirtyCount: number;
|
|
1551
|
+
requiredTotalCount: number;
|
|
1552
|
+
requiredSatisfiedCount: number;
|
|
1553
|
+
items: Array<{
|
|
1554
|
+
fieldName: string;
|
|
1555
|
+
label: string;
|
|
1556
|
+
displayValue: string;
|
|
1557
|
+
dirty: boolean;
|
|
1558
|
+
previousDisplayValue?: string | null;
|
|
1559
|
+
collectionDiffs?: Array<{
|
|
1560
|
+
kind: 'added' | 'modified' | 'removed' | 'unchanged';
|
|
1561
|
+
currentSummary?: string;
|
|
1562
|
+
previousSummary?: string;
|
|
1563
|
+
}>;
|
|
1564
|
+
}>;
|
|
1565
|
+
}>;
|
|
1566
|
+
private formatStepperReviewFieldValue;
|
|
1567
|
+
private formatStepperReviewCollectionItem;
|
|
1568
|
+
private computeStepperReviewCollectionDiffs;
|
|
1569
|
+
private hasMultipleStepperSections;
|
|
1570
|
+
isStepperNavigationActive(): boolean;
|
|
1571
|
+
get stepperSnapshot(): DynamicFormStepperSnapshot;
|
|
1572
|
+
get formActionsStepperState(): PraxisFormActionsStepperState | null;
|
|
1573
|
+
get normalizedActiveStepIndex(): number;
|
|
1574
|
+
ensureActiveStepValid(): void;
|
|
1575
|
+
private emitStepTelemetry;
|
|
1576
|
+
private focusActiveStepperRegionAfterTransition;
|
|
1577
|
+
selectStep(index: number, reason?: FormStepTelemetryReason): Promise<boolean>;
|
|
1578
|
+
editStepperReviewField(stepIndex: number, fieldName: string): Promise<boolean>;
|
|
1579
|
+
nextStep(): Promise<boolean>;
|
|
1580
|
+
previousStep(): Promise<boolean>;
|
|
1581
|
+
onStepperBarAction(direction: 'prev' | 'next'): void;
|
|
1582
|
+
isSectionInActiveStep(section?: FormSection): boolean;
|
|
1583
|
+
getStepErrorCount(step: FormLayoutTabItem): number;
|
|
1279
1584
|
shouldHideSectionHeader(section?: FormSection): boolean;
|
|
1585
|
+
getPrintSectionTitle(section?: FormSection): string | null;
|
|
1586
|
+
private createStepperContext;
|
|
1587
|
+
private focusFirstInvalidInStep;
|
|
1280
1588
|
isSectionCollapsed(section?: FormSection): boolean;
|
|
1281
1589
|
isSectionCollapsible(section?: FormSection): boolean;
|
|
1282
1590
|
private getSectionRuleProps;
|
|
@@ -1285,6 +1593,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1285
1593
|
private hasVisibleSectionBody;
|
|
1286
1594
|
private shouldRenderInsideLastSectionContent;
|
|
1287
1595
|
private resolveInsideLastSectionHost;
|
|
1596
|
+
get actionTargetSelectedRecordLabel(): string;
|
|
1288
1597
|
getSectionTitle(section: FormSection): string | undefined;
|
|
1289
1598
|
getSectionDescription(section: FormSection): string | undefined;
|
|
1290
1599
|
getSectionAppearance(section: FormSection): 'card' | 'plain' | 'step' | undefined;
|
|
@@ -1389,7 +1698,12 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1389
1698
|
private clearSubmitFieldErrors;
|
|
1390
1699
|
private clearSubmitFieldError;
|
|
1391
1700
|
private resetSubmitErrorState;
|
|
1701
|
+
canInspectSubmitRuleViolations(): boolean;
|
|
1702
|
+
openSubmitDecisionInspector(violation?: PraxisRuleViolationDiagnostic): void;
|
|
1392
1703
|
private resolveSubmitErrorMessage;
|
|
1704
|
+
private isGenericEnvelopeErrorMessage;
|
|
1705
|
+
private formatStructuredSubmitErrorMessage;
|
|
1706
|
+
private resolveSubmitErrorControl;
|
|
1393
1707
|
private normalizeSubmitErrorTarget;
|
|
1394
1708
|
private navigateAfterSave;
|
|
1395
1709
|
private shouldConfirmCancelOnDirty;
|
|
@@ -1405,10 +1719,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1405
1719
|
toggleEditMode(): void;
|
|
1406
1720
|
openAiAssistant(): void;
|
|
1407
1721
|
openAiAssistantFromSession(session: PraxisAssistantSessionSnapshot): void;
|
|
1722
|
+
minimizeAiAssistant(): void;
|
|
1408
1723
|
closeAiAssistant(): void;
|
|
1409
1724
|
onAiAssistantPromptChange(prompt: string): void;
|
|
1410
1725
|
onAiAssistantSubmit(prompt: string): void;
|
|
1411
|
-
onAiAssistantApply(): void;
|
|
1726
|
+
onAiAssistantApply(contextHints?: Record<string, unknown> | void): void;
|
|
1412
1727
|
onAiAssistantRetry(): void;
|
|
1413
1728
|
onAiAssistantCancel(): void;
|
|
1414
1729
|
onAiAssistantQuickReply(reply: PraxisAssistantShellQuickReply): void;
|
|
@@ -1419,7 +1734,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1419
1734
|
private initializeAiAssistantController;
|
|
1420
1735
|
private buildAiAssistantContextItems;
|
|
1421
1736
|
private buildAiAssistantContextSnapshot;
|
|
1737
|
+
buildRuntimeComponentObservation(): PraxisRuntimeComponentObservationEnvelope;
|
|
1738
|
+
private registerRuntimeComponentObservationProvider;
|
|
1422
1739
|
private syncAiAssistantSession;
|
|
1740
|
+
private reconcileAiAssistantSessionIdentity;
|
|
1423
1741
|
private hasAiAssistantSessionState;
|
|
1424
1742
|
private resolveAiAssistantSessionId;
|
|
1425
1743
|
private resolveAiAssistantOwnerId;
|
|
@@ -1572,6 +1890,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1572
1890
|
private captureCurrentPresentationSnapshot;
|
|
1573
1891
|
private captureCurrentSchemaPrefsSnapshot;
|
|
1574
1892
|
private executeDynamicFormEditorApplyPlan;
|
|
1893
|
+
private buildCrossModeMetadataSeed;
|
|
1894
|
+
private resolveSiblingModeComponentKeyIds;
|
|
1895
|
+
private resolveSiblingModeFormConfigKeys;
|
|
1896
|
+
private resolveSiblingModePresentationKeys;
|
|
1897
|
+
private persistSharedFormConfigAcrossModes;
|
|
1575
1898
|
private attachRuntimeMetadataToDynamicFormConfig;
|
|
1576
1899
|
private emitConfigPatchChange;
|
|
1577
1900
|
private cloneFormConfigForPatch;
|
|
@@ -1585,12 +1908,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1585
1908
|
showDetailedError(): void;
|
|
1586
1909
|
private tryBuildExplicitSchemaContext;
|
|
1587
1910
|
private buildSchemaContext;
|
|
1911
|
+
private requiresConfirmedSchemaContext;
|
|
1912
|
+
private schemaRepresentationContext;
|
|
1588
1913
|
private getSchemaWithCache;
|
|
1589
1914
|
/**
|
|
1590
1915
|
* Invalida o cache de schema compilado para a instância atual e força
|
|
1591
1916
|
* novo carregamento na próxima requisição.
|
|
1592
1917
|
*/
|
|
1593
1918
|
invalidateSchemaCache(): void;
|
|
1919
|
+
private getNormalizedSchemaPointer;
|
|
1920
|
+
private buildCompiledSchemaCacheKey;
|
|
1921
|
+
private resolveSchemaPointer;
|
|
1594
1922
|
private isReactiveValidationEnabled;
|
|
1595
1923
|
private getReactiveValidationDebounceMs;
|
|
1596
1924
|
private waitForGlobalConfigReadyForSchema;
|
|
@@ -1598,8 +1926,26 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1598
1926
|
private logRowGapsSnapshot;
|
|
1599
1927
|
private applyPresentationVars;
|
|
1600
1928
|
private applyPresentationConfig;
|
|
1929
|
+
get effectivePresentationDensity(): 'comfortable' | 'cozy' | 'compact';
|
|
1930
|
+
getExplicitPresentationLabelSize(): string | null;
|
|
1931
|
+
getExplicitPresentationValueSize(): string | null;
|
|
1932
|
+
getRuntimeValueTargetIdentity(): PraxisRuntimeFormValueTargetIdentity;
|
|
1933
|
+
getRuntimeValueEligibility(): PraxisRuntimeFormValueEligibility;
|
|
1934
|
+
previewRuntimeValues(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
1935
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
1936
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
1937
|
+
}): PraxisRuntimeFormValuePreviewResult;
|
|
1938
|
+
applyRuntimeValues(request: PraxisRuntimeFormValueApplyRequest): PraxisRuntimeFormValueApplyReceipt;
|
|
1939
|
+
undoRuntimeValues(receiptId?: string): PraxisRuntimeFormValueUndoReceipt;
|
|
1940
|
+
private clearRuntimeValueControlSubscriptions;
|
|
1941
|
+
private collectLeafFormControls;
|
|
1942
|
+
private ensureRuntimeValueTracking;
|
|
1943
|
+
private withSuppressedCommandSideEffects;
|
|
1944
|
+
private createRuntimeFormHostCallbacks;
|
|
1945
|
+
private isConfiguredReactiveDeterminationOutputField;
|
|
1946
|
+
private collectRuntimeValueFieldClassification;
|
|
1601
1947
|
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>;
|
|
1948
|
+
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; }; "schemaPointer": { "alias": "schemaPointer"; "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"; "stepTelemetry": "stepTelemetry"; }, never, never, true, never>;
|
|
1603
1949
|
}
|
|
1604
1950
|
|
|
1605
1951
|
declare class FormConfigService {
|
|
@@ -1783,7 +2129,9 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1783
2129
|
formId?: string;
|
|
1784
2130
|
componentKeyId?: string;
|
|
1785
2131
|
inputMode: DynamicFormMode;
|
|
2132
|
+
inputLayoutScope: DynamicFormLayoutScope;
|
|
1786
2133
|
private includeBindingsBlock;
|
|
2134
|
+
private includeLayoutScopeBinding;
|
|
1787
2135
|
private readonly editorMode;
|
|
1788
2136
|
get isPresentationMode(): boolean;
|
|
1789
2137
|
supportsPresentationSettings: boolean;
|
|
@@ -1841,7 +2189,11 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1841
2189
|
};
|
|
1842
2190
|
private destroy$;
|
|
1843
2191
|
private hasProcessedInitialRuleState;
|
|
2192
|
+
ruleConversionFailed: boolean;
|
|
2193
|
+
private readonly jsonLogic;
|
|
2194
|
+
private readonly cascadeRulesService;
|
|
1844
2195
|
private jsonEditorIsValid;
|
|
2196
|
+
private cascadeDraftIsValid;
|
|
1845
2197
|
private globalActionValidationIssues;
|
|
1846
2198
|
private readonly i18n;
|
|
1847
2199
|
readonly globalActionCatalog: GlobalActionCatalogEntry[];
|
|
@@ -1854,7 +2206,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1854
2206
|
isValid$: BehaviorSubject<boolean>;
|
|
1855
2207
|
isBusy$: BehaviorSubject<boolean>;
|
|
1856
2208
|
private lastRulesSignature;
|
|
1857
|
-
private
|
|
2209
|
+
private supersededRuleStateSignature;
|
|
1858
2210
|
private readonly DEBUG;
|
|
1859
2211
|
private debugLog;
|
|
1860
2212
|
get configTabOptions(): ConfigEditorTabOption[];
|
|
@@ -1872,6 +2224,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1872
2224
|
onJsonValidationChange(result: JsonValidationResult): void;
|
|
1873
2225
|
onJsonEditorEvent(_event: JsonEditorEvent): void;
|
|
1874
2226
|
onConfigChange(newConfig: FormConfig): void;
|
|
2227
|
+
onCascadeValidChange(valid: boolean): void;
|
|
2228
|
+
private isCascadeGraphValid;
|
|
1875
2229
|
private updateValidityState;
|
|
1876
2230
|
private collectGlobalActionValidationIssues;
|
|
1877
2231
|
private collectGlobalActionValidationTargets;
|
|
@@ -1924,6 +2278,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1924
2278
|
getRuleDiagnosticDetails(diagnostic: FormRuleDiagnostics): string[];
|
|
1925
2279
|
private getRulePropertyIssueNames;
|
|
1926
2280
|
private markLlmRuleAccepted;
|
|
2281
|
+
private projectBuilderRules;
|
|
1927
2282
|
private refreshRuleDiagnostics;
|
|
1928
2283
|
get jsonDocument(): DynamicFormAuthoringDocument;
|
|
1929
2284
|
onBackConfigChange(): void;
|
|
@@ -1934,6 +2289,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1934
2289
|
hasResolvedRuntimeContract(): boolean;
|
|
1935
2290
|
describeRuntimeSource(source?: DynamicFormRuntimeValueSource): string;
|
|
1936
2291
|
onInputModeChange(): void;
|
|
2292
|
+
onLayoutScopeChange(scope: DynamicFormLayoutScope): void;
|
|
1937
2293
|
onPresentationPrefsChange(reason: string): void;
|
|
1938
2294
|
onSchemaPrefsChange(reason: string): void;
|
|
1939
2295
|
private createRuleBuilderConfig;
|
|
@@ -1954,10 +2310,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1954
2310
|
onCascadeApply(patch: Record<string, Partial<FieldDefinition>>): void;
|
|
1955
2311
|
private syncCascadeManagerFields;
|
|
1956
2312
|
private stripLegacy;
|
|
2313
|
+
private hydrateRuleDraft;
|
|
1957
2314
|
private computeRulesSignature;
|
|
1958
2315
|
restoreHintsDefaults(): void;
|
|
1959
2316
|
private loadPrefsFromStorage;
|
|
1960
2317
|
private normalizeMode;
|
|
2318
|
+
private normalizeLayoutScope;
|
|
1961
2319
|
private buildAuthoringDocument;
|
|
1962
2320
|
private normalizeResolvedRuntimeContract;
|
|
1963
2321
|
private createBackConfigState;
|
|
@@ -1982,6 +2340,14 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1982
2340
|
config: FormConfig;
|
|
1983
2341
|
formId?: string;
|
|
1984
2342
|
resourcePath?: string;
|
|
2343
|
+
/**
|
|
2344
|
+
* Optional logical endpoint key for multi-gateway filter schema resolution.
|
|
2345
|
+
*/
|
|
2346
|
+
endpointKey?: ApiEndpoint;
|
|
2347
|
+
/**
|
|
2348
|
+
* Optional explicit API URL entry override for filter schema resolution.
|
|
2349
|
+
*/
|
|
2350
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1985
2351
|
mode?: string;
|
|
1986
2352
|
formReady: EventEmitter<{
|
|
1987
2353
|
formGroup: FormGroup<Record<string, any>>;
|
|
@@ -1999,15 +2365,25 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1999
2365
|
form: FormGroup<Record<string, any>>;
|
|
2000
2366
|
private valueChangesSub?;
|
|
2001
2367
|
private statusChangesSub?;
|
|
2368
|
+
private schemaSub?;
|
|
2369
|
+
private hydratedFieldMetadata;
|
|
2370
|
+
private schemaHydrationPending;
|
|
2371
|
+
private schemaHydrationFailed;
|
|
2002
2372
|
private columnFieldsCache;
|
|
2003
2373
|
private singleFieldCache;
|
|
2374
|
+
private readonly crudService;
|
|
2375
|
+
private readonly resourceDiscovery;
|
|
2376
|
+
private readonly cdr;
|
|
2004
2377
|
constructor(dynamicForm: DynamicFormService);
|
|
2005
2378
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2006
2379
|
ngOnDestroy(): void;
|
|
2380
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2007
2381
|
private buildForm;
|
|
2008
2382
|
private buildRestorableValues;
|
|
2009
2383
|
private hasExplicitDefaultValue;
|
|
2010
2384
|
onFormSubmit(): void;
|
|
2385
|
+
private isFilterReady;
|
|
2386
|
+
private projectFilterValues;
|
|
2011
2387
|
getColumnFields(column: FormColumn): FieldMetadata[];
|
|
2012
2388
|
getSingleField(field: FieldMetadata): FieldMetadata[];
|
|
2013
2389
|
getColumnClasses(column: FormColumn): string | null;
|
|
@@ -2017,7 +2393,7 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
2017
2393
|
trackByRow(i: number, _row: FormRow): string;
|
|
2018
2394
|
trackByColumn(i: number, col: FormColumn): string;
|
|
2019
2395
|
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>;
|
|
2396
|
+
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
2397
|
}
|
|
2022
2398
|
|
|
2023
2399
|
/** Metadata for PraxisFilterForm component */
|
|
@@ -2029,6 +2405,9 @@ interface PraxisFilterFormWidgetEditorInputs {
|
|
|
2029
2405
|
config?: FormConfig | null;
|
|
2030
2406
|
formId?: string;
|
|
2031
2407
|
resourcePath?: string;
|
|
2408
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2409
|
+
endpointKey?: ApiEndpoint;
|
|
2410
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2032
2411
|
mode?: DynamicFormMode | string;
|
|
2033
2412
|
[key: string]: unknown;
|
|
2034
2413
|
}
|
|
@@ -2042,13 +2421,37 @@ declare class PraxisFilterFormWidgetConfigEditor implements SettingsValueProvide
|
|
|
2042
2421
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2043
2422
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2044
2423
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2424
|
+
schemaWarning: string;
|
|
2045
2425
|
private readonly subscription;
|
|
2426
|
+
private schemaSubscription?;
|
|
2427
|
+
private childBusy;
|
|
2428
|
+
private schemaLoading;
|
|
2429
|
+
private resourcePathDraft?;
|
|
2430
|
+
private selectedCatalogResource;
|
|
2431
|
+
private committedBaselineDocument?;
|
|
2432
|
+
private readonly crudService;
|
|
2433
|
+
private readonly resourceDiscovery;
|
|
2434
|
+
private readonly cdr;
|
|
2435
|
+
get effectiveResourcePath(): string;
|
|
2436
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2437
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2438
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2439
|
+
onCatalogResourceSelected(entry: DiscoveredResourceOption | null): void;
|
|
2440
|
+
onResourceQuickClear(): void;
|
|
2441
|
+
private updateDirtyState;
|
|
2046
2442
|
ngAfterViewInit(): void;
|
|
2047
2443
|
ngOnDestroy(): void;
|
|
2048
2444
|
getSettingsValue(): PraxisFilterFormWidgetEditorValue;
|
|
2049
2445
|
onSave(): PraxisFilterFormWidgetEditorValue;
|
|
2050
2446
|
reset(): void;
|
|
2447
|
+
private publishBusy;
|
|
2051
2448
|
private initializeChildEditor;
|
|
2449
|
+
private applyBaselineDocumentToChildEditor;
|
|
2450
|
+
private applyDraftDocumentToChildEditor;
|
|
2451
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2452
|
+
private extractCatalogFallbackFields;
|
|
2453
|
+
private applyLoadedFilterFieldMetadata;
|
|
2454
|
+
private buildDiscoveryOptions;
|
|
2052
2455
|
private buildValue;
|
|
2053
2456
|
private createDocumentFromInputs;
|
|
2054
2457
|
private normalizeMode;
|
|
@@ -2144,6 +2547,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2144
2547
|
private readonly layoutService;
|
|
2145
2548
|
private readonly settingsPanel;
|
|
2146
2549
|
private readonly i18n;
|
|
2550
|
+
private readonly logger;
|
|
2147
2551
|
private visualBlockIdSequence;
|
|
2148
2552
|
private localFieldSequence;
|
|
2149
2553
|
protected readonly colorTokens: typeof LayoutColorToken;
|
|
@@ -2167,8 +2571,38 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2167
2571
|
get borderEnabled(): boolean;
|
|
2168
2572
|
get dividerEnabled(): boolean;
|
|
2169
2573
|
get layoutSections(): FormSection[];
|
|
2574
|
+
get layoutModeValue(): FormLayoutMode;
|
|
2575
|
+
onLayoutModeChange(mode: FormLayoutMode): void;
|
|
2576
|
+
get stepperInReadModeValue(): FormStepperReadMode;
|
|
2577
|
+
onStepperInReadModeChange(policy: FormStepperReadMode): void;
|
|
2578
|
+
get stepperReviewStepValue(): boolean;
|
|
2579
|
+
toggleStepperReviewStep(): void;
|
|
2580
|
+
stepperGroupingOpen: boolean;
|
|
2581
|
+
private stepIdSequence;
|
|
2582
|
+
private cachedExplicitStepsRef;
|
|
2583
|
+
private cachedAutoStepsRef;
|
|
2584
|
+
private cachedAutoStepsKey;
|
|
2585
|
+
toggleStepperGroupingPanel(): void;
|
|
2586
|
+
get hasExplicitStepperSteps(): boolean;
|
|
2587
|
+
get explicitStepperSteps(): FormLayoutStepItem[];
|
|
2588
|
+
initializeExplicitStepperSteps(): void;
|
|
2589
|
+
resetExplicitStepperSteps(): void;
|
|
2590
|
+
canAddExplicitStepperStep(): boolean;
|
|
2591
|
+
addExplicitStepperStep(): void;
|
|
2592
|
+
updateExplicitStepperStepLabel(stepIndex: number, label: string): void;
|
|
2593
|
+
updateExplicitStepperStepDescription(stepIndex: number, description: string): void;
|
|
2594
|
+
toggleExplicitStepperStepOptional(stepIndex: number): void;
|
|
2595
|
+
moveExplicitStepperStep(stepIndex: number, delta: -1 | 1): void;
|
|
2596
|
+
removeExplicitStepperStep(stepIndex: number): void;
|
|
2597
|
+
isSectionInExplicitStep(step: FormLayoutStepItem, sectionId: string): boolean;
|
|
2598
|
+
toggleSectionInExplicitStep(stepIndex: number, sectionId: string): void;
|
|
2599
|
+
private emitExplicitStepperSteps;
|
|
2170
2600
|
canApplyAll(): boolean;
|
|
2171
2601
|
applyGapToAll(): void;
|
|
2602
|
+
canCalibrateFieldsFromSemantics(): boolean;
|
|
2603
|
+
calibrateAllFieldsFromSemantics(): void;
|
|
2604
|
+
canOrganizeSectionsFromSemantics(): boolean;
|
|
2605
|
+
organizeSectionsFromSemantics(): void;
|
|
2172
2606
|
ngOnInit(): void;
|
|
2173
2607
|
handleKeydown(event: KeyboardEvent): void;
|
|
2174
2608
|
/**
|
|
@@ -2385,6 +2819,7 @@ declare class FieldConfiguratorComponent {
|
|
|
2385
2819
|
private readonly categoryByType;
|
|
2386
2820
|
private resolveEditorialMeta;
|
|
2387
2821
|
get icon(): string;
|
|
2822
|
+
private normalizedFieldControlType;
|
|
2388
2823
|
get typeClass(): string;
|
|
2389
2824
|
get typeSpecificClass(): string;
|
|
2390
2825
|
get typeLabel(): string;
|
|
@@ -2396,8 +2831,13 @@ declare class FieldConfiguratorComponent {
|
|
|
2396
2831
|
|
|
2397
2832
|
interface PraxisDynamicFormWidgetEditorInputs {
|
|
2398
2833
|
config?: FormConfig | null;
|
|
2834
|
+
resourcePath?: string | null;
|
|
2835
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2836
|
+
endpointKey?: ApiEndpoint;
|
|
2837
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2838
|
+
schemaSource?: 'resource' | 'filter';
|
|
2399
2839
|
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
2400
|
-
configPersistenceStrategy?: 'local-first' | 'input-first';
|
|
2840
|
+
configPersistenceStrategy?: 'local-first' | 'input-first' | 'volatile';
|
|
2401
2841
|
mode?: DynamicFormMode;
|
|
2402
2842
|
emptyState?: PraxisDynamicFormEmptyState | null;
|
|
2403
2843
|
presentationModeGlobal?: boolean | null;
|
|
@@ -2414,23 +2854,46 @@ interface PraxisDynamicFormWidgetEditorValue {
|
|
|
2414
2854
|
inputs: PraxisDynamicFormWidgetEditorInputs;
|
|
2415
2855
|
}
|
|
2416
2856
|
declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnDestroy {
|
|
2857
|
+
private readonly crudService;
|
|
2858
|
+
private readonly resourceDiscovery;
|
|
2859
|
+
private readonly cdr;
|
|
2417
2860
|
inputs: PraxisDynamicFormWidgetEditorInputs | null;
|
|
2418
2861
|
widgetKey?: string;
|
|
2419
2862
|
appliedValues$?: Observable<unknown>;
|
|
2420
2863
|
private appliedSource?;
|
|
2864
|
+
private appliedResourcePath?;
|
|
2421
2865
|
/** Runtime evidence supplied by the existing component editor context resolver. */
|
|
2422
2866
|
context: Record<string, unknown>;
|
|
2423
2867
|
formEditor?: PraxisDynamicFormConfigEditor;
|
|
2424
2868
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2425
2869
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2426
2870
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2871
|
+
schemaWarning: string;
|
|
2427
2872
|
private readonly subscription;
|
|
2873
|
+
private schemaSubscription?;
|
|
2874
|
+
private childBusy;
|
|
2875
|
+
private schemaLoading;
|
|
2428
2876
|
private initialEditorConfig?;
|
|
2877
|
+
private committedBaselineConfig?;
|
|
2878
|
+
private committedBaselineDocument?;
|
|
2429
2879
|
private sourceDraft?;
|
|
2430
|
-
|
|
2880
|
+
private resourcePathDraft?;
|
|
2881
|
+
selectedCatalogResource: DiscoveredResourceOption | null;
|
|
2882
|
+
private optionalInject;
|
|
2883
|
+
get configurationSource(): 'local-first' | 'input-first' | 'volatile';
|
|
2884
|
+
get effectiveResourcePath(): string;
|
|
2885
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2886
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2887
|
+
get effectiveDiscoveryIntent(): 'crud' | 'filter';
|
|
2888
|
+
get hasReadOnlyModeWarning(): boolean;
|
|
2889
|
+
switchToReadOnlyViewMode(): void;
|
|
2890
|
+
onCatalogResourceSelected(resource: DiscoveredResourceOption | null): void;
|
|
2431
2891
|
changeConfigurationSource(value: string): void;
|
|
2892
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2893
|
+
onResourceQuickClear(): void;
|
|
2894
|
+
private baselineResourcePath;
|
|
2432
2895
|
private updateDirtyState;
|
|
2433
|
-
private
|
|
2896
|
+
private publishBusy;
|
|
2434
2897
|
ngAfterViewInit(): void;
|
|
2435
2898
|
ngOnDestroy(): void;
|
|
2436
2899
|
getSettingsValue(): PraxisDynamicFormWidgetEditorValue;
|
|
@@ -2438,6 +2901,12 @@ declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvid
|
|
|
2438
2901
|
acceptAppliedValue(value: unknown): void;
|
|
2439
2902
|
reset(): void;
|
|
2440
2903
|
private initializeChildEditor;
|
|
2904
|
+
private applyBaselineDocumentToChildEditor;
|
|
2905
|
+
private applyDraftDocumentToChildEditor;
|
|
2906
|
+
private loadResourceSchemaFieldsIfNeeded;
|
|
2907
|
+
private extractCatalogFallbackFields;
|
|
2908
|
+
private applyFieldMetadataHydration;
|
|
2909
|
+
private buildDiscoveryOptions;
|
|
2441
2910
|
private buildValue;
|
|
2442
2911
|
private createDocumentFromInputs;
|
|
2443
2912
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicFormWidgetConfigEditor, never>;
|
|
@@ -2497,20 +2966,20 @@ declare class DynamicFormSchemaCacheService {
|
|
|
2497
2966
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormSchemaCacheService>;
|
|
2498
2967
|
}
|
|
2499
2968
|
|
|
2500
|
-
declare class
|
|
2969
|
+
declare class LegacyCompactPresentationExampleComponent {
|
|
2501
2970
|
private readonly dynamicLayout;
|
|
2502
|
-
readonly legacyFrequencyExample: _praxisui_dynamic_form.
|
|
2971
|
+
readonly legacyFrequencyExample: _praxisui_dynamic_form.LegacyCompactPresentationCompactPresentationExample;
|
|
2503
2972
|
readonly legacyFrequencyPresentationConfig: _praxisui_core.FormConfig;
|
|
2504
2973
|
readonly legacyFrequencyInitialValue: Record<string, unknown>;
|
|
2505
|
-
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.
|
|
2974
|
+
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2506
2975
|
readonly corporatePresentationExample: _praxisui_dynamic_form.CorporatePresentationExample;
|
|
2507
2976
|
readonly corporatePresentationConfig: _praxisui_core.FormConfig;
|
|
2508
2977
|
readonly corporatePresentationInitialValue: Record<string, unknown>;
|
|
2509
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2510
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
2978
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LegacyCompactPresentationExampleComponent, never>;
|
|
2979
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyCompactPresentationExampleComponent, "praxis-legacy-compact-presentation-example", never, {}, {}, never, never, true, never>;
|
|
2511
2980
|
}
|
|
2512
2981
|
|
|
2513
|
-
interface
|
|
2982
|
+
interface LegacyCompactPresentationLegacyFrequencyRow {
|
|
2514
2983
|
tipo: string;
|
|
2515
2984
|
codigo: string;
|
|
2516
2985
|
nome: string;
|
|
@@ -2518,12 +2987,12 @@ interface Ergadm00034LegacyFrequencyRow {
|
|
|
2518
2987
|
marcador: string;
|
|
2519
2988
|
selected?: boolean;
|
|
2520
2989
|
}
|
|
2521
|
-
interface
|
|
2522
|
-
readonly id: '
|
|
2990
|
+
interface LegacyCompactPresentationCompactPresentationExample {
|
|
2991
|
+
readonly id: 'legacy-compact-presentation';
|
|
2523
2992
|
readonly title: string;
|
|
2524
2993
|
readonly resourcePath: string;
|
|
2525
2994
|
readonly layoutPreset: 'compactPresentation';
|
|
2526
|
-
readonly rows: readonly
|
|
2995
|
+
readonly rows: readonly LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2527
2996
|
readonly tableConfig: TableConfig;
|
|
2528
2997
|
readonly metadata: readonly FieldMetadata[];
|
|
2529
2998
|
readonly initialValue: Record<string, unknown>;
|
|
@@ -2536,9 +3005,9 @@ interface CorporatePresentationExample {
|
|
|
2536
3005
|
readonly metadata: readonly FieldMetadata[];
|
|
2537
3006
|
readonly initialValue: Record<string, unknown>;
|
|
2538
3007
|
}
|
|
2539
|
-
declare const
|
|
3008
|
+
declare const LEGACY_COMPACT_PRESENTATION_COMPACT_PRESENTATION_EXAMPLE: LegacyCompactPresentationCompactPresentationExample;
|
|
2540
3009
|
declare const CORPORATE_PRESENTATION_FORMAT_GALLERY: CorporatePresentationExample;
|
|
2541
|
-
declare function
|
|
3010
|
+
declare function buildLegacyCompactPresentationCompactPresentationConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2542
3011
|
declare function buildCorporatePresentationFormatGalleryConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2543
3012
|
|
|
2544
3013
|
declare function isRuleSatisfied(rule: FormLayoutRule, data: unknown): boolean;
|
|
@@ -2551,23 +3020,22 @@ declare function applyVisibilityRules(rules: FormLayoutRule[], data: any): Recor
|
|
|
2551
3020
|
/**
|
|
2552
3021
|
* Converts a RuleBuilderState produced by the visual builder into
|
|
2553
3022
|
* an array of FormLayoutRule objects understood by the dynamic form.
|
|
3023
|
+
* Throws when a referenced condition graph cannot be serialized without losing semantics.
|
|
2554
3024
|
*/
|
|
2555
3025
|
declare function ruleBuilderStateToFormLayoutRules(state: RuleBuilderState | null | undefined): FormLayoutRule[];
|
|
2556
3026
|
/**
|
|
2557
3027
|
* Converts an array of FormLayoutRule back into a RuleBuilderState
|
|
2558
3028
|
* so that the visual builder can display the saved rules.
|
|
2559
3029
|
*
|
|
2560
|
-
*
|
|
2561
|
-
*
|
|
3030
|
+
* Every canonical effect reopens as a propertyRule, with all targets and both
|
|
3031
|
+
* branches intact. Conditions outside the visual vocabulary stay inline.
|
|
2562
3032
|
*/
|
|
2563
3033
|
declare function formLayoutRulesToBuilderState(rules: FormLayoutRule[] | null | undefined): RuleBuilderState;
|
|
2564
3034
|
|
|
2565
|
-
/**
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
*/
|
|
2570
|
-
declare function normalizeDateArrays(data: any): any;
|
|
3035
|
+
/** Converts legacy date tuples only where the existing field metadata declares a temporal value. */
|
|
3036
|
+
declare function normalizeDateArrays(data: any, fields: readonly FieldMetadata[]): any;
|
|
3037
|
+
/** One private draft shared by hydration and submit; only declared temporal fields are transformed. */
|
|
3038
|
+
declare function normalizeTemporalFieldValues(data: any, fields: readonly FieldMetadata[], normalizeString: (value: string) => string): any;
|
|
2571
3039
|
|
|
2572
3040
|
/**
|
|
2573
3041
|
* Helper provider to wire the PraxisDynamicForm component into the Settings Panel
|
|
@@ -3040,6 +3508,9 @@ declare const ENUMS: {
|
|
|
3040
3508
|
fieldHintPosition: FieldHintPosition[];
|
|
3041
3509
|
sectionTitleStyle: SectionTitleStyle[];
|
|
3042
3510
|
sectionDescriptionStyle: SectionDescriptionStyle[];
|
|
3511
|
+
formLayoutMode: string[];
|
|
3512
|
+
formStepperReadMode: string[];
|
|
3513
|
+
formLayoutTabsAppearance: string[];
|
|
3043
3514
|
editorialContentFormat: string[];
|
|
3044
3515
|
};
|
|
3045
3516
|
declare const FORM_AI_CAPABILITIES: CapabilityCatalog$1;
|
|
@@ -3132,7 +3603,50 @@ declare const PRAXIS_FILTER_FORM_AUTHORING_PROJECTION: {
|
|
|
3132
3603
|
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
3604
|
readonly roundTripRequirements: readonly ["strip-undefined", "stable-field-order", "preserve-local-field-source", "preserve-section-row-column-ids"];
|
|
3134
3605
|
};
|
|
3135
|
-
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST:
|
|
3606
|
+
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST: {
|
|
3607
|
+
runtimeInputs: _praxisui_core.ManifestInput[];
|
|
3608
|
+
schemaVersion: string;
|
|
3609
|
+
componentId: string;
|
|
3610
|
+
ownerPackage: string;
|
|
3611
|
+
configSchemaId: string;
|
|
3612
|
+
manifestVersion: string;
|
|
3613
|
+
editableTargets: _praxisui_core.ManifestTarget[];
|
|
3614
|
+
operations: _praxisui_core.ManifestOperation[];
|
|
3615
|
+
validators: _praxisui_core.ManifestValidator[];
|
|
3616
|
+
roundTripRequirements?: string[];
|
|
3617
|
+
presentationAffordances?: _praxisui_core.ManifestPresentationAffordanceCatalog;
|
|
3618
|
+
examples: _praxisui_core.ManifestExample[];
|
|
3619
|
+
controlProfiles?: _praxisui_core.ManifestControlProfile[];
|
|
3620
|
+
};
|
|
3621
|
+
|
|
3622
|
+
/** Reconstruct raw native authorship. Normalized editor/runtime defaults are never the source. */
|
|
3623
|
+
declare function decodeDynamicFormPageInputs(value: unknown): {
|
|
3624
|
+
document: DynamicFormAuthoringDocument | null;
|
|
3625
|
+
diagnostics: EditorDiagnostic[];
|
|
3626
|
+
};
|
|
3627
|
+
/** Owner callback for Core admission; no component loading or second config authority. */
|
|
3628
|
+
declare function validateDynamicFormPageWidget(widget: WidgetInstance): readonly {
|
|
3629
|
+
code: string;
|
|
3630
|
+
path: string;
|
|
3631
|
+
}[];
|
|
3632
|
+
/** Inverse native projection. Explicit unrepresentable authoring blocks fail instead of being filtered. */
|
|
3633
|
+
declare function encodeDynamicFormPageInputs(value: unknown): {
|
|
3634
|
+
inputs: Record<string, unknown> | null;
|
|
3635
|
+
diagnostics: EditorDiagnostic[];
|
|
3636
|
+
};
|
|
3637
|
+
/** Persist only explicit deltas from the mounted native editor; bindings/context stay pinned to the seed. */
|
|
3638
|
+
declare function projectDynamicFormPageEditorChanges(authoredInputs: unknown, editorBaseline: unknown, editorValue: unknown): {
|
|
3639
|
+
inputs: Record<string, unknown> | null;
|
|
3640
|
+
diagnostics: EditorDiagnostic[];
|
|
3641
|
+
};
|
|
3642
|
+
/** Derive execution-only identity and disable independent preferences. Never persist this projection. */
|
|
3643
|
+
declare function materializeDynamicFormPageRuntimeInputs(value: unknown, pageId: string, widgetKey: string, options?: {
|
|
3644
|
+
preview?: boolean;
|
|
3645
|
+
}): {
|
|
3646
|
+
inputs: Record<string, unknown> | null;
|
|
3647
|
+
diagnostics: EditorDiagnostic[];
|
|
3648
|
+
};
|
|
3649
|
+
declare const DYNAMIC_FORM_GOVERNED_PAGE_PREVIEW_ADAPTER: GovernedPagePreviewWidgetAdapter;
|
|
3136
3650
|
|
|
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,
|
|
3651
|
+
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 };
|
|
3652
|
+
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, DynamicFormResolvedStep, DynamicFormRuleAuthoringContext, DynamicFormRuleAuthoringField, DynamicFormRuleAuthoringTarget, DynamicFormRuleAuthoringTargetDetails, DynamicFormRuleAuthoringTargets, DynamicFormRuleAuthoringVisualBlockNode, DynamicFormRuleTargetType, DynamicFormRuntimeContext, DynamicFormRuntimeValueSource, DynamicFormSchemaPrefsSnapshot, DynamicFormStepTransitionReason, DynamicFormStepTransitionResult, DynamicFormStepVisualState, DynamicFormStepperSnapshot, 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, PraxisFormActionsStepperState, RemovePolicy, RuleApplicationContext, RuleApplicationDiagnostic, RuleApplicationDiagnosticCode, RuleApplicationResult, RuleApplicationTargetIndex, RuleApplicationTargetType, ValidationReport, ValueKind$1 as ValueKind };
|