@praxisui/dynamic-form 3.0.0-beta.5 → 3.0.0-beta.7

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
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnChanges, OnDestroy, EventEmitter, SimpleChanges, OnInit, ChangeDetectorRef, Provider, AfterViewInit, ElementRef } from '@angular/core';
3
- import { FormGroup, FormBuilder } from '@angular/forms';
3
+ import { FormGroup, FormBuilder, FormArray } from '@angular/forms';
4
4
  import { Router, ActivatedRoute } from '@angular/router';
5
5
  import { MatDialog } from '@angular/material/dialog';
6
6
  import { MatSnackBar } from '@angular/material/snack-bar';
7
7
  import { CdkDragStart, CdkDragMove, CdkDragEnd, CdkDragDrop } from '@angular/cdk/drag-drop';
8
- import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, FormSection, FormRow, FormColumn, FormConfig, FormActionButton, BackConfig, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, WidgetDefinition, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, FormSectionHeaderConfig, FormConfigState, FieldDefinition, Breakpoint, ComponentDocMeta, IconPickerService, PraxisI18nService, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
8
+ import { AsyncConfigStorage, FormLayout, FieldMetadata, FormLayoutRule, FormRuleTargetType as FormRuleTargetType$1, FormSection, FormRow, FormColumn, FormConfig, FormActionButton, BackConfig, FormHooksLayout, EndpointConfig, FormSubmitEvent, FormReadyEvent, FormValueChangeEvent, SyncResult, FormInitializationError, LoadingState, FormCustomActionEvent, FormActionConfirmationEvent, WidgetDefinition, GenericCrudService, ConnectionStorage, DynamicFormService, ErrorMessageService, SchemaNormalizerService, ComponentMetadataRegistry, GlobalConfigService, ComponentKeyService, LoadingOrchestrator, PraxisLoadingRenderer, FormHooksRegistry, FormHookPreset, LoggerService, FormSectionHeaderAction, FormSectionHeaderConfig, FormConfigState, FieldDefinition, Breakpoint, ComponentDocMeta, IconPickerService, PraxisI18nService, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
9
9
  import * as rxjs from 'rxjs';
10
10
  import { Observable, BehaviorSubject } from 'rxjs';
11
11
  import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
@@ -747,10 +747,21 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
747
747
  getSectionTitleStyle(section: FormSection): string | undefined;
748
748
  getSectionDescriptionStyle(section: FormSection): string | undefined;
749
749
  getSectionHeaderTooltip(section: FormSection): string | undefined;
750
+ getSectionHeaderActions(section: FormSection): FormSectionHeaderAction[];
750
751
  getSectionHeaderAlign(section: FormSection): 'start' | 'center' | undefined;
751
752
  getSectionGapBottom(section: FormSection): number | null;
752
753
  getSectionTitleGapBottom(section: FormSection): number | null;
753
754
  getSectionDescriptionGapBottom(section: FormSection): number | null;
755
+ getSectionHeaderActionColor(action: FormSectionHeaderAction): 'primary' | 'accent' | 'warn' | undefined;
756
+ getSectionHeaderActionTooltip(action: FormSectionHeaderAction): string;
757
+ isSectionHeaderActionDisabled(action: FormSectionHeaderAction): boolean;
758
+ getSectionHeaderActionNgClass(action: FormSectionHeaderAction): Record<string, boolean>;
759
+ getSectionHeaderActionStyles(action: FormSectionHeaderAction): Record<string, any> | null;
760
+ getSectionHeaderActionLoadingLabel(action: FormSectionHeaderAction): string;
761
+ onSectionHeaderActionClick(section: FormSection, action: FormSectionHeaderAction, event: Event): void;
762
+ private applySectionHeaderActionOverrides;
763
+ private getSectionHeaderActionEventId;
764
+ private getSectionHeaderActionRuleKeys;
754
765
  private getRowRuleProps;
755
766
  isRowVisible(row?: FormRow): boolean;
756
767
  getRowGap(row: FormRow): number | null;
@@ -794,6 +805,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
794
805
  getColumnPadding(column: FormColumn): number | undefined;
795
806
  getColumnStyles(column: FormColumn): Record<string, any> | null;
796
807
  private _getConfirmationMessage;
808
+ private _getConfirmationMessageForAliases;
797
809
  private _showConfirmationDialog;
798
810
  onFormAction(event: PraxisFormActionEvent): void;
799
811
  private _executeAction;
@@ -1500,10 +1512,16 @@ declare class SectionEditorComponent implements OnInit, AfterViewInit, OnDestroy
1500
1512
  ngAfterViewInit(): void;
1501
1513
  ngOnDestroy(): void;
1502
1514
  getSettingsValue(): any;
1515
+ get headerActionsArray(): FormArray;
1516
+ getHeaderActionStylePlaceholder(): string;
1503
1517
  pickIcon(): Promise<void>;
1504
1518
  clearIcon(): void;
1505
1519
  pickFallbackIcon(): Promise<void>;
1506
1520
  clearFallbackIcon(): void;
1521
+ addHeaderAction(): void;
1522
+ removeHeaderAction(index: number): void;
1523
+ moveHeaderActionUp(index: number): void;
1524
+ moveHeaderActionDown(index: number): void;
1507
1525
  private syncCollapsedControlState;
1508
1526
  applyPreset(key: 'default' | 'simple' | 'collapsible' | 'denseGrid'): void;
1509
1527
  setCustomColors(value: string): void;
@@ -1512,10 +1530,16 @@ declare class SectionEditorComponent implements OnInit, AfterViewInit, OnDestroy
1512
1530
  trackFieldOption(index: number, field: {
1513
1531
  value: string;
1514
1532
  }): string;
1515
- tx(key: string, fallback: string): string;
1533
+ tx(key: string, fallback: string, params?: Record<string, string | number>): string;
1516
1534
  private applyNormalizedFormValue;
1517
1535
  private normalizeSectionFormValue;
1518
1536
  private normalizeSectionHeader;
1537
+ private createHeaderActionGroup;
1538
+ private moveHeaderAction;
1539
+ private normalizeHeaderActions;
1540
+ private headerActionStyleValidator;
1541
+ private stringifyHeaderActionStyle;
1542
+ private parseHeaderActionStyle;
1519
1543
  private normalizeOptionalString;
1520
1544
  private normalizeOptionalNumber;
1521
1545
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionEditorComponent, never>;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@praxisui/dynamic-form",
3
- "version": "3.0.0-beta.5",
3
+ "version": "3.0.0-beta.7",
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": "^3.0.0-beta.5",
10
- "@praxisui/visual-builder": "^3.0.0-beta.5",
11
- "@praxisui/specification-core": "^3.0.0-beta.5",
12
- "@praxisui/specification": "^3.0.0-beta.5",
13
- "@praxisui/core": "^3.0.0-beta.5",
14
- "@praxisui/cron-builder": "^3.0.0-beta.5"
9
+ "@praxisui/settings-panel": "^3.0.0-beta.7",
10
+ "@praxisui/visual-builder": "^3.0.0-beta.7",
11
+ "@praxisui/specification-core": "^3.0.0-beta.7",
12
+ "@praxisui/specification": "^3.0.0-beta.7",
13
+ "@praxisui/core": "^3.0.0-beta.7",
14
+ "@praxisui/cron-builder": "^3.0.0-beta.7"
15
15
  },
16
16
  "dependencies": {
17
17
  "tslib": "^2.3.0",