@acorex/platform 19.1.7 → 19.1.8

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 (45) hide show
  1. package/common/lib/common.module.d.ts +6 -7
  2. package/common/lib/layout/menu/menu.types.d.ts +2 -2
  3. package/common/lib/layout/menu/search.provider.d.ts +2 -2
  4. package/common/lib/search/search.provider.d.ts +4 -0
  5. package/common/lib/store/common.actions.d.ts +0 -12
  6. package/common/lib/store/index.d.ts +0 -1
  7. package/common/lib/workflows/index.d.ts +1 -0
  8. package/common/lib/workflows/navigate.workflow.d.ts +9 -0
  9. package/core/lib/types.d.ts +19 -0
  10. package/fesm2022/acorex-platform-common.mjs +805 -793
  11. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-layout-builder.mjs +1 -0
  14. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-layout-entity.mjs +93 -6
  16. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  17. package/fesm2022/acorex-platform-layout-search.mjs +18 -5
  18. package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-themes-default-search-popup.component-BiKt6Mvr.mjs +84 -0
  20. package/fesm2022/acorex-platform-themes-default-search-popup.component-BiKt6Mvr.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-themes-default.mjs +5 -5
  22. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  23. package/fesm2022/acorex-platform-widgets.mjs +308 -33
  24. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  25. package/layout/builder/lib/builder/widget-map.d.ts +1 -0
  26. package/layout/entity/lib/entity-registery.service.d.ts +16 -0
  27. package/layout/entity/lib/entity.config.d.ts +2 -2
  28. package/layout/entity/lib/entity.module.d.ts +3 -0
  29. package/layout/entity/lib/search-definition.provider.d.ts +6 -0
  30. package/layout/entity/lib/search.provider.d.ts +4 -0
  31. package/layout/search/lib/search.viewmodel.d.ts +5 -1
  32. package/layout/search/lib/workflows/search.workflow.d.ts +2 -1
  33. package/package.json +13 -13
  34. package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +3 -1
  35. package/widgets/lib/properties/layout.props.d.ts +1 -0
  36. package/widgets/lib/widgets/index.d.ts +1 -0
  37. package/widgets/lib/widgets/layout/grid/grid-widget-designer.component.d.ts +3 -1
  38. package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget-editor.component.d.ts +39 -0
  39. package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.config.d.ts +7 -0
  40. package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.type.d.ts +19 -0
  41. package/widgets/lib/widgets/property-editors/grid-options/index.d.ts +3 -0
  42. package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +15 -0
  43. package/common/lib/store/common.effects.d.ts +0 -13
  44. package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs +0 -62
  45. package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs.map +0 -1
@@ -4,12 +4,11 @@ import { AXPDataSeederService } from './data';
4
4
  import { AXPErrorHandler } from './errors';
5
5
  import { AXPSettingValueProviderService } from './settings';
6
6
  import * as i0 from "@angular/core";
7
- import * as i1 from "@ngrx/effects";
8
- import * as i2 from "@acorex/platform/workflow";
9
- import * as i3 from "@acorex/components/popup";
10
- import * as i4 from "@acorex/core/date-time";
11
- import * as i5 from "@acorex/components/toast";
12
- import * as i6 from "@angular/router";
7
+ import * as i1 from "@acorex/platform/workflow";
8
+ import * as i2 from "@acorex/components/popup";
9
+ import * as i3 from "@acorex/core/date-time";
10
+ import * as i4 from "@acorex/components/toast";
11
+ import * as i5 from "@angular/router";
13
12
  export interface AXPCommonModuleConfigs {
14
13
  errorHandlers: (new () => AXPErrorHandler)[];
15
14
  }
@@ -21,6 +20,6 @@ export declare class AXPCommonModule {
21
20
  */
22
21
  constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService: AXPSettingValueProviderService, seederService: AXPDataSeederService);
23
22
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommonModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.EffectsFeatureModule, typeof i2.AXPWorkflowModule, typeof i3.AXPopupModule, typeof i4.AXDateTimeModule, typeof i5.AXToastModule], [typeof i6.RouterModule]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule], [typeof i5.RouterModule]>;
25
24
  static ɵinj: i0.ɵɵInjectorDeclaration<AXPCommonModule>;
26
25
  }
