@praxisui/dynamic-form 4.0.0-beta.0 → 6.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -7,12 +7,12 @@ 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, FormSection, FormRow, FormColumn, FormConfig, FormActionButton, BackConfig, ApiEndpoint, ApiUrlEntry, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, WidgetEventEnvelope, WidgetDefinition, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, FieldDefinition, ComponentDocMeta, Breakpoint, IconPickerService, SurfaceOpenPayload, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
10
+ import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, PraxisJsonLogicService, FormSection, FormRow, FormColumn, FormConfig, FormActionButton, AiCapability, BackConfig, ApiEndpoint, ApiUrlEntry, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, WidgetEventEnvelope, WidgetDefinition, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, ApiUrlConfig, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, FieldDefinition, ComponentDocMeta, Breakpoint, IconPickerService, SurfaceOpenPayload, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
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 { KeyboardShortcutService } from '@praxisui/dynamic-fields';
15
- import { BaseAiAdapter, Capability as Capability$2, PatchResult } from '@praxisui/ai';
15
+ import { BaseAiAdapter, PatchResult } from '@praxisui/ai';
16
16
  import { RuleBuilderConfig, RuleBuilderState } from '@praxisui/visual-builder';
17
17
 
18
18
  declare class FormLayoutService {
@@ -55,7 +55,8 @@ interface RuleApplicationResult {
55
55
  columnProps: Record<string, Record<string, any>>;
56
56
  }
57
57
  declare class FormRulesService {
58
- private normalizeLegacyConditionSyntax;
58
+ private readonly jsonLogic;
59
+ constructor(jsonLogic: PraxisJsonLogicService);
59
60
  /**
60
61
  * Evaluates a set of form rules against the current value of a FormGroup.
61
62
  *
@@ -64,6 +65,7 @@ declare class FormRulesService {
64
65
  * @returns A RuleEvaluationResult object containing the visibility and required states for the fields.
65
66
  */
66
67
  applyRules(formGroup: FormGroup, formRules: FormLayoutRule[]): RuleApplicationResult;
68
+ private evaluateCondition;
67
69
  private setPath;
68
70
  private deletePath;
69
71
  static ɵfac: i0.ɵɵFactoryDeclaration<FormRulesService, never>;
@@ -341,7 +343,7 @@ declare class FormAiAdapter extends BaseAiAdapter<FormConfig> {
341
343
  componentType: string;
342
344
  constructor(host: FormAiHost);
343
345
  getCurrentConfig(): FormConfig;
344
- getCapabilities(): Capability$2[];
346
+ getCapabilities(): AiCapability[];
345
347
  getTaskPresets(): Record<string, string[]>;
346
348
  getRuntimeState(): Record<string, any>;
347
349
  createSnapshot(): FormConfig;
@@ -826,6 +828,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
826
828
  private isEditorialVisualContext;
827
829
  hasEditorialVisualContext(): boolean;
828
830
  private applyBorderPropsToStyle;
831
+ private resolveRuleVisibility;
829
832
  toggleSectionCollapse(event: Event, section: FormSection): void;
830
833
  sectionPanelId(section: FormSection, index: number): string;
831
834
  getSectionCollapsedSummary(section: FormSection): string;
@@ -834,6 +837,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
834
837
  id?: string;
835
838
  }): FieldMetadata[];
836
839
  private getColumnRuleProps;
840
+ private buildFieldRuleMetadataOverrides;
841
+ private normalizeRuleFieldOptions;
837
842
  private getEffectiveColumn;
838
843
  getColumnClasses(column: FormColumn): string[];
839
844
  private getColumnSpanClasses;
@@ -841,6 +846,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
841
846
  private getColumnOrderClasses;
842
847
  private getColumnHiddenClasses;
843
848
  isColumnVisible(column: FormColumn): boolean;
849
+ private isResponsiveHiddenActive;
844
850
  getColumnPadding(column: FormColumn): number | undefined;
845
851
  getColumnStyles(column: FormColumn): Record<string, any> | null;
846
852
  private _getConfirmationMessage;
@@ -923,6 +929,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
923
929
  private applyFieldMetadataPatch;
924
930
  /** Find the DynamicFieldLoaderDirective instance that currently hosts a given field */
925
931
  private findLoaderForField;
932
+ private applyLiveFieldMetadata;
926
933
  onToolbarMove(direction: 'up' | 'down'): void;
927
934
  onToolbarToggleReadonly(): void;
928
935
  onToolbarToggleRequired(): void;
@@ -1732,7 +1739,7 @@ declare class ActionsEditorComponent {
1732
1739
  }
1733
1740
 
1734
1741
  /**
1735
- * Catálogo de capacidades do PraxisDynamicForm para uso da IA.
1742
+ * Catálogo de capacidades do PraxisDynamicForm para uso da IA.
1736
1743
  * Paths seguem o schema do FormConfig (layout + metadados de campos).
1737
1744
  */
1738
1745
 
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@praxisui/dynamic-form",
3
- "version": "4.0.0-beta.0",
3
+ "version": "6.0.0-beta.0",
4
4
  "description": "Angular dynamic form engine for Praxis UI: metadata-driven forms, hooks, and services integrating @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.0.0",
7
7
  "@angular/core": "^20.0.0",
8
8
  "@angular/cdk": "^20.0.0",
9
- "@praxisui/settings-panel": "^4.0.0-beta.0",
10
- "@praxisui/visual-builder": "^4.0.0-beta.0",
11
- "@praxisui/specification-core": "^4.0.0-beta.0",
12
- "@praxisui/specification": "^4.0.0-beta.0",
13
- "@praxisui/core": "^4.0.0-beta.0",
14
- "@praxisui/cron-builder": "^4.0.0-beta.0"
9
+ "@praxisui/settings-panel": "^6.0.0-beta.0",
10
+ "@praxisui/visual-builder": "^6.0.0-beta.0",
11
+ "@praxisui/core": "^6.0.0-beta.0",
12
+ "@praxisui/cron-builder": "^6.0.0-beta.0"
15
13
  },
16
14
  "dependencies": {
17
15
  "tslib": "^2.3.0",