@acorex/platform 21.0.0-next.5 → 21.0.0-next.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/fesm2022/acorex-platform-layout-builder.mjs +11 -2
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +37 -23
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +108 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +11 -9
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs → acorex-platform-themes-default-entity-master-list-view.component-DfJEx_bs.mjs} +2 -2
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DfJEx_bs.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/fesm2022/acorex-platform-workflow.mjs +1078 -456
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +6 -0
- package/layout/entity/index.d.ts +2 -0
- package/layout/widget-core/index.d.ts +42 -1
- package/package.json +9 -9
- package/workflow/index.d.ts +497 -286
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +0 -1
|
@@ -415,6 +415,11 @@ interface ILayoutBuilder {
|
|
|
415
415
|
dialog(delegate: (container: IDialogBuilder) => void): IDialogBuilder;
|
|
416
416
|
stepWizard(delegate: (wizard: IStepWizardBuilder) => void): ILayoutBuilder;
|
|
417
417
|
build(): AXPWidgetNode;
|
|
418
|
+
toJson(options?: {
|
|
419
|
+
removeMeta?: boolean;
|
|
420
|
+
removeFunctions?: boolean;
|
|
421
|
+
pretty?: boolean;
|
|
422
|
+
}): string;
|
|
418
423
|
}
|
|
419
424
|
interface IWidgetBuilder {
|
|
420
425
|
name(name: string): IWidgetBuilder;
|
|
@@ -565,6 +570,7 @@ interface IDialogBuilder {
|
|
|
565
570
|
content(delegate: (layoutBuilder: IFlexContainerBuilder) => void): IDialogBuilder;
|
|
566
571
|
setActions(delegate?: (actions: IActionBuilder) => void): IDialogBuilder;
|
|
567
572
|
addCustomAction(action: AXPActionMenuItem): IDialogBuilder;
|
|
573
|
+
build(): AXPWidgetNode;
|
|
568
574
|
show(): Promise<AXPDialogRef>;
|
|
569
575
|
}
|
|
570
576
|
interface IListWidgetBuilder extends IBaseContainerBuilder<IListWidgetBuilder>, ILayoutContainerBuilder<IListWidgetBuilder>, IChildContainerBuilder<IListWidgetBuilder>, IWidgetContainerBuilder<IListWidgetBuilder> {
|
package/layout/entity/index.d.ts
CHANGED
|
@@ -1263,6 +1263,8 @@ interface IPropertyFilterStage {
|
|
|
1263
1263
|
actions(delegate: (a: IActionBuilder) => void): IPropertyFilterStage;
|
|
1264
1264
|
/** Add an extra field into a specific group, using the original field builder API */
|
|
1265
1265
|
field(groupId: string, path: string, delegate?: (field: CompatFormFieldBuilder) => void): IPropertyFilterStage;
|
|
1266
|
+
/** Build and return the widget node without showing dialog */
|
|
1267
|
+
build(): Promise<AXPWidgetNode>;
|
|
1266
1268
|
/** Show dialog */
|
|
1267
1269
|
show(): Promise<AXPDialogRef>;
|
|
1268
1270
|
mode(mode: 'edit' | 'view'): IPropertyFilterStage;
|
|
@@ -598,6 +598,47 @@ declare class AXPPropertyEditorHelper {
|
|
|
598
598
|
}
|
|
599
599
|
declare function findNonEmptyBreakpoints<T>(values: AXPBreakpointValues<T>): AXPBreakpoints[];
|
|
600
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Helper class for serializing and deserializing AXPWidgetNode to/from JSON
|
|
603
|
+
*/
|
|
604
|
+
declare class AXPWidgetSerializationHelper {
|
|
605
|
+
/**
|
|
606
|
+
* Removes non-serializable properties from widget node
|
|
607
|
+
* @param node - The widget node to clean
|
|
608
|
+
* @param options - Serialization options
|
|
609
|
+
* @returns Cleaned widget node ready for JSON serialization
|
|
610
|
+
*/
|
|
611
|
+
private static cleanNode;
|
|
612
|
+
/**
|
|
613
|
+
* Recursively removes functions from object properties
|
|
614
|
+
*/
|
|
615
|
+
private static removeFunctions;
|
|
616
|
+
/**
|
|
617
|
+
* Converts AXPWidgetNode to JSON string
|
|
618
|
+
* @param node - The widget node to serialize
|
|
619
|
+
* @param options - Serialization options
|
|
620
|
+
* @returns JSON string representation of the widget node
|
|
621
|
+
*/
|
|
622
|
+
static toJson(node: AXPWidgetNode, options?: {
|
|
623
|
+
removeMeta?: boolean;
|
|
624
|
+
removeFunctions?: boolean;
|
|
625
|
+
pretty?: boolean;
|
|
626
|
+
}): string;
|
|
627
|
+
/**
|
|
628
|
+
* Converts JSON string to AXPWidgetNode
|
|
629
|
+
* @param json - JSON string to deserialize
|
|
630
|
+
* @returns Parsed AXPWidgetNode object
|
|
631
|
+
* @throws Error if JSON is invalid or doesn't match AXPWidgetNode structure
|
|
632
|
+
*/
|
|
633
|
+
static fromJson(json: string): AXPWidgetNode;
|
|
634
|
+
/**
|
|
635
|
+
* Removes meta property from widget node (similar to designer service)
|
|
636
|
+
* @param node - The widget node to process
|
|
637
|
+
* @returns Widget node without meta property
|
|
638
|
+
*/
|
|
639
|
+
static removeMeta(node: AXPWidgetNode): AXPWidgetNode;
|
|
640
|
+
}
|
|
641
|
+
|
|
601
642
|
declare abstract class AXPFlexBaseLayoutWidgetComponent extends AXPBlockBaseLayoutWidgetComponent {
|
|
602
643
|
protected flex: _angular_core.Signal<AXPFlexBoxString | undefined>;
|
|
603
644
|
hostFlexStyle: _angular_core.Signal<Record<string, string | number>>;
|
|
@@ -975,5 +1016,5 @@ interface AXPMetaDataDefinition {
|
|
|
975
1016
|
|
|
976
1017
|
declare const AXPWidgetsCatalog: AXPWidgetTypesMap;
|
|
977
1018
|
|
|
978
|
-
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreContextChangeEvent, AXPWidgetCoreContextStore, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_TOKEN, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints };
|
|
1019
|
+
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreContextChangeEvent, AXPWidgetCoreContextStore, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_TOKEN, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints };
|
|
979
1020
|
export type { AXPBorderBox, AXPBorderBoxString, AXPBreakpointValues, AXPBreakpoints, AXPClassMap, AXPExtractWidgetConfig, AXPFlexBoxString, AXPFlexItemBoxString, AXPGridBoxString, AXPGridBreakpointValues, AXPGridItemBoxString, AXPLayoutBuilderStatusChangedEvent, AXPMetaDataDefinition, AXPPropertyCorners, AXPPropertyEditorCornerValues, AXPPropertyEditorSideGeneric, AXPPropertyEditorSideValues, AXPPropertySides, AXPSpacingBox, AXPSpacingBoxString, AXPStyleMap, AXPWidgetCategory, AXPWidgetColumnNode, AXPWidgetColumnNodeToken, AXPWidgetComponentConfig, AXPWidgetConfig, AXPWidgetConfigComponents, AXPWidgetCoreContextState, AXPWidgetCoreElementAPI, AXPWidgetCoreElementAction, AXPWidgetCoreModuleConfigs, AXPWidgetDesignerOptionsMap, AXPWidgetGroup, AXPWidgetNode, AXPWidgetNodeToken, AXPWidgetProperty, AXPWidgetPropertyGroup, AXPWidgetRenderMode, AXPWidgetRendererDirectiveOptions, AXPWidgetTypesMap, AXPWidgetViewType, extendedWidget };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/platform",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@acorex/cdk": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
|
|
6
6
|
"@acorex/core": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
|
|
@@ -27,18 +27,22 @@
|
|
|
27
27
|
"types": "./index.d.ts",
|
|
28
28
|
"default": "./fesm2022/acorex-platform.mjs"
|
|
29
29
|
},
|
|
30
|
+
"./common": {
|
|
31
|
+
"types": "./common/index.d.ts",
|
|
32
|
+
"default": "./fesm2022/acorex-platform-common.mjs"
|
|
33
|
+
},
|
|
30
34
|
"./core": {
|
|
31
35
|
"types": "./core/index.d.ts",
|
|
32
36
|
"default": "./fesm2022/acorex-platform-core.mjs"
|
|
33
37
|
},
|
|
38
|
+
"./auth": {
|
|
39
|
+
"types": "./auth/index.d.ts",
|
|
40
|
+
"default": "./fesm2022/acorex-platform-auth.mjs"
|
|
41
|
+
},
|
|
34
42
|
"./domain": {
|
|
35
43
|
"types": "./domain/index.d.ts",
|
|
36
44
|
"default": "./fesm2022/acorex-platform-domain.mjs"
|
|
37
45
|
},
|
|
38
|
-
"./common": {
|
|
39
|
-
"types": "./common/index.d.ts",
|
|
40
|
-
"default": "./fesm2022/acorex-platform-common.mjs"
|
|
41
|
-
},
|
|
42
46
|
"./native": {
|
|
43
47
|
"types": "./native/index.d.ts",
|
|
44
48
|
"default": "./fesm2022/acorex-platform-native.mjs"
|
|
@@ -51,10 +55,6 @@
|
|
|
51
55
|
"types": "./workflow/index.d.ts",
|
|
52
56
|
"default": "./fesm2022/acorex-platform-workflow.mjs"
|
|
53
57
|
},
|
|
54
|
-
"./auth": {
|
|
55
|
-
"types": "./auth/index.d.ts",
|
|
56
|
-
"default": "./fesm2022/acorex-platform-auth.mjs"
|
|
57
|
-
},
|
|
58
58
|
"./layout/builder": {
|
|
59
59
|
"types": "./layout/builder/index.d.ts",
|
|
60
60
|
"default": "./fesm2022/acorex-platform-layout-builder.mjs"
|