@praxisui/dynamic-form 9.0.0-beta.7 → 9.0.0-beta.71
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 +190 -2
- package/ai/component-registry.json +14320 -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.mjs +4391 -764
- 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 +35 -5
- package/types/praxisui-dynamic-form.d.ts +150 -29
|
@@ -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;
|
|
@@ -520,16 +535,7 @@ type DynamicFormMode = 'create' | 'edit' | 'view';
|
|
|
520
535
|
interface DynamicFormBindings {
|
|
521
536
|
mode?: DynamicFormMode;
|
|
522
537
|
}
|
|
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
|
-
}
|
|
538
|
+
type DynamicFormPresentationSnapshot = FormPresentationConfig;
|
|
533
539
|
interface DynamicFormSchemaPrefsSnapshot {
|
|
534
540
|
notifyIfOutdated?: 'inline' | 'snackbar' | 'both' | 'none';
|
|
535
541
|
snoozeMs?: number;
|
|
@@ -683,6 +689,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
683
689
|
private hooksRegistry?;
|
|
684
690
|
private hookPresets?;
|
|
685
691
|
private logger?;
|
|
692
|
+
private enterpriseRuntimeContext?;
|
|
686
693
|
private readonly i18n;
|
|
687
694
|
private readonly injector;
|
|
688
695
|
private readonly aiApi;
|
|
@@ -697,7 +704,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
697
704
|
private effectiveActionsCacheOverride?;
|
|
698
705
|
private invalidRequiredFieldLabelsCache;
|
|
699
706
|
private invalidRequiredFieldLabelsSignature;
|
|
700
|
-
|
|
707
|
+
get richContentHostCapabilities(): RichBlockHostCapabilities;
|
|
701
708
|
resourcePath?: string;
|
|
702
709
|
resourceId?: string | number;
|
|
703
710
|
initialValue?: Record<string, unknown> | null;
|
|
@@ -757,6 +764,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
757
764
|
configPersistenceStrategy: 'local-first' | 'input-first';
|
|
758
765
|
/** Optional layout to use instead of generated one */
|
|
759
766
|
layout?: FormLayout;
|
|
767
|
+
/** Metadata-driven layout preset used only when creating an initial config from schema. */
|
|
768
|
+
generatedLayoutPreset: DynamicFormGeneratedLayoutPreset;
|
|
769
|
+
/** Opt-in policy for schema-driven transient layout materialization. */
|
|
770
|
+
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
760
771
|
/** Optional navigation back config (from CRUD host) */
|
|
761
772
|
backConfig?: BackConfig;
|
|
762
773
|
/** Optional direct hooks declaration for testing/demo (overrides config.hooks) */
|
|
@@ -777,6 +788,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
777
788
|
disabledModeGlobal: boolean | null;
|
|
778
789
|
presentationModeGlobal: boolean | null;
|
|
779
790
|
visibleGlobal: boolean | null;
|
|
791
|
+
fieldIconPolicy: 'all' | 'presentation-only' | 'none';
|
|
780
792
|
/** Opt-in loader for shared domain rule materializations persisted outside FormConfig. */
|
|
781
793
|
domainRules: PraxisDynamicFormDomainRulesOptions | boolean | null;
|
|
782
794
|
get effectivePresentation(): boolean;
|
|
@@ -786,6 +798,13 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
786
798
|
get invalidRequiredFieldLabels(): string[];
|
|
787
799
|
/** Value propagated to DynamicFieldLoader; null allows per-field metadata */
|
|
788
800
|
get presentationForLoader(): boolean | null;
|
|
801
|
+
getRenderableFieldsForLoader(fields: FieldMetadata[]): FieldMetadata[];
|
|
802
|
+
private materializeFieldPresentationPolicy;
|
|
803
|
+
private shouldMaterializeBooleanControl;
|
|
804
|
+
private materializeFieldHelpPolicy;
|
|
805
|
+
private shouldSuppressFieldIcons;
|
|
806
|
+
private resolveFieldHelpDisplay;
|
|
807
|
+
private normalizeFieldHelpControlToken;
|
|
789
808
|
/** Custom endpoints for CRUD operations */
|
|
790
809
|
private _customEndpoints;
|
|
791
810
|
get customEndpoints(): EndpointConfig;
|
|
@@ -937,7 +956,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
937
956
|
private mountAnimationTimer;
|
|
938
957
|
protected isMounting: boolean;
|
|
939
958
|
private hasBuiltFormFromConfig;
|
|
940
|
-
|
|
959
|
+
private runtimeFieldMetadata;
|
|
960
|
+
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
961
|
private emitLoadingState;
|
|
942
962
|
private buildLoadingContext;
|
|
943
963
|
private beginLoading;
|
|
@@ -964,9 +984,9 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
964
984
|
private formInputsKey;
|
|
965
985
|
private crudBackKey;
|
|
966
986
|
private tryInitializeForm;
|
|
967
|
-
|
|
987
|
+
hasExplicitSchemaUrl(): boolean;
|
|
968
988
|
private hasSchemaBackedRuntime;
|
|
969
|
-
|
|
989
|
+
hasRenderableConfig(config?: FormConfig | null | undefined): boolean;
|
|
970
990
|
private initializeStandaloneConfig;
|
|
971
991
|
private initializeDisconnectedEmptyState;
|
|
972
992
|
private reloadForModeChange;
|
|
@@ -981,10 +1001,16 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
981
1001
|
private persistFormConfig;
|
|
982
1002
|
private createDefaultConfig;
|
|
983
1003
|
private createConfigFromHostConfig;
|
|
1004
|
+
private shouldUseSchemaLayoutPolicy;
|
|
1005
|
+
private layoutPolicyRequestsPresentation;
|
|
1006
|
+
private shouldPersistGeneratedConfig;
|
|
1007
|
+
private createSchemaMaterializedConfig;
|
|
984
1008
|
private reconcileLoadedConfigWithServerSchema;
|
|
985
1009
|
private hostConfigHasAuthoredLocalFieldsNotInLocalConfig;
|
|
986
1010
|
private syncWithServer;
|
|
987
1011
|
private loadEntity;
|
|
1012
|
+
private hydrateEntityFromInitialValue;
|
|
1013
|
+
private flushEntityHydrationState;
|
|
988
1014
|
private buildFormFromConfig;
|
|
989
1015
|
private resetFormValueChangesSubscription;
|
|
990
1016
|
private resetDependencyPolicySubscription;
|
|
@@ -997,6 +1023,10 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
997
1023
|
private setEntityLookupDependencyConflict;
|
|
998
1024
|
private clearEntityLookupDependencyConflict;
|
|
999
1025
|
private resolveEntityLookupDependencyValidationMessage;
|
|
1026
|
+
private getRuntimeFieldMetadata;
|
|
1027
|
+
private resolveFieldAccessAuthorities;
|
|
1028
|
+
private normalizeAuthorityClaims;
|
|
1029
|
+
private materializeFieldAccessState;
|
|
1000
1030
|
private scheduleValueChangeBootstrapRelease;
|
|
1001
1031
|
private hasInteractiveFormState;
|
|
1002
1032
|
private captureFormRuntimeState;
|
|
@@ -1112,6 +1142,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1112
1142
|
items?: FormLayoutItem[];
|
|
1113
1143
|
id?: string;
|
|
1114
1144
|
}): FieldMetadata[];
|
|
1145
|
+
private isFieldRenderableInLayout;
|
|
1115
1146
|
getRichContentLayoutItemDocument(item: FormLayoutItem): RichContentDocument | null;
|
|
1116
1147
|
getRichContentLayoutItemLayout(item: FormLayoutItem): 'block' | 'inline';
|
|
1117
1148
|
private getVisualBlockRuleProps;
|
|
@@ -1136,6 +1167,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1136
1167
|
private _showConfirmationDialog;
|
|
1137
1168
|
onFormAction(event: PraxisFormActionEvent): void;
|
|
1138
1169
|
private dispatchRichContentAction;
|
|
1170
|
+
private emitRichContentCustomAction;
|
|
1139
1171
|
private isRichContentActionAvailable;
|
|
1140
1172
|
private hasRichContentCapability;
|
|
1141
1173
|
private buildRichContentActionContext;
|
|
@@ -1337,8 +1369,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
1337
1369
|
private logRowGapsSnapshot;
|
|
1338
1370
|
private applyPresentationVars;
|
|
1339
1371
|
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>;
|
|
1372
|
+
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; }]>;
|
|
1373
|
+
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
1374
|
}
|
|
1343
1375
|
|
|
1344
1376
|
declare class FormConfigService {
|
|
@@ -1393,6 +1425,7 @@ declare class JsonConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1393
1425
|
diagnostics: EditorDiagnostic[];
|
|
1394
1426
|
private destroy$;
|
|
1395
1427
|
private jsonTextChanges$;
|
|
1428
|
+
private readonly i18n;
|
|
1396
1429
|
constructor(cdr: ChangeDetectorRef, configService: FormConfigService);
|
|
1397
1430
|
ngOnInit(): void;
|
|
1398
1431
|
ngOnDestroy(): void;
|
|
@@ -1412,6 +1445,9 @@ declare class JsonConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1412
1445
|
private updateValidationState;
|
|
1413
1446
|
insertHooksTemplate(): void;
|
|
1414
1447
|
enableReactiveValidation(): void;
|
|
1448
|
+
tx(key: string, fallback: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
1449
|
+
private resolveI18n;
|
|
1450
|
+
private interpolateFallback;
|
|
1415
1451
|
static ɵfac: i0.ɵɵFactoryDeclaration<JsonConfigEditorComponent, never>;
|
|
1416
1452
|
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
1453
|
}
|
|
@@ -1448,6 +1484,12 @@ interface FormRuleDiagnostics {
|
|
|
1448
1484
|
runtimeOnlyReason?: string;
|
|
1449
1485
|
}
|
|
1450
1486
|
|
|
1487
|
+
type ConfigEditorTabKey = 'general' | 'schema' | 'layout' | 'hooks' | 'presentation' | 'behavior' | 'hints' | 'actions' | 'rules' | 'cascades' | 'messages' | 'navigation' | 'json';
|
|
1488
|
+
interface ConfigEditorTabOption {
|
|
1489
|
+
key: ConfigEditorTabKey;
|
|
1490
|
+
index: number;
|
|
1491
|
+
label: string;
|
|
1492
|
+
}
|
|
1451
1493
|
interface CommandRulePreviewModel {
|
|
1452
1494
|
state: 'ready' | 'invalid';
|
|
1453
1495
|
executionMode: 'preview-only';
|
|
@@ -1456,11 +1498,11 @@ interface CommandRulePreviewModel {
|
|
|
1456
1498
|
payload?: unknown;
|
|
1457
1499
|
payloadExpr?: string;
|
|
1458
1500
|
policy: {
|
|
1459
|
-
trigger: '
|
|
1501
|
+
trigger: NonNullable<PraxisEffectPolicy['trigger']>;
|
|
1460
1502
|
distinct: boolean;
|
|
1461
1503
|
distinctBy?: string;
|
|
1462
1504
|
runOnInitialEvaluation?: boolean;
|
|
1463
|
-
}
|
|
1505
|
+
} & Omit<PraxisEffectPolicy, 'trigger' | 'distinct' | 'distinctBy' | 'runOnInitialEvaluation'>;
|
|
1464
1506
|
diagnostics: string[];
|
|
1465
1507
|
}
|
|
1466
1508
|
declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, OnInit, OnDestroy {
|
|
@@ -1469,10 +1511,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1469
1511
|
private settingsPanel;
|
|
1470
1512
|
private cdr;
|
|
1471
1513
|
jsonEditor?: JsonConfigEditorComponent;
|
|
1514
|
+
cascadeManager?: CascadeManagerTabComponent;
|
|
1472
1515
|
editedConfig: FormConfig;
|
|
1473
1516
|
ruleBuilderConfig: RuleBuilderConfig;
|
|
1474
1517
|
ruleBuilderState?: RuleBuilderState;
|
|
1475
1518
|
currentRules: FormLayoutRule[];
|
|
1519
|
+
selectedConfigTabIndex: number;
|
|
1476
1520
|
selectedCommandRuleId: string;
|
|
1477
1521
|
commandRuleCondition: JsonLogicExpression | null;
|
|
1478
1522
|
commandRuleConditionJson: string;
|
|
@@ -1482,6 +1526,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1482
1526
|
commandRuleDistinct: boolean;
|
|
1483
1527
|
commandRuleDistinctBy: string;
|
|
1484
1528
|
commandRuleRunOnInitialEvaluation: boolean;
|
|
1529
|
+
private commandRulePolicyTrigger;
|
|
1530
|
+
private commandRuleAdvancedPolicy;
|
|
1485
1531
|
commandRuleAuthoringError: string | null;
|
|
1486
1532
|
commandRulePayloadFieldErrors: Record<string, string>;
|
|
1487
1533
|
ruleDiagnostics: FormRuleDiagnostics[];
|
|
@@ -1507,10 +1553,10 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1507
1553
|
private readonly editorMode;
|
|
1508
1554
|
isPresentationMode: boolean;
|
|
1509
1555
|
truncatePreview: boolean;
|
|
1510
|
-
previewItems: {
|
|
1556
|
+
previewItems: Array<{
|
|
1511
1557
|
label: string;
|
|
1512
1558
|
value: string;
|
|
1513
|
-
}
|
|
1559
|
+
}>;
|
|
1514
1560
|
presentationPrefs: {
|
|
1515
1561
|
labelPosition: 'above' | 'left';
|
|
1516
1562
|
labelFontSize?: number | null;
|
|
@@ -1523,6 +1569,12 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1523
1569
|
};
|
|
1524
1570
|
/** Ensure hints object exists (normalized upstream) */
|
|
1525
1571
|
private ensureHints;
|
|
1572
|
+
get helpPresentationDraft(): Required<FormHelpPresentationConfig>;
|
|
1573
|
+
onHelpPresentationDisplayChange(display: FormHelpPresentationConfig['display']): void;
|
|
1574
|
+
onHelpPresentationInlineMaxLengthChange(inlineMaxLength: number | string | null): void;
|
|
1575
|
+
private updateHelpPresentation;
|
|
1576
|
+
getHelpPreferPopoverControlsText(): string;
|
|
1577
|
+
onHelpPreferPopoverControlsChange(value: string): void;
|
|
1526
1578
|
schemaPrefs: {
|
|
1527
1579
|
notifyIfOutdated: 'inline' | 'snackbar' | 'both' | 'none';
|
|
1528
1580
|
snoozeMs: number;
|
|
@@ -1538,13 +1590,19 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1538
1590
|
private hasProcessedInitialRuleState;
|
|
1539
1591
|
private jsonEditorIsValid;
|
|
1540
1592
|
private globalActionValidationIssues;
|
|
1593
|
+
private readonly i18n;
|
|
1541
1594
|
readonly globalActionCatalog: GlobalActionCatalogEntry[];
|
|
1542
1595
|
isDirty$: BehaviorSubject<boolean>;
|
|
1543
1596
|
isValid$: BehaviorSubject<boolean>;
|
|
1544
1597
|
isBusy$: BehaviorSubject<boolean>;
|
|
1545
1598
|
private lastRulesSignature;
|
|
1599
|
+
private pendingRulePropertiesStateSignature;
|
|
1546
1600
|
private readonly DEBUG;
|
|
1547
1601
|
private debugLog;
|
|
1602
|
+
get configTabOptions(): ConfigEditorTabOption[];
|
|
1603
|
+
configTabLabel(key: ConfigEditorTabKey): string;
|
|
1604
|
+
private buildPresentationPreviewItems;
|
|
1605
|
+
getConfigTabIndex(key: ConfigEditorTabKey): number;
|
|
1548
1606
|
constructor(storage: AsyncConfigStorage, configService: FormConfigService, settingsPanel: SettingsPanelService, cdr: ChangeDetectorRef, globalActionCatalogSource?: ReadonlyArray<GlobalActionCatalogEntry[]>, injectedData?: any);
|
|
1549
1607
|
ngOnInit(): void;
|
|
1550
1608
|
reset(): void;
|
|
@@ -1571,6 +1629,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1571
1629
|
applyCommandRule(): void;
|
|
1572
1630
|
deleteCommandRule(): void;
|
|
1573
1631
|
get commandRuleActionSchema(): _praxisui_core.GlobalActionUiSchema | undefined;
|
|
1632
|
+
get commandRuleSurfaceOpenPayload(): SurfaceOpenPayload;
|
|
1574
1633
|
shouldShowCommandActionField(field: GlobalActionField): boolean;
|
|
1575
1634
|
isCommandActionFieldRequired(field: GlobalActionField): boolean;
|
|
1576
1635
|
isCommandActionFieldMissing(field: GlobalActionField): boolean;
|
|
@@ -1579,12 +1638,15 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1579
1638
|
get commandRulePreview(): CommandRulePreviewModel;
|
|
1580
1639
|
getCommandActionFieldValue(field: GlobalActionField): any;
|
|
1581
1640
|
onCommandActionFieldChange(field: GlobalActionField, value: any): void;
|
|
1641
|
+
onCommandSurfaceOpenPayloadChange(payload: SurfaceOpenPayload): void;
|
|
1582
1642
|
private initializeCommandRuleEditor;
|
|
1583
1643
|
private loadCommandRuleEditor;
|
|
1644
|
+
private buildCommandRulePolicy;
|
|
1584
1645
|
private updateCommandRules;
|
|
1585
1646
|
private parseCommandRuleCondition;
|
|
1586
1647
|
private parseOptionalJson;
|
|
1587
1648
|
private parseCommandPayloadObject;
|
|
1649
|
+
private getCommandRuleErrorMessage;
|
|
1588
1650
|
private collectCommandActionFieldValues;
|
|
1589
1651
|
private setCommandActionFieldError;
|
|
1590
1652
|
private clearCommandActionFieldError;
|
|
@@ -1596,6 +1658,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1596
1658
|
getRuleStatusTone(diagnostic: FormRuleDiagnostics): 'ok' | 'warn' | 'error';
|
|
1597
1659
|
canAcceptPendingLlmRule(diagnostic: FormRuleDiagnostics): boolean;
|
|
1598
1660
|
canApplyRulePropertyFix(diagnostic: FormRuleDiagnostics): boolean;
|
|
1661
|
+
canOpenRuleJsonReview(diagnostic: FormRuleDiagnostics): boolean;
|
|
1662
|
+
openRuleJsonReview(ruleId: string): void;
|
|
1599
1663
|
applyRulePropertyFix(ruleId: string): void;
|
|
1600
1664
|
acceptPendingLlmRule(ruleId: string): void;
|
|
1601
1665
|
getRuleDiagnosticDetails(diagnostic: FormRuleDiagnostics): string[];
|
|
@@ -1628,6 +1692,7 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1628
1692
|
onLayoutSelect(event: any): void;
|
|
1629
1693
|
private openColumnEditor;
|
|
1630
1694
|
onCascadeApply(patch: Record<string, Partial<FieldDefinition>>): void;
|
|
1695
|
+
private syncCascadeManagerFields;
|
|
1631
1696
|
private stripLegacy;
|
|
1632
1697
|
private computeRulesSignature;
|
|
1633
1698
|
restoreHintsDefaults(): void;
|
|
@@ -1641,6 +1706,9 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1641
1706
|
private toPresentationSnapshot;
|
|
1642
1707
|
private toSchemaPrefsSnapshot;
|
|
1643
1708
|
private toBackConfigSnapshot;
|
|
1709
|
+
tx(key: string, fallback: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
1710
|
+
private resolveI18n;
|
|
1711
|
+
private interpolateFallback;
|
|
1644
1712
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDynamicFormConfigEditor, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
1645
1713
|
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisDynamicFormConfigEditor, "praxis-dynamic-form-config-editor", never, {}, {}, never, never, true, never>;
|
|
1646
1714
|
}
|
|
@@ -1829,6 +1897,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
1829
1897
|
chromeToggles: string[];
|
|
1830
1898
|
get borderEnabled(): boolean;
|
|
1831
1899
|
get dividerEnabled(): boolean;
|
|
1900
|
+
get layoutSections(): FormSection[];
|
|
1832
1901
|
canApplyAll(): boolean;
|
|
1833
1902
|
applyGapToAll(): void;
|
|
1834
1903
|
ngOnInit(): void;
|
|
@@ -1953,6 +2022,7 @@ declare class RowConfiguratorComponent implements OnChanges {
|
|
|
1953
2022
|
activeDropIndex: number | null;
|
|
1954
2023
|
protected readonly visualBlockPresets: readonly VisualBlockPreset[];
|
|
1955
2024
|
private readonly i18n;
|
|
2025
|
+
private readonly dialog;
|
|
1956
2026
|
private hoverTimer;
|
|
1957
2027
|
protected readonly breakpoints: Breakpoint[];
|
|
1958
2028
|
previewBreakpoint: Breakpoint;
|
|
@@ -2105,6 +2175,50 @@ declare class DomainRuleFormRulesService {
|
|
|
2105
2175
|
static ɵprov: i0.ɵɵInjectableDeclaration<DomainRuleFormRulesService>;
|
|
2106
2176
|
}
|
|
2107
2177
|
|
|
2178
|
+
declare class Ergadm00034CompactPresentationExampleComponent {
|
|
2179
|
+
private readonly dynamicLayout;
|
|
2180
|
+
readonly legacyFrequencyExample: _praxisui_dynamic_form.Ergadm00034CompactPresentationExample;
|
|
2181
|
+
readonly legacyFrequencyPresentationConfig: _praxisui_core.FormConfig;
|
|
2182
|
+
readonly legacyFrequencyInitialValue: Record<string, unknown>;
|
|
2183
|
+
readonly legacyFrequencyRows: readonly _praxisui_dynamic_form.Ergadm00034LegacyFrequencyRow[];
|
|
2184
|
+
readonly corporatePresentationExample: _praxisui_dynamic_form.CorporatePresentationExample;
|
|
2185
|
+
readonly corporatePresentationConfig: _praxisui_core.FormConfig;
|
|
2186
|
+
readonly corporatePresentationInitialValue: Record<string, unknown>;
|
|
2187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Ergadm00034CompactPresentationExampleComponent, never>;
|
|
2188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Ergadm00034CompactPresentationExampleComponent, "praxis-ergadm00034-compact-presentation-example", never, {}, {}, never, never, true, never>;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
interface Ergadm00034LegacyFrequencyRow {
|
|
2192
|
+
tipo: string;
|
|
2193
|
+
codigo: string;
|
|
2194
|
+
nome: string;
|
|
2195
|
+
preenchimento: string;
|
|
2196
|
+
marcador: string;
|
|
2197
|
+
selected?: boolean;
|
|
2198
|
+
}
|
|
2199
|
+
interface Ergadm00034CompactPresentationExample {
|
|
2200
|
+
readonly id: 'ergadm00034-compact-presentation';
|
|
2201
|
+
readonly title: string;
|
|
2202
|
+
readonly resourcePath: string;
|
|
2203
|
+
readonly layoutPreset: 'compactPresentation';
|
|
2204
|
+
readonly rows: readonly Ergadm00034LegacyFrequencyRow[];
|
|
2205
|
+
readonly tableConfig: TableConfig;
|
|
2206
|
+
readonly metadata: readonly FieldMetadata[];
|
|
2207
|
+
readonly initialValue: Record<string, unknown>;
|
|
2208
|
+
}
|
|
2209
|
+
interface CorporatePresentationExample {
|
|
2210
|
+
readonly id: 'corporate-presentation-format-gallery';
|
|
2211
|
+
readonly title: string;
|
|
2212
|
+
readonly resourcePath: string;
|
|
2213
|
+
readonly layoutPreset: 'compactPresentation';
|
|
2214
|
+
readonly metadata: readonly FieldMetadata[];
|
|
2215
|
+
readonly initialValue: Record<string, unknown>;
|
|
2216
|
+
}
|
|
2217
|
+
declare const ERGADM00034_COMPACT_PRESENTATION_EXAMPLE: Ergadm00034CompactPresentationExample;
|
|
2218
|
+
declare const CORPORATE_PRESENTATION_FORMAT_GALLERY: CorporatePresentationExample;
|
|
2219
|
+
declare function buildErgadm00034CompactPresentationConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2220
|
+
declare function buildCorporatePresentationFormatGalleryConfig(layoutService: DynamicFormLayoutService): FormConfig;
|
|
2221
|
+
|
|
2108
2222
|
declare function isRuleSatisfied(rule: FormLayoutRule, data: unknown): boolean;
|
|
2109
2223
|
/**
|
|
2110
2224
|
* Applies all visibility rules to the provided data and
|
|
@@ -2171,6 +2285,7 @@ declare class CanvasToolbarComponent {
|
|
|
2171
2285
|
/** Estado interno para animar o fechamento. */
|
|
2172
2286
|
closing: boolean;
|
|
2173
2287
|
private readonly closeAnimMs;
|
|
2288
|
+
private readonly i18n;
|
|
2174
2289
|
toggleReadonly: EventEmitter<void>;
|
|
2175
2290
|
toggleRequired: EventEmitter<void>;
|
|
2176
2291
|
toggleHidden: EventEmitter<void>;
|
|
@@ -2188,6 +2303,7 @@ declare class CanvasToolbarComponent {
|
|
|
2188
2303
|
onGlobalKeydown(ev: KeyboardEvent): void;
|
|
2189
2304
|
/** Inicia animação de saída e emite o evento ao final. */
|
|
2190
2305
|
triggerClose(): void;
|
|
2306
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2191
2307
|
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasToolbarComponent, never>;
|
|
2192
2308
|
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
2309
|
}
|
|
@@ -2345,6 +2461,7 @@ declare class RowEditorComponent implements OnInit, OnDestroy, SettingsValueProv
|
|
|
2345
2461
|
isBusy$: BehaviorSubject<boolean>;
|
|
2346
2462
|
private destroy$;
|
|
2347
2463
|
private initialValueSig;
|
|
2464
|
+
private readonly i18n;
|
|
2348
2465
|
constructor(fb: FormBuilder, data: {
|
|
2349
2466
|
row: EditableFormRow;
|
|
2350
2467
|
});
|
|
@@ -2353,10 +2470,12 @@ declare class RowEditorComponent implements OnInit, OnDestroy, SettingsValueProv
|
|
|
2353
2470
|
getSettingsValue(): any;
|
|
2354
2471
|
displayValue(value: number | null | undefined, fallback: string): string | number;
|
|
2355
2472
|
displayPxValue(value: number | null | undefined): string;
|
|
2473
|
+
visibilityStateLabel(bp: Breakpoint): string;
|
|
2356
2474
|
private setColumns;
|
|
2357
2475
|
applyPreset(preset: 'full' | 'half' | 'thirds' | 'thirdTwoThird' | 'twoThirdThird' | 'autoBalance'): void;
|
|
2358
2476
|
private resolveHiddenMode;
|
|
2359
2477
|
setHiddenMode(mode: 'none' | 'mobile' | 'desktop'): void;
|
|
2478
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2360
2479
|
static ɵfac: i0.ɵɵFactoryDeclaration<RowEditorComponent, never>;
|
|
2361
2480
|
static ɵcmp: i0.ɵɵComponentDeclaration<RowEditorComponent, "praxis-row-editor", never, {}, {}, never, never, true, never>;
|
|
2362
2481
|
}
|
|
@@ -2373,6 +2492,7 @@ declare class ColumnEditorComponent implements OnInit, OnDestroy, SettingsValueP
|
|
|
2373
2492
|
isBusy$: BehaviorSubject<boolean>;
|
|
2374
2493
|
private destroy$;
|
|
2375
2494
|
private _previewTimer;
|
|
2495
|
+
private readonly i18n;
|
|
2376
2496
|
constructor(fb: FormBuilder, data: {
|
|
2377
2497
|
column: FormColumn;
|
|
2378
2498
|
});
|
|
@@ -2396,6 +2516,7 @@ declare class ColumnEditorComponent implements OnInit, OnDestroy, SettingsValueP
|
|
|
2396
2516
|
resetResponsive(): void;
|
|
2397
2517
|
applyPreset(key: 'full' | 'half' | 'third' | 'twoThird' | 'centered' | 'narrowSidebar' | 'wideContent' | 'stackMobile' | 'hideMobile' | 'desktopOnly'): void;
|
|
2398
2518
|
toggleHiddenBp(bp: Breakpoint): void;
|
|
2519
|
+
tx(key: string, fallback: string, params?: Record<string, string | number>): string;
|
|
2399
2520
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnEditorComponent, never>;
|
|
2400
2521
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnEditorComponent, "praxis-column-editor", never, {}, {}, never, never, true, never>;
|
|
2401
2522
|
}
|
|
@@ -2634,5 +2755,5 @@ declare function buildDynamicFormRuleAuthoringContext(config: Pick<FormConfig, '
|
|
|
2634
2755
|
*/
|
|
2635
2756
|
declare const PRAXIS_DYNAMIC_FORM_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
2636
2757
|
|
|
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 };
|
|
2758
|
+
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 };
|
|
2759
|
+
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 };
|