@praxisui/dynamic-form 9.0.0-beta.8 → 9.0.0-beta.81
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 +199 -2
- package/ai/component-registry.json +15336 -0
- package/docs/dynamic-form-visual-builder-parity-audit.md +268 -0
- package/docs/schema-driven-layout-materialization-rfc.md +497 -0
- package/fesm2022/{praxisui-dynamic-form-dynamic-form-agentic-authoring-turn-flow-CmFfx-VR.mjs → praxisui-dynamic-form-dynamic-form-agentic-authoring-turn-flow-w9V0aQ9B.mjs} +205 -22
- package/fesm2022/praxisui-dynamic-form.mjs +4693 -820
- package/package.json +13 -9
- package/src/lib/config-editor/praxis-dynamic-form-config-editor.json-api.md +8 -6
- package/src/lib/praxis-dynamic-form.json-api.md +40 -7
- package/types/praxisui-dynamic-form.d.ts +163 -30
|
@@ -7,13 +7,15 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
7
7
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
8
8
|
import { CdkDragStart, CdkDragMove, CdkDragEnd, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
9
9
|
import * as _praxisui_core from '@praxisui/core';
|
|
10
|
-
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormLayoutItem, FormActionButton, AiCapability, BackConfig, RichBlockHostCapabilities, ApiEndpoint, ApiUrlEntry, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, RichContentDocument, JsonLogicRecord, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, JsonLogicExpression, GlobalActionCatalogEntry, PraxisRuntimeConditionalEffectRule, PraxisRuntimeGlobalActionEffect, GlobalActionField, FieldDefinition, ComponentDocMeta, Breakpoint, DomainRuleRequestOptions, DomainRuleService, DomainRuleMaterialization, IconPickerService, GlobalActionRef,
|
|
10
|
+
import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormConfigWithSections, FormLayoutItem, FormActionButton, AiCapability, BackConfig, FormPresentationConfig, RichBlockHostCapabilities, ApiEndpoint, ApiUrlEntry, DynamicFormLayoutPolicy, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, RichContentDocument, JsonLogicRecord, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, EnterpriseRuntimeContextService, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, JsonLogicExpression, FormHelpPresentationConfig, GlobalActionCatalogEntry, PraxisRuntimeConditionalEffectRule, PraxisRuntimeGlobalActionEffect, SurfaceOpenPayload, GlobalActionField, PraxisEffectPolicy, FieldDefinition, ComponentDocMeta, Breakpoint, DomainRuleRequestOptions, DomainRuleService, DomainRuleMaterialization, TableConfig, IconPickerService, GlobalActionRef, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
11
11
|
import * as rxjs from 'rxjs';
|
|
12
12
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
13
13
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
14
14
|
import { BaseAiAdapter, AiResponseCompileResult, PatchResult, PraxisAssistantShellLayout, PraxisAssistantTurnViewState, PraxisAssistantShellLabels, PraxisAssistantSessionSnapshot, PraxisAssistantShellQuickReply, PraxisAssistantShellMessage } from '@praxisui/ai';
|
|
15
15
|
import { KeyboardShortcutService } from '@praxisui/dynamic-fields';
|
|
16
16
|
import { RuleBuilderConfig, RuleBuilderState } from '@praxisui/visual-builder';
|
|
17
|
+
import { CascadeManagerTabComponent } from '@praxisui/metadata-editor';
|
|
18
|
+
import * as _praxisui_dynamic_form from '@praxisui/dynamic-form';
|
|
17
19
|
|
|
18
20
|
declare class FormLayoutService {
|
|
19
21
|
private storage?;
|
|
@@ -146,7 +148,7 @@ interface Operation {
|
|
|
146
148
|
[key: string]: any;
|
|
147
149
|
}
|
|
148
150
|
interface LayoutResult {
|
|
149
|
-
config:
|
|
151
|
+
config: FormConfigWithSections;
|
|
150
152
|
op: Operation;
|
|
151
153
|
}
|
|
152
154
|
interface LayoutChange {
|
|
@@ -200,16 +202,20 @@ interface InsertLocalFieldResult extends LayoutResult {
|
|
|
200
202
|
applied: boolean;
|
|
201
203
|
diagnostics: LocalFieldInsertionDiagnostic[];
|
|
202
204
|
}
|
|
205
|
+
type DynamicFormGeneratedLayoutPreset = 'default' | 'compactPresentation';
|
|
206
|
+
interface GenerateFormConfigFromMetadataOptions {
|
|
207
|
+
fieldsPerRow?: number;
|
|
208
|
+
defaultSectionTitle?: string;
|
|
209
|
+
layoutPreset?: DynamicFormGeneratedLayoutPreset;
|
|
210
|
+
presentationRoleMap?: Record<string, string>;
|
|
211
|
+
}
|
|
203
212
|
declare class DynamicFormLayoutService {
|
|
204
213
|
private readonly changesSubject;
|
|
205
214
|
readonly changes$: rxjs.Observable<LayoutChange>;
|
|
206
215
|
private emit;
|
|
207
|
-
normalizeConfig(config: FormConfig):
|
|
216
|
+
normalizeConfig(config: FormConfig): FormConfigWithSections;
|
|
208
217
|
validateConfig(config: FormConfig): ValidationReport;
|
|
209
|
-
generateFormConfigFromMetadata(fields: FieldMetadata[], options?:
|
|
210
|
-
fieldsPerRow?: number;
|
|
211
|
-
defaultSectionTitle?: string;
|
|
212
|
-
}): FormConfig;
|
|
218
|
+
generateFormConfigFromMetadata(fields: FieldMetadata[], options?: GenerateFormConfigFromMetadataOptions): FormConfigWithSections;
|
|
213
219
|
getElementPath(config: FormConfig, element: HTMLElement): CanvasPathPart[];
|
|
214
220
|
updateElement(config: FormConfig, path: CanvasPathPart[], updatedData: any, options?: {
|
|
215
221
|
correlationId?: string;
|
|
@@ -218,6 +224,15 @@ declare class DynamicFormLayoutService {
|
|
|
218
224
|
private resolvePath;
|
|
219
225
|
resolvePathByIds(config: FormConfig, ids: IdPath): FieldPath;
|
|
220
226
|
private createRowsFromFields;
|
|
227
|
+
private createCompactPresentationRowsFromFields;
|
|
228
|
+
private resolveCompactPresentationSpan;
|
|
229
|
+
private inferCompactPresentationSpan;
|
|
230
|
+
private clampGridSpan;
|
|
231
|
+
private resolveGroupOrder;
|
|
232
|
+
private withCompactPresentationFieldDefaults;
|
|
233
|
+
private resolveFieldPresentationRole;
|
|
234
|
+
private resolvePresentationRole;
|
|
235
|
+
private normalizePresentationRole;
|
|
221
236
|
private genId;
|
|
222
237
|
private capitalizeFirstLetter;
|
|
223
238
|
private assertIndex;
|
|
@@ -471,6 +486,8 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
471
486
|
getCapabilities(): AiCapability[];
|
|
472
487
|
getTaskPresets(): Record<string, string[]>;
|
|
473
488
|
getRuntimeState(): Record<string, any>;
|
|
489
|
+
getDataProfile(): Record<string, any>;
|
|
490
|
+
getSchemaFields(): Record<string, any>[];
|
|
474
491
|
getAuthoringContext(): Record<string, any>;
|
|
475
492
|
compileAiResponse(response: Record<string, unknown>): AiResponseCompileResult | null;
|
|
476
493
|
createSnapshot(): FormConfig;
|
|
@@ -520,16 +537,7 @@ type DynamicFormMode = 'create' | 'edit' | 'view';
|
|
|
520
537
|
interface DynamicFormBindings {
|
|
521
538
|
mode?: DynamicFormMode;
|
|
522
539
|
}
|
|
523
|
-
|
|
524
|
-
labelPosition?: 'above' | 'left';
|
|
525
|
-
labelFontSize?: number | null;
|
|
526
|
-
valueFontSize?: number | null;
|
|
527
|
-
compact?: boolean;
|
|
528
|
-
density?: 'comfortable' | 'cozy' | 'compact';
|
|
529
|
-
labelWidth?: number | null;
|
|
530
|
-
labelAlign?: 'start' | 'center' | 'end';
|
|
531
|
-
valueAlign?: 'start' | 'center' | 'end';
|
|
532
|
-
}
|
|
540
|
+
type DynamicFormPresentationSnapshot = FormPresentationConfig;
|
|
533
541
|
interface DynamicFormSchemaPrefsSnapshot {
|
|
534
542
|
notifyIfOutdated?: 'inline' | 'snackbar' | 'both' | 'none';
|
|
535
543
|
snoozeMs?: number;
|
|
@@ -683,9 +691,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
683
691
|
private hooksRegistry?;
|
|
684
692
|
private hookPresets?;
|
|
685
693
|
private logger?;
|
|
694
|
+
private enterpriseRuntimeContext?;
|
|
686
695
|
private readonly i18n;
|
|
687
696
|
private readonly injector;
|
|
688
|
-
private readonly
|
|
697
|
+
private readonly agenticTurnClient;
|
|
689
698
|
private readonly assistantSessions;
|
|
690
699
|
private readonly aiTurnOrchestrator;
|
|
691
700
|
private readonly jsonLogic;
|
|
@@ -697,7 +706,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
697
706
|
private effectiveActionsCacheOverride?;
|
|
698
707
|
private invalidRequiredFieldLabelsCache;
|
|
699
708
|
private invalidRequiredFieldLabelsSignature;
|
|
700
|
-
|
|
709
|
+
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
701
710
|
resourcePath?: string;
|
|
702
711
|
resourceId?: string | number;
|
|
703
712
|
initialValue?: Record<string, unknown> | null;
|
|
@@ -757,6 +766,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
757
766
|
configPersistenceStrategy: 'local-first' | 'input-first';
|
|
758
767
|
/** Optional layout to use instead of generated one */
|
|
759
768
|
layout?: FormLayout;
|
|
769
|
+
/** Metadata-driven layout preset used only when creating an initial config from schema. */
|
|
770
|
+
generatedLayoutPreset: DynamicFormGeneratedLayoutPreset;
|
|
771
|
+
/** Opt-in policy for schema-driven transient layout materialization. */
|
|
772
|
+
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
760
773
|
/** Optional navigation back config (from CRUD host) */
|
|
761
774
|
backConfig?: BackConfig;
|
|
762
775
|
/** Optional direct hooks declaration for testing/demo (overrides config.hooks) */
|
|
@@ -777,6 +790,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
777
790
|
disabledModeGlobal: boolean | null;
|
|
778
791
|
presentationModeGlobal: boolean | null;
|
|
779
792
|
visibleGlobal: boolean | null;
|
|
793
|
+
fieldIconPolicy: 'all' | 'presentation-only' | 'none';
|
|
780
794
|
/** Opt-in loader for shared domain rule materializations persisted outside FormConfig. */
|
|
781
795
|
domainRules: PraxisDynamicFormDomainRulesOptions | boolean | null;
|
|
782
796
|
get effectivePresentation(): boolean;
|
|
@@ -786,6 +800,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
786
800
|
get invalidRequiredFieldLabels(): string[];
|
|
787
801
|
/** Value propagated to DynamicFieldLoader; null allows per-field metadata */
|
|
788
802
|
get presentationForLoader(): boolean | null;
|
|
803
|
+
getRenderableFieldsForLoader(fields: FieldMetadata[]): FieldMetadata[];
|
|
804
|
+
private materializeFieldPresentationPolicy;
|
|
805
|
+
private shouldMaterializeBooleanControl;
|
|
806
|
+
private materializeFieldHelpPolicy;
|
|
807
|
+
private shouldSuppressFieldIcons;
|
|
808
|
+
private resolveFieldHelpDisplay;
|
|
809
|
+
private normalizeFieldHelpControlToken;
|
|
789
810
|
/** Custom endpoints for CRUD operations */
|
|
790
811
|
private _customEndpoints;
|
|
791
812
|
get customEndpoints(): EndpointConfig;
|
|
@@ -852,6 +873,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
852
873
|
protected entityHydrationPending: boolean;
|
|
853
874
|
private schemaCache;
|
|
854
875
|
private lastSchemaMeta?;
|
|
876
|
+
private readonly schemaMetaPersistenceQueues;
|
|
877
|
+
private readonly formConfigPersistenceQueues;
|
|
878
|
+
private readonly formConfigPersistenceGenerations;
|
|
879
|
+
private readonly formConfigConflictBlockThrough;
|
|
855
880
|
private schemaRootHooks?;
|
|
856
881
|
private destroy$;
|
|
857
882
|
private formValueChangesSubscription;
|
|
@@ -937,7 +962,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
937
962
|
private mountAnimationTimer;
|
|
938
963
|
protected isMounting: boolean;
|
|
939
964
|
private hasBuiltFormFromConfig;
|
|
940
|
-
|
|
965
|
+
private runtimeFieldMetadata;
|
|
966
|
+
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, enterpriseRuntimeContext?: EnterpriseRuntimeContextService | undefined);
|
|
941
967
|
private emitLoadingState;
|
|
942
968
|
private buildLoadingContext;
|
|
943
969
|
private beginLoading;
|
|
@@ -964,9 +990,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
964
990
|
private formInputsKey;
|
|
965
991
|
private crudBackKey;
|
|
966
992
|
private tryInitializeForm;
|
|
967
|
-
|
|
993
|
+
hasExplicitSchemaUrl(): boolean;
|
|
968
994
|
private hasSchemaBackedRuntime;
|
|
969
|
-
|
|
995
|
+
hasRenderableConfig(config?: FormConfig | null | undefined): boolean;
|
|
970
996
|
private initializeStandaloneConfig;
|
|
971
997
|
private initializeDisconnectedEmptyState;
|
|
972
998
|
private reloadForModeChange;
|
|
@@ -981,10 +1007,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
981
1007
|
private persistFormConfig;
|
|
982
1008
|
private createDefaultConfig;
|
|
983
1009
|
private createConfigFromHostConfig;
|
|
1010
|
+
private shouldUseSchemaLayoutPolicy;
|
|
1011
|
+
private layoutPolicyRequestsPresentation;
|
|
1012
|
+
private shouldPersistGeneratedConfig;
|
|
1013
|
+
private createSchemaMaterializedConfig;
|
|
984
1014
|
private reconcileLoadedConfigWithServerSchema;
|
|
985
1015
|
private hostConfigHasAuthoredLocalFieldsNotInLocalConfig;
|
|
986
1016
|
private syncWithServer;
|
|
987
1017
|
private loadEntity;
|
|
1018
|
+
private hydrateEntityFromInitialValue;
|
|
1019
|
+
private flushEntityHydrationState;
|
|
988
1020
|
private buildFormFromConfig;
|
|
989
1021
|
private resetFormValueChangesSubscription;
|
|
990
1022
|
private resetDependencyPolicySubscription;
|
|
@@ -997,6 +1029,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
997
1029
|
private setEntityLookupDependencyConflict;
|
|
998
1030
|
private clearEntityLookupDependencyConflict;
|
|
999
1031
|
private resolveEntityLookupDependencyValidationMessage;
|
|
1032
|
+
private getRuntimeFieldMetadata;
|
|
1033
|
+
private resolveFieldAccessAuthorities;
|
|
1034
|
+
private normalizeAuthorityClaims;
|
|
1035
|
+
private materializeFieldAccessState;
|
|
1000
1036
|
private scheduleValueChangeBootstrapRelease;
|
|
1001
1037
|
private hasInteractiveFormState;
|
|
1002
1038
|
private captureFormRuntimeState;
|
|
@@ -1112,6 +1148,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1112
1148
|
items?: FormLayoutItem[];
|
|
1113
1149
|
id?: string;
|
|
1114
1150
|
}): FieldMetadata[];
|
|
1151
|
+
private isFieldRenderableInLayout;
|
|
1115
1152
|
getRichContentLayoutItemDocument(item: FormLayoutItem): RichContentDocument | null;
|
|
1116
1153
|
getRichContentLayoutItemLayout(item: FormLayoutItem): 'block' | 'inline';
|
|
1117
1154
|
private getVisualBlockRuleProps;
|
|
@@ -1136,12 +1173,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1136
1173
|
private _showConfirmationDialog;
|
|
1137
1174
|
onFormAction(event: PraxisFormActionEvent): void;
|
|
1138
1175
|
private dispatchRichContentAction;
|
|
1176
|
+
private emitRichContentCustomAction;
|
|
1139
1177
|
private isRichContentActionAvailable;
|
|
1140
1178
|
private hasRichContentCapability;
|
|
1141
1179
|
private buildRichContentActionContext;
|
|
1142
1180
|
private _executeAction;
|
|
1143
1181
|
private getFormActionEventId;
|
|
1144
1182
|
onSubmit(): Promise<void>;
|
|
1183
|
+
private applySubmitFieldErrors;
|
|
1184
|
+
private clearSubmitFieldErrors;
|
|
1185
|
+
private normalizeSubmitErrorTarget;
|
|
1145
1186
|
private navigateAfterSave;
|
|
1146
1187
|
private shouldConfirmCancelOnDirty;
|
|
1147
1188
|
/**
|
|
@@ -1198,6 +1239,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1198
1239
|
private getSchemaMetaKeyForSchemaId;
|
|
1199
1240
|
private getSchemaMetaKeyForContext;
|
|
1200
1241
|
private loadStoredSchemaMeta;
|
|
1242
|
+
private persistSchemaMeta;
|
|
1243
|
+
private enqueueSchemaMetaPersistence;
|
|
1244
|
+
private reconcileSchemaMetaPersistence;
|
|
1201
1245
|
private rememberSchemaMetaContext;
|
|
1202
1246
|
private isSameSchemaContext;
|
|
1203
1247
|
private isStoredSchemaMetaForContext;
|
|
@@ -1337,8 +1381,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1337
1381
|
private logRowGapsSnapshot;
|
|
1338
1382
|
private applyPresentationVars;
|
|
1339
1383
|
private applyPresentationConfig;
|
|
1340
|
-
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; }]>;
|
|
1341
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "initialValue": { "alias": "initialValue"; "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; }; "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; }; "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; }; "domainRules": { "alias": "domainRules"; "required": false; }; "customEndpoints": { "alias": "customEndpoints"; "required": false; }; }, { "formSubmit": "formSubmit"; "formCancel": "formCancel"; "formReset": "formReset"; "configChange": "configChange"; "configPatchChange": "configPatchChange"; "formReady": "formReady"; "valueChange": "valueChange"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "ruleDiagnosticsChange": "ruleDiagnosticsChange"; }, never, never, true, never>;
|
|
1384
|
+
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; }, { optional: true; }]>;
|
|
1385
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicForm, "praxis-dynamic-form", never, { "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceId": { "alias": "resourceId"; "required": false; }; "initialValue": { "alias": "initialValue"; "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; }; "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; }; "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; }; "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"; "syncCompleted": "syncCompleted"; "initializationError": "initializationError"; "loadingStateChange": "loadingStateChange"; "enableCustomizationChange": "enableCustomizationChange"; "customAction": "customAction"; "actionConfirmation": "actionConfirmation"; "schemaStatusChange": "schemaStatusChange"; "fieldRenderError": "fieldRenderError"; "ruleDiagnosticsChange": "ruleDiagnosticsChange"; }, never, never, true, never>;
|
|
1342
1386
|
}
|
|
1343
1387
|
|
|
1344
1388
|
declare class FormConfigService {
|
|
@@ -1393,6 +1437,7 @@ declare class JsonConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1393
1437
|
diagnostics: EditorDiagnostic[];
|
|
1394
1438
|
private destroy$;
|
|
1395
1439
|
private jsonTextChanges$;
|
|
1440
|
+
private readonly i18n;
|
|
1396
1441
|
constructor(cdr: ChangeDetectorRef, configService: FormConfigService);
|
|
1397
1442
|
ngOnInit(): void;
|
|
1398
1443
|
ngOnDestroy(): void;
|
|
@@ -1412,6 +1457,9 @@ declare class JsonConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1412
1457
|
private updateValidationState;
|
|
1413
1458
|
insertHooksTemplate(): void;
|
|
1414
1459
|
enableReactiveValidation(): void;
|
|
1460
|
+
tx(key: string, fallback: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
1461
|
+
private resolveI18n;
|
|
1462
|
+
private interpolateFallback;
|
|
1415
1463
|
static ɵfac: i0.ɵɵFactoryDeclaration<JsonConfigEditorComponent, never>;
|
|
1416
1464
|
static ɵcmp: i0.ɵɵComponentDeclaration<JsonConfigEditorComponent, "form-json-config-editor", never, { "config": { "alias": "config"; "required": false; }; "document": { "alias": "document"; "required": false; }; }, { "configChange": "configChange"; "documentChange": "documentChange"; "validationChange": "validationChange"; "editorEvent": "editorEvent"; }, never, never, true, never>;
|
|
1417
1465
|
}
|
|
@@ -1448,6 +1496,12 @@ interface FormRuleDiagnostics {
|
|
|
1448
1496
|
runtimeOnlyReason?: string;
|
|
1449
1497
|
}
|
|
1450
1498
|
|
|
1499
|
+
type ConfigEditorTabKey = 'general' | 'schema' | 'layout' | 'hooks' | 'presentation' | 'behavior' | 'hints' | 'actions' | 'rules' | 'cascades' | 'messages' | 'navigation' | 'json';
|
|
1500
|
+
interface ConfigEditorTabOption {
|
|
1501
|
+
key: ConfigEditorTabKey;
|
|
1502
|
+
index: number;
|
|
1503
|
+
label: string;
|
|
1504
|
+
}
|
|
1451
1505
|
interface CommandRulePreviewModel {
|
|
1452
1506
|
state: 'ready' | 'invalid';
|
|
1453
1507
|
executionMode: 'preview-only';
|
|
@@ -1456,11 +1510,11 @@ interface CommandRulePreviewModel {
|
|
|
1456
1510
|
payload?: unknown;
|
|
1457
1511
|
payloadExpr?: string;
|
|
1458
1512
|
policy: {
|
|
1459
|
-
trigger: '
|
|
1513
|
+
trigger: NonNullable<PraxisEffectPolicy['trigger']>;
|
|
1460
1514
|
distinct: boolean;
|
|
1461
1515
|
distinctBy?: string;
|
|
1462
1516
|
runOnInitialEvaluation?: boolean;
|
|
1463
|
-
}
|
|
1517
|
+
} & Omit<PraxisEffectPolicy, 'trigger' | 'distinct' | 'distinctBy' | 'runOnInitialEvaluation'>;
|
|
1464
1518
|
diagnostics: string[];
|
|
1465
1519
|
}
|
|
1466
1520
|
declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, OnInit, OnDestroy {
|
|
@@ -1469,10 +1523,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1469
1523
|
private settingsPanel;
|
|
1470
1524
|
private cdr;
|
|
1471
1525
|
jsonEditor?: JsonConfigEditorComponent;
|
|
1526
|
+
cascadeManager?: CascadeManagerTabComponent;
|
|
1472
1527
|
editedConfig: FormConfig;
|
|
1473
1528
|
ruleBuilderConfig: RuleBuilderConfig;
|
|
1474
1529
|
ruleBuilderState?: RuleBuilderState;
|
|
1475
1530
|
currentRules: FormLayoutRule[];
|
|
1531
|
+
selectedConfigTabIndex: number;
|
|
1476
1532
|
selectedCommandRuleId: string;
|
|
1477
1533
|
commandRuleCondition: JsonLogicExpression | null;
|
|
1478
1534
|
commandRuleConditionJson: string;
|
|
@@ -1482,6 +1538,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1482
1538
|
commandRuleDistinct: boolean;
|
|
1483
1539
|
commandRuleDistinctBy: string;
|
|
1484
1540
|
commandRuleRunOnInitialEvaluation: boolean;
|
|
1541
|
+
private commandRulePolicyTrigger;
|
|
1542
|
+
private commandRuleAdvancedPolicy;
|
|
1485
1543
|
commandRuleAuthoringError: string | null;
|
|
1486
1544
|
commandRulePayloadFieldErrors: Record<string, string>;
|
|
1487
1545
|
ruleDiagnostics: FormRuleDiagnostics[];
|
|
@@ -1507,10 +1565,10 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1507
1565
|
private readonly editorMode;
|
|
1508
1566
|
isPresentationMode: boolean;
|
|
1509
1567
|
truncatePreview: boolean;
|
|
1510
|
-
previewItems: {
|
|
1568
|
+
previewItems: Array<{
|
|
1511
1569
|
label: string;
|
|
1512
1570
|
value: string;
|
|
1513
|
-
}
|
|
1571
|
+
}>;
|
|
1514
1572
|
presentationPrefs: {
|
|
1515
1573
|
labelPosition: 'above' | 'left';
|
|
1516
1574
|
labelFontSize?: number | null;
|
|
@@ -1523,6 +1581,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1523
1581
|
};
|
|
1524
1582
|
/** Ensure hints object exists (normalized upstream) */
|
|
1525
1583
|
private ensureHints;
|
|
1584
|
+
get helpPresentationDraft(): Required<FormHelpPresentationConfig>;
|
|
1585
|
+
onHelpPresentationDisplayChange(display: FormHelpPresentationConfig['display']): void;
|
|
1586
|
+
onHelpPresentationInlineMaxLengthChange(inlineMaxLength: number | string | null): void;
|
|
1587
|
+
private updateHelpPresentation;
|
|
1588
|
+
getHelpPreferPopoverControlsText(): string;
|
|
1589
|
+
onHelpPreferPopoverControlsChange(value: string): void;
|
|
1526
1590
|
schemaPrefs: {
|
|
1527
1591
|
notifyIfOutdated: 'inline' | 'snackbar' | 'both' | 'none';
|
|
1528
1592
|
snoozeMs: number;
|
|
@@ -1538,13 +1602,19 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1538
1602
|
private hasProcessedInitialRuleState;
|
|
1539
1603
|
private jsonEditorIsValid;
|
|
1540
1604
|
private globalActionValidationIssues;
|
|
1605
|
+
private readonly i18n;
|
|
1541
1606
|
readonly globalActionCatalog: GlobalActionCatalogEntry[];
|
|
1542
1607
|
isDirty$: BehaviorSubject<boolean>;
|
|
1543
1608
|
isValid$: BehaviorSubject<boolean>;
|
|
1544
1609
|
isBusy$: BehaviorSubject<boolean>;
|
|
1545
1610
|
private lastRulesSignature;
|
|
1611
|
+
private pendingRulePropertiesStateSignature;
|
|
1546
1612
|
private readonly DEBUG;
|
|
1547
1613
|
private debugLog;
|
|
1614
|
+
get configTabOptions(): ConfigEditorTabOption[];
|
|
1615
|
+
configTabLabel(key: ConfigEditorTabKey): string;
|
|
1616
|
+
private buildPresentationPreviewItems;
|
|
1617
|
+
getConfigTabIndex(key: ConfigEditorTabKey): number;
|
|
1548
1618
|
constructor(storage: AsyncConfigStorage, configService: FormConfigService, settingsPanel: SettingsPanelService, cdr: ChangeDetectorRef, globalActionCatalogSource?: ReadonlyArray<GlobalActionCatalogEntry[]>, injectedData?: any);
|
|
1549
1619
|
ngOnInit(): void;
|
|
1550
1620
|
reset(): void;
|
|
@@ -1571,6 +1641,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1571
1641
|
applyCommandRule(): void;
|
|
1572
1642
|
deleteCommandRule(): void;
|
|
1573
1643
|
get commandRuleActionSchema(): _praxisui_core.GlobalActionUiSchema | undefined;
|
|
1644
|
+
get commandRuleSurfaceOpenPayload(): SurfaceOpenPayload;
|
|
1574
1645
|
shouldShowCommandActionField(field: GlobalActionField): boolean;
|
|
1575
1646
|
isCommandActionFieldRequired(field: GlobalActionField): boolean;
|
|
1576
1647
|
isCommandActionFieldMissing(field: GlobalActionField): boolean;
|
|
@@ -1579,12 +1650,15 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1579
1650
|
get commandRulePreview(): CommandRulePreviewModel;
|
|
1580
1651
|
getCommandActionFieldValue(field: GlobalActionField): any;
|
|
1581
1652
|
onCommandActionFieldChange(field: GlobalActionField, value: any): void;
|
|
1653
|
+
onCommandSurfaceOpenPayloadChange(payload: SurfaceOpenPayload): void;
|
|
1582
1654
|
private initializeCommandRuleEditor;
|
|
1583
1655
|
private loadCommandRuleEditor;
|
|
1656
|
+
private buildCommandRulePolicy;
|
|
1584
1657
|
private updateCommandRules;
|
|
1585
1658
|
private parseCommandRuleCondition;
|
|
1586
1659
|
private parseOptionalJson;
|
|
1587
1660
|
private parseCommandPayloadObject;
|
|
1661
|
+
private getCommandRuleErrorMessage;
|
|
1588
1662
|
private collectCommandActionFieldValues;
|
|
1589
1663
|
private setCommandActionFieldError;
|
|
1590
1664
|
private clearCommandActionFieldError;
|
|
@@ -1596,6 +1670,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1596
1670
|
getRuleStatusTone(diagnostic: FormRuleDiagnostics): 'ok' | 'warn' | 'error';
|
|
1597
1671
|
canAcceptPendingLlmRule(diagnostic: FormRuleDiagnostics): boolean;
|
|
1598
1672
|
canApplyRulePropertyFix(diagnostic: FormRuleDiagnostics): boolean;
|
|
1673
|
+
canOpenRuleJsonReview(diagnostic: FormRuleDiagnostics): boolean;
|
|
1674
|
+
openRuleJsonReview(ruleId: string): void;
|
|
1599
1675
|
applyRulePropertyFix(ruleId: string): void;
|
|
1600
1676
|
acceptPendingLlmRule(ruleId: string): void;
|
|
1601
1677
|
getRuleDiagnosticDetails(diagnostic: FormRuleDiagnostics): string[];
|
|
@@ -1628,6 +1704,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1628
1704
|
onLayoutSelect(event: any): void;
|
|
1629
1705
|
private openColumnEditor;
|
|
1630
1706
|
onCascadeApply(patch: Record<string, Partial<FieldDefinition>>): void;
|
|
1707
|
+
private syncCascadeManagerFields;
|
|
1631
1708
|
private stripLegacy;
|
|
1632
1709
|
private computeRulesSignature;
|
|
1633
1710
|
restoreHintsDefaults(): void;
|
|
@@ -1641,6 +1718,9 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1641
1718
|
private toPresentationSnapshot;
|
|
1642
1719
|
private toSchemaPrefsSnapshot;
|
|
1643
1720
|
private toBackConfigSnapshot;
|
|
1721
|
+
tx(key: string, fallback: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
1722
|
+
private resolveI18n;
|
|
1723
|
+
private interpolateFallback;
|
|
1644
1724
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicFormConfigEditor, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
1645
1725
|
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicFormConfigEditor, "praxis-dynamic-form-config-editor", never, {}, {}, never, never, true, never>;
|
|
1646
1726
|
}
|
|
@@ -1829,6 +1909,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
1829
1909
|
chromeToggles: string[];
|
|
1830
1910
|
get borderEnabled(): boolean;
|
|
1831
1911
|
get dividerEnabled(): boolean;
|
|
1912
|
+
get layoutSections(): FormSection[];
|
|
1832
1913
|
canApplyAll(): boolean;
|
|
1833
1914
|
applyGapToAll(): void;
|
|
1834
1915
|
ngOnInit(): void;
|
|
@@ -1953,6 +2034,7 @@ declare class RowConfiguratorComponent implements OnChanges {
|
|
|
1953
2034
|
activeDropIndex: number | null;
|
|
1954
2035
|
protected readonly visualBlockPresets: readonly VisualBlockPreset[];
|
|
1955
2036
|
private readonly i18n;
|
|
2037
|
+
private readonly dialog;
|
|
1956
2038
|
private hoverTimer;
|
|
1957
2039
|
protected readonly breakpoints: Breakpoint[];
|
|
1958
2040
|
previewBreakpoint: Breakpoint;
|
|
@@ -2105,6 +2187,50 @@ declare class DomainRuleFormRulesService {
|
|
|
2105
2187
|
static ɵprov: i0.ɵɵInjectableDeclaration<DomainRuleFormRulesService>;
|
|
2106
2188
|
}
|
|
2107
2189
|
|
|
2190
|
+
declare class Ergadm00034CompactPresentationExampleComponent {
|
|
2191
|
+
private readonly dynamicLayout;
|
|
2192
|
+
readonly legacyFrequencyExample: _praxisui_dynamic_form.Ergadm00034CompactPresentationExample;
|
|
2193
|
+
readonly legacyFrequencyPresentationConfig: _praxisui_core.FormConfig;
|
|
2194
|
+
readonly legacyFrequencyInitialValue: Record<string, unknown>;
|
|
2195
|
+
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.Ergadm00034LegacyFrequencyRow[];
|
|
2196
|
+
readonly corporatePresentationExample: _praxisui_dynamic_form.CorporatePresentationExample;
|
|
2197
|
+
readonly corporatePresentationConfig: _praxisui_core.FormConfig;
|
|
2198
|
+
readonly corporatePresentationInitialValue: Record<string, unknown>;
|
|
2199
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Ergadm00034CompactPresentationExampleComponent, never>;
|
|
2200
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Ergadm00034CompactPresentationExampleComponent, "praxis-ergadm00034-compact-presentation-example", never, {}, {}, never, never, true, never>;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
interface Ergadm00034LegacyFrequencyRow {
|
|
2204
|
+
tipo: string;
|
|
2205
|
+
codigo: string;
|
|
2206
|
+
nome: string;
|
|
2207
|
+
preenchimento: string;
|
|
2208
|
+
marcador: string;
|
|
2209
|
+
selected?: boolean;
|
|
2210
|
+
}
|
|
2211
|
+
interface Ergadm00034CompactPresentationExample {
|
|
2212
|
+
readonly id: 'ergadm00034-compact-presentation';
|
|
2213
|
+
readonly title: string;
|
|
2214
|
+
readonly resourcePath: string;
|
|
2215
|
+
readonly layoutPreset: 'compactPresentation';
|
|
2216
|
+
readonly rows: readonly Ergadm00034LegacyFrequencyRow[];
|
|
2217
|
+
readonly tableConfig: TableConfig;
|
|
2218
|
+
readonly metadata: readonly FieldMetadata[];
|
|
2219
|
+
readonly initialValue: Record<string, unknown>;
|
|
2220
|
+
}
|
|
2221
|
+
interface CorporatePresentationExample {
|
|
2222
|
+
readonly id: 'corporate-presentation-format-gallery';
|
|
2223
|
+
readonly title: string;
|
|
2224
|
+
readonly resourcePath: string;
|
|
2225
|
+
readonly layoutPreset: 'compactPresentation';
|
|
2226
|
+
readonly metadata: readonly FieldMetadata[];
|
|
2227
|
+
readonly initialValue: Record<string, unknown>;
|
|
2228
|
+
}
|
|
2229
|
+
declare const ERGADM00034_COMPACT_PRESENTATION_EXAMPLE: Ergadm00034CompactPresentationExample;
|
|
2230
|
+
declare const CORPORATE_PRESENTATION_FORMAT_GALLERY: CorporatePresentationExample;
|
|
2231
|
+
declare function buildErgadm00034CompactPresentationConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2232
|
+
declare function buildCorporatePresentationFormatGalleryConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2233
|
+
|
|
2108
2234
|
declare function isRuleSatisfied(rule: FormLayoutRule, data: unknown): boolean;
|
|
2109
2235
|
/**
|
|
2110
2236
|
* Applies all visibility rules to the provided data and
|
|
@@ -2171,6 +2297,7 @@ declare class CanvasToolbarComponent {
|
|
|
2171
2297
|
/** Estado interno para animar o fechamento. */
|
|
2172
2298
|
closing: boolean;
|
|
2173
2299
|
private readonly closeAnimMs;
|
|
2300
|
+
private readonly i18n;
|
|
2174
2301
|
toggleReadonly: EventEmitter<void>;
|
|
2175
2302
|
toggleRequired: EventEmitter<void>;
|
|
2176
2303
|
toggleHidden: EventEmitter<void>;
|
|
@@ -2188,6 +2315,7 @@ declare class CanvasToolbarComponent {
|
|
|
2188
2315
|
onGlobalKeydown(ev: KeyboardEvent): void;
|
|
2189
2316
|
/** Inicia animação de saída e emite o evento ao final. */
|
|
2190
2317
|
triggerClose(): void;
|
|
2318
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2191
2319
|
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasToolbarComponent, never>;
|
|
2192
2320
|
static ɵcmp: i0.ɵɵComponentDeclaration<CanvasToolbarComponent, "praxis-canvas-toolbar", never, { "selectedElement": { "alias": "selectedElement"; "required": false; }; }, { "editMetadata": "editMetadata"; "delete": "delete"; "moveUp": "moveUp"; "moveDown": "moveDown"; "selectPath": "selectPath"; "requestClose": "requestClose"; "toggleReadonly": "toggleReadonly"; "toggleRequired": "toggleRequired"; "toggleHidden": "toggleHidden"; "toggleDisabled": "toggleDisabled"; }, never, never, true, never>;
|
|
2193
2321
|
}
|
|
@@ -2345,6 +2473,7 @@ declare class RowEditorComponent implements OnInit, OnDestroy, SettingsValueProv
|
|
|
2345
2473
|
isBusy$: BehaviorSubject<boolean>;
|
|
2346
2474
|
private destroy$;
|
|
2347
2475
|
private initialValueSig;
|
|
2476
|
+
private readonly i18n;
|
|
2348
2477
|
constructor(fb: FormBuilder, data: {
|
|
2349
2478
|
row: EditableFormRow;
|
|
2350
2479
|
});
|
|
@@ -2353,10 +2482,12 @@ declare class RowEditorComponent implements OnInit, OnDestroy, SettingsValueProv
|
|
|
2353
2482
|
getSettingsValue(): any;
|
|
2354
2483
|
displayValue(value: number | null | undefined, fallback: string): string | number;
|
|
2355
2484
|
displayPxValue(value: number | null | undefined): string;
|
|
2485
|
+
visibilityStateLabel(bp: Breakpoint): string;
|
|
2356
2486
|
private setColumns;
|
|
2357
2487
|
applyPreset(preset: 'full' | 'half' | 'thirds' | 'thirdTwoThird' | 'twoThirdThird' | 'autoBalance'): void;
|
|
2358
2488
|
private resolveHiddenMode;
|
|
2359
2489
|
setHiddenMode(mode: 'none' | 'mobile' | 'desktop'): void;
|
|
2490
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2360
2491
|
static ɵfac: i0.ɵɵFactoryDeclaration<RowEditorComponent, never>;
|
|
2361
2492
|
static ɵcmp: i0.ɵɵComponentDeclaration<RowEditorComponent, "praxis-row-editor", never, {}, {}, never, never, true, never>;
|
|
2362
2493
|
}
|
|
@@ -2373,6 +2504,7 @@ declare class ColumnEditorComponent implements OnInit, OnDestroy, SettingsValueP
|
|
|
2373
2504
|
isBusy$: BehaviorSubject<boolean>;
|
|
2374
2505
|
private destroy$;
|
|
2375
2506
|
private _previewTimer;
|
|
2507
|
+
private readonly i18n;
|
|
2376
2508
|
constructor(fb: FormBuilder, data: {
|
|
2377
2509
|
column: FormColumn;
|
|
2378
2510
|
});
|
|
@@ -2396,6 +2528,7 @@ declare class ColumnEditorComponent implements OnInit, OnDestroy, SettingsValueP
|
|
|
2396
2528
|
resetResponsive(): void;
|
|
2397
2529
|
applyPreset(key: 'full' | 'half' | 'third' | 'twoThird' | 'centered' | 'narrowSidebar' | 'wideContent' | 'stackMobile' | 'hideMobile' | 'desktopOnly'): void;
|
|
2398
2530
|
toggleHiddenBp(bp: Breakpoint): void;
|
|
2531
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2399
2532
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnEditorComponent, never>;
|
|
2400
2533
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnEditorComponent, "praxis-column-editor", never, {}, {}, never, never, true, never>;
|
|
2401
2534
|
}
|
|
@@ -2634,5 +2767,5 @@ declare function buildDynamicFormRuleAuthoringContext(config: Pick<FormConfig, '
|
|
|
2634
2767
|
*/
|
|
2635
2768
|
declare const PRAXIS_DYNAMIC_FORM_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
2636
2769
|
|
|
2637
|
-
export { ActionsEditorComponent, CanvasStateService, CanvasToolbarComponent, ColumnEditorComponent, DomainRuleFormRulesService, DynamicFormLayoutService, FORM_AI_CAPABILITIES, FORM_COMPONENT_AI_CAPABILITIES, FieldConfiguratorComponent, FieldEditorComponent, FormConfigService, FormContextService, FormLayoutService, FormRulesService, JsonConfigEditorComponent, LayoutColorToken, LayoutEditorComponent, LayoutPrefsService, PRAXIS_DYNAMIC_FORM_AUTHORING_MANIFEST, PRAXIS_DYNAMIC_FORM_COMPONENT_METADATA, PRAXIS_FILTER_FORM_COMPONENT_METADATA, PraxisDynamicForm, PraxisDynamicFormConfigEditor, PraxisDynamicFormWidgetConfigEditor, PraxisFilterForm, PraxisFilterFormWidgetConfigEditor, PraxisFormActionsComponent, RowConfiguratorComponent, RowEditorComponent, SETTINGS_PANEL_DYNAMIC_FORM_PROVIDER, SectionEditorComponent, TASK_PRESETS, applyVisibilityRules, buildDynamicFormApplyPlan, buildDynamicFormRuleAuthoringContext, createDynamicFormAuthoringDocument, formLayoutRulesToBuilderState, getFormAiCatalog, getFormCapabilities, getFormEnum, isRuleSatisfied, normalizeDateArrays, normalizeDynamicFormAuthoringDocument, parseLegacyOrDynamicFormDocument, providePraxisDynamicFormMetadata, providePraxisFilterFormMetadata, provideSettingsPanelDynamicForm, ruleBuilderStateToFormLayoutRules, serializeDynamicFormAuthoringDocument, stripLegacyFieldMetadata, toCanonicalDynamicFormConfig, validateDynamicFormAuthoringDocument, validateDynamicFormAuthoringInput };
|
|
2638
|
-
export type { CanvasElement, CanvasElementType, CanvasPathPart, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, DomainRuleFormRulesRequestOptions, DomainRuleMaterializedFormLayoutRule, DynamicFieldRenderErrorEvent, DynamicFormAllowedRuleProperties, DynamicFormApplyPlan, DynamicFormAuthoringDocument, DynamicFormBindings, DynamicFormConfigPatchChangeEvent, DynamicFormContextSnapshot, DynamicFormMode, DynamicFormPresentationSnapshot, DynamicFormProjectionContext, DynamicFormResolvedRuntimeContract, DynamicFormRuleAuthoringContext, DynamicFormRuleAuthoringField, DynamicFormRuleAuthoringTarget, DynamicFormRuleAuthoringTargetDetails, DynamicFormRuleAuthoringTargets, DynamicFormRuleAuthoringVisualBlockNode, DynamicFormRuleTargetType, DynamicFormRuntimeContext, DynamicFormRuntimeValueSource, DynamicFormSchemaPrefsSnapshot, DynamicFormValidationContext, EditorDiagnostic, EditorDocument, FieldPath, FieldPathContainer, FieldPathWithIndex, Capability as FormComponentCapability, CapabilityCatalog as FormComponentCapabilityCatalog, CapabilityCategory as FormComponentCapabilityCategory, ValueKind as FormComponentValueKind, FormConfigLike, IdPath, InsertLocalFieldOptions, InsertLocalFieldResult, JsonEditorEvent, JsonValidationResult, LayoutChange, LayoutResult, LocalFieldInsertionDiagnostic, LocalFieldInsertionDiagnosticCode, Operation, Path, PathWithIndex, PraxisDynamicFormDomainRulesOptions, PraxisDynamicFormWidgetEditorInputs, PraxisDynamicFormWidgetEditorValue, PraxisFilterFormWidgetEditorInputs, PraxisFilterFormWidgetEditorValue, PraxisFormActionEvent, RemovePolicy, RuleApplicationContext, RuleApplicationDiagnostic, RuleApplicationDiagnosticCode, RuleApplicationResult, RuleApplicationTargetIndex, RuleApplicationTargetType, ValidationReport, ValueKind$1 as ValueKind };
|
|
2770
|
+
export { ActionsEditorComponent, CORPORATE_PRESENTATION_FORMAT_GALLERY, CanvasStateService, CanvasToolbarComponent, ColumnEditorComponent, DomainRuleFormRulesService, DynamicFormLayoutService, ERGADM00034_COMPACT_PRESENTATION_EXAMPLE, Ergadm00034CompactPresentationExampleComponent, FORM_AI_CAPABILITIES, FORM_COMPONENT_AI_CAPABILITIES, FieldConfiguratorComponent, FieldEditorComponent, FormConfigService, FormContextService, FormLayoutService, FormRulesService, JsonConfigEditorComponent, LayoutColorToken, LayoutEditorComponent, LayoutPrefsService, PRAXIS_DYNAMIC_FORM_AUTHORING_MANIFEST, PRAXIS_DYNAMIC_FORM_COMPONENT_METADATA, 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, buildErgadm00034CompactPresentationConfig, createDynamicFormAuthoringDocument, formLayoutRulesToBuilderState, getFormAiCatalog, getFormCapabilities, getFormEnum, isRuleSatisfied, normalizeDateArrays, normalizeDynamicFormAuthoringDocument, parseLegacyOrDynamicFormDocument, providePraxisDynamicFormMetadata, providePraxisFilterFormMetadata, provideSettingsPanelDynamicForm, ruleBuilderStateToFormLayoutRules, serializeDynamicFormAuthoringDocument, stripLegacyFieldMetadata, toCanonicalDynamicFormConfig, validateDynamicFormAuthoringDocument, validateDynamicFormAuthoringInput };
|
|
2771
|
+
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, DynamicFormMode, DynamicFormPresentationSnapshot, DynamicFormProjectionContext, DynamicFormResolvedRuntimeContract, DynamicFormRuleAuthoringContext, DynamicFormRuleAuthoringField, DynamicFormRuleAuthoringTarget, DynamicFormRuleAuthoringTargetDetails, DynamicFormRuleAuthoringTargets, DynamicFormRuleAuthoringVisualBlockNode, DynamicFormRuleTargetType, DynamicFormRuntimeContext, DynamicFormRuntimeValueSource, DynamicFormSchemaPrefsSnapshot, DynamicFormValidationContext, EditorDiagnostic, EditorDocument, Ergadm00034CompactPresentationExample, Ergadm00034LegacyFrequencyRow, FieldPath, FieldPathContainer, FieldPathWithIndex, Capability as FormComponentCapability, CapabilityCatalog as FormComponentCapabilityCatalog, CapabilityCategory as FormComponentCapabilityCategory, ValueKind as FormComponentValueKind, FormConfigLike, GenerateFormConfigFromMetadataOptions, IdPath, InsertLocalFieldOptions, InsertLocalFieldResult, JsonEditorEvent, JsonValidationResult, LayoutChange, LayoutResult, LocalFieldInsertionDiagnostic, LocalFieldInsertionDiagnosticCode, Operation, Path, PathWithIndex, PraxisDynamicFormDomainRulesOptions, PraxisDynamicFormWidgetEditorInputs, PraxisDynamicFormWidgetEditorValue, PraxisFilterFormWidgetEditorInputs, PraxisFilterFormWidgetEditorValue, PraxisFormActionEvent, RemovePolicy, RuleApplicationContext, RuleApplicationDiagnostic, RuleApplicationDiagnosticCode, RuleApplicationResult, RuleApplicationTargetIndex, RuleApplicationTargetType, ValidationReport, ValueKind$1 as ValueKind };
|