@@ -1,4 +1,4 @@
1
- import { Action } from "@ngrx/store";
1
+ import { AXPNavigateActionCommand } from "@acorex/platform/core";
2
2
  export interface AXPMenuItem {
3
3
  text: string;
4
4
  type?: 'menu' | 'group';
@@ -8,7 +8,7 @@ export interface AXPMenuItem {
8
8
  opened?: boolean;
9
9
  children?: AXPMenuItem[];
10
10
  path?: string;
11
- command?: Action;
11
+ command?: AXPNavigateActionCommand<'modal' | 'router'>;
12
12
  data?: any;
13
13
  }
14
14
  export interface AXPMenuFinderResult {
@@ -7,7 +7,7 @@ export interface AXPMenuItemWithParent extends AXPMenuItem {
7
7
  }
8
8
  export declare class AXPMenuSearchProvider implements AXPSearchProvider {
9
9
  menuService: AXPMenuProviderService;
10
- trService: AXTranslationService;
10
+ translateService: AXTranslationService;
11
11
  search(text: string): Promise<AXPSearchResult[]>;
12
12
  /**
13
13
  * Recursively searches AXPMenuItem and its children for a matching text.
@@ -16,5 +16,5 @@ export declare class AXPMenuSearchProvider implements AXPSearchProvider {
16
16
  * @param searchText - The text to search for (case-insensitive).
17
17
  * @returns An array of AXPMenuItem that match the search text.
18
18
  */
19
- searchMenuItems(menuItems: AXPMenuItem[], searchText: string): Promise<AXPMenuItemWithParent[]>;
19
+ private searchMenuItems;
20
20
  }
@@ -2,3 +2,7 @@ import { AXPSearchResult } from './search.types';
2
2
  export interface AXPSearchProvider {
3
3
  search(text: string): Promise<AXPSearchResult[]>;
4
4
  }
5
+ export declare abstract class AXPCommandSearchProvider {
6
+ abstract commands: AXPSearchResult[];
7
+ search(text: string): Promise<AXPSearchResult[]>;
8
+ }
@@ -1,14 +1,2 @@
1
- import { NavigationExtras } from '@angular/router';
2
- export declare const AXPNavigateAction: import("@ngrx/store").ActionCreator<"[Navigate] Action", (props: {
3
- payload: {
4
- commands: string | any[];
5
- extras?: NavigationExtras;
6
- };
7
- }) => {
8
- payload: {
9
- commands: string | any[];
10
- extras?: NavigationExtras;
11
- };
12
- } & import("@ngrx/store").Action<"[Navigate] Action">>;
13
1
  export declare const AXPSignOutAction: import("@ngrx/store").ActionCreator<"[SignOut] Action", () => import("@ngrx/store").Action<"[SignOut] Action">>;
14
2
  export declare const AXPSignInAction: import("@ngrx/store").ActionCreator<"[SignIn] Action", () => import("@ngrx/store").Action<"[SignIn] Action">>;
@@ -1,2 +1 @@
1
1
  export * from './common.actions';
2
- export * from './common.effects';
@@ -1,2 +1,3 @@
1
1
  export * from './common.workflow';
2
+ export * from './navigate.workflow';
2
3
  export * from './error-handler';
@@ -0,0 +1,9 @@
1
+ import { AXPWorkflow, AXPWorkflowAction, AXPWorkflowContext } from "@acorex/platform/workflow";
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXPWorkflowRouterNavigateAction extends AXPWorkflowAction {
4
+ private router;
5
+ execute(context: AXPWorkflowContext): Promise<void>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPWorkflowRouterNavigateAction, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowRouterNavigateAction>;
8
+ }
9
+ export declare const AXPNavigateWorkflow: AXPWorkflow;
@@ -1,3 +1,5 @@
1
+ import { Type } from "@angular/core";
2
+ import { NavigationExtras } from "@angular/router";
1
3
  export type AXPPartialNested<T> = {
2
4
  [K in keyof T]?: T[K] extends object ? AXPPartialNested<T[K]> : T[K];
3
5
  };
@@ -11,3 +13,20 @@ export type AXPValidationRule = {
11
13
  };
12
14
  export type AXPValidationRules = AXPValidationRule[];
13
15
  export declare function getNestedKeys(obj: any, prefix?: string): string[];
16
+ export type AXPNavigateActionOptions = {
17
+ router: {
18
+ path: string;
19
+ extras?: NavigationExtras & {
20
+ target?: string;
21
+ };
22
+ };
23
+ modal: {
24
+ component: Type<any>;
25
+ title: string;
26
+ options?: any;
27
+ };
28
+ };
29
+ export interface AXPNavigateActionCommand<T extends keyof AXPNavigateActionOptions> {
30
+ type: T;
31
+ options: AXPNavigateActionOptions[T];
32
+ }