@praxisui/dynamic-form 10.0.0-rc.6 → 10.0.0-rc.60
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 +2655 -333
- 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 +10553 -1329
- 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 +528 -45
- package/fesm2022/praxisui-dynamic-form-dynamic-form-agentic-authoring-turn-flow-w9V0aQ9B.mjs +0 -539
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _praxisui_core from '@praxisui/core';
|
|
2
|
+
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormConfigWithSections, FormLayoutItem, ReactiveDeterminationDefinition, ReactiveDeterminationExecutionEvent, FormActionButton, PraxisRuleViolationDiagnostic, DynamicFormMode, PraxisRuntimeFormValueTargetIdentity, PraxisRuntimeFormValueEligibility, PraxisRuntimeFormValueProposal, PraxisRuntimeFormValueApplyMode, PraxisRuntimeFormValuePreviewResult, PraxisRuntimeFormValueApplyRequest, PraxisRuntimeFormValueApplyReceipt, PraxisRuntimeFormValueUndoReceipt, AiCapability, DynamicFormLayoutScope, BackConfig, FormPresentationConfig, EmptyStateTone, EmptyStateVariant, EmptyStateAlignment, EmptyStateDensity, EmptyStateIconContainer, FormPresentationPreset, PraxisRuntimeFormValueTargetPort, RichBlockHostCapabilities, ApiEndpoint, ApiUrlEntry, FormLayoutMode, FormLayoutOptions, DynamicFormLayoutPolicy, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, FormPayloadPreviewEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, FormLayoutTabItem, FormStepTelemetryEvent, RichContentDocument, JsonLogicRecord, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, EnterpriseRuntimeContextService, FormStepperReadMode, FormLayoutTabsAppearance, FormStepTelemetryReason, FormSectionHeaderAction, FormSectionHeaderConfig, PraxisRuntimeComponentObservationEnvelope, FormConfigState, JsonLogicExpression, FormHelpPresentationConfig, GlobalActionCatalogEntry, PraxisRuntimeConditionalEffectRule, PraxisRuntimeGlobalActionEffect, SurfaceOpenPayload, GlobalActionField, PraxisEffectPolicy, FieldDefinition, ComponentDocMeta, DiscoveredResourceOption, FormLayoutStepItem, Breakpoint, DomainRuleRequestOptions, DomainRuleService, DomainRuleMaterialization, SchemaIdParams, CompiledDynamicFormSchema, TableConfig, SurfaceOpenActionEditorComponent, IconPickerService, GlobalActionRef, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest, GovernedPagePreviewWidgetAdapter, WidgetInstance } from '@praxisui/core';
|
|
3
|
+
export { CompiledDynamicFormSchema, DynamicFormLayoutScope, DynamicFormMode } from '@praxisui/core';
|
|
1
4
|
import * as i0 from '@angular/core';
|
|
2
5
|
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, OnInit, ChangeDetectorRef, NgZone, Provider, AfterViewInit, ElementRef } from '@angular/core';
|
|
3
6
|
import { HttpClient } from '@angular/common/http';
|
|
@@ -6,9 +9,6 @@ import { Router, ActivatedRoute } from '@angular/router';
|
|
|
6
9
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
10
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
8
11
|
import { CdkDragStart, CdkDragMove, CdkDragEnd, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
9
|
-
import * as _praxisui_core from '@praxisui/core';
|
|
10
|
-
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormConfigWithSections, FormLayoutItem, ReactiveDeterminationDefinition, ReactiveDeterminationExecutionEvent, FormActionButton, DynamicFormMode, AiCapability, BackConfig, FormPresentationConfig, EmptyStateTone, EmptyStateVariant, EmptyStateAlignment, EmptyStateDensity, EmptyStateIconContainer, FormPresentationPreset, RichBlockHostCapabilities, ApiEndpoint, ApiUrlEntry, FormLayoutMode, FormLayoutOptions, DynamicFormLayoutPolicy, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, FormPayloadPreviewEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, FormLayoutTabItem, RichContentDocument, JsonLogicRecord, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, EnterpriseRuntimeContextService, FormLayoutTabsAppearance, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, JsonLogicExpression, FormHelpPresentationConfig, GlobalActionCatalogEntry, PraxisRuntimeConditionalEffectRule, PraxisRuntimeGlobalActionEffect, SurfaceOpenPayload, GlobalActionField, PraxisEffectPolicy, FieldDefinition, ComponentDocMeta, Breakpoint, DomainRuleRequestOptions, DomainRuleService, DomainRuleMaterialization, SchemaIdParams, CompiledDynamicFormSchema, TableConfig, SurfaceOpenActionEditorComponent, IconPickerService, GlobalActionRef, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
11
|
-
export { CompiledDynamicFormSchema, DynamicFormMode } from '@praxisui/core';
|
|
12
12
|
import * as rxjs from 'rxjs';
|
|
13
13
|
import { Observable, Subscription, BehaviorSubject } from 'rxjs';
|
|
14
14
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
@@ -225,6 +225,7 @@ declare class DynamicFormLayoutService {
|
|
|
225
225
|
}): LayoutResult;
|
|
226
226
|
private resolvePath;
|
|
227
227
|
resolvePathByIds(config: FormConfig, ids: IdPath): FieldPath;
|
|
228
|
+
private resolveExplicitColSpan;
|
|
228
229
|
private createRowsFromFields;
|
|
229
230
|
private createCompactPresentationRowsFromFields;
|
|
230
231
|
private resolveCompactPresentationSpan;
|
|
@@ -371,11 +372,11 @@ declare class ReactiveDeterminationRuntimeService {
|
|
|
371
372
|
private readonly publishingCommitByForm;
|
|
372
373
|
private nextConnectionId;
|
|
373
374
|
hasPending(form: FormGroup): boolean;
|
|
374
|
-
hasUnsatisfied(form: FormGroup): boolean;
|
|
375
|
+
hasUnsatisfied(form: FormGroup, unvisitedFieldNames?: readonly string[]): boolean;
|
|
375
376
|
waitForStable(form: FormGroup, timeoutMs?: number): Promise<boolean>;
|
|
376
377
|
observePending(form: FormGroup, observer: (pending: boolean) => void): Subscription;
|
|
377
378
|
isOwnedTarget(form: FormGroup, control: AbstractControl): boolean;
|
|
378
|
-
connect(form: FormGroup, definitions: ReactiveDeterminationDefinition[], executor: ReactiveDeterminationExecutor, onEvent?: (event: ReactiveDeterminationExecutionEvent) => void, operationTimeoutMs?: number): Subscription;
|
|
379
|
+
connect(form: FormGroup, definitions: ReactiveDeterminationDefinition[], executor: ReactiveDeterminationExecutor, onEvent?: (event: ReactiveDeterminationExecutionEvent) => void, operationTimeoutMs?: number, fieldMetadata?: readonly FieldMetadata[]): Subscription;
|
|
379
380
|
private resolveControls;
|
|
380
381
|
private waitForUpstreamDeterminations;
|
|
381
382
|
private claimTargets;
|
|
@@ -422,6 +423,21 @@ interface PraxisFormActionEvent {
|
|
|
422
423
|
/** Original DOM event that triggered the action */
|
|
423
424
|
originalEvent: Event;
|
|
424
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* Stepper progression metadata consumed by the unified bottom/top action bar.
|
|
428
|
+
*/
|
|
429
|
+
interface PraxisFormActionsStepperState {
|
|
430
|
+
active: boolean;
|
|
431
|
+
currentStep: number;
|
|
432
|
+
totalSteps: number;
|
|
433
|
+
canGoPrevious: boolean;
|
|
434
|
+
canGoNext: boolean;
|
|
435
|
+
isLastStep: boolean;
|
|
436
|
+
pendingTransition?: boolean;
|
|
437
|
+
previousLabel?: string;
|
|
438
|
+
nextLabel?: string;
|
|
439
|
+
progressLabel?: string;
|
|
440
|
+
}
|
|
425
441
|
declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
426
442
|
private shortcuts;
|
|
427
443
|
private readonly i18n;
|
|
@@ -429,9 +445,11 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
429
445
|
private actionButtonsCacheSource?;
|
|
430
446
|
private actionButtonsCacheOverrides?;
|
|
431
447
|
private formActionsClassesCacheSource?;
|
|
448
|
+
private formActionsClassesCacheNavigationOnly?;
|
|
432
449
|
private formActionsClassesCache;
|
|
433
450
|
private viewClassMapCacheSource?;
|
|
434
451
|
private viewClassMapCacheEditorialContext?;
|
|
452
|
+
private viewClassMapCacheNavigationOnly?;
|
|
435
453
|
private viewClassMapCache;
|
|
436
454
|
private visibleButtonsCacheSource;
|
|
437
455
|
private visibleButtonsCache;
|
|
@@ -445,8 +463,13 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
445
463
|
private buttonStylesCache;
|
|
446
464
|
private invalidSubmitHintCacheSignature;
|
|
447
465
|
private invalidSubmitHintCacheValue;
|
|
448
|
-
|
|
449
|
-
|
|
466
|
+
get submitErrorTitle(): string;
|
|
467
|
+
get ruleViolationTitle(): string;
|
|
468
|
+
get multiRuleViolationTitle(): string;
|
|
469
|
+
get inspectRuleLabel(): string;
|
|
470
|
+
get violationStageLabel(): string;
|
|
471
|
+
get violationSourceLabel(): string;
|
|
472
|
+
get violationLineageLabel(): string;
|
|
450
473
|
/** Configuration object describing form action buttons */
|
|
451
474
|
actions?: FormConfig['actions'];
|
|
452
475
|
/** Whether the actions are rendered inside an editorial visual context */
|
|
@@ -457,6 +480,10 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
457
480
|
formIsValid: boolean;
|
|
458
481
|
/** Optional error message displayed above the actions */
|
|
459
482
|
submitError?: string | null;
|
|
483
|
+
/** Structured rule-violation diagnostics (`422` / `409`) for explainable X-Ray display */
|
|
484
|
+
ruleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
485
|
+
/** Whether the contextual Decision Inspector drawer can be opened for the current violation */
|
|
486
|
+
canInspectDecision: boolean;
|
|
460
487
|
/** Visible required fields that currently block submit */
|
|
461
488
|
invalidRequiredFieldLabels: string[];
|
|
462
489
|
/** Suppresses invalid-form copy while a host runtime is still hydrating data. */
|
|
@@ -465,8 +492,16 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
465
492
|
formId?: string;
|
|
466
493
|
/** Overrides coming from runtime rules */
|
|
467
494
|
actionOverrides?: Record<string, Record<string, any>>;
|
|
495
|
+
/** Optional stepper progression state when effectiveLayoutMode === 'stepper'. */
|
|
496
|
+
stepperState: PraxisFormActionsStepperState | null;
|
|
497
|
+
/** Renders only stepper progression controls without mutation buttons or alerts (read/presentation modes). */
|
|
498
|
+
navigationOnly: boolean;
|
|
468
499
|
/** Emitted whenever a form action button is triggered */
|
|
469
500
|
action: EventEmitter<PraxisFormActionEvent>;
|
|
501
|
+
/** Emitted when the user requests contextual inspection of an applied business rule */
|
|
502
|
+
inspectDecision: EventEmitter<PraxisRuleViolationDiagnostic | undefined>;
|
|
503
|
+
/** Emitted when user navigates stepper actions ('prev' | 'next') inside the unified bar. */
|
|
504
|
+
stepAction: EventEmitter<"next" | "prev">;
|
|
470
505
|
private shortcutDisposers;
|
|
471
506
|
constructor(shortcuts: KeyboardShortcutService);
|
|
472
507
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -479,6 +514,8 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
479
514
|
};
|
|
480
515
|
getMatColor(btn: FormActionButton | undefined): 'primary' | 'accent' | 'warn' | undefined;
|
|
481
516
|
getActionButtons(): FormActionButton[];
|
|
517
|
+
private actionButtonsCacheNonFinalStepper;
|
|
518
|
+
private actionButtonsCacheNavigationOnly;
|
|
482
519
|
private computeActionButtons;
|
|
483
520
|
private refreshActionButtons;
|
|
484
521
|
getVisibleButtons(): FormActionButton[];
|
|
@@ -492,14 +529,67 @@ declare class PraxisFormActionsComponent implements OnChanges, OnDestroy {
|
|
|
492
529
|
};
|
|
493
530
|
getButtonStyles(button: FormActionButton): Record<string, any> | null;
|
|
494
531
|
isActionButtonDisabled(button: FormActionButton): boolean;
|
|
532
|
+
isStepperActive(): boolean;
|
|
533
|
+
isNonFinalStepperStep(): boolean;
|
|
534
|
+
shouldRenderStepperNextButton(): boolean;
|
|
535
|
+
getStepperPreviousLabel(): string;
|
|
536
|
+
getStepperNextLabel(): string;
|
|
537
|
+
getStepperProgressLabel(): string;
|
|
538
|
+
onStepAction(direction: 'prev' | 'next'): void;
|
|
495
539
|
shouldShowInvalidSubmitHint(): boolean;
|
|
540
|
+
getPrimaryRuleViolation(): PraxisRuleViolationDiagnostic | undefined;
|
|
541
|
+
getAdditionalRuleViolations(): readonly PraxisRuleViolationDiagnostic[];
|
|
542
|
+
hasMultipleRuleViolations(): boolean;
|
|
543
|
+
hasRuleViolationProvenance(target?: PraxisRuleViolationDiagnostic | undefined): boolean;
|
|
544
|
+
formatRuleStage(stage: string): string;
|
|
545
|
+
formatRuleSource(source: string): string;
|
|
546
|
+
onInspectDecisionClick(event: Event, violation?: PraxisRuleViolationDiagnostic): void;
|
|
496
547
|
getInvalidSubmitHint(): string;
|
|
497
548
|
private applyOverrides;
|
|
498
549
|
private registerActionShortcuts;
|
|
499
550
|
private resolveButtonActionId;
|
|
500
551
|
private isSecondaryButton;
|
|
501
552
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisFormActionsComponent, never>;
|
|
502
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFormActionsComponent, "praxis-form-actions", never, { "actions": { "alias": "actions"; "required": false; }; "editorialVisualContext": { "alias": "editorialVisualContext"; "required": false; }; "isSubmitting": { "alias": "isSubmitting"; "required": false; }; "formIsValid": { "alias": "formIsValid"; "required": false; }; "submitError": { "alias": "submitError"; "required": false; }; "invalidRequiredFieldLabels": { "alias": "invalidRequiredFieldLabels"; "required": false; }; "suppressInvalidSubmitHint": { "alias": "suppressInvalidSubmitHint"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "actionOverrides": { "alias": "actionOverrides"; "required": false; }; }, { "action": "action"; }, never, never, true, never>;
|
|
553
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFormActionsComponent, "praxis-form-actions", never, { "actions": { "alias": "actions"; "required": false; }; "editorialVisualContext": { "alias": "editorialVisualContext"; "required": false; }; "isSubmitting": { "alias": "isSubmitting"; "required": false; }; "formIsValid": { "alias": "formIsValid"; "required": false; }; "submitError": { "alias": "submitError"; "required": false; }; "ruleViolations": { "alias": "ruleViolations"; "required": false; }; "canInspectDecision": { "alias": "canInspectDecision"; "required": false; }; "invalidRequiredFieldLabels": { "alias": "invalidRequiredFieldLabels"; "required": false; }; "suppressInvalidSubmitHint": { "alias": "suppressInvalidSubmitHint"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "actionOverrides": { "alias": "actionOverrides"; "required": false; }; "stepperState": { "alias": "stepperState"; "required": false; }; "navigationOnly": { "alias": "navigationOnly"; "required": false; }; }, { "action": "action"; "inspectDecision": "inspectDecision"; "stepAction": "stepAction"; }, never, never, true, never>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
type DynamicFormStepVisualState = 'active' | 'completed' | 'error' | 'pending' | 'locked';
|
|
557
|
+
interface DynamicFormResolvedStep {
|
|
558
|
+
index: number;
|
|
559
|
+
id: string;
|
|
560
|
+
label: string;
|
|
561
|
+
sectionIds: string[];
|
|
562
|
+
icon?: string;
|
|
563
|
+
description?: string;
|
|
564
|
+
badge?: string | number;
|
|
565
|
+
disabled?: boolean;
|
|
566
|
+
optional?: boolean;
|
|
567
|
+
state: DynamicFormStepVisualState;
|
|
568
|
+
errorCount: number;
|
|
569
|
+
completed: boolean;
|
|
570
|
+
navigable: boolean;
|
|
571
|
+
locked: boolean;
|
|
572
|
+
}
|
|
573
|
+
interface DynamicFormStepperSnapshot {
|
|
574
|
+
steps: DynamicFormResolvedStep[];
|
|
575
|
+
activeStepIndex: number;
|
|
576
|
+
activeStepId: string | null;
|
|
577
|
+
totalSteps: number;
|
|
578
|
+
canGoPrevious: boolean;
|
|
579
|
+
canGoNext: boolean;
|
|
580
|
+
isFirstStep: boolean;
|
|
581
|
+
isLastStep: boolean;
|
|
582
|
+
pendingTransition: boolean;
|
|
583
|
+
announcement: string;
|
|
584
|
+
announcementTone: 'polite' | 'assertive';
|
|
585
|
+
}
|
|
586
|
+
type DynamicFormStepTransitionReason = 'committed' | 'noop' | 'disabled' | 'out-of-range' | 'validation-failed' | 'determination-unsatisfied' | 'cancelled' | 'destroyed';
|
|
587
|
+
interface DynamicFormStepTransitionResult {
|
|
588
|
+
transitioned: boolean;
|
|
589
|
+
reason: DynamicFormStepTransitionReason;
|
|
590
|
+
stepIndex?: number;
|
|
591
|
+
stepId?: string;
|
|
592
|
+
blockedStepIndex?: number;
|
|
503
593
|
}
|
|
504
594
|
|
|
505
595
|
/**
|
|
@@ -514,6 +604,14 @@ interface FormAiHost {
|
|
|
514
604
|
readonlyModeGlobal?: boolean | null;
|
|
515
605
|
effectiveReadonly?: boolean;
|
|
516
606
|
applyConfigFromAdapter(config: FormConfig): void;
|
|
607
|
+
getRuntimeValueTargetIdentity?(): PraxisRuntimeFormValueTargetIdentity;
|
|
608
|
+
getRuntimeValueEligibility?(): PraxisRuntimeFormValueEligibility;
|
|
609
|
+
previewRuntimeValues?(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
610
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
611
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
612
|
+
}): PraxisRuntimeFormValuePreviewResult;
|
|
613
|
+
applyRuntimeValues?(request: PraxisRuntimeFormValueApplyRequest): Promise<PraxisRuntimeFormValueApplyReceipt> | PraxisRuntimeFormValueApplyReceipt;
|
|
614
|
+
undoRuntimeValues?(receiptId?: string): Promise<PraxisRuntimeFormValueUndoReceipt> | PraxisRuntimeFormValueUndoReceipt;
|
|
517
615
|
}
|
|
518
616
|
|
|
519
617
|
declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
@@ -529,6 +627,14 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
529
627
|
getDataProfile(): Record<string, any>;
|
|
530
628
|
getSchemaFields(): Record<string, any>[];
|
|
531
629
|
getAuthoringContext(): Record<string, any>;
|
|
630
|
+
getRuntimeValueTargetIdentity(): PraxisRuntimeFormValueTargetIdentity | null;
|
|
631
|
+
getRuntimeValueEligibility(): PraxisRuntimeFormValueEligibility | null;
|
|
632
|
+
previewRuntimeValues(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
633
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
634
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
635
|
+
}): PraxisRuntimeFormValuePreviewResult | null;
|
|
636
|
+
applyRuntimeValues(request: PraxisRuntimeFormValueApplyRequest): Promise<PraxisRuntimeFormValueApplyReceipt | null>;
|
|
637
|
+
undoRuntimeValues(receiptId?: string): Promise<PraxisRuntimeFormValueUndoReceipt | null>;
|
|
532
638
|
compileAiResponse(response: Record<string, unknown>): AiResponseCompileResult | null;
|
|
533
639
|
createSnapshot(): FormConfig;
|
|
534
640
|
restoreSnapshot(snapshot: FormConfig): Promise<void>;
|
|
@@ -539,6 +645,8 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
539
645
|
private extractIncomingRules;
|
|
540
646
|
private extractComponentEditOperationPatch;
|
|
541
647
|
private applyComponentEditOperation;
|
|
648
|
+
private applyLayoutModeSet;
|
|
649
|
+
private applyBehaviorDraftPersistenceSet;
|
|
542
650
|
private applyLocalFieldAdd;
|
|
543
651
|
private applyFieldMetadataPatch;
|
|
544
652
|
private appendFieldToLayout;
|
|
@@ -576,6 +684,8 @@ interface EditorDiagnostic {
|
|
|
576
684
|
|
|
577
685
|
interface DynamicFormBindings {
|
|
578
686
|
mode?: DynamicFormMode;
|
|
687
|
+
/** Controls whether saved layout changes apply to all CRUD modes ('shared') or only the active mode ('mode-only'). */
|
|
688
|
+
layoutScope?: DynamicFormLayoutScope;
|
|
579
689
|
/** Opt-in view placeholder; null explicitly disables it. */
|
|
580
690
|
emptyState?: PraxisDynamicFormEmptyState | null;
|
|
581
691
|
/** true: presentation in view; false: fields; null/absent: inherit layout policy. */
|
|
@@ -589,7 +699,7 @@ interface DynamicFormSchemaPrefsSnapshot {
|
|
|
589
699
|
}
|
|
590
700
|
interface DynamicFormContextSnapshot {
|
|
591
701
|
backConfig?: BackConfig;
|
|
592
|
-
presentation?: DynamicFormPresentationSnapshot;
|
|
702
|
+
presentation?: DynamicFormPresentationSnapshot | null;
|
|
593
703
|
schemaPrefs?: DynamicFormSchemaPrefsSnapshot;
|
|
594
704
|
}
|
|
595
705
|
interface DynamicFormAuthoringDocument extends EditorDocument<FormConfig, DynamicFormBindings> {
|
|
@@ -648,6 +758,7 @@ interface DynamicFormApplyPlan {
|
|
|
648
758
|
};
|
|
649
759
|
diff?: {
|
|
650
760
|
modeChanged?: boolean;
|
|
761
|
+
layoutScopeChanged?: boolean;
|
|
651
762
|
presentationChanged?: boolean;
|
|
652
763
|
schemaPrefsChanged?: boolean;
|
|
653
764
|
backConfigChanged?: boolean;
|
|
@@ -730,7 +841,7 @@ interface FormColumnRichContentRenderItem {
|
|
|
730
841
|
style?: Record<string, any> | null;
|
|
731
842
|
}
|
|
732
843
|
type FormColumnRenderItem = FormColumnFieldsRenderItem | FormColumnRichContentRenderItem;
|
|
733
|
-
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
844
|
+
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy, PraxisRuntimeFormValueTargetPort {
|
|
734
845
|
private crud;
|
|
735
846
|
private http;
|
|
736
847
|
private fb;
|
|
@@ -769,6 +880,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
769
880
|
private readonly aiTurnOrchestrator;
|
|
770
881
|
private readonly jsonLogic;
|
|
771
882
|
private readonly resourceDiscovery;
|
|
883
|
+
private readonly runtimeObservationRegistry;
|
|
884
|
+
private runtimeObservationRegistration;
|
|
772
885
|
private readonly aiAssistantSessionEffect;
|
|
773
886
|
private readonly globalActions;
|
|
774
887
|
private readonly optionRegistry;
|
|
@@ -778,10 +891,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
778
891
|
private effectiveActionsCacheOverride?;
|
|
779
892
|
private invalidRequiredFieldLabelsCache;
|
|
780
893
|
private invalidRequiredFieldLabelsSignature;
|
|
894
|
+
readonly formVisualBlockSurfaceCapabilities: _praxisui_core.ClientSurfaceCapabilities;
|
|
781
895
|
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
782
896
|
resourcePath?: string;
|
|
783
897
|
resourceId?: string | number;
|
|
784
898
|
initialValue?: Record<string, unknown> | null;
|
|
899
|
+
/**
|
|
900
|
+
* Opt-in overlay for edit mode: when true, explicit `initialValue` keys are
|
|
901
|
+
* merged over the server-hydrated GET /{id} record without suppressing entity load.
|
|
902
|
+
*/
|
|
903
|
+
overlayInitialValueOnEdit: boolean;
|
|
785
904
|
/**
|
|
786
905
|
* Replaces the form with a guided empty state while a view has neither a
|
|
787
906
|
* resource id nor a local record snapshot. Create/edit forms are unaffected.
|
|
@@ -794,7 +913,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
794
913
|
*/
|
|
795
914
|
editorialContext: Record<string, unknown> | null;
|
|
796
915
|
mode: DynamicFormMode;
|
|
797
|
-
|
|
916
|
+
private effectiveConfig;
|
|
917
|
+
private configAssignment;
|
|
918
|
+
private authoredHostConfigSnapshot;
|
|
919
|
+
private hasRuntimeAuthoringEdits;
|
|
920
|
+
get config(): FormConfig;
|
|
921
|
+
set config(value: FormConfig);
|
|
922
|
+
private snapshotHostConfigInput;
|
|
798
923
|
private hostConfigInputProvided;
|
|
799
924
|
/** Optional host-level overrides for the rendered form action bar. */
|
|
800
925
|
actions?: FormConfig['actions'] | null;
|
|
@@ -803,7 +928,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
803
928
|
* 'resource' (padrão) usa o schema do recurso (/{resource}/schemas -> .../all response)
|
|
804
929
|
* 'filter' usa o schema do DTO de filtro (via /schemas/filtered no POST /filter request)
|
|
805
930
|
*/
|
|
806
|
-
schemaSource: 'resource' | 'filter';
|
|
931
|
+
schemaSource: 'resource' | 'filter' | 'action';
|
|
932
|
+
/** Canonical workflow/action identifier when bound to a command surface. */
|
|
933
|
+
actionId?: string | null;
|
|
934
|
+
/** Canonical backend operationId when bound to a command/surface endpoint. */
|
|
935
|
+
operationId?: string | null;
|
|
807
936
|
/** Canonical schema URL published by the backend surface catalog. */
|
|
808
937
|
schemaUrl?: string | null;
|
|
809
938
|
/** Canonical read URL published by backend view/read-projection surfaces. */
|
|
@@ -851,16 +980,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
851
980
|
/** Identifier for persisting layouts */
|
|
852
981
|
formId?: string;
|
|
853
982
|
componentInstanceId?: string;
|
|
854
|
-
configPersistenceStrategy: 'local-first' | 'input-first';
|
|
983
|
+
configPersistenceStrategy: 'local-first' | 'input-first' | 'volatile';
|
|
855
984
|
/** Optional layout to use instead of generated one */
|
|
856
985
|
layout?: FormLayout;
|
|
857
986
|
/**
|
|
858
|
-
* Layout mode for organizing form sections: 'vertical' (default), 'tabs' or '
|
|
987
|
+
* Layout mode for organizing form sections: 'vertical' (default), 'tabs', 'accordion' or 'stepper'.
|
|
859
988
|
* Overrides config.layout.mode when specified.
|
|
860
989
|
*/
|
|
861
990
|
layoutMode?: FormLayoutMode;
|
|
862
991
|
/**
|
|
863
|
-
* Layout configuration options for form sections (mode, tabs, defaultTabId, tabsAppearance,
|
|
992
|
+
* Layout configuration options for form sections (mode, tabs, defaultTabId, tabsAppearance,
|
|
993
|
+
* accordionMulti, hideSectionHeaderInTabs, hideSectionHeaderInStepper, etc.).
|
|
864
994
|
* Merged with and takes precedence over config.layout.
|
|
865
995
|
*/
|
|
866
996
|
formLayout?: FormLayoutOptions;
|
|
@@ -922,17 +1052,30 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
922
1052
|
isSectionEditorialCard(section?: FormSection | null): boolean;
|
|
923
1053
|
isSectionCompactPresentation(section?: FormSection | null): boolean;
|
|
924
1054
|
shouldShowContextEmptyState(): boolean;
|
|
1055
|
+
private isItemScopedActionSubmitTarget;
|
|
1056
|
+
getActionTargetRecordSummary(): {
|
|
1057
|
+
id?: string;
|
|
1058
|
+
title?: string;
|
|
1059
|
+
subtitle?: string;
|
|
1060
|
+
badges: Array<{
|
|
1061
|
+
label: string;
|
|
1062
|
+
value: string;
|
|
1063
|
+
tone: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
1064
|
+
}>;
|
|
1065
|
+
} | null;
|
|
925
1066
|
private hasResourceContext;
|
|
926
1067
|
private hasLocalRecordContext;
|
|
927
1068
|
get effectiveReadonly(): boolean;
|
|
928
1069
|
get effectiveDisabledMode(): boolean | null;
|
|
929
1070
|
get effectiveFormIsValid(): boolean;
|
|
1071
|
+
private hasBlockingClientValidationErrors;
|
|
930
1072
|
protected get configControlLabel(): string;
|
|
931
1073
|
protected get disconnectControlLabel(): string;
|
|
932
1074
|
get invalidRequiredFieldLabels(): string[];
|
|
933
1075
|
/** Value propagated to DynamicFieldLoader; null allows per-field metadata */
|
|
934
1076
|
get presentationForLoader(): boolean | null;
|
|
935
1077
|
getRenderableFieldsForLoader(fields: FieldMetadata[]): FieldMetadata[];
|
|
1078
|
+
private attachApiUrlEntryToField;
|
|
936
1079
|
private materializeFieldPresentationPolicy;
|
|
937
1080
|
private shouldMaterializeBooleanControl;
|
|
938
1081
|
private materializeFieldHelpPolicy;
|
|
@@ -978,10 +1121,25 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
978
1121
|
tabSelected: EventEmitter<FormLayoutTabItem>;
|
|
979
1122
|
/** Active tab ID when effectiveLayoutMode === 'tabs'. */
|
|
980
1123
|
activeTabId: string | null;
|
|
1124
|
+
/** Active step index (0-based) when effectiveLayoutMode === 'stepper'. */
|
|
1125
|
+
activeStepIndex: number;
|
|
1126
|
+
/** Emits the newly selected step index when navigating in stepper mode. */
|
|
1127
|
+
stepChange: EventEmitter<number>;
|
|
1128
|
+
/** Emits structured metadata-only telemetry on step transitions and error/draft recoveries. */
|
|
1129
|
+
stepTelemetry: EventEmitter<FormStepTelemetryEvent>;
|
|
1130
|
+
private readonly stepperController;
|
|
1131
|
+
private formActionsStepperStateCacheKey;
|
|
1132
|
+
private formActionsStepperStateCache;
|
|
1133
|
+
private isReconcilingStepState;
|
|
1134
|
+
private pendingActiveStepIndexInputChange;
|
|
1135
|
+
private pendingStepperErrorFocus;
|
|
981
1136
|
private reactiveDeterminationPending;
|
|
982
1137
|
isLoading: boolean;
|
|
983
1138
|
submitting: boolean;
|
|
984
1139
|
private submitPreparationInProgress;
|
|
1140
|
+
private submitLifecycleSequence;
|
|
1141
|
+
private activeSubmitLifecycle;
|
|
1142
|
+
private activeSubmitAutomatic;
|
|
985
1143
|
submitError: string | null;
|
|
986
1144
|
initializationStatus: 'idle' | 'loading' | 'success' | 'error';
|
|
987
1145
|
currentErrorMessage: string;
|
|
@@ -1016,6 +1174,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1016
1174
|
private entitySelectionCleared;
|
|
1017
1175
|
private hydratedEntityId;
|
|
1018
1176
|
private loadedEntityData;
|
|
1177
|
+
private loadedResourceRevision;
|
|
1178
|
+
private resourceRevisionInvalidated;
|
|
1179
|
+
private entityReadAttempt;
|
|
1019
1180
|
protected entityHydrationPending: boolean;
|
|
1020
1181
|
protected entityReadFailed: boolean;
|
|
1021
1182
|
protected entityReadText(key: 'loading' | 'error' | 'retry' | 'region' | 'success'): string;
|
|
@@ -1028,20 +1189,37 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1028
1189
|
private assertSchemaInitializationCurrent;
|
|
1029
1190
|
private isSchemaTransportInterruption;
|
|
1030
1191
|
private schemaCache;
|
|
1192
|
+
private schemaValidationFailed;
|
|
1193
|
+
private initialValueContextInvalidated;
|
|
1031
1194
|
private lastSchemaMeta?;
|
|
1032
1195
|
private readonly schemaMetaPersistenceQueues;
|
|
1196
|
+
private persistenceContextEpoch;
|
|
1197
|
+
private persistenceContextDestroyed;
|
|
1198
|
+
/** Fence delayed work; requests already sent are not retroactively canceled. */
|
|
1199
|
+
private persistenceGuard;
|
|
1033
1200
|
private readonly formConfigPersistenceQueues;
|
|
1034
1201
|
private readonly formConfigPersistenceGenerations;
|
|
1035
1202
|
private readonly formConfigConflictBlockThrough;
|
|
1036
1203
|
private schemaRootHooks?;
|
|
1204
|
+
private schemaRootFormLayout?;
|
|
1037
1205
|
private schemaRootReactiveDeterminations;
|
|
1038
1206
|
private schemaRootOperationId;
|
|
1039
1207
|
private destroy$;
|
|
1040
1208
|
private readonly entityReadCancel$;
|
|
1041
1209
|
private isDestroyed;
|
|
1042
1210
|
private formValueChangesSubscription;
|
|
1211
|
+
private formStatusChangesSubscription;
|
|
1212
|
+
private readonly runtimeValueJournal;
|
|
1213
|
+
private runtimeValueRevision;
|
|
1214
|
+
private runtimeValueTrackedForm;
|
|
1215
|
+
private readonly runtimeValueTrackedControls;
|
|
1216
|
+
private suppressCommandRuleSideEffectsDepth;
|
|
1217
|
+
private pendingSuppressedCommandEvaluation;
|
|
1218
|
+
private consumingSuppressedCommandEvaluation;
|
|
1043
1219
|
private readonly submitFieldErrorSubscriptions;
|
|
1044
1220
|
private activeSubmitErrorDetails;
|
|
1221
|
+
activeRuleViolations: readonly PraxisRuleViolationDiagnostic[];
|
|
1222
|
+
private readonly decisionInspector;
|
|
1045
1223
|
private reactiveDeterminationSubscription;
|
|
1046
1224
|
private reactiveDeterminationScheduledBuildId;
|
|
1047
1225
|
private dependencyPolicySubscription;
|
|
@@ -1053,6 +1231,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1053
1231
|
private lastCorrelationId?;
|
|
1054
1232
|
private currentDnD?;
|
|
1055
1233
|
private columnFieldsCache;
|
|
1234
|
+
private readonly renderableFieldsCache;
|
|
1056
1235
|
private rowClassesCache;
|
|
1057
1236
|
private rowStylesCache;
|
|
1058
1237
|
private sectionClassesCache;
|
|
@@ -1062,6 +1241,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1062
1241
|
private lastFieldPatchSig;
|
|
1063
1242
|
private lastFieldPatchAt;
|
|
1064
1243
|
schemaOutdated: boolean;
|
|
1244
|
+
sessionDraftRestored: boolean;
|
|
1245
|
+
stepperReviewShowOnlyDirty: boolean;
|
|
1246
|
+
private stepperReviewTotalDirtyCountValue;
|
|
1247
|
+
private stepperReviewChaptersCacheKey;
|
|
1248
|
+
private stepperReviewChaptersCache;
|
|
1065
1249
|
private resolvedPrefs;
|
|
1066
1250
|
private editorialWidgetContextCache;
|
|
1067
1251
|
private editorialWidgetContextDeps;
|
|
@@ -1118,6 +1302,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1118
1302
|
labelAlign: 'start' | 'center' | 'end';
|
|
1119
1303
|
valueAlign: 'start' | 'center' | 'end';
|
|
1120
1304
|
};
|
|
1305
|
+
private hasExplicitPresLabelSize;
|
|
1306
|
+
private hasExplicitPresValueSize;
|
|
1307
|
+
private hasExplicitPresDensity;
|
|
1121
1308
|
hoveredElement: CanvasElement | null;
|
|
1122
1309
|
selectedElement: CanvasElement | null;
|
|
1123
1310
|
toolbarTransform: string;
|
|
@@ -1136,6 +1323,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1136
1323
|
private resolveSubmitOperation;
|
|
1137
1324
|
private buildSubmitRequest;
|
|
1138
1325
|
private resolveSubmitResourceVersion;
|
|
1326
|
+
/** Identity and server context are captured with the representation, never reconstructed at submit by GET. */
|
|
1327
|
+
private resourceRevisionBinding;
|
|
1328
|
+
private usesAutomaticItemRevision;
|
|
1329
|
+
private isResourceRevisionCurrent;
|
|
1330
|
+
private invalidateAutomaticSubmitUi;
|
|
1331
|
+
private resourceRevisionNeedsReload;
|
|
1332
|
+
private resourceRevisionReloadError;
|
|
1333
|
+
private captureSavedResourceRevision;
|
|
1334
|
+
private rejectResourceRevision;
|
|
1335
|
+
private normalizeResourceVersionToken;
|
|
1336
|
+
private extractResourceVersionCandidate;
|
|
1139
1337
|
private normalizeSubmitMethod;
|
|
1140
1338
|
private formatResourceVersion;
|
|
1141
1339
|
private resolveSubmitHref;
|
|
@@ -1162,10 +1360,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1162
1360
|
private initializeStandaloneConfig;
|
|
1163
1361
|
private initializeDisconnectedEmptyState;
|
|
1164
1362
|
private reloadForModeChange;
|
|
1363
|
+
private resourceRevisionContextScope;
|
|
1364
|
+
private subscribeToRuntimeContextChanges;
|
|
1165
1365
|
ngOnInit(): void;
|
|
1166
1366
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1167
1367
|
private blurAllInputs;
|
|
1168
1368
|
private initializeForm;
|
|
1369
|
+
private hasInitializationError;
|
|
1169
1370
|
private handleInitializationError;
|
|
1170
1371
|
private loadConfigFailOpen;
|
|
1171
1372
|
private resolveFieldLabel;
|
|
@@ -1174,12 +1375,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1174
1375
|
private createDefaultConfig;
|
|
1175
1376
|
private createConfigFromHostConfig;
|
|
1176
1377
|
private shouldUseSchemaLayoutPolicy;
|
|
1378
|
+
private hasSchemaRootFormLayout;
|
|
1379
|
+
private normalizeSchemaLayoutModeValue;
|
|
1380
|
+
private buildSchemaRootLayoutDefaults;
|
|
1177
1381
|
private layoutPolicyRequestsPresentation;
|
|
1178
1382
|
private shouldPersistGeneratedConfig;
|
|
1179
1383
|
private createSchemaMaterializedConfig;
|
|
1180
1384
|
private reconcileLoadedConfigWithServerSchema;
|
|
1181
1385
|
private hostConfigHasAuthoredLocalFieldsNotInLocalConfig;
|
|
1182
1386
|
private syncWithServer;
|
|
1387
|
+
private isActionCommandWithoutExplicitReadUrl;
|
|
1183
1388
|
private loadEntity;
|
|
1184
1389
|
private hydrateEntityFromInitialValue;
|
|
1185
1390
|
private flushEntityHydrationState;
|
|
@@ -1190,7 +1395,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1190
1395
|
/** True while at least one backend Reactive Determination is unsettled. */
|
|
1191
1396
|
hasPendingReactiveDeterminations(): boolean;
|
|
1192
1397
|
/** True when the latest settled generation failed or could not derive a current draft. */
|
|
1193
|
-
hasUnsatisfiedReactiveDeterminations(): boolean;
|
|
1398
|
+
hasUnsatisfiedReactiveDeterminations(unvisitedFieldNames?: readonly string[]): boolean;
|
|
1194
1399
|
/** Resolves true only when the latest generations settled successfully/current. */
|
|
1195
1400
|
waitForReactiveDeterminations(timeoutMs?: number): Promise<boolean>;
|
|
1196
1401
|
private setReactiveDeterminationPending;
|
|
@@ -1216,12 +1421,25 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1216
1421
|
private prepareCurrentSubmitPayload;
|
|
1217
1422
|
private emitPayloadPreview;
|
|
1218
1423
|
private resetToHydratedSnapshot;
|
|
1424
|
+
private resetStepperStateOnFormReset;
|
|
1425
|
+
private isSessionDraftPersistenceEnabled;
|
|
1426
|
+
getSessionDraftStorageKey(): string | null;
|
|
1427
|
+
flushSessionDraft(): void;
|
|
1428
|
+
setBaselineSnapshot(snapshot: Record<string, unknown> | null): void;
|
|
1429
|
+
private buildSessionDraftStorageKey;
|
|
1430
|
+
private persistSessionDraftIfNeeded;
|
|
1431
|
+
restoreSessionDraftIfNeeded(): void;
|
|
1432
|
+
clearSessionDraft(): void;
|
|
1433
|
+
discardRestoredSessionDraft(): void;
|
|
1219
1434
|
private collectDirtyFieldNames;
|
|
1435
|
+
private collectTouchedFieldNames;
|
|
1220
1436
|
private buildCurrentFormRuntimeContext;
|
|
1221
1437
|
private buildRestoreTargetContext;
|
|
1222
1438
|
private isCompatibleRuntimeStateContext;
|
|
1223
1439
|
private restoreFormRuntimeState;
|
|
1224
1440
|
private getNormalizedInitialValue;
|
|
1441
|
+
private getNormalizedEditOverlayValue;
|
|
1442
|
+
private markEditOverlayControlsDirty;
|
|
1225
1443
|
/**
|
|
1226
1444
|
* A local composition owns the complete snapshot supplied through initialValue.
|
|
1227
1445
|
* Once a readUrl/resourcePath can hydrate an edit/view entity, the backend remains
|
|
@@ -1229,6 +1447,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1229
1447
|
*/
|
|
1230
1448
|
private usesInitialValueAsAuthoritativeSnapshot;
|
|
1231
1449
|
private normalizeFormPatchValue;
|
|
1450
|
+
private coerceRecordDateControls;
|
|
1451
|
+
private applyFormSnapshotValue;
|
|
1452
|
+
private releaseSubmitFieldErrorSubscriptionsUnder;
|
|
1232
1453
|
private isDateControlMetadata;
|
|
1233
1454
|
private coerceDateControlValue;
|
|
1234
1455
|
/**
|
|
@@ -1255,6 +1476,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1255
1476
|
private getActiveFormRules;
|
|
1256
1477
|
private refreshMaterializedFormRules;
|
|
1257
1478
|
private resolveDomainRulesOptions;
|
|
1479
|
+
private evaluateFieldConditionalReadOnly;
|
|
1480
|
+
private evaluateFieldConditionalDisplay;
|
|
1481
|
+
private evaluateFieldConditionExpression;
|
|
1258
1482
|
private evaluateAndApplyRules;
|
|
1259
1483
|
private applyRuleComputedFieldValues;
|
|
1260
1484
|
private evaluateAndDispatchFormCommandRules;
|
|
@@ -1265,10 +1489,17 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1265
1489
|
private areRuleValuesEqual;
|
|
1266
1490
|
private buildRuleApplicationTargetIndex;
|
|
1267
1491
|
private setRuleApplicationDiagnostics;
|
|
1492
|
+
private isUneditedSchemaMaterializedConfig;
|
|
1493
|
+
private getAuthoredConfigLayout;
|
|
1494
|
+
get effectiveStepperInReadMode(): FormStepperReadMode;
|
|
1268
1495
|
get effectiveLayoutMode(): FormLayoutMode;
|
|
1496
|
+
isStepperReadNavigationOnly(): boolean;
|
|
1497
|
+
shouldRenderFormActionsBar(placement: 'top' | 'insideLastSection' | 'afterSections'): boolean;
|
|
1269
1498
|
get effectiveTabsAppearance(): FormLayoutTabsAppearance;
|
|
1270
1499
|
get effectiveAccordionMulti(): boolean;
|
|
1271
1500
|
get effectiveHideSectionHeaderInTabs(): boolean;
|
|
1501
|
+
get effectiveHideSectionHeaderInStepper(): boolean;
|
|
1502
|
+
get effectiveStepperReviewStep(): boolean;
|
|
1272
1503
|
get effectiveTabs(): FormLayoutTabItem[];
|
|
1273
1504
|
ensureActiveTabValid(): void;
|
|
1274
1505
|
selectTab(tabId: string): void;
|
|
@@ -1276,7 +1507,58 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1276
1507
|
getTabErrorCount(tab: FormLayoutTabItem): number;
|
|
1277
1508
|
getTabAriaControls(tab: FormLayoutTabItem): string;
|
|
1278
1509
|
getTabIdForSection(section?: FormSection): string | null;
|
|
1510
|
+
protected formTx(key: string, params?: Record<string, string | number | boolean | null | undefined>, fallback?: string): string;
|
|
1511
|
+
isSectionOptional(section?: FormSection): boolean;
|
|
1512
|
+
get effectiveSteps(): FormLayoutTabItem[];
|
|
1513
|
+
private appendSyntheticStepperReviewStepIfNeeded;
|
|
1514
|
+
isStepperReviewStepActive(): boolean;
|
|
1515
|
+
get stepperReviewTotalDirtyCount(): number;
|
|
1516
|
+
toggleStepperReviewShowOnlyDirty(): void;
|
|
1517
|
+
private isControlSubtreeDirty;
|
|
1518
|
+
private areStepperReviewRawValuesEqual;
|
|
1519
|
+
get stepperReviewChapters(): Array<{
|
|
1520
|
+
stepIndex: number;
|
|
1521
|
+
stepId: string;
|
|
1522
|
+
label: string;
|
|
1523
|
+
optional: boolean;
|
|
1524
|
+
dirtyCount: number;
|
|
1525
|
+
requiredTotalCount: number;
|
|
1526
|
+
requiredSatisfiedCount: number;
|
|
1527
|
+
items: Array<{
|
|
1528
|
+
fieldName: string;
|
|
1529
|
+
label: string;
|
|
1530
|
+
displayValue: string;
|
|
1531
|
+
dirty: boolean;
|
|
1532
|
+
previousDisplayValue?: string | null;
|
|
1533
|
+
collectionDiffs?: Array<{
|
|
1534
|
+
kind: 'added' | 'modified' | 'removed' | 'unchanged';
|
|
1535
|
+
currentSummary?: string;
|
|
1536
|
+
previousSummary?: string;
|
|
1537
|
+
}>;
|
|
1538
|
+
}>;
|
|
1539
|
+
}>;
|
|
1540
|
+
private formatStepperReviewFieldValue;
|
|
1541
|
+
private formatStepperReviewCollectionItem;
|
|
1542
|
+
private computeStepperReviewCollectionDiffs;
|
|
1543
|
+
private hasMultipleStepperSections;
|
|
1544
|
+
isStepperNavigationActive(): boolean;
|
|
1545
|
+
get stepperSnapshot(): DynamicFormStepperSnapshot;
|
|
1546
|
+
get formActionsStepperState(): PraxisFormActionsStepperState | null;
|
|
1547
|
+
get normalizedActiveStepIndex(): number;
|
|
1548
|
+
ensureActiveStepValid(): void;
|
|
1549
|
+
private emitStepTelemetry;
|
|
1550
|
+
private focusActiveStepperRegionAfterTransition;
|
|
1551
|
+
selectStep(index: number, reason?: FormStepTelemetryReason): Promise<boolean>;
|
|
1552
|
+
editStepperReviewField(stepIndex: number, fieldName: string): Promise<boolean>;
|
|
1553
|
+
nextStep(): Promise<boolean>;
|
|
1554
|
+
previousStep(): Promise<boolean>;
|
|
1555
|
+
onStepperBarAction(direction: 'prev' | 'next'): void;
|
|
1556
|
+
isSectionInActiveStep(section?: FormSection): boolean;
|
|
1557
|
+
getStepErrorCount(step: FormLayoutTabItem): number;
|
|
1279
1558
|
shouldHideSectionHeader(section?: FormSection): boolean;
|
|
1559
|
+
getPrintSectionTitle(section?: FormSection): string | null;
|
|
1560
|
+
private createStepperContext;
|
|
1561
|
+
private focusFirstInvalidInStep;
|
|
1280
1562
|
isSectionCollapsed(section?: FormSection): boolean;
|
|
1281
1563
|
isSectionCollapsible(section?: FormSection): boolean;
|
|
1282
1564
|
private getSectionRuleProps;
|
|
@@ -1285,6 +1567,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1285
1567
|
private hasVisibleSectionBody;
|
|
1286
1568
|
private shouldRenderInsideLastSectionContent;
|
|
1287
1569
|
private resolveInsideLastSectionHost;
|
|
1570
|
+
get actionTargetSelectedRecordLabel(): string;
|
|
1288
1571
|
getSectionTitle(section: FormSection): string | undefined;
|
|
1289
1572
|
getSectionDescription(section: FormSection): string | undefined;
|
|
1290
1573
|
getSectionAppearance(section: FormSection): 'card' | 'plain' | 'step' | undefined;
|
|
@@ -1389,7 +1672,12 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1389
1672
|
private clearSubmitFieldErrors;
|
|
1390
1673
|
private clearSubmitFieldError;
|
|
1391
1674
|
private resetSubmitErrorState;
|
|
1675
|
+
canInspectSubmitRuleViolations(): boolean;
|
|
1676
|
+
openSubmitDecisionInspector(violation?: PraxisRuleViolationDiagnostic): void;
|
|
1392
1677
|
private resolveSubmitErrorMessage;
|
|
1678
|
+
private isGenericEnvelopeErrorMessage;
|
|
1679
|
+
private formatStructuredSubmitErrorMessage;
|
|
1680
|
+
private resolveSubmitErrorControl;
|
|
1393
1681
|
private normalizeSubmitErrorTarget;
|
|
1394
1682
|
private navigateAfterSave;
|
|
1395
1683
|
private shouldConfirmCancelOnDirty;
|
|
@@ -1408,7 +1696,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1408
1696
|
closeAiAssistant(): void;
|
|
1409
1697
|
onAiAssistantPromptChange(prompt: string): void;
|
|
1410
1698
|
onAiAssistantSubmit(prompt: string): void;
|
|
1411
|
-
onAiAssistantApply(): void;
|
|
1699
|
+
onAiAssistantApply(contextHints?: Record<string, unknown> | void): void;
|
|
1412
1700
|
onAiAssistantRetry(): void;
|
|
1413
1701
|
onAiAssistantCancel(): void;
|
|
1414
1702
|
onAiAssistantQuickReply(reply: PraxisAssistantShellQuickReply): void;
|
|
@@ -1419,6 +1707,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1419
1707
|
private initializeAiAssistantController;
|
|
1420
1708
|
private buildAiAssistantContextItems;
|
|
1421
1709
|
private buildAiAssistantContextSnapshot;
|
|
1710
|
+
buildRuntimeComponentObservation(): PraxisRuntimeComponentObservationEnvelope;
|
|
1711
|
+
private registerRuntimeComponentObservationProvider;
|
|
1422
1712
|
private syncAiAssistantSession;
|
|
1423
1713
|
private hasAiAssistantSessionState;
|
|
1424
1714
|
private resolveAiAssistantSessionId;
|
|
@@ -1572,6 +1862,11 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1572
1862
|
private captureCurrentPresentationSnapshot;
|
|
1573
1863
|
private captureCurrentSchemaPrefsSnapshot;
|
|
1574
1864
|
private executeDynamicFormEditorApplyPlan;
|
|
1865
|
+
private buildCrossModeMetadataSeed;
|
|
1866
|
+
private resolveSiblingModeComponentKeyIds;
|
|
1867
|
+
private resolveSiblingModeFormConfigKeys;
|
|
1868
|
+
private resolveSiblingModePresentationKeys;
|
|
1869
|
+
private persistSharedFormConfigAcrossModes;
|
|
1575
1870
|
private attachRuntimeMetadataToDynamicFormConfig;
|
|
1576
1871
|
private emitConfigPatchChange;
|
|
1577
1872
|
private cloneFormConfigForPatch;
|
|
@@ -1585,6 +1880,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1585
1880
|
showDetailedError(): void;
|
|
1586
1881
|
private tryBuildExplicitSchemaContext;
|
|
1587
1882
|
private buildSchemaContext;
|
|
1883
|
+
private requiresConfirmedSchemaContext;
|
|
1884
|
+
private schemaRepresentationContext;
|
|
1588
1885
|
private getSchemaWithCache;
|
|
1589
1886
|
/**
|
|
1590
1887
|
* Invalida o cache de schema compilado para a instância atual e força
|
|
@@ -1598,8 +1895,26 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1598
1895
|
private logRowGapsSnapshot;
|
|
1599
1896
|
private applyPresentationVars;
|
|
1600
1897
|
private applyPresentationConfig;
|
|
1898
|
+
get effectivePresentationDensity(): 'comfortable' | 'cozy' | 'compact';
|
|
1899
|
+
getExplicitPresentationLabelSize(): string | null;
|
|
1900
|
+
getExplicitPresentationValueSize(): string | null;
|
|
1901
|
+
getRuntimeValueTargetIdentity(): PraxisRuntimeFormValueTargetIdentity;
|
|
1902
|
+
getRuntimeValueEligibility(): PraxisRuntimeFormValueEligibility;
|
|
1903
|
+
previewRuntimeValues(proposal: PraxisRuntimeFormValueProposal, options?: {
|
|
1904
|
+
readonly selectedFieldPaths?: readonly string[];
|
|
1905
|
+
readonly applyMode?: PraxisRuntimeFormValueApplyMode;
|
|
1906
|
+
}): PraxisRuntimeFormValuePreviewResult;
|
|
1907
|
+
applyRuntimeValues(request: PraxisRuntimeFormValueApplyRequest): PraxisRuntimeFormValueApplyReceipt;
|
|
1908
|
+
undoRuntimeValues(receiptId?: string): PraxisRuntimeFormValueUndoReceipt;
|
|
1909
|
+
private clearRuntimeValueControlSubscriptions;
|
|
1910
|
+
private collectLeafFormControls;
|
|
1911
|
+
private ensureRuntimeValueTracking;
|
|
1912
|
+
private withSuppressedCommandSideEffects;
|
|
1913
|
+
private createRuntimeFormHostCallbacks;
|
|
1914
|
+
private isConfiguredReactiveDeterminationOutputField;
|
|
1915
|
+
private collectRuntimeValueFieldClassification;
|
|
1601
1916
|
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>;
|
|
1917
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; "overlayInitialValueOnEdit": { "alias": "overlayInitialValueOnEdit"; "required": false; }; "emptyState": { "alias": "emptyState"; "required": false; }; "editorialContext": { "alias": "editorialContext"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "schemaSource": { "alias": "schemaSource"; "required": false; }; "actionId": { "alias": "actionId"; "required": false; }; "operationId": { "alias": "operationId"; "required": false; }; "schemaUrl": { "alias": "schemaUrl"; "required": false; }; "readUrl": { "alias": "readUrl"; "required": false; }; "submitUrl": { "alias": "submitUrl"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; "submitIdempotencyKey": { "alias": "submitIdempotencyKey"; "required": false; }; "submitCorrelationId": { "alias": "submitCorrelationId"; "required": false; }; "submitResourceVersion": { "alias": "submitResourceVersion"; "required": false; }; "submitResourceVersionTargetResourceKey": { "alias": "submitResourceVersionTargetResourceKey"; "required": false; }; "submitResourceVersionTargetIdField": { "alias": "submitResourceVersionTargetIdField"; "required": false; }; "responseSchemaUrl": { "alias": "responseSchemaUrl"; "required": false; }; "apiEndpointKey": { "alias": "apiEndpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showAiAssistant": { "alias": "showAiAssistant"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "layoutMode": { "alias": "layoutMode"; "required": false; }; "formLayout": { "alias": "formLayout"; "required": false; }; "generatedLayoutPreset": { "alias": "generatedLayoutPreset"; "required": false; }; "layoutPolicy": { "alias": "layoutPolicy"; "required": false; }; "backConfig": { "alias": "backConfig"; "required": false; }; "hooks": { "alias": "hooks"; "required": false; }; "removeEmptyContainersOnSave": { "alias": "removeEmptyContainersOnSave"; "required": false; }; "reactiveValidation": { "alias": "reactiveValidation"; "required": false; }; "reactiveValidationDebounceMs": { "alias": "reactiveValidationDebounceMs"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "readonlyModeGlobal": { "alias": "readonlyModeGlobal"; "required": false; }; "disabledModeGlobal": { "alias": "disabledModeGlobal"; "required": false; }; "presentationModeGlobal": { "alias": "presentationModeGlobal"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "presentationPreset": { "alias": "presentationPreset"; "required": false; }; "sectionDefaultAppearance": { "alias": "sectionDefaultAppearance"; "required": false; }; "sectionDivider": { "alias": "sectionDivider"; "required": false; }; "visibleGlobal": { "alias": "visibleGlobal"; "required": false; }; "fieldIconPolicy": { "alias": "fieldIconPolicy"; "required": false; }; "domainRules": { "alias": "domainRules"; "required": false; }; "customEndpoints": { "alias": "customEndpoints"; "required": false; }; "activeStepIndex": { "alias": "activeStepIndex"; "required": false; }; }, { "formSubmit": "formSubmit"; "formCancel": "formCancel"; "formReset": "formReset"; "configChange": "configChange"; "configPatchChange": "configPatchChange"; "formReady": "formReady"; "valueChange": "valueChange"; "payloadPreviewChange": "payloadPreviewChange"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "ruleDiagnosticsChange": "ruleDiagnosticsChange"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "tabChange": "tabChange"; "tabSelected": "tabSelected"; "stepChange": "stepChange"; "stepTelemetry": "stepTelemetry"; }, never, never, true, never>;
|
|
1603
1918
|
}
|
|
1604
1919
|
|
|
1605
1920
|
declare class FormConfigService {
|
|
@@ -1783,7 +2098,9 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1783
2098
|
formId?: string;
|
|
1784
2099
|
componentKeyId?: string;
|
|
1785
2100
|
inputMode: DynamicFormMode;
|
|
2101
|
+
inputLayoutScope: DynamicFormLayoutScope;
|
|
1786
2102
|
private includeBindingsBlock;
|
|
2103
|
+
private includeLayoutScopeBinding;
|
|
1787
2104
|
private readonly editorMode;
|
|
1788
2105
|
get isPresentationMode(): boolean;
|
|
1789
2106
|
supportsPresentationSettings: boolean;
|
|
@@ -1841,7 +2158,11 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1841
2158
|
};
|
|
1842
2159
|
private destroy$;
|
|
1843
2160
|
private hasProcessedInitialRuleState;
|
|
2161
|
+
ruleConversionFailed: boolean;
|
|
2162
|
+
private readonly jsonLogic;
|
|
2163
|
+
private readonly cascadeRulesService;
|
|
1844
2164
|
private jsonEditorIsValid;
|
|
2165
|
+
private cascadeDraftIsValid;
|
|
1845
2166
|
private globalActionValidationIssues;
|
|
1846
2167
|
private readonly i18n;
|
|
1847
2168
|
readonly globalActionCatalog: GlobalActionCatalogEntry[];
|
|
@@ -1854,7 +2175,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1854
2175
|
isValid$: BehaviorSubject<boolean>;
|
|
1855
2176
|
isBusy$: BehaviorSubject<boolean>;
|
|
1856
2177
|
private lastRulesSignature;
|
|
1857
|
-
private
|
|
2178
|
+
private supersededRuleStateSignature;
|
|
1858
2179
|
private readonly DEBUG;
|
|
1859
2180
|
private debugLog;
|
|
1860
2181
|
get configTabOptions(): ConfigEditorTabOption[];
|
|
@@ -1872,6 +2193,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1872
2193
|
onJsonValidationChange(result: JsonValidationResult): void;
|
|
1873
2194
|
onJsonEditorEvent(_event: JsonEditorEvent): void;
|
|
1874
2195
|
onConfigChange(newConfig: FormConfig): void;
|
|
2196
|
+
onCascadeValidChange(valid: boolean): void;
|
|
2197
|
+
private isCascadeGraphValid;
|
|
1875
2198
|
private updateValidityState;
|
|
1876
2199
|
private collectGlobalActionValidationIssues;
|
|
1877
2200
|
private collectGlobalActionValidationTargets;
|
|
@@ -1924,6 +2247,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1924
2247
|
getRuleDiagnosticDetails(diagnostic: FormRuleDiagnostics): string[];
|
|
1925
2248
|
private getRulePropertyIssueNames;
|
|
1926
2249
|
private markLlmRuleAccepted;
|
|
2250
|
+
private projectBuilderRules;
|
|
1927
2251
|
private refreshRuleDiagnostics;
|
|
1928
2252
|
get jsonDocument(): DynamicFormAuthoringDocument;
|
|
1929
2253
|
onBackConfigChange(): void;
|
|
@@ -1934,6 +2258,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1934
2258
|
hasResolvedRuntimeContract(): boolean;
|
|
1935
2259
|
describeRuntimeSource(source?: DynamicFormRuntimeValueSource): string;
|
|
1936
2260
|
onInputModeChange(): void;
|
|
2261
|
+
onLayoutScopeChange(scope: DynamicFormLayoutScope): void;
|
|
1937
2262
|
onPresentationPrefsChange(reason: string): void;
|
|
1938
2263
|
onSchemaPrefsChange(reason: string): void;
|
|
1939
2264
|
private createRuleBuilderConfig;
|
|
@@ -1954,10 +2279,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1954
2279
|
onCascadeApply(patch: Record<string, Partial<FieldDefinition>>): void;
|
|
1955
2280
|
private syncCascadeManagerFields;
|
|
1956
2281
|
private stripLegacy;
|
|
2282
|
+
private hydrateRuleDraft;
|
|
1957
2283
|
private computeRulesSignature;
|
|
1958
2284
|
restoreHintsDefaults(): void;
|
|
1959
2285
|
private loadPrefsFromStorage;
|
|
1960
2286
|
private normalizeMode;
|
|
2287
|
+
private normalizeLayoutScope;
|
|
1961
2288
|
private buildAuthoringDocument;
|
|
1962
2289
|
private normalizeResolvedRuntimeContract;
|
|
1963
2290
|
private createBackConfigState;
|
|
@@ -1982,6 +2309,14 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1982
2309
|
config: FormConfig;
|
|
1983
2310
|
formId?: string;
|
|
1984
2311
|
resourcePath?: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* Optional logical endpoint key for multi-gateway filter schema resolution.
|
|
2314
|
+
*/
|
|
2315
|
+
endpointKey?: ApiEndpoint;
|
|
2316
|
+
/**
|
|
2317
|
+
* Optional explicit API URL entry override for filter schema resolution.
|
|
2318
|
+
*/
|
|
2319
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1985
2320
|
mode?: string;
|
|
1986
2321
|
formReady: EventEmitter<{
|
|
1987
2322
|
formGroup: FormGroup<Record<string, any>>;
|
|
@@ -1999,15 +2334,25 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1999
2334
|
form: FormGroup<Record<string, any>>;
|
|
2000
2335
|
private valueChangesSub?;
|
|
2001
2336
|
private statusChangesSub?;
|
|
2337
|
+
private schemaSub?;
|
|
2338
|
+
private hydratedFieldMetadata;
|
|
2339
|
+
private schemaHydrationPending;
|
|
2340
|
+
private schemaHydrationFailed;
|
|
2002
2341
|
private columnFieldsCache;
|
|
2003
2342
|
private singleFieldCache;
|
|
2343
|
+
private readonly crudService;
|
|
2344
|
+
private readonly resourceDiscovery;
|
|
2345
|
+
private readonly cdr;
|
|
2004
2346
|
constructor(dynamicForm: DynamicFormService);
|
|
2005
2347
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2006
2348
|
ngOnDestroy(): void;
|
|
2349
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2007
2350
|
private buildForm;
|
|
2008
2351
|
private buildRestorableValues;
|
|
2009
2352
|
private hasExplicitDefaultValue;
|
|
2010
2353
|
onFormSubmit(): void;
|
|
2354
|
+
private isFilterReady;
|
|
2355
|
+
private projectFilterValues;
|
|
2011
2356
|
getColumnFields(column: FormColumn): FieldMetadata[];
|
|
2012
2357
|
getSingleField(field: FieldMetadata): FieldMetadata[];
|
|
2013
2358
|
getColumnClasses(column: FormColumn): string | null;
|
|
@@ -2017,7 +2362,7 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
2017
2362
|
trackByRow(i: number, _row: FormRow): string;
|
|
2018
2363
|
trackByColumn(i: number, col: FormColumn): string;
|
|
2019
2364
|
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>;
|
|
2365
|
+
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
2366
|
}
|
|
2022
2367
|
|
|
2023
2368
|
/** Metadata for PraxisFilterForm component */
|
|
@@ -2029,6 +2374,9 @@ interface PraxisFilterFormWidgetEditorInputs {
|
|
|
2029
2374
|
config?: FormConfig | null;
|
|
2030
2375
|
formId?: string;
|
|
2031
2376
|
resourcePath?: string;
|
|
2377
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2378
|
+
endpointKey?: ApiEndpoint;
|
|
2379
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2032
2380
|
mode?: DynamicFormMode | string;
|
|
2033
2381
|
[key: string]: unknown;
|
|
2034
2382
|
}
|
|
@@ -2042,13 +2390,37 @@ declare class PraxisFilterFormWidgetConfigEditor implements SettingsValueProvide
|
|
|
2042
2390
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2043
2391
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2044
2392
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2393
|
+
schemaWarning: string;
|
|
2045
2394
|
private readonly subscription;
|
|
2395
|
+
private schemaSubscription?;
|
|
2396
|
+
private childBusy;
|
|
2397
|
+
private schemaLoading;
|
|
2398
|
+
private resourcePathDraft?;
|
|
2399
|
+
private selectedCatalogResource;
|
|
2400
|
+
private committedBaselineDocument?;
|
|
2401
|
+
private readonly crudService;
|
|
2402
|
+
private readonly resourceDiscovery;
|
|
2403
|
+
private readonly cdr;
|
|
2404
|
+
get effectiveResourcePath(): string;
|
|
2405
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2406
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2407
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2408
|
+
onCatalogResourceSelected(entry: DiscoveredResourceOption | null): void;
|
|
2409
|
+
onResourceQuickClear(): void;
|
|
2410
|
+
private updateDirtyState;
|
|
2046
2411
|
ngAfterViewInit(): void;
|
|
2047
2412
|
ngOnDestroy(): void;
|
|
2048
2413
|
getSettingsValue(): PraxisFilterFormWidgetEditorValue;
|
|
2049
2414
|
onSave(): PraxisFilterFormWidgetEditorValue;
|
|
2050
2415
|
reset(): void;
|
|
2416
|
+
private publishBusy;
|
|
2051
2417
|
private initializeChildEditor;
|
|
2418
|
+
private applyBaselineDocumentToChildEditor;
|
|
2419
|
+
private applyDraftDocumentToChildEditor;
|
|
2420
|
+
private loadFilterSchemaFieldsIfNeeded;
|
|
2421
|
+
private extractCatalogFallbackFields;
|
|
2422
|
+
private applyLoadedFilterFieldMetadata;
|
|
2423
|
+
private buildDiscoveryOptions;
|
|
2052
2424
|
private buildValue;
|
|
2053
2425
|
private createDocumentFromInputs;
|
|
2054
2426
|
private normalizeMode;
|
|
@@ -2144,6 +2516,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2144
2516
|
private readonly layoutService;
|
|
2145
2517
|
private readonly settingsPanel;
|
|
2146
2518
|
private readonly i18n;
|
|
2519
|
+
private readonly logger;
|
|
2147
2520
|
private visualBlockIdSequence;
|
|
2148
2521
|
private localFieldSequence;
|
|
2149
2522
|
protected readonly colorTokens: typeof LayoutColorToken;
|
|
@@ -2167,8 +2540,38 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
2167
2540
|
get borderEnabled(): boolean;
|
|
2168
2541
|
get dividerEnabled(): boolean;
|
|
2169
2542
|
get layoutSections(): FormSection[];
|
|
2543
|
+
get layoutModeValue(): FormLayoutMode;
|
|
2544
|
+
onLayoutModeChange(mode: FormLayoutMode): void;
|
|
2545
|
+
get stepperInReadModeValue(): FormStepperReadMode;
|
|
2546
|
+
onStepperInReadModeChange(policy: FormStepperReadMode): void;
|
|
2547
|
+
get stepperReviewStepValue(): boolean;
|
|
2548
|
+
toggleStepperReviewStep(): void;
|
|
2549
|
+
stepperGroupingOpen: boolean;
|
|
2550
|
+
private stepIdSequence;
|
|
2551
|
+
private cachedExplicitStepsRef;
|
|
2552
|
+
private cachedAutoStepsRef;
|
|
2553
|
+
private cachedAutoStepsKey;
|
|
2554
|
+
toggleStepperGroupingPanel(): void;
|
|
2555
|
+
get hasExplicitStepperSteps(): boolean;
|
|
2556
|
+
get explicitStepperSteps(): FormLayoutStepItem[];
|
|
2557
|
+
initializeExplicitStepperSteps(): void;
|
|
2558
|
+
resetExplicitStepperSteps(): void;
|
|
2559
|
+
canAddExplicitStepperStep(): boolean;
|
|
2560
|
+
addExplicitStepperStep(): void;
|
|
2561
|
+
updateExplicitStepperStepLabel(stepIndex: number, label: string): void;
|
|
2562
|
+
updateExplicitStepperStepDescription(stepIndex: number, description: string): void;
|
|
2563
|
+
toggleExplicitStepperStepOptional(stepIndex: number): void;
|
|
2564
|
+
moveExplicitStepperStep(stepIndex: number, delta: -1 | 1): void;
|
|
2565
|
+
removeExplicitStepperStep(stepIndex: number): void;
|
|
2566
|
+
isSectionInExplicitStep(step: FormLayoutStepItem, sectionId: string): boolean;
|
|
2567
|
+
toggleSectionInExplicitStep(stepIndex: number, sectionId: string): void;
|
|
2568
|
+
private emitExplicitStepperSteps;
|
|
2170
2569
|
canApplyAll(): boolean;
|
|
2171
2570
|
applyGapToAll(): void;
|
|
2571
|
+
canCalibrateFieldsFromSemantics(): boolean;
|
|
2572
|
+
calibrateAllFieldsFromSemantics(): void;
|
|
2573
|
+
canOrganizeSectionsFromSemantics(): boolean;
|
|
2574
|
+
organizeSectionsFromSemantics(): void;
|
|
2172
2575
|
ngOnInit(): void;
|
|
2173
2576
|
handleKeydown(event: KeyboardEvent): void;
|
|
2174
2577
|
/**
|
|
@@ -2385,6 +2788,7 @@ declare class FieldConfiguratorComponent {
|
|
|
2385
2788
|
private readonly categoryByType;
|
|
2386
2789
|
private resolveEditorialMeta;
|
|
2387
2790
|
get icon(): string;
|
|
2791
|
+
private normalizedFieldControlType;
|
|
2388
2792
|
get typeClass(): string;
|
|
2389
2793
|
get typeSpecificClass(): string;
|
|
2390
2794
|
get typeLabel(): string;
|
|
@@ -2396,8 +2800,13 @@ declare class FieldConfiguratorComponent {
|
|
|
2396
2800
|
|
|
2397
2801
|
interface PraxisDynamicFormWidgetEditorInputs {
|
|
2398
2802
|
config?: FormConfig | null;
|
|
2803
|
+
resourcePath?: string | null;
|
|
2804
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
2805
|
+
endpointKey?: ApiEndpoint;
|
|
2806
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2807
|
+
schemaSource?: 'resource' | 'filter';
|
|
2399
2808
|
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
2400
|
-
configPersistenceStrategy?: 'local-first' | 'input-first';
|
|
2809
|
+
configPersistenceStrategy?: 'local-first' | 'input-first' | 'volatile';
|
|
2401
2810
|
mode?: DynamicFormMode;
|
|
2402
2811
|
emptyState?: PraxisDynamicFormEmptyState | null;
|
|
2403
2812
|
presentationModeGlobal?: boolean | null;
|
|
@@ -2414,23 +2823,46 @@ interface PraxisDynamicFormWidgetEditorValue {
|
|
|
2414
2823
|
inputs: PraxisDynamicFormWidgetEditorInputs;
|
|
2415
2824
|
}
|
|
2416
2825
|
declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnDestroy {
|
|
2826
|
+
private readonly crudService;
|
|
2827
|
+
private readonly resourceDiscovery;
|
|
2828
|
+
private readonly cdr;
|
|
2417
2829
|
inputs: PraxisDynamicFormWidgetEditorInputs | null;
|
|
2418
2830
|
widgetKey?: string;
|
|
2419
2831
|
appliedValues$?: Observable<unknown>;
|
|
2420
2832
|
private appliedSource?;
|
|
2833
|
+
private appliedResourcePath?;
|
|
2421
2834
|
/** Runtime evidence supplied by the existing component editor context resolver. */
|
|
2422
2835
|
context: Record<string, unknown>;
|
|
2423
2836
|
formEditor?: PraxisDynamicFormConfigEditor;
|
|
2424
2837
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
2425
2838
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
2426
2839
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
2840
|
+
schemaWarning: string;
|
|
2427
2841
|
private readonly subscription;
|
|
2842
|
+
private schemaSubscription?;
|
|
2843
|
+
private childBusy;
|
|
2844
|
+
private schemaLoading;
|
|
2428
2845
|
private initialEditorConfig?;
|
|
2846
|
+
private committedBaselineConfig?;
|
|
2847
|
+
private committedBaselineDocument?;
|
|
2429
2848
|
private sourceDraft?;
|
|
2430
|
-
|
|
2849
|
+
private resourcePathDraft?;
|
|
2850
|
+
selectedCatalogResource: DiscoveredResourceOption | null;
|
|
2851
|
+
private optionalInject;
|
|
2852
|
+
get configurationSource(): 'local-first' | 'input-first' | 'volatile';
|
|
2853
|
+
get effectiveResourcePath(): string;
|
|
2854
|
+
get effectiveEndpointKey(): ApiEndpoint | undefined;
|
|
2855
|
+
get effectiveApiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
2856
|
+
get effectiveDiscoveryIntent(): 'crud' | 'filter';
|
|
2857
|
+
get hasReadOnlyModeWarning(): boolean;
|
|
2858
|
+
switchToReadOnlyViewMode(): void;
|
|
2859
|
+
onCatalogResourceSelected(resource: DiscoveredResourceOption | null): void;
|
|
2431
2860
|
changeConfigurationSource(value: string): void;
|
|
2861
|
+
onResourceQuickConnect(resourcePath: string): void;
|
|
2862
|
+
onResourceQuickClear(): void;
|
|
2863
|
+
private baselineResourcePath;
|
|
2432
2864
|
private updateDirtyState;
|
|
2433
|
-
private
|
|
2865
|
+
private publishBusy;
|
|
2434
2866
|
ngAfterViewInit(): void;
|
|
2435
2867
|
ngOnDestroy(): void;
|
|
2436
2868
|
getSettingsValue(): PraxisDynamicFormWidgetEditorValue;
|
|
@@ -2438,6 +2870,12 @@ declare class PraxisDynamicFormWidgetConfigEditor implements SettingsValueProvid
|
|
|
2438
2870
|
acceptAppliedValue(value: unknown): void;
|
|
2439
2871
|
reset(): void;
|
|
2440
2872
|
private initializeChildEditor;
|
|
2873
|
+
private applyBaselineDocumentToChildEditor;
|
|
2874
|
+
private applyDraftDocumentToChildEditor;
|
|
2875
|
+
private loadResourceSchemaFieldsIfNeeded;
|
|
2876
|
+
private extractCatalogFallbackFields;
|
|
2877
|
+
private applyFieldMetadataHydration;
|
|
2878
|
+
private buildDiscoveryOptions;
|
|
2441
2879
|
private buildValue;
|
|
2442
2880
|
private createDocumentFromInputs;
|
|
2443
2881
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicFormWidgetConfigEditor, never>;
|
|
@@ -2497,20 +2935,20 @@ declare class DynamicFormSchemaCacheService {
|
|
|
2497
2935
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormSchemaCacheService>;
|
|
2498
2936
|
}
|
|
2499
2937
|
|
|
2500
|
-
declare class
|
|
2938
|
+
declare class LegacyCompactPresentationExampleComponent {
|
|
2501
2939
|
private readonly dynamicLayout;
|
|
2502
|
-
readonly legacyFrequencyExample: _praxisui_dynamic_form.
|
|
2940
|
+
readonly legacyFrequencyExample: _praxisui_dynamic_form.LegacyCompactPresentationCompactPresentationExample;
|
|
2503
2941
|
readonly legacyFrequencyPresentationConfig: _praxisui_core.FormConfig;
|
|
2504
2942
|
readonly legacyFrequencyInitialValue: Record<string, unknown>;
|
|
2505
|
-
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.
|
|
2943
|
+
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2506
2944
|
readonly corporatePresentationExample: _praxisui_dynamic_form.CorporatePresentationExample;
|
|
2507
2945
|
readonly corporatePresentationConfig: _praxisui_core.FormConfig;
|
|
2508
2946
|
readonly corporatePresentationInitialValue: Record<string, unknown>;
|
|
2509
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2510
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
2947
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LegacyCompactPresentationExampleComponent, never>;
|
|
2948
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegacyCompactPresentationExampleComponent, "praxis-legacy-compact-presentation-example", never, {}, {}, never, never, true, never>;
|
|
2511
2949
|
}
|
|
2512
2950
|
|
|
2513
|
-
interface
|
|
2951
|
+
interface LegacyCompactPresentationLegacyFrequencyRow {
|
|
2514
2952
|
tipo: string;
|
|
2515
2953
|
codigo: string;
|
|
2516
2954
|
nome: string;
|
|
@@ -2518,12 +2956,12 @@ interface Ergadm00034LegacyFrequencyRow {
|
|
|
2518
2956
|
marcador: string;
|
|
2519
2957
|
selected?: boolean;
|
|
2520
2958
|
}
|
|
2521
|
-
interface
|
|
2522
|
-
readonly id: '
|
|
2959
|
+
interface LegacyCompactPresentationCompactPresentationExample {
|
|
2960
|
+
readonly id: 'legacy-compact-presentation';
|
|
2523
2961
|
readonly title: string;
|
|
2524
2962
|
readonly resourcePath: string;
|
|
2525
2963
|
readonly layoutPreset: 'compactPresentation';
|
|
2526
|
-
readonly rows: readonly
|
|
2964
|
+
readonly rows: readonly LegacyCompactPresentationLegacyFrequencyRow[];
|
|
2527
2965
|
readonly tableConfig: TableConfig;
|
|
2528
2966
|
readonly metadata: readonly FieldMetadata[];
|
|
2529
2967
|
readonly initialValue: Record<string, unknown>;
|
|
@@ -2536,9 +2974,9 @@ interface CorporatePresentationExample {
|
|
|
2536
2974
|
readonly metadata: readonly FieldMetadata[];
|
|
2537
2975
|
readonly initialValue: Record<string, unknown>;
|
|
2538
2976
|
}
|
|
2539
|
-
declare const
|
|
2977
|
+
declare const LEGACY_COMPACT_PRESENTATION_COMPACT_PRESENTATION_EXAMPLE: LegacyCompactPresentationCompactPresentationExample;
|
|
2540
2978
|
declare const CORPORATE_PRESENTATION_FORMAT_GALLERY: CorporatePresentationExample;
|
|
2541
|
-
declare function
|
|
2979
|
+
declare function buildLegacyCompactPresentationCompactPresentationConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2542
2980
|
declare function buildCorporatePresentationFormatGalleryConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2543
2981
|
|
|
2544
2982
|
declare function isRuleSatisfied(rule: FormLayoutRule, data: unknown): boolean;
|
|
@@ -2551,23 +2989,22 @@ declare function applyVisibilityRules(rules: FormLayoutRule[], data: any): Recor
|
|
|
2551
2989
|
/**
|
|
2552
2990
|
* Converts a RuleBuilderState produced by the visual builder into
|
|
2553
2991
|
* an array of FormLayoutRule objects understood by the dynamic form.
|
|
2992
|
+
* Throws when a referenced condition graph cannot be serialized without losing semantics.
|
|
2554
2993
|
*/
|
|
2555
2994
|
declare function ruleBuilderStateToFormLayoutRules(state: RuleBuilderState | null | undefined): FormLayoutRule[];
|
|
2556
2995
|
/**
|
|
2557
2996
|
* Converts an array of FormLayoutRule back into a RuleBuilderState
|
|
2558
2997
|
* so that the visual builder can display the saved rules.
|
|
2559
2998
|
*
|
|
2560
|
-
*
|
|
2561
|
-
*
|
|
2999
|
+
* Every canonical effect reopens as a propertyRule, with all targets and both
|
|
3000
|
+
* branches intact. Conditions outside the visual vocabulary stay inline.
|
|
2562
3001
|
*/
|
|
2563
3002
|
declare function formLayoutRulesToBuilderState(rules: FormLayoutRule[] | null | undefined): RuleBuilderState;
|
|
2564
3003
|
|
|
2565
|
-
/**
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
*/
|
|
2570
|
-
declare function normalizeDateArrays(data: any): any;
|
|
3004
|
+
/** Converts legacy date tuples only where the existing field metadata declares a temporal value. */
|
|
3005
|
+
declare function normalizeDateArrays(data: any, fields: readonly FieldMetadata[]): any;
|
|
3006
|
+
/** One private draft shared by hydration and submit; only declared temporal fields are transformed. */
|
|
3007
|
+
declare function normalizeTemporalFieldValues(data: any, fields: readonly FieldMetadata[], normalizeString: (value: string) => string): any;
|
|
2571
3008
|
|
|
2572
3009
|
/**
|
|
2573
3010
|
* Helper provider to wire the PraxisDynamicForm component into the Settings Panel
|
|
@@ -3040,6 +3477,9 @@ declare const ENUMS: {
|
|
|
3040
3477
|
fieldHintPosition: FieldHintPosition[];
|
|
3041
3478
|
sectionTitleStyle: SectionTitleStyle[];
|
|
3042
3479
|
sectionDescriptionStyle: SectionDescriptionStyle[];
|
|
3480
|
+
formLayoutMode: string[];
|
|
3481
|
+
formStepperReadMode: string[];
|
|
3482
|
+
formLayoutTabsAppearance: string[];
|
|
3043
3483
|
editorialContentFormat: string[];
|
|
3044
3484
|
};
|
|
3045
3485
|
declare const FORM_AI_CAPABILITIES: CapabilityCatalog$1;
|
|
@@ -3132,7 +3572,50 @@ declare const PRAXIS_FILTER_FORM_AUTHORING_PROJECTION: {
|
|
|
3132
3572
|
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
3573
|
readonly roundTripRequirements: readonly ["strip-undefined", "stable-field-order", "preserve-local-field-source", "preserve-section-row-column-ids"];
|
|
3134
3574
|
};
|
|
3135
|
-
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST:
|
|
3575
|
+
declare const PRAXIS_FILTER_FORM_AUTHORING_MANIFEST: {
|
|
3576
|
+
runtimeInputs: _praxisui_core.ManifestInput[];
|
|
3577
|
+
schemaVersion: string;
|
|
3578
|
+
componentId: string;
|
|
3579
|
+
ownerPackage: string;
|
|
3580
|
+
configSchemaId: string;
|
|
3581
|
+
manifestVersion: string;
|
|
3582
|
+
editableTargets: _praxisui_core.ManifestTarget[];
|
|
3583
|
+
operations: _praxisui_core.ManifestOperation[];
|
|
3584
|
+
validators: _praxisui_core.ManifestValidator[];
|
|
3585
|
+
roundTripRequirements?: string[];
|
|
3586
|
+
presentationAffordances?: _praxisui_core.ManifestPresentationAffordanceCatalog;
|
|
3587
|
+
examples: _praxisui_core.ManifestExample[];
|
|
3588
|
+
controlProfiles?: _praxisui_core.ManifestControlProfile[];
|
|
3589
|
+
};
|
|
3590
|
+
|
|
3591
|
+
/** Reconstruct raw native authorship. Normalized editor/runtime defaults are never the source. */
|
|
3592
|
+
declare function decodeDynamicFormPageInputs(value: unknown): {
|
|
3593
|
+
document: DynamicFormAuthoringDocument | null;
|
|
3594
|
+
diagnostics: EditorDiagnostic[];
|
|
3595
|
+
};
|
|
3596
|
+
/** Owner callback for Core admission; no component loading or second config authority. */
|
|
3597
|
+
declare function validateDynamicFormPageWidget(widget: WidgetInstance): readonly {
|
|
3598
|
+
code: string;
|
|
3599
|
+
path: string;
|
|
3600
|
+
}[];
|
|
3601
|
+
/** Inverse native projection. Explicit unrepresentable authoring blocks fail instead of being filtered. */
|
|
3602
|
+
declare function encodeDynamicFormPageInputs(value: unknown): {
|
|
3603
|
+
inputs: Record<string, unknown> | null;
|
|
3604
|
+
diagnostics: EditorDiagnostic[];
|
|
3605
|
+
};
|
|
3606
|
+
/** Persist only explicit deltas from the mounted native editor; bindings/context stay pinned to the seed. */
|
|
3607
|
+
declare function projectDynamicFormPageEditorChanges(authoredInputs: unknown, editorBaseline: unknown, editorValue: unknown): {
|
|
3608
|
+
inputs: Record<string, unknown> | null;
|
|
3609
|
+
diagnostics: EditorDiagnostic[];
|
|
3610
|
+
};
|
|
3611
|
+
/** Derive execution-only identity and disable independent preferences. Never persist this projection. */
|
|
3612
|
+
declare function materializeDynamicFormPageRuntimeInputs(value: unknown, pageId: string, widgetKey: string, options?: {
|
|
3613
|
+
preview?: boolean;
|
|
3614
|
+
}): {
|
|
3615
|
+
inputs: Record<string, unknown> | null;
|
|
3616
|
+
diagnostics: EditorDiagnostic[];
|
|
3617
|
+
};
|
|
3618
|
+
declare const DYNAMIC_FORM_GOVERNED_PAGE_PREVIEW_ADAPTER: GovernedPagePreviewWidgetAdapter;
|
|
3136
3619
|
|
|
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,
|
|
3620
|
+
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 };
|
|
3621
|
+
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 };
|