@acorex/platform 20.6.0-next.1 → 20.6.0-next.11
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/index.d.ts +5 -1
- package/core/index.d.ts +104 -34
- package/fesm2022/acorex-platform-auth.mjs +19 -19
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-common-settings.provider-CLb2KMfv.mjs → acorex-platform-common-common-settings.provider-zhqNP3xb.mjs} +28 -4
- package/fesm2022/acorex-platform-common-common-settings.provider-zhqNP3xb.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +104 -103
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +98 -76
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +65 -20
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +17 -17
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +1208 -308
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +73 -73
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-entity-create-entity.command-BsLbiAdA.mjs → acorex-platform-layout-entity-create-entity.command-Bui87lV1.mjs} +40 -9
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-Bui87lV1.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs +948 -389
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +39 -25
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +157 -131
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-lHfg4JFJ.mjs → acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-lHfg4JFJ.mjs.map → acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-CMSnecnD.mjs → acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-CMSnecnD.mjs.map → acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-DN-sIFYe.mjs → acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-DN-sIFYe.mjs.map → acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-Bn9w0SEz.mjs → acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-Bn9w0SEz.mjs.map → acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-values-widget-view.component-B8mgcvoX.mjs → acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-values-widget-view.component-B8mgcvoX.mjs.map → acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-widget-edit.component-Bhof2SY8.mjs → acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-widget-edit.component-Bhof2SY8.mjs.map → acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-widget-view.component-CeQIvKVV.mjs → acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-extra-properties-widget-view.component-CeQIvKVV.mjs.map → acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-BOP7jFp4.mjs → acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs} +6 -6
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-BOP7jFp4.mjs.map → acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-C57lyBs3.mjs → acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-C57lyBs3.mjs.map → acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-fr77M8Z0.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-C1l2KSDa.mjs} +6 -6
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-C1l2KSDa.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-CvZTRhct.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-D-31ej0C.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-CvZTRhct.mjs.map → acorex-platform-layout-widgets-tabular-data-view-popup.component-D-31ej0C.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-DHES_0ot.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-DHES_0ot.mjs.map → acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +2410 -1028
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs +7 -7
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +119 -43
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-C_XmJV7Y.mjs → acorex-platform-themes-default-entity-master-create-view.component-WbPPqDON.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-WbPPqDON.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BkY9HXcT.mjs → acorex-platform-themes-default-entity-master-list-view.component-xq3eQ6t2.mjs} +37 -16
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xq3eQ6t2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-DJPDil7w.mjs → acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BArdGNfr.mjs → acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs} +7 -7
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-D7rEInHg.mjs → acorex-platform-themes-default-error-401.component-cfREo88K.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-401.component-D7rEInHg.mjs.map → acorex-platform-themes-default-error-401.component-cfREo88K.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-404.component-BTZlVrd8.mjs → acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-404.component-BTZlVrd8.mjs.map → acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-BhvEi6nX.mjs → acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-BhvEi6nX.mjs.map → acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +148 -47
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs +55 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-BXV40gay.mjs → acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-BXV40gay.mjs.map → acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-BpIf4s53.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-BpIf4s53.mjs.map → acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-C9gvfQfX.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-C9gvfQfX.mjs.map → acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +46 -46
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +327 -151
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/components/index.d.ts +255 -12
- package/layout/entity/index.d.ts +82 -19
- package/layout/views/index.d.ts +1 -0
- package/layout/widget-core/index.d.ts +16 -5
- package/layout/widgets/index.d.ts +264 -53
- package/package.json +5 -5
- package/runtime/index.d.ts +36 -8
- package/themes/default/index.d.ts +28 -6
- package/workflow/index.d.ts +909 -457
- package/fesm2022/acorex-platform-common-common-settings.provider-CLb2KMfv.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-BsLbiAdA.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-fr77M8Z0.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-C_XmJV7Y.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BkY9HXcT.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DJPDil7w.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BArdGNfr.mjs.map +0 -1
package/runtime/index.d.ts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
import { AXPExecuteCommandResult, AXPViewDefinition, AXPMetaData } from '@acorex/platform/core';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
3
|
import { InjectionToken, Type, EnvironmentProviders, Provider } from '@angular/core';
|
|
3
|
-
import { AXPViewDefinition, AXPMetaData } from '@acorex/platform/core';
|
|
4
4
|
import { AXComponent } from '@acorex/cdk/common';
|
|
5
5
|
|
|
6
|
+
type AXPExecuteCommandResultPromise<TResult = any> = Promise<AXPExecuteCommandResult<TResult>>;
|
|
6
7
|
interface AXPCommand<TInput = any, TResult = any> {
|
|
7
|
-
execute(input: TInput):
|
|
8
|
+
execute(input: TInput): AXPExecuteCommandResultPromise<TResult>;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Represents a middleware function in the command execution pipeline.
|
|
13
|
+
*/
|
|
14
|
+
type AXPCommandMiddleware<TInput = any, TResult = any> = (input: TInput, next: (input: TInput) => Promise<AXPExecuteCommandResult<TResult>>) => Promise<AXPExecuteCommandResult<TResult>>;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a composed handler by chaining the provided command middlewares.
|
|
17
|
+
*/
|
|
18
|
+
declare function composeCommandMiddlewares<TInput, TResult>(middlewares: AXPCommandMiddleware<TInput, TResult>[]): (handler: (input: TInput) => Promise<AXPExecuteCommandResult<TResult>>) => (input: TInput) => Promise<AXPExecuteCommandResult<TResult>>;
|
|
12
19
|
|
|
13
20
|
declare class AXPCommandRegistry {
|
|
14
21
|
private registry;
|
|
@@ -29,7 +36,8 @@ declare class AXPCommandExecutor {
|
|
|
29
36
|
private readonly injector;
|
|
30
37
|
private readonly registry;
|
|
31
38
|
private readonly extensions;
|
|
32
|
-
|
|
39
|
+
private readonly commandEvents;
|
|
40
|
+
execute<TInput = any, TResult = any>(key: string, input: TInput): Promise<AXPExecuteCommandResult<TResult> | null>;
|
|
33
41
|
private getPluginMiddlewares;
|
|
34
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommandExecutor, never>;
|
|
35
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCommandExecutor>;
|
|
@@ -44,7 +52,7 @@ declare class AXPCommandService {
|
|
|
44
52
|
exists(key: string): boolean;
|
|
45
53
|
getRegisteredKeys(): string[];
|
|
46
54
|
clear(): void;
|
|
47
|
-
execute<TInput = any, TResult = any>(key: string, input: TInput): Promise<TResult | null>;
|
|
55
|
+
execute<TInput = any, TResult = any>(key: string, input: TInput): Promise<AXPExecuteCommandResult<TResult> | null>;
|
|
48
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommandService, never>;
|
|
49
57
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCommandService>;
|
|
50
58
|
}
|
|
@@ -61,6 +69,7 @@ type AXPCommandLoader = {
|
|
|
61
69
|
command: () => Type<AXPCommand> | Promise<Type<AXPCommand>>;
|
|
62
70
|
};
|
|
63
71
|
declare function provideCommandSetups(entries: AXPCommandLoader[]): EnvironmentProviders;
|
|
72
|
+
declare function provideCommand(key: string, loader: () => Type<AXPCommand> | Promise<Type<AXPCommand>>): EnvironmentProviders;
|
|
64
73
|
|
|
65
74
|
declare const AXP_COMMAND_MIDDLEWARE_SETUP: InjectionToken<void>;
|
|
66
75
|
type AXPCommandMiddlewareEntry = (AXPCommandMiddleware | {
|
|
@@ -69,6 +78,25 @@ type AXPCommandMiddlewareEntry = (AXPCommandMiddleware | {
|
|
|
69
78
|
})[];
|
|
70
79
|
declare function provideCommandMiddleware(entries: AXPCommandMiddlewareEntry): EnvironmentProviders;
|
|
71
80
|
|
|
81
|
+
type AXPCommandExecutionStage = 'before' | 'after';
|
|
82
|
+
interface AXPCommandExecutionEvent<TInput = unknown, TResult = unknown> {
|
|
83
|
+
stage: AXPCommandExecutionStage;
|
|
84
|
+
key: string;
|
|
85
|
+
input: TInput;
|
|
86
|
+
success?: boolean;
|
|
87
|
+
result?: AXPExecuteCommandResult<TResult> | null;
|
|
88
|
+
error?: unknown;
|
|
89
|
+
}
|
|
90
|
+
type CommandExecutionHandler<TInput, TResult> = (event: AXPCommandExecutionEvent<TInput, TResult>) => void;
|
|
91
|
+
declare class AXPCommandEventsService {
|
|
92
|
+
private readonly broadcast;
|
|
93
|
+
private readonly distributedEvents;
|
|
94
|
+
listen<TInput = unknown, TResult = unknown>(handler: CommandExecutionHandler<TInput, TResult>): () => void;
|
|
95
|
+
emit<TInput = unknown, TResult = unknown>(event: AXPCommandExecutionEvent<TInput, TResult>): Promise<void>;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommandEventsService, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCommandEventsService>;
|
|
98
|
+
}
|
|
99
|
+
|
|
72
100
|
interface AXPQuery<TInput = any, TResult = any> {
|
|
73
101
|
fetch(input: TInput): Promise<TResult>;
|
|
74
102
|
}
|
|
@@ -275,5 +303,5 @@ declare class AXPRuntimeModule {
|
|
|
275
303
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPRuntimeModule>;
|
|
276
304
|
}
|
|
277
305
|
|
|
278
|
-
export { AXPCommandExecutor, AXPCommandRegistry, AXPCommandService, AXPPolicyEngineContext, AXPPolicyEngineDirective, AXPPolicyEngineRegistry, AXPPolicyEngineService, AXPQueryExecutor, AXPQueryRegistry, AXPQueryService, AXPRuntimeModule, AXPViewExecutor, AXPViewRegistry, AXPViewService, AXP_COMMAND_EXTENSION, AXP_COMMAND_MIDDLEWARE_SETUP, AXP_COMMAND_SETUP, AXP_POLICY_ENGINE_MIDDLEWARE_SETUP, AXP_POLICY_EXTENSION, AXP_QUERY_EXTENSION, AXP_QUERY_MIDDLEWARE_SETUP, AXP_QUERY_SETUP, AXP_VIEW_EXTENSION, AXP_VIEW_SETUP, composeCommandMiddlewares, composePolicyEngineMiddlewares, composeQueryMiddlewares, composeViewMiddlewares, provideCommandMiddleware, provideCommandSetups, providePolicySetups, provideQueryMiddleware, provideQuerySetups, provideViewSetup, provideViewSetups };
|
|
279
|
-
export type { AXPCommand, AXPCommandExtension, AXPCommandMiddleware, AXPPolicy, AXPPolicyEngineMiddleware, AXPPolicyExtension, AXPQuery, AXPQueryExtension, AXPQueryMiddleware, AXPViewExtension, AXPViewMiddleware, AXPViewProvider };
|
|
306
|
+
export { AXPCommandEventsService, AXPCommandExecutor, AXPCommandRegistry, AXPCommandService, AXPPolicyEngineContext, AXPPolicyEngineDirective, AXPPolicyEngineRegistry, AXPPolicyEngineService, AXPQueryExecutor, AXPQueryRegistry, AXPQueryService, AXPRuntimeModule, AXPViewExecutor, AXPViewRegistry, AXPViewService, AXP_COMMAND_EXTENSION, AXP_COMMAND_MIDDLEWARE_SETUP, AXP_COMMAND_SETUP, AXP_POLICY_ENGINE_MIDDLEWARE_SETUP, AXP_POLICY_EXTENSION, AXP_QUERY_EXTENSION, AXP_QUERY_MIDDLEWARE_SETUP, AXP_QUERY_SETUP, AXP_VIEW_EXTENSION, AXP_VIEW_SETUP, composeCommandMiddlewares, composePolicyEngineMiddlewares, composeQueryMiddlewares, composeViewMiddlewares, provideCommand, provideCommandMiddleware, provideCommandSetups, providePolicySetups, provideQueryMiddleware, provideQuerySetups, provideViewSetup, provideViewSetups };
|
|
307
|
+
export type { AXPCommand, AXPCommandExecutionEvent, AXPCommandExecutionStage, AXPCommandExtension, AXPCommandMiddleware, AXPExecuteCommandResultPromise, AXPPolicy, AXPPolicyEngineMiddleware, AXPPolicyExtension, AXPQuery, AXPQueryExtension, AXPQueryMiddleware, AXPViewExtension, AXPViewMiddleware, AXPViewProvider };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import * as _acorex_components_button from '@acorex/components/button';
|
|
2
1
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
3
2
|
import * as _angular_core from '@angular/core';
|
|
4
3
|
import { Signal } from '@angular/core';
|
|
5
4
|
import * as _acorex_platform_themes_shared from '@acorex/platform/themes/shared';
|
|
6
5
|
import { AXValueChangedEvent } from '@acorex/cdk/common';
|
|
7
6
|
import { AXActionSheetService } from '@acorex/components/action-sheet';
|
|
8
|
-
import { AXDataTableComponent,
|
|
7
|
+
import { AXDataTableComponent, AXRowCommandItem, AXDataTableRowDbClick, AXRowCommandItemClickEvent } from '@acorex/components/data-table';
|
|
9
8
|
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
10
9
|
import { AXPEntityCommandTriggerViewModel, AXPEntityDetailListViewModel } from '@acorex/platform/layout/entity';
|
|
11
10
|
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
12
11
|
import * as _acorex_platform_common from '@acorex/platform/common';
|
|
13
12
|
import { AXPMenuItem, AXPSettingService } from '@acorex/platform/common';
|
|
14
13
|
import { AXPTaskBadgeService } from '@acorex/platform/layout/components';
|
|
15
|
-
import { Router } from '@angular/router';
|
|
14
|
+
import { Router, UrlTree } from '@angular/router';
|
|
16
15
|
import { AXDrawerComponent } from '@acorex/components/drawer';
|
|
17
16
|
|
|
18
17
|
declare class AXPEntityDetailListViewComponent {
|
|
@@ -91,8 +90,8 @@ declare class AXPEntityDetailListViewComponent {
|
|
|
91
90
|
handleChangeSearchValue(e: AXValueChangedEvent): void;
|
|
92
91
|
protected subscribeActionEvents(): void;
|
|
93
92
|
ngAfterViewInit(): void;
|
|
94
|
-
protected dropdownRowItems: _angular_core.Signal<
|
|
95
|
-
protected commandRowItems: _angular_core.Signal<
|
|
93
|
+
protected dropdownRowItems: _angular_core.Signal<AXRowCommandItem[]>;
|
|
94
|
+
protected commandRowItems: _angular_core.Signal<AXRowCommandItem[]>;
|
|
96
95
|
protected handleRowDbClick(e: AXDataTableRowDbClick): Promise<void>;
|
|
97
96
|
protected getCommandRowItems: () => AXRowCommandItem[];
|
|
98
97
|
protected getDropdownRowItems: (rowData: unknown) => Promise<AXRowCommandItem[]>;
|
|
@@ -219,9 +218,32 @@ declare class AXPRootLayoutMenuComponent {
|
|
|
219
218
|
protected badgeVisible: _angular_core.WritableSignal<boolean>;
|
|
220
219
|
constructor();
|
|
221
220
|
ngOnInit(): Promise<void>;
|
|
222
|
-
onMenuItemClick(item: AXPMenuItem): void;
|
|
221
|
+
onMenuItemClick(item: AXPMenuItem, hasRouterLink?: boolean): void;
|
|
223
222
|
protected sort(items: AXPMenuItem[]): AXPMenuItem[];
|
|
224
223
|
protected getMenuBadge(item: AXPMenuItem): Signal<number>;
|
|
224
|
+
/**
|
|
225
|
+
* Builds a UrlTree that can be consumed by the routerLink directive when the menu item targets
|
|
226
|
+
* an internal route. When the item does not represent an internal route, null is returned so the
|
|
227
|
+
* command execution pipeline remains responsible for navigation.
|
|
228
|
+
*/
|
|
229
|
+
protected getRouterLink(item: AXPMenuItem): UrlTree | null;
|
|
230
|
+
/**
|
|
231
|
+
* Extracts internal navigation data regardless of whether it is provided via the legacy `path`
|
|
232
|
+
* property, a direct navigate command, or the execution command wrapper.
|
|
233
|
+
*/
|
|
234
|
+
private extractRouterNavigation;
|
|
235
|
+
/**
|
|
236
|
+
* Determines whether routerLink can safely be used based on the target path and navigation
|
|
237
|
+
* extras. If the navigation requires additional runtime behaviour (e.g., opening in a new tab),
|
|
238
|
+
* we fallback to the imperative command pipeline.
|
|
239
|
+
*/
|
|
240
|
+
private isRouterLinkCompatible;
|
|
241
|
+
/**
|
|
242
|
+
* Ensures router links include a leading slash while preserving any query parameters or
|
|
243
|
+
* fragments present in the original path.
|
|
244
|
+
*/
|
|
245
|
+
private normalizeRouterPath;
|
|
246
|
+
private isExternalNavigation;
|
|
225
247
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPRootLayoutMenuComponent, never>;
|
|
226
248
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPRootLayoutMenuComponent, "axp-side-menu", never, {}, {}, never, never, true, never>;
|
|
227
249
|
}
|