@praxisui/dynamic-form 10.0.0-rc.6 → 10.0.0-rc.61
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 +162 -4
- 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 +20 -20
- package/fesm2022/praxisui-dynamic-form.mjs +10799 -1392
- 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 +67 -20
- package/types/praxisui-dynamic-form.d.ts +533 -45
- 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,6 +880,8 @@ 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 runtimeObservationRegistration;
|
|
772
885
|
private readonly aiAssistantSessionEffect;
|
|
773
886
|
private readonly globalActions;
|
|
774
887
|
private readonly optionRegistry;
|
|
@@ -778,10 +891,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
778
891
|
private effectiveActionsCacheOverride?;
|
|
779
892
|
private invalidRequiredFieldLabelsCache;
|
|
780
893
|
private invalidRequiredFieldLabelsSignature;
|
|
894
|
+
readonly formVisualBlockSurfaceCapabilities: _praxisui_core.ClientSurfaceCapabilities;
|
|
781
895
|
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
782
896
|
resourcePath?: string;
|
|
783
897
|
resourceId?: string | number;
|
|
784
898
|
initialValue?: Record<string, unknown> | null;
|
|
899
|
+
/**
|
|
900
|
+
* Opt-in overlay for edit mode: when true, explicit `initialValue` keys are
|
|
901
|
+
* merged over the server-hydrated GET /{id} record without suppressing entity load.
|
|
902
|
+
*/
|
|
903
|
+
overlayInitialValueOnEdit: boolean;
|
|
785
904
|
/**
|
|
786
905
|
* Replaces the form with a guided empty state while a view has neither a
|
|
787
906
|
* resource id nor a local record snapshot. Create/edit forms are unaffected.
|
|
@@ -794,7 +913,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
794
913
|
*/
|
|
795
914
|
editorialContext: Record<string, unknown> | null;
|
|
796
915
|
mode: DynamicFormMode;
|
|
797
|
-
|
|
916
|
+
private effectiveConfig;
|
|
917
|
+
private configAssignment;
|
|
918
|
+
private authoredHostConfigSnapshot;
|
|
919
|
+
private hasRuntimeAuthoringEdits;
|
|
920
|
+
get config(): FormConfig;
|
|
921
|
+
set config(value: FormConfig);
|
|
922
|
+
private snapshotHostConfigInput;
|
|
798
923
|
private hostConfigInputProvided;
|
|
799
924
|
/** Optional host-level overrides for the rendered form action bar. */
|
|
800
925
|
actions?: FormConfig['actions'] | null;
|
|
@@ -803,7 +928,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
803
928
|
* 'resource' (padrão) usa o schema do recurso (/{resource}/schemas -> .../all response)
|
|
804
929
|
* 'filter' usa o schema do DTO de filtro (via /schemas/filtered no POST /filter request)
|
|
805
930
|
*/
|
|
806
|
-
schemaSource: 'resource' | 'filter';
|
|
931
|
+
schemaSource: 'resource' | 'filter' | 'action';
|
|
932
|
+
/** Canonical workflow/action identifier when bound to a command surface. */
|
|
933
|
+
actionId?: string | null;
|
|
934
|
+
/** Canonical backend operationId when bound to a command/surface endpoint. */
|
|
935
|
+
operationId?: string | null;
|
|
807
936
|
/** Canonical schema URL published by the backend surface catalog. */
|
|
808
937
|
schemaUrl?: string | null;
|
|
809
938
|
/** Canonical read URL published by backend view/read-projection surfaces. */
|
|
@@ -851,16 +980,19 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
851
980
|
/** Identifier for persisting layouts */
|
|
852
981
|
formId?: string;
|
|
853
982
|
componentInstanceId?: string;
|
|
854
|
-
|
|
983
|
+
private _configPersistenceStrategy;
|
|
984
|
+
set configPersistenceStrategy(value: 'local-first' | 'input-first' | 'volatile' | 'storage-first');
|
|
985
|
+
get configPersistenceStrategy(): 'local-first' | 'input-first' | 'volatile';
|
|
855
986
|
/** Optional layout to use instead of generated one */
|
|
856
987
|
layout?: FormLayout;
|
|
857
988
|
/**
|
|
858
|
-
* Layout mode for organizing form sections: 'vertical' (default), 'tabs' or '
|
|
989
|
+
* Layout mode for organizing form sections: 'vertical' (default), 'tabs', 'accordion' or 'stepper'.
|
|
859
990
|
* Overrides config.layout.mode when specified.
|
|
860
991
|
*/
|
|
861
992
|
layoutMode?: FormLayoutMode;
|
|
862
993
|
/**
|
|
863
|
-
* Layout configuration options for form sections (mode, tabs, defaultTabId, tabsAppearance,
|
|
994
|
+
* Layout configuration options for form sections (mode, tabs, defaultTabId, tabsAppearance,
|
|
995
|
+
* accordionMulti, hideSectionHeaderInTabs, hideSectionHeaderInStepper, etc.).
|
|
864
996
|
* Merged with and takes precedence over config.layout.
|
|
865
997
|
*/
|
|
866
998
|
formLayout?: FormLayoutOptions;
|
|
@@ -922,17 +1054,30 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
922
1054
|
isSectionEditorialCard(section?: FormSection | null): boolean;
|
|
923
1055
|
isSectionCompactPresentation(section?: FormSection | null): boolean;
|
|
924
1056
|
shouldShowContextEmptyState(): boolean;
|
|
1057
|
+
private isItemScopedActionSubmitTarget;
|
|
1058
|
+
getActionTargetRecordSummary(): {
|
|
1059
|
+
id?: string;
|
|
1060
|
+
title?: string;
|
|
1061
|
+
subtitle?: string;
|
|
1062
|
+
badges: Array<{
|
|
1063
|
+
label: string;
|
|
1064
|
+
value: string;
|
|
1065
|
+
tone: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
1066
|
+
}>;
|
|
1067
|
+
} | null;
|
|
925
1068
|
private hasResourceContext;
|
|
926
1069
|
private hasLocalRecordContext;
|
|
927
1070
|
get effectiveReadonly(): boolean;
|
|
928
1071
|
get effectiveDisabledMode(): boolean | null;
|
|
929
1072
|
get effectiveFormIsValid(): boolean;
|
|
1073
|
+
private hasBlockingClientValidationErrors;
|
|
930
1074
|
protected get configControlLabel(): string;
|
|
931
1075
|
protected get disconnectControlLabel(): string;
|
|
932
1076
|
get invalidRequiredFieldLabels(): string[];
|
|
933
1077
|
/** Value propagated to DynamicFieldLoader; null allows per-field metadata */
|
|
934
1078
|
get presentationForLoader(): boolean | null;
|
|
935
1079
|
getRenderableFieldsForLoader(fields: FieldMetadata[]): FieldMetadata[];
|
|
1080
|
+
private attachApiUrlEntryToField;
|
|
936
1081
|
private materializeFieldPresentationPolicy;
|
|
937
1082
|
private shouldMaterializeBooleanControl;
|
|
938
1083
|
private materializeFieldHelpPolicy;
|
|
@@ -978,10 +1123,25 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
978
1123
|
tabSelected: EventEmitter<FormLayoutTabItem>;
|
|
979
1124
|
/** Active tab ID when effectiveLayoutMode === 'tabs'. */
|
|
980
1125
|
activeTabId: string | null;
|
|
1126
|
+
/** Active step index (0-based) when effectiveLayoutMode === 'stepper'. */
|
|
1127
|
+
activeStepIndex: number;
|
|
1128
|
+
/** Emits the newly selected step index when navigating in stepper mode. */
|
|
1129
|
+
stepChange: EventEmitter<number>;
|
|
1130
|
+
/** Emits structured metadata-only telemetry on step transitions and error/draft recoveries. */
|
|
1131
|
+
stepTelemetry: EventEmitter<FormStepTelemetryEvent>;
|
|
1132
|
+
private readonly stepperController;
|
|
1133
|
+
private formActionsStepperStateCacheKey;
|
|
1134
|
+
private formActionsStepperStateCache;
|
|
1135
|
+
private isReconcilingStepState;
|
|
1136
|
+
private pendingActiveStepIndexInputChange;
|
|
1137
|
+
private pendingStepperErrorFocus;
|
|
981
1138
|
private reactiveDeterminationPending;
|
|
982
1139
|
isLoading: boolean;
|
|
983
1140
|
submitting: boolean;
|
|
984
1141
|
private submitPreparationInProgress;
|
|
1142
|
+
private submitLifecycleSequence;
|
|
1143
|
+
private activeSubmitLifecycle;
|
|
1144
|
+
private activeSubmitAutomatic;
|
|
985
1145
|
submitError: string | null;
|
|
986
1146
|
initializationStatus: 'idle' | 'loading' | 'success' | 'error';
|
|
987
1147
|
currentErrorMessage: string;
|
|
@@ -1016,6 +1176,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1016
1176
|
private entitySelectionCleared;
|
|
1017
1177
|
private hydratedEntityId;
|
|
1018
1178
|
private loadedEntityData;
|
|
1179
|
+
private loadedResourceRevision;
|
|
1180
|
+
private resourceRevisionInvalidated;
|
|
1181
|
+
private entityReadAttempt;
|
|
1019
1182
|
protected entityHydrationPending: boolean;
|
|
1020
1183
|
protected entityReadFailed: boolean;
|
|
1021
1184
|
protected entityReadText(key: 'loading' | 'error' | 'retry' | 'region' | 'success'): string;
|
|
@@ -1028,20 +1191,37 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1028
1191
|
private assertSchemaInitializationCurrent;
|
|
1029
1192
|
private isSchemaTransportInterruption;
|
|
1030
1193
|
private schemaCache;
|
|
1194
|
+
private schemaValidationFailed;
|
|
1195
|
+
private initialValueContextInvalidated;
|
|
1031
1196
|
private lastSchemaMeta?;
|
|
1032
1197
|
private readonly schemaMetaPersistenceQueues;
|
|
1198
|
+
private persistenceContextEpoch;
|
|
1199
|
+
private persistenceContextDestroyed;
|
|
1200
|
+
/** Fence delayed work; requests already sent are not retroactively canceled. */
|
|
1201
|
+
private persistenceGuard;
|
|
1033
1202
|
private readonly formConfigPersistenceQueues;
|
|
1034
1203
|
private readonly formConfigPersistenceGenerations;
|
|
1035
1204
|
private readonly formConfigConflictBlockThrough;
|
|
1036
1205
|
private schemaRootHooks?;
|
|
1206
|
+
private schemaRootFormLayout?;
|
|
1037
1207
|
private schemaRootReactiveDeterminations;
|
|
1038
1208
|
private schemaRootOperationId;
|
|
1039
1209
|
private destroy$;
|
|
1040
1210
|
private readonly entityReadCancel$;
|
|
1041
1211
|
private isDestroyed;
|
|
1042
1212
|
private formValueChangesSubscription;
|
|
1213
|
+
private formStatusChangesSubscription;
|
|
1214
|
+
private readonly runtimeValueJournal;
|
|
1215
|
+
private runtimeValueRevision;
|
|
1216
|
+
private runtimeValueTrackedForm;
|
|
1217
|
+
private readonly runtimeValueTrackedControls;
|
|
1218
|
+
private suppressCommandRuleSideEffectsDepth;
|
|
1219
|
+
private pendingSuppressedCommandEvaluation;
|
|
1220
|
+
private consumingSuppressedCommandEvaluation;
|
|
1043
1221
|
private readonly submitFieldErrorSubscriptions;
|
|
1044
1222
|
private activeSubmitErrorDetails;
|
|
1223
|
+
activeRuleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
1224
|
+
private readonly decisionInspector;
|
|
1045
1225
|
private reactiveDeterminationSubscription;
|
|
1046
1226
|
private reactiveDeterminationScheduledBuildId;
|
|
1047
1227
|
private dependencyPolicySubscription;
|
|
@@ -1053,6 +1233,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1053
1233
|
private lastCorrelationId?;
|
|
1054
1234
|
private currentDnD?;
|
|
1055
1235
|
private columnFieldsCache;
|
|
1236
|
+
private readonly renderableFieldsCache;
|
|
1056
1237
|
private rowClassesCache;
|
|
1057
1238
|
private rowStylesCache;
|
|
1058
1239
|
private sectionClassesCache;
|
|
@@ -1062,6 +1243,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1062
1243
|
private lastFieldPatchSig;
|
|
1063
1244
|
private lastFieldPatchAt;
|
|
1064
1245
|
schemaOutdated: boolean;
|
|
1246
|
+
sessionDraftRestored: boolean;
|
|
1247
|
+
stepperReviewShowOnlyDirty: boolean;
|
|
1248
|
+
private stepperReviewTotalDirtyCountValue;
|
|
1249
|
+
private stepperReviewChaptersCacheKey;
|
|
1250
|
+
private stepperReviewChaptersCache;
|
|
1065
1251
|
private resolvedPrefs;
|
|
1066
1252
|
private editorialWidgetContextCache;
|
|
1067
1253
|
private editorialWidgetContextDeps;
|
|
@@ -1089,6 +1275,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1089
1275
|
private reactiveValidate$?;
|
|
1090
1276
|
private warnedMissingId;
|
|
1091
1277
|
private schemaState;
|
|
1278
|
+
private readonly destroyRef;
|
|
1279
|
+
private readonly contextSwitchGuard;
|
|
1280
|
+
private canPersistFormStrategy;
|
|
1092
1281
|
private getLogger;
|
|
1093
1282
|
private buildLogOptions;
|
|
1094
1283
|
private debugLog;
|
|
@@ -1118,6 +1307,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1118
1307
|
labelAlign: 'start' | 'center' | 'end';
|
|
1119
1308
|
valueAlign: 'start' | 'center' | 'end';
|
|
1120
1309
|
};
|
|
1310
|
+
private hasExplicitPresLabelSize;
|
|
1311
|
+
private hasExplicitPresValueSize;
|
|
1312
|
+
private hasExplicitPresDensity;
|
|
1121
1313
|
hoveredElement: CanvasElement | null;
|
|
1122
1314
|
selectedElement: CanvasElement | null;
|
|
1123
1315
|
toolbarTransform: string;
|
|
@@ -1136,6 +1328,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1136
1328
|
private resolveSubmitOperation;
|
|
1137
1329
|
private buildSubmitRequest;
|
|
1138
1330
|
private resolveSubmitResourceVersion;
|
|
1331
|
+
/** Identity and server context are captured with the representation, never reconstructed at submit by GET. */
|
|
1332
|
+
private resourceRevisionBinding;
|
|
1333
|
+
private usesAutomaticItemRevision;
|
|
1334
|
+
private isResourceRevisionCurrent;
|
|
1335
|
+
private invalidateAutomaticSubmitUi;
|
|
1336
|
+
private resourceRevisionNeedsReload;
|
|
1337
|
+
private resourceRevisionReloadError;
|
|
1338
|
+
private captureSavedResourceRevision;
|
|
1339
|
+
private rejectResourceRevision;
|
|
1340
|
+
private normalizeResourceVersionToken;
|
|
1341
|
+
private extractResourceVersionCandidate;
|
|
1139
1342
|
private normalizeSubmitMethod;
|
|
1140
1343
|
private formatResourceVersion;
|
|
1141
1344
|
private resolveSubmitHref;
|
|
@@ -1162,10 +1365,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1162
1365
|
private initializeStandaloneConfig;
|
|
1163
1366
|
private initializeDisconnectedEmptyState;
|
|
1164
1367
|
private reloadForModeChange;
|
|
1368
|
+
private resourceRevisionContextScope;
|
|
1369
|
+
private subscribeToRuntimeContextChanges;
|
|
1165
1370
|
ngOnInit(): void;
|
|
1166
1371
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1167
1372
|
private blurAllInputs;
|
|
1168
1373
|
private initializeForm;
|
|
1374
|
+
private hasInitializationError;
|
|
1169
1375
|
private handleInitializationError;
|
|
1170
1376
|
private loadConfigFailOpen;
|
|
1171
1377
|
private resolveFieldLabel;
|
|
@@ -1174,12 +1380,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1174
1380
|
private createDefaultConfig;
|
|
1175
1381
|
private createConfigFromHostConfig;
|
|
1176
1382
|
private shouldUseSchemaLayoutPolicy;
|
|
1383
|
+
private hasSchemaRootFormLayout;
|
|
1384
|
+
private normalizeSchemaLayoutModeValue;
|
|
1385
|
+
private buildSchemaRootLayoutDefaults;
|
|
1177
1386
|
private layoutPolicyRequestsPresentation;
|
|
1178
1387
|
private shouldPersistGeneratedConfig;
|
|
1179
1388
|
private createSchemaMaterializedConfig;
|
|
1180
1389
|
private reconcileLoadedConfigWithServerSchema;
|
|
1181
1390
|
private hostConfigHasAuthoredLocalFieldsNotInLocalConfig;
|
|
1182
1391
|
private syncWithServer;
|
|
1392
|
+
private isActionCommandWithoutExplicitReadUrl;
|
|
1183
1393
|
private loadEntity;
|
|
1184
1394
|
private hydrateEntityFromInitialValue;
|
|
1185
1395
|
private flushEntityHydrationState;
|
|
@@ -1190,7 +1400,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1190
1400
|
/** True while at least one backend Reactive Determination is unsettled. */
|
|
1191
1401
|
hasPendingReactiveDeterminations(): boolean;
|
|
1192
1402
|
/** True when the latest settled generation failed or could not derive a current draft. */
|
|
1193
|
-
hasUnsatisfiedReactiveDeterminations(): boolean;
|
|
1403
|
+
hasUnsatisfiedReactiveDeterminations(unvisitedFieldNames?: readonly string[]): boolean;
|
|
1194
1404
|
/** Resolves true only when the latest generations settled successfully/current. */
|
|
1195
1405
|
waitForReactiveDeterminations(timeoutMs?: number): Promise<boolean>;
|
|
1196
1406
|
private setReactiveDeterminationPending;
|
|
@@ -1216,12 +1426,25 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1216
1426
|
private prepareCurrentSubmitPayload;
|
|
1217
1427
|
private emitPayloadPreview;
|
|
1218
1428
|
private resetToHydratedSnapshot;
|
|
1429
|
+
private resetStepperStateOnFormReset;
|
|
1430
|
+
private isSessionDraftPersistenceEnabled;
|
|
1431
|
+
getSessionDraftStorageKey(): string | null;
|
|
1432
|
+
flushSessionDraft(): void;
|
|
1433
|
+
setBaselineSnapshot(snapshot: Record<string, unknown> | null): void;
|
|
1434
|
+
private buildSessionDraftStorageKey;
|
|
1435
|
+
private persistSessionDraftIfNeeded;
|
|
1436
|
+
restoreSessionDraftIfNeeded(): void;
|
|
1437
|
+
clearSessionDraft(): void;
|
|
1438
|
+
discardRestoredSessionDraft(): void;
|
|
1219
1439
|
private collectDirtyFieldNames;
|
|
1440
|
+
private collectTouchedFieldNames;
|
|
1220
1441
|
private buildCurrentFormRuntimeContext;
|
|
1221
1442
|
private buildRestoreTargetContext;
|
|
1222
1443
|
private isCompatibleRuntimeStateContext;
|
|
1223
1444
|
private restoreFormRuntimeState;
|
|
1224
1445
|
private getNormalizedInitialValue;
|
|
1446
|
+
private getNormalizedEditOverlayValue;
|
|
1447
|
+
private markEditOverlayControlsDirty;
|
|
1225
1448
|
/**
|
|
1226
1449
|
* A local composition owns the complete snapshot supplied through initialValue.
|
|
1227
1450
|
* Once a readUrl/resourcePath can hydrate an edit/view entity, the backend remains
|
|
@@ -1229,6 +1452,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1229
1452
|
*/
|
|
1230
1453
|
private usesInitialValueAsAuthoritativeSnapshot;
|
|
1231
1454
|
private normalizeFormPatchValue;
|
|
1455
|
+
private coerceRecordDateControls;
|
|
1456
|
+
private applyFormSnapshotValue;
|
|
1457
|
+
private releaseSubmitFieldErrorSubscriptionsUnder;
|
|
1232
1458
|
private isDateControlMetadata;
|
|
1233
1459
|
private coerceDateControlValue;
|
|
1234
1460
|
/**
|
|
@@ -1255,6 +1481,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1255
1481
|
private getActiveFormRules;
|
|
1256
1482
|
private refreshMaterializedFormRules;
|
|
1257
1483
|
private resolveDomainRulesOptions;
|
|
1484
|
+
private evaluateFieldConditionalReadOnly;
|
|
1485
|
+
private evaluateFieldConditionalDisplay;
|
|
1486
|
+
private evaluateFieldConditionExpression;
|
|
1258
1487
|
private evaluateAndApplyRules;
|
|
1259
1488
|
private applyRuleComputedFieldValues;
|
|
1260
1489
|
private evaluateAndDispatchFormCommandRules;
|
|
@@ -1265,10 +1494,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1265
1494
|
private areRuleValuesEqual;
|
|
1266
1495
|
private buildRuleApplicationTargetIndex;
|
|
1267
1496
|
private setRuleApplicationDiagnostics;
|
|
1497
|
+
private isUneditedSchemaMaterializedConfig;
|
|
1498
|
+
private getAuthoredConfigLayout;
|
|
1499
|
+
get effectiveStepperInReadMode(): FormStepperReadMode;
|
|
1268
1500
|
get effectiveLayoutMode(): FormLayoutMode;
|
|
1501
|
+
isStepperReadNavigationOnly(): boolean;
|
|
1502
|
+
shouldRenderFormActionsBar(placement: 'top' | 'insideLastSection' | 'afterSections'): boolean;
|
|
1269
1503
|
get effectiveTabsAppearance(): FormLayoutTabsAppearance;
|
|
1270
1504
|
get effectiveAccordionMulti(): boolean;
|
|
1271
1505
|
get effectiveHideSectionHeaderInTabs(): boolean;
|
|
1506
|
+
get effectiveHideSectionHeaderInStepper(): boolean;
|
|
1507
|
+
get effectiveStepperReviewStep(): boolean;
|
|
1272
1508
|
get effectiveTabs(): FormLayoutTabItem[];
|
|
1273
1509
|
ensureActiveTabValid(): void;
|
|
1274
1510
|
selectTab(tabId: string): void;
|
|
@@ -1276,7 +1512,58 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1276
1512
|
getTabErrorCount(tab: FormLayoutTabItem): number;
|
|
1277
1513
|
getTabAriaControls(tab: FormLayoutTabItem): string;
|
|
1278
1514
|
getTabIdForSection(section?: FormSection): string | null;
|
|
1515
|
+
protected formTx(key: string, params?: Record<string, string | number | boolean | null | undefined>, fallback?: string): string;
|
|
1516
|
+
isSectionOptional(section?: FormSection): boolean;
|
|
1517
|
+
get effectiveSteps(): FormLayoutTabItem[];
|
|
1518
|
+
private appendSyntheticStepperReviewStepIfNeeded;
|
|
1519
|
+
isStepperReviewStepActive(): boolean;
|
|
1520
|
+
get stepperReviewTotalDirtyCount(): number;
|
|
1521
|
+
toggleStepperReviewShowOnlyDirty(): void;
|
|
1522
|
+
private isControlSubtreeDirty;
|
|
1523
|
+
private areStepperReviewRawValuesEqual;
|
|
1524
|
+
get stepperReviewChapters(): Array<{
|
|
1525
|
+
stepIndex: number;
|
|
1526
|
+
stepId: string;
|
|
1527
|
+
label: string;
|
|
1528
|
+
optional: boolean;
|
|
1529
|
+
dirtyCount: number;
|
|
1530
|
+
requiredTotalCount: number;
|
|
1531
|
+
requiredSatisfiedCount: number;
|
|
1532
|
+
items: Array<{
|
|
1533
|
+
fieldName: string;
|
|
1534
|
+
label: string;
|
|
1535
|
+
displayValue: string;
|
|
1536
|
+
dirty: boolean;
|
|
1537
|
+
previousDisplayValue?: string | null;
|
|
1538
|
+
collectionDiffs?: Array<{
|
|
1539
|
+
kind: 'added' | 'modified' | 'removed' | 'unchanged';
|
|
1540
|
+
currentSummary?: string;
|
|
1541
|
+
previousSummary?: string;
|
|
1542
|
+
}>;
|
|
1543
|
+
}>;
|
|
1544
|
+
}>;
|
|
1545
|
+
private formatStepperReviewFieldValue;
|
|
1546
|
+
private formatStepperReviewCollectionItem;
|
|
1547
|
+
private computeStepperReviewCollectionDiffs;
|
|
1548
|
+
private hasMultipleStepperSections;
|
|
1549
|
+
isStepperNavigationActive(): boolean;
|
|
1550
|
+
get stepperSnapshot(): DynamicFormStepperSnapshot;
|
|
1551
|
+
get formActionsStepperState(): PraxisFormActionsStepperState | null;
|
|
1552
|
+
get normalizedActiveStepIndex(): number;
|
|
1553
|
+
ensureActiveStepValid(): void;
|
|
1554
|
+
private emitStepTelemetry;
|
|
1555
|
+
private focusActiveStepperRegionAfterTransition;
|
|
1556
|
+
selectStep(index: number, reason?: FormStepTelemetryReason): Promise<boolean>;
|
|
1557
|
+
editStepperReviewField(stepIndex: number, fieldName: string): Promise<boolean>;
|
|
1558
|
+
nextStep(): Promise<boolean>;
|
|
1559
|
+
previousStep(): Promise<boolean>;
|
|
1560
|
+
onStepperBarAction(direction: 'prev' | 'next'): void;
|
|
1561
|
+
isSectionInActiveStep(section?: FormSection): boolean;
|
|
1562
|
+
getStepErrorCount(step: FormLayoutTabItem): number;
|
|
1279
1563
|
shouldHideSectionHeader(section?: FormSection): boolean;
|
|
1564
|
+
getPrintSectionTitle(section?: FormSection): string | null;
|
|
1565
|
+
private createStepperContext;
|
|
1566
|
+
private focusFirstInvalidInStep;
|
|
1280
1567
|
isSectionCollapsed(section?: FormSection): boolean;
|
|
1281
1568
|
isSectionCollapsible(section?: FormSection): boolean;
|
|
1282
1569
|
private getSectionRuleProps;
|
|
@@ -1285,6 +1572,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1285
1572
|
private hasVisibleSectionBody;
|
|
1286
1573
|
private shouldRenderInsideLastSectionContent;
|
|
1287
1574
|
private resolveInsideLastSectionHost;
|
|
1575
|
+
get actionTargetSelectedRecordLabel(): string;
|
|
1288
1576
|
getSectionTitle(section: FormSection): string | undefined;
|
|
1289
1577
|
getSectionDescription(section: FormSection): string | undefined;
|
|
1290
1578
|
getSectionAppearance(section: FormSection): 'card' | 'plain' | 'step' | undefined;
|
|
@@ -1389,7 +1677,12 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1389
1677
|
private clearSubmitFieldErrors;
|
|
1390
1678
|
private clearSubmitFieldError;
|
|
1391
1679
|
private resetSubmitErrorState;
|
|
1680
|
+
canInspectSubmitRuleViolations(): boolean;
|
|
1681
|
+
openSubmitDecisionInspector(violation?: PraxisRuleViolationDiagnostic): void;
|
|
1392
1682
|
private resolveSubmitErrorMessage;
|
|
1683
|
+
private isGenericEnvelopeErrorMessage;
|
|
1684
|
+
private formatStructuredSubmitErrorMessage;
|
|
1685
|
+
private resolveSubmitErrorControl;
|
|
1393
1686
|
private normalizeSubmitErrorTarget;
|
|
1394
1687
|
private navigateAfterSave;
|
|
1395
1688
|
private shouldConfirmCancelOnDirty;
|
|
@@ -1408,7 +1701,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1408
1701
|
closeAiAssistant(): void;
|
|
1409
1702
|
onAiAssistantPromptChange(prompt: string): void;
|
|
1410
1703
|
onAiAssistantSubmit(prompt: string): void;
|
|
1411
|
-
onAiAssistantApply(): void;
|
|
1704
|
+
onAiAssistantApply(contextHints?: Record<string, unknown> | void): void;
|
|
1412
1705
|
onAiAssistantRetry(): void;
|
|
1413
1706
|
onAiAssistantCancel(): void;
|
|
1414
1707
|
onAiAssistantQuickReply(reply: PraxisAssistantShellQuickReply): void;
|
|
@@ -1419,6 +1712,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1419
1712
|
private initializeAiAssistantController;
|
|
1420
1713
|
private buildAiAssistantContextItems;
|
|
1421
1714
|
private buildAiAssistantContextSnapshot;
|
|
1715
|
+
buildRuntimeComponentObservation(): PraxisRuntimeComponentObservationEnvelope;
|
|
1716
|
+
private registerRuntimeComponentObservationProvider;
|
|
1422
1717
|
private syncAiAssistantSession;
|
|
1423
1718
|
private hasAiAssistantSessionState;
|
|
1424
1719
|
private resolveAiAssistantSessionId;
|
|
@@ -1572,6 +1867,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1572
1867
|
private captureCurrentPresentationSnapshot;
|
|
1573
1868
|
private captureCurrentSchemaPrefsSnapshot;
|
|
1574
1869
|
private executeDynamicFormEditorApplyPlan;
|
|
1870
|
+
private buildCrossModeMetadataSeed;
|
|
1871
|
+
private resolveSiblingModeComponentKeyIds;
|
|
1872
|
+
private resolveSiblingModeFormConfigKeys;
|
|
1873
|
+
private resolveSiblingModePresentationKeys;
|
|
1874
|
+
private persistSharedFormConfigAcrossModes;
|
|
1575
1875
|
private attachRuntimeMetadataToDynamicFormConfig;
|
|
1576
1876
|
private emitConfigPatchChange;
|
|
1577
1877
|
private cloneFormConfigForPatch;
|
|
@@ -1585,6 +1885,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1585
1885
|
showDetailedError(): void;
|
|
1586
1886
|
private tryBuildExplicitSchemaContext;
|
|
1587
1887
|
private buildSchemaContext;
|
|
1888
|
+
private requiresConfirmedSchemaContext;
|
|
1889
|
+
private schemaRepresentationContext;
|
|
1588
1890
|
private getSchemaWithCache;
|
|
1589
1891
|
/**
|
|
1590
1892
|
* Invalida o cache de schema compilado para a instância atual e força
|
|
@@ -1598,8 +1900,26 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1598
1900
|
private logRowGapsSnapshot;
|
|
1599
1901
|
private applyPresentationVars;
|
|
1600
1902
|
private applyPresentationConfig;
|
|
1903
|
+
get effectivePresentationDensity(): 'comfortable' | 'cozy' | 'compact';
|
|
1904
|
+
getExplicitPresentationLabelSize(): string | null;
|
|
1905
|
+
getExplicitPresentationValueSize(): string | null;
|
|
1906
|
+
getRuntimeValueTargetIdentity(): PraxisRuntimeFormValueTargetIdentity;
|
|
1907
|
+
getRuntimeValueEligibility(): PraxisRuntimeFormValueEligibility;
|
|
1908
|
+
previewRuntimeValues(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
1909
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
1910
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
1911
|
+
}): PraxisRuntimeFormValuePreviewResult;
|
|
1912
|
+
applyRuntimeValues(request: PraxisRuntimeFormValueApplyRequest): PraxisRuntimeFormValueApplyReceipt;
|
|
1913
|
+
undoRuntimeValues(receiptId?: string): PraxisRuntimeFormValueUndoReceipt;
|
|
1914
|
+
private clearRuntimeValueControlSubscriptions;
|
|
1915
|
+
private collectLeafFormControls;
|
|
1916
|
+
private ensureRuntimeValueTracking;
|
|
1917
|
+
private withSuppressedCommandSideEffects;
|
|
1918
|
+
private createRuntimeFormHostCallbacks;
|
|
1919
|
+
private isConfiguredReactiveDeterminationOutputField;
|
|
1920
|
+
private collectRuntimeValueFieldClassification;
|
|
1601
1921
|
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>;
|
|
1922
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; "overlayInitialValueOnEdit": { "alias": "overlayInitialValueOnEdit"; "required": false; }; "emptyState": { "alias": "emptyState"; "required": false; }; "editorialContext": { "alias": "editorialContext"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "schemaSource": { "alias": "schemaSource"; "required": false; }; "actionId": { "alias": "actionId"; "required": false; }; "operationId": { "alias": "operationId"; "required": false; }; "schemaUrl": { "alias": "schemaUrl"; "required": false; }; "readUrl": { "alias": "readUrl"; "required": false; }; "submitUrl": { "alias": "submitUrl"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; "submitIdempotencyKey": { "alias": "submitIdempotencyKey"; "required": false; }; "submitCorrelationId": { "alias": "submitCorrelationId"; "required": false; }; "submitResourceVersion": { "alias": "submitResourceVersion"; "required": false; }; "submitResourceVersionTargetResourceKey": { "alias": "submitResourceVersionTargetResourceKey"; "required": false; }; "submitResourceVersionTargetIdField": { "alias": "submitResourceVersionTargetIdField"; "required": false; }; "responseSchemaUrl": { "alias": "responseSchemaUrl"; "required": false; }; "apiEndpointKey": { "alias": "apiEndpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showAiAssistant": { "alias": "showAiAssistant"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "layoutMode": { "alias": "layoutMode"; "required": false; }; "formLayout": { "alias": "formLayout"; "required": false; }; "generatedLayoutPreset": { "alias": "generatedLayoutPreset"; "required": false; }; "layoutPolicy": { "alias": "layoutPolicy"; "required": false; }; "backConfig": { "alias": "backConfig"; "required": false; }; "hooks": { "alias": "hooks"; "required": false; }; "removeEmptyContainersOnSave": { "alias": "removeEmptyContainersOnSave"; "required": false; }; "reactiveValidation": { "alias": "reactiveValidation"; "required": false; }; "reactiveValidationDebounceMs": { "alias": "reactiveValidationDebounceMs"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "readonlyModeGlobal": { "alias": "readonlyModeGlobal"; "required": false; }; "disabledModeGlobal": { "alias": "disabledModeGlobal"; "required": false; }; "presentationModeGlobal": { "alias": "presentationModeGlobal"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "presentationPreset": { "alias": "presentationPreset"; "required": false; }; "sectionDefaultAppearance": { "alias": "sectionDefaultAppearance"; "required": false; }; "sectionDivider": { "alias": "sectionDivider"; "required": false; }; "visibleGlobal": { "alias": "visibleGlobal"; "required": false; }; "fieldIconPolicy": { "alias": "fieldIconPolicy"; "required": false; }; "domainRules": { "alias": "domainRules"; "required": false; }; "customEndpoints": { "alias": "customEndpoints"; "required": false; }; "activeStepIndex": { "alias": "activeStepIndex"; "required": false; }; }, { "formSubmit": "formSubmit"; "formCancel": "formCancel"; "formReset": "formReset"; "configChange": "configChange"; "configPatchChange": "configPatchChange"; "formReady": "formReady"; "valueChange": "valueChange"; "payloadPreviewChange": "payloadPreviewChange"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "ruleDiagnosticsChange": "ruleDiagnosticsChange"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "tabChange": "tabChange"; "tabSelected": "tabSelected"; "stepChange": "stepChange"; "stepTelemetry": "stepTelemetry"; }, never, never, true, never>;
|
|
1603
1923
|
}
|
|
1604
1924
|
|
|
1605
1925
|
declare class FormConfigService {
|
|
@@ -1783,7 +2103,9 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1783
2103
|
formId?: string;
|
|
1784
2104
|
componentKeyId?: string;
|
|
1785
2105
|
inputMode: DynamicFormMode;
|
|
2106
|
+
inputLayoutScope: DynamicFormLayoutScope;
|
|
1786
2107
|
private includeBindingsBlock;
|
|
2108
|
+
private includeLayoutScopeBinding;
|
|
1787
2109
|
private readonly editorMode;
|
|
1788
2110
|
get isPresentationMode(): boolean;
|
|
1789
2111
|
supportsPresentationSettings: boolean;
|
|
@@ -1841,7 +2163,11 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1841
2163
|
};
|
|
1842
2164
|
private destroy$;
|
|
1843
2165
|
private hasProcessedInitialRuleState;
|
|
2166
|
+
ruleConversionFailed: boolean;
|
|
2167
|
+
private readonly jsonLogic;
|
|
2168
|
+
private readonly cascadeRulesService;
|
|
1844
2169
|
private jsonEditorIsValid;
|
|
2170
|
+
private cascadeDraftIsValid;
|
|
1845
2171
|
private globalActionValidationIssues;
|
|
1846
2172
|
private readonly i18n;
|
|
1847
2173
|
readonly globalActionCatalog: GlobalActionCatalogEntry[];
|
|
@@ -1854,7 +2180,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1854
2180
|
isValid$: BehaviorSubject<boolean>;
|
|
1855
2181
|
isBusy$: BehaviorSubject<boolean>;
|
|
1856
2182
|
private lastRulesSignature;
|
|
1857
|
-
private
|
|
2183
|
+
private supersededRuleStateSignature;
|
|
1858
2184
|
private readonly DEBUG;
|
|
1859
2185
|
private debugLog;
|
|
1860
2186
|
get configTabOptions(): ConfigEditorTabOption[];
|
|
@@ -1872,6 +2198,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1872
2198
|
onJsonValidationChange(result: JsonValidationResult): void;
|
|
1873
2199
|
onJsonEditorEvent(_event: JsonEditorEvent): void;
|
|
1874
2200
|
onConfigChange(newConfig: FormConfig): void;
|
|
2201
|
+
onCascadeValidChange(valid: boolean): void;
|
|
2202
|
+
private isCascadeGraphValid;
|
|
1875
2203
|
private updateValidityState;
|
|
1876
2204
|
private collectGlobalActionValidationIssues;
|
|
1877
2205
|
private collectGlobalActionValidationTargets;
|
|
@@ -1924,6 +2252,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1924
2252
|
getRuleDiagnosticDetails(diagnostic: FormRuleDiagnostics): string[];
|
|
1925
2253
|
private getRulePropertyIssueNames;
|
|
1926
2254
|
private markLlmRuleAccepted;
|
|
2255
|
+
private projectBuilderRules;
|
|
1927
2256
|
private refreshRuleDiagnostics;
|
|
1928
2257
|
get jsonDocument(): DynamicFormAuthoringDocument;
|
|
1929
2258
|
onBackConfigChange(): void;
|
|
@@ -1934,6 +2263,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1934
2263
|
hasResolvedRuntimeContract(): boolean;
|
|
1935
2264
|
describeRuntimeSource(source?: DynamicFormRuntimeValueSource): string;
|
|
1936
2265
|
onInputModeChange(): void;
|
|
2266
|
+
onLayoutScopeChange(scope: DynamicFormLayoutScope): void;
|
|
1937
2267
|
onPresentationPrefsChange(reason: string): void;
|
|
1938
2268
|
onSchemaPrefsChange(reason: string): void;
|
|
1939
2269
|
private createRuleBuilderConfig;
|
|
@@ -1954,10 +2284,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1954
2284
|
onCascadeApply(patch: Record<string, Partial<FieldDefinition>>): void;
|
|
1955
2285
|
private syncCascadeManagerFields;
|
|
1956
2286
|
private stripLegacy;
|
|
2287
|
+
private hydrateRuleDraft;
|
|
1957
2288
|
private computeRulesSignature;
|
|
1958
2289
|
restoreHintsDefaults(): void;
|
|
1959
2290
|
private loadPrefsFromStorage;
|
|
1960
2291
|
private normalizeMode;
|
|
2292
|
+
private normalizeLayoutScope;
|
|
1961
2293
|
private buildAuthoringDocument;
|
|
1962
2294
|
private normalizeResolvedRuntimeContract;
|
|
1963
2295
|
private createBackConfigState;
|
|
@@ -1982,6 +2314,14 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1982
2314
|
config: FormConfig;
|
|
1983
2315
|
formId?: string;
|
|
1984
2316
|
resourcePath?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* Optional logical endpoint key for multi-gateway filter schema resolution.
|
|
2319
|
+
*/
|
|
2320
|
+
endpointKey?: ApiEndpoint;
|
|
2321
|
+
/**
|
|
2322
|
+
* Optional explicit API URL entry override for filter schema resolution.
|
|
2323
|
+
*/
|
|
2324
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1985
2325
|
mode?: string;
|
|
1986
2326
|
formReady: EventEmitter<{
|
|
1987
2327
|
formGroup: FormGroup<Record<string, any>>;
|
|
@@ -1999,15 +2339,25 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1999
2339
|
form: FormGroup<Record<string, any>>;
|
|
2000
2340
|
private valueChangesSub?;
|
|
2001
2341
|
private statusChangesSub?;
|
|
2342
|
+
private schemaSub?;
|
|
2343
|
+
private hydratedFieldMetadata;
|
|
2344
|
+
private schemaHydrationPending;
|
|
2345
|
+
private schemaHydrationFailed;
|
|
2002
2346
|
private columnFieldsCache;
|
|
2003
2347
|
private singleFieldCache;
|
|
2348
|
+
private readonly crudService;
|
|
2349
|
+
private readonly resourceDiscovery;
|
|
2350
|
+
private readonly cdr;
|
|
2004
2351
|
constructor(dynamicForm: DynamicFormService);
|
|
2005
2352
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2006
2353
|
ngOnDestroy(): void;
|
|
2354
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2007
2355
|
private buildForm;
|
|
2008
2356
|
private buildRestorableValues;
|
|
2009
2357
|
private hasExplicitDefaultValue;
|
|
2010
2358
|
onFormSubmit(): void;
|
|
2359
|
+
private isFilterReady;
|
|
2360
|
+
private projectFilterValues;
|
|
2011
2361
|
getColumnFields(column: FormColumn): FieldMetadata[];
|
|
2012
2362
|
getSingleField(field: FieldMetadata): FieldMetadata[];
|
|
2013
2363
|
getColumnClasses(column: FormColumn): string | null;
|
|
@@ -2017,7 +2367,7 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
2017
2367
|
trackByRow(i: number, _row: FormRow): string;
|
|
2018
2368
|
trackByColumn(i: number, col: FormColumn): string;
|
|
2019
2369
|
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>;
|
|
2370
|
+
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
2371
|
}
|
|
2022
2372
|
|
|
2023
2373
|
/** Metadata for PraxisFilterForm component */
|
|
@@ -2029,6 +2379,9 @@ interface PraxisFilterFormWidgetEditorInputs {
|
|
|
2029
2379
|
config?: FormConfig | null;
|
|
2030
2380
|
formId?: string;
|
|
2031
2381
|
resourcePath?: string;
|
|
2382
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2383
|
+
endpointKey?: ApiEndpoint;
|
|
2384
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2032
2385
|
mode?: DynamicFormMode | string;
|
|
2033
2386
|
[key: string]: unknown;
|
|
2034
2387
|
}
|
|
@@ -2042,13 +2395,37 @@ declare class PraxisFilterFormWidgetConfigEditor implements SettingsValueProvide
|
|
|
2042
2395
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2043
2396
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2044
2397
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2398
|
+
schemaWarning: string;
|
|
2045
2399
|
private readonly subscription;
|
|
2400
|
+
private schemaSubscription?;
|
|
2401
|
+
private childBusy;
|
|
2402
|
+
private schemaLoading;
|
|
2403
|
+
private resourcePathDraft?;
|
|
2404
|
+
private selectedCatalogResource;
|
|
2405
|
+
private committedBaselineDocument?;
|
|
2406
|
+
private readonly crudService;
|
|
2407
|
+
private readonly resourceDiscovery;
|
|
2408
|
+
private readonly cdr;
|
|
2409
|
+
get effectiveResourcePath(): string;
|
|
2410
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2411
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2412
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2413
|
+
onCatalogResourceSelected(entry: DiscoveredResourceOption | null): void;
|
|
2414
|
+
onResourceQuickClear(): void;
|
|
2415
|
+
private updateDirtyState;
|
|
2046
2416
|
ngAfterViewInit(): void;
|
|
2047
2417
|
ngOnDestroy(): void;
|
|
2048
2418
|
getSettingsValue(): PraxisFilterFormWidgetEditorValue;
|
|
2049
2419
|
onSave(): PraxisFilterFormWidgetEditorValue;
|
|
2050
2420
|
reset(): void;
|
|
2421
|
+
private publishBusy;
|
|
2051
2422
|
private initializeChildEditor;
|
|
2423
|
+
private applyBaselineDocumentToChildEditor;
|
|
2424
|
+
private applyDraftDocumentToChildEditor;
|
|
2425
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2426
|
+
private extractCatalogFallbackFields;
|
|
2427
|
+
private applyLoadedFilterFieldMetadata;
|
|
2428
|
+
private buildDiscoveryOptions;
|
|
2052
2429
|
private buildValue;
|
|
2053
2430
|
private createDocumentFromInputs;
|
|
2054
2431
|
private normalizeMode;
|
|
@@ -2144,6 +2521,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2144
2521
|
private readonly layoutService;
|
|
2145
2522
|
private readonly settingsPanel;
|
|
2146
2523
|
private readonly i18n;
|
|
2524
|
+
private readonly logger;
|
|
2147
2525
|
private visualBlockIdSequence;
|
|
2148
2526
|
private localFieldSequence;
|
|
2149
2527
|
protected readonly colorTokens: typeof LayoutColorToken;
|
|
@@ -2167,8 +2545,38 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2167
2545
|
get borderEnabled(): boolean;
|
|
2168
2546
|
get dividerEnabled(): boolean;
|
|
2169
2547
|
get layoutSections(): FormSection[];
|
|
2548
|
+
get layoutModeValue(): FormLayoutMode;
|
|
2549
|
+
onLayoutModeChange(mode: FormLayoutMode): void;
|
|
2550
|
+
get stepperInReadModeValue(): FormStepperReadMode;
|
|
2551
|
+
onStepperInReadModeChange(policy: FormStepperReadMode): void;
|
|
2552
|
+
get stepperReviewStepValue(): boolean;
|
|
2553
|
+
toggleStepperReviewStep(): void;
|
|
2554
|
+
stepperGroupingOpen: boolean;
|
|
2555
|
+
private stepIdSequence;
|
|
2556
|
+
private cachedExplicitStepsRef;
|
|
2557
|
+
private cachedAutoStepsRef;
|
|
2558
|
+
private cachedAutoStepsKey;
|
|
2559
|
+
toggleStepperGroupingPanel(): void;
|
|
2560
|
+
get hasExplicitStepperSteps(): boolean;
|
|
2561
|
+
get explicitStepperSteps(): FormLayoutStepItem[];
|
|
2562
|
+
initializeExplicitStepperSteps(): void;
|
|
2563
|
+
resetExplicitStepperSteps(): void;
|
|
2564
|
+
canAddExplicitStepperStep(): boolean;
|
|
2565
|
+
addExplicitStepperStep(): void;
|
|
2566
|
+
updateExplicitStepperStepLabel(stepIndex: number, label: string): void;
|
|
2567
|
+
updateExplicitStepperStepDescription(stepIndex: number, description: string): void;
|
|
2568
|
+
toggleExplicitStepperStepOptional(stepIndex: number): void;
|
|
2569
|
+
moveExplicitStepperStep(stepIndex: number, delta: -1 | 1): void;
|
|
2570
|
+
removeExplicitStepperStep(stepIndex: number): void;
|
|
2571
|
+
isSectionInExplicitStep(step: FormLayoutStepItem, sectionId: string): boolean;
|
|
2572
|
+
toggleSectionInExplicitStep(stepIndex: number, sectionId: string): void;
|
|
2573
|
+
private emitExplicitStepperSteps;
|
|
2170
2574
|
canApplyAll(): boolean;
|
|
2171
2575
|
applyGapToAll(): void;
|
|
2576
|
+
canCalibrateFieldsFromSemantics(): boolean;
|
|
2577
|
+
calibrateAllFieldsFromSemantics(): void;
|
|
2578
|
+
canOrganizeSectionsFromSemantics(): boolean;
|
|
2579
|
+
organizeSectionsFromSemantics(): void;
|
|
2172
2580
|
ngOnInit(): void;
|
|
2173
2581
|
handleKeydown(event: KeyboardEvent): void;
|
|
2174
2582
|
/**
|
|
@@ -2385,6 +2793,7 @@ declare class FieldConfiguratorComponent {
|
|
|
2385
2793
|
private readonly categoryByType;
|
|
2386
2794
|
private resolveEditorialMeta;
|
|
2387
2795
|
get icon(): string;
|
|
2796
|
+
private normalizedFieldControlType;
|
|
2388
2797
|
get typeClass(): string;
|
|
2389
2798
|
get typeSpecificClass(): string;
|
|
2390
2799
|
get typeLabel(): string;
|
|
@@ -2396,8 +2805,13 @@ declare class FieldConfiguratorComponent {
|
|
|
2396
2805
|
|
|
2397
2806
|
interface PraxisDynamicFormWidgetEditorInputs {
|
|
2398
2807
|
config?: FormConfig | null;
|
|
2808
|
+
resourcePath?: string | null;
|
|
2809
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2810
|
+
endpointKey?: ApiEndpoint;
|
|
2811
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2812
|
+
schemaSource?: 'resource' | 'filter';
|
|
2399
2813
|
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
2400
|
-
configPersistenceStrategy?: 'local-first' | 'input-first';
|
|
2814
|
+
configPersistenceStrategy?: 'local-first' | 'input-first' | 'volatile';
|
|
2401
2815
|
mode?: DynamicFormMode;
|
|
2402
2816
|
emptyState?: PraxisDynamicFormEmptyState | null;
|
|
2403
2817
|
presentationModeGlobal?: boolean | null;
|
|
@@ -2414,23 +2828,46 @@ interface PraxisDynamicFormWidgetEditorValue {
|
|
|
2414
2828
|
inputs: PraxisDynamicFormWidgetEditorInputs;
|
|
2415
2829
|
}
|
|
2416
2830
|
declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnDestroy {
|
|
2831
|
+
private readonly crudService;
|
|
2832
|
+
private readonly resourceDiscovery;
|
|
2833
|
+
private readonly cdr;
|
|
2417
2834
|
inputs: PraxisDynamicFormWidgetEditorInputs | null;
|
|
2418
2835
|
widgetKey?: string;
|
|
2419
2836
|
appliedValues$?: Observable<unknown>;
|
|
2420
2837
|
private appliedSource?;
|
|
2838
|
+
private appliedResourcePath?;
|
|
2421
2839
|
/** Runtime evidence supplied by the existing component editor context resolver. */
|
|
2422
2840
|
context: Record<string, unknown>;
|
|
2423
2841
|
formEditor?: PraxisDynamicFormConfigEditor;
|
|
2424
2842
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2425
2843
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2426
2844
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2845
|
+
schemaWarning: string;
|
|
2427
2846
|
private readonly subscription;
|
|
2847
|
+
private schemaSubscription?;
|
|
2848
|
+
private childBusy;
|
|
2849
|
+
private schemaLoading;
|
|
2428
2850
|
private initialEditorConfig?;
|
|
2851
|
+
private committedBaselineConfig?;
|
|
2852
|
+
private committedBaselineDocument?;
|
|
2429
2853
|
private sourceDraft?;
|
|
2430
|
-
|
|
2854
|
+
private resourcePathDraft?;
|
|
2855
|
+
selectedCatalogResource: DiscoveredResourceOption | null;
|
|
2856
|
+
private optionalInject;
|
|
2857
|
+
get configurationSource(): 'local-first' | 'input-first' | 'volatile';
|
|
2858
|
+
get effectiveResourcePath(): string;
|
|
2859
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2860
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2861
|
+
get effectiveDiscoveryIntent(): 'crud' | 'filter';
|
|
2862
|
+
get hasReadOnlyModeWarning(): boolean;
|
|
2863
|
+
switchToReadOnlyViewMode(): void;
|
|
2864
|
+
onCatalogResourceSelected(resource: DiscoveredResourceOption | null): void;
|
|
2431
2865
|
changeConfigurationSource(value: string): void;
|
|
2866
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2867
|
+
onResourceQuickClear(): void;
|
|
2868
|
+
private baselineResourcePath;
|
|
2432
2869
|
private updateDirtyState;
|
|
2433
|
-
private
|
|
2870
|
+
private publishBusy;
|
|
2434
2871
|
ngAfterViewInit(): void;
|
|
2435
2872
|
ngOnDestroy(): void;
|
|
2436
2873
|
getSettingsValue(): PraxisDynamicFormWidgetEditorValue;
|
|
@@ -2438,6 +2875,12 @@ declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvid
|
|
|
2438
2875
|
acceptAppliedValue(value: unknown): void;
|
|
2439
2876
|
reset(): void;
|
|
2440
2877
|
private initializeChildEditor;
|
|
2878
|
+
private applyBaselineDocumentToChildEditor;
|
|
2879
|
+
private applyDraftDocumentToChildEditor;
|
|
2880
|
+
private loadResourceSchemaFieldsIfNeeded;
|
|
2881
|
+
private extractCatalogFallbackFields;
|
|
2882
|
+
private applyFieldMetadataHydration;
|
|
2883
|
+
private buildDiscoveryOptions;
|
|
2441
2884
|
private buildValue;
|
|
2442
2885
|
private createDocumentFromInputs;
|
|
2443
2886
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicFormWidgetConfigEditor, never>;
|
|
@@ -2497,20 +2940,20 @@ declare class DynamicFormSchemaCacheService {
|
|
|
2497
2940
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormSchemaCacheService>;
|
|
2498
2941
|
}
|
|
2499
2942
|
|
|
2500
|
-
declare class
|
|
2943
|
+
declare class LegacyCompactPresentationExampleComponent {
|
|
2501
2944
|
private readonly dynamicLayout;
|
|
2502
|
-
readonly legacyFrequencyExample: _praxisui_dynamic_form.
|
|
2945
|
+
readonly legacyFrequencyExample: _praxisui_dynamic_form.LegacyCompactPresentationCompactPresentationExample;
|
|
2503
2946
|
readonly legacyFrequencyPresentationConfig: _praxisui_core.FormConfig;
|
|
2504
2947
|
readonly legacyFrequencyInitialValue: Record<string, unknown>;
|
|
2505
|
-
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.
|
|
2948
|
+
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2506
2949
|
readonly corporatePresentationExample: _praxisui_dynamic_form.CorporatePresentationExample;
|
|
2507
2950
|
readonly corporatePresentationConfig: _praxisui_core.FormConfig;
|
|
2508
2951
|
readonly corporatePresentationInitialValue: Record<string, unknown>;
|
|
2509
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2510
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
2952
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LegacyCompactPresentationExampleComponent, never>;
|
|
2953
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyCompactPresentationExampleComponent, "praxis-legacy-compact-presentation-example", never, {}, {}, never, never, true, never>;
|
|
2511
2954
|
}
|
|
2512
2955
|
|
|
2513
|
-
interface
|
|
2956
|
+
interface LegacyCompactPresentationLegacyFrequencyRow {
|
|
2514
2957
|
tipo: string;
|
|
2515
2958
|
codigo: string;
|
|
2516
2959
|
nome: string;
|
|
@@ -2518,12 +2961,12 @@ interface Ergadm00034LegacyFrequencyRow {
|
|
|
2518
2961
|
marcador: string;
|
|
2519
2962
|
selected?: boolean;
|
|
2520
2963
|
}
|
|
2521
|
-
interface
|
|
2522
|
-
readonly id: '
|
|
2964
|
+
interface LegacyCompactPresentationCompactPresentationExample {
|
|
2965
|
+
readonly id: 'legacy-compact-presentation';
|
|
2523
2966
|
readonly title: string;
|
|
2524
2967
|
readonly resourcePath: string;
|
|
2525
2968
|
readonly layoutPreset: 'compactPresentation';
|
|
2526
|
-
readonly rows: readonly
|
|
2969
|
+
readonly rows: readonly LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2527
2970
|
readonly tableConfig: TableConfig;
|
|
2528
2971
|
readonly metadata: readonly FieldMetadata[];
|
|
2529
2972
|
readonly initialValue: Record<string, unknown>;
|
|
@@ -2536,9 +2979,9 @@ interface CorporatePresentationExample {
|
|
|
2536
2979
|
readonly metadata: readonly FieldMetadata[];
|
|
2537
2980
|
readonly initialValue: Record<string, unknown>;
|
|
2538
2981
|
}
|
|
2539
|
-
declare const
|
|
2982
|
+
declare const LEGACY_COMPACT_PRESENTATION_COMPACT_PRESENTATION_EXAMPLE: LegacyCompactPresentationCompactPresentationExample;
|
|
2540
2983
|
declare const CORPORATE_PRESENTATION_FORMAT_GALLERY: CorporatePresentationExample;
|
|
2541
|
-
declare function
|
|
2984
|
+
declare function buildLegacyCompactPresentationCompactPresentationConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2542
2985
|
declare function buildCorporatePresentationFormatGalleryConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2543
2986
|
|
|
2544
2987
|
declare function isRuleSatisfied(rule: FormLayoutRule, data: unknown): boolean;
|
|
@@ -2551,23 +2994,22 @@ declare function applyVisibilityRules(rules: FormLayoutRule[], data: any): Recor
|
|
|
2551
2994
|
/**
|
|
2552
2995
|
* Converts a RuleBuilderState produced by the visual builder into
|
|
2553
2996
|
* an array of FormLayoutRule objects understood by the dynamic form.
|
|
2997
|
+
* Throws when a referenced condition graph cannot be serialized without losing semantics.
|
|
2554
2998
|
*/
|
|
2555
2999
|
declare function ruleBuilderStateToFormLayoutRules(state: RuleBuilderState | null | undefined): FormLayoutRule[];
|
|
2556
3000
|
/**
|
|
2557
3001
|
* Converts an array of FormLayoutRule back into a RuleBuilderState
|
|
2558
3002
|
* so that the visual builder can display the saved rules.
|
|
2559
3003
|
*
|
|
2560
|
-
*
|
|
2561
|
-
*
|
|
3004
|
+
* Every canonical effect reopens as a propertyRule, with all targets and both
|
|
3005
|
+
* branches intact. Conditions outside the visual vocabulary stay inline.
|
|
2562
3006
|
*/
|
|
2563
3007
|
declare function formLayoutRulesToBuilderState(rules: FormLayoutRule[] | null | undefined): RuleBuilderState;
|
|
2564
3008
|
|
|
2565
|
-
/**
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
*/
|
|
2570
|
-
declare function normalizeDateArrays(data: any): any;
|
|
3009
|
+
/** Converts legacy date tuples only where the existing field metadata declares a temporal value. */
|
|
3010
|
+
declare function normalizeDateArrays(data: any, fields: readonly FieldMetadata[]): any;
|
|
3011
|
+
/** One private draft shared by hydration and submit; only declared temporal fields are transformed. */
|
|
3012
|
+
declare function normalizeTemporalFieldValues(data: any, fields: readonly FieldMetadata[], normalizeString: (value: string) => string): any;
|
|
2571
3013
|
|
|
2572
3014
|
/**
|
|
2573
3015
|
* Helper provider to wire the PraxisDynamicForm component into the Settings Panel
|
|
@@ -3040,6 +3482,9 @@ declare const ENUMS: {
|
|
|
3040
3482
|
fieldHintPosition: FieldHintPosition[];
|
|
3041
3483
|
sectionTitleStyle: SectionTitleStyle[];
|
|
3042
3484
|
sectionDescriptionStyle: SectionDescriptionStyle[];
|
|
3485
|
+
formLayoutMode: string[];
|
|
3486
|
+
formStepperReadMode: string[];
|
|
3487
|
+
formLayoutTabsAppearance: string[];
|
|
3043
3488
|
editorialContentFormat: string[];
|
|
3044
3489
|
};
|
|
3045
3490
|
declare const FORM_AI_CAPABILITIES: CapabilityCatalog$1;
|
|
@@ -3132,7 +3577,50 @@ declare const PRAXIS_FILTER_FORM_AUTHORING_PROJECTION: {
|
|
|
3132
3577
|
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
3578
|
readonly roundTripRequirements: readonly ["strip-undefined", "stable-field-order", "preserve-local-field-source", "preserve-section-row-column-ids"];
|
|
3134
3579
|
};
|
|
3135
|
-
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST:
|
|
3580
|
+
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST: {
|
|
3581
|
+
runtimeInputs: _praxisui_core.ManifestInput[];
|
|
3582
|
+
schemaVersion: string;
|
|
3583
|
+
componentId: string;
|
|
3584
|
+
ownerPackage: string;
|
|
3585
|
+
configSchemaId: string;
|
|
3586
|
+
manifestVersion: string;
|
|
3587
|
+
editableTargets: _praxisui_core.ManifestTarget[];
|
|
3588
|
+
operations: _praxisui_core.ManifestOperation[];
|
|
3589
|
+
validators: _praxisui_core.ManifestValidator[];
|
|
3590
|
+
roundTripRequirements?: string[];
|
|
3591
|
+
presentationAffordances?: _praxisui_core.ManifestPresentationAffordanceCatalog;
|
|
3592
|
+
examples: _praxisui_core.ManifestExample[];
|
|
3593
|
+
controlProfiles?: _praxisui_core.ManifestControlProfile[];
|
|
3594
|
+
};
|
|
3595
|
+
|
|
3596
|
+
/** Reconstruct raw native authorship. Normalized editor/runtime defaults are never the source. */
|
|
3597
|
+
declare function decodeDynamicFormPageInputs(value: unknown): {
|
|
3598
|
+
document: DynamicFormAuthoringDocument | null;
|
|
3599
|
+
diagnostics: EditorDiagnostic[];
|
|
3600
|
+
};
|
|
3601
|
+
/** Owner callback for Core admission; no component loading or second config authority. */
|
|
3602
|
+
declare function validateDynamicFormPageWidget(widget: WidgetInstance): readonly {
|
|
3603
|
+
code: string;
|
|
3604
|
+
path: string;
|
|
3605
|
+
}[];
|
|
3606
|
+
/** Inverse native projection. Explicit unrepresentable authoring blocks fail instead of being filtered. */
|
|
3607
|
+
declare function encodeDynamicFormPageInputs(value: unknown): {
|
|
3608
|
+
inputs: Record<string, unknown> | null;
|
|
3609
|
+
diagnostics: EditorDiagnostic[];
|
|
3610
|
+
};
|
|
3611
|
+
/** Persist only explicit deltas from the mounted native editor; bindings/context stay pinned to the seed. */
|
|
3612
|
+
declare function projectDynamicFormPageEditorChanges(authoredInputs: unknown, editorBaseline: unknown, editorValue: unknown): {
|
|
3613
|
+
inputs: Record<string, unknown> | null;
|
|
3614
|
+
diagnostics: EditorDiagnostic[];
|
|
3615
|
+
};
|
|
3616
|
+
/** Derive execution-only identity and disable independent preferences. Never persist this projection. */
|
|
3617
|
+
declare function materializeDynamicFormPageRuntimeInputs(value: unknown, pageId: string, widgetKey: string, options?: {
|
|
3618
|
+
preview?: boolean;
|
|
3619
|
+
}): {
|
|
3620
|
+
inputs: Record<string, unknown> | null;
|
|
3621
|
+
diagnostics: EditorDiagnostic[];
|
|
3622
|
+
};
|
|
3623
|
+
declare const DYNAMIC_FORM_GOVERNED_PAGE_PREVIEW_ADAPTER: GovernedPagePreviewWidgetAdapter;
|
|
3136
3624
|
|
|
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,
|
|
3625
|
+
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 };
|
|
3626
|
+
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 };
|