@acorex/platform 21.0.0-next.3 → 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.
Files changed (30) hide show
  1. package/auth/index.d.ts +6 -6
  2. package/common/index.d.ts +10 -5
  3. package/core/index.d.ts +55 -315
  4. package/fesm2022/acorex-platform-auth.mjs +18 -22
  5. package/fesm2022/acorex-platform-auth.mjs.map +1 -1
  6. package/fesm2022/acorex-platform-common.mjs +62 -38
  7. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  8. package/fesm2022/acorex-platform-core.mjs +150 -246
  9. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-layout-builder.mjs +11 -2
  11. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-layout-components.mjs +3 -3
  13. package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
  14. package/fesm2022/acorex-platform-layout-entity.mjs +67 -83
  15. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  16. package/fesm2022/acorex-platform-layout-widget-core.mjs +110 -33
  17. package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-layout-widgets.mjs +19 -11
  19. package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
  20. 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
  21. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DfJEx_bs.mjs.map +1 -0
  22. package/fesm2022/acorex-platform-themes-default.mjs +2 -2
  23. package/fesm2022/acorex-platform-workflow.mjs +1268 -1699
  24. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  25. package/layout/builder/index.d.ts +6 -0
  26. package/layout/entity/index.d.ts +2 -9
  27. package/layout/widget-core/index.d.ts +42 -4
  28. package/package.json +5 -5
  29. package/workflow/index.d.ts +650 -1074
  30. 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> {
@@ -718,8 +718,6 @@ interface AXPEntityDefinitionPreloader {
718
718
  }
719
719
  declare class AXPEntityDefinitionRegistryService {
720
720
  private middleware;
721
- private moduleProviderLoader;
722
- private manifestRegistry;
723
721
  private onChanged;
724
722
  get onChanged$(): rxjs.Observable<{
725
723
  name: string;
@@ -769,12 +767,6 @@ declare class AXPEntityDefinitionRegistryService {
769
767
  */
770
768
  resolve(moduleName: string, entityName: string): Promise<AXPEntity>;
771
769
  exists(moduleName: string, entityName: string): Promise<boolean>;
772
- /**
773
- * Waits for module provider to be loaded if the module exists in manifest but provider isn't registered yet.
774
- * This handles race conditions where entity resolution happens before module providers finish loading.
775
- * Only waits for required modules or waits briefly for non-required modules (which may not be accessible to current user).
776
- */
777
- private waitForModuleProviderIfNeeded;
778
770
  /**
779
771
  * Creates a unique key for an entity based on its module and name.
780
772
  *
@@ -918,7 +910,6 @@ interface AXPEntityDefinitionLoader {
918
910
  declare const AXP_ENTITY_DEFINITION_LOADER: InjectionToken<AXPEntityDefinitionLoader>;
919
911
  declare class AXPEntityResolver {
920
912
  private providers;
921
- private providerRegistry;
922
913
  get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
923
914
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityResolver, never>;
924
915
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityResolver>;
@@ -1272,6 +1263,8 @@ interface IPropertyFilterStage {
1272
1263
  actions(delegate: (a: IActionBuilder) => void): IPropertyFilterStage;
1273
1264
  /** Add an extra field into a specific group, using the original field builder API */
1274
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>;
1275
1268
  /** Show dialog */
1276
1269
  show(): Promise<AXPDialogRef>;
1277
1270
  mode(mode: 'edit' | 'view'): IPropertyFilterStage;
@@ -289,7 +289,6 @@ interface AXPWidgetNode {
289
289
  name?: string;
290
290
  visible?: boolean | AXPExpression;
291
291
  defaultValue?: any;
292
- formula?: string;
293
292
  children?: AXPWidgetNode[];
294
293
  options?: AXPOptionsData;
295
294
  triggers?: AXPWidgetTriggers;
@@ -599,6 +598,47 @@ declare class AXPPropertyEditorHelper {
599
598
  }
600
599
  declare function findNonEmptyBreakpoints<T>(values: AXPBreakpointValues<T>): AXPBreakpoints[];
601
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
+
602
642
  declare abstract class AXPFlexBaseLayoutWidgetComponent extends AXPBlockBaseLayoutWidgetComponent {
603
643
  protected flex: _angular_core.Signal<AXPFlexBoxString | undefined>;
604
644
  hostFlexStyle: _angular_core.Signal<Record<string, string | number>>;
@@ -932,10 +972,8 @@ declare class AXPWidgetRendererDirective {
932
972
  private loadComponent;
933
973
  private applyOptions;
934
974
  private hasOptionsChanged;
935
- private checkFormulaForUpdate;
936
975
  preprocessAndInitialOptions(obj: any, pathPrefix?: string): void;
937
976
  updateOptionsBasedOnContext(): Promise<number>;
938
- updateValueBasedOnFormula(): Promise<void>;
939
977
  updateVisibility(): Promise<void>;
940
978
  private show;
941
979
  private hide;
@@ -978,5 +1016,5 @@ interface AXPMetaDataDefinition {
978
1016
 
979
1017
  declare const AXPWidgetsCatalog: AXPWidgetTypesMap;
980
1018
 
981
- 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 };
982
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",
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,10 +27,6 @@
27
27
  "types": "./index.d.ts",
28
28
  "default": "./fesm2022/acorex-platform.mjs"
29
29
  },
30
- "./auth": {
31
- "types": "./auth/index.d.ts",
32
- "default": "./fesm2022/acorex-platform-auth.mjs"
33
- },
34
30
  "./common": {
35
31
  "types": "./common/index.d.ts",
36
32
  "default": "./fesm2022/acorex-platform-common.mjs"
@@ -39,6 +35,10 @@
39
35
  "types": "./core/index.d.ts",
40
36
  "default": "./fesm2022/acorex-platform-core.mjs"
41
37
  },
38
+ "./auth": {
39
+ "types": "./auth/index.d.ts",
40
+ "default": "./fesm2022/acorex-platform-auth.mjs"
41
+ },
42
42
  "./domain": {
43
43
  "types": "./domain/index.d.ts",
44
44
  "default": "./fesm2022/acorex-platform-domain.mjs"