@acorex/modules 18.2.0 → 18.2.1
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/application-management.source.d.ts +1 -0
- package/application-management/lib/services/application-module-management.service.d.ts +10 -0
- package/application-management/lib/services/edition-management.service.d.ts +10 -0
- package/application-management/lib/services/entity-management.service.d.ts +10 -0
- package/application-management/lib/services/feature-management.service.d.ts +10 -0
- package/application-management/lib/services/permission-management.service.d.ts +10 -0
- package/application-management/lib/services/property-management.service.d.ts +10 -0
- package/auth/lib/menu.provider.d.ts +1 -2
- package/conversation/index.d.ts +13 -4
- package/conversation/lib/conversation.module.d.ts +6 -3
- package/conversation/lib/entities/chat/chat.module.d.ts +23 -0
- package/conversation/lib/entities/chat/chat.type.d.ts +21 -0
- package/conversation/lib/entities/chat/components/chat-item/chat-item.component.d.ts +16 -0
- package/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.d.ts +5 -0
- package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +5 -0
- package/conversation/lib/entities/chat/components/chat-items/chat-items.component.d.ts +6 -0
- package/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.d.ts +28 -0
- package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +5 -0
- package/conversation/lib/{comments → entities/comments}/comment.module.d.ts +1 -1
- package/{platform-management/lib/comments/comment-management.service.d.ts → conversation/lib/entities/comments/comments.service.d.ts} +5 -2
- package/conversation/lib/{comments → entities/comments/pages}/comment-list-view.component.d.ts +1 -1
- package/converstion-test/README.md +4 -0
- package/converstion-test/index.d.ts +1 -0
- package/converstion-test/lib/converstion-test.module.d.ts +6 -0
- package/esm2022/application-management/lib/application-management.module.mjs +36 -1
- package/esm2022/application-management/lib/application-management.source.mjs +2 -1
- package/esm2022/application-management/lib/entities/application-module.entity.mjs +10 -13
- package/esm2022/application-management/lib/entities/edition.entity.mjs +10 -13
- package/esm2022/application-management/lib/entities/entity.entity.mjs +10 -13
- package/esm2022/application-management/lib/entities/feature.entity.mjs +10 -13
- package/esm2022/application-management/lib/entities/modules.entity.mjs +2 -2
- package/esm2022/application-management/lib/entities/permission.entity.mjs +10 -13
- package/esm2022/application-management/lib/entities/property.entity.mjs +10 -13
- package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +5 -4
- package/esm2022/application-management/lib/menu.provider.mjs +5 -5
- package/esm2022/application-management/lib/services/application-module-management.service.mjs +17 -0
- package/esm2022/application-management/lib/services/edition-management.service.mjs +17 -0
- package/esm2022/application-management/lib/services/entity-management.service.mjs +17 -0
- package/esm2022/application-management/lib/services/feature-management.service.mjs +17 -0
- package/esm2022/application-management/lib/services/permission-management.service.mjs +17 -0
- package/esm2022/application-management/lib/services/property-management.service.mjs +17 -0
- package/esm2022/auth/lib/account/account.module.mjs +6 -2
- package/esm2022/auth/lib/menu.provider.mjs +17 -22
- package/esm2022/conversation/index.mjs +14 -5
- package/esm2022/conversation/lib/conversation.module.mjs +13 -8
- package/esm2022/conversation/lib/entities/chat/chat.module.mjs +90 -0
- package/esm2022/conversation/lib/entities/chat/chat.type.mjs +2 -0
- package/esm2022/conversation/lib/entities/chat/components/chat-item/chat-item.component.mjs +35 -0
- package/esm2022/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.mjs +13 -0
- package/esm2022/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.mjs +15 -0
- package/esm2022/conversation/lib/entities/chat/components/chat-items/chat-items.component.mjs +15 -0
- package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +237 -0
- package/esm2022/conversation/lib/entities/chat/pages/chat/chat.component.mjs +15 -0
- package/esm2022/conversation/lib/entities/comments/comment.module.mjs +100 -0
- package/esm2022/conversation/lib/entities/comments/comments.service.mjs +20 -0
- package/esm2022/conversation/lib/entities/comments/comments.type.mjs +2 -0
- package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +393 -0
- package/esm2022/conversation/lib/{comments → entities/comments/pages}/comment-lookup-popup.component.mjs +1 -1
- package/esm2022/converstion-test/acorex-modules-converstion-test.mjs +5 -0
- package/esm2022/converstion-test/index.mjs +2 -0
- package/esm2022/converstion-test/lib/converstion-test.module.mjs +16 -0
- package/esm2022/form-template-management/acorex-modules-form-template-management.mjs +5 -0
- package/esm2022/form-template-management/index.mjs +2 -0
- package/esm2022/form-template-management/lib/const.mjs +8 -0
- package/esm2022/form-template-management/lib/entities/category/category.entity.mjs +241 -0
- package/esm2022/form-template-management/lib/entities/category/category.module.mjs +28 -0
- package/esm2022/form-template-management/lib/entities/category/category.service.mjs +17 -0
- package/esm2022/form-template-management/lib/entities/category/category.types.mjs +2 -0
- package/esm2022/form-template-management/lib/entities/category/index.mjs +5 -0
- package/esm2022/form-template-management/lib/entities/template/index.mjs +5 -0
- package/esm2022/form-template-management/lib/entities/template/template.entity.mjs +241 -0
- package/esm2022/form-template-management/lib/entities/template/template.module.mjs +28 -0
- package/esm2022/form-template-management/lib/entities/template/template.service.mjs +17 -0
- package/esm2022/form-template-management/lib/entities/template/template.types.mjs +2 -0
- package/esm2022/form-template-management/lib/entity.provider.mjs +25 -0
- package/esm2022/form-template-management/lib/form-template-management.module.mjs +77 -0
- package/esm2022/form-template-management/lib/menu.provider.mjs +45 -0
- package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +24 -0
- package/esm2022/localization-management/acorex-modules-localization-management.mjs +5 -0
- package/esm2022/localization-management/index.mjs +8 -0
- package/esm2022/localization-management/lib/culture/culture.entity.mjs +239 -0
- package/esm2022/localization-management/lib/culture/culture.service.mjs +17 -0
- package/esm2022/localization-management/lib/culture/culture.types.mjs +2 -0
- package/esm2022/localization-management/lib/culture/index.mjs +4 -0
- package/esm2022/localization-management/lib/entity.loader.mjs +36 -0
- package/esm2022/localization-management/lib/language/index.mjs +4 -0
- package/esm2022/localization-management/lib/language/language-slot/language-slot.component.mjs +30 -0
- package/esm2022/localization-management/lib/language/language.entity.mjs +239 -0
- package/esm2022/localization-management/lib/language/language.service.mjs +17 -0
- package/esm2022/localization-management/lib/language/language.types.mjs +2 -0
- package/esm2022/localization-management/lib/localization-management.module.mjs +99 -0
- package/esm2022/localization-management/lib/localization-management.source.mjs +4 -0
- package/esm2022/localization-management/lib/localization-store.service.mjs +34 -0
- package/esm2022/localization-management/lib/menu.provider.mjs +46 -0
- package/esm2022/localization-management/lib/time-zone/index.mjs +4 -0
- package/esm2022/localization-management/lib/time-zone/time-zone.entity.mjs +256 -0
- package/esm2022/localization-management/lib/time-zone/time-zone.service.mjs +17 -0
- package/esm2022/localization-management/lib/time-zone/time-zone.types.mjs +2 -0
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +3 -3
- 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 +8 -15
- package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +3 -3
- package/esm2022/notification-management/lib/menu.provider.mjs +6 -11
- package/esm2022/platform-management/index.mjs +2 -3
- package/esm2022/platform-management/lib/common/common.module.mjs +65 -0
- package/esm2022/platform-management/lib/common/common.source.mjs +5 -0
- package/esm2022/platform-management/lib/common/country/country-datasource.provider.mjs +27 -0
- package/esm2022/platform-management/lib/common/country/country.entity.mjs +696 -0
- package/esm2022/platform-management/lib/common/country/country.service.mjs +17 -0
- package/esm2022/platform-management/lib/common/country/country.types.mjs +2 -0
- package/esm2022/platform-management/lib/common/country/index.mjs +4 -0
- package/esm2022/platform-management/lib/common/currency/currency.entity.mjs +283 -0
- package/esm2022/platform-management/lib/common/currency/currency.service.mjs +17 -0
- package/esm2022/platform-management/lib/common/currency/currency.types.mjs +2 -0
- package/esm2022/platform-management/lib/common/currency/index.mjs +4 -0
- package/esm2022/platform-management/lib/common/entity.loader.mjs +36 -0
- package/esm2022/platform-management/lib/common/index.mjs +5 -0
- package/esm2022/platform-management/lib/common/province/index.mjs +4 -0
- package/esm2022/platform-management/lib/common/province/province.entity.mjs +307 -0
- package/esm2022/platform-management/lib/common/province/province.service.mjs +17 -0
- package/esm2022/platform-management/lib/common/province/province.types.mjs +2 -0
- package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +54 -4
- package/esm2022/platform-management/lib/menu.provider.mjs +30 -14
- package/esm2022/platform-management/lib/platform-management.module.mjs +11 -32
- package/esm2022/template-management/index.mjs +2 -2
- package/esm2022/template-management/lib/entities/category.entity.mjs +32 -15
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +90 -90
- package/esm2022/template-management/lib/entities/text-template.entity.mjs +26 -1
- package/esm2022/template-management/lib/entity.provider.mjs +32 -0
- package/esm2022/template-management/lib/menu.provider.mjs +5 -5
- package/esm2022/template-management/lib/template-management.module.mjs +4 -4
- package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs → acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs} +3 -3
- package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map → acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +338 -242
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs → acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs} +29 -28
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-B7BwymT_.mjs → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-B7BwymT_.mjs.map → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs → acorex-modules-auth-login.module-sFVL-lYB.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs.map → acorex-modules-auth-login.module-sFVL-lYB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs → acorex-modules-auth-master.layout-Bnt5qiio.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs.map → acorex-modules-auth-master.layout-Bnt5qiio.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs → acorex-modules-auth-password.component-BXL-aLTx.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs.map → acorex-modules-auth-password.component-BXL-aLTx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-87NrYq3i.mjs → acorex-modules-auth-password.component-ClaRp38G.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-87NrYq3i.mjs.map → acorex-modules-auth-password.component-ClaRp38G.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs → acorex-modules-auth-routes-MDneFw2m.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs.map → acorex-modules-auth-routes-MDneFw2m.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs → acorex-modules-auth-two-factor.module-BHulbf0N.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs.map → acorex-modules-auth-two-factor.module-BHulbf0N.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +413 -11
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-converstion-test.mjs +23 -0
- package/fesm2022/acorex-modules-converstion-test.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-management-designer.page-SoPH2V7i.mjs → acorex-modules-form-template-management-designer.page-DC18KFvK.mjs} +6 -6
- package/fesm2022/acorex-modules-form-template-management-designer.page-DC18KFvK.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +713 -0
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-localization-management.mjs +1019 -0
- package/fesm2022/acorex-modules-localization-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs +18 -29
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1424 -213
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-template-management.mjs +162 -124
- package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
- package/form-template-management/README.md +4 -0
- package/form-template-management/index.d.ts +1 -0
- package/form-template-management/lib/const.d.ts +7 -0
- package/form-template-management/lib/entities/category/category.entity.d.ts +3 -0
- package/form-template-management/lib/entities/category/category.module.d.ts +6 -0
- package/form-template-management/lib/entities/category/category.service.d.ts +10 -0
- package/form-template-management/lib/entities/category/category.types.d.ts +5 -0
- package/form-template-management/lib/entities/category/index.d.ts +4 -0
- package/form-template-management/lib/entities/template/index.d.ts +4 -0
- package/form-template-management/lib/entities/template/template.entity.d.ts +3 -0
- package/form-template-management/lib/entities/template/template.module.d.ts +6 -0
- package/form-template-management/lib/entities/template/template.service.d.ts +10 -0
- package/form-template-management/lib/entities/template/template.types.d.ts +5 -0
- package/form-template-management/lib/entity.provider.d.ts +9 -0
- package/form-template-management/lib/form-template-management.module.d.ts +10 -0
- package/form-template-management/lib/menu.provider.d.ts +5 -0
- package/form-template-management/lib/pages/designer/designer.page.d.ts +5 -0
- package/localization-management/README.md +4 -0
- package/localization-management/index.d.ts +7 -0
- package/localization-management/lib/culture/culture.entity.d.ts +3 -0
- package/localization-management/lib/culture/culture.service.d.ts +10 -0
- package/localization-management/lib/culture/culture.types.d.ts +12 -0
- package/localization-management/lib/culture/index.d.ts +3 -0
- package/localization-management/lib/entity.loader.d.ts +9 -0
- package/localization-management/lib/language/index.d.ts +3 -0
- package/localization-management/lib/language/language-slot/language-slot.component.d.ts +19 -0
- package/localization-management/lib/localization-management.module.d.ts +10 -0
- package/localization-management/lib/localization-management.source.d.ts +3 -0
- package/localization-management/lib/localization-store.service.d.ts +7 -0
- package/localization-management/lib/menu.provider.d.ts +5 -0
- package/localization-management/lib/time-zone/index.d.ts +3 -0
- package/localization-management/lib/time-zone/time-zone.entity.d.ts +3 -0
- package/localization-management/lib/time-zone/time-zone.service.d.ts +10 -0
- package/localization-management/lib/time-zone/time-zone.types.d.ts +9 -0
- package/notification-management/lib/menu.provider.d.ts +0 -1
- package/package.json +24 -12
- package/platform-management/index.d.ts +1 -2
- package/platform-management/lib/common/common.module.d.ts +6 -0
- package/platform-management/lib/common/common.source.d.ts +4 -0
- package/platform-management/lib/common/country/country-datasource.provider.d.ts +5 -0
- package/platform-management/lib/common/country/country.entity.d.ts +3 -0
- package/platform-management/lib/common/country/country.service.d.ts +10 -0
- package/platform-management/lib/common/country/country.types.d.ts +18 -0
- package/platform-management/lib/common/country/index.d.ts +3 -0
- package/platform-management/lib/common/currency/currency.entity.d.ts +3 -0
- package/platform-management/lib/common/currency/currency.service.d.ts +10 -0
- package/platform-management/lib/common/currency/currency.types.d.ts +6 -0
- package/platform-management/lib/common/currency/index.d.ts +3 -0
- package/platform-management/lib/{languages → common}/entity.loader.d.ts +3 -3
- package/platform-management/lib/common/index.d.ts +4 -0
- package/platform-management/lib/common/province/index.d.ts +3 -0
- package/platform-management/lib/common/province/province.entity.d.ts +3 -0
- package/platform-management/lib/common/province/province.service.d.ts +10 -0
- package/platform-management/lib/common/province/province.types.d.ts +7 -0
- package/platform-management/lib/menu.provider.d.ts +1 -1
- package/platform-management/lib/platform-management.module.d.ts +2 -1
- package/template-management/index.d.ts +1 -1
- package/template-management/lib/{entity.loader.d.ts → entity.provider.d.ts} +3 -3
- package/conversation/lib/comments/comments.service.d.ts +0 -5
- package/esm2022/conversation/lib/comments/comment-list-view.component.mjs +0 -393
- package/esm2022/conversation/lib/comments/comment.module.mjs +0 -89
- package/esm2022/conversation/lib/comments/comments.service.mjs +0 -4
- package/esm2022/conversation/lib/comments/comments.type.mjs +0 -2
- package/esm2022/form-management/acorex-modules-form-management.mjs +0 -5
- package/esm2022/form-management/index.mjs +0 -2
- package/esm2022/form-management/lib/designer/designer.page.mjs +0 -24
- package/esm2022/form-management/lib/form-management.module.mjs +0 -53
- package/esm2022/form-management/lib/menu.provider.mjs +0 -35
- package/esm2022/platform-management/lib/comments/comment-management.service.mjs +0 -18
- package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +0 -234
- package/esm2022/platform-management/lib/languages/entity.loader.mjs +0 -26
- package/esm2022/platform-management/lib/languages/index.mjs +0 -5
- package/esm2022/platform-management/lib/languages/language-management.service.mjs +0 -16
- package/esm2022/platform-management/lib/languages/language.types.mjs +0 -2
- package/esm2022/template-management/lib/entity.loader.mjs +0 -36
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-management.mjs +0 -93
- package/fesm2022/acorex-modules-form-management.mjs.map +0 -1
- package/form-management/README.md +0 -4
- package/form-management/index.d.ts +0 -1
- package/form-management/lib/designer/designer.page.d.ts +0 -5
- package/form-management/lib/form-management.module.d.ts +0 -8
- package/form-management/lib/menu.provider.d.ts +0 -5
- package/platform-management/lib/languages/index.d.ts +0 -4
- /package/conversation/lib/{comments → entities/comments}/comments.type.d.ts +0 -0
- /package/conversation/lib/{comments → entities/comments/pages}/comment-lookup-popup.component.d.ts +0 -0
- /package/{platform-management/lib/languages/entities → localization-management/lib/language}/language.entity.d.ts +0 -0
- /package/{platform-management/lib/languages/language-management.service.d.ts → localization-management/lib/language/language.service.d.ts} +0 -0
- /package/{platform-management/lib/languages → localization-management/lib/language}/language.types.d.ts +0 -0
@@ -5,37 +5,33 @@ import { AXMEntityCrudServiceImpl, AXP_MENU_PROVIDER, AXPEntityQueryType, AXPEnt
|
|
5
5
|
import { AXTranslationService } from '@acorex/core/translation';
|
6
6
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
7
7
|
|
8
|
-
class
|
8
|
+
class AXMTemplateModuleEntityProvider {
|
9
9
|
constructor() {
|
10
10
|
this.injector = inject(Injector);
|
11
11
|
}
|
12
12
|
async get(moduleName, entityName) {
|
13
|
-
|
13
|
+
if (moduleName == 'template-management') {
|
14
14
|
switch (entityName) {
|
15
15
|
case 'template': {
|
16
16
|
const entity = (await Promise.resolve().then(function () { return textTemplate_entity; })).templateEntityFactory;
|
17
|
-
|
18
|
-
break;
|
17
|
+
return entity(this.injector);
|
19
18
|
}
|
20
19
|
case 'variable': {
|
21
20
|
const entity = (await Promise.resolve().then(function () { return templateVariable_entity; })).textTemplateVariableEntityFactory;
|
22
|
-
|
23
|
-
break;
|
21
|
+
return entity(this.injector);
|
24
22
|
}
|
25
23
|
case 'category': {
|
26
24
|
const entity = (await Promise.resolve().then(function () { return category_entity; })).textTemplateCategoryEntityFactory;
|
27
|
-
|
28
|
-
break;
|
25
|
+
return entity(this.injector);
|
29
26
|
}
|
30
|
-
default:
|
31
|
-
resolve(null);
|
32
27
|
}
|
33
|
-
}
|
28
|
+
}
|
29
|
+
return null;
|
34
30
|
}
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
36
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
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 }); }
|
37
33
|
}
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityProvider, decorators: [{
|
39
35
|
type: Injectable
|
40
36
|
}] });
|
41
37
|
|
@@ -73,20 +69,20 @@ class AXMTextTemplateManagmentModuleMenuProvider {
|
|
73
69
|
this.translateService = inject(AXTranslationService);
|
74
70
|
}
|
75
71
|
async items() {
|
76
|
-
const scope = '
|
72
|
+
const scope = '#text-template'; // Scope used for translation lookup
|
77
73
|
return [
|
78
74
|
{
|
79
75
|
items: [
|
80
76
|
{
|
81
77
|
priority: 9001,
|
82
|
-
text:
|
78
|
+
text: `${scope}.module-name`,
|
83
79
|
icon: 'fa-solid fa-code',
|
84
80
|
data: {
|
85
81
|
// requiredPermission: 'demo.admin.settings',
|
86
82
|
},
|
87
83
|
children: [
|
88
84
|
{
|
89
|
-
text:
|
85
|
+
text: `${scope}.templates`,
|
90
86
|
path: '/demo/m/template-management/e/template/list',
|
91
87
|
icon: 'fa-solid fa-file-code',
|
92
88
|
data: {
|
@@ -94,7 +90,7 @@ class AXMTextTemplateManagmentModuleMenuProvider {
|
|
94
90
|
},
|
95
91
|
},
|
96
92
|
{
|
97
|
-
text:
|
93
|
+
text: `${scope}.category`,
|
98
94
|
path: '/demo/m/template-management/e/category/list',
|
99
95
|
icon: 'fa-solid fa-layer-group',
|
100
96
|
data: {
|
@@ -115,7 +111,7 @@ class AXMTemplateManagementModule {
|
|
115
111
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, providers: [
|
116
112
|
{
|
117
113
|
provide: AXP_ENTITY_DEFINITION_LOADER,
|
118
|
-
useClass:
|
114
|
+
useClass: AXMTemplateModuleEntityProvider,
|
119
115
|
multi: true,
|
120
116
|
},
|
121
117
|
{
|
@@ -142,7 +138,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
142
138
|
providers: [
|
143
139
|
{
|
144
140
|
provide: AXP_ENTITY_DEFINITION_LOADER,
|
145
|
-
useClass:
|
141
|
+
useClass: AXMTemplateModuleEntityProvider,
|
146
142
|
multi: true,
|
147
143
|
},
|
148
144
|
{
|
@@ -164,37 +160,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
164
160
|
|
165
161
|
async function textTemplateCategoryEntityFactory(injector) {
|
166
162
|
const dataService = injector.get(AXMTextTemplateCategoryService);
|
163
|
+
const moduleName = 'template-management';
|
164
|
+
const scope = `#${moduleName}`;
|
167
165
|
const entityDef = {
|
168
|
-
module:
|
169
|
-
name: '
|
170
|
-
source: '
|
171
|
-
title:
|
166
|
+
module: moduleName,
|
167
|
+
name: 'category',
|
168
|
+
source: 'templateManagement.category',
|
169
|
+
title: `#common.category`,
|
172
170
|
formats: {
|
173
|
-
individual: '
|
174
|
-
plural: '
|
171
|
+
individual: '#common.category',
|
172
|
+
plural: '#common.categories',
|
175
173
|
},
|
176
174
|
relatedEntities: [],
|
177
175
|
groups: [
|
178
176
|
{
|
179
177
|
id: 'category',
|
180
|
-
title: '
|
178
|
+
title: '#common.category',
|
181
179
|
},
|
182
180
|
],
|
183
181
|
properties: [
|
184
182
|
{
|
185
183
|
name: 'name',
|
186
|
-
title: '
|
184
|
+
title: '#common.name',
|
187
185
|
groupId: 'category',
|
186
|
+
options: {
|
187
|
+
sort: {
|
188
|
+
enabled: true,
|
189
|
+
},
|
190
|
+
},
|
188
191
|
schema: {
|
189
192
|
dataType: 'string',
|
190
193
|
interface: {
|
191
194
|
type: AXPWidgetsCatalog.text,
|
192
195
|
},
|
193
196
|
},
|
197
|
+
validations: [
|
198
|
+
{
|
199
|
+
rule: 'required',
|
200
|
+
},
|
201
|
+
],
|
194
202
|
},
|
195
203
|
{
|
196
204
|
name: 'title',
|
197
|
-
title: '
|
205
|
+
title: '#common.title',
|
198
206
|
groupId: 'category',
|
199
207
|
schema: {
|
200
208
|
dataType: 'string',
|
@@ -202,6 +210,11 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
202
210
|
type: AXPWidgetsCatalog.text,
|
203
211
|
},
|
204
212
|
},
|
213
|
+
validations: [
|
214
|
+
{
|
215
|
+
rule: 'required',
|
216
|
+
},
|
217
|
+
],
|
205
218
|
},
|
206
219
|
],
|
207
220
|
columns: [{ name: 'name' }, { name: 'title' }],
|
@@ -348,28 +361,28 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
348
361
|
list: {
|
349
362
|
actions: [
|
350
363
|
{
|
351
|
-
title:
|
364
|
+
title: `#common.create #common.category`,
|
352
365
|
command: 'create-entity',
|
353
366
|
priority: 'primary',
|
354
367
|
type: 'create',
|
355
368
|
scope: AXPEntityCommandScope.TypeLevel,
|
356
369
|
},
|
357
370
|
{
|
358
|
-
title: '
|
371
|
+
title: '#common.deleteItems',
|
359
372
|
command: 'delete-entity',
|
360
373
|
priority: 'primary',
|
361
374
|
type: 'delete',
|
362
375
|
scope: AXPEntityCommandScope.Selected,
|
363
376
|
},
|
364
377
|
{
|
365
|
-
title: '
|
378
|
+
title: '#common.detail',
|
366
379
|
command: 'open-entity',
|
367
380
|
priority: 'primary',
|
368
381
|
type: 'view',
|
369
382
|
scope: AXPEntityCommandScope.Individual,
|
370
383
|
},
|
371
384
|
{
|
372
|
-
title: '
|
385
|
+
title: '#common.delete',
|
373
386
|
command: 'delete-entity',
|
374
387
|
priority: 'primary',
|
375
388
|
type: 'delete',
|
@@ -379,7 +392,7 @@ async function textTemplateCategoryEntityFactory(injector) {
|
|
379
392
|
views: [
|
380
393
|
{
|
381
394
|
name: 'all',
|
382
|
-
title: '
|
395
|
+
title: '#common.allItem',
|
383
396
|
fixed: true,
|
384
397
|
columns: [],
|
385
398
|
conditions: [],
|
@@ -441,6 +454,11 @@ async function templateEntityFactory(injector) {
|
|
441
454
|
type: AXPWidgetsCatalog.text,
|
442
455
|
},
|
443
456
|
},
|
457
|
+
validations: [
|
458
|
+
{
|
459
|
+
rule: 'required',
|
460
|
+
},
|
461
|
+
],
|
444
462
|
},
|
445
463
|
{
|
446
464
|
name: 'title',
|
@@ -452,6 +470,11 @@ async function templateEntityFactory(injector) {
|
|
452
470
|
type: AXPWidgetsCatalog.text,
|
453
471
|
},
|
454
472
|
},
|
473
|
+
validations: [
|
474
|
+
{
|
475
|
+
rule: 'required',
|
476
|
+
},
|
477
|
+
],
|
455
478
|
},
|
456
479
|
{
|
457
480
|
name: 'content',
|
@@ -463,6 +486,11 @@ async function templateEntityFactory(injector) {
|
|
463
486
|
type: AXPWidgetsCatalog.richText,
|
464
487
|
},
|
465
488
|
},
|
489
|
+
validations: [
|
490
|
+
{
|
491
|
+
rule: 'required',
|
492
|
+
},
|
493
|
+
],
|
466
494
|
},
|
467
495
|
{
|
468
496
|
name: 'category.id',
|
@@ -478,6 +506,11 @@ async function templateEntityFactory(injector) {
|
|
478
506
|
},
|
479
507
|
},
|
480
508
|
},
|
509
|
+
validations: [
|
510
|
+
{
|
511
|
+
rule: 'required',
|
512
|
+
},
|
513
|
+
],
|
481
514
|
},
|
482
515
|
{
|
483
516
|
name: 'category.title',
|
@@ -510,6 +543,11 @@ async function templateEntityFactory(injector) {
|
|
510
543
|
},
|
511
544
|
},
|
512
545
|
},
|
546
|
+
validations: [
|
547
|
+
{
|
548
|
+
rule: 'required',
|
549
|
+
},
|
550
|
+
],
|
513
551
|
},
|
514
552
|
],
|
515
553
|
columns: [{ name: 'name' }, { name: 'title' }, { name: 'category.title' }, { name: 'type' }],
|
@@ -795,14 +833,14 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
795
833
|
title: 'Template Variables',
|
796
834
|
formats: {
|
797
835
|
individual: 'TemplateVariable',
|
798
|
-
plural: 'TemplateVariables'
|
836
|
+
plural: 'TemplateVariables',
|
799
837
|
},
|
800
838
|
relatedEntities: [],
|
801
839
|
groups: [
|
802
840
|
{
|
803
841
|
id: 'templateVariable',
|
804
|
-
title: 'TemplateVariable'
|
805
|
-
}
|
842
|
+
title: 'TemplateVariable',
|
843
|
+
},
|
806
844
|
],
|
807
845
|
properties: [
|
808
846
|
{
|
@@ -812,9 +850,9 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
812
850
|
schema: {
|
813
851
|
dataType: 'string',
|
814
852
|
interface: {
|
815
|
-
type: AXPWidgetsCatalog.text
|
816
|
-
}
|
817
|
-
}
|
853
|
+
type: AXPWidgetsCatalog.text,
|
854
|
+
},
|
855
|
+
},
|
818
856
|
},
|
819
857
|
{
|
820
858
|
name: 'title',
|
@@ -823,9 +861,9 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
823
861
|
schema: {
|
824
862
|
dataType: 'string',
|
825
863
|
interface: {
|
826
|
-
type: AXPWidgetsCatalog.text
|
827
|
-
}
|
828
|
-
}
|
864
|
+
type: AXPWidgetsCatalog.text,
|
865
|
+
},
|
866
|
+
},
|
829
867
|
},
|
830
868
|
{
|
831
869
|
name: 'type',
|
@@ -834,9 +872,9 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
834
872
|
schema: {
|
835
873
|
dataType: 'string',
|
836
874
|
interface: {
|
837
|
-
type: AXPWidgetsCatalog.select
|
838
|
-
}
|
839
|
-
}
|
875
|
+
type: AXPWidgetsCatalog.select,
|
876
|
+
},
|
877
|
+
},
|
840
878
|
},
|
841
879
|
{
|
842
880
|
name: 'required',
|
@@ -845,10 +883,10 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
845
883
|
schema: {
|
846
884
|
dataType: 'boolean',
|
847
885
|
interface: {
|
848
|
-
type: AXPWidgetsCatalog.toggle
|
849
|
-
}
|
850
|
-
}
|
851
|
-
}
|
886
|
+
type: AXPWidgetsCatalog.toggle,
|
887
|
+
},
|
888
|
+
},
|
889
|
+
},
|
852
890
|
],
|
853
891
|
columns: [{ name: 'name' }, { name: 'title' }, { name: 'required' }],
|
854
892
|
commands: {
|
@@ -857,13 +895,13 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
857
895
|
const item = await dataService.getOne(data.globalTemplateId);
|
858
896
|
(item.templateVariables ??= []).push(data);
|
859
897
|
return await dataService.updateOne(data.globalTemplateId, item);
|
860
|
-
}
|
898
|
+
},
|
861
899
|
},
|
862
900
|
delete: {
|
863
901
|
execute: async (id) => {
|
864
902
|
// await await dataService.templateVariableDataProvider.deleteOne(id);
|
865
903
|
return Promise.resolve();
|
866
|
-
}
|
904
|
+
},
|
867
905
|
},
|
868
906
|
update: {
|
869
907
|
execute: async (data) => {
|
@@ -874,8 +912,8 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
874
912
|
resolve(data);
|
875
913
|
}, 1000);
|
876
914
|
});
|
877
|
-
}
|
878
|
-
}
|
915
|
+
},
|
916
|
+
},
|
879
917
|
},
|
880
918
|
queries: {
|
881
919
|
byKey: {
|
@@ -887,15 +925,15 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
887
925
|
}, 500);
|
888
926
|
});
|
889
927
|
},
|
890
|
-
type: AXPEntityQueryType.Single
|
928
|
+
type: AXPEntityQueryType.Single,
|
891
929
|
},
|
892
930
|
list: {
|
893
931
|
execute: async (e) => {
|
894
932
|
if (e.filter != null && e.filter.filters != null && e.filter.filters[0].value != null) {
|
895
933
|
const parentItem = await dataService.getOne(e.filter?.filters[0].value);
|
896
934
|
return {
|
897
|
-
totalCount: parentItem.templateVariables
|
898
|
-
items: parentItem.templateVariables
|
935
|
+
totalCount: parentItem.templateVariables?.length ?? 0,
|
936
|
+
items: parentItem.templateVariables ?? [],
|
899
937
|
};
|
900
938
|
}
|
901
939
|
else {
|
@@ -903,16 +941,16 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
903
941
|
return [];
|
904
942
|
}
|
905
943
|
},
|
906
|
-
type: AXPEntityQueryType.List
|
907
|
-
}
|
944
|
+
type: AXPEntityQueryType.List,
|
945
|
+
},
|
908
946
|
},
|
909
947
|
interfaces: {
|
910
948
|
master: {
|
911
949
|
create: {
|
912
950
|
sections: [
|
913
951
|
{
|
914
|
-
id: 'templateVariable'
|
915
|
-
}
|
952
|
+
id: 'templateVariable',
|
953
|
+
},
|
916
954
|
],
|
917
955
|
properties: [
|
918
956
|
{
|
@@ -920,44 +958,44 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
920
958
|
layout: {
|
921
959
|
positions: {
|
922
960
|
lg: {
|
923
|
-
colSpan: 6
|
924
|
-
}
|
925
|
-
}
|
926
|
-
}
|
961
|
+
colSpan: 6,
|
962
|
+
},
|
963
|
+
},
|
964
|
+
},
|
927
965
|
},
|
928
966
|
{
|
929
967
|
name: 'title',
|
930
968
|
layout: {
|
931
969
|
positions: {
|
932
970
|
lg: {
|
933
|
-
colSpan: 6
|
934
|
-
}
|
935
|
-
}
|
936
|
-
}
|
971
|
+
colSpan: 6,
|
972
|
+
},
|
973
|
+
},
|
974
|
+
},
|
937
975
|
},
|
938
976
|
{
|
939
977
|
name: 'required',
|
940
978
|
layout: {
|
941
979
|
positions: {
|
942
980
|
lg: {
|
943
|
-
colSpan: 6
|
944
|
-
}
|
945
|
-
}
|
946
|
-
}
|
947
|
-
}
|
948
|
-
]
|
981
|
+
colSpan: 6,
|
982
|
+
},
|
983
|
+
},
|
984
|
+
},
|
985
|
+
},
|
986
|
+
],
|
949
987
|
},
|
950
988
|
update: {
|
951
989
|
sections: [
|
952
990
|
{
|
953
|
-
id: 'templateVariable'
|
991
|
+
id: 'templateVariable',
|
954
992
|
},
|
955
993
|
{
|
956
|
-
id: 'schema'
|
994
|
+
id: 'schema',
|
957
995
|
},
|
958
996
|
{
|
959
|
-
id: 'interface'
|
960
|
-
}
|
997
|
+
id: 'interface',
|
998
|
+
},
|
961
999
|
],
|
962
1000
|
properties: [
|
963
1001
|
{
|
@@ -965,49 +1003,49 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
965
1003
|
layout: {
|
966
1004
|
positions: {
|
967
1005
|
lg: {
|
968
|
-
colSpan: 6
|
969
|
-
}
|
970
|
-
}
|
971
|
-
}
|
1006
|
+
colSpan: 6,
|
1007
|
+
},
|
1008
|
+
},
|
1009
|
+
},
|
972
1010
|
},
|
973
1011
|
{
|
974
1012
|
name: 'title',
|
975
1013
|
layout: {
|
976
1014
|
positions: {
|
977
1015
|
lg: {
|
978
|
-
colSpan: 6
|
979
|
-
}
|
980
|
-
}
|
981
|
-
}
|
1016
|
+
colSpan: 6,
|
1017
|
+
},
|
1018
|
+
},
|
1019
|
+
},
|
982
1020
|
},
|
983
1021
|
{
|
984
1022
|
name: 'schema.nullable',
|
985
1023
|
layout: {
|
986
1024
|
positions: {
|
987
1025
|
lg: {
|
988
|
-
colSpan: 6
|
989
|
-
}
|
990
|
-
}
|
991
|
-
}
|
1026
|
+
colSpan: 6,
|
1027
|
+
},
|
1028
|
+
},
|
1029
|
+
},
|
992
1030
|
},
|
993
1031
|
{
|
994
1032
|
name: 'required',
|
995
1033
|
layout: {
|
996
1034
|
positions: {
|
997
1035
|
lg: {
|
998
|
-
colSpan: 6
|
999
|
-
}
|
1000
|
-
}
|
1001
|
-
}
|
1002
|
-
}
|
1003
|
-
]
|
1036
|
+
colSpan: 6,
|
1037
|
+
},
|
1038
|
+
},
|
1039
|
+
},
|
1040
|
+
},
|
1041
|
+
],
|
1004
1042
|
},
|
1005
1043
|
single: {
|
1006
1044
|
title: '{{title}}',
|
1007
1045
|
sections: [
|
1008
1046
|
{
|
1009
|
-
id: 'templateVariable'
|
1010
|
-
}
|
1047
|
+
id: 'templateVariable',
|
1048
|
+
},
|
1011
1049
|
],
|
1012
1050
|
properties: [
|
1013
1051
|
{
|
@@ -1015,33 +1053,33 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
1015
1053
|
layout: {
|
1016
1054
|
positions: {
|
1017
1055
|
lg: {
|
1018
|
-
colSpan: 6
|
1019
|
-
}
|
1020
|
-
}
|
1021
|
-
}
|
1056
|
+
colSpan: 6,
|
1057
|
+
},
|
1058
|
+
},
|
1059
|
+
},
|
1022
1060
|
},
|
1023
1061
|
{
|
1024
1062
|
name: 'title',
|
1025
1063
|
layout: {
|
1026
1064
|
positions: {
|
1027
1065
|
lg: {
|
1028
|
-
colSpan: 6
|
1029
|
-
}
|
1030
|
-
}
|
1031
|
-
}
|
1066
|
+
colSpan: 6,
|
1067
|
+
},
|
1068
|
+
},
|
1069
|
+
},
|
1032
1070
|
},
|
1033
1071
|
{
|
1034
1072
|
name: 'required',
|
1035
1073
|
layout: {
|
1036
1074
|
positions: {
|
1037
1075
|
lg: {
|
1038
|
-
colSpan: 12
|
1039
|
-
}
|
1040
|
-
}
|
1041
|
-
}
|
1042
|
-
}
|
1076
|
+
colSpan: 12,
|
1077
|
+
},
|
1078
|
+
},
|
1079
|
+
},
|
1080
|
+
},
|
1043
1081
|
],
|
1044
|
-
actions: []
|
1082
|
+
actions: [],
|
1045
1083
|
},
|
1046
1084
|
list: {
|
1047
1085
|
actions: [
|
@@ -1050,14 +1088,14 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
1050
1088
|
command: 'create-entity',
|
1051
1089
|
priority: 'primary',
|
1052
1090
|
type: 'create',
|
1053
|
-
scope: AXPEntityCommandScope.TypeLevel
|
1091
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
1054
1092
|
},
|
1055
1093
|
{
|
1056
1094
|
title: 'Delete Items',
|
1057
1095
|
command: 'delete-entity',
|
1058
1096
|
priority: 'primary',
|
1059
1097
|
type: 'delete',
|
1060
|
-
scope: AXPEntityCommandScope.Selected
|
1098
|
+
scope: AXPEntityCommandScope.Selected,
|
1061
1099
|
},
|
1062
1100
|
// {
|
1063
1101
|
// title: 'Update',
|
@@ -1071,8 +1109,8 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
1071
1109
|
command: 'delete-entity',
|
1072
1110
|
priority: 'primary',
|
1073
1111
|
type: 'delete',
|
1074
|
-
scope: AXPEntityCommandScope.Individual
|
1075
|
-
}
|
1112
|
+
scope: AXPEntityCommandScope.Individual,
|
1113
|
+
},
|
1076
1114
|
],
|
1077
1115
|
views: [
|
1078
1116
|
{
|
@@ -1081,12 +1119,12 @@ async function textTemplateVariableEntityFactory(injector) {
|
|
1081
1119
|
fixed: true,
|
1082
1120
|
columns: [],
|
1083
1121
|
conditions: [],
|
1084
|
-
sorts: []
|
1085
|
-
}
|
1086
|
-
]
|
1087
|
-
}
|
1088
|
-
}
|
1089
|
-
}
|
1122
|
+
sorts: [],
|
1123
|
+
},
|
1124
|
+
],
|
1125
|
+
},
|
1126
|
+
},
|
1127
|
+
},
|
1090
1128
|
};
|
1091
1129
|
return entityDef;
|
1092
1130
|
}
|
@@ -1100,5 +1138,5 @@ var templateVariable_entity = /*#__PURE__*/Object.freeze({
|
|
1100
1138
|
* Generated bundle index. Do not edit.
|
1101
1139
|
*/
|
1102
1140
|
|
1103
|
-
export { AXMTemplateManagementModule,
|
1141
|
+
export { AXMTemplateManagementModule, AXMTemplateModuleEntityProvider, AXMTextTemplateCategoryService, AXMTextTemplateCategoryServiceImpl, AXMTextTemplateService, AXMTextTemplateServiceImpl, CATEGORY_SOURCE_NAME, TEMPLATE_SOURCE_NAME, templateEntityFactory, textTemplateCategoryEntityFactory, textTemplateVariableEntityFactory };
|
1104
1142
|
//# sourceMappingURL=acorex-modules-template-management.mjs.map
|