@acorex/platform 21.0.0-next.3 → 21.0.0-next.33
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/fesm2022/acorex-platform-auth.mjs +295 -45
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-common-settings.provider-zhqNP3xb.mjs → acorex-platform-common-common-settings.provider-G9XcXXOG.mjs} +60 -4
- package/fesm2022/acorex-platform-common-common-settings.provider-G9XcXXOG.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +960 -319
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +1352 -832
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +554 -826
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +530 -154
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CXEdvDTf.mjs +121 -0
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CXEdvDTf.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-components.mjs +5969 -2347
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +169 -154
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +15380 -9274
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +393 -110
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +511 -450
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs → acorex-platform-layout-widgets-button-widget-designer.component-Dy7jF-oD.mjs} +10 -10
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-Dy7jF-oD.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs → acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs} +39 -16
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs → acorex-platform-layout-widgets-image-preview.popup-C_EPAvCU.mjs} +6 -7
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-C_EPAvCU.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs → acorex-platform-layout-widgets-page-widget-designer.component-D10yO28c.mjs} +12 -12
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-D10yO28c.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BGQqY5Mw.mjs +111 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BGQqY5Mw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-DmzNTYiS.mjs} +6 -6
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-DmzNTYiS.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-BNG_588B.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-BNG_588B.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-Vo4fWHtX.mjs} +6 -6
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-Vo4fWHtX.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +7865 -4026
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs +8 -7
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +220 -169
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs +160 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs +120 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs → acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs} +18 -25
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-cfREo88K.mjs → acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs → acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DR6G8gPC.mjs +19 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DR6G8gPC.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +1717 -66
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs → acorex-platform-themes-shared-icon-chooser-column.component-CqkWJYdv.mjs} +6 -6
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-CqkWJYdv.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs → acorex-platform-themes-shared-icon-chooser-view.component-BOTuLdWN.mjs} +6 -6
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BOTuLdWN.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs} +11 -11
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs} +9 -9
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +563 -561
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +1735 -1750
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/fesm2022/acorex-platform.mjs.map +1 -1
- package/package.json +31 -31
- package/{auth/index.d.ts → types/acorex-platform-auth.d.ts} +247 -10
- package/{common/index.d.ts → types/acorex-platform-common.d.ts} +492 -31
- package/{core/index.d.ts → types/acorex-platform-core.d.ts} +606 -392
- package/{domain/index.d.ts → types/acorex-platform-domain.d.ts} +719 -413
- package/{layout/builder/index.d.ts → types/acorex-platform-layout-builder.d.ts} +128 -56
- package/types/acorex-platform-layout-components.d.ts +2927 -0
- package/{layout/designer/index.d.ts → types/acorex-platform-layout-designer.d.ts} +9 -3
- package/{layout/entity/index.d.ts → types/acorex-platform-layout-entity.d.ts} +1133 -237
- package/{layout/views/index.d.ts → types/acorex-platform-layout-views.d.ts} +90 -31
- package/{layout/widget-core/index.d.ts → types/acorex-platform-layout-widget-core.d.ts} +206 -102
- package/{layout/widgets/index.d.ts → types/acorex-platform-layout-widgets.d.ts} +942 -137
- package/{native/index.d.ts → types/acorex-platform-native.d.ts} +0 -7
- package/{runtime/index.d.ts → types/acorex-platform-runtime.d.ts} +237 -74
- package/{themes/default/index.d.ts → types/acorex-platform-themes-default.d.ts} +113 -5
- package/{themes/shared/index.d.ts → types/acorex-platform-themes-shared.d.ts} +1 -1
- package/types/acorex-platform-workflow.d.ts +1806 -0
- package/fesm2022/acorex-platform-common-common-settings.provider-zhqNP3xb.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs +0 -157
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs +0 -1542
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs +0 -101
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-401.component-cfREo88K.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs +0 -19
- package/fesm2022/acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs.map +0 -1
- package/layout/components/index.d.ts +0 -1669
- package/workflow/index.d.ts +0 -2443
- /package/{index.d.ts → types/acorex-platform.d.ts} +0 -0
|
@@ -1,8 +1,67 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, InjectionToken,
|
|
2
|
+
import { inject, Injectable, InjectionToken, EnvironmentInjector, runInInjectionContext, makeEnvironmentProviders, input, ElementRef, effect, Directive, isDevMode, NgModule } from '@angular/core';
|
|
3
3
|
import { AXPBroadcastEventService, AXPDistributedEventListenerService } from '@acorex/platform/core';
|
|
4
4
|
import { castArray } from 'lodash-es';
|
|
5
5
|
|
|
6
|
+
//#region ---- defineCommand ----
|
|
7
|
+
/**
|
|
8
|
+
* Typed identity helper for command metadata sidecars.
|
|
9
|
+
*/
|
|
10
|
+
function defineCommand(definition) {
|
|
11
|
+
return definition;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Build-time command metadata only. Safe under Node (e.g. generate-runtime-catalog) without loading the command executor stack.
|
|
17
|
+
* Sidecars should import `defineCommand` from here or from `@acorex/platform/runtime/catalog-command-definition`.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Shared build-time metadata shapes for command and query catalog definitions.
|
|
22
|
+
* Lives under `shared/` so secondary ng-packagr entries under `commands/` or `queries/` share a common `src/lib` compilation root.
|
|
23
|
+
*/
|
|
24
|
+
//#endregion
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Build-time command metadata for AXPCommand implementations.
|
|
28
|
+
* `inputs` / `outputs` are schema rows (same family as entity optionDefinitions).
|
|
29
|
+
* Validation entries: only `rule` name and optional `options` (no title/message on rules).
|
|
30
|
+
* Do not import from Angular templates; sidecars may import `defineCommand` from `@acorex/platform/runtime`.
|
|
31
|
+
*
|
|
32
|
+
* Query metadata (fetch-only, no outcomes) is defined in `../queries/query-definition.types.ts` with `defineQuery`.
|
|
33
|
+
*/
|
|
34
|
+
//#endregion
|
|
35
|
+
|
|
36
|
+
//#region ---- Imports ----
|
|
37
|
+
//#endregion
|
|
38
|
+
const COMMAND_EXECUTION_EVENT_KEY = '@commands:execution';
|
|
39
|
+
class AXPCommandEventsService {
|
|
40
|
+
constructor() {
|
|
41
|
+
//#region ---- Services & Dependencies ----
|
|
42
|
+
this.broadcast = inject(AXPBroadcastEventService);
|
|
43
|
+
this.distributedEvents = inject(AXPDistributedEventListenerService, { optional: true });
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ---- Public API ----
|
|
47
|
+
listen(handler) {
|
|
48
|
+
const subscription = this.broadcast
|
|
49
|
+
.listen(COMMAND_EXECUTION_EVENT_KEY)
|
|
50
|
+
.subscribe(({ data }) => handler(data));
|
|
51
|
+
return () => subscription.unsubscribe();
|
|
52
|
+
}
|
|
53
|
+
async emit(event) {
|
|
54
|
+
this.broadcast.publish(COMMAND_EXECUTION_EVENT_KEY, event);
|
|
55
|
+
await this.distributedEvents?.dispatch(COMMAND_EXECUTION_EVENT_KEY, event);
|
|
56
|
+
}
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
58
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandEventsService, providedIn: 'root' }); }
|
|
59
|
+
}
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandEventsService, decorators: [{
|
|
61
|
+
type: Injectable,
|
|
62
|
+
args: [{ providedIn: 'root' }]
|
|
63
|
+
}] });
|
|
64
|
+
|
|
6
65
|
//#endregion
|
|
7
66
|
//#region ---- Middleware Composition ----
|
|
8
67
|
/**
|
|
@@ -51,10 +110,10 @@ class AXPCommandRegistry {
|
|
|
51
110
|
this.registry.clear();
|
|
52
111
|
this.middlewares.length = 0;
|
|
53
112
|
}
|
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
55
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
114
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandRegistry, providedIn: 'root' }); }
|
|
56
115
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandRegistry, decorators: [{
|
|
58
117
|
type: Injectable,
|
|
59
118
|
args: [{ providedIn: 'root' }]
|
|
60
119
|
}] });
|
|
@@ -62,35 +121,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
62
121
|
// plugins/command.extension.token.ts
|
|
63
122
|
const AXP_COMMAND_EXTENSION = new InjectionToken('AXP_COMMAND_EXTENSION');
|
|
64
123
|
|
|
65
|
-
//#region ---- Imports ----
|
|
66
|
-
//#endregion
|
|
67
|
-
const COMMAND_EXECUTION_EVENT_KEY = '@commands:execution';
|
|
68
|
-
class AXPCommandEventsService {
|
|
69
|
-
constructor() {
|
|
70
|
-
//#region ---- Services & Dependencies ----
|
|
71
|
-
this.broadcast = inject(AXPBroadcastEventService);
|
|
72
|
-
this.distributedEvents = inject(AXPDistributedEventListenerService, { optional: true });
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region ---- Public API ----
|
|
76
|
-
listen(handler) {
|
|
77
|
-
const subscription = this.broadcast
|
|
78
|
-
.listen(COMMAND_EXECUTION_EVENT_KEY)
|
|
79
|
-
.subscribe(({ data }) => handler(data));
|
|
80
|
-
return () => subscription.unsubscribe();
|
|
81
|
-
}
|
|
82
|
-
async emit(event) {
|
|
83
|
-
this.broadcast.publish(COMMAND_EXECUTION_EVENT_KEY, event);
|
|
84
|
-
await this.distributedEvents?.dispatch(COMMAND_EXECUTION_EVENT_KEY, event);
|
|
85
|
-
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPCommandEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
87
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPCommandEventsService, providedIn: 'root' }); }
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPCommandEventsService, decorators: [{
|
|
90
|
-
type: Injectable,
|
|
91
|
-
args: [{ providedIn: 'root' }]
|
|
92
|
-
}] });
|
|
93
|
-
|
|
94
124
|
class AXPCommandExecutor {
|
|
95
125
|
constructor() {
|
|
96
126
|
this.injector = inject(EnvironmentInjector);
|
|
@@ -149,10 +179,10 @@ class AXPCommandExecutor {
|
|
|
149
179
|
?.filter(ext => ext.target instanceof RegExp ? ext.target.test(key) : ext.target === key)
|
|
150
180
|
.map(ext => ext.middleware) ?? [];
|
|
151
181
|
}
|
|
152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
153
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandExecutor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
183
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandExecutor, providedIn: 'root' }); }
|
|
154
184
|
}
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandExecutor, decorators: [{
|
|
156
186
|
type: Injectable,
|
|
157
187
|
args: [{ providedIn: 'root' }]
|
|
158
188
|
}] });
|
|
@@ -185,14 +215,47 @@ class AXPCommandService {
|
|
|
185
215
|
async execute(key, input) {
|
|
186
216
|
return this.executor.execute(key, input);
|
|
187
217
|
}
|
|
188
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
189
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
218
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
219
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandService, providedIn: 'root' }); }
|
|
190
220
|
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandService, decorators: [{
|
|
192
222
|
type: Injectable,
|
|
193
223
|
args: [{ providedIn: 'root' }]
|
|
194
224
|
}] });
|
|
195
225
|
|
|
226
|
+
const AXP_COMMAND_MIDDLEWARE_SETUP = new InjectionToken('AXP_COMMAND_MIDDLEWARE_SETUP');
|
|
227
|
+
function provideCommandMiddleware(entries) {
|
|
228
|
+
const global = [];
|
|
229
|
+
const extensions = [];
|
|
230
|
+
for (const entry of entries) {
|
|
231
|
+
if (typeof entry === 'function') {
|
|
232
|
+
global.push(entry);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
extensions.push(entry);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return makeEnvironmentProviders([
|
|
239
|
+
// Plugin middleware entries
|
|
240
|
+
...extensions.map(ext => ({
|
|
241
|
+
provide: AXP_COMMAND_EXTENSION,
|
|
242
|
+
useValue: ext,
|
|
243
|
+
multi: true
|
|
244
|
+
})),
|
|
245
|
+
// Global middleware setup (triggered via this token)
|
|
246
|
+
{
|
|
247
|
+
provide: AXP_COMMAND_MIDDLEWARE_SETUP,
|
|
248
|
+
useFactory: () => {
|
|
249
|
+
const registry = inject(AXPCommandRegistry);
|
|
250
|
+
for (const mw of global) {
|
|
251
|
+
registry.use(mw);
|
|
252
|
+
}
|
|
253
|
+
return true;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]);
|
|
257
|
+
}
|
|
258
|
+
|
|
196
259
|
const AXP_COMMAND_SETUP = new InjectionToken('AXP_COMMAND_SETUP');
|
|
197
260
|
function provideCommandSetups(entries) {
|
|
198
261
|
return makeEnvironmentProviders([
|
|
@@ -229,50 +292,19 @@ function provideCommand(key, loader) {
|
|
|
229
292
|
]);
|
|
230
293
|
}
|
|
231
294
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
global.push(entry);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
extensions.push(entry);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return makeEnvironmentProviders([
|
|
245
|
-
// Plugin middleware entries
|
|
246
|
-
...extensions.map(ext => ({
|
|
247
|
-
provide: AXP_COMMAND_EXTENSION,
|
|
248
|
-
useValue: ext,
|
|
249
|
-
multi: true
|
|
250
|
-
})),
|
|
251
|
-
// Global middleware setup (triggered via this token)
|
|
252
|
-
{
|
|
253
|
-
provide: AXP_COMMAND_MIDDLEWARE_SETUP,
|
|
254
|
-
useFactory: () => {
|
|
255
|
-
const registry = inject(AXPCommandRegistry);
|
|
256
|
-
for (const mw of global) {
|
|
257
|
-
registry.use(mw);
|
|
258
|
-
}
|
|
259
|
-
return true;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
]);
|
|
295
|
+
//#region ---- defineQuery ----
|
|
296
|
+
/**
|
|
297
|
+
* Typed identity helper for query metadata sidecars.
|
|
298
|
+
*/
|
|
299
|
+
function defineQuery(definition) {
|
|
300
|
+
return definition;
|
|
263
301
|
}
|
|
302
|
+
//#endregion
|
|
264
303
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
const mw = middlewares[i];
|
|
270
|
-
const next = composed;
|
|
271
|
-
composed = (input) => mw(input, next);
|
|
272
|
-
}
|
|
273
|
-
return composed;
|
|
274
|
-
};
|
|
275
|
-
}
|
|
304
|
+
/**
|
|
305
|
+
* Build-time query metadata only. Safe under Node (e.g. generate-runtime-catalog) without loading the query executor stack.
|
|
306
|
+
* Sidecars should import `defineQuery` from here or from `@acorex/platform/runtime/catalog-query-definition`.
|
|
307
|
+
*/
|
|
276
308
|
|
|
277
309
|
// queries/query.registry.ts
|
|
278
310
|
class AXPQueryRegistry {
|
|
@@ -305,10 +337,10 @@ class AXPQueryRegistry {
|
|
|
305
337
|
this.registry.clear();
|
|
306
338
|
this.middlewares.length = 0;
|
|
307
339
|
}
|
|
308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
309
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
341
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryRegistry, providedIn: 'root' }); }
|
|
310
342
|
}
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryRegistry, decorators: [{
|
|
312
344
|
type: Injectable,
|
|
313
345
|
args: [{ providedIn: 'root' }]
|
|
314
346
|
}] });
|
|
@@ -316,6 +348,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
316
348
|
// plugins/query.extension.token.ts
|
|
317
349
|
const AXP_QUERY_EXTENSION = new InjectionToken('AXP_QUERY_EXTENSION');
|
|
318
350
|
|
|
351
|
+
const AXP_QUERY_MIDDLEWARE_SETUP = new InjectionToken('AXP_QUERY_MIDDLEWARE_SETUP');
|
|
352
|
+
function provideQueryMiddleware(entries) {
|
|
353
|
+
const global = [];
|
|
354
|
+
const extensions = [];
|
|
355
|
+
for (const entry of entries) {
|
|
356
|
+
if (typeof entry === 'function') {
|
|
357
|
+
global.push(entry);
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
extensions.push(entry);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return makeEnvironmentProviders([
|
|
364
|
+
// Plugin middleware entries
|
|
365
|
+
...extensions.map(ext => ({
|
|
366
|
+
provide: AXP_QUERY_EXTENSION,
|
|
367
|
+
useValue: ext,
|
|
368
|
+
multi: true
|
|
369
|
+
})),
|
|
370
|
+
// Global middleware setup (triggered via this token)
|
|
371
|
+
{
|
|
372
|
+
provide: AXP_QUERY_MIDDLEWARE_SETUP,
|
|
373
|
+
useFactory: () => {
|
|
374
|
+
const registry = inject(AXPQueryRegistry);
|
|
375
|
+
for (const mw of global) {
|
|
376
|
+
registry.use(mw);
|
|
377
|
+
}
|
|
378
|
+
return true;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
]);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const AXP_QUERY_SETUP = new InjectionToken('AXP_QUERY_SETUP');
|
|
385
|
+
function provideQuerySetups(entries) {
|
|
386
|
+
return makeEnvironmentProviders([
|
|
387
|
+
{
|
|
388
|
+
provide: AXP_QUERY_SETUP,
|
|
389
|
+
useFactory: () => {
|
|
390
|
+
const registry = inject(AXPQueryRegistry);
|
|
391
|
+
const injector = inject(EnvironmentInjector);
|
|
392
|
+
for (const entry of entries) {
|
|
393
|
+
registry.register(entry.key, async () => {
|
|
394
|
+
const CommandType = await entry.loader();
|
|
395
|
+
return injector.get(CommandType);
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
return true;
|
|
399
|
+
},
|
|
400
|
+
multi: true
|
|
401
|
+
}
|
|
402
|
+
]);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Build-time query metadata for AXPQuery implementations.
|
|
407
|
+
* Mirrors command metadata shape except there are no `outcomes` (queries only `fetch`).
|
|
408
|
+
* `inputs` / `outputs` are schema rows (same family as entity optionDefinitions).
|
|
409
|
+
*/
|
|
410
|
+
//#endregion
|
|
411
|
+
|
|
412
|
+
function composeQueryMiddlewares(middlewares) {
|
|
413
|
+
return (handler) => {
|
|
414
|
+
let composed = handler;
|
|
415
|
+
for (let i = middlewares.length - 1; i >= 0; i--) {
|
|
416
|
+
const mw = middlewares[i];
|
|
417
|
+
const next = composed;
|
|
418
|
+
composed = (input) => mw(input, next);
|
|
419
|
+
}
|
|
420
|
+
return composed;
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
|
|
319
424
|
class AXPQueryExecutor {
|
|
320
425
|
constructor() {
|
|
321
426
|
this.injector = inject(EnvironmentInjector);
|
|
@@ -342,10 +447,10 @@ class AXPQueryExecutor {
|
|
|
342
447
|
?.filter(ext => ext.target instanceof RegExp ? ext.target.test(key) : ext.target === key)
|
|
343
448
|
.map(ext => ext.middleware) ?? [];
|
|
344
449
|
}
|
|
345
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
346
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
450
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryExecutor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
451
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryExecutor, providedIn: 'root' }); }
|
|
347
452
|
}
|
|
348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryExecutor, decorators: [{
|
|
349
454
|
type: Injectable,
|
|
350
455
|
args: [{ providedIn: 'root' }]
|
|
351
456
|
}] });
|
|
@@ -378,68 +483,14 @@ class AXPQueryService {
|
|
|
378
483
|
async fetch(key, input) {
|
|
379
484
|
return this.executor.fetch(key, input);
|
|
380
485
|
}
|
|
381
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
382
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
487
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryService, providedIn: 'root' }); }
|
|
383
488
|
}
|
|
384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryService, decorators: [{
|
|
385
490
|
type: Injectable,
|
|
386
491
|
args: [{ providedIn: 'root' }]
|
|
387
492
|
}] });
|
|
388
493
|
|
|
389
|
-
const AXP_QUERY_SETUP = new InjectionToken('AXP_QUERY_SETUP');
|
|
390
|
-
function provideQuerySetups(entries) {
|
|
391
|
-
return makeEnvironmentProviders([
|
|
392
|
-
{
|
|
393
|
-
provide: AXP_QUERY_SETUP,
|
|
394
|
-
useFactory: () => {
|
|
395
|
-
const registry = inject(AXPQueryRegistry);
|
|
396
|
-
const injector = inject(EnvironmentInjector);
|
|
397
|
-
for (const entry of entries) {
|
|
398
|
-
registry.register(entry.key, async () => {
|
|
399
|
-
const CommandType = await entry.loader();
|
|
400
|
-
return injector.get(CommandType);
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
return true;
|
|
404
|
-
},
|
|
405
|
-
multi: true
|
|
406
|
-
}
|
|
407
|
-
]);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
const AXP_QUERY_MIDDLEWARE_SETUP = new InjectionToken('AXP_QUERY_MIDDLEWARE_SETUP');
|
|
411
|
-
function provideQueryMiddleware(entries) {
|
|
412
|
-
const global = [];
|
|
413
|
-
const extensions = [];
|
|
414
|
-
for (const entry of entries) {
|
|
415
|
-
if (typeof entry === 'function') {
|
|
416
|
-
global.push(entry);
|
|
417
|
-
}
|
|
418
|
-
else {
|
|
419
|
-
extensions.push(entry);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
return makeEnvironmentProviders([
|
|
423
|
-
// Plugin middleware entries
|
|
424
|
-
...extensions.map(ext => ({
|
|
425
|
-
provide: AXP_QUERY_EXTENSION,
|
|
426
|
-
useValue: ext,
|
|
427
|
-
multi: true
|
|
428
|
-
})),
|
|
429
|
-
// Global middleware setup (triggered via this token)
|
|
430
|
-
{
|
|
431
|
-
provide: AXP_QUERY_MIDDLEWARE_SETUP,
|
|
432
|
-
useFactory: () => {
|
|
433
|
-
const registry = inject(AXPQueryRegistry);
|
|
434
|
-
for (const mw of global) {
|
|
435
|
-
registry.use(mw);
|
|
436
|
-
}
|
|
437
|
-
return true;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
]);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
494
|
function composeViewMiddlewares(middlewares) {
|
|
444
495
|
return (handler) => {
|
|
445
496
|
let composed = handler;
|
|
@@ -482,10 +533,10 @@ class AXPViewRegistry {
|
|
|
482
533
|
this.registry.clear();
|
|
483
534
|
this.middlewares.length = 0;
|
|
484
535
|
}
|
|
485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
486
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
536
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
537
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewRegistry, providedIn: 'root' }); }
|
|
487
538
|
}
|
|
488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewRegistry, decorators: [{
|
|
489
540
|
type: Injectable,
|
|
490
541
|
args: [{ providedIn: 'root' }]
|
|
491
542
|
}] });
|
|
@@ -518,10 +569,10 @@ class AXPViewExecutor {
|
|
|
518
569
|
?.filter(ext => ext.target instanceof RegExp ? ext.target.test(key) : ext.target === key)
|
|
519
570
|
.map(ext => ext.middleware) ?? [];
|
|
520
571
|
}
|
|
521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
522
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewExecutor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
573
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewExecutor, providedIn: 'root' }); }
|
|
523
574
|
}
|
|
524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewExecutor, decorators: [{
|
|
525
576
|
type: Injectable,
|
|
526
577
|
args: [{ providedIn: 'root' }]
|
|
527
578
|
}] });
|
|
@@ -555,10 +606,10 @@ class AXPViewService {
|
|
|
555
606
|
async provide(key, input) {
|
|
556
607
|
return this.executor.provide(key, input);
|
|
557
608
|
}
|
|
558
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
559
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
609
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
610
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewService, providedIn: 'root' }); }
|
|
560
611
|
}
|
|
561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewService, decorators: [{
|
|
562
613
|
type: Injectable,
|
|
563
614
|
args: [{ providedIn: 'root' }]
|
|
564
615
|
}] });
|
|
@@ -674,10 +725,10 @@ class AXPPolicyEngineRegistry {
|
|
|
674
725
|
await composed(context);
|
|
675
726
|
return context;
|
|
676
727
|
}
|
|
677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
678
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
729
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineRegistry, providedIn: 'root' }); }
|
|
679
730
|
}
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineRegistry, decorators: [{
|
|
681
732
|
type: Injectable,
|
|
682
733
|
args: [{ providedIn: 'root' }]
|
|
683
734
|
}] });
|
|
@@ -726,10 +777,10 @@ class AXPPolicyEngineService {
|
|
|
726
777
|
// }
|
|
727
778
|
// }
|
|
728
779
|
}
|
|
729
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
730
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
780
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
781
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineService, providedIn: 'root' }); }
|
|
731
782
|
}
|
|
732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineService, decorators: [{
|
|
733
784
|
type: Injectable,
|
|
734
785
|
args: [{
|
|
735
786
|
providedIn: 'root'
|
|
@@ -738,7 +789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
738
789
|
|
|
739
790
|
class AXPPolicyEngineDirective {
|
|
740
791
|
constructor() {
|
|
741
|
-
this.policy = input.required(...(ngDevMode ?
|
|
792
|
+
this.policy = input.required({ ...(ngDevMode ? { debugName: "policy" } : /* istanbul ignore next */ {}), alias: 'axp-apply-policy' });
|
|
742
793
|
this.service = inject(AXPPolicyEngineService);
|
|
743
794
|
this.elementRef = inject((ElementRef));
|
|
744
795
|
this.#eff = effect(async () => {
|
|
@@ -751,13 +802,13 @@ class AXPPolicyEngineDirective {
|
|
|
751
802
|
policies: castArray(policy),
|
|
752
803
|
sender: this.elementRef.nativeElement
|
|
753
804
|
});
|
|
754
|
-
}, ...(ngDevMode ? [{ debugName: "#eff" }] : []));
|
|
805
|
+
}, ...(ngDevMode ? [{ debugName: "#eff" }] : /* istanbul ignore next */ []));
|
|
755
806
|
}
|
|
756
807
|
#eff;
|
|
757
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
758
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
808
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
809
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: AXPPolicyEngineDirective, isStandalone: true, selector: "[axp-apply-policy]", inputs: { policy: { classPropertyName: "policy", publicName: "axp-apply-policy", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
759
810
|
}
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineDirective, decorators: [{
|
|
761
812
|
type: Directive,
|
|
762
813
|
args: [{
|
|
763
814
|
selector: '[axp-apply-policy]',
|
|
@@ -830,11 +881,11 @@ class AXPRuntimeModule {
|
|
|
830
881
|
console.log('[AXPRuntimeModule] Policy Engine Setup:', this._policyEngineSetup);
|
|
831
882
|
}
|
|
832
883
|
}
|
|
833
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
834
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
835
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
885
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule }); }
|
|
886
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule }); }
|
|
836
887
|
}
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule, decorators: [{
|
|
838
889
|
type: NgModule
|
|
839
890
|
}], ctorParameters: () => [] });
|
|
840
891
|
|
|
@@ -844,5 +895,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
844
895
|
* Generated bundle index. Do not edit.
|
|
845
896
|
*/
|
|
846
897
|
|
|
847
|
-
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 };
|
|
898
|
+
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, defineCommand, defineQuery, provideCommand, provideCommandMiddleware, provideCommandSetups, providePolicySetups, provideQueryMiddleware, provideQuerySetups, provideViewSetup, provideViewSetups };
|
|
848
899
|
//# sourceMappingURL=acorex-platform-runtime.mjs.map
|