@praxisui/dynamic-form 3.0.0-beta.9 → 5.0.0-beta.0
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 +6 -3
- package/fesm2022/praxisui-dynamic-form.mjs +1252 -607
- package/index.d.ts +67 -10
- package/package.json +5 -7
package/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, OnInit, ChangeDetectorRef, Provider, AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, OnInit, ChangeDetectorRef, NgZone, Provider, AfterViewInit, ElementRef } from '@angular/core';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
4
|
import { FormGroup, FormBuilder, FormArray } from '@angular/forms';
|
|
4
5
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
5
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
7
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
7
8
|
import { CdkDragStart, CdkDragMove, CdkDragEnd, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
8
9
|
import * as _praxisui_core from '@praxisui/core';
|
|
9
|
-
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, FormSection, FormRow, FormColumn, FormConfig, FormActionButton, BackConfig, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, WidgetEventEnvelope, WidgetDefinition, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, FieldDefinition, ComponentDocMeta, Breakpoint, IconPickerService, SurfaceOpenPayload, AiCapabilityCategory, AiValueKind,
|
|
10
|
+
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormActionButton, AiCapability, BackConfig, ApiEndpoint, ApiUrlEntry, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, WidgetEventEnvelope, WidgetDefinition, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, FieldDefinition, ComponentDocMeta, Breakpoint, IconPickerService, SurfaceOpenPayload, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
|
|
10
11
|
import * as rxjs from 'rxjs';
|
|
11
12
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
12
13
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
13
14
|
import { KeyboardShortcutService } from '@praxisui/dynamic-fields';
|
|
14
|
-
import { BaseAiAdapter,
|
|
15
|
+
import { BaseAiAdapter, PatchResult } from '@praxisui/ai';
|
|
15
16
|
import { RuleBuilderConfig, RuleBuilderState } from '@praxisui/visual-builder';
|
|
16
17
|
|
|
17
18
|
declare class FormLayoutService {
|
|
@@ -54,7 +55,8 @@ interface RuleApplicationResult {
|
|
|
54
55
|
columnProps: Record<string, Record<string, any>>;
|
|
55
56
|
}
|
|
56
57
|
declare class FormRulesService {
|
|
57
|
-
private
|
|
58
|
+
private readonly jsonLogic;
|
|
59
|
+
constructor(jsonLogic: PraxisJsonLogicService);
|
|
58
60
|
/**
|
|
59
61
|
* Evaluates a set of form rules against the current value of a FormGroup.
|
|
60
62
|
*
|
|
@@ -63,6 +65,7 @@ declare class FormRulesService {
|
|
|
63
65
|
* @returns A RuleEvaluationResult object containing the visibility and required states for the fields.
|
|
64
66
|
*/
|
|
65
67
|
applyRules(formGroup: FormGroup, formRules: FormLayoutRule[]): RuleApplicationResult;
|
|
68
|
+
private evaluateCondition;
|
|
66
69
|
private setPath;
|
|
67
70
|
private deletePath;
|
|
68
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRulesService, never>;
|
|
@@ -340,7 +343,7 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
340
343
|
componentType: string;
|
|
341
344
|
constructor(host: FormAiHost);
|
|
342
345
|
getCurrentConfig(): FormConfig;
|
|
343
|
-
getCapabilities():
|
|
346
|
+
getCapabilities(): AiCapability[];
|
|
344
347
|
getTaskPresets(): Record<string, string[]>;
|
|
345
348
|
getRuntimeState(): Record<string, any>;
|
|
346
349
|
createSnapshot(): FormConfig;
|
|
@@ -399,6 +402,14 @@ interface DynamicFormValidationContext {
|
|
|
399
402
|
schemaHash?: string;
|
|
400
403
|
};
|
|
401
404
|
}
|
|
405
|
+
type DynamicFormRuntimeValueSource = 'runtime-input' | 'legacy-crud';
|
|
406
|
+
interface DynamicFormResolvedRuntimeContract {
|
|
407
|
+
schemaUrl?: string;
|
|
408
|
+
schemaSource?: DynamicFormRuntimeValueSource;
|
|
409
|
+
submitUrl?: string;
|
|
410
|
+
submitMethod?: 'post' | 'put' | 'patch';
|
|
411
|
+
submitSource?: DynamicFormRuntimeValueSource;
|
|
412
|
+
}
|
|
402
413
|
interface DynamicFormProjectionContext {
|
|
403
414
|
mode?: DynamicFormMode;
|
|
404
415
|
}
|
|
@@ -408,6 +419,7 @@ interface DynamicFormRuntimeContext {
|
|
|
408
419
|
server?: {
|
|
409
420
|
schemaHash?: string;
|
|
410
421
|
};
|
|
422
|
+
resolvedContract?: DynamicFormResolvedRuntimeContract;
|
|
411
423
|
}
|
|
412
424
|
interface DynamicFormApplyPlan {
|
|
413
425
|
canonicalConfig: FormConfig;
|
|
@@ -468,6 +480,7 @@ type ResolvedSectionHeaderVisual = {
|
|
|
468
480
|
};
|
|
469
481
|
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
470
482
|
private crud;
|
|
483
|
+
private http;
|
|
471
484
|
private fb;
|
|
472
485
|
private cdr;
|
|
473
486
|
private layoutService;
|
|
@@ -487,6 +500,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
487
500
|
private global;
|
|
488
501
|
private componentKeys;
|
|
489
502
|
private loadingOrchestrator;
|
|
503
|
+
private ngZone;
|
|
504
|
+
private apiUrlConfig;
|
|
490
505
|
private loadingRenderer?;
|
|
491
506
|
private router?;
|
|
492
507
|
private route?;
|
|
@@ -511,6 +526,18 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
511
526
|
* 'filter' usa o schema do DTO de filtro (via /schemas/filtered no POST /filter request)
|
|
512
527
|
*/
|
|
513
528
|
schemaSource: 'resource' | 'filter';
|
|
529
|
+
/** Canonical schema URL published by the backend surface catalog. */
|
|
530
|
+
schemaUrl?: string | null;
|
|
531
|
+
/** Canonical submit URL published by the backend surface catalog. */
|
|
532
|
+
submitUrl?: string | null;
|
|
533
|
+
/** Canonical submit method published by the backend surface catalog. */
|
|
534
|
+
submitMethod?: string | null;
|
|
535
|
+
/** Canonical response schema URL exposed for runtime diagnostics/follow-up. */
|
|
536
|
+
responseSchemaUrl?: string | null;
|
|
537
|
+
/** API endpoint entry used to resolve relative canonical URLs in detached hosts. */
|
|
538
|
+
apiEndpointKey?: ApiEndpoint | string | null;
|
|
539
|
+
/** Resolved API entry carried by detached hosts when route-scoped API_URL is not inherited. */
|
|
540
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
514
541
|
/**
|
|
515
542
|
* CUSTOMIZAÇÃO DE LAYOUT - NÃO confundir com edição de dados do formulário
|
|
516
543
|
*
|
|
@@ -613,6 +640,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
613
640
|
private lastSchemaMeta?;
|
|
614
641
|
private schemaRootHooks?;
|
|
615
642
|
private destroy$;
|
|
643
|
+
private formValueChangesSubscription;
|
|
644
|
+
private formBuildCycleId;
|
|
645
|
+
private suppressedValueChangeBuildId;
|
|
616
646
|
private readonly sectionHeaderBlobUrlCache;
|
|
617
647
|
private readonly sectionHeaderObjectUrls;
|
|
618
648
|
private lastCorrelationId?;
|
|
@@ -682,12 +712,21 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
682
712
|
private mountAnimationTimer;
|
|
683
713
|
protected isMounting: boolean;
|
|
684
714
|
private hasBuiltFormFromConfig;
|
|
685
|
-
constructor(crud: GenericCrudService<any>, fb: FormBuilder, cdr: ChangeDetectorRef, layoutService: FormLayoutService, contextService: FormContextService, rulesService: FormRulesService, settingsPanel: SettingsPanelService, dialog: MatDialog, asyncConfigStorage: AsyncConfigStorage, connectionStorage: ConnectionStorage, dynamicForm: DynamicFormService, snackBar: MatSnackBar, canvasState: CanvasStateService, dynamicLayout: DynamicFormLayoutService, errorMessages: ErrorMessageService, schemaNormalizer: SchemaNormalizerService, componentMetaRegistry: ComponentMetadataRegistry, global: GlobalConfigService, componentKeys: ComponentKeyService, loadingOrchestrator: LoadingOrchestrator, loadingRenderer?: PraxisLoadingRenderer | undefined, router?: Router | undefined, route?: ActivatedRoute | undefined, hooksRegistry?: FormHooksRegistry | undefined, hookPresets?: FormHookPreset[] | null | undefined, logger?: LoggerService | undefined);
|
|
715
|
+
constructor(crud: GenericCrudService<any>, http: HttpClient, fb: FormBuilder, cdr: ChangeDetectorRef, layoutService: FormLayoutService, contextService: FormContextService, rulesService: FormRulesService, settingsPanel: SettingsPanelService, dialog: MatDialog, asyncConfigStorage: AsyncConfigStorage, connectionStorage: ConnectionStorage, dynamicForm: DynamicFormService, snackBar: MatSnackBar, canvasState: CanvasStateService, dynamicLayout: DynamicFormLayoutService, errorMessages: ErrorMessageService, schemaNormalizer: SchemaNormalizerService, componentMetaRegistry: ComponentMetadataRegistry, global: GlobalConfigService, componentKeys: ComponentKeyService, loadingOrchestrator: LoadingOrchestrator, ngZone: NgZone, apiUrlConfig: ApiUrlConfig, loadingRenderer?: PraxisLoadingRenderer | undefined, router?: Router | undefined, route?: ActivatedRoute | undefined, hooksRegistry?: FormHooksRegistry | undefined, hookPresets?: FormHookPreset[] | null | undefined, logger?: LoggerService | undefined);
|
|
686
716
|
private emitLoadingState;
|
|
687
717
|
private buildLoadingContext;
|
|
688
718
|
private beginLoading;
|
|
689
719
|
private endLoading;
|
|
690
720
|
private runHooks;
|
|
721
|
+
private resolveSubmitOperation;
|
|
722
|
+
private buildSubmitRequest;
|
|
723
|
+
private normalizeSubmitMethod;
|
|
724
|
+
private resolveSubmitHref;
|
|
725
|
+
private resolveApiHref;
|
|
726
|
+
private resolveApiOrigin;
|
|
727
|
+
private resolveApiEntry;
|
|
728
|
+
private configureCrudRuntime;
|
|
729
|
+
private unwrapRestApiResponse;
|
|
691
730
|
private resolveStageDeclarations;
|
|
692
731
|
private resolvePresetDeclarations;
|
|
693
732
|
get shouldShowConfigControls(): boolean;
|
|
@@ -712,6 +751,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
712
751
|
private syncWithServer;
|
|
713
752
|
private loadEntity;
|
|
714
753
|
private buildFormFromConfig;
|
|
754
|
+
private resetFormValueChangesSubscription;
|
|
755
|
+
private scheduleValueChangeBootstrapRelease;
|
|
756
|
+
private hasInteractiveFormState;
|
|
715
757
|
private captureFormRuntimeState;
|
|
716
758
|
private buildCurrentFormRuntimeContext;
|
|
717
759
|
private buildRestoreTargetContext;
|
|
@@ -786,6 +828,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
786
828
|
private isEditorialVisualContext;
|
|
787
829
|
hasEditorialVisualContext(): boolean;
|
|
788
830
|
private applyBorderPropsToStyle;
|
|
831
|
+
private resolveRuleVisibility;
|
|
789
832
|
toggleSectionCollapse(event: Event, section: FormSection): void;
|
|
790
833
|
sectionPanelId(section: FormSection, index: number): string;
|
|
791
834
|
getSectionCollapsedSummary(section: FormSection): string;
|
|
@@ -794,6 +837,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
794
837
|
id?: string;
|
|
795
838
|
}): FieldMetadata[];
|
|
796
839
|
private getColumnRuleProps;
|
|
840
|
+
private buildFieldRuleMetadataOverrides;
|
|
841
|
+
private normalizeRuleFieldOptions;
|
|
797
842
|
private getEffectiveColumn;
|
|
798
843
|
getColumnClasses(column: FormColumn): string[];
|
|
799
844
|
private getColumnSpanClasses;
|
|
@@ -801,6 +846,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
801
846
|
private getColumnOrderClasses;
|
|
802
847
|
private getColumnHiddenClasses;
|
|
803
848
|
isColumnVisible(column: FormColumn): boolean;
|
|
849
|
+
private isResponsiveHiddenActive;
|
|
804
850
|
getColumnPadding(column: FormColumn): number | undefined;
|
|
805
851
|
getColumnStyles(column: FormColumn): Record<string, any> | null;
|
|
806
852
|
private _getConfirmationMessage;
|
|
@@ -883,6 +929,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
883
929
|
private applyFieldMetadataPatch;
|
|
884
930
|
/** Find the DynamicFieldLoaderDirective instance that currently hosts a given field */
|
|
885
931
|
private findLoaderForField;
|
|
932
|
+
private applyLiveFieldMetadata;
|
|
886
933
|
onToolbarMove(direction: 'up' | 'down'): void;
|
|
887
934
|
onToolbarToggleReadonly(): void;
|
|
888
935
|
onToolbarToggleRequired(): void;
|
|
@@ -939,6 +986,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
939
986
|
applyConfigFromAdapter(nextConfig: FormConfig): void;
|
|
940
987
|
applyConfigFromAdapter(nextConfig: DynamicFormAuthoringDocument): void;
|
|
941
988
|
private buildDynamicFormEditorRuntimeContext;
|
|
989
|
+
private buildResolvedRuntimeContractForEditor;
|
|
990
|
+
private readLegacySchemaUrlForEditor;
|
|
942
991
|
private captureCurrentContextSnapshot;
|
|
943
992
|
private captureCurrentPresentationSnapshot;
|
|
944
993
|
private captureCurrentSchemaPrefsSnapshot;
|
|
@@ -952,6 +1001,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
952
1001
|
retryInitialization(): void;
|
|
953
1002
|
getErrorTitle(): string;
|
|
954
1003
|
showDetailedError(): void;
|
|
1004
|
+
private tryBuildExplicitSchemaContext;
|
|
955
1005
|
private buildSchemaContext;
|
|
956
1006
|
private getSchemaWithCache;
|
|
957
1007
|
private isReactiveValidationEnabled;
|
|
@@ -960,8 +1010,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
960
1010
|
private logRowGapsSnapshot;
|
|
961
1011
|
private applyPresentationVars;
|
|
962
1012
|
private applyPresentationConfig;
|
|
963
|
-
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, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
964
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "editorialContext": { "alias": "editorialContext"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "schemaSource": { "alias": "schemaSource"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "layout": { "alias": "layout"; "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; }; "visibleGlobal": { "alias": "visibleGlobal"; "required": false; }; "customEndpoints": { "alias": "customEndpoints"; "required": false; }; }, { "formSubmit": "formSubmit"; "formCancel": "formCancel"; "formReset": "formReset"; "configChange": "configChange"; "formReady": "formReady"; "valueChange": "valueChange"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "widgetEvent": "widgetEvent"; }, never, never, true, never>;
|
|
1013
|
+
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, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1014
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "editorialContext": { "alias": "editorialContext"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "schemaSource": { "alias": "schemaSource"; "required": false; }; "schemaUrl": { "alias": "schemaUrl"; "required": false; }; "submitUrl": { "alias": "submitUrl"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; "responseSchemaUrl": { "alias": "responseSchemaUrl"; "required": false; }; "apiEndpointKey": { "alias": "apiEndpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "layout": { "alias": "layout"; "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; }; "visibleGlobal": { "alias": "visibleGlobal"; "required": false; }; "customEndpoints": { "alias": "customEndpoints"; "required": false; }; }, { "formSubmit": "formSubmit"; "formCancel": "formCancel"; "formReset": "formReset"; "configChange": "configChange"; "formReady": "formReady"; "valueChange": "valueChange"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "widgetEvent": "widgetEvent"; }, never, never, true, never>;
|
|
965
1015
|
}
|
|
966
1016
|
|
|
967
1017
|
declare class FormConfigService {
|
|
@@ -1052,6 +1102,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1052
1102
|
private initialConfig;
|
|
1053
1103
|
private initialDocument;
|
|
1054
1104
|
private readonly openedWithCanonicalDocument;
|
|
1105
|
+
readonly runtimeContext?: DynamicFormRuntimeContext;
|
|
1106
|
+
readonly runtimeContract?: DynamicFormResolvedRuntimeContract;
|
|
1055
1107
|
backConfig?: BackConfig;
|
|
1056
1108
|
private includeBackConfigBlock;
|
|
1057
1109
|
formId?: string;
|
|
@@ -1113,6 +1165,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1113
1165
|
isPresentationBlockPersisted(): boolean;
|
|
1114
1166
|
isSchemaPrefsBlockPersisted(): boolean;
|
|
1115
1167
|
isBackConfigBlockPersisted(): boolean;
|
|
1168
|
+
hasResolvedRuntimeContract(): boolean;
|
|
1169
|
+
describeRuntimeSource(source?: DynamicFormRuntimeValueSource): string;
|
|
1116
1170
|
onInputModeChange(): void;
|
|
1117
1171
|
onPresentationPrefsChange(reason: string): void;
|
|
1118
1172
|
onSchemaPrefsChange(reason: string): void;
|
|
@@ -1129,6 +1183,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1129
1183
|
private loadPrefsFromStorage;
|
|
1130
1184
|
private normalizeMode;
|
|
1131
1185
|
private buildAuthoringDocument;
|
|
1186
|
+
private normalizeResolvedRuntimeContract;
|
|
1132
1187
|
private createBackConfigState;
|
|
1133
1188
|
private mergePresentationPrefs;
|
|
1134
1189
|
private mergeSchemaPrefs;
|
|
@@ -1169,6 +1224,8 @@ declare class PraxisFilterForm implements OnChanges, OnDestroy {
|
|
|
1169
1224
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1170
1225
|
ngOnDestroy(): void;
|
|
1171
1226
|
private buildForm;
|
|
1227
|
+
private buildRestorableValues;
|
|
1228
|
+
private hasExplicitDefaultValue;
|
|
1172
1229
|
onFormSubmit(): void;
|
|
1173
1230
|
getColumnFields(column: FormColumn): FieldMetadata[];
|
|
1174
1231
|
get fieldMetadata(): FieldMetadata[];
|
|
@@ -1682,7 +1739,7 @@ declare class ActionsEditorComponent {
|
|
|
1682
1739
|
}
|
|
1683
1740
|
|
|
1684
1741
|
/**
|
|
1685
|
-
*
|
|
1742
|
+
* Catálogo de capacidades do PraxisDynamicForm para uso da IA.
|
|
1686
1743
|
* Paths seguem o schema do FormConfig (layout + metadados de campos).
|
|
1687
1744
|
*/
|
|
1688
1745
|
|
|
@@ -1859,4 +1916,4 @@ declare const FORM_COMPONENT_AI_CAPABILITIES: CapabilityCatalog;
|
|
|
1859
1916
|
declare function getFormAiCatalog(formConfig?: FormConfig): AiCapabilityCatalog;
|
|
1860
1917
|
|
|
1861
1918
|
export { ActionsEditorComponent, CanvasStateService, CanvasToolbarComponent, ColumnEditorComponent, DynamicFormLayoutService, FORM_AI_CAPABILITIES, FORM_COMPONENT_AI_CAPABILITIES, FieldConfiguratorComponent, FieldEditorComponent, FormConfigService, FormContextService, FormLayoutService, JsonConfigEditorComponent, LayoutColorToken, LayoutEditorComponent, LayoutPrefsService, PRAXIS_DYNAMIC_FORM_COMPONENT_METADATA, PRAXIS_FILTER_FORM_COMPONENT_METADATA, PraxisDynamicForm, PraxisDynamicFormConfigEditor, PraxisFilterForm, PraxisFormActionsComponent, RowConfiguratorComponent, RowEditorComponent, SETTINGS_PANEL_DYNAMIC_FORM_PROVIDER, SectionEditorComponent, TASK_PRESETS, applyVisibilityRules, buildDynamicFormApplyPlan, createDynamicFormAuthoringDocument, formLayoutRulesToBuilderState, getFormAiCatalog, getFormCapabilities, getFormEnum, isRuleSatisfied, normalizeDateArrays, normalizeDynamicFormAuthoringDocument, parseLegacyOrDynamicFormDocument, providePraxisDynamicFormMetadata, providePraxisFilterFormMetadata, provideSettingsPanelDynamicForm, ruleBuilderStateToFormLayoutRules, serializeDynamicFormAuthoringDocument, stripLegacyFieldMetadata, toCanonicalDynamicFormConfig, validateDynamicFormAuthoringDocument, validateDynamicFormAuthoringInput };
|
|
1862
|
-
export type { CanvasElement, CanvasElementType, CanvasPathPart, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, DynamicFieldRenderErrorEvent, DynamicFormApplyPlan, DynamicFormAuthoringDocument, DynamicFormBindings, DynamicFormContextSnapshot, DynamicFormMode, DynamicFormPresentationSnapshot, DynamicFormProjectionContext, DynamicFormRuntimeContext, DynamicFormSchemaPrefsSnapshot, DynamicFormValidationContext, EditorDiagnostic, EditorDocument, FieldPath, FieldPathContainer, FieldPathWithIndex, Capability as FormComponentCapability, CapabilityCatalog as FormComponentCapabilityCatalog, CapabilityCategory as FormComponentCapabilityCategory, ValueKind as FormComponentValueKind, FormConfigLike, IdPath, JsonEditorEvent, JsonValidationResult, LayoutChange, LayoutResult, Operation, Path, PathWithIndex, PraxisFormActionEvent, RemovePolicy, ValidationReport, ValueKind$1 as ValueKind };
|
|
1919
|
+
export type { CanvasElement, CanvasElementType, CanvasPathPart, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, DynamicFieldRenderErrorEvent, DynamicFormApplyPlan, DynamicFormAuthoringDocument, DynamicFormBindings, DynamicFormContextSnapshot, DynamicFormMode, DynamicFormPresentationSnapshot, DynamicFormProjectionContext, DynamicFormResolvedRuntimeContract, DynamicFormRuntimeContext, DynamicFormRuntimeValueSource, DynamicFormSchemaPrefsSnapshot, DynamicFormValidationContext, EditorDiagnostic, EditorDocument, FieldPath, FieldPathContainer, FieldPathWithIndex, Capability as FormComponentCapability, CapabilityCatalog as FormComponentCapabilityCatalog, CapabilityCategory as FormComponentCapabilityCategory, ValueKind as FormComponentValueKind, FormConfigLike, IdPath, JsonEditorEvent, JsonValidationResult, LayoutChange, LayoutResult, Operation, Path, PathWithIndex, PraxisFormActionEvent, RemovePolicy, ValidationReport, ValueKind$1 as ValueKind };
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.0",
|
|
4
4
|
"description": "Angular dynamic form engine for Praxis UI: metadata-driven forms, hooks, and services integrating @praxisui/* packages.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
8
|
"@angular/cdk": "^20.0.0",
|
|
9
|
-
"@praxisui/settings-panel": "^
|
|
10
|
-
"@praxisui/visual-builder": "^
|
|
11
|
-
"@praxisui/
|
|
12
|
-
"@praxisui/
|
|
13
|
-
"@praxisui/core": "^3.0.0-beta.9",
|
|
14
|
-
"@praxisui/cron-builder": "^3.0.0-beta.9"
|
|
9
|
+
"@praxisui/settings-panel": "^5.0.0-beta.0",
|
|
10
|
+
"@praxisui/visual-builder": "^5.0.0-beta.0",
|
|
11
|
+
"@praxisui/core": "^5.0.0-beta.0",
|
|
12
|
+
"@praxisui/cron-builder": "^5.0.0-beta.0"
|
|
15
13
|
},
|
|
16
14
|
"dependencies": {
|
|
17
15
|
"tslib": "^2.3.0",
|