@praxisui/dynamic-form 2.0.0-beta.0 → 3.0.0-beta.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 +5 -4
- package/fesm2022/praxisui-dynamic-form.mjs +325 -235
- package/fesm2022/praxisui-dynamic-form.mjs.map +1 -1
- package/index.d.ts +9 -4
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ 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, FormConfigState, FieldDefinition, Breakpoint, ComponentDocMeta,
|
|
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';
|
|
9
9
|
import * as rxjs from 'rxjs';
|
|
10
10
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
11
11
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
@@ -759,6 +759,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
759
759
|
getRowStyles(row: FormRow): Record<string, any> | null;
|
|
760
760
|
getSectionIcon(section: FormSection): string | undefined;
|
|
761
761
|
getSectionHeaderVisual(section: FormSection): ResolvedSectionHeaderVisual;
|
|
762
|
+
getSectionHeaderAvatarSize(section: FormSection): NonNullable<FormSectionHeaderConfig['size']> | null;
|
|
762
763
|
private getSectionHeaderConfig;
|
|
763
764
|
private getSectionHeaderFieldValue;
|
|
764
765
|
private getSectionHeaderInitialsSourceValue;
|
|
@@ -1478,6 +1479,10 @@ declare class SectionEditorComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
1478
1479
|
section: EditableFormSection;
|
|
1479
1480
|
form: FormGroup;
|
|
1480
1481
|
breakpoints: Breakpoint[];
|
|
1482
|
+
fieldOptions: Array<{
|
|
1483
|
+
value: string;
|
|
1484
|
+
label: string;
|
|
1485
|
+
}>;
|
|
1481
1486
|
isDirty$: BehaviorSubject<boolean>;
|
|
1482
1487
|
isValid$: BehaviorSubject<boolean>;
|
|
1483
1488
|
isBusy$: BehaviorSubject<boolean>;
|
|
@@ -1496,14 +1501,14 @@ declare class SectionEditorComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
1496
1501
|
clearIcon(): void;
|
|
1497
1502
|
pickFallbackIcon(): Promise<void>;
|
|
1498
1503
|
clearFallbackIcon(): void;
|
|
1504
|
+
private syncCollapsedControlState;
|
|
1499
1505
|
applyPreset(key: 'default' | 'simple' | 'collapsible' | 'denseGrid'): void;
|
|
1500
1506
|
setCustomColors(value: string): void;
|
|
1501
1507
|
onTitleStyleChange(style: string): void;
|
|
1502
1508
|
onDescriptionStyleChange(style: string): void;
|
|
1503
|
-
|
|
1509
|
+
trackFieldOption(index: number, field: {
|
|
1504
1510
|
value: string;
|
|
1505
|
-
|
|
1506
|
-
}>;
|
|
1511
|
+
}): string;
|
|
1507
1512
|
tx(key: string, fallback: string): string;
|
|
1508
1513
|
private applyNormalizedFormValue;
|
|
1509
1514
|
private normalizeSectionFormValue;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
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": "^
|
|
10
|
-
"@praxisui/visual-builder": "^
|
|
11
|
-
"@praxisui/specification-core": "^
|
|
12
|
-
"@praxisui/specification": "^
|
|
13
|
-
"@praxisui/core": "^
|
|
14
|
-
"@praxisui/cron-builder": "^
|
|
9
|
+
"@praxisui/settings-panel": "^3.0.0-beta.1",
|
|
10
|
+
"@praxisui/visual-builder": "^3.0.0-beta.1",
|
|
11
|
+
"@praxisui/specification-core": "^3.0.0-beta.1",
|
|
12
|
+
"@praxisui/specification": "^3.0.0-beta.1",
|
|
13
|
+
"@praxisui/core": "^3.0.0-beta.1",
|
|
14
|
+
"@praxisui/cron-builder": "^3.0.0-beta.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"tslib": "^2.3.0",
|