@acorex/modules 18.0.15 → 18.0.16
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/application-management/index.d.ts +9 -7
- package/application-management/lib/application-management.module.d.ts +11 -2
- package/application-management/lib/application-management.service.d.ts +2 -0
- package/application-management/lib/entities/property.entity.d.ts +3 -0
- package/application-management/lib/module-designer/module-designer.component.d.ts +18 -0
- package/application-management/lib/module-designer/module-designer.service.d.ts +34 -0
- package/auth/lib/error-handler.d.ts +1 -1
- package/backend/lib/data/api/comment.service.d.ts +15 -0
- package/backend/lib/data/api/module-designer.service.d.ts +43 -0
- package/backend/lib/data/index.d.ts +2 -1
- package/backend/lib/data/local/local-data-provider.d.ts +1 -2
- package/esm2022/application-management/index.mjs +10 -8
- package/esm2022/application-management/lib/application-management.module.mjs +56 -7
- package/esm2022/application-management/lib/application-management.service.mjs +8 -2
- package/esm2022/application-management/lib/entities/application-module.entity.mjs +273 -0
- package/esm2022/application-management/lib/entities/applications.entity.mjs +311 -0
- package/esm2022/application-management/lib/entities/edition.entity.mjs +284 -0
- package/esm2022/application-management/lib/entities/entity.entity.mjs +284 -0
- package/esm2022/application-management/lib/entities/feature.entity.mjs +284 -0
- package/esm2022/application-management/lib/entities/modules.entity.mjs +324 -0
- package/esm2022/application-management/lib/entities/permission.entity.mjs +284 -0
- package/esm2022/application-management/lib/entities/property.entity.mjs +449 -0
- package/esm2022/application-management/lib/module-designer/module-designer.component.mjs +91 -0
- package/esm2022/application-management/lib/module-designer/module-designer.service.mjs +3 -0
- package/esm2022/auth/lib/error-handler.mjs +6 -6
- package/esm2022/backend/lib/backend.module.mjs +23 -5
- package/esm2022/backend/lib/data/api/comment.service.mjs +48 -0
- package/esm2022/backend/lib/data/api/data-provider.mjs +2 -2
- package/esm2022/backend/lib/data/api/module-designer.service.mjs +95 -0
- package/esm2022/backend/lib/data/index.mjs +3 -2
- package/esm2022/backend/lib/data/local/local-data-provider.mjs +2 -2
- package/esm2022/form-management/acorex-modules-form-management.mjs +5 -0
- package/esm2022/form-management/index.mjs +2 -0
- package/esm2022/form-management/lib/designer/designer.page.mjs +24 -0
- package/esm2022/form-management/lib/form-management.module.mjs +29 -0
- package/fesm2022/acorex-modules-application-management-module-designer.component-KlwqCJCF.mjs +100 -0
- package/fesm2022/acorex-modules-application-management-module-designer.component-KlwqCJCF.mjs.map +1 -0
- package/fesm2022/acorex-modules-application-management.mjs +539 -16
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BD7I4S8c.mjs → acorex-modules-auth-acorex-modules-auth-D09VaQPe.mjs} +12 -12
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-D09VaQPe.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-Cfl1D1Cw.mjs → acorex-modules-auth-app-chooser.component-DN1ZJiZs.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-Cfl1D1Cw.mjs.map → acorex-modules-auth-app-chooser.component-DN1ZJiZs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-BQG4ObmU.mjs → acorex-modules-auth-login.module-CGA5aTg2.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-login.module-BQG4ObmU.mjs.map → acorex-modules-auth-login.module-CGA5aTg2.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-DoPCP7C0.mjs → acorex-modules-auth-master.layout-ZJWzjLrb.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-DoPCP7C0.mjs.map → acorex-modules-auth-master.layout-ZJWzjLrb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-fyMD7oKR.mjs → acorex-modules-auth-password.component-C4yqf342.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-password.component-fyMD7oKR.mjs.map → acorex-modules-auth-password.component-C4yqf342.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CfhiS2hO.mjs → acorex-modules-auth-password.component-MJhNk3UI.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CfhiS2hO.mjs.map → acorex-modules-auth-password.component-MJhNk3UI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-95DQOnjS.mjs → acorex-modules-auth-routes-DhORV1Js.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-95DQOnjS.mjs.map → acorex-modules-auth-routes-DhORV1Js.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-BkErlA-n.mjs → acorex-modules-auth-two-factor.module-BWKP0_jO.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor.module-BkErlA-n.mjs.map → acorex-modules-auth-two-factor.module-BWKP0_jO.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +4 -4
- package/fesm2022/acorex-modules-backend.mjs +154 -137
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs +27 -0
- package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-management.mjs +36 -0
- package/fesm2022/acorex-modules-form-management.mjs.map +1 -0
- package/form-management/README.md +4 -0
- package/form-management/index.d.ts +1 -0
- package/form-management/lib/designer/designer.page.d.ts +5 -0
- package/form-management/lib/form-management.module.d.ts +7 -0
- package/package.json +7 -7
- package/backend/lib/data/local/data-Conditioner.d.ts +0 -6
- package/esm2022/application-management/lib/application-module.entity.mjs +0 -273
- package/esm2022/application-management/lib/applications.entity.mjs +0 -311
- package/esm2022/application-management/lib/edition.entity.mjs +0 -284
- package/esm2022/application-management/lib/entity.entity.mjs +0 -284
- package/esm2022/application-management/lib/feature.entity.mjs +0 -284
- package/esm2022/application-management/lib/modules.entity.mjs +0 -324
- package/esm2022/application-management/lib/permission.entity.mjs +0 -284
- package/esm2022/backend/lib/data/local/data-Conditioner.mjs +0 -138
- package/esm2022/log-management/acorex-modules-log-management.mjs +0 -5
- package/esm2022/log-management/index.mjs +0 -3
- package/esm2022/log-management/lib/audit-logs.entity.mjs +0 -391
- package/esm2022/log-management/lib/log-management.module.mjs +0 -16
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BD7I4S8c.mjs.map +0 -1
- package/fesm2022/acorex-modules-log-management.mjs +0 -414
- package/fesm2022/acorex-modules-log-management.mjs.map +0 -1
- package/log-management/README.md +0 -4
- package/log-management/index.d.ts +0 -2
- package/log-management/lib/audit-logs.entity.d.ts +0 -3
- package/log-management/lib/log-management.module.d.ts +0 -6
- /package/application-management/lib/{application-module.entity.d.ts → entities/application-module.entity.d.ts} +0 -0
- /package/application-management/lib/{applications.entity.d.ts → entities/applications.entity.d.ts} +0 -0
- /package/application-management/lib/{edition.entity.d.ts → entities/edition.entity.d.ts} +0 -0
- /package/application-management/lib/{entity.entity.d.ts → entities/entity.entity.d.ts} +0 -0
- /package/application-management/lib/{feature.entity.d.ts → entities/feature.entity.d.ts} +0 -0
- /package/application-management/lib/{modules.entity.d.ts → entities/modules.entity.d.ts} +0 -0
- /package/application-management/lib/{permission.entity.d.ts → entities/permission.entity.d.ts} +0 -0
@@ -1,22 +1,71 @@
|
|
1
|
+
import { AXPEntityDefinitionRegistryService } from '@acorex/platform/layout/entity';
|
2
|
+
import { AXPRootLayoutComponent } from '@acorex/platform/themes/default';
|
1
3
|
import * as i0 from '@angular/core';
|
2
|
-
import { NgModule, Injectable } from '@angular/core';
|
4
|
+
import { Injector, NgModule, Optional, Inject, Injectable } from '@angular/core';
|
5
|
+
import * as i1 from '@angular/router';
|
6
|
+
import { RouterModule } from '@angular/router';
|
3
7
|
import { AXPDataGenerator, AXPStorageService, AXPEntityDataProviderImpl, AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
|
4
|
-
import { applySortArray, applyFilterArray } from '@acorex/
|
8
|
+
import { applySortArray, applyFilterArray } from '@acorex/platform/core';
|
5
9
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
6
10
|
|
11
|
+
const routes = [
|
12
|
+
{
|
13
|
+
component: AXPRootLayoutComponent,
|
14
|
+
path: 'console',
|
15
|
+
children: [
|
16
|
+
{
|
17
|
+
path: 'module-designer',
|
18
|
+
loadComponent: () => import('./acorex-modules-application-management-module-designer.component-KlwqCJCF.mjs').then((c) => c.AXMModuleDesignerComponent),
|
19
|
+
},
|
20
|
+
],
|
21
|
+
},
|
22
|
+
];
|
7
23
|
class AXMApplicationManagementModule {
|
8
|
-
static
|
9
|
-
|
10
|
-
|
24
|
+
static forRoot() {
|
25
|
+
return {
|
26
|
+
ngModule: AXMApplicationManagementModule,
|
27
|
+
providers: [
|
28
|
+
{
|
29
|
+
provide: 'AXP_REGISTER_MODULES_ENTITIES',
|
30
|
+
useFactory: async (entityRegistry, injector) => {
|
31
|
+
const modulesEntity = await (await Promise.resolve().then(function () { return modules_entity; })).modulesEntityFactory(injector);
|
32
|
+
entityRegistry.register(modulesEntity);
|
33
|
+
//
|
34
|
+
const entityEntity = await (await Promise.resolve().then(function () { return entity_entity; })).entityEntityFactory(injector);
|
35
|
+
entityRegistry.register(entityEntity);
|
36
|
+
//
|
37
|
+
const permissionEntity = await (await Promise.resolve().then(function () { return permission_entity; })).permissionEntityFactory(injector);
|
38
|
+
entityRegistry.register(permissionEntity);
|
39
|
+
//
|
40
|
+
const featureEntity = await (await Promise.resolve().then(function () { return feature_entity; })).featureEntityFactory(injector);
|
41
|
+
entityRegistry.register(featureEntity);
|
42
|
+
},
|
43
|
+
deps: [AXPEntityDefinitionRegistryService, Injector], // Add any dependencies if needed
|
44
|
+
},
|
45
|
+
],
|
46
|
+
};
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* @ignore
|
50
|
+
*/
|
51
|
+
constructor(instances) { }
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationManagementModule, deps: [{ token: 'AXP_REGISTER_MODULES_ENTITIES', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
53
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationManagementModule, imports: [i1.RouterModule] }); }
|
54
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationManagementModule, imports: [RouterModule.forChild(routes)] }); }
|
11
55
|
}
|
12
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationManagementModule, decorators: [{
|
13
57
|
type: NgModule,
|
14
58
|
args: [{
|
15
|
-
imports: [],
|
59
|
+
imports: [RouterModule.forChild(routes)],
|
16
60
|
exports: [],
|
17
61
|
declarations: [],
|
18
62
|
}]
|
19
|
-
}]
|
63
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
64
|
+
type: Optional
|
65
|
+
}, {
|
66
|
+
type: Inject,
|
67
|
+
args: ['AXP_REGISTER_MODULES_ENTITIES']
|
68
|
+
}] }] });
|
20
69
|
|
21
70
|
const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
|
22
71
|
const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
|
@@ -128,6 +177,9 @@ class AXPApplicationManagementService {
|
|
128
177
|
this._entityDataProvider = new AXPEntityDataProviderImpl(storageService, 'entities');
|
129
178
|
this._entityDataProvider.initial(ENTITIES);
|
130
179
|
//
|
180
|
+
this._propertyDataProvider = new AXPEntityDataProviderImpl(storageService, 'properties');
|
181
|
+
this._propertyDataProvider.initial([]);
|
182
|
+
//
|
131
183
|
this._permissionDataProvider = new AXPEntityDataProviderImpl(storageService, 'permissions');
|
132
184
|
this._permissionDataProvider.initial(PERMISSIONS);
|
133
185
|
}
|
@@ -149,6 +201,9 @@ class AXPApplicationManagementService {
|
|
149
201
|
get entityDataProvider() {
|
150
202
|
return this._entityDataProvider;
|
151
203
|
}
|
204
|
+
get propertyDataProvider() {
|
205
|
+
return this._propertyDataProvider;
|
206
|
+
}
|
152
207
|
get permissionDataProvider() {
|
153
208
|
return this._permissionDataProvider;
|
154
209
|
}
|
@@ -740,7 +795,7 @@ async function applicationEntityFactory(injector) {
|
|
740
795
|
|
741
796
|
async function editionEntityFactory(injector) {
|
742
797
|
const dataService = injector.get(AXPApplicationManagementService);
|
743
|
-
const
|
798
|
+
const entityDef = {
|
744
799
|
module: 'application-management',
|
745
800
|
name: 'edition',
|
746
801
|
source: 'application-management.edition',
|
@@ -782,7 +837,7 @@ async function editionEntityFactory(injector) {
|
|
782
837
|
{
|
783
838
|
name: 'isArchived',
|
784
839
|
title: 'Archived',
|
785
|
-
groupId: '
|
840
|
+
groupId: 'edition',
|
786
841
|
schema: {
|
787
842
|
dataType: 'boolean',
|
788
843
|
interface: {
|
@@ -847,7 +902,7 @@ async function editionEntityFactory(injector) {
|
|
847
902
|
create: {
|
848
903
|
sections: [
|
849
904
|
{
|
850
|
-
id: '
|
905
|
+
id: 'edition',
|
851
906
|
},
|
852
907
|
],
|
853
908
|
properties: [
|
@@ -886,7 +941,7 @@ async function editionEntityFactory(injector) {
|
|
886
941
|
update: {
|
887
942
|
sections: [
|
888
943
|
{
|
889
|
-
id: '
|
944
|
+
id: 'edition',
|
890
945
|
},
|
891
946
|
],
|
892
947
|
properties: [
|
@@ -926,7 +981,7 @@ async function editionEntityFactory(injector) {
|
|
926
981
|
title: '{{title}}',
|
927
982
|
sections: [
|
928
983
|
{
|
929
|
-
id: '
|
984
|
+
id: 'edition',
|
930
985
|
layout: {
|
931
986
|
positions: {
|
932
987
|
lg: {
|
@@ -1015,7 +1070,7 @@ async function editionEntityFactory(injector) {
|
|
1015
1070
|
},
|
1016
1071
|
},
|
1017
1072
|
};
|
1018
|
-
return
|
1073
|
+
return entityDef;
|
1019
1074
|
}
|
1020
1075
|
|
1021
1076
|
async function entityEntityFactory(injector) {
|
@@ -1298,6 +1353,11 @@ async function entityEntityFactory(injector) {
|
|
1298
1353
|
return entityDef;
|
1299
1354
|
}
|
1300
1355
|
|
1356
|
+
var entity_entity = /*#__PURE__*/Object.freeze({
|
1357
|
+
__proto__: null,
|
1358
|
+
entityEntityFactory: entityEntityFactory
|
1359
|
+
});
|
1360
|
+
|
1301
1361
|
async function featureEntityFactory(injector) {
|
1302
1362
|
const dataService = injector.get(AXPApplicationManagementService);
|
1303
1363
|
const EntityDef = {
|
@@ -1578,6 +1638,11 @@ async function featureEntityFactory(injector) {
|
|
1578
1638
|
return EntityDef;
|
1579
1639
|
}
|
1580
1640
|
|
1641
|
+
var feature_entity = /*#__PURE__*/Object.freeze({
|
1642
|
+
__proto__: null,
|
1643
|
+
featureEntityFactory: featureEntityFactory
|
1644
|
+
});
|
1645
|
+
|
1581
1646
|
async function modulesEntityFactory(injector) {
|
1582
1647
|
const dataService = injector.get(AXPApplicationManagementService);
|
1583
1648
|
const entityDef = {
|
@@ -1591,7 +1656,7 @@ async function modulesEntityFactory(injector) {
|
|
1591
1656
|
},
|
1592
1657
|
relatedEntities: [
|
1593
1658
|
{
|
1594
|
-
entity: 'application-management.
|
1659
|
+
entity: 'application-management.entity',
|
1595
1660
|
columns: ['module.title', 'name', 'title', 'isArchived'],
|
1596
1661
|
conditions: [
|
1597
1662
|
{
|
@@ -1604,7 +1669,7 @@ async function modulesEntityFactory(injector) {
|
|
1604
1669
|
],
|
1605
1670
|
},
|
1606
1671
|
{
|
1607
|
-
entity: 'application-management.
|
1672
|
+
entity: 'application-management.feature',
|
1608
1673
|
columns: ['module.title', 'name', 'title', 'isArchived'],
|
1609
1674
|
conditions: [
|
1610
1675
|
{
|
@@ -1898,6 +1963,11 @@ async function modulesEntityFactory(injector) {
|
|
1898
1963
|
return entityDef;
|
1899
1964
|
}
|
1900
1965
|
|
1966
|
+
var modules_entity = /*#__PURE__*/Object.freeze({
|
1967
|
+
__proto__: null,
|
1968
|
+
modulesEntityFactory: modulesEntityFactory
|
1969
|
+
});
|
1970
|
+
|
1901
1971
|
async function permissionEntityFactory(injector) {
|
1902
1972
|
const dataService = injector.get(AXPApplicationManagementService);
|
1903
1973
|
const entityDef = {
|
@@ -2178,9 +2248,462 @@ async function permissionEntityFactory(injector) {
|
|
2178
2248
|
return entityDef;
|
2179
2249
|
}
|
2180
2250
|
|
2251
|
+
var permission_entity = /*#__PURE__*/Object.freeze({
|
2252
|
+
__proto__: null,
|
2253
|
+
permissionEntityFactory: permissionEntityFactory
|
2254
|
+
});
|
2255
|
+
|
2256
|
+
async function propertyEntityFactory(injector) {
|
2257
|
+
const dataService = injector.get(AXPApplicationManagementService);
|
2258
|
+
const entityDef = {
|
2259
|
+
module: 'application-management',
|
2260
|
+
name: 'property',
|
2261
|
+
source: 'application-management.property',
|
2262
|
+
title: 'Properties',
|
2263
|
+
formats: {
|
2264
|
+
individual: 'Property',
|
2265
|
+
plural: 'Properties',
|
2266
|
+
},
|
2267
|
+
relatedEntities: [],
|
2268
|
+
groups: [
|
2269
|
+
{
|
2270
|
+
id: 'property',
|
2271
|
+
title: 'Property',
|
2272
|
+
},
|
2273
|
+
{
|
2274
|
+
id: 'schema',
|
2275
|
+
title: 'Schema',
|
2276
|
+
},
|
2277
|
+
{
|
2278
|
+
id: 'interface',
|
2279
|
+
title: 'Interface',
|
2280
|
+
},
|
2281
|
+
],
|
2282
|
+
properties: [
|
2283
|
+
{
|
2284
|
+
name: 'name',
|
2285
|
+
title: 'Name',
|
2286
|
+
groupId: 'property',
|
2287
|
+
schema: {
|
2288
|
+
dataType: 'string',
|
2289
|
+
interface: {
|
2290
|
+
type: AXPWidgetsCatalog.text,
|
2291
|
+
},
|
2292
|
+
},
|
2293
|
+
},
|
2294
|
+
{
|
2295
|
+
name: 'title',
|
2296
|
+
title: 'Title',
|
2297
|
+
groupId: 'property',
|
2298
|
+
schema: {
|
2299
|
+
dataType: 'string',
|
2300
|
+
interface: {
|
2301
|
+
type: AXPWidgetsCatalog.text,
|
2302
|
+
},
|
2303
|
+
},
|
2304
|
+
},
|
2305
|
+
{
|
2306
|
+
name: 'groupId',
|
2307
|
+
title: 'group Id',
|
2308
|
+
groupId: 'property',
|
2309
|
+
schema: {
|
2310
|
+
dataType: 'string',
|
2311
|
+
interface: {
|
2312
|
+
type: AXPWidgetsCatalog.text,
|
2313
|
+
},
|
2314
|
+
},
|
2315
|
+
},
|
2316
|
+
{
|
2317
|
+
name: 'schema.dataType',
|
2318
|
+
title: 'Data Type',
|
2319
|
+
groupId: 'schema',
|
2320
|
+
schema: {
|
2321
|
+
dataType: 'string',
|
2322
|
+
interface: {
|
2323
|
+
type: AXPWidgetsCatalog.text,
|
2324
|
+
},
|
2325
|
+
},
|
2326
|
+
},
|
2327
|
+
{
|
2328
|
+
name: 'schema.defaultValue',
|
2329
|
+
title: 'Default Value',
|
2330
|
+
groupId: 'schema',
|
2331
|
+
schema: {
|
2332
|
+
dataType: 'string',
|
2333
|
+
interface: {
|
2334
|
+
type: AXPWidgetsCatalog.text,
|
2335
|
+
},
|
2336
|
+
},
|
2337
|
+
},
|
2338
|
+
{
|
2339
|
+
name: 'schema.nullable',
|
2340
|
+
title: 'Nullable',
|
2341
|
+
groupId: 'schema',
|
2342
|
+
schema: {
|
2343
|
+
dataType: 'boolean',
|
2344
|
+
interface: {
|
2345
|
+
type: AXPWidgetsCatalog.toggle,
|
2346
|
+
},
|
2347
|
+
},
|
2348
|
+
},
|
2349
|
+
{
|
2350
|
+
name: 'schema.interface.type',
|
2351
|
+
title: 'Data Type',
|
2352
|
+
groupId: 'interface',
|
2353
|
+
schema: {
|
2354
|
+
dataType: 'string',
|
2355
|
+
interface: {
|
2356
|
+
type: AXPWidgetsCatalog.select,
|
2357
|
+
options: {
|
2358
|
+
dataSource: Object.values(AXPWidgetsCatalog),
|
2359
|
+
},
|
2360
|
+
},
|
2361
|
+
},
|
2362
|
+
},
|
2363
|
+
],
|
2364
|
+
columns: [
|
2365
|
+
{ name: 'name' },
|
2366
|
+
{ name: 'title' },
|
2367
|
+
{ name: 'groupId' },
|
2368
|
+
{ name: 'schema.dataType' },
|
2369
|
+
{ name: 'schema.defaultValue' },
|
2370
|
+
{ name: 'schema.defaultValue' },
|
2371
|
+
{ name: 'schema.nullable' },
|
2372
|
+
{ name: 'schema.interface.type' },
|
2373
|
+
],
|
2374
|
+
commands: {
|
2375
|
+
create: {
|
2376
|
+
execute: async (data) => {
|
2377
|
+
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
2378
|
+
dataService.propertyDataProvider.insertOne(entity);
|
2379
|
+
return Promise.resolve(entity);
|
2380
|
+
},
|
2381
|
+
},
|
2382
|
+
delete: {
|
2383
|
+
execute: async (id) => {
|
2384
|
+
await await dataService.propertyDataProvider.deleteOne(id);
|
2385
|
+
return Promise.resolve();
|
2386
|
+
},
|
2387
|
+
},
|
2388
|
+
update: {
|
2389
|
+
execute: async (data) => {
|
2390
|
+
return new Promise((resolve) => {
|
2391
|
+
setTimeout(async () => {
|
2392
|
+
await dataService.propertyDataProvider.updateOne(data.id, data);
|
2393
|
+
resolve(data);
|
2394
|
+
}, 1000);
|
2395
|
+
});
|
2396
|
+
},
|
2397
|
+
},
|
2398
|
+
},
|
2399
|
+
queries: {
|
2400
|
+
byKey: {
|
2401
|
+
execute: async (id) => {
|
2402
|
+
return new Promise((resolve) => {
|
2403
|
+
setTimeout(async () => {
|
2404
|
+
const entity = await dataService.propertyDataProvider.getOne(id);
|
2405
|
+
resolve(entity);
|
2406
|
+
}, 500);
|
2407
|
+
});
|
2408
|
+
},
|
2409
|
+
type: AXPEntityQueryType.Single,
|
2410
|
+
},
|
2411
|
+
list: {
|
2412
|
+
execute: async (e) => {
|
2413
|
+
const list = await dataService.propertyDataProvider.getAll();
|
2414
|
+
const sortedItems = applySortArray(list, e.sort);
|
2415
|
+
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
2416
|
+
return Promise.resolve({
|
2417
|
+
total: filteredItems.length,
|
2418
|
+
items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
|
2419
|
+
});
|
2420
|
+
},
|
2421
|
+
type: AXPEntityQueryType.List,
|
2422
|
+
},
|
2423
|
+
},
|
2424
|
+
interfaces: {
|
2425
|
+
master: {
|
2426
|
+
create: {
|
2427
|
+
sections: [
|
2428
|
+
{
|
2429
|
+
id: 'property',
|
2430
|
+
},
|
2431
|
+
{
|
2432
|
+
id: 'schema',
|
2433
|
+
},
|
2434
|
+
{
|
2435
|
+
id: 'interface',
|
2436
|
+
},
|
2437
|
+
],
|
2438
|
+
properties: [
|
2439
|
+
{
|
2440
|
+
name: 'name',
|
2441
|
+
layout: {
|
2442
|
+
positions: {
|
2443
|
+
lg: {
|
2444
|
+
colSpan: 6,
|
2445
|
+
},
|
2446
|
+
},
|
2447
|
+
},
|
2448
|
+
},
|
2449
|
+
{
|
2450
|
+
name: 'title',
|
2451
|
+
layout: {
|
2452
|
+
positions: {
|
2453
|
+
lg: {
|
2454
|
+
colSpan: 6,
|
2455
|
+
},
|
2456
|
+
},
|
2457
|
+
},
|
2458
|
+
},
|
2459
|
+
{
|
2460
|
+
name: 'groupId',
|
2461
|
+
layout: {
|
2462
|
+
positions: {
|
2463
|
+
lg: {
|
2464
|
+
colSpan: 12,
|
2465
|
+
},
|
2466
|
+
},
|
2467
|
+
},
|
2468
|
+
},
|
2469
|
+
{
|
2470
|
+
name: 'schema.defaultValue',
|
2471
|
+
layout: {
|
2472
|
+
positions: {
|
2473
|
+
lg: {
|
2474
|
+
colSpan: 6,
|
2475
|
+
},
|
2476
|
+
},
|
2477
|
+
},
|
2478
|
+
},
|
2479
|
+
{
|
2480
|
+
name: 'schema.nullable',
|
2481
|
+
layout: {
|
2482
|
+
positions: {
|
2483
|
+
lg: {
|
2484
|
+
colSpan: 6,
|
2485
|
+
},
|
2486
|
+
},
|
2487
|
+
},
|
2488
|
+
},
|
2489
|
+
{
|
2490
|
+
name: 'schema.interface.type',
|
2491
|
+
layout: {
|
2492
|
+
positions: {
|
2493
|
+
lg: {
|
2494
|
+
colSpan: 12,
|
2495
|
+
},
|
2496
|
+
},
|
2497
|
+
},
|
2498
|
+
},
|
2499
|
+
],
|
2500
|
+
},
|
2501
|
+
update: {
|
2502
|
+
sections: [
|
2503
|
+
{
|
2504
|
+
id: 'property',
|
2505
|
+
},
|
2506
|
+
{
|
2507
|
+
id: 'schema',
|
2508
|
+
},
|
2509
|
+
{
|
2510
|
+
id: 'interface',
|
2511
|
+
},
|
2512
|
+
],
|
2513
|
+
properties: [
|
2514
|
+
{
|
2515
|
+
name: 'name',
|
2516
|
+
layout: {
|
2517
|
+
positions: {
|
2518
|
+
lg: {
|
2519
|
+
colSpan: 6,
|
2520
|
+
},
|
2521
|
+
},
|
2522
|
+
},
|
2523
|
+
},
|
2524
|
+
{
|
2525
|
+
name: 'title',
|
2526
|
+
layout: {
|
2527
|
+
positions: {
|
2528
|
+
lg: {
|
2529
|
+
colSpan: 6,
|
2530
|
+
},
|
2531
|
+
},
|
2532
|
+
},
|
2533
|
+
},
|
2534
|
+
{
|
2535
|
+
name: 'groupId',
|
2536
|
+
layout: {
|
2537
|
+
positions: {
|
2538
|
+
lg: {
|
2539
|
+
colSpan: 12,
|
2540
|
+
},
|
2541
|
+
},
|
2542
|
+
},
|
2543
|
+
},
|
2544
|
+
{
|
2545
|
+
name: 'schema.defaultValue',
|
2546
|
+
layout: {
|
2547
|
+
positions: {
|
2548
|
+
lg: {
|
2549
|
+
colSpan: 6,
|
2550
|
+
},
|
2551
|
+
},
|
2552
|
+
},
|
2553
|
+
},
|
2554
|
+
{
|
2555
|
+
name: 'schema.nullable',
|
2556
|
+
layout: {
|
2557
|
+
positions: {
|
2558
|
+
lg: {
|
2559
|
+
colSpan: 6,
|
2560
|
+
},
|
2561
|
+
},
|
2562
|
+
},
|
2563
|
+
},
|
2564
|
+
{
|
2565
|
+
name: 'schema.interface.type',
|
2566
|
+
layout: {
|
2567
|
+
positions: {
|
2568
|
+
lg: {
|
2569
|
+
colSpan: 6,
|
2570
|
+
},
|
2571
|
+
},
|
2572
|
+
},
|
2573
|
+
},
|
2574
|
+
],
|
2575
|
+
},
|
2576
|
+
single: {
|
2577
|
+
title: '{{title}}',
|
2578
|
+
sections: [
|
2579
|
+
{
|
2580
|
+
id: 'property',
|
2581
|
+
},
|
2582
|
+
{
|
2583
|
+
id: 'schema',
|
2584
|
+
},
|
2585
|
+
{
|
2586
|
+
id: 'interface',
|
2587
|
+
},
|
2588
|
+
],
|
2589
|
+
properties: [
|
2590
|
+
{
|
2591
|
+
name: 'name',
|
2592
|
+
layout: {
|
2593
|
+
positions: {
|
2594
|
+
lg: {
|
2595
|
+
colSpan: 6,
|
2596
|
+
},
|
2597
|
+
},
|
2598
|
+
},
|
2599
|
+
},
|
2600
|
+
{
|
2601
|
+
name: 'title',
|
2602
|
+
layout: {
|
2603
|
+
positions: {
|
2604
|
+
lg: {
|
2605
|
+
colSpan: 6,
|
2606
|
+
},
|
2607
|
+
},
|
2608
|
+
},
|
2609
|
+
},
|
2610
|
+
{
|
2611
|
+
name: 'groupId',
|
2612
|
+
layout: {
|
2613
|
+
positions: {
|
2614
|
+
lg: {
|
2615
|
+
colSpan: 12,
|
2616
|
+
},
|
2617
|
+
},
|
2618
|
+
},
|
2619
|
+
},
|
2620
|
+
{
|
2621
|
+
name: 'schema.defaultValue',
|
2622
|
+
layout: {
|
2623
|
+
positions: {
|
2624
|
+
lg: {
|
2625
|
+
colSpan: 6,
|
2626
|
+
},
|
2627
|
+
},
|
2628
|
+
},
|
2629
|
+
},
|
2630
|
+
{
|
2631
|
+
name: 'schema.nullable',
|
2632
|
+
layout: {
|
2633
|
+
positions: {
|
2634
|
+
lg: {
|
2635
|
+
colSpan: 6,
|
2636
|
+
},
|
2637
|
+
},
|
2638
|
+
},
|
2639
|
+
},
|
2640
|
+
{
|
2641
|
+
name: 'schema.interface.type',
|
2642
|
+
layout: {
|
2643
|
+
positions: {
|
2644
|
+
lg: {
|
2645
|
+
colSpan: 6,
|
2646
|
+
},
|
2647
|
+
},
|
2648
|
+
},
|
2649
|
+
},
|
2650
|
+
],
|
2651
|
+
actions: [],
|
2652
|
+
},
|
2653
|
+
list: {
|
2654
|
+
actions: [
|
2655
|
+
{
|
2656
|
+
title: 'Create New',
|
2657
|
+
command: 'create-entity',
|
2658
|
+
priority: 'primary',
|
2659
|
+
type: 'create',
|
2660
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
2661
|
+
},
|
2662
|
+
{
|
2663
|
+
title: 'Delete Items',
|
2664
|
+
command: 'delete-entity',
|
2665
|
+
priority: 'primary',
|
2666
|
+
type: 'delete',
|
2667
|
+
scope: AXPEntityCommandScope.Selected,
|
2668
|
+
},
|
2669
|
+
{
|
2670
|
+
title: 'Details',
|
2671
|
+
command: 'open-entity',
|
2672
|
+
priority: 'primary',
|
2673
|
+
type: 'view',
|
2674
|
+
scope: AXPEntityCommandScope.Individual,
|
2675
|
+
},
|
2676
|
+
{
|
2677
|
+
title: 'Delete',
|
2678
|
+
command: 'delete-entity',
|
2679
|
+
priority: 'primary',
|
2680
|
+
type: 'delete',
|
2681
|
+
scope: AXPEntityCommandScope.Individual,
|
2682
|
+
},
|
2683
|
+
],
|
2684
|
+
views: [
|
2685
|
+
{
|
2686
|
+
name: 'all',
|
2687
|
+
title: 'All Items',
|
2688
|
+
fixed: true,
|
2689
|
+
columns: [],
|
2690
|
+
conditions: [],
|
2691
|
+
sorts: [],
|
2692
|
+
},
|
2693
|
+
],
|
2694
|
+
},
|
2695
|
+
},
|
2696
|
+
},
|
2697
|
+
};
|
2698
|
+
return entityDef;
|
2699
|
+
}
|
2700
|
+
|
2701
|
+
class AXPModuleDesignerService {
|
2702
|
+
}
|
2703
|
+
|
2181
2704
|
/**
|
2182
2705
|
* Generated bundle index. Do not edit.
|
2183
2706
|
*/
|
2184
2707
|
|
2185
|
-
export { AXMApplicationManagementModule, AXPApplicationManagementService, applicationEntityFactory, applicationModuleEntityFactory, editionEntityFactory, entityEntityFactory, featureEntityFactory, modulesEntityFactory, permissionEntityFactory };
|
2708
|
+
export { AXMApplicationManagementModule, AXPApplicationManagementService, AXPModuleDesignerService, applicationEntityFactory, applicationModuleEntityFactory, editionEntityFactory, entityEntityFactory, featureEntityFactory, modulesEntityFactory, permissionEntityFactory, propertyEntityFactory, routes };
|
2186
2709
|
//# sourceMappingURL=acorex-modules-application-management.mjs.map
|