@acorex/platform 20.8.4 → 21.0.0-beta.0
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 +121 -27
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-common-settings.provider-41RhWqb4.mjs → acorex-platform-common-common-settings.provider-G9XcXXOG.mjs} +4 -4
- package/fesm2022/acorex-platform-common-common-settings.provider-G9XcXXOG.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +669 -268
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +333 -140
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +557 -826
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +539 -110
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-components-binding-expression-editor-popup.component-CSxCnzwU.mjs → acorex-platform-layout-components-binding-expression-editor-popup.component-CWV4XD36.mjs} +15 -15
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CWV4XD36.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-components.mjs +3285 -1035
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +488 -284
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +16484 -12485
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +410 -170
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +548 -474
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-CPBzE96V.mjs → acorex-platform-layout-widgets-button-widget-designer.component-fLjWiSFE.mjs} +11 -11
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-fLjWiSFE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-Dtv6U3df.mjs → acorex-platform-layout-widgets-file-list-popup.component-3oRAKxTo.mjs} +22 -77
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-3oRAKxTo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-image-preview.popup-QxJfswhK.mjs → acorex-platform-layout-widgets-image-preview.popup-CazpERbX.mjs} +8 -9
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-CazpERbX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-CVdssZBD.mjs → acorex-platform-layout-widgets-page-widget-designer.component-BQ4G6aYf.mjs} +17 -17
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-BQ4G6aYf.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-DWuWxUF_.mjs +116 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-DWuWxUF_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-DVaZN9QN.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-fV94u3t2.mjs} +25 -19
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-fV94u3t2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-DPGHgXa6.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-DyuvQhgN.mjs} +9 -9
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-DyuvQhgN.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-CdiNW691.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-EJMMdpIs.mjs} +7 -7
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-EJMMdpIs.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +6396 -4058
- 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 +328 -166
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CkptOSO3.mjs +160 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CkptOSO3.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DXC2qtvK.mjs +120 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DXC2qtvK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-rGsMVAZj.mjs → acorex-platform-themes-default-entity-master-single-view.component-DYyunzKZ.mjs} +16 -23
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DYyunzKZ.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-C5lQECDP.mjs +31 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-C5lQECDP.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-D5wBXAB-.mjs +25 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-D5wBXAB-.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-AhDiY3DI.mjs +19 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-AhDiY3DI.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +1687 -69
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-column.component-TJ9PWHMY.mjs → acorex-platform-themes-shared-icon-chooser-column.component-QL2-ZUVg.mjs} +8 -8
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-QL2-ZUVg.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-BHcKkIx0.mjs → acorex-platform-themes-shared-icon-chooser-view.component-BXydqPt_.mjs} +8 -8
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BXydqPt_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs → acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs} +2 -2
- package/fesm2022/acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-Cb9iY6k9.mjs +88 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-Cb9iY6k9.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-KP4-BND5.mjs +80 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-KP4-BND5.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +572 -465
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +276 -98
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/fesm2022/acorex-platform.mjs.map +1 -1
- package/package.json +34 -34
- package/{auth/index.d.ts → types/acorex-platform-auth.d.ts} +14 -2
- package/{common/index.d.ts → types/acorex-platform-common.d.ts} +261 -24
- package/{core/index.d.ts → types/acorex-platform-core.d.ts} +163 -42
- package/{domain/index.d.ts → types/acorex-platform-domain.d.ts} +744 -412
- package/{layout/builder/index.d.ts → types/acorex-platform-layout-builder.d.ts} +137 -38
- package/{layout/components/index.d.ts → types/acorex-platform-layout-components.d.ts} +808 -131
- package/{layout/designer/index.d.ts → types/acorex-platform-layout-designer.d.ts} +96 -18
- package/{layout/entity/index.d.ts → types/acorex-platform-layout-entity.d.ts} +695 -61
- package/{layout/views/index.d.ts → types/acorex-platform-layout-views.d.ts} +80 -47
- package/{layout/widget-core/index.d.ts → types/acorex-platform-layout-widget-core.d.ts} +274 -197
- package/{layout/widgets/index.d.ts → types/acorex-platform-layout-widgets.d.ts} +583 -104
- package/{native/index.d.ts → types/acorex-platform-native.d.ts} +0 -7
- package/types/acorex-platform-runtime.d.ts +565 -0
- package/{themes/default/index.d.ts → types/acorex-platform-themes-default.d.ts} +105 -4
- package/{themes/shared/index.d.ts → types/acorex-platform-themes-shared.d.ts} +14 -5
- package/{workflow/index.d.ts → types/acorex-platform-workflow.d.ts} +96 -81
- package/fesm2022/acorex-platform-common-common-settings.provider-41RhWqb4.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CSxCnzwU.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-CPBzE96V.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-Dtv6U3df.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-QxJfswhK.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-CVdssZBD.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BCxE0RTB.mjs +0 -111
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BCxE0RTB.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-DVaZN9QN.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-DPGHgXa6.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-CdiNW691.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-D4hU2SCE.mjs +0 -160
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-D4hU2SCE.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CLDoygoI.mjs +0 -1610
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CLDoygoI.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BVTklnzs.mjs +0 -120
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BVTklnzs.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-rGsMVAZj.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-401.component-53VB-PS_.mjs +0 -31
- package/fesm2022/acorex-platform-themes-default-error-401.component-53VB-PS_.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-404.component-DVF9soT5.mjs +0 -25
- package/fesm2022/acorex-platform-themes-default-error-404.component-DVF9soT5.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-offline.component-CwNNHzZn.mjs +0 -19
- package/fesm2022/acorex-platform-themes-default-error-offline.component-CwNNHzZn.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-TJ9PWHMY.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BHcKkIx0.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-BUPs84MI.mjs +0 -65
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-BUPs84MI.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BotknoHn.mjs +0 -64
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BotknoHn.mjs.map +0 -1
- package/runtime/index.d.ts +0 -307
- /package/{index.d.ts → types/acorex-platform.d.ts} +0 -0
|
@@ -1,8 +1,157 @@
|
|
|
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
|
+
//#region ---- Shared catalog categories (queries & commands) ----
|
|
16
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_PLATFORM = {
|
|
17
|
+
name: 'platform',
|
|
18
|
+
order: 1,
|
|
19
|
+
title: 'Platform',
|
|
20
|
+
};
|
|
21
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_ENTITY = {
|
|
22
|
+
name: 'entity',
|
|
23
|
+
order: 2,
|
|
24
|
+
title: 'Entity',
|
|
25
|
+
};
|
|
26
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_STORAGE = {
|
|
27
|
+
name: 'storage',
|
|
28
|
+
order: 3,
|
|
29
|
+
title: 'Storage',
|
|
30
|
+
};
|
|
31
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_WIDGETS = {
|
|
32
|
+
name: 'widgets',
|
|
33
|
+
order: 4,
|
|
34
|
+
title: 'Widgets',
|
|
35
|
+
};
|
|
36
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_WORKFLOW = {
|
|
37
|
+
name: 'workflow',
|
|
38
|
+
order: 5,
|
|
39
|
+
title: 'Workflow',
|
|
40
|
+
};
|
|
41
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_UTILITY = {
|
|
42
|
+
name: 'utility',
|
|
43
|
+
order: 6,
|
|
44
|
+
title: 'Utility',
|
|
45
|
+
};
|
|
46
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_SETTINGS = {
|
|
47
|
+
name: 'settings',
|
|
48
|
+
order: 7,
|
|
49
|
+
title: 'Settings',
|
|
50
|
+
};
|
|
51
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_AI_TOOLS = {
|
|
52
|
+
name: 'ai-tools',
|
|
53
|
+
order: 8,
|
|
54
|
+
title: 'AI tools',
|
|
55
|
+
};
|
|
56
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_SECURITY = {
|
|
57
|
+
name: 'security',
|
|
58
|
+
order: 9,
|
|
59
|
+
title: 'Security',
|
|
60
|
+
};
|
|
61
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_DATA_MANAGEMENT = {
|
|
62
|
+
name: 'data-management',
|
|
63
|
+
order: 10,
|
|
64
|
+
title: 'Data management',
|
|
65
|
+
};
|
|
66
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_ASSESSMENT = {
|
|
67
|
+
name: 'assessment',
|
|
68
|
+
order: 11,
|
|
69
|
+
title: 'Assessment',
|
|
70
|
+
};
|
|
71
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_REPORT = {
|
|
72
|
+
name: 'report',
|
|
73
|
+
order: 12,
|
|
74
|
+
title: 'Report',
|
|
75
|
+
};
|
|
76
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_ORGANIZATION = {
|
|
77
|
+
name: 'organization',
|
|
78
|
+
order: 13,
|
|
79
|
+
title: 'Organization',
|
|
80
|
+
};
|
|
81
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_TENANT = {
|
|
82
|
+
name: 'tenant',
|
|
83
|
+
order: 14,
|
|
84
|
+
title: 'Tenant',
|
|
85
|
+
};
|
|
86
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_HUMAN_CAPITAL = {
|
|
87
|
+
name: 'human-capital',
|
|
88
|
+
order: 15,
|
|
89
|
+
title: 'Human capital',
|
|
90
|
+
};
|
|
91
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_PRODUCT = {
|
|
92
|
+
name: 'product',
|
|
93
|
+
order: 16,
|
|
94
|
+
title: 'Product',
|
|
95
|
+
};
|
|
96
|
+
const AXP_CATALOG_DEFINITION_CATEGORY_FILE_WIDGET = {
|
|
97
|
+
name: 'file-widget',
|
|
98
|
+
order: 17,
|
|
99
|
+
title: 'File widget',
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Shared build-time catalog metadata for command, query, and widget definition sidecars
|
|
105
|
+
* (`defineCommand`, `defineQuery`, `defineWidget`).
|
|
106
|
+
* Lives under `shared/` so consumers import one module without a "command" prefix on generic shapes.
|
|
107
|
+
*/
|
|
108
|
+
//#endregion
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Build-time command metadata for AXPCommand implementations.
|
|
112
|
+
* `inputs` / `outputs` are schema rows (same family as entity optionDefinitions).
|
|
113
|
+
* Validation entries: only `rule` name and optional `options` (no title/message on rules).
|
|
114
|
+
* Do not import from Angular templates; sidecars may import `defineCommand` from `@acorex/platform/runtime`.
|
|
115
|
+
*
|
|
116
|
+
* Query metadata (fetch-only, no outcomes) is defined in `../queries/query-definition.types.ts` with `defineQuery`.
|
|
117
|
+
* Widget metadata sidecars use `../widgets/widget-definition.types.ts` with `defineWidget`.
|
|
118
|
+
*/
|
|
119
|
+
//#endregion
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Build-time command metadata only. Safe under Node (e.g. generate-runtime-catalog) without loading the command executor stack.
|
|
123
|
+
* Sidecars should import `defineCommand` from `@acorex/platform/runtime` (or this module for deep imports).
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
//#region ---- Imports ----
|
|
127
|
+
//#endregion
|
|
128
|
+
const COMMAND_EXECUTION_EVENT_KEY = '@commands:execution';
|
|
129
|
+
class AXPCommandEventsService {
|
|
130
|
+
constructor() {
|
|
131
|
+
//#region ---- Services & Dependencies ----
|
|
132
|
+
this.broadcast = inject(AXPBroadcastEventService);
|
|
133
|
+
this.distributedEvents = inject(AXPDistributedEventListenerService, { optional: true });
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region ---- Public API ----
|
|
137
|
+
listen(handler) {
|
|
138
|
+
const subscription = this.broadcast
|
|
139
|
+
.listen(COMMAND_EXECUTION_EVENT_KEY)
|
|
140
|
+
.subscribe(({ data }) => handler(data));
|
|
141
|
+
return () => subscription.unsubscribe();
|
|
142
|
+
}
|
|
143
|
+
async emit(event) {
|
|
144
|
+
this.broadcast.publish(COMMAND_EXECUTION_EVENT_KEY, event);
|
|
145
|
+
await this.distributedEvents?.dispatch(COMMAND_EXECUTION_EVENT_KEY, event);
|
|
146
|
+
}
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
148
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandEventsService, providedIn: 'root' }); }
|
|
149
|
+
}
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandEventsService, decorators: [{
|
|
151
|
+
type: Injectable,
|
|
152
|
+
args: [{ providedIn: 'root' }]
|
|
153
|
+
}] });
|
|
154
|
+
|
|
6
155
|
//#endregion
|
|
7
156
|
//#region ---- Middleware Composition ----
|
|
8
157
|
/**
|
|
@@ -51,10 +200,10 @@ class AXPCommandRegistry {
|
|
|
51
200
|
this.registry.clear();
|
|
52
201
|
this.middlewares.length = 0;
|
|
53
202
|
}
|
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
55
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
204
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandRegistry, providedIn: 'root' }); }
|
|
56
205
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandRegistry, decorators: [{
|
|
58
207
|
type: Injectable,
|
|
59
208
|
args: [{ providedIn: 'root' }]
|
|
60
209
|
}] });
|
|
@@ -62,35 +211,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
62
211
|
// plugins/command.extension.token.ts
|
|
63
212
|
const AXP_COMMAND_EXTENSION = new InjectionToken('AXP_COMMAND_EXTENSION');
|
|
64
213
|
|
|
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.19", ngImport: i0, type: AXPCommandEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
87
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: AXPCommandEventsService, providedIn: 'root' }); }
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: AXPCommandEventsService, decorators: [{
|
|
90
|
-
type: Injectable,
|
|
91
|
-
args: [{ providedIn: 'root' }]
|
|
92
|
-
}] });
|
|
93
|
-
|
|
94
214
|
class AXPCommandExecutor {
|
|
95
215
|
constructor() {
|
|
96
216
|
this.injector = inject(EnvironmentInjector);
|
|
@@ -149,10 +269,10 @@ class AXPCommandExecutor {
|
|
|
149
269
|
?.filter(ext => ext.target instanceof RegExp ? ext.target.test(key) : ext.target === key)
|
|
150
270
|
.map(ext => ext.middleware) ?? [];
|
|
151
271
|
}
|
|
152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
153
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandExecutor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
273
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandExecutor, providedIn: 'root' }); }
|
|
154
274
|
}
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandExecutor, decorators: [{
|
|
156
276
|
type: Injectable,
|
|
157
277
|
args: [{ providedIn: 'root' }]
|
|
158
278
|
}] });
|
|
@@ -185,14 +305,47 @@ class AXPCommandService {
|
|
|
185
305
|
async execute(key, input) {
|
|
186
306
|
return this.executor.execute(key, input);
|
|
187
307
|
}
|
|
188
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
189
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
308
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
309
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandService, providedIn: 'root' }); }
|
|
190
310
|
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommandService, decorators: [{
|
|
192
312
|
type: Injectable,
|
|
193
313
|
args: [{ providedIn: 'root' }]
|
|
194
314
|
}] });
|
|
195
315
|
|
|
316
|
+
const AXP_COMMAND_MIDDLEWARE_SETUP = new InjectionToken('AXP_COMMAND_MIDDLEWARE_SETUP');
|
|
317
|
+
function provideCommandMiddleware(entries) {
|
|
318
|
+
const global = [];
|
|
319
|
+
const extensions = [];
|
|
320
|
+
for (const entry of entries) {
|
|
321
|
+
if (typeof entry === 'function') {
|
|
322
|
+
global.push(entry);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
extensions.push(entry);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return makeEnvironmentProviders([
|
|
329
|
+
// Plugin middleware entries
|
|
330
|
+
...extensions.map(ext => ({
|
|
331
|
+
provide: AXP_COMMAND_EXTENSION,
|
|
332
|
+
useValue: ext,
|
|
333
|
+
multi: true
|
|
334
|
+
})),
|
|
335
|
+
// Global middleware setup (triggered via this token)
|
|
336
|
+
{
|
|
337
|
+
provide: AXP_COMMAND_MIDDLEWARE_SETUP,
|
|
338
|
+
useFactory: () => {
|
|
339
|
+
const registry = inject(AXPCommandRegistry);
|
|
340
|
+
for (const mw of global) {
|
|
341
|
+
registry.use(mw);
|
|
342
|
+
}
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
]);
|
|
347
|
+
}
|
|
348
|
+
|
|
196
349
|
const AXP_COMMAND_SETUP = new InjectionToken('AXP_COMMAND_SETUP');
|
|
197
350
|
function provideCommandSetups(entries) {
|
|
198
351
|
return makeEnvironmentProviders([
|
|
@@ -229,50 +382,19 @@ function provideCommand(key, loader) {
|
|
|
229
382
|
]);
|
|
230
383
|
}
|
|
231
384
|
|
|
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
|
-
]);
|
|
385
|
+
//#region ---- defineQuery ----
|
|
386
|
+
/**
|
|
387
|
+
* Typed identity helper for query metadata sidecars.
|
|
388
|
+
*/
|
|
389
|
+
function defineQuery(definition) {
|
|
390
|
+
return definition;
|
|
263
391
|
}
|
|
392
|
+
//#endregion
|
|
264
393
|
|
|
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
|
-
}
|
|
394
|
+
/**
|
|
395
|
+
* Build-time query metadata only. Safe under Node (e.g. generate-runtime-catalog) without loading the query executor stack.
|
|
396
|
+
* Sidecars should import `defineQuery` from `@acorex/platform/runtime` (or this module for deep imports).
|
|
397
|
+
*/
|
|
276
398
|
|
|
277
399
|
// queries/query.registry.ts
|
|
278
400
|
class AXPQueryRegistry {
|
|
@@ -305,10 +427,10 @@ class AXPQueryRegistry {
|
|
|
305
427
|
this.registry.clear();
|
|
306
428
|
this.middlewares.length = 0;
|
|
307
429
|
}
|
|
308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
309
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
431
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryRegistry, providedIn: 'root' }); }
|
|
310
432
|
}
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryRegistry, decorators: [{
|
|
312
434
|
type: Injectable,
|
|
313
435
|
args: [{ providedIn: 'root' }]
|
|
314
436
|
}] });
|
|
@@ -316,6 +438,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
316
438
|
// plugins/query.extension.token.ts
|
|
317
439
|
const AXP_QUERY_EXTENSION = new InjectionToken('AXP_QUERY_EXTENSION');
|
|
318
440
|
|
|
441
|
+
const AXP_QUERY_MIDDLEWARE_SETUP = new InjectionToken('AXP_QUERY_MIDDLEWARE_SETUP');
|
|
442
|
+
function provideQueryMiddleware(entries) {
|
|
443
|
+
const global = [];
|
|
444
|
+
const extensions = [];
|
|
445
|
+
for (const entry of entries) {
|
|
446
|
+
if (typeof entry === 'function') {
|
|
447
|
+
global.push(entry);
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
extensions.push(entry);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return makeEnvironmentProviders([
|
|
454
|
+
// Plugin middleware entries
|
|
455
|
+
...extensions.map(ext => ({
|
|
456
|
+
provide: AXP_QUERY_EXTENSION,
|
|
457
|
+
useValue: ext,
|
|
458
|
+
multi: true
|
|
459
|
+
})),
|
|
460
|
+
// Global middleware setup (triggered via this token)
|
|
461
|
+
{
|
|
462
|
+
provide: AXP_QUERY_MIDDLEWARE_SETUP,
|
|
463
|
+
useFactory: () => {
|
|
464
|
+
const registry = inject(AXPQueryRegistry);
|
|
465
|
+
for (const mw of global) {
|
|
466
|
+
registry.use(mw);
|
|
467
|
+
}
|
|
468
|
+
return true;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
]);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
const AXP_QUERY_SETUP = new InjectionToken('AXP_QUERY_SETUP');
|
|
475
|
+
function provideQuerySetups(entries) {
|
|
476
|
+
return makeEnvironmentProviders([
|
|
477
|
+
{
|
|
478
|
+
provide: AXP_QUERY_SETUP,
|
|
479
|
+
useFactory: () => {
|
|
480
|
+
const registry = inject(AXPQueryRegistry);
|
|
481
|
+
const injector = inject(EnvironmentInjector);
|
|
482
|
+
for (const entry of entries) {
|
|
483
|
+
registry.register(entry.key, async () => {
|
|
484
|
+
const CommandType = await entry.loader();
|
|
485
|
+
return injector.get(CommandType);
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
return true;
|
|
489
|
+
},
|
|
490
|
+
multi: true
|
|
491
|
+
}
|
|
492
|
+
]);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Build-time query metadata for AXPQuery implementations.
|
|
497
|
+
* Mirrors command metadata shape except there are no `outcomes` (queries only `fetch`).
|
|
498
|
+
* Shares {@link AXPCatalogMetadataDefinitionBase} with commands and widgets; `inputs` / `outputs` live on the base.
|
|
499
|
+
*/
|
|
500
|
+
//#endregion
|
|
501
|
+
|
|
502
|
+
function composeQueryMiddlewares(middlewares) {
|
|
503
|
+
return (handler) => {
|
|
504
|
+
let composed = handler;
|
|
505
|
+
for (let i = middlewares.length - 1; i >= 0; i--) {
|
|
506
|
+
const mw = middlewares[i];
|
|
507
|
+
const next = composed;
|
|
508
|
+
composed = (input) => mw(input, next);
|
|
509
|
+
}
|
|
510
|
+
return composed;
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
|
|
319
514
|
class AXPQueryExecutor {
|
|
320
515
|
constructor() {
|
|
321
516
|
this.injector = inject(EnvironmentInjector);
|
|
@@ -342,10 +537,10 @@ class AXPQueryExecutor {
|
|
|
342
537
|
?.filter(ext => ext.target instanceof RegExp ? ext.target.test(key) : ext.target === key)
|
|
343
538
|
.map(ext => ext.middleware) ?? [];
|
|
344
539
|
}
|
|
345
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
346
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
540
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryExecutor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
541
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryExecutor, providedIn: 'root' }); }
|
|
347
542
|
}
|
|
348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryExecutor, decorators: [{
|
|
349
544
|
type: Injectable,
|
|
350
545
|
args: [{ providedIn: 'root' }]
|
|
351
546
|
}] });
|
|
@@ -378,67 +573,34 @@ class AXPQueryService {
|
|
|
378
573
|
async fetch(key, input) {
|
|
379
574
|
return this.executor.fetch(key, input);
|
|
380
575
|
}
|
|
381
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
382
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
576
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
577
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryService, providedIn: 'root' }); }
|
|
383
578
|
}
|
|
384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPQueryService, decorators: [{
|
|
385
580
|
type: Injectable,
|
|
386
581
|
args: [{ providedIn: 'root' }]
|
|
387
582
|
}] });
|
|
388
583
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
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
|
-
]);
|
|
584
|
+
//#region ---- defineWidget ----
|
|
585
|
+
/**
|
|
586
|
+
* Typed identity helper for widget metadata sidecars.
|
|
587
|
+
*/
|
|
588
|
+
function defineWidget(definition) {
|
|
589
|
+
return definition;
|
|
408
590
|
}
|
|
591
|
+
//#endregion
|
|
409
592
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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
|
-
}
|
|
593
|
+
/**
|
|
594
|
+
* Build-time widget metadata only. Safe for tooling without loading layout widget components.
|
|
595
|
+
* Sidecars should import `defineWidget` from `@acorex/platform/runtime` (or this module for deep imports).
|
|
596
|
+
*/
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Build-time widget metadata sidecars (parallel to {@link AXPWidgetConfig} in layout/widget-core).
|
|
600
|
+
* Extends {@link AXPCatalogMetadataDefinitionBase}; `inputs` / `outputs` use the same schema rows as commands/queries.
|
|
601
|
+
* Sidecars may import `defineWidget` from `@acorex/platform/runtime`.
|
|
602
|
+
*/
|
|
603
|
+
//#endregion
|
|
442
604
|
|
|
443
605
|
function composeViewMiddlewares(middlewares) {
|
|
444
606
|
return (handler) => {
|
|
@@ -482,10 +644,10 @@ class AXPViewRegistry {
|
|
|
482
644
|
this.registry.clear();
|
|
483
645
|
this.middlewares.length = 0;
|
|
484
646
|
}
|
|
485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
486
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
647
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
648
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewRegistry, providedIn: 'root' }); }
|
|
487
649
|
}
|
|
488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewRegistry, decorators: [{
|
|
489
651
|
type: Injectable,
|
|
490
652
|
args: [{ providedIn: 'root' }]
|
|
491
653
|
}] });
|
|
@@ -518,10 +680,10 @@ class AXPViewExecutor {
|
|
|
518
680
|
?.filter(ext => ext.target instanceof RegExp ? ext.target.test(key) : ext.target === key)
|
|
519
681
|
.map(ext => ext.middleware) ?? [];
|
|
520
682
|
}
|
|
521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
522
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
683
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewExecutor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
684
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewExecutor, providedIn: 'root' }); }
|
|
523
685
|
}
|
|
524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewExecutor, decorators: [{
|
|
525
687
|
type: Injectable,
|
|
526
688
|
args: [{ providedIn: 'root' }]
|
|
527
689
|
}] });
|
|
@@ -555,10 +717,10 @@ class AXPViewService {
|
|
|
555
717
|
async provide(key, input) {
|
|
556
718
|
return this.executor.provide(key, input);
|
|
557
719
|
}
|
|
558
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
559
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewService, providedIn: 'root' }); }
|
|
560
722
|
}
|
|
561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPViewService, decorators: [{
|
|
562
724
|
type: Injectable,
|
|
563
725
|
args: [{ providedIn: 'root' }]
|
|
564
726
|
}] });
|
|
@@ -674,10 +836,10 @@ class AXPPolicyEngineRegistry {
|
|
|
674
836
|
await composed(context);
|
|
675
837
|
return context;
|
|
676
838
|
}
|
|
677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
678
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
839
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
840
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineRegistry, providedIn: 'root' }); }
|
|
679
841
|
}
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineRegistry, decorators: [{
|
|
681
843
|
type: Injectable,
|
|
682
844
|
args: [{ providedIn: 'root' }]
|
|
683
845
|
}] });
|
|
@@ -726,10 +888,10 @@ class AXPPolicyEngineService {
|
|
|
726
888
|
// }
|
|
727
889
|
// }
|
|
728
890
|
}
|
|
729
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
730
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
892
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineService, providedIn: 'root' }); }
|
|
731
893
|
}
|
|
732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineService, decorators: [{
|
|
733
895
|
type: Injectable,
|
|
734
896
|
args: [{
|
|
735
897
|
providedIn: 'root'
|
|
@@ -738,7 +900,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
738
900
|
|
|
739
901
|
class AXPPolicyEngineDirective {
|
|
740
902
|
constructor() {
|
|
741
|
-
this.policy = input.required(...(ngDevMode ?
|
|
903
|
+
this.policy = input.required({ ...(ngDevMode ? { debugName: "policy" } : /* istanbul ignore next */ {}), alias: 'axp-apply-policy' });
|
|
742
904
|
this.service = inject(AXPPolicyEngineService);
|
|
743
905
|
this.elementRef = inject((ElementRef));
|
|
744
906
|
this.#eff = effect(async () => {
|
|
@@ -751,13 +913,13 @@ class AXPPolicyEngineDirective {
|
|
|
751
913
|
policies: castArray(policy),
|
|
752
914
|
sender: this.elementRef.nativeElement
|
|
753
915
|
});
|
|
754
|
-
}, ...(ngDevMode ? [{ debugName: "#eff" }] : []));
|
|
916
|
+
}, ...(ngDevMode ? [{ debugName: "#eff" }] : /* istanbul ignore next */ []));
|
|
755
917
|
}
|
|
756
918
|
#eff;
|
|
757
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
758
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
919
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
920
|
+
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
921
|
}
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPPolicyEngineDirective, decorators: [{
|
|
761
923
|
type: Directive,
|
|
762
924
|
args: [{
|
|
763
925
|
selector: '[axp-apply-policy]',
|
|
@@ -830,11 +992,11 @@ class AXPRuntimeModule {
|
|
|
830
992
|
console.log('[AXPRuntimeModule] Policy Engine Setup:', this._policyEngineSetup);
|
|
831
993
|
}
|
|
832
994
|
}
|
|
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: "
|
|
995
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
996
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule }); }
|
|
997
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule }); }
|
|
836
998
|
}
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPRuntimeModule, decorators: [{
|
|
838
1000
|
type: NgModule
|
|
839
1001
|
}], ctorParameters: () => [] });
|
|
840
1002
|
|
|
@@ -844,5 +1006,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
844
1006
|
* Generated bundle index. Do not edit.
|
|
845
1007
|
*/
|
|
846
1008
|
|
|
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 };
|
|
1009
|
+
export { AXPCommandEventsService, AXPCommandExecutor, AXPCommandRegistry, AXPCommandService, AXPPolicyEngineContext, AXPPolicyEngineDirective, AXPPolicyEngineRegistry, AXPPolicyEngineService, AXPQueryExecutor, AXPQueryRegistry, AXPQueryService, AXPRuntimeModule, AXPViewExecutor, AXPViewRegistry, AXPViewService, AXP_CATALOG_DEFINITION_CATEGORY_AI_TOOLS as AXP_COMMAND_DEFINITION_CATEGORY_AI_TOOLS, AXP_CATALOG_DEFINITION_CATEGORY_ASSESSMENT as AXP_COMMAND_DEFINITION_CATEGORY_ASSESSMENT, AXP_CATALOG_DEFINITION_CATEGORY_DATA_MANAGEMENT as AXP_COMMAND_DEFINITION_CATEGORY_DATA_MANAGEMENT, AXP_CATALOG_DEFINITION_CATEGORY_ENTITY as AXP_COMMAND_DEFINITION_CATEGORY_ENTITY, AXP_CATALOG_DEFINITION_CATEGORY_FILE_WIDGET as AXP_COMMAND_DEFINITION_CATEGORY_FILE_WIDGET, AXP_CATALOG_DEFINITION_CATEGORY_HUMAN_CAPITAL as AXP_COMMAND_DEFINITION_CATEGORY_HUMAN_CAPITAL, AXP_CATALOG_DEFINITION_CATEGORY_ORGANIZATION as AXP_COMMAND_DEFINITION_CATEGORY_ORGANIZATION, AXP_CATALOG_DEFINITION_CATEGORY_PLATFORM as AXP_COMMAND_DEFINITION_CATEGORY_PLATFORM, AXP_CATALOG_DEFINITION_CATEGORY_PRODUCT as AXP_COMMAND_DEFINITION_CATEGORY_PRODUCT, AXP_CATALOG_DEFINITION_CATEGORY_REPORT as AXP_COMMAND_DEFINITION_CATEGORY_REPORT, AXP_CATALOG_DEFINITION_CATEGORY_SECURITY as AXP_COMMAND_DEFINITION_CATEGORY_SECURITY, AXP_CATALOG_DEFINITION_CATEGORY_SETTINGS as AXP_COMMAND_DEFINITION_CATEGORY_SETTINGS, AXP_CATALOG_DEFINITION_CATEGORY_STORAGE as AXP_COMMAND_DEFINITION_CATEGORY_STORAGE, AXP_CATALOG_DEFINITION_CATEGORY_TENANT as AXP_COMMAND_DEFINITION_CATEGORY_TENANT, AXP_CATALOG_DEFINITION_CATEGORY_UTILITY as AXP_COMMAND_DEFINITION_CATEGORY_UTILITY, AXP_CATALOG_DEFINITION_CATEGORY_WORKFLOW as AXP_COMMAND_DEFINITION_CATEGORY_WORKFLOW, AXP_COMMAND_EXTENSION, AXP_COMMAND_MIDDLEWARE_SETUP, AXP_COMMAND_SETUP, AXP_POLICY_ENGINE_MIDDLEWARE_SETUP, AXP_POLICY_EXTENSION, AXP_CATALOG_DEFINITION_CATEGORY_ENTITY as AXP_QUERY_DEFINITION_CATEGORY_ENTITY, AXP_CATALOG_DEFINITION_CATEGORY_PLATFORM as AXP_QUERY_DEFINITION_CATEGORY_PLATFORM, AXP_CATALOG_DEFINITION_CATEGORY_STORAGE as AXP_QUERY_DEFINITION_CATEGORY_STORAGE, AXP_CATALOG_DEFINITION_CATEGORY_WIDGETS as AXP_QUERY_DEFINITION_CATEGORY_WIDGETS, AXP_QUERY_EXTENSION, AXP_QUERY_MIDDLEWARE_SETUP, AXP_QUERY_SETUP, AXP_VIEW_EXTENSION, AXP_VIEW_SETUP, composeCommandMiddlewares, composePolicyEngineMiddlewares, composeQueryMiddlewares, composeViewMiddlewares, defineCommand, defineQuery, defineWidget, provideCommand, provideCommandMiddleware, provideCommandSetups, providePolicySetups, provideQueryMiddleware, provideQuerySetups, provideViewSetup, provideViewSetups };
|
|
848
1010
|
//# sourceMappingURL=acorex-platform-runtime.mjs.map
|