@acorex/platform 19.1.7 → 19.1.9
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/common/lib/app/application.types.d.ts +4 -0
- package/common/lib/common.module.d.ts +8 -9
- package/common/lib/layout/menu/menu.types.d.ts +3 -2
- package/common/lib/layout/menu/search.provider.d.ts +2 -2
- package/common/lib/search/search-definition.builder.d.ts +5 -2
- package/common/lib/search/search.provider.d.ts +4 -0
- package/common/lib/search/search.service.d.ts +1 -0
- package/common/lib/search/search.types.d.ts +21 -5
- package/common/lib/settings/settings.service.d.ts +11 -5
- package/common/lib/store/common.actions.d.ts +0 -12
- package/common/lib/store/index.d.ts +0 -1
- package/common/lib/workflows/index.d.ts +1 -0
- package/common/lib/workflows/navigate.workflow.d.ts +13 -0
- package/core/lib/types.d.ts +19 -0
- package/fesm2022/acorex-platform-common.mjs +696 -705
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +2 -0
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +3 -3
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +172 -40
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +87 -15
- package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-setting.mjs +111 -5
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs → acorex-platform-themes-default-entity-master-list-view.component-BDjcOo6R.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BDjcOo6R.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-search-popup.component-gkiSZXm-.mjs +122 -0
- package/fesm2022/acorex-platform-themes-default-search-popup.component-gkiSZXm-.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +11 -11
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +9 -9
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +1188 -509
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +10 -3
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/lib/builder/widget-map.d.ts +2 -0
- package/layout/designer/lib/preview/preview.component.d.ts +2 -2
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +6 -6
- package/layout/entity/lib/entity-registery.service.d.ts +16 -0
- package/layout/entity/lib/entity.config.d.ts +2 -2
- package/layout/entity/lib/entity.module.d.ts +3 -0
- package/layout/entity/lib/search-definition-command.provider.d.ts +4 -0
- package/layout/entity/lib/search-definition.provider.d.ts +6 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +1 -1
- package/layout/search/lib/search.viewmodel.d.ts +21 -1
- package/layout/search/lib/workflows/search.workflow.d.ts +2 -1
- package/layout/setting/index.d.ts +1 -0
- package/{common/lib/settings → layout/setting/lib}/search-definition.provider.d.ts +1 -1
- package/layout/setting/lib/search.provider.d.ts +9 -0
- package/layout/setting/lib/settings.module.d.ts +9 -0
- package/package.json +5 -5
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +2 -2
- package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +10 -1
- package/themes/shared/lib/components/layout-elements/layout-list.component.d.ts +3 -3
- package/widgets/lib/properties/layout.props.d.ts +1 -0
- package/widgets/lib/widgets/index.d.ts +2 -0
- package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget-designer.component.d.ts +29 -0
- package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget-view.component.d.ts +9 -0
- package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/layout/advanced-grid/index.d.ts +3 -0
- package/widgets/lib/widgets/layout/grid/grid-widget-designer.component.d.ts +7 -2
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +6 -6
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget-editor.component.d.ts +50 -0
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.type.d.ts +21 -0
- package/widgets/lib/widgets/property-editors/grid-options/index.d.ts +3 -0
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +17 -2
- package/widgets/lib/widgets/property-editors/property-editor.type.d.ts +5 -0
- package/workflow/lib/workflow.service.d.ts +1 -0
- package/workflow/lib/workflow.types.d.ts +1 -1
- package/common/lib/settings/search.provider.d.ts +0 -10
- package/common/lib/store/common.effects.d.ts +0 -13
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs +0 -62
- package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs.map +0 -1
|
@@ -169,6 +169,10 @@ export interface AXPEntity {
|
|
|
169
169
|
individual: string;
|
|
170
170
|
plural: string;
|
|
171
171
|
lookup?: string;
|
|
172
|
+
searchResult?: {
|
|
173
|
+
title: string;
|
|
174
|
+
description?: string;
|
|
175
|
+
};
|
|
172
176
|
};
|
|
173
177
|
relatedEntities?: AXPRelatedEntity[];
|
|
174
178
|
groups?: AXPEntityPropertyGroup[];
|
|
@@ -2,14 +2,13 @@ import { ModuleWithProviders } from '@angular/core';
|
|
|
2
2
|
import { AXPAppStartUpService } from './app/app-startup.service';
|
|
3
3
|
import { AXPDataSeederService } from './data';
|
|
4
4
|
import { AXPErrorHandler } from './errors';
|
|
5
|
-
import {
|
|
5
|
+
import { AXPSettingService } from './settings';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@
|
|
8
|
-
import * as i2 from "@acorex/
|
|
9
|
-
import * as i3 from "@acorex/
|
|
10
|
-
import * as i4 from "@acorex/
|
|
11
|
-
import * as i5 from "@
|
|
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
|
}
|
|
@@ -19,8 +18,8 @@ export declare class AXPCommonModule {
|
|
|
19
18
|
/**
|
|
20
19
|
* @ignore
|
|
21
20
|
*/
|
|
22
|
-
constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService:
|
|
21
|
+
constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService: AXPSettingService, seederService: AXPDataSeederService);
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommonModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.
|
|
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,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXPNavigateActionCommand } from '@acorex/platform/core';
|
|
2
2
|
export interface AXPMenuItem {
|
|
3
3
|
text: string;
|
|
4
4
|
type?: 'menu' | 'group';
|
|
5
5
|
name?: string;
|
|
6
|
+
description?: string;
|
|
6
7
|
icon?: string;
|
|
7
8
|
priority?: number;
|
|
8
9
|
opened?: boolean;
|
|
9
10
|
children?: AXPMenuItem[];
|
|
10
11
|
path?: string;
|
|
11
|
-
command?:
|
|
12
|
+
command?: AXPNavigateActionCommand<'modal' | 'router'>;
|
|
12
13
|
data?: any;
|
|
13
14
|
}
|
|
14
15
|
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
|
-
|
|
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
|
|
19
|
+
private searchMenuItems;
|
|
20
20
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { AXPSearchAction, AXPSearchDefinition } from './search.types';
|
|
1
|
+
import { AXPSearchAction, AXPSearchDefinition, AXPSearchDefinitionDisplayFormat } from './search.types';
|
|
2
2
|
export declare class AXPSearchDefinitionProviderContext {
|
|
3
3
|
private definitions;
|
|
4
4
|
private definitionMap;
|
|
5
|
-
addDefinition(name: string, title: string, icon: string,
|
|
5
|
+
addDefinition(name: string, title: string, icon: string, order: number, options?: {
|
|
6
|
+
format?: AXPSearchDefinitionDisplayFormat;
|
|
7
|
+
actions?: AXPSearchAction[];
|
|
8
|
+
}): AXPSearchDefinitionBuilder;
|
|
6
9
|
definition(name: string): AXPSearchDefinitionBuilder | null;
|
|
7
10
|
getDefinitions(): AXPSearchDefinition[];
|
|
8
11
|
hasEntity(name: string): boolean;
|
|
@@ -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 AXPSearchCommandProvider {
|
|
6
|
+
abstract commands: AXPSearchResult[];
|
|
7
|
+
search(text: string): Promise<AXPSearchResult[]>;
|
|
8
|
+
}
|
|
@@ -6,6 +6,7 @@ export declare const AXP_SEARCH_PROVIDER: InjectionToken<AXPSearchProvider[]>;
|
|
|
6
6
|
export declare class AXPSearchService {
|
|
7
7
|
private providers;
|
|
8
8
|
private definitionService;
|
|
9
|
+
private formatService;
|
|
9
10
|
search(text: string): Promise<AXPSearchDisplayGroupResult[]>;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSearchService, never>;
|
|
11
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSearchService>;
|
|
@@ -1,28 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXPCommandActionLook, AXPCommandActionPriority, AXPCommandActionType } from '../app';
|
|
2
|
+
export interface AXPSearchDefinitionDisplayFormat {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
}
|
|
2
8
|
export interface AXPSearchDefinition {
|
|
3
9
|
name: string;
|
|
4
10
|
title: string;
|
|
5
11
|
icon: string;
|
|
12
|
+
order: number;
|
|
13
|
+
format: AXPSearchDefinitionDisplayFormat;
|
|
6
14
|
actions: AXPSearchAction[];
|
|
7
15
|
}
|
|
8
16
|
export interface AXPSearchParentResult {
|
|
9
17
|
title: string;
|
|
10
18
|
data?: any;
|
|
11
19
|
}
|
|
20
|
+
export type AXPSearchCommands = {
|
|
21
|
+
[name: string]: any;
|
|
22
|
+
};
|
|
12
23
|
export interface AXPSearchResult {
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
id?: string;
|
|
25
|
+
group: string;
|
|
26
|
+
data?: any;
|
|
27
|
+
title?: string;
|
|
15
28
|
description?: string;
|
|
16
29
|
icon?: string;
|
|
17
|
-
|
|
30
|
+
commands?: AXPSearchCommands;
|
|
18
31
|
parent?: AXPSearchParentResult;
|
|
19
32
|
}
|
|
20
33
|
export interface AXPSearchDisplayGroupResult {
|
|
21
34
|
name: string;
|
|
22
35
|
title: string;
|
|
36
|
+
order: number;
|
|
23
37
|
children: AXPSearchDisplayResult[];
|
|
24
38
|
}
|
|
25
39
|
export interface AXPSearchDisplayResult {
|
|
40
|
+
id: string;
|
|
26
41
|
definitionName?: string;
|
|
27
42
|
definitionTitle?: string;
|
|
28
43
|
name: string;
|
|
@@ -30,12 +45,13 @@ export interface AXPSearchDisplayResult {
|
|
|
30
45
|
description?: string;
|
|
31
46
|
icon: string;
|
|
32
47
|
data?: any;
|
|
48
|
+
order?: any;
|
|
49
|
+
commands?: AXPSearchCommands;
|
|
33
50
|
parent?: AXPSearchParentResult;
|
|
34
51
|
actions: AXPSearchAction[];
|
|
35
52
|
}
|
|
36
53
|
export interface AXPSearchAction extends Partial<AXPCommandActionLook> {
|
|
37
54
|
name: string;
|
|
38
|
-
command: AXPCommandActionCallback;
|
|
39
55
|
type: AXPCommandActionType;
|
|
40
56
|
priority: AXPCommandActionPriority;
|
|
41
57
|
separated?: boolean;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
2
|
import { AXPSettingChangedEvent, AXPSettingScope, AXPSettingValue, AXPSettingValueProvider } from './settings.types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
4
|
+
export interface AXPSettingServiceInterface {
|
|
5
|
+
load(): Promise<AXPSettingValue[]>;
|
|
6
|
+
get<T = any>(key: string): Promise<T>;
|
|
7
|
+
defaultValues(scope: AXPSettingScope): Promise<Record<string, unknown>>;
|
|
8
|
+
scope(scope: AXPSettingScope): ScopedSettingService;
|
|
9
|
+
}
|
|
10
|
+
export declare class AXPSettingService implements AXPSettingServiceInterface {
|
|
5
11
|
private readonly providers;
|
|
6
|
-
private readonly
|
|
12
|
+
private readonly injector;
|
|
7
13
|
private scopedSettingsCache;
|
|
8
14
|
readonly onChanged: Subject<AXPSettingChangedEvent>;
|
|
9
15
|
constructor();
|
|
@@ -11,15 +17,15 @@ export declare class AXPSettingValueProviderService {
|
|
|
11
17
|
get<T = any>(key: string): Promise<T>;
|
|
12
18
|
defaultValues(scope: AXPSettingScope): Promise<Record<string, unknown>>;
|
|
13
19
|
scope(scope: AXPSettingScope): ScopedSettingService;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingService>;
|
|
16
22
|
}
|
|
17
23
|
declare class ScopedSettingService {
|
|
18
24
|
private parent;
|
|
19
25
|
private provider;
|
|
20
26
|
private onChanged;
|
|
21
27
|
private scopeCache;
|
|
22
|
-
constructor(parent:
|
|
28
|
+
constructor(parent: AXPSettingService, provider: AXPSettingValueProvider, onChanged: Subject<AXPSettingChangedEvent>, scopeCache: Map<string, any>);
|
|
23
29
|
get<T = any>(key: string): Promise<T>;
|
|
24
30
|
all(): Promise<any>;
|
|
25
31
|
defaultValues(): Promise<Record<string, unknown>>;
|
|
@@ -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">>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* Parses query parameters from a query string into an object.
|
|
8
|
+
*/
|
|
9
|
+
private parseQueryParams;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPWorkflowRouterNavigateAction, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowRouterNavigateAction>;
|
|
12
|
+
}
|
|
13
|
+
export declare const AXPNavigateWorkflow: AXPWorkflow;
|
package/core/lib/types.d.ts
CHANGED
|
@@ -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
|
+
}
|