@acorex/modules 18.2.1 → 18.2.2
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/lib/const.d.ts +5 -0
- package/application-management/lib/menu.provider.d.ts +3 -3
- package/auth/lib/auth.config.d.ts +6 -0
- package/auth/lib/login/password/password.component.d.ts +1 -0
- package/auth/lib/menu.provider.d.ts +2 -2
- package/conversation/index.d.ts +5 -3
- package/conversation/lib/const.d.ts +7 -0
- package/conversation/lib/conversation.module.d.ts +1 -4
- package/conversation/lib/entities/chat/chat.module.d.ts +10 -4
- package/conversation/lib/entities/chat/chat.service.d.ts +14 -0
- package/conversation/lib/entities/chat/chat.type.d.ts +2 -1
- package/conversation/lib/entities/chat/components/chat-item/chat-item.component.d.ts +11 -11
- package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +8 -1
- package/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.d.ts +7 -4
- package/conversation/lib/entities/chat/components/chat-preview-header/chat-preview-header.component.d.ts +7 -0
- package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +19 -1
- package/conversation/lib/entities/comments/comments.service.d.ts +3 -3
- package/esm2022/application-management/lib/const.mjs +6 -0
- package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +2 -2
- package/esm2022/application-management/lib/menu.provider.mjs +17 -19
- package/esm2022/application-management/lib/module-designer/module-designer.component.mjs +3 -3
- package/esm2022/auth/lib/account/app-chooser/app-chooser.component.mjs +3 -3
- package/esm2022/auth/lib/account/tenant-chooser/tenant-chooser.component.mjs +3 -3
- package/esm2022/auth/lib/auth.config.mjs +1 -1
- package/esm2022/auth/lib/forgot/password/password.component.mjs +2 -2
- package/esm2022/auth/lib/login/password/password.component.mjs +6 -3
- package/esm2022/auth/lib/menu.provider.mjs +28 -35
- package/esm2022/auth/lib/two-factor/two-factor-code/two-factor-code.component.mjs +2 -2
- package/esm2022/backend/lib/data/api/data-provider.mjs +7 -2
- package/esm2022/conversation/index.mjs +6 -4
- package/esm2022/conversation/lib/const.mjs +8 -0
- package/esm2022/conversation/lib/conversation.module.mjs +5 -10
- package/esm2022/conversation/lib/entities/chat/chat.module.mjs +64 -13
- package/esm2022/conversation/lib/entities/chat/chat.service.mjs +23 -0
- package/esm2022/conversation/lib/entities/chat/chat.type.mjs +1 -1
- package/esm2022/conversation/lib/entities/chat/components/chat-item/chat-item.component.mjs +33 -15
- package/esm2022/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.mjs +18 -5
- package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +34 -147
- package/esm2022/conversation/lib/entities/chat/components/chat-preview-header/chat-preview-header.component.mjs +22 -0
- package/esm2022/conversation/lib/entities/chat/pages/chat/chat.component.mjs +73 -8
- package/esm2022/conversation/lib/entities/comments/comment.module.mjs +4 -4
- package/esm2022/conversation/lib/entities/comments/comments.service.mjs +7 -6
- package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +2 -3
- package/esm2022/form-template-management/lib/components/widgets/template-designer/index.mjs +3 -0
- package/esm2022/form-template-management/lib/components/widgets/template-designer/template-designer-widget-view.component.mjs +44 -0
- package/esm2022/form-template-management/lib/components/widgets/template-designer/template-designer-widget.config.mjs +23 -0
- package/esm2022/form-template-management/lib/const.mjs +2 -2
- package/esm2022/form-template-management/lib/entities/category/category.entity.mjs +13 -13
- package/esm2022/form-template-management/lib/entities/template/template.entity.mjs +208 -15
- package/esm2022/form-template-management/lib/entities/template/template.types.mjs +1 -1
- package/esm2022/form-template-management/lib/form-template-management.module.mjs +60 -4
- package/esm2022/form-template-management/lib/menu.provider.mjs +16 -29
- package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +9 -4
- package/esm2022/form-template-management/lib/services/designer-connector.service.mjs +33 -0
- package/esm2022/form-template-management/lib/services/template.provider.mjs +31 -0
- package/esm2022/form-template-management/lib/workflows/create-template.workflow.mjs +40 -0
- package/esm2022/form-template-management/lib/workflows/design-template.workflow.mjs +32 -0
- package/esm2022/localization-management/lib/const.mjs +9 -0
- package/esm2022/localization-management/lib/menu.provider.mjs +33 -35
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +3 -3
- package/esm2022/notification-management/lib/const.mjs +9 -0
- package/esm2022/notification-management/lib/entities/my-notification.mjs +5 -5
- package/esm2022/notification-management/lib/entities/notification-template.entity.mjs +4 -4
- package/esm2022/notification-management/lib/entities/notification.entity.mjs +4 -4
- package/esm2022/notification-management/lib/menu.provider.mjs +39 -37
- package/esm2022/platform-management/lib/common/country/country.entity.mjs +2 -2
- package/esm2022/platform-management/lib/common/province/province.entity.mjs +8 -8
- package/esm2022/platform-management/lib/const.mjs +12 -0
- package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +5 -4
- package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +8 -11
- package/esm2022/platform-management/lib/menu.provider.mjs +53 -47
- package/esm2022/setting-management/acorex-modules-setting-management.mjs +5 -0
- package/esm2022/setting-management/index.mjs +5 -0
- package/esm2022/setting-management/lib/const.mjs +7 -0
- package/esm2022/setting-management/lib/entities/index.mjs +2 -0
- package/esm2022/setting-management/lib/entities/setting/index.mjs +5 -0
- package/esm2022/setting-management/lib/entities/setting/setting.entity.mjs +244 -0
- package/esm2022/setting-management/lib/entities/setting/setting.module.mjs +28 -0
- package/esm2022/setting-management/lib/entities/setting/setting.service.mjs +17 -0
- package/esm2022/setting-management/lib/entities/setting/setting.types.mjs +2 -0
- package/esm2022/setting-management/lib/entity.provider.mjs +25 -0
- package/esm2022/setting-management/lib/menu.provider.mjs +32 -0
- package/esm2022/setting-management/lib/setting-management.module.mjs +44 -0
- package/esm2022/text-template-management/acorex-modules-text-template-management.mjs +5 -0
- package/esm2022/text-template-management/index.mjs +6 -0
- package/esm2022/text-template-management/lib/const.mjs +8 -0
- package/esm2022/text-template-management/lib/entities/category/category.entity.mjs +257 -0
- package/esm2022/text-template-management/lib/entities/category/category.module.mjs +28 -0
- package/esm2022/text-template-management/lib/entities/category/category.service.mjs +17 -0
- package/esm2022/text-template-management/lib/entities/category/category.types.mjs +2 -0
- package/esm2022/text-template-management/lib/entities/category/index.mjs +5 -0
- package/esm2022/text-template-management/lib/entities/index.mjs +3 -0
- package/esm2022/text-template-management/lib/entities/template/index.mjs +5 -0
- package/esm2022/text-template-management/lib/entities/template/template.entity.mjs +405 -0
- package/esm2022/text-template-management/lib/entities/template/template.module.mjs +28 -0
- package/esm2022/text-template-management/lib/entities/template/template.service.mjs +17 -0
- package/esm2022/text-template-management/lib/entities/template/template.types.mjs +2 -0
- package/esm2022/text-template-management/lib/entity.provider.mjs +29 -0
- package/esm2022/text-template-management/lib/menu.provider.mjs +37 -0
- package/esm2022/text-template-management/lib/setting.provider.mjs +48 -0
- package/esm2022/text-template-management/lib/text-template-management.module.mjs +56 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs → acorex-modules-application-management-module-designer.component-DjRdIBQt.mjs} +4 -4
- package/fesm2022/{acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs.map → acorex-modules-application-management-module-designer.component-DjRdIBQt.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +26 -23
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs → acorex-modules-auth-acorex-modules-auth-Chw_5AKM.mjs} +37 -44
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-Chw_5AKM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs → acorex-modules-auth-app-chooser.component-DN04Uoqa.mjs} +5 -5
- package/fesm2022/acorex-modules-auth-app-chooser.component-DN04Uoqa.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-login.module-sFVL-lYB.mjs → acorex-modules-auth-login.module-Bir7SJ8b.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-sFVL-lYB.mjs.map → acorex-modules-auth-login.module-Bir7SJ8b.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-Bnt5qiio.mjs → acorex-modules-auth-master.layout-DwijDvUp.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-master.layout-Bnt5qiio.mjs.map → acorex-modules-auth-master.layout-DwijDvUp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-ClaRp38G.mjs → acorex-modules-auth-password.component-C1S8V4Bw.mjs} +9 -6
- package/fesm2022/acorex-modules-auth-password.component-C1S8V4Bw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-BXL-aLTx.mjs → acorex-modules-auth-password.component-CuLQNJ-W.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-password.component-BXL-aLTx.mjs.map → acorex-modules-auth-password.component-CuLQNJ-W.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-MDneFw2m.mjs → acorex-modules-auth-routes-ILpWODmz.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-MDneFw2m.mjs.map → acorex-modules-auth-routes-ILpWODmz.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-6qDoCUBo.mjs +83 -0
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-6qDoCUBo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs → acorex-modules-auth-two-factor-code.component-BJKmvI7y.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs.map → acorex-modules-auth-two-factor-code.component-BJKmvI7y.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-BHulbf0N.mjs → acorex-modules-auth-two-factor.module-bgwR1LBc.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor.module-BHulbf0N.mjs.map → acorex-modules-auth-two-factor.module-bgwR1LBc.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-backend.mjs +7 -2
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +285 -230
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/{acorex-modules-form-template-management-designer.page-DC18KFvK.mjs → acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs} +9 -4
- package/fesm2022/acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +486 -64
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-localization-management.mjs +41 -35
- package/fesm2022/acorex-modules-localization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +59 -51
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +81 -69
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-setting-management.mjs +393 -0
- package/fesm2022/acorex-modules-setting-management.mjs.map +1 -0
- package/fesm2022/{acorex-modules-template-management.mjs → acorex-modules-text-template-management.mjs} +275 -502
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -0
- package/form-template-management/lib/components/widgets/template-designer/index.d.ts +2 -0
- package/form-template-management/lib/components/widgets/template-designer/template-designer-widget-view.component.d.ts +8 -0
- package/form-template-management/lib/components/widgets/template-designer/template-designer-widget.config.d.ts +7 -0
- package/form-template-management/lib/entities/template/template.types.d.ts +2 -0
- package/form-template-management/lib/form-template-management.module.d.ts +3 -1
- package/form-template-management/lib/menu.provider.d.ts +2 -2
- package/form-template-management/lib/pages/designer/designer.page.d.ts +2 -0
- package/form-template-management/lib/services/designer-connector.service.d.ts +7 -0
- package/form-template-management/lib/services/template.provider.d.ts +8 -0
- package/form-template-management/lib/workflows/create-template.workflow.d.ts +2 -0
- package/form-template-management/lib/workflows/design-template.workflow.d.ts +9 -0
- package/localization-management/lib/const.d.ts +8 -0
- package/localization-management/lib/menu.provider.d.ts +3 -3
- package/notification-management/lib/const.d.ts +8 -0
- package/notification-management/lib/menu.provider.d.ts +3 -2
- package/package.json +32 -32
- package/platform-management/lib/const.d.ts +11 -0
- package/platform-management/lib/menu.provider.d.ts +3 -3
- package/setting-management/README.md +3 -0
- package/setting-management/index.d.ts +4 -0
- package/setting-management/lib/const.d.ts +6 -0
- package/setting-management/lib/entities/index.d.ts +1 -0
- package/setting-management/lib/entities/setting/index.d.ts +4 -0
- package/{template-management/lib/entities/text-template.entity.d.ts → setting-management/lib/entities/setting/setting.entity.d.ts} +1 -1
- package/setting-management/lib/entities/setting/setting.module.d.ts +6 -0
- package/setting-management/lib/entities/setting/setting.service.d.ts +10 -0
- package/setting-management/lib/entities/setting/setting.types.d.ts +5 -0
- package/setting-management/lib/entity.provider.d.ts +9 -0
- package/setting-management/lib/menu.provider.d.ts +5 -0
- package/setting-management/lib/setting-management.module.d.ts +7 -0
- package/text-template-management/README.md +3 -0
- package/text-template-management/index.d.ts +5 -0
- package/text-template-management/lib/const.d.ts +7 -0
- package/text-template-management/lib/entities/category/category.entity.d.ts +3 -0
- package/text-template-management/lib/entities/category/category.module.d.ts +6 -0
- package/text-template-management/lib/entities/category/category.service.d.ts +10 -0
- package/text-template-management/lib/entities/category/category.types.d.ts +5 -0
- package/text-template-management/lib/entities/category/index.d.ts +4 -0
- package/text-template-management/lib/entities/index.d.ts +2 -0
- package/text-template-management/lib/entities/template/index.d.ts +4 -0
- package/text-template-management/lib/entities/template/template.entity.d.ts +3 -0
- package/text-template-management/lib/entities/template/template.module.d.ts +6 -0
- package/text-template-management/lib/entities/template/template.service.d.ts +10 -0
- package/text-template-management/lib/entities/template/template.types.d.ts +9 -0
- package/text-template-management/lib/entity.provider.d.ts +9 -0
- package/text-template-management/lib/menu.provider.d.ts +5 -0
- package/text-template-management/lib/setting.provider.d.ts +4 -0
- package/text-template-management/lib/text-template-management.module.d.ts +8 -0
- package/conversation/lib/entities/chat/components/chat-items/chat-items.component.d.ts +0 -6
- package/converstion-test/README.md +0 -4
- package/converstion-test/index.d.ts +0 -1
- package/converstion-test/lib/converstion-test.module.d.ts +0 -6
- package/esm2022/conversation/lib/entities/chat/components/chat-items/chat-items.component.mjs +0 -15
- package/esm2022/converstion-test/acorex-modules-converstion-test.mjs +0 -5
- package/esm2022/converstion-test/index.mjs +0 -2
- package/esm2022/converstion-test/lib/converstion-test.module.mjs +0 -16
- package/esm2022/template-management/acorex-modules-template-management.mjs +0 -5
- package/esm2022/template-management/index.mjs +0 -8
- package/esm2022/template-management/lib/entities/category.entity.mjs +0 -251
- package/esm2022/template-management/lib/entities/index.mjs +0 -4
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +0 -308
- package/esm2022/template-management/lib/entities/text-template.entity.mjs +0 -411
- package/esm2022/template-management/lib/entity.provider.mjs +0 -32
- package/esm2022/template-management/lib/menu.provider.mjs +0 -43
- package/esm2022/template-management/lib/template-management.module.mjs +0 -61
- package/esm2022/template-management/lib/template-management.types.mjs +0 -2
- package/esm2022/template-management/lib/template.service.mjs +0 -17
- package/esm2022/template-management/lib/text-management.source.mjs +0 -3
- package/esm2022/template-management/lib/text-template-category.service.mjs +0 -17
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-ClaRp38G.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CHr5_kh7.mjs +0 -83
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CHr5_kh7.mjs.map +0 -1
- package/fesm2022/acorex-modules-converstion-test.mjs +0 -23
- package/fesm2022/acorex-modules-converstion-test.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-designer.page-DC18KFvK.mjs.map +0 -1
- package/fesm2022/acorex-modules-template-management.mjs.map +0 -1
- package/template-management/README.md +0 -3
- package/template-management/index.d.ts +0 -7
- package/template-management/lib/entities/category.entity.d.ts +0 -3
- package/template-management/lib/entities/index.d.ts +0 -3
- package/template-management/lib/entities/template-variable.entity.d.ts +0 -3
- package/template-management/lib/entity.provider.d.ts +0 -9
- package/template-management/lib/menu.provider.d.ts +0 -5
- package/template-management/lib/template-management.module.d.ts +0 -6
- package/template-management/lib/template-management.types.d.ts +0 -19
- package/template-management/lib/template.service.d.ts +0 -10
- package/template-management/lib/text-management.source.d.ts +0 -2
- package/template-management/lib/text-template-category.service.d.ts +0 -10
@@ -1,187 +1,54 @@
|
|
1
|
-
import {
|
2
|
-
import * as i0 from '@angular/core';
|
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';
|
1
|
+
import { AXMEntityCrudServiceImpl, AXPEntityCommandScope, AXPEntityQueryType, AXPSettingDefinitionItemType, AXP_MENU_PROVIDER, AXP_SETTING_PROVIDER } from '@acorex/platform/common';
|
6
2
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
3
|
+
import * as i0 from '@angular/core';
|
4
|
+
import { Injectable, NgModule, inject, Injector } from '@angular/core';
|
5
|
+
import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
case 'template': {
|
16
|
-
const entity = (await Promise.resolve().then(function () { return textTemplate_entity; })).templateEntityFactory;
|
17
|
-
return entity(this.injector);
|
18
|
-
}
|
19
|
-
case 'variable': {
|
20
|
-
const entity = (await Promise.resolve().then(function () { return templateVariable_entity; })).textTemplateVariableEntityFactory;
|
21
|
-
return entity(this.injector);
|
22
|
-
}
|
23
|
-
case 'category': {
|
24
|
-
const entity = (await Promise.resolve().then(function () { return category_entity; })).textTemplateCategoryEntityFactory;
|
25
|
-
return entity(this.injector);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
return null;
|
30
|
-
}
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
32
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityProvider }); }
|
33
|
-
}
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityProvider, decorators: [{
|
35
|
-
type: Injectable
|
36
|
-
}] });
|
37
|
-
|
38
|
-
const TEMPLATE_SOURCE_NAME = 'template-management.template';
|
39
|
-
const CATEGORY_SOURCE_NAME = 'template-management.category';
|
40
|
-
|
41
|
-
class AXMTextTemplateService extends AXMEntityCrudServiceImpl {
|
42
|
-
}
|
43
|
-
class AXMTextTemplateServiceImpl extends AXMEntityCrudServiceImpl {
|
44
|
-
constructor() {
|
45
|
-
super(TEMPLATE_SOURCE_NAME);
|
46
|
-
}
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
48
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateServiceImpl }); }
|
49
|
-
}
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateServiceImpl, decorators: [{
|
51
|
-
type: Injectable
|
52
|
-
}], ctorParameters: () => [] });
|
7
|
+
const AXMTextTemplateManagementModuleConst = {
|
8
|
+
moduleName: 'textTemplateManagement',
|
9
|
+
moduleRoute: 'text-template-management',
|
10
|
+
i18n: 'text-template-management',
|
11
|
+
categoryEntity: 'Category',
|
12
|
+
templateEntity: 'Template',
|
13
|
+
};
|
53
14
|
|
54
|
-
class
|
15
|
+
class AXMTextTemplateManagementCategoryEntityService extends AXMEntityCrudServiceImpl {
|
55
16
|
}
|
56
|
-
class
|
17
|
+
class AXMTextTemplateManagementCategoryEntityServiceImpl extends AXMTextTemplateManagementCategoryEntityService {
|
57
18
|
constructor() {
|
58
|
-
super(
|
19
|
+
super(`${AXMTextTemplateManagementModuleConst.moduleName}.${AXMTextTemplateManagementModuleConst.categoryEntity}`);
|
59
20
|
}
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
61
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementCategoryEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
22
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementCategoryEntityServiceImpl }); }
|
62
23
|
}
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementCategoryEntityServiceImpl, decorators: [{
|
64
25
|
type: Injectable
|
65
26
|
}], ctorParameters: () => [] });
|
66
27
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
}
|
71
|
-
async items() {
|
72
|
-
const scope = '#text-template'; // Scope used for translation lookup
|
73
|
-
return [
|
74
|
-
{
|
75
|
-
items: [
|
76
|
-
{
|
77
|
-
priority: 9001,
|
78
|
-
text: `${scope}.module-name`,
|
79
|
-
icon: 'fa-solid fa-code',
|
80
|
-
data: {
|
81
|
-
// requiredPermission: 'demo.admin.settings',
|
82
|
-
},
|
83
|
-
children: [
|
84
|
-
{
|
85
|
-
text: `${scope}.templates`,
|
86
|
-
path: '/demo/m/template-management/e/template/list',
|
87
|
-
icon: 'fa-solid fa-file-code',
|
88
|
-
data: {
|
89
|
-
// requiredPermission: '',
|
90
|
-
},
|
91
|
-
},
|
92
|
-
{
|
93
|
-
text: `${scope}.category`,
|
94
|
-
path: '/demo/m/template-management/e/category/list',
|
95
|
-
icon: 'fa-solid fa-layer-group',
|
96
|
-
data: {
|
97
|
-
// requiredPermission: '',
|
98
|
-
},
|
99
|
-
},
|
100
|
-
],
|
101
|
-
},
|
102
|
-
],
|
103
|
-
},
|
104
|
-
];
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
class AXMTemplateManagementModule {
|
109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
110
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule }); }
|
111
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, providers: [
|
112
|
-
{
|
113
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
114
|
-
useClass: AXMTemplateModuleEntityProvider,
|
115
|
-
multi: true,
|
116
|
-
},
|
117
|
-
{
|
118
|
-
provide: AXP_MENU_PROVIDER,
|
119
|
-
useClass: AXMTextTemplateManagmentModuleMenuProvider,
|
120
|
-
multi: true
|
121
|
-
},
|
122
|
-
{
|
123
|
-
provide: AXMTextTemplateService,
|
124
|
-
useClass: AXMTextTemplateServiceImpl,
|
125
|
-
},
|
126
|
-
{
|
127
|
-
provide: AXMTextTemplateCategoryService,
|
128
|
-
useClass: AXMTextTemplateCategoryServiceImpl,
|
129
|
-
},
|
130
|
-
] }); }
|
131
|
-
}
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, decorators: [{
|
133
|
-
type: NgModule,
|
134
|
-
args: [{
|
135
|
-
imports: [],
|
136
|
-
exports: [],
|
137
|
-
declarations: [],
|
138
|
-
providers: [
|
139
|
-
{
|
140
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
141
|
-
useClass: AXMTemplateModuleEntityProvider,
|
142
|
-
multi: true,
|
143
|
-
},
|
144
|
-
{
|
145
|
-
provide: AXP_MENU_PROVIDER,
|
146
|
-
useClass: AXMTextTemplateManagmentModuleMenuProvider,
|
147
|
-
multi: true
|
148
|
-
},
|
149
|
-
{
|
150
|
-
provide: AXMTextTemplateService,
|
151
|
-
useClass: AXMTextTemplateServiceImpl,
|
152
|
-
},
|
153
|
-
{
|
154
|
-
provide: AXMTextTemplateCategoryService,
|
155
|
-
useClass: AXMTextTemplateCategoryServiceImpl,
|
156
|
-
},
|
157
|
-
],
|
158
|
-
}]
|
159
|
-
}] });
|
160
|
-
|
161
|
-
async function textTemplateCategoryEntityFactory(injector) {
|
162
|
-
const dataService = injector.get(AXMTextTemplateCategoryService);
|
163
|
-
const moduleName = 'template-management';
|
28
|
+
async function categoryFactory(injector) {
|
29
|
+
const dataService = injector.get(AXMTextTemplateManagementCategoryEntityService);
|
30
|
+
const moduleName = AXMTextTemplateManagementModuleConst.moduleName;
|
164
31
|
const scope = `#${moduleName}`;
|
165
32
|
const entityDef = {
|
166
33
|
module: moduleName,
|
167
|
-
name:
|
168
|
-
source: '
|
169
|
-
title:
|
34
|
+
name: AXMTextTemplateManagementModuleConst.categoryEntity,
|
35
|
+
source: '',
|
36
|
+
title: `t("category", { scope: "common" })`,
|
170
37
|
formats: {
|
171
|
-
individual: '
|
172
|
-
plural: '
|
38
|
+
individual: 't("category")',
|
39
|
+
plural: 't("categories", { scope: "common" })',
|
173
40
|
},
|
174
41
|
relatedEntities: [],
|
175
42
|
groups: [
|
176
43
|
{
|
177
44
|
id: 'category',
|
178
|
-
title: '
|
45
|
+
title: 't("category", { scope: "common" })',
|
179
46
|
},
|
180
47
|
],
|
181
48
|
properties: [
|
182
49
|
{
|
183
50
|
name: 'name',
|
184
|
-
title: '
|
51
|
+
title: 't("name", { scope: "common" })',
|
185
52
|
groupId: 'category',
|
186
53
|
options: {
|
187
54
|
sort: {
|
@@ -202,7 +69,7 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
202
69
|
},
|
203
70
|
{
|
204
71
|
name: 'title',
|
205
|
-
title: '
|
72
|
+
title: 't("title", { scope: "common" })',
|
206
73
|
groupId: 'category',
|
207
74
|
schema: {
|
208
75
|
dataType: 'string',
|
@@ -210,6 +77,11 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
210
77
|
type: AXPWidgetsCatalog.text,
|
211
78
|
},
|
212
79
|
},
|
80
|
+
options: {
|
81
|
+
sort: {
|
82
|
+
enabled: true,
|
83
|
+
},
|
84
|
+
},
|
213
85
|
validations: [
|
214
86
|
{
|
215
87
|
rule: 'required',
|
@@ -255,7 +127,7 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
255
127
|
},
|
256
128
|
list: {
|
257
129
|
execute: async (e) => {
|
258
|
-
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
130
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
|
259
131
|
},
|
260
132
|
type: AXPEntityQueryType.List,
|
261
133
|
},
|
@@ -361,28 +233,28 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
361
233
|
list: {
|
362
234
|
actions: [
|
363
235
|
{
|
364
|
-
title:
|
236
|
+
title: `t("create",{scope: "common"}) t("category",{scope: "common"})`,
|
365
237
|
command: 'create-entity',
|
366
238
|
priority: 'primary',
|
367
239
|
type: 'create',
|
368
240
|
scope: AXPEntityCommandScope.TypeLevel,
|
369
241
|
},
|
370
242
|
{
|
371
|
-
title: '
|
243
|
+
title: 't("deleteItems", { scope: "common" })',
|
372
244
|
command: 'delete-entity',
|
373
245
|
priority: 'primary',
|
374
246
|
type: 'delete',
|
375
247
|
scope: AXPEntityCommandScope.Selected,
|
376
248
|
},
|
377
249
|
{
|
378
|
-
title: '
|
250
|
+
title: 't("detail", { scope: "common" })',
|
379
251
|
command: 'open-entity',
|
380
252
|
priority: 'primary',
|
381
253
|
type: 'view',
|
382
254
|
scope: AXPEntityCommandScope.Individual,
|
383
255
|
},
|
384
256
|
{
|
385
|
-
title: '
|
257
|
+
title: 't("delete", { scope: "common" })',
|
386
258
|
command: 'delete-entity',
|
387
259
|
priority: 'primary',
|
388
260
|
type: 'delete',
|
@@ -392,7 +264,7 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
392
264
|
views: [
|
393
265
|
{
|
394
266
|
name: 'all',
|
395
|
-
title: '
|
267
|
+
title: 't("allItem", { scope: "common" })',
|
396
268
|
fixed: true,
|
397
269
|
columns: [],
|
398
270
|
conditions: [],
|
@@ -406,37 +278,56 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
406
278
|
return entityDef;
|
407
279
|
}
|
408
280
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
281
|
+
class AXMTextTemplateManagementCategoryEntityModule {
|
282
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementCategoryEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
283
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementCategoryEntityModule }); }
|
284
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementCategoryEntityModule, providers: [
|
285
|
+
{
|
286
|
+
provide: AXMTextTemplateManagementCategoryEntityService,
|
287
|
+
useClass: AXMTextTemplateManagementCategoryEntityServiceImpl,
|
288
|
+
},
|
289
|
+
] }); }
|
290
|
+
}
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementCategoryEntityModule, decorators: [{
|
292
|
+
type: NgModule,
|
293
|
+
args: [{
|
294
|
+
imports: [],
|
295
|
+
exports: [],
|
296
|
+
declarations: [],
|
297
|
+
providers: [
|
298
|
+
{
|
299
|
+
provide: AXMTextTemplateManagementCategoryEntityService,
|
300
|
+
useClass: AXMTextTemplateManagementCategoryEntityServiceImpl,
|
301
|
+
},
|
302
|
+
],
|
303
|
+
}]
|
304
|
+
}] });
|
305
|
+
|
306
|
+
class AXMTextTemplateManagementTemplateEntityService extends AXMEntityCrudServiceImpl {
|
307
|
+
}
|
308
|
+
class AXMTextTemplateManagementTemplateEntityServiceImpl extends AXMTextTemplateManagementTemplateEntityService {
|
309
|
+
constructor() {
|
310
|
+
super(`${AXMTextTemplateManagementModuleConst.moduleName}.${AXMTextTemplateManagementModuleConst.templateEntity}`);
|
311
|
+
}
|
312
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementTemplateEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
313
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementTemplateEntityServiceImpl }); }
|
314
|
+
}
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementTemplateEntityServiceImpl, decorators: [{
|
316
|
+
type: Injectable
|
317
|
+
}], ctorParameters: () => [] });
|
413
318
|
|
414
|
-
async function
|
415
|
-
const dataService = injector.get(
|
319
|
+
async function templateFactory(injector) {
|
320
|
+
const dataService = injector.get(AXMTextTemplateManagementTemplateEntityService);
|
416
321
|
const entityDef = {
|
417
|
-
module:
|
418
|
-
name:
|
419
|
-
source: '
|
322
|
+
module: AXMTextTemplateManagementModuleConst.moduleName,
|
323
|
+
name: AXMTextTemplateManagementModuleConst.templateEntity,
|
324
|
+
source: '',
|
420
325
|
title: 'Templates',
|
421
326
|
formats: {
|
422
327
|
individual: 'Template',
|
423
328
|
plural: 'Templates',
|
424
329
|
},
|
425
|
-
relatedEntities: [
|
426
|
-
{
|
427
|
-
entity: 'template-management.variable',
|
428
|
-
columns: ['name', 'title', 'type', 'requirement'],
|
429
|
-
conditions: [
|
430
|
-
{
|
431
|
-
name: 'globalTemplateId',
|
432
|
-
operator: {
|
433
|
-
type: 'equal',
|
434
|
-
},
|
435
|
-
value: 'id',
|
436
|
-
},
|
437
|
-
],
|
438
|
-
},
|
439
|
-
],
|
330
|
+
relatedEntities: [],
|
440
331
|
groups: [
|
441
332
|
{
|
442
333
|
id: 'template',
|
@@ -493,7 +384,7 @@ async function templateEntityFactory(injector) {
|
|
493
384
|
],
|
494
385
|
},
|
495
386
|
{
|
496
|
-
name: '
|
387
|
+
name: 'categoryId',
|
497
388
|
title: 'Category',
|
498
389
|
groupId: 'template',
|
499
390
|
schema: {
|
@@ -502,7 +393,10 @@ async function templateEntityFactory(injector) {
|
|
502
393
|
type: AXPWidgetsCatalog.lookup,
|
503
394
|
options: {
|
504
395
|
entity: 'template-management.category',
|
505
|
-
expose:
|
396
|
+
expose: [
|
397
|
+
{ source: 'id', target: 'categoryId' },
|
398
|
+
{ source: 'title', target: 'category.title' },
|
399
|
+
],
|
506
400
|
},
|
507
401
|
},
|
508
402
|
},
|
@@ -512,17 +406,6 @@ async function templateEntityFactory(injector) {
|
|
512
406
|
},
|
513
407
|
],
|
514
408
|
},
|
515
|
-
{
|
516
|
-
name: 'category.title',
|
517
|
-
title: 'Category Title',
|
518
|
-
groupId: 'template',
|
519
|
-
schema: {
|
520
|
-
dataType: 'string',
|
521
|
-
interface: {
|
522
|
-
type: AXPWidgetsCatalog.text,
|
523
|
-
},
|
524
|
-
},
|
525
|
-
},
|
526
409
|
{
|
527
410
|
name: 'type',
|
528
411
|
title: 'Type',
|
@@ -550,7 +433,12 @@ async function templateEntityFactory(injector) {
|
|
550
433
|
],
|
551
434
|
},
|
552
435
|
],
|
553
|
-
columns: [
|
436
|
+
columns: [
|
437
|
+
{ name: 'name' },
|
438
|
+
{ name: 'title' },
|
439
|
+
{ name: 'categoryId', options: { dataPath: 'category.title' } },
|
440
|
+
{ name: 'type' },
|
441
|
+
],
|
554
442
|
commands: {
|
555
443
|
create: {
|
556
444
|
execute: async (data) => {
|
@@ -633,7 +521,7 @@ async function templateEntityFactory(injector) {
|
|
633
521
|
},
|
634
522
|
},
|
635
523
|
{
|
636
|
-
name: '
|
524
|
+
name: 'categoryId',
|
637
525
|
layout: {
|
638
526
|
positions: {
|
639
527
|
lg: {
|
@@ -692,7 +580,7 @@ async function templateEntityFactory(injector) {
|
|
692
580
|
},
|
693
581
|
},
|
694
582
|
{
|
695
|
-
name: '
|
583
|
+
name: 'categoryId',
|
696
584
|
layout: {
|
697
585
|
positions: {
|
698
586
|
lg: {
|
@@ -768,6 +656,16 @@ async function templateEntityFactory(injector) {
|
|
768
656
|
},
|
769
657
|
},
|
770
658
|
},
|
659
|
+
{
|
660
|
+
name: 'categoryId',
|
661
|
+
layout: {
|
662
|
+
positions: {
|
663
|
+
lg: {
|
664
|
+
colSpan: 6,
|
665
|
+
},
|
666
|
+
},
|
667
|
+
},
|
668
|
+
},
|
771
669
|
],
|
772
670
|
actions: [],
|
773
671
|
},
|
@@ -819,324 +717,199 @@ async function templateEntityFactory(injector) {
|
|
819
717
|
return entityDef;
|
820
718
|
}
|
821
719
|
|
822
|
-
|
720
|
+
class AXMTextTemplateManagementTemplateEntityModule {
|
721
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementTemplateEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
722
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementTemplateEntityModule }); }
|
723
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementTemplateEntityModule, providers: [
|
724
|
+
{
|
725
|
+
provide: AXMTextTemplateManagementTemplateEntityService,
|
726
|
+
useClass: AXMTextTemplateManagementTemplateEntityServiceImpl,
|
727
|
+
},
|
728
|
+
] }); }
|
729
|
+
}
|
730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementTemplateEntityModule, decorators: [{
|
731
|
+
type: NgModule,
|
732
|
+
args: [{
|
733
|
+
imports: [],
|
734
|
+
exports: [],
|
735
|
+
declarations: [],
|
736
|
+
providers: [
|
737
|
+
{
|
738
|
+
provide: AXMTextTemplateManagementTemplateEntityService,
|
739
|
+
useClass: AXMTextTemplateManagementTemplateEntityServiceImpl,
|
740
|
+
},
|
741
|
+
],
|
742
|
+
}]
|
743
|
+
}] });
|
744
|
+
|
745
|
+
var index = /*#__PURE__*/Object.freeze({
|
823
746
|
__proto__: null,
|
824
|
-
|
747
|
+
AXMTextTemplateManagementCategoryEntityModule: AXMTextTemplateManagementCategoryEntityModule,
|
748
|
+
AXMTextTemplateManagementCategoryEntityService: AXMTextTemplateManagementCategoryEntityService,
|
749
|
+
AXMTextTemplateManagementCategoryEntityServiceImpl: AXMTextTemplateManagementCategoryEntityServiceImpl,
|
750
|
+
AXMTextTemplateManagementTemplateEntityModule: AXMTextTemplateManagementTemplateEntityModule,
|
751
|
+
AXMTextTemplateManagementTemplateEntityService: AXMTextTemplateManagementTemplateEntityService,
|
752
|
+
AXMTextTemplateManagementTemplateEntityServiceImpl: AXMTextTemplateManagementTemplateEntityServiceImpl,
|
753
|
+
categoryFactory: categoryFactory,
|
754
|
+
templateFactory: templateFactory
|
825
755
|
});
|
826
756
|
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
757
|
+
class AXMTextTemplateManagementModuleEntityProvider {
|
758
|
+
constructor() {
|
759
|
+
this.injector = inject(Injector);
|
760
|
+
}
|
761
|
+
async get(moduleName, entityName) {
|
762
|
+
if (moduleName == AXMTextTemplateManagementModuleConst.moduleName) {
|
763
|
+
switch (entityName) {
|
764
|
+
case AXMTextTemplateManagementModuleConst.templateEntity: {
|
765
|
+
const entity = (await Promise.resolve().then(function () { return index; })).templateFactory;
|
766
|
+
return entity(this.injector);
|
767
|
+
}
|
768
|
+
case AXMTextTemplateManagementModuleConst.categoryEntity: {
|
769
|
+
const entity = (await Promise.resolve().then(function () { return index; })).categoryFactory;
|
770
|
+
return entity(this.injector);
|
771
|
+
}
|
772
|
+
}
|
773
|
+
}
|
774
|
+
return null;
|
775
|
+
}
|
776
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
777
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementModuleEntityProvider }); }
|
778
|
+
}
|
779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementModuleEntityProvider, decorators: [{
|
780
|
+
type: Injectable
|
781
|
+
}] });
|
782
|
+
|
783
|
+
class AXMTextTemplateManagementModuleMenuProvider {
|
784
|
+
constructor() {
|
785
|
+
this.entityService = inject(AXPEntityService);
|
786
|
+
}
|
787
|
+
async provide(context) {
|
788
|
+
const scope = AXMTextTemplateManagementModuleConst.i18n;
|
789
|
+
const moduleName = AXMTextTemplateManagementModuleConst.moduleName;
|
790
|
+
context.addItems([
|
846
791
|
{
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
interface: {
|
853
|
-
type: AXPWidgetsCatalog.text,
|
854
|
-
},
|
792
|
+
priority: 9001,
|
793
|
+
text: `t('module-name', {scope: ${scope}})`,
|
794
|
+
icon: 'fa-solid fa-code',
|
795
|
+
data: {
|
796
|
+
// requiredPermission: 'demo.admin.settings',
|
855
797
|
},
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
dataType: 'string',
|
863
|
-
interface: {
|
864
|
-
type: AXPWidgetsCatalog.text,
|
798
|
+
children: [
|
799
|
+
{
|
800
|
+
text: `t('templates', {scope: ${scope}})`,
|
801
|
+
path: this.entityService.createPath(moduleName, AXMTextTemplateManagementModuleConst.templateEntity),
|
802
|
+
icon: 'fa-solid fa-file-code',
|
803
|
+
priority: 1,
|
865
804
|
},
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
groupId: 'templateVariable',
|
872
|
-
schema: {
|
873
|
-
dataType: 'string',
|
874
|
-
interface: {
|
875
|
-
type: AXPWidgetsCatalog.select,
|
805
|
+
{
|
806
|
+
text: `t('category', {scope: ${scope}})`,
|
807
|
+
path: this.entityService.createPath(moduleName, AXMTextTemplateManagementModuleConst.categoryEntity),
|
808
|
+
icon: 'fa-solid fa-layer-group',
|
809
|
+
priority: 2,
|
876
810
|
},
|
877
|
-
|
811
|
+
],
|
878
812
|
},
|
813
|
+
]);
|
814
|
+
}
|
815
|
+
}
|
816
|
+
|
817
|
+
class AXMTextTemplateManagementModuleSettingProvider {
|
818
|
+
async provide(context) {
|
819
|
+
const scope = AXMTextTemplateManagementModuleConst.i18n;
|
820
|
+
const moduleName = AXMTextTemplateManagementModuleConst.moduleName;
|
821
|
+
context.addItems([
|
879
822
|
{
|
880
|
-
name: '
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
823
|
+
name: 'text-template-management',
|
824
|
+
type: AXPSettingDefinitionItemType.Group,
|
825
|
+
title: 'Text Template Management',
|
826
|
+
singles: [
|
827
|
+
{
|
828
|
+
name: 'TTM-isEnable',
|
829
|
+
dataType: 'boolean',
|
830
|
+
isEncrypted: false,
|
831
|
+
isInherited: false,
|
832
|
+
scope: 'T',
|
833
|
+
title: 'Text Template Management Active',
|
834
|
+
isRequired: true,
|
835
|
+
type: AXPSettingDefinitionItemType.Single,
|
887
836
|
},
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
837
|
+
],
|
838
|
+
groups: [
|
839
|
+
{
|
840
|
+
name: 'text-template-management-category',
|
841
|
+
type: AXPSettingDefinitionItemType.Group,
|
842
|
+
title: 'Category',
|
843
|
+
singles: [
|
844
|
+
{
|
845
|
+
name: 'TTMC-isEnable',
|
846
|
+
dataType: 'boolean',
|
847
|
+
isEncrypted: false,
|
848
|
+
isInherited: false,
|
849
|
+
scope: 'T',
|
850
|
+
title: 'Text Template Category Management Active',
|
851
|
+
isRequired: true,
|
852
|
+
type: AXPSettingDefinitionItemType.Single,
|
853
|
+
},
|
854
|
+
],
|
855
|
+
groups: [],
|
856
|
+
},
|
857
|
+
],
|
905
858
|
},
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
859
|
+
]);
|
860
|
+
}
|
861
|
+
}
|
862
|
+
|
863
|
+
class AXMTextTemplateManagementModule {
|
864
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
865
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementModule, imports: [AXMTextTemplateManagementTemplateEntityModule, AXMTextTemplateManagementCategoryEntityModule] }); }
|
866
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementModule, providers: [
|
867
|
+
{
|
868
|
+
provide: AXP_MENU_PROVIDER,
|
869
|
+
useClass: AXMTextTemplateManagementModuleMenuProvider,
|
870
|
+
multi: true,
|
916
871
|
},
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
return new Promise((resolve) => {
|
922
|
-
setTimeout(async () => {
|
923
|
-
const entity = await dataService.getOne(id);
|
924
|
-
// resolve(entity);
|
925
|
-
}, 500);
|
926
|
-
});
|
927
|
-
},
|
928
|
-
type: AXPEntityQueryType.Single,
|
872
|
+
{
|
873
|
+
provide: AXP_SETTING_PROVIDER,
|
874
|
+
useClass: AXMTextTemplateManagementModuleSettingProvider,
|
875
|
+
multi: true,
|
929
876
|
},
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
return {
|
935
|
-
totalCount: parentItem.templateVariables?.length ?? 0,
|
936
|
-
items: parentItem.templateVariables ?? [],
|
937
|
-
};
|
938
|
-
}
|
939
|
-
else {
|
940
|
-
//TODO throw exception
|
941
|
-
return [];
|
942
|
-
}
|
943
|
-
},
|
944
|
-
type: AXPEntityQueryType.List,
|
877
|
+
{
|
878
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
879
|
+
useClass: AXMTextTemplateManagementModuleEntityProvider,
|
880
|
+
multi: true,
|
945
881
|
},
|
946
|
-
}
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
properties: [
|
956
|
-
{
|
957
|
-
name: 'name',
|
958
|
-
layout: {
|
959
|
-
positions: {
|
960
|
-
lg: {
|
961
|
-
colSpan: 6,
|
962
|
-
},
|
963
|
-
},
|
964
|
-
},
|
965
|
-
},
|
966
|
-
{
|
967
|
-
name: 'title',
|
968
|
-
layout: {
|
969
|
-
positions: {
|
970
|
-
lg: {
|
971
|
-
colSpan: 6,
|
972
|
-
},
|
973
|
-
},
|
974
|
-
},
|
975
|
-
},
|
976
|
-
{
|
977
|
-
name: 'required',
|
978
|
-
layout: {
|
979
|
-
positions: {
|
980
|
-
lg: {
|
981
|
-
colSpan: 6,
|
982
|
-
},
|
983
|
-
},
|
984
|
-
},
|
985
|
-
},
|
986
|
-
],
|
987
|
-
},
|
988
|
-
update: {
|
989
|
-
sections: [
|
990
|
-
{
|
991
|
-
id: 'templateVariable',
|
992
|
-
},
|
993
|
-
{
|
994
|
-
id: 'schema',
|
995
|
-
},
|
996
|
-
{
|
997
|
-
id: 'interface',
|
998
|
-
},
|
999
|
-
],
|
1000
|
-
properties: [
|
1001
|
-
{
|
1002
|
-
name: 'name',
|
1003
|
-
layout: {
|
1004
|
-
positions: {
|
1005
|
-
lg: {
|
1006
|
-
colSpan: 6,
|
1007
|
-
},
|
1008
|
-
},
|
1009
|
-
},
|
1010
|
-
},
|
1011
|
-
{
|
1012
|
-
name: 'title',
|
1013
|
-
layout: {
|
1014
|
-
positions: {
|
1015
|
-
lg: {
|
1016
|
-
colSpan: 6,
|
1017
|
-
},
|
1018
|
-
},
|
1019
|
-
},
|
1020
|
-
},
|
1021
|
-
{
|
1022
|
-
name: 'schema.nullable',
|
1023
|
-
layout: {
|
1024
|
-
positions: {
|
1025
|
-
lg: {
|
1026
|
-
colSpan: 6,
|
1027
|
-
},
|
1028
|
-
},
|
1029
|
-
},
|
1030
|
-
},
|
1031
|
-
{
|
1032
|
-
name: 'required',
|
1033
|
-
layout: {
|
1034
|
-
positions: {
|
1035
|
-
lg: {
|
1036
|
-
colSpan: 6,
|
1037
|
-
},
|
1038
|
-
},
|
1039
|
-
},
|
1040
|
-
},
|
1041
|
-
],
|
1042
|
-
},
|
1043
|
-
single: {
|
1044
|
-
title: '{{title}}',
|
1045
|
-
sections: [
|
1046
|
-
{
|
1047
|
-
id: 'templateVariable',
|
1048
|
-
},
|
1049
|
-
],
|
1050
|
-
properties: [
|
1051
|
-
{
|
1052
|
-
name: 'name',
|
1053
|
-
layout: {
|
1054
|
-
positions: {
|
1055
|
-
lg: {
|
1056
|
-
colSpan: 6,
|
1057
|
-
},
|
1058
|
-
},
|
1059
|
-
},
|
1060
|
-
},
|
1061
|
-
{
|
1062
|
-
name: 'title',
|
1063
|
-
layout: {
|
1064
|
-
positions: {
|
1065
|
-
lg: {
|
1066
|
-
colSpan: 6,
|
1067
|
-
},
|
1068
|
-
},
|
1069
|
-
},
|
1070
|
-
},
|
1071
|
-
{
|
1072
|
-
name: 'required',
|
1073
|
-
layout: {
|
1074
|
-
positions: {
|
1075
|
-
lg: {
|
1076
|
-
colSpan: 12,
|
1077
|
-
},
|
1078
|
-
},
|
1079
|
-
},
|
1080
|
-
},
|
1081
|
-
],
|
1082
|
-
actions: [],
|
1083
|
-
},
|
1084
|
-
list: {
|
1085
|
-
actions: [
|
1086
|
-
{
|
1087
|
-
title: 'Create New',
|
1088
|
-
command: 'create-entity',
|
1089
|
-
priority: 'primary',
|
1090
|
-
type: 'create',
|
1091
|
-
scope: AXPEntityCommandScope.TypeLevel,
|
1092
|
-
},
|
882
|
+
], imports: [AXMTextTemplateManagementTemplateEntityModule, AXMTextTemplateManagementCategoryEntityModule] }); }
|
883
|
+
}
|
884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTextTemplateManagementModule, decorators: [{
|
885
|
+
type: NgModule,
|
886
|
+
args: [{
|
887
|
+
imports: [AXMTextTemplateManagementTemplateEntityModule, AXMTextTemplateManagementCategoryEntityModule],
|
888
|
+
exports: [],
|
889
|
+
declarations: [],
|
890
|
+
providers: [
|
1093
891
|
{
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
type: 'delete',
|
1098
|
-
scope: AXPEntityCommandScope.Selected,
|
892
|
+
provide: AXP_MENU_PROVIDER,
|
893
|
+
useClass: AXMTextTemplateManagementModuleMenuProvider,
|
894
|
+
multi: true,
|
1099
895
|
},
|
1100
|
-
// {
|
1101
|
-
// title: 'Update',
|
1102
|
-
// command: 'update-entity',
|
1103
|
-
// priority: 'primary',
|
1104
|
-
// type: 'view',
|
1105
|
-
// scope: AXPEntityCommandScope.Individual
|
1106
|
-
// },
|
1107
896
|
{
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
type: 'delete',
|
1112
|
-
scope: AXPEntityCommandScope.Individual,
|
897
|
+
provide: AXP_SETTING_PROVIDER,
|
898
|
+
useClass: AXMTextTemplateManagementModuleSettingProvider,
|
899
|
+
multi: true,
|
1113
900
|
},
|
1114
|
-
],
|
1115
|
-
views: [
|
1116
901
|
{
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
columns: [],
|
1121
|
-
conditions: [],
|
1122
|
-
sorts: [],
|
902
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
903
|
+
useClass: AXMTextTemplateManagementModuleEntityProvider,
|
904
|
+
multi: true,
|
1123
905
|
},
|
1124
906
|
],
|
1125
|
-
}
|
1126
|
-
|
1127
|
-
},
|
1128
|
-
};
|
1129
|
-
return entityDef;
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
var templateVariable_entity = /*#__PURE__*/Object.freeze({
|
1133
|
-
__proto__: null,
|
1134
|
-
textTemplateVariableEntityFactory: textTemplateVariableEntityFactory
|
1135
|
-
});
|
907
|
+
}]
|
908
|
+
}] });
|
1136
909
|
|
1137
910
|
/**
|
1138
911
|
* Generated bundle index. Do not edit.
|
1139
912
|
*/
|
1140
913
|
|
1141
|
-
export {
|
1142
|
-
//# sourceMappingURL=acorex-modules-template-management.mjs.map
|
914
|
+
export { AXMTextTemplateManagementCategoryEntityModule, AXMTextTemplateManagementCategoryEntityService, AXMTextTemplateManagementCategoryEntityServiceImpl, AXMTextTemplateManagementModule, AXMTextTemplateManagementModuleConst, AXMTextTemplateManagementModuleEntityProvider, AXMTextTemplateManagementModuleMenuProvider, AXMTextTemplateManagementTemplateEntityModule, AXMTextTemplateManagementTemplateEntityService, AXMTextTemplateManagementTemplateEntityServiceImpl, categoryFactory, templateFactory };
|
915
|
+
//# sourceMappingURL=acorex-modules-text-template-management.mjs.map
|