@acorex-platform/framework-client 0.0.10
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/README.md +7 -0
- package/auth/README.md +3 -0
- package/common/README.md +3 -0
- package/core/README.md +4 -0
- package/fesm2022/acorex-platform-framework-client-auth.mjs +1383 -0
- package/fesm2022/acorex-platform-framework-client-auth.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs +190 -0
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs +9467 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-core.mjs +4655 -0
- package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-domain.mjs +3189 -0
- package/fesm2022/acorex-platform-framework-client-domain.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +3439 -0
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs +134 -0
- package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +9777 -0
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +2799 -0
- package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs +376 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs +100 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +26299 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs +2960 -0
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +4711 -0
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs +72 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs +29 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs +172 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs +513 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs +274 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs +64 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs +34 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +28553 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-native.mjs +155 -0
- package/fesm2022/acorex-platform-framework-client-native.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-runtime.mjs +911 -0
- package/fesm2022/acorex-platform-framework-client-runtime.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs +160 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs +121 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs +236 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs +48 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs +42 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs +19 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +4160 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs +55 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs +57 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs +234 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs +94 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs +86 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +2375 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-workflow.mjs +2836 -0
- package/fesm2022/acorex-platform-framework-client-workflow.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client.mjs +6 -0
- package/fesm2022/acorex-platform-framework-client.mjs.map +1 -0
- package/layout/builder/README.md +1578 -0
- package/layout/components/README.md +3 -0
- package/layout/designer/README.md +4 -0
- package/layout/entity/README.md +4 -0
- package/layout/views/README.md +3 -0
- package/layout/widget-core/README.md +4 -0
- package/layout/widgets/README.md +3 -0
- package/native/README.md +4 -0
- package/package.json +98 -0
- package/runtime/README.md +3 -0
- package/themes/default/README.md +3 -0
- package/themes/shared/README.md +3 -0
- package/types/acorex-platform-framework-client-auth.d.ts +690 -0
- package/types/acorex-platform-framework-client-common.d.ts +3287 -0
- package/types/acorex-platform-framework-client-core.d.ts +1849 -0
- package/types/acorex-platform-framework-client-domain.d.ts +1968 -0
- package/types/acorex-platform-framework-client-layout-builder.d.ts +1058 -0
- package/types/acorex-platform-framework-client-layout-components.d.ts +3362 -0
- package/types/acorex-platform-framework-client-layout-designer.d.ts +501 -0
- package/types/acorex-platform-framework-client-layout-entity.d.ts +4374 -0
- package/types/acorex-platform-framework-client-layout-views.d.ts +975 -0
- package/types/acorex-platform-framework-client-layout-widget-core.d.ts +1080 -0
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +5263 -0
- package/types/acorex-platform-framework-client-native.d.ts +28 -0
- package/types/acorex-platform-framework-client-runtime.d.ts +301 -0
- package/types/acorex-platform-framework-client-themes-default.d.ts +889 -0
- package/types/acorex-platform-framework-client-themes-shared.d.ts +202 -0
- package/types/acorex-platform-framework-client-workflow.d.ts +1345 -0
- package/types/acorex-platform-framework-client.d.ts +2 -0
- package/workflow/README.md +4 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class AXPNativeModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPNativeModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPNativeModule, never, never, never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPNativeModule>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class AXPNativeService {
|
|
10
|
+
private isDark;
|
|
11
|
+
constructor();
|
|
12
|
+
setDarkMode(isDarkMode: boolean): void;
|
|
13
|
+
checkNetworkStatus(): void;
|
|
14
|
+
getCurrentLocation(): void;
|
|
15
|
+
setPreferredLanguage(language: string): void;
|
|
16
|
+
openExternalLink(url: string): void;
|
|
17
|
+
authenticateBiometric(): void;
|
|
18
|
+
selectImageFromGallery(): void;
|
|
19
|
+
selectImageFromCamera(): void;
|
|
20
|
+
selectVideoFromGallery(): void;
|
|
21
|
+
selectVideoFromCamera(): void;
|
|
22
|
+
selectFile(): void;
|
|
23
|
+
sendMessageToFlutter(message: string): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPNativeService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPNativeService>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { AXPNativeModule, AXPNativeService };
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { AXPExecuteCommandResult, AXPViewDefinition, AXPMetaData } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, EnvironmentProviders, Type, Provider } from '@angular/core';
|
|
4
|
+
import { AXPCommand, AXPQuery, AXPViewProvider } from '@acorex-platform/framework-shared/runtime';
|
|
5
|
+
import { AXComponent } from '@acorex/cdk/common';
|
|
6
|
+
|
|
7
|
+
type AXPCommandExecutionStage = 'before' | 'after';
|
|
8
|
+
interface AXPCommandExecutionEvent<TInput = unknown, TResult = unknown> {
|
|
9
|
+
stage: AXPCommandExecutionStage;
|
|
10
|
+
key: string;
|
|
11
|
+
input: TInput;
|
|
12
|
+
success?: boolean;
|
|
13
|
+
result?: AXPExecuteCommandResult<TResult> | null;
|
|
14
|
+
error?: unknown;
|
|
15
|
+
}
|
|
16
|
+
type CommandExecutionHandler<TInput, TResult> = (event: AXPCommandExecutionEvent<TInput, TResult>) => void;
|
|
17
|
+
declare class AXPCommandEventsService {
|
|
18
|
+
private readonly broadcast;
|
|
19
|
+
private readonly distributedEvents;
|
|
20
|
+
listen<TInput = unknown, TResult = unknown>(handler: CommandExecutionHandler<TInput, TResult>): () => void;
|
|
21
|
+
emit<TInput = unknown, TResult = unknown>(event: AXPCommandExecutionEvent<TInput, TResult>): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Removes functions, symbols, and cycles so {@link AXPBroadcastEventService.publish}
|
|
24
|
+
* can use `BroadcastChannel.postMessage` without DataCloneError (e.g. command input with `dialogRef`).
|
|
25
|
+
*/
|
|
26
|
+
private serializeForBroadcast;
|
|
27
|
+
private stripNonSerializable;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommandEventsService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCommandEventsService>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class AXPCommandExecutor {
|
|
33
|
+
private readonly injector;
|
|
34
|
+
private readonly registry;
|
|
35
|
+
private readonly extensions;
|
|
36
|
+
private readonly commandEvents;
|
|
37
|
+
execute<TInput = any, TResult = any>(key: string, input: TInput): Promise<AXPExecuteCommandResult<TResult> | null>;
|
|
38
|
+
private getPluginMiddlewares;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommandExecutor, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCommandExecutor>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Represents a middleware function in the command execution pipeline.
|
|
45
|
+
*/
|
|
46
|
+
type AXPCommandMiddleware<TInput = any, TResult = any> = (input: TInput, next: (input: TInput) => Promise<AXPExecuteCommandResult<TResult>>) => Promise<AXPExecuteCommandResult<TResult>>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a composed handler by chaining the provided command middlewares.
|
|
49
|
+
*/
|
|
50
|
+
declare function composeCommandMiddlewares<TInput, TResult>(middlewares: AXPCommandMiddleware<TInput, TResult>[]): (handler: (input: TInput) => Promise<AXPExecuteCommandResult<TResult>>) => (input: TInput) => Promise<AXPExecuteCommandResult<TResult>>;
|
|
51
|
+
|
|
52
|
+
interface AXPCommandExtension {
|
|
53
|
+
target: string | RegExp;
|
|
54
|
+
middleware: AXPCommandMiddleware;
|
|
55
|
+
}
|
|
56
|
+
declare const AXP_COMMAND_EXTENSION: InjectionToken<AXPCommandExtension[]>;
|
|
57
|
+
|
|
58
|
+
declare class AXPCommandRegistry {
|
|
59
|
+
private registry;
|
|
60
|
+
private middlewares;
|
|
61
|
+
register(key: string, loader: () => Promise<AXPCommand>): void;
|
|
62
|
+
unregister(key: string): boolean;
|
|
63
|
+
use(middleware: AXPCommandMiddleware): void;
|
|
64
|
+
exists(key: string): boolean;
|
|
65
|
+
getLoader(key: string): (() => Promise<AXPCommand>) | undefined;
|
|
66
|
+
getMiddlewares(): readonly AXPCommandMiddleware[];
|
|
67
|
+
getRegisteredKeys(): string[];
|
|
68
|
+
clear(): void;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommandRegistry, never>;
|
|
70
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCommandRegistry>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class AXPCommandService {
|
|
74
|
+
private readonly registry;
|
|
75
|
+
private readonly executor;
|
|
76
|
+
register(key: string, loader: () => Promise<AXPCommand>): void;
|
|
77
|
+
unregister(key: string): boolean;
|
|
78
|
+
use(middleware: AXPCommandMiddleware): void;
|
|
79
|
+
exists(key: string): boolean;
|
|
80
|
+
getRegisteredKeys(): string[];
|
|
81
|
+
clear(): void;
|
|
82
|
+
execute<TInput = any, TResult = any>(key: string, input: TInput): Promise<AXPExecuteCommandResult<TResult> | null>;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommandService, never>;
|
|
84
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCommandService>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare const AXP_COMMAND_MIDDLEWARE_SETUP: InjectionToken<void>;
|
|
88
|
+
type AXPCommandMiddlewareEntry = (AXPCommandMiddleware | {
|
|
89
|
+
target: string | RegExp;
|
|
90
|
+
middleware: AXPCommandMiddleware;
|
|
91
|
+
})[];
|
|
92
|
+
declare function provideCommandMiddleware(entries: AXPCommandMiddlewareEntry): EnvironmentProviders;
|
|
93
|
+
|
|
94
|
+
declare const AXP_COMMAND_SETUP: InjectionToken<void>;
|
|
95
|
+
type AXPCommandLoader = {
|
|
96
|
+
key: string;
|
|
97
|
+
command: () => Type<AXPCommand> | Promise<Type<AXPCommand>>;
|
|
98
|
+
};
|
|
99
|
+
declare function provideCommandSetups(entries: AXPCommandLoader[]): EnvironmentProviders;
|
|
100
|
+
declare function provideCommand(key: string, loader: () => Type<AXPCommand> | Promise<Type<AXPCommand>>): EnvironmentProviders;
|
|
101
|
+
|
|
102
|
+
type AXPQueryMiddleware<TInput = any, TResult = any> = (input: TInput, next: (input: TInput) => Promise<TResult>) => Promise<TResult>;
|
|
103
|
+
declare function composeQueryMiddlewares<TInput, TResult>(middlewares: AXPQueryMiddleware<TInput, TResult>[]): (handler: (input: TInput) => Promise<TResult>) => (input: TInput) => Promise<TResult>;
|
|
104
|
+
|
|
105
|
+
declare const AXP_QUERY_MIDDLEWARE_SETUP: InjectionToken<void>;
|
|
106
|
+
type AXPQueryMiddlewareEntry = (AXPQueryMiddleware | {
|
|
107
|
+
key: string;
|
|
108
|
+
middleware: AXPQueryMiddleware;
|
|
109
|
+
})[];
|
|
110
|
+
declare function provideQueryMiddleware(entries: AXPQueryMiddlewareEntry): EnvironmentProviders;
|
|
111
|
+
|
|
112
|
+
declare const AXP_QUERY_SETUP: InjectionToken<void>;
|
|
113
|
+
type AXPQueryLoaderEntry = {
|
|
114
|
+
key: string;
|
|
115
|
+
loader: () => Type<AXPQuery> | Promise<Type<AXPQuery>>;
|
|
116
|
+
};
|
|
117
|
+
declare function provideQuerySetups(entries: AXPQueryLoaderEntry[]): EnvironmentProviders;
|
|
118
|
+
|
|
119
|
+
declare class AXPQueryExecutor {
|
|
120
|
+
private readonly injector;
|
|
121
|
+
private readonly registry;
|
|
122
|
+
private readonly extensions;
|
|
123
|
+
fetch<TInput = any, TResult = any>(key: string, input: TInput): Promise<TResult | null>;
|
|
124
|
+
private getPluginMiddlewares;
|
|
125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPQueryExecutor, never>;
|
|
126
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPQueryExecutor>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface AXPQueryExtension {
|
|
130
|
+
target: string | RegExp;
|
|
131
|
+
middleware: AXPQueryMiddleware;
|
|
132
|
+
}
|
|
133
|
+
declare const AXP_QUERY_EXTENSION: InjectionToken<AXPQueryExtension[]>;
|
|
134
|
+
|
|
135
|
+
declare class AXPQueryRegistry {
|
|
136
|
+
private registry;
|
|
137
|
+
private middlewares;
|
|
138
|
+
register(key: string, loader: () => Promise<AXPQuery>): void;
|
|
139
|
+
unregister(key: string): boolean;
|
|
140
|
+
use(middleware: AXPQueryMiddleware): void;
|
|
141
|
+
exists(key: string): boolean;
|
|
142
|
+
getLoader(key: string): (() => Promise<AXPQuery>) | undefined;
|
|
143
|
+
getMiddlewares(): readonly AXPQueryMiddleware[];
|
|
144
|
+
getRegisteredKeys(): string[];
|
|
145
|
+
clear(): void;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPQueryRegistry, never>;
|
|
147
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPQueryRegistry>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare class AXPQueryService {
|
|
151
|
+
private readonly registry;
|
|
152
|
+
private readonly executor;
|
|
153
|
+
register(key: string, loader: () => Promise<AXPQuery>): void;
|
|
154
|
+
unregister(key: string): boolean;
|
|
155
|
+
use(middleware: AXPQueryMiddleware): void;
|
|
156
|
+
exists(key: string): boolean;
|
|
157
|
+
getRegisteredKeys(): string[];
|
|
158
|
+
clear(): void;
|
|
159
|
+
fetch<TInput = any, TResult = any>(key: string, input: TInput): Promise<TResult | null>;
|
|
160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPQueryService, never>;
|
|
161
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPQueryService>;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
type AXPViewMiddleware<TInput = any> = (input: TInput, next: (input: TInput) => Promise<AXPViewDefinition>) => Promise<AXPViewDefinition>;
|
|
165
|
+
declare function composeViewMiddlewares<TInput>(middlewares: AXPViewMiddleware<TInput>[]): (handler: (input: TInput) => Promise<AXPViewDefinition>) => (input: TInput) => Promise<AXPViewDefinition>;
|
|
166
|
+
|
|
167
|
+
declare class AXPViewRegistry {
|
|
168
|
+
private registry;
|
|
169
|
+
private middlewares;
|
|
170
|
+
register(key: string, loader: () => Promise<AXPViewProvider>): void;
|
|
171
|
+
unregister(key: string): boolean;
|
|
172
|
+
use(middleware: AXPViewMiddleware): void;
|
|
173
|
+
exists(key: string): boolean;
|
|
174
|
+
getLoader(key: string): (() => Promise<AXPViewProvider>) | undefined;
|
|
175
|
+
getMiddlewares(): readonly AXPViewMiddleware[];
|
|
176
|
+
getRegisteredKeys(): string[];
|
|
177
|
+
clear(): void;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPViewRegistry, never>;
|
|
179
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPViewRegistry>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare class AXPViewExecutor {
|
|
183
|
+
private readonly injector;
|
|
184
|
+
private readonly registry;
|
|
185
|
+
private readonly extensions;
|
|
186
|
+
provide<TInput = any>(key: string, input: TInput): Promise<AXPViewDefinition | null>;
|
|
187
|
+
private getPluginMiddlewares;
|
|
188
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPViewExecutor, never>;
|
|
189
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPViewExecutor>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
declare class AXPViewService {
|
|
193
|
+
private readonly registry;
|
|
194
|
+
private readonly executor;
|
|
195
|
+
register(key: string, loader: () => Promise<AXPViewProvider>): void;
|
|
196
|
+
unregister(key: string): boolean;
|
|
197
|
+
use(middleware: AXPViewMiddleware): void;
|
|
198
|
+
exists(key: string): boolean;
|
|
199
|
+
getRegisteredKeys(): string[];
|
|
200
|
+
clear(): void;
|
|
201
|
+
provide<TInput = any>(key: string, input: TInput): Promise<AXPViewDefinition | null>;
|
|
202
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPViewService, never>;
|
|
203
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPViewService>;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
interface AXPViewExtension {
|
|
207
|
+
target: string | RegExp;
|
|
208
|
+
middleware: AXPViewMiddleware;
|
|
209
|
+
}
|
|
210
|
+
declare const AXP_VIEW_EXTENSION: InjectionToken<AXPViewExtension[]>;
|
|
211
|
+
|
|
212
|
+
declare const AXP_VIEW_SETUP: InjectionToken<void>;
|
|
213
|
+
declare function provideViewSetups(providers: Provider[]): EnvironmentProviders;
|
|
214
|
+
declare function provideViewSetup(key: string, loader: () => Promise<AXPViewProvider>): Provider;
|
|
215
|
+
|
|
216
|
+
type AXPPolicyOptions = {
|
|
217
|
+
id: string;
|
|
218
|
+
sender: HTMLElement | AXComponent | AXPMetaData;
|
|
219
|
+
policies?: string[];
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
interface AXPPolicy {
|
|
223
|
+
apply(context: AXPPolicyEngineContext): Promise<void>;
|
|
224
|
+
}
|
|
225
|
+
declare class AXPPolicyEngineContext {
|
|
226
|
+
private _id;
|
|
227
|
+
private _sender;
|
|
228
|
+
private _visible;
|
|
229
|
+
private _enabled;
|
|
230
|
+
constructor(options: AXPPolicyOptions);
|
|
231
|
+
get sender(): AXPPolicyOptions['sender'];
|
|
232
|
+
get id(): string;
|
|
233
|
+
get visible(): boolean;
|
|
234
|
+
get enabled(): boolean;
|
|
235
|
+
setVisible(visible: boolean): this;
|
|
236
|
+
setEnabled(enabled: boolean): this;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type AXPPolicyEngineMiddleware = (context: AXPPolicyEngineContext, next: (context: AXPPolicyEngineContext) => Promise<void>) => Promise<void>;
|
|
240
|
+
declare function composePolicyEngineMiddlewares(middlewares: AXPPolicyEngineMiddleware[]): (handler: (context: AXPPolicyEngineContext) => Promise<void>) => (context: AXPPolicyEngineContext) => Promise<void>;
|
|
241
|
+
|
|
242
|
+
declare class AXPPolicyEngineRegistry {
|
|
243
|
+
private registry;
|
|
244
|
+
private middlewares;
|
|
245
|
+
private extensions;
|
|
246
|
+
private injector;
|
|
247
|
+
use(mw: AXPPolicyEngineMiddleware): void;
|
|
248
|
+
exists(key: string): boolean;
|
|
249
|
+
getPolicies(): string[];
|
|
250
|
+
register(key: string, loader: () => Promise<AXPPolicy>): void;
|
|
251
|
+
private getPluginMiddlewares;
|
|
252
|
+
execute(policy: string, instance: AXPPolicyOptions): Promise<AXPPolicyEngineContext>;
|
|
253
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPPolicyEngineRegistry, never>;
|
|
254
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPPolicyEngineRegistry>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare class AXPPolicyEngineService {
|
|
258
|
+
private registry;
|
|
259
|
+
apply(options: AXPPolicyOptions): Promise<void>;
|
|
260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPPolicyEngineService, never>;
|
|
261
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPPolicyEngineService>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare class AXPPolicyEngineDirective {
|
|
265
|
+
#private;
|
|
266
|
+
policy: i0.InputSignal<string | null | undefined>;
|
|
267
|
+
private service;
|
|
268
|
+
private elementRef;
|
|
269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPPolicyEngineDirective, never>;
|
|
270
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPPolicyEngineDirective, "[axp-apply-policy]", never, { "policy": { "alias": "axp-apply-policy"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
interface AXPPolicyExtension {
|
|
274
|
+
key: string;
|
|
275
|
+
middleware: AXPPolicyEngineMiddleware;
|
|
276
|
+
}
|
|
277
|
+
declare const AXP_POLICY_EXTENSION: InjectionToken<AXPPolicyExtension[]>;
|
|
278
|
+
|
|
279
|
+
declare const AXP_POLICY_ENGINE_MIDDLEWARE_SETUP: InjectionToken<void>;
|
|
280
|
+
type AXPPolicyLoader = {
|
|
281
|
+
key: string;
|
|
282
|
+
policy: () => Type<AXPPolicy> | Promise<Type<AXPPolicy>>;
|
|
283
|
+
};
|
|
284
|
+
declare function providePolicySetups(entries: AXPPolicyLoader[]): EnvironmentProviders;
|
|
285
|
+
|
|
286
|
+
declare class AXPRuntimeModule {
|
|
287
|
+
private _commandSetup;
|
|
288
|
+
private _commandMiddlewareSetup;
|
|
289
|
+
private _querySetup;
|
|
290
|
+
private _queryMiddlewareSetup;
|
|
291
|
+
private _viewSetup;
|
|
292
|
+
private _viewMiddlewareSetup;
|
|
293
|
+
private _policyEngineSetup;
|
|
294
|
+
constructor();
|
|
295
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPRuntimeModule, never>;
|
|
296
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPRuntimeModule, never, never, never>;
|
|
297
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPRuntimeModule>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
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 };
|
|
301
|
+
export type { AXPCommandExecutionEvent, AXPCommandExecutionStage, AXPCommandExtension, AXPCommandMiddleware, AXPPolicy, AXPPolicyEngineMiddleware, AXPPolicyExtension, AXPQueryExtension, AXPQueryMiddleware, AXPViewExtension, AXPViewMiddleware };
|