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