@praxisui/dynamic-form 9.0.0-beta.9 → 9.0.0-rc.1
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 +210 -2
- package/ai/component-registry.json +15640 -0
- package/docs/dynamic-form-visual-builder-parity-audit.md +268 -0
- package/docs/schema-driven-layout-materialization-rfc.md +498 -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 +4902 -1011
- 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 +42 -9
- package/types/praxisui-dynamic-form.d.ts +168 -31
|
@@ -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?;
|
|
@@ -71,6 +73,7 @@ type RuleApplicationTargetType = NonNullable<FormLayoutRule['targetType']>;
|
|
|
71
73
|
type RuleApplicationTargetIndex = Partial<Record<RuleApplicationTargetType, ReadonlySet<string>>>;
|
|
72
74
|
interface RuleApplicationContext {
|
|
73
75
|
targetIndex?: RuleApplicationTargetIndex;
|
|
76
|
+
nowUtc?: string;
|
|
74
77
|
}
|
|
75
78
|
declare class FormRulesService {
|
|
76
79
|
private readonly jsonLogic;
|
|
@@ -146,7 +149,7 @@ interface Operation {
|
|
|
146
149
|
[key: string]: any;
|
|
147
150
|
}
|
|
148
151
|
interface LayoutResult {
|
|
149
|
-
config:
|
|
152
|
+
config: FormConfigWithSections;
|
|
150
153
|
op: Operation;
|
|
151
154
|
}
|
|
152
155
|
interface LayoutChange {
|
|
@@ -200,16 +203,20 @@ interface InsertLocalFieldResult extends LayoutResult {
|
|
|
200
203
|
applied: boolean;
|
|
201
204
|
diagnostics: LocalFieldInsertionDiagnostic[];
|
|
202
205
|
}
|
|
206
|
+
type DynamicFormGeneratedLayoutPreset = 'default' | 'compactPresentation';
|
|
207
|
+
interface GenerateFormConfigFromMetadataOptions {
|
|
208
|
+
fieldsPerRow?: number;
|
|
209
|
+
defaultSectionTitle?: string;
|
|
210
|
+
layoutPreset?: DynamicFormGeneratedLayoutPreset;
|
|
211
|
+
presentationRoleMap?: Record<string, string>;
|
|
212
|
+
}
|
|
203
213
|
declare class DynamicFormLayoutService {
|
|
204
214
|
private readonly changesSubject;
|
|
205
215
|
readonly changes$: rxjs.Observable<LayoutChange>;
|
|
206
216
|
private emit;
|
|
207
|
-
normalizeConfig(config: FormConfig):
|
|
217
|
+
normalizeConfig(config: FormConfig): FormConfigWithSections;
|
|
208
218
|
validateConfig(config: FormConfig): ValidationReport;
|
|
209
|
-
generateFormConfigFromMetadata(fields: FieldMetadata[], options?:
|
|
210
|
-
fieldsPerRow?: number;
|
|
211
|
-
defaultSectionTitle?: string;
|
|
212
|
-
}): FormConfig;
|
|
219
|
+
generateFormConfigFromMetadata(fields: FieldMetadata[], options?: GenerateFormConfigFromMetadataOptions): FormConfigWithSections;
|
|
213
220
|
getElementPath(config: FormConfig, element: HTMLElement): CanvasPathPart[];
|
|
214
221
|
updateElement(config: FormConfig, path: CanvasPathPart[], updatedData: any, options?: {
|
|
215
222
|
correlationId?: string;
|
|
@@ -218,6 +225,15 @@ declare class DynamicFormLayoutService {
|
|
|
218
225
|
private resolvePath;
|
|
219
226
|
resolvePathByIds(config: FormConfig, ids: IdPath): FieldPath;
|
|
220
227
|
private createRowsFromFields;
|
|
228
|
+
private createCompactPresentationRowsFromFields;
|
|
229
|
+
private resolveCompactPresentationSpan;
|
|
230
|
+
private inferCompactPresentationSpan;
|
|
231
|
+
private clampGridSpan;
|
|
232
|
+
private resolveGroupOrder;
|
|
233
|
+
private withCompactPresentationFieldDefaults;
|
|
234
|
+
private resolveFieldPresentationRole;
|
|
235
|
+
private resolvePresentationRole;
|
|
236
|
+
private normalizePresentationRole;
|
|
221
237
|
private genId;
|
|
222
238
|
private capitalizeFirstLetter;
|
|
223
239
|
private assertIndex;
|
|
@@ -471,6 +487,8 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
471
487
|
getCapabilities(): AiCapability[];
|
|
472
488
|
getTaskPresets(): Record<string, string[]>;
|
|
473
489
|
getRuntimeState(): Record<string, any>;
|
|
490
|
+
getDataProfile(): Record<string, any>;
|
|
491
|
+
getSchemaFields(): Record<string, any>[];
|
|
474
492
|
getAuthoringContext(): Record<string, any>;
|
|
475
493
|
compileAiResponse(response: Record<string, unknown>): AiResponseCompileResult | null;
|
|
476
494
|
createSnapshot(): FormConfig;
|
|
@@ -520,16 +538,7 @@ type DynamicFormMode = 'create' | 'edit' | 'view';
|
|
|
520
538
|
interface DynamicFormBindings {
|
|
521
539
|
mode?: DynamicFormMode;
|
|
522
540
|
}
|
|
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
|
-
}
|
|
541
|
+
type DynamicFormPresentationSnapshot = FormPresentationConfig;
|
|
533
542
|
interface DynamicFormSchemaPrefsSnapshot {
|
|
534
543
|
notifyIfOutdated?: 'inline' | 'snackbar' | 'both' | 'none';
|
|
535
544
|
snoozeMs?: number;
|
|
@@ -683,9 +692,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
683
692
|
private hooksRegistry?;
|
|
684
693
|
private hookPresets?;
|
|
685
694
|
private logger?;
|
|
695
|
+
private enterpriseRuntimeContext?;
|
|
686
696
|
private readonly i18n;
|
|
687
697
|
private readonly injector;
|
|
688
|
-
private readonly
|
|
698
|
+
private readonly agenticTurnClient;
|
|
689
699
|
private readonly assistantSessions;
|
|
690
700
|
private readonly aiTurnOrchestrator;
|
|
691
701
|
private readonly jsonLogic;
|
|
@@ -697,7 +707,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
697
707
|
private effectiveActionsCacheOverride?;
|
|
698
708
|
private invalidRequiredFieldLabelsCache;
|
|
699
709
|
private invalidRequiredFieldLabelsSignature;
|
|
700
|
-
|
|
710
|
+
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
701
711
|
resourcePath?: string;
|
|
702
712
|
resourceId?: string | number;
|
|
703
713
|
initialValue?: Record<string, unknown> | null;
|
|
@@ -757,6 +767,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
757
767
|
configPersistenceStrategy: 'local-first' | 'input-first';
|
|
758
768
|
/** Optional layout to use instead of generated one */
|
|
759
769
|
layout?: FormLayout;
|
|
770
|
+
/** Metadata-driven layout preset used only when creating an initial config from schema. */
|
|
771
|
+
generatedLayoutPreset: DynamicFormGeneratedLayoutPreset;
|
|
772
|
+
/** Opt-in policy for schema-driven transient layout materialization. */
|
|
773
|
+
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
760
774
|
/** Optional navigation back config (from CRUD host) */
|
|
761
775
|
backConfig?: BackConfig;
|
|
762
776
|
/** Optional direct hooks declaration for testing/demo (overrides config.hooks) */
|
|
@@ -777,6 +791,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
777
791
|
disabledModeGlobal: boolean | null;
|
|
778
792
|
presentationModeGlobal: boolean | null;
|
|
779
793
|
visibleGlobal: boolean | null;
|
|
794
|
+
fieldIconPolicy: 'all' | 'presentation-only' | 'none';
|
|
780
795
|
/** Opt-in loader for shared domain rule materializations persisted outside FormConfig. */
|
|
781
796
|
domainRules: PraxisDynamicFormDomainRulesOptions | boolean | null;
|
|
782
797
|
get effectivePresentation(): boolean;
|
|
@@ -786,6 +801,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
786
801
|
get invalidRequiredFieldLabels(): string[];
|
|
787
802
|
/** Value propagated to DynamicFieldLoader; null allows per-field metadata */
|
|
788
803
|
get presentationForLoader(): boolean | null;
|
|
804
|
+
getRenderableFieldsForLoader(fields: FieldMetadata[]): FieldMetadata[];
|
|
805
|
+
private materializeFieldPresentationPolicy;
|
|
806
|
+
private shouldMaterializeBooleanControl;
|
|
807
|
+
private materializeFieldHelpPolicy;
|
|
808
|
+
private shouldSuppressFieldIcons;
|
|
809
|
+
private resolveFieldHelpDisplay;
|
|
810
|
+
private normalizeFieldHelpControlToken;
|
|
789
811
|
/** Custom endpoints for CRUD operations */
|
|
790
812
|
private _customEndpoints;
|
|
791
813
|
get customEndpoints(): EndpointConfig;
|
|
@@ -852,6 +874,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
852
874
|
protected entityHydrationPending: boolean;
|
|
853
875
|
private schemaCache;
|
|
854
876
|
private lastSchemaMeta?;
|
|
877
|
+
private readonly schemaMetaPersistenceQueues;
|
|
878
|
+
private readonly formConfigPersistenceQueues;
|
|
879
|
+
private readonly formConfigPersistenceGenerations;
|
|
880
|
+
private readonly formConfigConflictBlockThrough;
|
|
855
881
|
private schemaRootHooks?;
|
|
856
882
|
private destroy$;
|
|
857
883
|
private formValueChangesSubscription;
|
|
@@ -937,7 +963,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
937
963
|
private mountAnimationTimer;
|
|
938
964
|
protected isMounting: boolean;
|
|
939
965
|
private hasBuiltFormFromConfig;
|
|
940
|
-
|
|
966
|
+
private runtimeFieldMetadata;
|
|
967
|
+
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
968
|
private emitLoadingState;
|
|
942
969
|
private buildLoadingContext;
|
|
943
970
|
private beginLoading;
|
|
@@ -964,9 +991,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
964
991
|
private formInputsKey;
|
|
965
992
|
private crudBackKey;
|
|
966
993
|
private tryInitializeForm;
|
|
967
|
-
|
|
994
|
+
hasExplicitSchemaUrl(): boolean;
|
|
968
995
|
private hasSchemaBackedRuntime;
|
|
969
|
-
|
|
996
|
+
hasRenderableConfig(config?: FormConfig | null | undefined): boolean;
|
|
970
997
|
private initializeStandaloneConfig;
|
|
971
998
|
private initializeDisconnectedEmptyState;
|
|
972
999
|
private reloadForModeChange;
|
|
@@ -981,10 +1008,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
981
1008
|
private persistFormConfig;
|
|
982
1009
|
private createDefaultConfig;
|
|
983
1010
|
private createConfigFromHostConfig;
|
|
1011
|
+
private shouldUseSchemaLayoutPolicy;
|
|
1012
|
+
private layoutPolicyRequestsPresentation;
|
|
1013
|
+
private shouldPersistGeneratedConfig;
|
|
1014
|
+
private createSchemaMaterializedConfig;
|
|
984
1015
|
private reconcileLoadedConfigWithServerSchema;
|
|
985
1016
|
private hostConfigHasAuthoredLocalFieldsNotInLocalConfig;
|
|
986
1017
|
private syncWithServer;
|
|
987
1018
|
private loadEntity;
|
|
1019
|
+
private hydrateEntityFromInitialValue;
|
|
1020
|
+
private flushEntityHydrationState;
|
|
988
1021
|
private buildFormFromConfig;
|
|
989
1022
|
private resetFormValueChangesSubscription;
|
|
990
1023
|
private resetDependencyPolicySubscription;
|
|
@@ -997,6 +1030,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
997
1030
|
private setEntityLookupDependencyConflict;
|
|
998
1031
|
private clearEntityLookupDependencyConflict;
|
|
999
1032
|
private resolveEntityLookupDependencyValidationMessage;
|
|
1033
|
+
private getRuntimeFieldMetadata;
|
|
1034
|
+
private resolveFieldAccessAuthorities;
|
|
1035
|
+
private normalizeAuthorityClaims;
|
|
1036
|
+
private materializeFieldAccessState;
|
|
1000
1037
|
private scheduleValueChangeBootstrapRelease;
|
|
1001
1038
|
private hasInteractiveFormState;
|
|
1002
1039
|
private captureFormRuntimeState;
|
|
@@ -1048,6 +1085,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1048
1085
|
isSectionCollapsible(section?: FormSection): boolean;
|
|
1049
1086
|
private getSectionRuleProps;
|
|
1050
1087
|
isSectionVisible(section?: FormSection): boolean;
|
|
1088
|
+
isLastVisibleSection(section: FormSection): boolean;
|
|
1089
|
+
private hasVisibleSectionBody;
|
|
1090
|
+
private shouldRenderInsideLastSectionContent;
|
|
1091
|
+
private resolveInsideLastSectionHost;
|
|
1051
1092
|
getSectionTitle(section: FormSection): string | undefined;
|
|
1052
1093
|
getSectionDescription(section: FormSection): string | undefined;
|
|
1053
1094
|
getSectionAppearance(section: FormSection): 'card' | 'plain' | 'step' | undefined;
|
|
@@ -1064,7 +1105,6 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1064
1105
|
getEffectiveSectionTitleGapBottom(section: FormSection): number;
|
|
1065
1106
|
isSectionHeaderTitleOnly(section: FormSection): boolean;
|
|
1066
1107
|
getSectionDescriptionGapBottom(section: FormSection): number | null;
|
|
1067
|
-
getSectionHeaderActionColor(action: FormSectionHeaderAction): 'primary' | 'accent' | 'warn' | undefined;
|
|
1068
1108
|
getSectionHeaderActionTooltip(action: FormSectionHeaderAction): string;
|
|
1069
1109
|
isSectionHeaderActionDisabled(action: FormSectionHeaderAction): boolean;
|
|
1070
1110
|
getSectionHeaderActionNgClass(action: FormSectionHeaderAction): Record<string, boolean>;
|
|
@@ -1112,6 +1152,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1112
1152
|
items?: FormLayoutItem[];
|
|
1113
1153
|
id?: string;
|
|
1114
1154
|
}): FieldMetadata[];
|
|
1155
|
+
private isFieldRenderableInLayout;
|
|
1115
1156
|
getRichContentLayoutItemDocument(item: FormLayoutItem): RichContentDocument | null;
|
|
1116
1157
|
getRichContentLayoutItemLayout(item: FormLayoutItem): 'block' | 'inline';
|
|
1117
1158
|
private getVisualBlockRuleProps;
|
|
@@ -1136,12 +1177,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1136
1177
|
private _showConfirmationDialog;
|
|
1137
1178
|
onFormAction(event: PraxisFormActionEvent): void;
|
|
1138
1179
|
private dispatchRichContentAction;
|
|
1180
|
+
private emitRichContentCustomAction;
|
|
1139
1181
|
private isRichContentActionAvailable;
|
|
1140
1182
|
private hasRichContentCapability;
|
|
1141
1183
|
private buildRichContentActionContext;
|
|
1142
1184
|
private _executeAction;
|
|
1143
1185
|
private getFormActionEventId;
|
|
1144
1186
|
onSubmit(): Promise<void>;
|
|
1187
|
+
private applySubmitFieldErrors;
|
|
1188
|
+
private clearSubmitFieldErrors;
|
|
1189
|
+
private normalizeSubmitErrorTarget;
|
|
1145
1190
|
private navigateAfterSave;
|
|
1146
1191
|
private shouldConfirmCancelOnDirty;
|
|
1147
1192
|
/**
|
|
@@ -1198,6 +1243,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1198
1243
|
private getSchemaMetaKeyForSchemaId;
|
|
1199
1244
|
private getSchemaMetaKeyForContext;
|
|
1200
1245
|
private loadStoredSchemaMeta;
|
|
1246
|
+
private persistSchemaMeta;
|
|
1247
|
+
private enqueueSchemaMetaPersistence;
|
|
1248
|
+
private reconcileSchemaMetaPersistence;
|
|
1201
1249
|
private rememberSchemaMetaContext;
|
|
1202
1250
|
private isSameSchemaContext;
|
|
1203
1251
|
private isStoredSchemaMetaForContext;
|
|
@@ -1337,8 +1385,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1337
1385
|
private logRowGapsSnapshot;
|
|
1338
1386
|
private applyPresentationVars;
|
|
1339
1387
|
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>;
|
|
1388
|
+
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; }]>;
|
|
1389
|
+
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
1390
|
}
|
|
1343
1391
|
|
|
1344
1392
|
declare class FormConfigService {
|
|
@@ -1393,6 +1441,7 @@ declare class JsonConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1393
1441
|
diagnostics: EditorDiagnostic[];
|
|
1394
1442
|
private destroy$;
|
|
1395
1443
|
private jsonTextChanges$;
|
|
1444
|
+
private readonly i18n;
|
|
1396
1445
|
constructor(cdr: ChangeDetectorRef, configService: FormConfigService);
|
|
1397
1446
|
ngOnInit(): void;
|
|
1398
1447
|
ngOnDestroy(): void;
|
|
@@ -1412,6 +1461,9 @@ declare class JsonConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1412
1461
|
private updateValidationState;
|
|
1413
1462
|
insertHooksTemplate(): void;
|
|
1414
1463
|
enableReactiveValidation(): void;
|
|
1464
|
+
tx(key: string, fallback: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
1465
|
+
private resolveI18n;
|
|
1466
|
+
private interpolateFallback;
|
|
1415
1467
|
static ɵfac: i0.ɵɵFactoryDeclaration<JsonConfigEditorComponent, never>;
|
|
1416
1468
|
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
1469
|
}
|
|
@@ -1448,6 +1500,12 @@ interface FormRuleDiagnostics {
|
|
|
1448
1500
|
runtimeOnlyReason?: string;
|
|
1449
1501
|
}
|
|
1450
1502
|
|
|
1503
|
+
type ConfigEditorTabKey = 'general' | 'schema' | 'layout' | 'hooks' | 'presentation' | 'behavior' | 'hints' | 'actions' | 'rules' | 'cascades' | 'messages' | 'navigation' | 'json';
|
|
1504
|
+
interface ConfigEditorTabOption {
|
|
1505
|
+
key: ConfigEditorTabKey;
|
|
1506
|
+
index: number;
|
|
1507
|
+
label: string;
|
|
1508
|
+
}
|
|
1451
1509
|
interface CommandRulePreviewModel {
|
|
1452
1510
|
state: 'ready' | 'invalid';
|
|
1453
1511
|
executionMode: 'preview-only';
|
|
@@ -1456,11 +1514,11 @@ interface CommandRulePreviewModel {
|
|
|
1456
1514
|
payload?: unknown;
|
|
1457
1515
|
payloadExpr?: string;
|
|
1458
1516
|
policy: {
|
|
1459
|
-
trigger: '
|
|
1517
|
+
trigger: NonNullable<PraxisEffectPolicy['trigger']>;
|
|
1460
1518
|
distinct: boolean;
|
|
1461
1519
|
distinctBy?: string;
|
|
1462
1520
|
runOnInitialEvaluation?: boolean;
|
|
1463
|
-
}
|
|
1521
|
+
} & Omit<PraxisEffectPolicy, 'trigger' | 'distinct' | 'distinctBy' | 'runOnInitialEvaluation'>;
|
|
1464
1522
|
diagnostics: string[];
|
|
1465
1523
|
}
|
|
1466
1524
|
declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, OnInit, OnDestroy {
|
|
@@ -1469,10 +1527,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1469
1527
|
private settingsPanel;
|
|
1470
1528
|
private cdr;
|
|
1471
1529
|
jsonEditor?: JsonConfigEditorComponent;
|
|
1530
|
+
cascadeManager?: CascadeManagerTabComponent;
|
|
1472
1531
|
editedConfig: FormConfig;
|
|
1473
1532
|
ruleBuilderConfig: RuleBuilderConfig;
|
|
1474
1533
|
ruleBuilderState?: RuleBuilderState;
|
|
1475
1534
|
currentRules: FormLayoutRule[];
|
|
1535
|
+
selectedConfigTabIndex: number;
|
|
1476
1536
|
selectedCommandRuleId: string;
|
|
1477
1537
|
commandRuleCondition: JsonLogicExpression | null;
|
|
1478
1538
|
commandRuleConditionJson: string;
|
|
@@ -1482,6 +1542,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1482
1542
|
commandRuleDistinct: boolean;
|
|
1483
1543
|
commandRuleDistinctBy: string;
|
|
1484
1544
|
commandRuleRunOnInitialEvaluation: boolean;
|
|
1545
|
+
private commandRulePolicyTrigger;
|
|
1546
|
+
private commandRuleAdvancedPolicy;
|
|
1485
1547
|
commandRuleAuthoringError: string | null;
|
|
1486
1548
|
commandRulePayloadFieldErrors: Record<string, string>;
|
|
1487
1549
|
ruleDiagnostics: FormRuleDiagnostics[];
|
|
@@ -1507,10 +1569,10 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1507
1569
|
private readonly editorMode;
|
|
1508
1570
|
isPresentationMode: boolean;
|
|
1509
1571
|
truncatePreview: boolean;
|
|
1510
|
-
previewItems: {
|
|
1572
|
+
previewItems: Array<{
|
|
1511
1573
|
label: string;
|
|
1512
1574
|
value: string;
|
|
1513
|
-
}
|
|
1575
|
+
}>;
|
|
1514
1576
|
presentationPrefs: {
|
|
1515
1577
|
labelPosition: 'above' | 'left';
|
|
1516
1578
|
labelFontSize?: number | null;
|
|
@@ -1523,6 +1585,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1523
1585
|
};
|
|
1524
1586
|
/** Ensure hints object exists (normalized upstream) */
|
|
1525
1587
|
private ensureHints;
|
|
1588
|
+
get helpPresentationDraft(): Required<FormHelpPresentationConfig>;
|
|
1589
|
+
onHelpPresentationDisplayChange(display: FormHelpPresentationConfig['display']): void;
|
|
1590
|
+
onHelpPresentationInlineMaxLengthChange(inlineMaxLength: number | string | null): void;
|
|
1591
|
+
private updateHelpPresentation;
|
|
1592
|
+
getHelpPreferPopoverControlsText(): string;
|
|
1593
|
+
onHelpPreferPopoverControlsChange(value: string): void;
|
|
1526
1594
|
schemaPrefs: {
|
|
1527
1595
|
notifyIfOutdated: 'inline' | 'snackbar' | 'both' | 'none';
|
|
1528
1596
|
snoozeMs: number;
|
|
@@ -1538,13 +1606,19 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1538
1606
|
private hasProcessedInitialRuleState;
|
|
1539
1607
|
private jsonEditorIsValid;
|
|
1540
1608
|
private globalActionValidationIssues;
|
|
1609
|
+
private readonly i18n;
|
|
1541
1610
|
readonly globalActionCatalog: GlobalActionCatalogEntry[];
|
|
1542
1611
|
isDirty$: BehaviorSubject<boolean>;
|
|
1543
1612
|
isValid$: BehaviorSubject<boolean>;
|
|
1544
1613
|
isBusy$: BehaviorSubject<boolean>;
|
|
1545
1614
|
private lastRulesSignature;
|
|
1615
|
+
private pendingRulePropertiesStateSignature;
|
|
1546
1616
|
private readonly DEBUG;
|
|
1547
1617
|
private debugLog;
|
|
1618
|
+
get configTabOptions(): ConfigEditorTabOption[];
|
|
1619
|
+
configTabLabel(key: ConfigEditorTabKey): string;
|
|
1620
|
+
private buildPresentationPreviewItems;
|
|
1621
|
+
getConfigTabIndex(key: ConfigEditorTabKey): number;
|
|
1548
1622
|
constructor(storage: AsyncConfigStorage, configService: FormConfigService, settingsPanel: SettingsPanelService, cdr: ChangeDetectorRef, globalActionCatalogSource?: ReadonlyArray<GlobalActionCatalogEntry[]>, injectedData?: any);
|
|
1549
1623
|
ngOnInit(): void;
|
|
1550
1624
|
reset(): void;
|
|
@@ -1571,6 +1645,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1571
1645
|
applyCommandRule(): void;
|
|
1572
1646
|
deleteCommandRule(): void;
|
|
1573
1647
|
get commandRuleActionSchema(): _praxisui_core.GlobalActionUiSchema | undefined;
|
|
1648
|
+
get commandRuleSurfaceOpenPayload(): SurfaceOpenPayload;
|
|
1574
1649
|
shouldShowCommandActionField(field: GlobalActionField): boolean;
|
|
1575
1650
|
isCommandActionFieldRequired(field: GlobalActionField): boolean;
|
|
1576
1651
|
isCommandActionFieldMissing(field: GlobalActionField): boolean;
|
|
@@ -1579,12 +1654,15 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1579
1654
|
get commandRulePreview(): CommandRulePreviewModel;
|
|
1580
1655
|
getCommandActionFieldValue(field: GlobalActionField): any;
|
|
1581
1656
|
onCommandActionFieldChange(field: GlobalActionField, value: any): void;
|
|
1657
|
+
onCommandSurfaceOpenPayloadChange(payload: SurfaceOpenPayload): void;
|
|
1582
1658
|
private initializeCommandRuleEditor;
|
|
1583
1659
|
private loadCommandRuleEditor;
|
|
1660
|
+
private buildCommandRulePolicy;
|
|
1584
1661
|
private updateCommandRules;
|
|
1585
1662
|
private parseCommandRuleCondition;
|
|
1586
1663
|
private parseOptionalJson;
|
|
1587
1664
|
private parseCommandPayloadObject;
|
|
1665
|
+
private getCommandRuleErrorMessage;
|
|
1588
1666
|
private collectCommandActionFieldValues;
|
|
1589
1667
|
private setCommandActionFieldError;
|
|
1590
1668
|
private clearCommandActionFieldError;
|
|
@@ -1596,6 +1674,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1596
1674
|
getRuleStatusTone(diagnostic: FormRuleDiagnostics): 'ok' | 'warn' | 'error';
|
|
1597
1675
|
canAcceptPendingLlmRule(diagnostic: FormRuleDiagnostics): boolean;
|
|
1598
1676
|
canApplyRulePropertyFix(diagnostic: FormRuleDiagnostics): boolean;
|
|
1677
|
+
canOpenRuleJsonReview(diagnostic: FormRuleDiagnostics): boolean;
|
|
1678
|
+
openRuleJsonReview(ruleId: string): void;
|
|
1599
1679
|
applyRulePropertyFix(ruleId: string): void;
|
|
1600
1680
|
acceptPendingLlmRule(ruleId: string): void;
|
|
1601
1681
|
getRuleDiagnosticDetails(diagnostic: FormRuleDiagnostics): string[];
|
|
@@ -1628,6 +1708,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1628
1708
|
onLayoutSelect(event: any): void;
|
|
1629
1709
|
private openColumnEditor;
|
|
1630
1710
|
onCascadeApply(patch: Record<string, Partial<FieldDefinition>>): void;
|
|
1711
|
+
private syncCascadeManagerFields;
|
|
1631
1712
|
private stripLegacy;
|
|
1632
1713
|
private computeRulesSignature;
|
|
1633
1714
|
restoreHintsDefaults(): void;
|
|
@@ -1641,6 +1722,9 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1641
1722
|
private toPresentationSnapshot;
|
|
1642
1723
|
private toSchemaPrefsSnapshot;
|
|
1643
1724
|
private toBackConfigSnapshot;
|
|
1725
|
+
tx(key: string, fallback: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
1726
|
+
private resolveI18n;
|
|
1727
|
+
private interpolateFallback;
|
|
1644
1728
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicFormConfigEditor, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
1645
1729
|
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicFormConfigEditor, "praxis-dynamic-form-config-editor", never, {}, {}, never, never, true, never>;
|
|
1646
1730
|
}
|
|
@@ -1829,6 +1913,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
1829
1913
|
chromeToggles: string[];
|
|
1830
1914
|
get borderEnabled(): boolean;
|
|
1831
1915
|
get dividerEnabled(): boolean;
|
|
1916
|
+
get layoutSections(): FormSection[];
|
|
1832
1917
|
canApplyAll(): boolean;
|
|
1833
1918
|
applyGapToAll(): void;
|
|
1834
1919
|
ngOnInit(): void;
|
|
@@ -1953,6 +2038,7 @@ declare class RowConfiguratorComponent implements OnChanges {
|
|
|
1953
2038
|
activeDropIndex: number | null;
|
|
1954
2039
|
protected readonly visualBlockPresets: readonly VisualBlockPreset[];
|
|
1955
2040
|
private readonly i18n;
|
|
2041
|
+
private readonly dialog;
|
|
1956
2042
|
private hoverTimer;
|
|
1957
2043
|
protected readonly breakpoints: Breakpoint[];
|
|
1958
2044
|
previewBreakpoint: Breakpoint;
|
|
@@ -2105,6 +2191,50 @@ declare class DomainRuleFormRulesService {
|
|
|
2105
2191
|
static ɵprov: i0.ɵɵInjectableDeclaration<DomainRuleFormRulesService>;
|
|
2106
2192
|
}
|
|
2107
2193
|
|
|
2194
|
+
declare class Ergadm00034CompactPresentationExampleComponent {
|
|
2195
|
+
private readonly dynamicLayout;
|
|
2196
|
+
readonly legacyFrequencyExample: _praxisui_dynamic_form.Ergadm00034CompactPresentationExample;
|
|
2197
|
+
readonly legacyFrequencyPresentationConfig: _praxisui_core.FormConfig;
|
|
2198
|
+
readonly legacyFrequencyInitialValue: Record<string, unknown>;
|
|
2199
|
+
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.Ergadm00034LegacyFrequencyRow[];
|
|
2200
|
+
readonly corporatePresentationExample: _praxisui_dynamic_form.CorporatePresentationExample;
|
|
2201
|
+
readonly corporatePresentationConfig: _praxisui_core.FormConfig;
|
|
2202
|
+
readonly corporatePresentationInitialValue: Record<string, unknown>;
|
|
2203
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Ergadm00034CompactPresentationExampleComponent, never>;
|
|
2204
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Ergadm00034CompactPresentationExampleComponent, "praxis-ergadm00034-compact-presentation-example", never, {}, {}, never, never, true, never>;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
interface Ergadm00034LegacyFrequencyRow {
|
|
2208
|
+
tipo: string;
|
|
2209
|
+
codigo: string;
|
|
2210
|
+
nome: string;
|
|
2211
|
+
preenchimento: string;
|
|
2212
|
+
marcador: string;
|
|
2213
|
+
selected?: boolean;
|
|
2214
|
+
}
|
|
2215
|
+
interface Ergadm00034CompactPresentationExample {
|
|
2216
|
+
readonly id: 'ergadm00034-compact-presentation';
|
|
2217
|
+
readonly title: string;
|
|
2218
|
+
readonly resourcePath: string;
|
|
2219
|
+
readonly layoutPreset: 'compactPresentation';
|
|
2220
|
+
readonly rows: readonly Ergadm00034LegacyFrequencyRow[];
|
|
2221
|
+
readonly tableConfig: TableConfig;
|
|
2222
|
+
readonly metadata: readonly FieldMetadata[];
|
|
2223
|
+
readonly initialValue: Record<string, unknown>;
|
|
2224
|
+
}
|
|
2225
|
+
interface CorporatePresentationExample {
|
|
2226
|
+
readonly id: 'corporate-presentation-format-gallery';
|
|
2227
|
+
readonly title: string;
|
|
2228
|
+
readonly resourcePath: string;
|
|
2229
|
+
readonly layoutPreset: 'compactPresentation';
|
|
2230
|
+
readonly metadata: readonly FieldMetadata[];
|
|
2231
|
+
readonly initialValue: Record<string, unknown>;
|
|
2232
|
+
}
|
|
2233
|
+
declare const ERGADM00034_COMPACT_PRESENTATION_EXAMPLE: Ergadm00034CompactPresentationExample;
|
|
2234
|
+
declare const CORPORATE_PRESENTATION_FORMAT_GALLERY: CorporatePresentationExample;
|
|
2235
|
+
declare function buildErgadm00034CompactPresentationConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2236
|
+
declare function buildCorporatePresentationFormatGalleryConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2237
|
+
|
|
2108
2238
|
declare function isRuleSatisfied(rule: FormLayoutRule, data: unknown): boolean;
|
|
2109
2239
|
/**
|
|
2110
2240
|
* Applies all visibility rules to the provided data and
|
|
@@ -2171,6 +2301,7 @@ declare class CanvasToolbarComponent {
|
|
|
2171
2301
|
/** Estado interno para animar o fechamento. */
|
|
2172
2302
|
closing: boolean;
|
|
2173
2303
|
private readonly closeAnimMs;
|
|
2304
|
+
private readonly i18n;
|
|
2174
2305
|
toggleReadonly: EventEmitter<void>;
|
|
2175
2306
|
toggleRequired: EventEmitter<void>;
|
|
2176
2307
|
toggleHidden: EventEmitter<void>;
|
|
@@ -2188,6 +2319,7 @@ declare class CanvasToolbarComponent {
|
|
|
2188
2319
|
onGlobalKeydown(ev: KeyboardEvent): void;
|
|
2189
2320
|
/** Inicia animação de saída e emite o evento ao final. */
|
|
2190
2321
|
triggerClose(): void;
|
|
2322
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2191
2323
|
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasToolbarComponent, never>;
|
|
2192
2324
|
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
2325
|
}
|
|
@@ -2345,6 +2477,7 @@ declare class RowEditorComponent implements OnInit, OnDestroy, SettingsValueProv
|
|
|
2345
2477
|
isBusy$: BehaviorSubject<boolean>;
|
|
2346
2478
|
private destroy$;
|
|
2347
2479
|
private initialValueSig;
|
|
2480
|
+
private readonly i18n;
|
|
2348
2481
|
constructor(fb: FormBuilder, data: {
|
|
2349
2482
|
row: EditableFormRow;
|
|
2350
2483
|
});
|
|
@@ -2353,10 +2486,12 @@ declare class RowEditorComponent implements OnInit, OnDestroy, SettingsValueProv
|
|
|
2353
2486
|
getSettingsValue(): any;
|
|
2354
2487
|
displayValue(value: number | null | undefined, fallback: string): string | number;
|
|
2355
2488
|
displayPxValue(value: number | null | undefined): string;
|
|
2489
|
+
visibilityStateLabel(bp: Breakpoint): string;
|
|
2356
2490
|
private setColumns;
|
|
2357
2491
|
applyPreset(preset: 'full' | 'half' | 'thirds' | 'thirdTwoThird' | 'twoThirdThird' | 'autoBalance'): void;
|
|
2358
2492
|
private resolveHiddenMode;
|
|
2359
2493
|
setHiddenMode(mode: 'none' | 'mobile' | 'desktop'): void;
|
|
2494
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2360
2495
|
static ɵfac: i0.ɵɵFactoryDeclaration<RowEditorComponent, never>;
|
|
2361
2496
|
static ɵcmp: i0.ɵɵComponentDeclaration<RowEditorComponent, "praxis-row-editor", never, {}, {}, never, never, true, never>;
|
|
2362
2497
|
}
|
|
@@ -2373,6 +2508,7 @@ declare class ColumnEditorComponent implements OnInit, OnDestroy, SettingsValueP
|
|
|
2373
2508
|
isBusy$: BehaviorSubject<boolean>;
|
|
2374
2509
|
private destroy$;
|
|
2375
2510
|
private _previewTimer;
|
|
2511
|
+
private readonly i18n;
|
|
2376
2512
|
constructor(fb: FormBuilder, data: {
|
|
2377
2513
|
column: FormColumn;
|
|
2378
2514
|
});
|
|
@@ -2396,6 +2532,7 @@ declare class ColumnEditorComponent implements OnInit, OnDestroy, SettingsValueP
|
|
|
2396
2532
|
resetResponsive(): void;
|
|
2397
2533
|
applyPreset(key: 'full' | 'half' | 'third' | 'twoThird' | 'centered' | 'narrowSidebar' | 'wideContent' | 'stackMobile' | 'hideMobile' | 'desktopOnly'): void;
|
|
2398
2534
|
toggleHiddenBp(bp: Breakpoint): void;
|
|
2535
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2399
2536
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnEditorComponent, never>;
|
|
2400
2537
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnEditorComponent, "praxis-column-editor", never, {}, {}, never, never, true, never>;
|
|
2401
2538
|
}
|
|
@@ -2634,5 +2771,5 @@ declare function buildDynamicFormRuleAuthoringContext(config: Pick<FormConfig, '
|
|
|
2634
2771
|
*/
|
|
2635
2772
|
declare const PRAXIS_DYNAMIC_FORM_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
2636
2773
|
|
|
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 };
|
|
2774
|
+
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 };
|
|
2775
|
+
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 };
|