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