@praxisui/dynamic-form 8.0.0-beta.12 → 8.0.0-beta.14
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/fesm2022/praxisui-dynamic-form.mjs +126 -28
- package/index.d.ts +18 -7
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ interface RuleApplicationResult {
|
|
|
53
53
|
actionProps: Record<string, Record<string, any>>;
|
|
54
54
|
rowProps: Record<string, Record<string, any>>;
|
|
55
55
|
columnProps: Record<string, Record<string, any>>;
|
|
56
|
+
visualBlockProps: Record<string, Record<string, any>>;
|
|
56
57
|
}
|
|
57
58
|
declare class FormRulesService {
|
|
58
59
|
private readonly jsonLogic;
|
|
@@ -559,6 +560,8 @@ interface FormColumnRichContentRenderItem {
|
|
|
559
560
|
document: RichContentDocument;
|
|
560
561
|
layout: 'block' | 'inline';
|
|
561
562
|
rootClassName?: string | null;
|
|
563
|
+
className?: string | null;
|
|
564
|
+
style?: Record<string, any> | null;
|
|
562
565
|
}
|
|
563
566
|
type FormColumnRenderItem = FormColumnFieldsRenderItem | FormColumnRichContentRenderItem;
|
|
564
567
|
declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
@@ -722,6 +725,7 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
722
725
|
actionRuleProps: Record<string, Record<string, any>>;
|
|
723
726
|
private rowRuleProps;
|
|
724
727
|
private columnRuleProps;
|
|
728
|
+
private visualBlockRuleProps;
|
|
725
729
|
private pendingEntityId;
|
|
726
730
|
private loadedEntityId;
|
|
727
731
|
private hydratedEntityId;
|
|
@@ -953,6 +957,8 @@ declare class PraxisDynamicForm implements OnInit, OnChanges, OnDestroy {
|
|
|
953
957
|
}): FieldMetadata[];
|
|
954
958
|
getRichContentLayoutItemDocument(item: FormLayoutItem): RichContentDocument | null;
|
|
955
959
|
getRichContentLayoutItemLayout(item: FormLayoutItem): 'block' | 'inline';
|
|
960
|
+
private getVisualBlockRuleProps;
|
|
961
|
+
private isRichContentLayoutItemVisible;
|
|
956
962
|
private getColumnFieldsSignature;
|
|
957
963
|
private getColumnItemsSignature;
|
|
958
964
|
private getColumnRuleProps;
|
|
@@ -1302,6 +1308,8 @@ declare class PraxisDynamicFormConfigEditor implements SettingsValueProvider, On
|
|
|
1302
1308
|
onSchemaPrefsChange(reason: string): void;
|
|
1303
1309
|
private createRuleBuilderConfig;
|
|
1304
1310
|
private mapMetadataToSchema;
|
|
1311
|
+
private getVisualBlockTargetLabel;
|
|
1312
|
+
private findRichContentNodeText;
|
|
1305
1313
|
private mapDataTypeToFieldType;
|
|
1306
1314
|
ngOnDestroy(): void;
|
|
1307
1315
|
onLayoutSelect(event: any): void;
|
|
@@ -1487,6 +1495,7 @@ declare class LayoutEditorComponent implements OnInit {
|
|
|
1487
1495
|
selectRow(sectionIndex: number, rowIndex: number): void;
|
|
1488
1496
|
selectColumn(sectionIndex: number, rowIndex: number, columnIndex: number): void;
|
|
1489
1497
|
dropField({ event }: FieldDropEvent): void;
|
|
1498
|
+
private getColumnLayoutItemByIndex;
|
|
1490
1499
|
private getColumnTargetByIndex;
|
|
1491
1500
|
private getLayoutItemTargetByIndex;
|
|
1492
1501
|
dropSection(event: CdkDragDrop<FormSection[]>): void;
|
|
@@ -1586,19 +1595,20 @@ declare class RowConfiguratorComponent implements OnChanges {
|
|
|
1586
1595
|
private rebuildConnectedColumnsCache;
|
|
1587
1596
|
getFieldByName(fieldName: string): FieldMetadata;
|
|
1588
1597
|
getColumnLayoutItems(column: FormColumn): FormLayoutItem[];
|
|
1598
|
+
trackLayoutItem(_: number, item: FormLayoutItem): string;
|
|
1589
1599
|
hasColumnContent(column: FormColumn): boolean;
|
|
1590
1600
|
getVisualBlockLabel(item: FormLayoutItem): string;
|
|
1591
1601
|
private findRichContentLabel;
|
|
1592
1602
|
private findRichNodeLabel;
|
|
1593
1603
|
t(key: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
1594
1604
|
getFieldLabel(field: FieldMetadata): string;
|
|
1595
|
-
selectVisualBlock(columnIndex: number, item: FormLayoutItem, event:
|
|
1596
|
-
openVisualBlockEditor(columnIndex: number, item: FormLayoutItem, event:
|
|
1597
|
-
moveVisualBlockItem(columnIndex: number, item: FormLayoutItem, direction: -1 | 1, event:
|
|
1605
|
+
selectVisualBlock(columnIndex: number, item: FormLayoutItem, event: Event): void;
|
|
1606
|
+
openVisualBlockEditor(columnIndex: number, item: FormLayoutItem, event: Event): void;
|
|
1607
|
+
moveVisualBlockItem(columnIndex: number, item: FormLayoutItem, direction: -1 | 1, event: Event): void;
|
|
1598
1608
|
canMoveVisualBlockToColumn(columnIndex: number, direction: -1 | 1): boolean;
|
|
1599
|
-
moveVisualBlockToAdjacentColumn(columnIndex: number, item: FormLayoutItem, direction: -1 | 1, event:
|
|
1600
|
-
removeVisualBlockItem(columnIndex: number, item: FormLayoutItem, event:
|
|
1601
|
-
drop(event: CdkDragDrop<
|
|
1609
|
+
moveVisualBlockToAdjacentColumn(columnIndex: number, item: FormLayoutItem, direction: -1 | 1, event: Event): void;
|
|
1610
|
+
removeVisualBlockItem(columnIndex: number, item: FormLayoutItem, event: Event): void;
|
|
1611
|
+
drop(event: CdkDragDrop<FormLayoutItem[], FormLayoutItem[] | FieldMetadata[], FormLayoutItem | FieldMetadata>): void;
|
|
1602
1612
|
selectRow(): void;
|
|
1603
1613
|
openColumnConfig(index: number): void;
|
|
1604
1614
|
selectColumn(index: number, event: MouseEvent): void;
|
|
@@ -2056,7 +2066,8 @@ declare enum FormRuleTargetType {
|
|
|
2056
2066
|
Section = "section",
|
|
2057
2067
|
Action = "action",
|
|
2058
2068
|
Row = "row",
|
|
2059
|
-
Column = "column"
|
|
2069
|
+
Column = "column",
|
|
2070
|
+
VisualBlock = "visualBlock"
|
|
2060
2071
|
}
|
|
2061
2072
|
declare enum FormRuleContext {
|
|
2062
2073
|
Visibility = "visibility",
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-form",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.14",
|
|
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/rich-content": "^8.0.0-beta.
|
|
10
|
-
"@praxisui/settings-panel": "^8.0.0-beta.
|
|
11
|
-
"@praxisui/visual-builder": "^8.0.0-beta.
|
|
12
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
13
|
-
"@praxisui/cron-builder": "^8.0.0-beta.
|
|
9
|
+
"@praxisui/rich-content": "^8.0.0-beta.14",
|
|
10
|
+
"@praxisui/settings-panel": "^8.0.0-beta.14",
|
|
11
|
+
"@praxisui/visual-builder": "^8.0.0-beta.14",
|
|
12
|
+
"@praxisui/core": "^8.0.0-beta.14",
|
|
13
|
+
"@praxisui/cron-builder": "^8.0.0-beta.14"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tslib": "^2.3.0",
|