@acorex/modules 18.1.4 → 18.1.6
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 +2 -0
- package/application-management/lib/application-management.module.d.ts +0 -2
- package/application-management/lib/application-management.route.d.ts +2 -0
- package/application-management/lib/application-management.service.d.ts +18 -0
- package/application-management/lib/application-management.source.d.ts +7 -0
- package/application-management/lib/application-management.types.d.ts +50 -0
- package/application-management/lib/entity.loader.d.ts +9 -0
- package/application-management/lib/menu.provider.d.ts +4 -0
- package/auth/lib/auth.module.d.ts +4 -7
- package/auth/lib/menu.provider.d.ts +4 -0
- package/backend/lib/data/api/data-provider.d.ts +1 -0
- package/backend/lib/data/index.d.ts +0 -1
- package/backend/lib/data/local/local-data-provider.d.ts +1 -0
- package/esm2022/application-management/index.mjs +3 -1
- package/esm2022/application-management/lib/application-management.module.mjs +17 -47
- package/esm2022/application-management/lib/application-management.route.mjs +29 -0
- package/esm2022/application-management/lib/application-management.service.mjs +19 -3
- package/esm2022/application-management/lib/application-management.source.mjs +8 -0
- package/esm2022/application-management/lib/application-management.types.mjs +2 -0
- package/esm2022/application-management/lib/entities/property.entity.mjs +1 -2
- package/esm2022/application-management/lib/entity.loader.mjs +46 -0
- package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +3 -3
- package/esm2022/application-management/lib/menu.provider.mjs +24 -0
- package/esm2022/application-management/lib/module-designer/module-designer.component.mjs +1 -1
- package/esm2022/auth/lib/account/app-chooser/app-chooser-slot.component.mjs +2 -2
- package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +7 -4
- package/esm2022/auth/lib/auth.module.mjs +20 -14
- package/esm2022/auth/lib/login/password/password.component.mjs +2 -2
- package/esm2022/auth/lib/menu.provider.mjs +45 -0
- package/esm2022/backend/lib/backend.module.mjs +22 -16
- package/esm2022/backend/lib/data/api/data-provider.mjs +9 -1
- package/esm2022/backend/lib/data/index.mjs +1 -2
- package/esm2022/backend/lib/data/local/local-data-provider.mjs +11 -1
- package/esm2022/form-management/lib/form-management.module.mjs +32 -8
- package/esm2022/form-management/lib/menu.provider.mjs +29 -0
- package/esm2022/notification-management/index.mjs +6 -1
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +39 -0
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.mjs +155 -0
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +36 -0
- package/esm2022/notification-management/lib/entities/my-notification.mjs +243 -0
- package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +18 -3
- package/esm2022/notification-management/lib/entities/notification-log.entity.mjs +180 -0
- package/esm2022/notification-management/lib/entities/notification.entity.mjs +207 -0
- package/esm2022/notification-management/lib/entity.loader.mjs +41 -0
- package/esm2022/notification-management/lib/menu.provider.mjs +51 -0
- package/esm2022/notification-management/lib/notification-management-mock-data.mjs +41 -6
- package/esm2022/notification-management/lib/notification-management.module.mjs +53 -36
- package/esm2022/notification-management/lib/notification-management.service.mjs +21 -12
- package/esm2022/notification-management/lib/notification-management.type.mjs +2 -0
- package/esm2022/notification-management/lib/notification.service.mjs +3 -0
- package/esm2022/platform-management/acorex-modules-platform-management.mjs +5 -0
- package/esm2022/platform-management/index.mjs +5 -0
- package/esm2022/platform-management/lib/comments/comment-management.service.mjs +18 -0
- package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +295 -0
- package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +26 -0
- package/esm2022/platform-management/lib/global-variables/global-variables.service.mjs +16 -0
- package/esm2022/platform-management/lib/global-variables/global-variables.types.mjs +2 -0
- package/esm2022/platform-management/lib/global-variables/index.mjs +5 -0
- package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +234 -0
- package/esm2022/platform-management/lib/languages/entity.loader.mjs +26 -0
- package/esm2022/platform-management/lib/languages/index.mjs +5 -0
- package/esm2022/platform-management/lib/languages/language-management.service.mjs +16 -0
- package/esm2022/platform-management/lib/languages/language.types.mjs +2 -0
- package/esm2022/platform-management/lib/menu.provider.mjs +46 -0
- package/esm2022/platform-management/lib/platform-management.module.mjs +82 -0
- package/esm2022/template-management/index.mjs +7 -3
- package/esm2022/template-management/lib/entities/category.entity.mjs +233 -0
- package/esm2022/template-management/lib/entities/index.mjs +4 -0
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +113 -110
- package/esm2022/template-management/lib/entities/text-template.entity.mjs +385 -0
- package/esm2022/template-management/lib/entity.loader.mjs +36 -0
- package/esm2022/template-management/lib/menu.provider.mjs +37 -0
- package/esm2022/template-management/lib/template-management.module.mjs +53 -37
- package/esm2022/template-management/lib/template-management.types.mjs +2 -0
- package/esm2022/template-management/lib/template.service.mjs +17 -0
- package/esm2022/template-management/lib/text-management.source.mjs +3 -0
- package/esm2022/template-management/lib/text-template-category.service.mjs +17 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-C-lY0Apl.mjs → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs} +3 -3
- package/fesm2022/{acorex-modules-application-management-module-designer.component-C-lY0Apl.mjs.map → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +141 -51
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-4OzzidjS.mjs → acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs} +79 -25
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-CHTEeWgx.mjs → acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-CHTEeWgx.mjs.map → acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-blank.layout-Bq822Iz4.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-DMit4yw0.mjs → acorex-modules-auth-login.module-A7u1YYeo.mjs} +4 -4
- package/fesm2022/acorex-modules-auth-login.module-A7u1YYeo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-master.layout-BCYIjTB0.mjs → acorex-modules-auth-master.layout--UllrmW0.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-BCYIjTB0.mjs.map → acorex-modules-auth-master.layout--UllrmW0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-D16ms36y.mjs → acorex-modules-auth-password.component-BjqQ-qVo.mjs} +3 -3
- package/fesm2022/acorex-modules-auth-password.component-BjqQ-qVo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-WA-CA0Ln.mjs → acorex-modules-auth-password.component-Dv0VXzh_.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-WA-CA0Ln.mjs.map → acorex-modules-auth-password.component-Dv0VXzh_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-C3ye31RS.mjs → acorex-modules-auth-routes-C4eNPru3.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-C3ye31RS.mjs.map → acorex-modules-auth-routes-C4eNPru3.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CHr5_kh7.mjs.map +1 -1
- package/fesm2022/acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-CkZCBo0B.mjs → acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-backend.mjs +40 -155
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-management.mjs +57 -5
- package/fesm2022/acorex-modules-form-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1102 -101
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +752 -0
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-template-management.mjs +600 -194
- package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
- package/form-management/lib/form-management.module.d.ts +2 -1
- package/form-management/lib/menu.provider.d.ts +4 -0
- package/notification-management/index.d.ts +5 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.d.ts +10 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.d.ts +35 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.d.ts +7 -0
- package/{template-management/lib/entities/global-template.entity.d.ts → notification-management/lib/entities/my-notification.d.ts} +1 -1
- package/notification-management/lib/entities/notification-log.entity.d.ts +3 -0
- package/notification-management/lib/entities/notification.entity.d.ts +3 -0
- package/notification-management/lib/entity.loader.d.ts +9 -0
- package/notification-management/lib/menu.provider.d.ts +4 -0
- package/notification-management/lib/notification-management-mock-data.d.ts +33 -6
- package/notification-management/lib/notification-management.module.d.ts +5 -10
- package/notification-management/lib/notification-management.service.d.ts +8 -4
- package/notification-management/lib/notification-management.type.d.ts +42 -0
- package/notification-management/lib/notification.service.d.ts +6 -0
- package/package.json +6 -6
- package/platform-management/README.md +4 -0
- package/platform-management/index.d.ts +4 -0
- package/platform-management/lib/comments/comment-management.service.d.ts +10 -0
- package/platform-management/lib/global-variables/entities/global-variable.entity.d.ts +3 -0
- package/platform-management/lib/global-variables/entity.loader.d.ts +9 -0
- package/platform-management/lib/global-variables/global-variables.service.d.ts +10 -0
- package/platform-management/lib/global-variables/global-variables.types.d.ts +7 -0
- package/platform-management/lib/global-variables/index.d.ts +4 -0
- package/platform-management/lib/languages/entities/language.entity.d.ts +3 -0
- package/platform-management/lib/languages/entity.loader.d.ts +9 -0
- package/platform-management/lib/languages/index.d.ts +4 -0
- package/platform-management/lib/languages/language-management.service.d.ts +10 -0
- package/platform-management/lib/languages/language.types.d.ts +5 -0
- package/platform-management/lib/menu.provider.d.ts +4 -0
- package/platform-management/lib/platform-management.module.d.ts +6 -0
- package/template-management/index.d.ts +6 -2
- package/template-management/lib/entities/category.entity.d.ts +3 -0
- package/template-management/lib/entities/index.d.ts +3 -0
- package/template-management/lib/entities/template-variable.entity.d.ts +1 -1
- package/template-management/lib/entities/text-template.entity.d.ts +3 -0
- package/template-management/lib/entity.loader.d.ts +9 -0
- package/template-management/lib/menu.provider.d.ts +4 -0
- package/template-management/lib/template-management.module.d.ts +4 -10
- package/template-management/lib/template-management.types.d.ts +19 -0
- package/template-management/lib/template.service.d.ts +10 -0
- package/template-management/lib/text-management.source.d.ts +2 -0
- package/template-management/lib/text-template-category.service.d.ts +10 -0
- package/backend/lib/data/api/comment.mock.service.d.ts +0 -62
- package/esm2022/backend/lib/data/api/comment.mock.service.mjs +0 -142
- package/esm2022/notification/acorex-modules-notification.mjs +0 -5
- package/esm2022/notification/index.mjs +0 -4
- package/esm2022/notification/lib/notification.module.mjs +0 -16
- package/esm2022/template-management/lib/entities/global-template.entity.mjs +0 -298
- package/esm2022/template-management/lib/template-management-mock-data.mjs +0 -11
- package/esm2022/template-management/lib/template-management.service.mjs +0 -24
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-4OzzidjS.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-login.module-DMit4yw0.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-D16ms36y.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-two-factor.module-CkZCBo0B.mjs.map +0 -1
- package/fesm2022/acorex-modules-notification.mjs +0 -26
- package/fesm2022/acorex-modules-notification.mjs.map +0 -1
- package/notification/README.md +0 -4
- package/notification/index.d.ts +0 -1
- package/notification/lib/notification.module.d.ts +0 -6
- package/template-management/lib/template-management-mock-data.d.ts +0 -7
- package/template-management/lib/template-management.service.d.ts +0 -9
@@ -1,88 +1,403 @@
|
|
1
|
-
import {
|
1
|
+
import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
2
2
|
import * as i0 from '@angular/core';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { applySortArray, applyFilterArray } from '@acorex/platform/core';
|
3
|
+
import { inject, Injector, Injectable, NgModule } from '@angular/core';
|
4
|
+
import { AXMEntityCrudServiceImpl, AXP_MENU_PROVIDER, AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
|
6
5
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
7
6
|
|
8
|
-
class
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
7
|
+
class AXMTemplateModuleEntityLoader {
|
8
|
+
constructor() {
|
9
|
+
this.injector = inject(Injector);
|
10
|
+
}
|
11
|
+
async get(moduleName, entityName) {
|
12
|
+
return new Promise(async (resolve) => {
|
13
|
+
switch (entityName) {
|
14
|
+
case 'template': {
|
15
|
+
const entity = (await Promise.resolve().then(function () { return textTemplate_entity; })).templateEntityFactory;
|
16
|
+
resolve(entity(this.injector));
|
17
|
+
break;
|
18
|
+
}
|
19
|
+
case 'variable': {
|
20
|
+
const entity = (await Promise.resolve().then(function () { return templateVariable_entity; })).textTemplateVariableEntityFactory;
|
21
|
+
resolve(entity(this.injector));
|
22
|
+
break;
|
23
|
+
}
|
24
|
+
case 'category': {
|
25
|
+
const entity = (await Promise.resolve().then(function () { return category_entity; })).textTemplateCategoryEntityFactory;
|
26
|
+
resolve(entity(this.injector));
|
27
|
+
break;
|
28
|
+
}
|
29
|
+
default:
|
30
|
+
resolve(null);
|
31
|
+
}
|
32
|
+
});
|
33
|
+
}
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
35
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityLoader }); }
|
36
|
+
}
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityLoader, decorators: [{
|
38
|
+
type: Injectable
|
39
|
+
}] });
|
40
|
+
|
41
|
+
const TEMPLATE_SOURCE_NAME = 'template-management.template';
|
42
|
+
const CATEGORY_SOURCE_NAME = 'template-management.category';
|
43
|
+
|
44
|
+
class AXMTextTemplateService extends AXMEntityCrudServiceImpl {
|
45
|
+
}
|
46
|
+
class AXMTextTemplateServiceImpl extends AXMEntityCrudServiceImpl {
|
47
|
+
constructor() {
|
48
|
+
super(TEMPLATE_SOURCE_NAME);
|
49
|
+
}
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
51
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateServiceImpl }); }
|
52
|
+
}
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateServiceImpl, decorators: [{
|
54
|
+
type: Injectable
|
55
|
+
}], ctorParameters: () => [] });
|
56
|
+
|
57
|
+
class AXMTextTemplateCategoryService extends AXMEntityCrudServiceImpl {
|
58
|
+
}
|
59
|
+
class AXMTextTemplateCategoryServiceImpl extends AXMEntityCrudServiceImpl {
|
60
|
+
constructor() {
|
61
|
+
super(CATEGORY_SOURCE_NAME);
|
62
|
+
}
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateCategoryServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
64
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateCategoryServiceImpl }); }
|
65
|
+
}
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateCategoryServiceImpl, decorators: [{
|
67
|
+
type: Injectable
|
68
|
+
}], ctorParameters: () => [] });
|
69
|
+
|
70
|
+
class AXMTextTemplateManagmentModuleMenuProvider {
|
71
|
+
async items() {
|
72
|
+
return [
|
73
|
+
{
|
74
|
+
items: [
|
75
|
+
{
|
76
|
+
priority: 9001,
|
77
|
+
text: 'Text Template Management',
|
78
|
+
icon: 'fa-solid fa-code',
|
79
|
+
data: {
|
80
|
+
// requiredPermission: 'demo.admin.settings',
|
81
|
+
},
|
82
|
+
children: [
|
83
|
+
{
|
84
|
+
text: 'Template',
|
85
|
+
path: '/demo/m/template-management/e/template/list',
|
86
|
+
icon: 'fa-solid fa-file-code',
|
87
|
+
data: {
|
88
|
+
//requiredPermission: '',
|
89
|
+
},
|
90
|
+
},
|
91
|
+
{
|
92
|
+
text: 'Category',
|
93
|
+
path: '/demo/m/template-management/e/category/list',
|
94
|
+
icon: 'fa-solid fa-layer-group',
|
95
|
+
data: {
|
96
|
+
//requiredPermission: '',
|
97
|
+
},
|
98
|
+
},
|
99
|
+
],
|
22
100
|
},
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
};
|
101
|
+
]
|
102
|
+
}
|
103
|
+
];
|
27
104
|
}
|
28
|
-
/**
|
29
|
-
* @ignore
|
30
|
-
*/
|
31
|
-
constructor(instances) { }
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: TemplateManagementModule, deps: [{ token: 'AXP_REGISTER_TEMPLATE_GLOBAL', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
33
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: TemplateManagementModule }); }
|
34
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: TemplateManagementModule }); }
|
35
105
|
}
|
36
|
-
|
106
|
+
|
107
|
+
class AXMTemplateManagementModule {
|
108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
109
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule }); }
|
110
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, providers: [
|
111
|
+
{
|
112
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
113
|
+
useClass: AXMTemplateModuleEntityLoader,
|
114
|
+
multi: true,
|
115
|
+
},
|
116
|
+
{
|
117
|
+
provide: AXP_MENU_PROVIDER,
|
118
|
+
useClass: AXMTextTemplateManagmentModuleMenuProvider,
|
119
|
+
multi: true
|
120
|
+
},
|
121
|
+
{
|
122
|
+
provide: AXMTextTemplateService,
|
123
|
+
useClass: AXMTextTemplateServiceImpl,
|
124
|
+
},
|
125
|
+
{
|
126
|
+
provide: AXMTextTemplateCategoryService,
|
127
|
+
useClass: AXMTextTemplateCategoryServiceImpl,
|
128
|
+
},
|
129
|
+
] }); }
|
130
|
+
}
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, decorators: [{
|
37
132
|
type: NgModule,
|
38
133
|
args: [{
|
39
134
|
imports: [],
|
40
135
|
exports: [],
|
41
136
|
declarations: [],
|
137
|
+
providers: [
|
138
|
+
{
|
139
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
140
|
+
useClass: AXMTemplateModuleEntityLoader,
|
141
|
+
multi: true,
|
142
|
+
},
|
143
|
+
{
|
144
|
+
provide: AXP_MENU_PROVIDER,
|
145
|
+
useClass: AXMTextTemplateManagmentModuleMenuProvider,
|
146
|
+
multi: true
|
147
|
+
},
|
148
|
+
{
|
149
|
+
provide: AXMTextTemplateService,
|
150
|
+
useClass: AXMTextTemplateServiceImpl,
|
151
|
+
},
|
152
|
+
{
|
153
|
+
provide: AXMTextTemplateCategoryService,
|
154
|
+
useClass: AXMTextTemplateCategoryServiceImpl,
|
155
|
+
},
|
156
|
+
],
|
42
157
|
}]
|
43
|
-
}]
|
44
|
-
type: Optional
|
45
|
-
}, {
|
46
|
-
type: Inject,
|
47
|
-
args: ['AXP_REGISTER_TEMPLATE_GLOBAL']
|
48
|
-
}] }] });
|
158
|
+
}] });
|
49
159
|
|
50
|
-
|
51
|
-
const
|
52
|
-
|
53
|
-
|
54
|
-
name:
|
55
|
-
|
56
|
-
|
160
|
+
async function textTemplateCategoryEntityFactory(injector) {
|
161
|
+
const dataService = injector.get(AXMTextTemplateCategoryService);
|
162
|
+
const entityDef = {
|
163
|
+
module: 'template-management',
|
164
|
+
name: 'textTemplateCategory',
|
165
|
+
source: 'template-management.textTemplateCategory',
|
166
|
+
title: 'Category',
|
167
|
+
formats: {
|
168
|
+
individual: 'Category',
|
169
|
+
plural: 'Categories',
|
170
|
+
},
|
171
|
+
relatedEntities: [],
|
172
|
+
groups: [
|
173
|
+
{
|
174
|
+
id: 'category',
|
175
|
+
title: 'Category',
|
176
|
+
},
|
177
|
+
],
|
178
|
+
properties: [
|
179
|
+
{
|
180
|
+
name: 'name',
|
181
|
+
title: 'Name',
|
182
|
+
groupId: 'category',
|
183
|
+
schema: {
|
184
|
+
dataType: 'string',
|
185
|
+
interface: {
|
186
|
+
type: AXPWidgetsCatalog.text,
|
187
|
+
},
|
188
|
+
},
|
189
|
+
},
|
190
|
+
{
|
191
|
+
name: 'title',
|
192
|
+
title: 'Title',
|
193
|
+
groupId: 'category',
|
194
|
+
schema: {
|
195
|
+
dataType: 'string',
|
196
|
+
interface: {
|
197
|
+
type: AXPWidgetsCatalog.text,
|
198
|
+
},
|
199
|
+
},
|
200
|
+
},
|
201
|
+
],
|
202
|
+
columns: [{ name: 'name' }, { name: 'title' }],
|
203
|
+
commands: {
|
204
|
+
create: {
|
205
|
+
execute: async (data) => {
|
206
|
+
return await dataService.insertOne(data);
|
207
|
+
},
|
208
|
+
},
|
209
|
+
delete: {
|
210
|
+
execute: async (id) => {
|
211
|
+
return await dataService.deleteOne(id);
|
212
|
+
},
|
213
|
+
},
|
214
|
+
update: {
|
215
|
+
execute: async (data) => {
|
216
|
+
return new Promise((resolve) => {
|
217
|
+
setTimeout(async () => {
|
218
|
+
await dataService.updateOne(data.id, data);
|
219
|
+
resolve(data);
|
220
|
+
}, 1000);
|
221
|
+
});
|
222
|
+
},
|
223
|
+
},
|
224
|
+
},
|
225
|
+
queries: {
|
226
|
+
byKey: {
|
227
|
+
execute: async (id) => {
|
228
|
+
return new Promise((resolve) => {
|
229
|
+
setTimeout(async () => {
|
230
|
+
const entity = await dataService.getOne(id);
|
231
|
+
resolve(entity);
|
232
|
+
}, 500);
|
233
|
+
});
|
234
|
+
},
|
235
|
+
type: AXPEntityQueryType.Single,
|
236
|
+
},
|
237
|
+
list: {
|
238
|
+
execute: async (e) => {
|
239
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
240
|
+
},
|
241
|
+
type: AXPEntityQueryType.List,
|
242
|
+
},
|
243
|
+
},
|
244
|
+
interfaces: {
|
245
|
+
master: {
|
246
|
+
create: {
|
247
|
+
sections: [
|
248
|
+
{
|
249
|
+
id: 'category',
|
250
|
+
},
|
251
|
+
],
|
252
|
+
properties: [
|
253
|
+
{
|
254
|
+
name: 'name',
|
255
|
+
layout: {
|
256
|
+
positions: {
|
257
|
+
lg: {
|
258
|
+
colSpan: 6,
|
259
|
+
},
|
260
|
+
},
|
261
|
+
},
|
262
|
+
},
|
263
|
+
{
|
264
|
+
name: 'title',
|
265
|
+
layout: {
|
266
|
+
positions: {
|
267
|
+
lg: {
|
268
|
+
colSpan: 6,
|
269
|
+
},
|
270
|
+
},
|
271
|
+
},
|
272
|
+
},
|
273
|
+
],
|
274
|
+
},
|
275
|
+
update: {
|
276
|
+
sections: [
|
277
|
+
{
|
278
|
+
id: 'category',
|
279
|
+
},
|
280
|
+
],
|
281
|
+
properties: [
|
282
|
+
{
|
283
|
+
name: 'name',
|
284
|
+
layout: {
|
285
|
+
positions: {
|
286
|
+
lg: {
|
287
|
+
colSpan: 6,
|
288
|
+
},
|
289
|
+
},
|
290
|
+
},
|
291
|
+
},
|
292
|
+
{
|
293
|
+
name: 'title',
|
294
|
+
layout: {
|
295
|
+
positions: {
|
296
|
+
lg: {
|
297
|
+
colSpan: 6,
|
298
|
+
},
|
299
|
+
},
|
300
|
+
},
|
301
|
+
},
|
302
|
+
],
|
303
|
+
},
|
304
|
+
single: {
|
305
|
+
title: '{{title}}',
|
306
|
+
sections: [
|
307
|
+
{
|
308
|
+
id: 'category',
|
309
|
+
layout: {
|
310
|
+
positions: {
|
311
|
+
lg: {
|
312
|
+
colSpan: 12,
|
313
|
+
},
|
314
|
+
},
|
315
|
+
},
|
316
|
+
},
|
317
|
+
],
|
318
|
+
properties: [
|
319
|
+
{
|
320
|
+
name: 'name',
|
321
|
+
layout: {
|
322
|
+
positions: {
|
323
|
+
lg: {
|
324
|
+
colSpan: 6,
|
325
|
+
},
|
326
|
+
},
|
327
|
+
},
|
328
|
+
},
|
329
|
+
{
|
330
|
+
name: 'title',
|
331
|
+
layout: {
|
332
|
+
positions: {
|
333
|
+
lg: {
|
334
|
+
colSpan: 6,
|
335
|
+
},
|
336
|
+
},
|
337
|
+
},
|
338
|
+
},
|
339
|
+
],
|
340
|
+
actions: [],
|
341
|
+
},
|
342
|
+
list: {
|
343
|
+
actions: [
|
344
|
+
{
|
345
|
+
title: 'Create New',
|
346
|
+
command: 'create-entity',
|
347
|
+
priority: 'primary',
|
348
|
+
type: 'create',
|
349
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
350
|
+
},
|
351
|
+
{
|
352
|
+
title: 'Delete Items',
|
353
|
+
command: 'delete-entity',
|
354
|
+
priority: 'primary',
|
355
|
+
type: 'delete',
|
356
|
+
scope: AXPEntityCommandScope.Selected,
|
357
|
+
},
|
358
|
+
{
|
359
|
+
title: 'Details',
|
360
|
+
command: 'open-entity',
|
361
|
+
priority: 'primary',
|
362
|
+
type: 'view',
|
363
|
+
scope: AXPEntityCommandScope.Individual,
|
364
|
+
},
|
365
|
+
{
|
366
|
+
title: 'Delete',
|
367
|
+
command: 'delete-entity',
|
368
|
+
priority: 'primary',
|
369
|
+
type: 'delete',
|
370
|
+
scope: AXPEntityCommandScope.Individual,
|
371
|
+
},
|
372
|
+
],
|
373
|
+
views: [
|
374
|
+
{
|
375
|
+
name: 'all',
|
376
|
+
title: 'All Items',
|
377
|
+
fixed: true,
|
378
|
+
columns: [],
|
379
|
+
conditions: [],
|
380
|
+
sorts: [],
|
381
|
+
},
|
382
|
+
],
|
383
|
+
},
|
384
|
+
},
|
385
|
+
},
|
57
386
|
};
|
58
|
-
|
59
|
-
|
60
|
-
class TemplateManagementService {
|
61
|
-
constructor(injector) {
|
62
|
-
const storageService = injector.get(AXPStorageService);
|
63
|
-
//
|
64
|
-
this._globalTemplateDataProvider = new AXPEntityDataProviderImpl(storageService, 'globalTemplate');
|
65
|
-
this._globalTemplateDataProvider.initial(GLOBAL_TEMPLATES);
|
66
|
-
}
|
67
|
-
get globalTemplateDataProvider() {
|
68
|
-
return this._globalTemplateDataProvider;
|
69
|
-
}
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: TemplateManagementService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
71
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: TemplateManagementService, providedIn: 'root' }); }
|
387
|
+
return entityDef;
|
72
388
|
}
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: TemplateManagementService, decorators: [{
|
74
|
-
type: Injectable,
|
75
|
-
args: [{
|
76
|
-
providedIn: 'root',
|
77
|
-
}]
|
78
|
-
}], ctorParameters: () => [{ type: i0.Injector }] });
|
79
389
|
|
80
|
-
|
81
|
-
|
390
|
+
var category_entity = /*#__PURE__*/Object.freeze({
|
391
|
+
__proto__: null,
|
392
|
+
textTemplateCategoryEntityFactory: textTemplateCategoryEntityFactory
|
393
|
+
});
|
394
|
+
|
395
|
+
async function templateEntityFactory(injector) {
|
396
|
+
const dataService = injector.get(AXMTextTemplateService);
|
82
397
|
const entityDef = {
|
83
398
|
module: 'template-management',
|
84
|
-
name: '
|
85
|
-
source: 'template
|
399
|
+
name: 'template',
|
400
|
+
source: 'templateManagement.template',
|
86
401
|
title: 'Templates',
|
87
402
|
formats: {
|
88
403
|
individual: 'Template',
|
@@ -90,7 +405,7 @@ async function globalTemplateEntityFactory(injector) {
|
|
90
405
|
},
|
91
406
|
relatedEntities: [
|
92
407
|
{
|
93
|
-
entity: 'template-management.
|
408
|
+
entity: 'template-management.variable',
|
94
409
|
columns: ['name', 'title', 'type', 'requirement'],
|
95
410
|
conditions: [
|
96
411
|
{
|
@@ -143,27 +458,71 @@ async function globalTemplateEntityFactory(injector) {
|
|
143
458
|
},
|
144
459
|
},
|
145
460
|
},
|
461
|
+
{
|
462
|
+
name: 'category.id',
|
463
|
+
title: 'Category',
|
464
|
+
groupId: 'template',
|
465
|
+
schema: {
|
466
|
+
dataType: 'string',
|
467
|
+
interface: {
|
468
|
+
type: AXPWidgetsCatalog.lookup,
|
469
|
+
options: {
|
470
|
+
entity: 'template-management.category',
|
471
|
+
expose: 'category',
|
472
|
+
},
|
473
|
+
},
|
474
|
+
},
|
475
|
+
},
|
476
|
+
{
|
477
|
+
name: 'category.title',
|
478
|
+
title: 'Category Title',
|
479
|
+
groupId: 'template',
|
480
|
+
schema: {
|
481
|
+
dataType: 'string',
|
482
|
+
interface: {
|
483
|
+
type: AXPWidgetsCatalog.text,
|
484
|
+
},
|
485
|
+
},
|
486
|
+
},
|
487
|
+
{
|
488
|
+
name: 'type',
|
489
|
+
title: 'Type',
|
490
|
+
groupId: 'template',
|
491
|
+
schema: {
|
492
|
+
dataType: 'string',
|
493
|
+
interface: {
|
494
|
+
type: AXPWidgetsCatalog.select,
|
495
|
+
options: {
|
496
|
+
valueField: 'name',
|
497
|
+
textField: 'title',
|
498
|
+
dataSource: [
|
499
|
+
{ title: 'Layout', name: 'layout' },
|
500
|
+
{ title: 'Template', name: 'template' },
|
501
|
+
],
|
502
|
+
direction: 'horizontal',
|
503
|
+
multiple: false,
|
504
|
+
},
|
505
|
+
},
|
506
|
+
},
|
507
|
+
},
|
146
508
|
],
|
147
|
-
columns: [{ name: 'name' }, { name: 'title' }],
|
509
|
+
columns: [{ name: 'name' }, { name: 'title' }, { name: 'category.title' }, { name: 'type' }],
|
148
510
|
commands: {
|
149
511
|
create: {
|
150
512
|
execute: async (data) => {
|
151
|
-
|
152
|
-
dataService.globalTemplateDataProvider.insertOne(entity);
|
153
|
-
return Promise.resolve(entity);
|
513
|
+
return await dataService.insertOne(data);
|
154
514
|
},
|
155
515
|
},
|
156
516
|
delete: {
|
157
517
|
execute: async (id) => {
|
158
|
-
|
159
|
-
return Promise.resolve();
|
518
|
+
return await dataService.deleteOne(id);
|
160
519
|
},
|
161
520
|
},
|
162
521
|
update: {
|
163
522
|
execute: async (data) => {
|
164
523
|
return new Promise((resolve) => {
|
165
524
|
setTimeout(async () => {
|
166
|
-
await dataService.
|
525
|
+
await dataService.updateOne(data.id, data);
|
167
526
|
resolve(data);
|
168
527
|
}, 1000);
|
169
528
|
});
|
@@ -175,7 +534,7 @@ async function globalTemplateEntityFactory(injector) {
|
|
175
534
|
execute: async (id) => {
|
176
535
|
return new Promise((resolve) => {
|
177
536
|
setTimeout(async () => {
|
178
|
-
const entity = await dataService.
|
537
|
+
const entity = await dataService.getOne(id);
|
179
538
|
resolve(entity);
|
180
539
|
}, 500);
|
181
540
|
});
|
@@ -184,13 +543,7 @@ async function globalTemplateEntityFactory(injector) {
|
|
184
543
|
},
|
185
544
|
list: {
|
186
545
|
execute: async (e) => {
|
187
|
-
|
188
|
-
const sortedItems = applySortArray(list, e.sort);
|
189
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
190
|
-
return Promise.resolve({
|
191
|
-
total: filteredItems.length,
|
192
|
-
items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
|
193
|
-
});
|
546
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
194
547
|
},
|
195
548
|
type: AXPEntityQueryType.List,
|
196
549
|
},
|
@@ -234,6 +587,26 @@ async function globalTemplateEntityFactory(injector) {
|
|
234
587
|
},
|
235
588
|
},
|
236
589
|
},
|
590
|
+
{
|
591
|
+
name: 'category.id',
|
592
|
+
layout: {
|
593
|
+
positions: {
|
594
|
+
lg: {
|
595
|
+
colSpan: 6,
|
596
|
+
},
|
597
|
+
},
|
598
|
+
},
|
599
|
+
},
|
600
|
+
{
|
601
|
+
name: 'type',
|
602
|
+
layout: {
|
603
|
+
positions: {
|
604
|
+
lg: {
|
605
|
+
colSpan: 6,
|
606
|
+
},
|
607
|
+
},
|
608
|
+
},
|
609
|
+
},
|
237
610
|
],
|
238
611
|
},
|
239
612
|
update: {
|
@@ -273,6 +646,26 @@ async function globalTemplateEntityFactory(injector) {
|
|
273
646
|
},
|
274
647
|
},
|
275
648
|
},
|
649
|
+
{
|
650
|
+
name: 'category.id',
|
651
|
+
layout: {
|
652
|
+
positions: {
|
653
|
+
lg: {
|
654
|
+
colSpan: 6,
|
655
|
+
},
|
656
|
+
},
|
657
|
+
},
|
658
|
+
},
|
659
|
+
{
|
660
|
+
name: 'type',
|
661
|
+
layout: {
|
662
|
+
positions: {
|
663
|
+
lg: {
|
664
|
+
colSpan: 6,
|
665
|
+
},
|
666
|
+
},
|
667
|
+
},
|
668
|
+
},
|
276
669
|
],
|
277
670
|
},
|
278
671
|
single: {
|
@@ -320,6 +713,16 @@ async function globalTemplateEntityFactory(injector) {
|
|
320
713
|
},
|
321
714
|
},
|
322
715
|
},
|
716
|
+
{
|
717
|
+
name: 'type',
|
718
|
+
layout: {
|
719
|
+
positions: {
|
720
|
+
lg: {
|
721
|
+
colSpan: 6,
|
722
|
+
},
|
723
|
+
},
|
724
|
+
},
|
725
|
+
},
|
323
726
|
],
|
324
727
|
actions: [],
|
325
728
|
},
|
@@ -371,28 +774,28 @@ async function globalTemplateEntityFactory(injector) {
|
|
371
774
|
return entityDef;
|
372
775
|
}
|
373
776
|
|
374
|
-
var
|
777
|
+
var textTemplate_entity = /*#__PURE__*/Object.freeze({
|
375
778
|
__proto__: null,
|
376
|
-
|
779
|
+
templateEntityFactory: templateEntityFactory
|
377
780
|
});
|
378
781
|
|
379
|
-
async function
|
380
|
-
const dataService = injector.get(
|
782
|
+
async function textTemplateVariableEntityFactory(injector) {
|
783
|
+
const dataService = injector.get(AXMTextTemplateService);
|
381
784
|
const entityDef = {
|
382
785
|
module: 'template-management',
|
383
|
-
name: '
|
384
|
-
source: 'template-management.
|
385
|
-
title: '
|
786
|
+
name: 'textTemplateVariable',
|
787
|
+
source: 'template-management.textTemplateVariable',
|
788
|
+
title: 'Template Variables',
|
386
789
|
formats: {
|
387
790
|
individual: 'TemplateVariable',
|
388
|
-
plural: 'TemplateVariables'
|
791
|
+
plural: 'TemplateVariables'
|
389
792
|
},
|
390
793
|
relatedEntities: [],
|
391
794
|
groups: [
|
392
795
|
{
|
393
796
|
id: 'templateVariable',
|
394
|
-
title: 'TemplateVariable'
|
395
|
-
}
|
797
|
+
title: 'TemplateVariable'
|
798
|
+
}
|
396
799
|
],
|
397
800
|
properties: [
|
398
801
|
{
|
@@ -402,9 +805,9 @@ async function templateVariableEntityFactory(injector) {
|
|
402
805
|
schema: {
|
403
806
|
dataType: 'string',
|
404
807
|
interface: {
|
405
|
-
type: AXPWidgetsCatalog.text
|
406
|
-
}
|
407
|
-
}
|
808
|
+
type: AXPWidgetsCatalog.text
|
809
|
+
}
|
810
|
+
}
|
408
811
|
},
|
409
812
|
{
|
410
813
|
name: 'title',
|
@@ -413,9 +816,9 @@ async function templateVariableEntityFactory(injector) {
|
|
413
816
|
schema: {
|
414
817
|
dataType: 'string',
|
415
818
|
interface: {
|
416
|
-
type: AXPWidgetsCatalog.text
|
417
|
-
}
|
418
|
-
}
|
819
|
+
type: AXPWidgetsCatalog.text
|
820
|
+
}
|
821
|
+
}
|
419
822
|
},
|
420
823
|
{
|
421
824
|
name: 'type',
|
@@ -424,81 +827,84 @@ async function templateVariableEntityFactory(injector) {
|
|
424
827
|
schema: {
|
425
828
|
dataType: 'string',
|
426
829
|
interface: {
|
427
|
-
type: AXPWidgetsCatalog.select
|
428
|
-
}
|
429
|
-
}
|
830
|
+
type: AXPWidgetsCatalog.select
|
831
|
+
}
|
832
|
+
}
|
430
833
|
},
|
431
834
|
{
|
432
|
-
name: '
|
433
|
-
title: '
|
835
|
+
name: 'required',
|
836
|
+
title: 'required',
|
434
837
|
groupId: 'templateVariable',
|
435
838
|
schema: {
|
436
839
|
dataType: 'boolean',
|
437
840
|
interface: {
|
438
|
-
type: AXPWidgetsCatalog.toggle
|
439
|
-
}
|
440
|
-
}
|
441
|
-
}
|
841
|
+
type: AXPWidgetsCatalog.toggle
|
842
|
+
}
|
843
|
+
}
|
844
|
+
}
|
442
845
|
],
|
443
846
|
columns: [{ name: 'name' }, { name: 'title' }, { name: 'requirement' }],
|
444
847
|
commands: {
|
445
848
|
create: {
|
446
849
|
execute: async (data) => {
|
447
|
-
const
|
448
|
-
|
449
|
-
return
|
450
|
-
}
|
850
|
+
const item = await dataService.getOne(data.globalTemplateId);
|
851
|
+
(item.templateVariables ??= []).push(data);
|
852
|
+
return await dataService.updateOne(data.globalTemplateId, item);
|
853
|
+
}
|
451
854
|
},
|
452
855
|
delete: {
|
453
856
|
execute: async (id) => {
|
454
857
|
// await await dataService.templateVariableDataProvider.deleteOne(id);
|
455
858
|
return Promise.resolve();
|
456
|
-
}
|
859
|
+
}
|
457
860
|
},
|
458
861
|
update: {
|
459
862
|
execute: async (data) => {
|
460
|
-
debugger;
|
461
863
|
return new Promise((resolve) => {
|
462
864
|
setTimeout(async () => {
|
463
865
|
// await dataService.templateVariableDataProvider.updateOne(data.id, data);
|
464
866
|
resolve(data);
|
465
867
|
}, 1000);
|
466
868
|
});
|
467
|
-
}
|
468
|
-
}
|
869
|
+
}
|
870
|
+
}
|
469
871
|
},
|
470
872
|
queries: {
|
471
873
|
byKey: {
|
472
874
|
execute: async (id) => {
|
473
875
|
return new Promise((resolve) => {
|
474
876
|
setTimeout(async () => {
|
475
|
-
|
877
|
+
const entity = await dataService.getOne(id);
|
476
878
|
// resolve(entity);
|
477
879
|
}, 500);
|
478
880
|
});
|
479
881
|
},
|
480
|
-
type: AXPEntityQueryType.Single
|
882
|
+
type: AXPEntityQueryType.Single
|
481
883
|
},
|
482
884
|
list: {
|
483
885
|
execute: async (e) => {
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
886
|
+
if (e.filter != null && e.filter.filters != null && e.filter.filters[0].value != null) {
|
887
|
+
const parentItem = await dataService.getOne(e.filter?.filters[0].value);
|
888
|
+
return {
|
889
|
+
totalCount: parentItem.templateVariables.length,
|
890
|
+
items: parentItem.templateVariables
|
891
|
+
};
|
892
|
+
}
|
893
|
+
else {
|
894
|
+
//TODO throw exception
|
895
|
+
return [];
|
896
|
+
}
|
491
897
|
},
|
492
|
-
type: AXPEntityQueryType.List
|
493
|
-
}
|
898
|
+
type: AXPEntityQueryType.List
|
899
|
+
}
|
494
900
|
},
|
495
901
|
interfaces: {
|
496
902
|
master: {
|
497
903
|
create: {
|
498
904
|
sections: [
|
499
905
|
{
|
500
|
-
id: 'templateVariable'
|
501
|
-
}
|
906
|
+
id: 'templateVariable'
|
907
|
+
}
|
502
908
|
],
|
503
909
|
properties: [
|
504
910
|
{
|
@@ -506,44 +912,44 @@ async function templateVariableEntityFactory(injector) {
|
|
506
912
|
layout: {
|
507
913
|
positions: {
|
508
914
|
lg: {
|
509
|
-
colSpan: 6
|
510
|
-
}
|
511
|
-
}
|
512
|
-
}
|
915
|
+
colSpan: 6
|
916
|
+
}
|
917
|
+
}
|
918
|
+
}
|
513
919
|
},
|
514
920
|
{
|
515
921
|
name: 'title',
|
516
922
|
layout: {
|
517
923
|
positions: {
|
518
924
|
lg: {
|
519
|
-
colSpan: 6
|
520
|
-
}
|
521
|
-
}
|
522
|
-
}
|
925
|
+
colSpan: 6
|
926
|
+
}
|
927
|
+
}
|
928
|
+
}
|
523
929
|
},
|
524
930
|
{
|
525
931
|
name: 'requirement',
|
526
932
|
layout: {
|
527
933
|
positions: {
|
528
934
|
lg: {
|
529
|
-
colSpan: 6
|
530
|
-
}
|
531
|
-
}
|
532
|
-
}
|
533
|
-
}
|
534
|
-
]
|
935
|
+
colSpan: 6
|
936
|
+
}
|
937
|
+
}
|
938
|
+
}
|
939
|
+
}
|
940
|
+
]
|
535
941
|
},
|
536
942
|
update: {
|
537
943
|
sections: [
|
538
944
|
{
|
539
|
-
id: 'templateVariable'
|
945
|
+
id: 'templateVariable'
|
540
946
|
},
|
541
947
|
{
|
542
|
-
id: 'schema'
|
948
|
+
id: 'schema'
|
543
949
|
},
|
544
950
|
{
|
545
|
-
id: 'interface'
|
546
|
-
}
|
951
|
+
id: 'interface'
|
952
|
+
}
|
547
953
|
],
|
548
954
|
properties: [
|
549
955
|
{
|
@@ -551,49 +957,49 @@ async function templateVariableEntityFactory(injector) {
|
|
551
957
|
layout: {
|
552
958
|
positions: {
|
553
959
|
lg: {
|
554
|
-
colSpan: 6
|
555
|
-
}
|
556
|
-
}
|
557
|
-
}
|
960
|
+
colSpan: 6
|
961
|
+
}
|
962
|
+
}
|
963
|
+
}
|
558
964
|
},
|
559
965
|
{
|
560
966
|
name: 'title',
|
561
967
|
layout: {
|
562
968
|
positions: {
|
563
969
|
lg: {
|
564
|
-
colSpan: 6
|
565
|
-
}
|
566
|
-
}
|
567
|
-
}
|
970
|
+
colSpan: 6
|
971
|
+
}
|
972
|
+
}
|
973
|
+
}
|
568
974
|
},
|
569
975
|
{
|
570
976
|
name: 'schema.nullable',
|
571
977
|
layout: {
|
572
978
|
positions: {
|
573
979
|
lg: {
|
574
|
-
colSpan: 6
|
575
|
-
}
|
576
|
-
}
|
577
|
-
}
|
980
|
+
colSpan: 6
|
981
|
+
}
|
982
|
+
}
|
983
|
+
}
|
578
984
|
},
|
579
985
|
{
|
580
986
|
name: 'requirement',
|
581
987
|
layout: {
|
582
988
|
positions: {
|
583
989
|
lg: {
|
584
|
-
colSpan: 6
|
585
|
-
}
|
586
|
-
}
|
587
|
-
}
|
588
|
-
}
|
589
|
-
]
|
990
|
+
colSpan: 6
|
991
|
+
}
|
992
|
+
}
|
993
|
+
}
|
994
|
+
}
|
995
|
+
]
|
590
996
|
},
|
591
997
|
single: {
|
592
998
|
title: '{{title}}',
|
593
999
|
sections: [
|
594
1000
|
{
|
595
|
-
id: 'templateVariable'
|
596
|
-
}
|
1001
|
+
id: 'templateVariable'
|
1002
|
+
}
|
597
1003
|
],
|
598
1004
|
properties: [
|
599
1005
|
{
|
@@ -601,33 +1007,33 @@ async function templateVariableEntityFactory(injector) {
|
|
601
1007
|
layout: {
|
602
1008
|
positions: {
|
603
1009
|
lg: {
|
604
|
-
colSpan: 6
|
605
|
-
}
|
606
|
-
}
|
607
|
-
}
|
1010
|
+
colSpan: 6
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
}
|
608
1014
|
},
|
609
1015
|
{
|
610
1016
|
name: 'title',
|
611
1017
|
layout: {
|
612
1018
|
positions: {
|
613
1019
|
lg: {
|
614
|
-
colSpan: 6
|
615
|
-
}
|
616
|
-
}
|
617
|
-
}
|
1020
|
+
colSpan: 6
|
1021
|
+
}
|
1022
|
+
}
|
1023
|
+
}
|
618
1024
|
},
|
619
1025
|
{
|
620
1026
|
name: 'requirement',
|
621
1027
|
layout: {
|
622
1028
|
positions: {
|
623
1029
|
lg: {
|
624
|
-
colSpan: 12
|
625
|
-
}
|
626
|
-
}
|
627
|
-
}
|
628
|
-
}
|
1030
|
+
colSpan: 12
|
1031
|
+
}
|
1032
|
+
}
|
1033
|
+
}
|
1034
|
+
}
|
629
1035
|
],
|
630
|
-
actions: []
|
1036
|
+
actions: []
|
631
1037
|
},
|
632
1038
|
list: {
|
633
1039
|
actions: [
|
@@ -636,29 +1042,29 @@ async function templateVariableEntityFactory(injector) {
|
|
636
1042
|
command: 'create-entity',
|
637
1043
|
priority: 'primary',
|
638
1044
|
type: 'create',
|
639
|
-
scope: AXPEntityCommandScope.TypeLevel
|
1045
|
+
scope: AXPEntityCommandScope.TypeLevel
|
640
1046
|
},
|
641
1047
|
{
|
642
1048
|
title: 'Delete Items',
|
643
1049
|
command: 'delete-entity',
|
644
1050
|
priority: 'primary',
|
645
1051
|
type: 'delete',
|
646
|
-
scope: AXPEntityCommandScope.Selected
|
1052
|
+
scope: AXPEntityCommandScope.Selected
|
647
1053
|
},
|
648
1054
|
{
|
649
1055
|
title: 'Details',
|
650
1056
|
command: 'open-entity',
|
651
1057
|
priority: 'primary',
|
652
1058
|
type: 'view',
|
653
|
-
scope: AXPEntityCommandScope.Individual
|
1059
|
+
scope: AXPEntityCommandScope.Individual
|
654
1060
|
},
|
655
1061
|
{
|
656
1062
|
title: 'Delete',
|
657
1063
|
command: 'delete-entity',
|
658
1064
|
priority: 'primary',
|
659
1065
|
type: 'delete',
|
660
|
-
scope: AXPEntityCommandScope.Individual
|
661
|
-
}
|
1066
|
+
scope: AXPEntityCommandScope.Individual
|
1067
|
+
}
|
662
1068
|
],
|
663
1069
|
views: [
|
664
1070
|
{
|
@@ -667,24 +1073,24 @@ async function templateVariableEntityFactory(injector) {
|
|
667
1073
|
fixed: true,
|
668
1074
|
columns: [],
|
669
1075
|
conditions: [],
|
670
|
-
sorts: []
|
671
|
-
}
|
672
|
-
]
|
673
|
-
}
|
674
|
-
}
|
675
|
-
}
|
1076
|
+
sorts: []
|
1077
|
+
}
|
1078
|
+
]
|
1079
|
+
}
|
1080
|
+
}
|
1081
|
+
}
|
676
1082
|
};
|
677
1083
|
return entityDef;
|
678
1084
|
}
|
679
1085
|
|
680
1086
|
var templateVariable_entity = /*#__PURE__*/Object.freeze({
|
681
1087
|
__proto__: null,
|
682
|
-
|
1088
|
+
textTemplateVariableEntityFactory: textTemplateVariableEntityFactory
|
683
1089
|
});
|
684
1090
|
|
685
1091
|
/**
|
686
1092
|
* Generated bundle index. Do not edit.
|
687
1093
|
*/
|
688
1094
|
|
689
|
-
export {
|
1095
|
+
export { AXMTemplateManagementModule, AXMTemplateModuleEntityLoader, AXMTextTemplateCategoryService, AXMTextTemplateCategoryServiceImpl, AXMTextTemplateService, AXMTextTemplateServiceImpl, CATEGORY_SOURCE_NAME, TEMPLATE_SOURCE_NAME, templateEntityFactory, textTemplateCategoryEntityFactory, textTemplateVariableEntityFactory };
|
690
1096
|
//# sourceMappingURL=acorex-modules-template-management.mjs.map
|