@acorex/modules 18.1.6 → 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.service.d.ts +1 -8
- package/application-management/lib/application-management.source.d.ts +1 -0
- package/application-management/lib/menu.provider.d.ts +1 -0
- package/application-management/lib/services/application-management.service.d.ts +10 -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/module-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 -1
- package/conversation/README.md +3 -0
- package/conversation/index.d.ts +14 -0
- package/conversation/lib/conversation.module.d.ts +11 -0
- 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/entities/comments/comment.module.d.ts +25 -0
- package/conversation/lib/entities/comments/comments.service.d.ts +13 -0
- package/conversation/lib/entities/comments/comments.type.d.ts +74 -0
- package/conversation/lib/entities/comments/pages/comment-list-view.component.d.ts +66 -0
- package/conversation/lib/entities/comments/pages/comment-lookup-popup.component.d.ts +10 -0
- 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 +46 -1
- package/esm2022/application-management/lib/application-management.service.mjs +2 -18
- 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/applications.entity.mjs +8 -8
- 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 +12 -15
- 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 +10 -4
- package/esm2022/application-management/lib/services/application-management.service.mjs +17 -0
- 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/module-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/account/profile/profile-slot.component.mjs +3 -3
- package/esm2022/auth/lib/menu.provider.mjs +17 -14
- package/esm2022/conversation/acorex-modules-conversation.mjs +5 -0
- package/esm2022/conversation/index.mjs +15 -0
- package/esm2022/conversation/lib/conversation.module.mjs +22 -0
- 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/entities/comments/pages/comment-lookup-popup.component.mjs +56 -0
- 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 +13 -12
- package/esm2022/notification-management/lib/notification-management.module.mjs +5 -5
- 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 +37 -15
- package/esm2022/platform-management/lib/platform-management.module.mjs +12 -33
- package/esm2022/template-management/index.mjs +2 -2
- package/esm2022/template-management/lib/entities/category.entity.mjs +34 -16
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +103 -102
- package/esm2022/template-management/lib/entities/text-template.entity.mjs +28 -2
- package/esm2022/template-management/lib/entity.provider.mjs +32 -0
- package/esm2022/template-management/lib/menu.provider.mjs +14 -8
- 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 +399 -283
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs → acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs} +30 -23
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs.map → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-A7u1YYeo.mjs → acorex-modules-auth-login.module-sFVL-lYB.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-A7u1YYeo.mjs.map → acorex-modules-auth-login.module-sFVL-lYB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout--UllrmW0.mjs → acorex-modules-auth-master.layout-Bnt5qiio.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout--UllrmW0.mjs.map → acorex-modules-auth-master.layout-Bnt5qiio.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-Dv0VXzh_.mjs → acorex-modules-auth-password.component-BXL-aLTx.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-Dv0VXzh_.mjs.map → acorex-modules-auth-password.component-BXL-aLTx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-BjqQ-qVo.mjs → acorex-modules-auth-password.component-ClaRp38G.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-BjqQ-qVo.mjs.map → acorex-modules-auth-password.component-ClaRp38G.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-C4eNPru3.mjs → acorex-modules-auth-routes-MDneFw2m.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-C4eNPru3.mjs.map → acorex-modules-auth-routes-MDneFw2m.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs → acorex-modules-auth-two-factor.module-BHulbf0N.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-C6V_pb_Q.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 +952 -0
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -0
- 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 +29 -35
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1430 -214
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-template-management.mjs +187 -141
- 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/package.json +29 -11
- 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 +2 -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/template-management/lib/menu.provider.d.ts +2 -1
- 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 -29
- 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-B0aeYVeJ.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 -88
- 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 -4
- package/platform-management/lib/comments/comment-management.service.d.ts +0 -10
- package/platform-management/lib/languages/index.d.ts +0 -4
- /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
@@ -1,9 +1,9 @@
|
|
1
|
-
import { isSmallScreen, getChildDrawer, AXPStickyDirective, AXPGridLayoutDirective,
|
1
|
+
import { isSmallScreen, getChildDrawer, AXPStickyDirective, AXPGridLayoutDirective, AXPDataGenerator, AXPEntityStorageService, AXPEntityDataProviderImpl, AXMEntityCrudServiceImpl, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
|
2
2
|
import { AXPEntityDetailViewModelResolver, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
3
3
|
import * as i1$1 from '@acorex/platform/workflow';
|
4
4
|
import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
5
5
|
import * as i0 from '@angular/core';
|
6
|
-
import { inject, signal, Component, ChangeDetectionStrategy,
|
6
|
+
import { inject, signal, Component, ChangeDetectionStrategy, Injectable, Injector, NgModule, Optional, Inject } from '@angular/core';
|
7
7
|
import * as i2 from '@angular/router';
|
8
8
|
import { ActivatedRoute, RouterModule } from '@angular/router';
|
9
9
|
import { AXPEntityDetailListViewComponent, AXPRootLayoutComponent } from '@acorex/platform/themes/default';
|
@@ -24,7 +24,8 @@ import { AXLoadingModule } from '@acorex/components/loading';
|
|
24
24
|
import { AXPopoverModule } from '@acorex/components/popover';
|
25
25
|
import * as i6 from '@acorex/components/tabs';
|
26
26
|
import { AXTabsModule } from '@acorex/components/tabs';
|
27
|
-
import
|
27
|
+
import * as i10 from '@acorex/core/translation';
|
28
|
+
import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
|
28
29
|
import * as i9 from '@acorex/platform/layout/builder';
|
29
30
|
import { AXPLayoutBuilderModule, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
30
31
|
import { AXPWidgetsModule } from '@acorex/platform/widgets';
|
@@ -56,11 +57,11 @@ class AXPModuleEntityDetailViewComponent {
|
|
56
57
|
this.vm.destroy();
|
57
58
|
}
|
58
59
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPModuleEntityDetailViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
59
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPModuleEntityDetailViewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div
|
60
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPModuleEntityDetailViewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\"\n>\n <div\n class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\"\n #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\"\n [stickyOffset]=\"30\"\n >\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() | translate | async }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item\n [active]=\"last\"\n [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\"\n >\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title | translate | async\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item\n [text]=\"tr.title\"\n class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!-- Start Sections -->\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-4\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button\n class=\"ax-xs\"\n color=\"ghost\"\n [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\"\n >\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() | translate | async }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n @if(vm.relatedEntities().length) {\n <ax-tabs\n [look]=\"'with-line'\"\n class=\"ax-mt-2 ax-font-semibold\"\n #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\"\n >\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"(e.title() | translate | async)!\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n </ax-tabs>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <div [class.ax-hidden]=\"$index !== selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n </div>\n } }\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i5.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i6.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i6.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i7.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i7.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i7.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "component", type: i8.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i8.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type:
|
60
61
|
//
|
61
62
|
AXPLayoutBuilderModule }, { kind: "component", type: i9.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["onChanged", "contextChange"] }, { kind: "component", type: i9.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPStickyDirective, selector: "[axpSticky]", inputs: ["axpSticky", "stickyOffset", "stickyParent", "stickyTarget"], outputs: ["isStickyChange"], exportAs: ["axpSticky"] }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[gridLayout]", inputs: ["gridLayout"] }, { kind: "ngmodule", type:
|
62
63
|
//
|
63
|
-
AXTranslationModule }, { kind: "component", type: AXPEntityDetailListViewComponent, selector: "axp-entity-detail-list-view", inputs: ["viewModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
64
|
+
AXTranslationModule }, { kind: "pipe", type: i10.AXTranslatorPipe, name: "translate" }, { kind: "component", type: AXPEntityDetailListViewComponent, selector: "axp-entity-detail-list-view", inputs: ["viewModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
64
65
|
}
|
65
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPModuleEntityDetailViewComponent, decorators: [{
|
66
67
|
type: Component,
|
@@ -86,7 +87,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
86
87
|
//
|
87
88
|
AXTranslationModule,
|
88
89
|
AXPEntityDetailListViewComponent,
|
89
|
-
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div
|
90
|
+
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\"\n>\n <div\n class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\"\n #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\"\n [stickyOffset]=\"30\"\n >\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() | translate | async }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item\n [active]=\"last\"\n [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\"\n >\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title | translate | async\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item\n [text]=\"tr.title\"\n class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!-- Start Sections -->\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-4\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button\n class=\"ax-xs\"\n color=\"ghost\"\n [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\"\n >\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() | translate | async }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n @if(vm.relatedEntities().length) {\n <ax-tabs\n [look]=\"'with-line'\"\n class=\"ax-mt-2 ax-font-semibold\"\n #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\"\n >\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"(e.title() | translate | async)!\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n </ax-tabs>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <div [class.ax-hidden]=\"$index !== selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n </div>\n } }\n </div>\n</div>\n" }]
|
90
91
|
}] });
|
91
92
|
|
92
93
|
const AXMApplcationManagementroutes = [
|
@@ -96,7 +97,7 @@ const AXMApplcationManagementroutes = [
|
|
96
97
|
children: [
|
97
98
|
{
|
98
99
|
path: 'module-designer',
|
99
|
-
loadComponent: () => import('./acorex-modules-application-management-module-designer.component-
|
100
|
+
loadComponent: () => import('./acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs').then((c) => c.AXMModuleDesignerComponent),
|
100
101
|
children: [
|
101
102
|
{
|
102
103
|
path: 'm/:module',
|
@@ -115,6 +116,176 @@ const AXMApplcationManagementroutes = [
|
|
115
116
|
},
|
116
117
|
];
|
117
118
|
|
119
|
+
const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
|
120
|
+
const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
|
121
|
+
const name = AXPDataGenerator.pick(source);
|
122
|
+
return {
|
123
|
+
id: AXPDataGenerator.uuid(),
|
124
|
+
name: name,
|
125
|
+
title: name,
|
126
|
+
isArchived: AXPDataGenerator.boolean(),
|
127
|
+
};
|
128
|
+
});
|
129
|
+
const MODULES = Array.from({ length: 5 }).map((_, i) => {
|
130
|
+
const source = [
|
131
|
+
'UserManagement',
|
132
|
+
'Analytics',
|
133
|
+
'Reporting',
|
134
|
+
'PaymentGateway',
|
135
|
+
'NotificationService',
|
136
|
+
'InventoryManagement',
|
137
|
+
];
|
138
|
+
const name = AXPDataGenerator.pick(source);
|
139
|
+
return {
|
140
|
+
id: AXPDataGenerator.uuid(),
|
141
|
+
name: name,
|
142
|
+
title: name,
|
143
|
+
isArchived: AXPDataGenerator.boolean(),
|
144
|
+
};
|
145
|
+
});
|
146
|
+
const APPLICATIONS_MODULES = Array.from({ length: 5 }).map((_, i) => {
|
147
|
+
return {
|
148
|
+
id: AXPDataGenerator.uuid(),
|
149
|
+
application: AXPDataGenerator.pick(APPLICATIONS),
|
150
|
+
module: AXPDataGenerator.pick(MODULES),
|
151
|
+
};
|
152
|
+
});
|
153
|
+
const EDITIONS = Array.from({ length: 5 }).map((_, i) => {
|
154
|
+
const source = ['Standard', 'Premium', 'Gold', 'Silver', 'Bronze', 'Platinum', 'Enterprise'];
|
155
|
+
const name = AXPDataGenerator.pick(source);
|
156
|
+
return {
|
157
|
+
id: AXPDataGenerator.uuid(),
|
158
|
+
application: AXPDataGenerator.pick(APPLICATIONS),
|
159
|
+
name: name,
|
160
|
+
title: name,
|
161
|
+
isArchived: AXPDataGenerator.boolean(),
|
162
|
+
};
|
163
|
+
});
|
164
|
+
const FEATURES = Array.from({ length: 5 }).map((_, i) => {
|
165
|
+
const source = [
|
166
|
+
'User Authentication',
|
167
|
+
'Data Encryption',
|
168
|
+
'Real-time Notifications',
|
169
|
+
'Customizable Dashboards',
|
170
|
+
'API Access',
|
171
|
+
'Multi-language Support',
|
172
|
+
'Analytics and Reporting',
|
173
|
+
'Offline Mode',
|
174
|
+
];
|
175
|
+
const name = AXPDataGenerator.pick(source);
|
176
|
+
return {
|
177
|
+
id: AXPDataGenerator.uuid(),
|
178
|
+
moduleId: AXPDataGenerator.pick(MODULES).id,
|
179
|
+
name: name,
|
180
|
+
title: name,
|
181
|
+
isArchived: AXPDataGenerator.boolean(),
|
182
|
+
};
|
183
|
+
});
|
184
|
+
const ENTITIES = Array.from({ length: 5 }).map((_, i) => {
|
185
|
+
const source = ['User', 'Product', 'Order', 'Customer', 'Transaction', 'Category', 'Review', 'InventoryItem'];
|
186
|
+
const name = AXPDataGenerator.pick(source);
|
187
|
+
return {
|
188
|
+
id: AXPDataGenerator.uuid(),
|
189
|
+
moduleId: AXPDataGenerator.pick(MODULES).id,
|
190
|
+
name: name,
|
191
|
+
title: name,
|
192
|
+
isArchived: AXPDataGenerator.boolean(),
|
193
|
+
};
|
194
|
+
});
|
195
|
+
const PERMISSIONS = Array.from({ length: 5 }).map((_, i) => {
|
196
|
+
const source = ['Read', 'Write', 'Update', 'Delete', 'ManageUsers', 'ViewReports', 'AccessSettings', 'CreateContent'];
|
197
|
+
const name = AXPDataGenerator.pick(source);
|
198
|
+
return {
|
199
|
+
id: AXPDataGenerator.uuid(),
|
200
|
+
moduleId: AXPDataGenerator.pick(MODULES).id,
|
201
|
+
name: name,
|
202
|
+
title: name,
|
203
|
+
isArchived: AXPDataGenerator.boolean(),
|
204
|
+
};
|
205
|
+
});
|
206
|
+
const PROPERTIES = Array.from({ length: 10 }).map((_, i) => {
|
207
|
+
const source = [
|
208
|
+
'property1',
|
209
|
+
'property2',
|
210
|
+
'property3',
|
211
|
+
'property4',
|
212
|
+
'property5',
|
213
|
+
'property6',
|
214
|
+
'property7',
|
215
|
+
'property8',
|
216
|
+
];
|
217
|
+
const name = AXPDataGenerator.pick(source);
|
218
|
+
return {
|
219
|
+
id: AXPDataGenerator.uuid(),
|
220
|
+
entityId: AXPDataGenerator.pick(ENTITIES).id,
|
221
|
+
name: name,
|
222
|
+
title: name,
|
223
|
+
path: name,
|
224
|
+
};
|
225
|
+
});
|
226
|
+
|
227
|
+
class AXPApplicationManagementService {
|
228
|
+
constructor(injector) {
|
229
|
+
const storageService = injector.get(AXPEntityStorageService);
|
230
|
+
//
|
231
|
+
this._applicationModuleDataProvider = new AXPEntityDataProviderImpl(storageService, 'applications-modules');
|
232
|
+
this._applicationModuleDataProvider.initial(APPLICATIONS_MODULES);
|
233
|
+
//
|
234
|
+
this._editionDataProvider = new AXPEntityDataProviderImpl(storageService, 'editions');
|
235
|
+
this._editionDataProvider.initial(EDITIONS);
|
236
|
+
//
|
237
|
+
this._featureDataProvider = new AXPEntityDataProviderImpl(storageService, 'features');
|
238
|
+
this._featureDataProvider.initial(FEATURES);
|
239
|
+
//
|
240
|
+
this._entityDataProvider = new AXPEntityDataProviderImpl(storageService, 'entities');
|
241
|
+
this._entityDataProvider.initial(ENTITIES);
|
242
|
+
//
|
243
|
+
this._propertyDataProvider = new AXPEntityDataProviderImpl(storageService, 'properties');
|
244
|
+
this._propertyDataProvider.initial(PROPERTIES);
|
245
|
+
//
|
246
|
+
this._permissionDataProvider = new AXPEntityDataProviderImpl(storageService, 'permissions');
|
247
|
+
this._permissionDataProvider.initial(PERMISSIONS);
|
248
|
+
}
|
249
|
+
get applicationModuleDataProvider() {
|
250
|
+
return this._applicationModuleDataProvider;
|
251
|
+
}
|
252
|
+
get editionDataProvider() {
|
253
|
+
return this._editionDataProvider;
|
254
|
+
}
|
255
|
+
get featureDataProvider() {
|
256
|
+
return this._featureDataProvider;
|
257
|
+
}
|
258
|
+
get entityDataProvider() {
|
259
|
+
return this._entityDataProvider;
|
260
|
+
}
|
261
|
+
get propertyDataProvider() {
|
262
|
+
return this._propertyDataProvider;
|
263
|
+
}
|
264
|
+
get permissionDataProvider() {
|
265
|
+
return this._permissionDataProvider;
|
266
|
+
}
|
267
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
268
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, providedIn: 'root' }); }
|
269
|
+
}
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, decorators: [{
|
271
|
+
type: Injectable,
|
272
|
+
args: [{
|
273
|
+
providedIn: 'root',
|
274
|
+
}]
|
275
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
276
|
+
let AXMApplicationModuleService$1 = class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
|
277
|
+
};
|
278
|
+
let AXMEntityService$1 = class AXMEntityService extends AXMEntityCrudServiceImpl {
|
279
|
+
};
|
280
|
+
let AXMEditionService$1 = class AXMEditionService extends AXMEntityCrudServiceImpl {
|
281
|
+
};
|
282
|
+
let AXMFeatureService$1 = class AXMFeatureService extends AXMEntityCrudServiceImpl {
|
283
|
+
};
|
284
|
+
let AXMPermissionService$1 = class AXMPermissionService extends AXMEntityCrudServiceImpl {
|
285
|
+
};
|
286
|
+
let AXMPropertyService$1 = class AXMPropertyService extends AXMEntityCrudServiceImpl {
|
287
|
+
};
|
288
|
+
|
118
289
|
class AXMApplicationManagementModuleEntityLoader {
|
119
290
|
constructor() {
|
120
291
|
this.injector = inject(Injector);
|
@@ -160,17 +331,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
160
331
|
}] });
|
161
332
|
|
162
333
|
class AXMApplicationManagmentModuleMenuProvider {
|
334
|
+
constructor() {
|
335
|
+
this.translateService = inject(AXTranslationService);
|
336
|
+
}
|
163
337
|
async items() {
|
338
|
+
const scope = 'platform';
|
164
339
|
return [
|
165
340
|
{
|
166
341
|
items: [
|
167
342
|
{
|
168
|
-
priority:
|
169
|
-
text: '
|
343
|
+
priority: 8001,
|
344
|
+
text: '#platform.applicationManagement',
|
170
345
|
icon: 'fa-solid fa-cogs',
|
171
346
|
children: [
|
172
347
|
{
|
173
|
-
text: '
|
348
|
+
text: '#platform.moduleDesigner',
|
174
349
|
path: '/console/module-designer',
|
175
350
|
icon: 'fa-solid fa-cog',
|
176
351
|
data: {},
|
@@ -183,6 +358,119 @@ class AXMApplicationManagmentModuleMenuProvider {
|
|
183
358
|
}
|
184
359
|
}
|
185
360
|
|
361
|
+
const APPLICATION_SOURCE_NAME = 'application-management.application';
|
362
|
+
const APPLICATION_MODULE_SOURCE_NAME = 'application-management.application-module';
|
363
|
+
const MODULE_SOURCE_NAME = 'application-management.module';
|
364
|
+
const ENTITY_SOURCE_NAME = 'application-management.entity';
|
365
|
+
const PERMISSION_SOURCE_NAME = 'application-management.permission';
|
366
|
+
const FEATURE_SOURCE_NAME = 'application-management.feature';
|
367
|
+
const EDITION_SOURCE_NAME = 'application-management.edition';
|
368
|
+
const PROPERTY_SOURCE_NAME = 'application-management.property';
|
369
|
+
|
370
|
+
class AXMApplicationService extends AXMEntityCrudServiceImpl {
|
371
|
+
}
|
372
|
+
class AXMApplicationServiceImpl extends AXMEntityCrudServiceImpl {
|
373
|
+
constructor() {
|
374
|
+
super(APPLICATION_SOURCE_NAME);
|
375
|
+
}
|
376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
377
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationServiceImpl }); }
|
378
|
+
}
|
379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationServiceImpl, decorators: [{
|
380
|
+
type: Injectable
|
381
|
+
}], ctorParameters: () => [] });
|
382
|
+
|
383
|
+
class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
|
384
|
+
}
|
385
|
+
class AXMApplicationModuleServiceImpl extends AXMEntityCrudServiceImpl {
|
386
|
+
constructor() {
|
387
|
+
super(APPLICATION_MODULE_SOURCE_NAME);
|
388
|
+
}
|
389
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
390
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl }); }
|
391
|
+
}
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl, decorators: [{
|
393
|
+
type: Injectable
|
394
|
+
}], ctorParameters: () => [] });
|
395
|
+
|
396
|
+
class AXMEditionService extends AXMEntityCrudServiceImpl {
|
397
|
+
}
|
398
|
+
class AXMEditionServiceImpl extends AXMEntityCrudServiceImpl {
|
399
|
+
constructor() {
|
400
|
+
super(EDITION_SOURCE_NAME);
|
401
|
+
}
|
402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
403
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl }); }
|
404
|
+
}
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl, decorators: [{
|
406
|
+
type: Injectable
|
407
|
+
}], ctorParameters: () => [] });
|
408
|
+
|
409
|
+
class AXMEntityService extends AXMEntityCrudServiceImpl {
|
410
|
+
}
|
411
|
+
class AXMEntityServiceImpl extends AXMEntityCrudServiceImpl {
|
412
|
+
constructor() {
|
413
|
+
super(ENTITY_SOURCE_NAME);
|
414
|
+
}
|
415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
416
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl }); }
|
417
|
+
}
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl, decorators: [{
|
419
|
+
type: Injectable
|
420
|
+
}], ctorParameters: () => [] });
|
421
|
+
|
422
|
+
class AXMFeatureService extends AXMEntityCrudServiceImpl {
|
423
|
+
}
|
424
|
+
class AXMFeatureServiceImpl extends AXMEntityCrudServiceImpl {
|
425
|
+
constructor() {
|
426
|
+
super(FEATURE_SOURCE_NAME);
|
427
|
+
}
|
428
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl }); }
|
430
|
+
}
|
431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl, decorators: [{
|
432
|
+
type: Injectable
|
433
|
+
}], ctorParameters: () => [] });
|
434
|
+
|
435
|
+
class AXMModuleService extends AXMEntityCrudServiceImpl {
|
436
|
+
}
|
437
|
+
class AXMModuleServiceImpl extends AXMEntityCrudServiceImpl {
|
438
|
+
constructor() {
|
439
|
+
super(MODULE_SOURCE_NAME);
|
440
|
+
}
|
441
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMModuleServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
442
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMModuleServiceImpl }); }
|
443
|
+
}
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMModuleServiceImpl, decorators: [{
|
445
|
+
type: Injectable
|
446
|
+
}], ctorParameters: () => [] });
|
447
|
+
|
448
|
+
class AXMPermissionService extends AXMEntityCrudServiceImpl {
|
449
|
+
}
|
450
|
+
class AXMPermissionServiceImpl extends AXMEntityCrudServiceImpl {
|
451
|
+
constructor() {
|
452
|
+
super(PERMISSION_SOURCE_NAME);
|
453
|
+
}
|
454
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
455
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl }); }
|
456
|
+
}
|
457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl, decorators: [{
|
458
|
+
type: Injectable
|
459
|
+
}], ctorParameters: () => [] });
|
460
|
+
|
461
|
+
class AXMPropertyService extends AXMEntityCrudServiceImpl {
|
462
|
+
}
|
463
|
+
class AXMPropertyServiceImpl extends AXMEntityCrudServiceImpl {
|
464
|
+
constructor() {
|
465
|
+
super(PROPERTY_SOURCE_NAME);
|
466
|
+
}
|
467
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
468
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl }); }
|
469
|
+
}
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl, decorators: [{
|
471
|
+
type: Injectable
|
472
|
+
}], ctorParameters: () => [] });
|
473
|
+
|
186
474
|
class AXPShowModuleEntityDetailViewAction extends AXPWorkflowAction {
|
187
475
|
constructor() {
|
188
476
|
super(...arguments);
|
@@ -269,6 +557,42 @@ class AXMApplicationManagementModule {
|
|
269
557
|
useClass: AXMApplicationManagmentModuleMenuProvider,
|
270
558
|
multi: true,
|
271
559
|
},
|
560
|
+
{
|
561
|
+
provide: AXMModuleService,
|
562
|
+
useClass: AXMModuleServiceImpl,
|
563
|
+
},
|
564
|
+
{
|
565
|
+
provide: AXMApplicationService,
|
566
|
+
useClass: AXMApplicationServiceImpl,
|
567
|
+
},
|
568
|
+
{
|
569
|
+
provide: AXMApplicationModuleService$1,
|
570
|
+
useClass: AXMApplicationModuleServiceImpl,
|
571
|
+
},
|
572
|
+
{
|
573
|
+
provide: AXMEntityService$1,
|
574
|
+
useClass: AXMEntityServiceImpl,
|
575
|
+
},
|
576
|
+
{
|
577
|
+
provide: AXMPermissionService$1,
|
578
|
+
useClass: AXMPermissionServiceImpl,
|
579
|
+
},
|
580
|
+
{
|
581
|
+
provide: AXMFeatureService$1,
|
582
|
+
useClass: AXMFeatureServiceImpl,
|
583
|
+
},
|
584
|
+
{
|
585
|
+
provide: AXMPropertyService$1,
|
586
|
+
useClass: AXMPropertyServiceImpl,
|
587
|
+
},
|
588
|
+
{
|
589
|
+
provide: AXMEditionService$1,
|
590
|
+
useClass: AXMEditionServiceImpl,
|
591
|
+
},
|
592
|
+
// {
|
593
|
+
// provide: AXPModuleDesignerService,
|
594
|
+
// useClass: AXMModuleDesignerService,
|
595
|
+
// },
|
272
596
|
],
|
273
597
|
};
|
274
598
|
}
|
@@ -314,202 +638,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
314
638
|
args: ['AXP_REGISTER_MODULES_ENTITIES']
|
315
639
|
}] }] });
|
316
640
|
|
317
|
-
const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
|
318
|
-
const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
|
319
|
-
const name = AXPDataGenerator.pick(source);
|
320
|
-
return {
|
321
|
-
id: AXPDataGenerator.uuid(),
|
322
|
-
name: name,
|
323
|
-
title: name,
|
324
|
-
isArchived: AXPDataGenerator.boolean(),
|
325
|
-
};
|
326
|
-
});
|
327
|
-
const MODULES = Array.from({ length: 5 }).map((_, i) => {
|
328
|
-
const source = [
|
329
|
-
'UserManagement',
|
330
|
-
'Analytics',
|
331
|
-
'Reporting',
|
332
|
-
'PaymentGateway',
|
333
|
-
'NotificationService',
|
334
|
-
'InventoryManagement',
|
335
|
-
];
|
336
|
-
const name = AXPDataGenerator.pick(source);
|
337
|
-
return {
|
338
|
-
id: AXPDataGenerator.uuid(),
|
339
|
-
name: name,
|
340
|
-
title: name,
|
341
|
-
isArchived: AXPDataGenerator.boolean(),
|
342
|
-
};
|
343
|
-
});
|
344
|
-
const APPLICATIONS_MODULES = Array.from({ length: 5 }).map((_, i) => {
|
345
|
-
return {
|
346
|
-
id: AXPDataGenerator.uuid(),
|
347
|
-
application: AXPDataGenerator.pick(APPLICATIONS),
|
348
|
-
module: AXPDataGenerator.pick(MODULES),
|
349
|
-
};
|
350
|
-
});
|
351
|
-
const EDITIONS = Array.from({ length: 5 }).map((_, i) => {
|
352
|
-
const source = ['Standard', 'Premium', 'Gold', 'Silver', 'Bronze', 'Platinum', 'Enterprise'];
|
353
|
-
const name = AXPDataGenerator.pick(source);
|
354
|
-
return {
|
355
|
-
id: AXPDataGenerator.uuid(),
|
356
|
-
application: AXPDataGenerator.pick(APPLICATIONS),
|
357
|
-
name: name,
|
358
|
-
title: name,
|
359
|
-
isArchived: AXPDataGenerator.boolean(),
|
360
|
-
};
|
361
|
-
});
|
362
|
-
const FEATURES = Array.from({ length: 5 }).map((_, i) => {
|
363
|
-
const source = [
|
364
|
-
'User Authentication',
|
365
|
-
'Data Encryption',
|
366
|
-
'Real-time Notifications',
|
367
|
-
'Customizable Dashboards',
|
368
|
-
'API Access',
|
369
|
-
'Multi-language Support',
|
370
|
-
'Analytics and Reporting',
|
371
|
-
'Offline Mode',
|
372
|
-
];
|
373
|
-
const name = AXPDataGenerator.pick(source);
|
374
|
-
return {
|
375
|
-
id: AXPDataGenerator.uuid(),
|
376
|
-
moduleId: AXPDataGenerator.pick(MODULES).id,
|
377
|
-
name: name,
|
378
|
-
title: name,
|
379
|
-
isArchived: AXPDataGenerator.boolean(),
|
380
|
-
};
|
381
|
-
});
|
382
|
-
const ENTITIES = Array.from({ length: 5 }).map((_, i) => {
|
383
|
-
const source = ['User', 'Product', 'Order', 'Customer', 'Transaction', 'Category', 'Review', 'InventoryItem'];
|
384
|
-
const name = AXPDataGenerator.pick(source);
|
385
|
-
return {
|
386
|
-
id: AXPDataGenerator.uuid(),
|
387
|
-
moduleId: AXPDataGenerator.pick(MODULES).id,
|
388
|
-
name: name,
|
389
|
-
title: name,
|
390
|
-
isArchived: AXPDataGenerator.boolean(),
|
391
|
-
};
|
392
|
-
});
|
393
|
-
const PERMISSIONS = Array.from({ length: 5 }).map((_, i) => {
|
394
|
-
const source = ['Read', 'Write', 'Update', 'Delete', 'ManageUsers', 'ViewReports', 'AccessSettings', 'CreateContent'];
|
395
|
-
const name = AXPDataGenerator.pick(source);
|
396
|
-
return {
|
397
|
-
id: AXPDataGenerator.uuid(),
|
398
|
-
moduleId: AXPDataGenerator.pick(MODULES).id,
|
399
|
-
name: name,
|
400
|
-
title: name,
|
401
|
-
isArchived: AXPDataGenerator.boolean(),
|
402
|
-
};
|
403
|
-
});
|
404
|
-
const PROPERTIES = Array.from({ length: 10 }).map((_, i) => {
|
405
|
-
const source = [
|
406
|
-
'property1',
|
407
|
-
'property2',
|
408
|
-
'property3',
|
409
|
-
'property4',
|
410
|
-
'property5',
|
411
|
-
'property6',
|
412
|
-
'property7',
|
413
|
-
'property8',
|
414
|
-
];
|
415
|
-
const name = AXPDataGenerator.pick(source);
|
416
|
-
return {
|
417
|
-
id: AXPDataGenerator.uuid(),
|
418
|
-
entityId: AXPDataGenerator.pick(ENTITIES).id,
|
419
|
-
name: name,
|
420
|
-
title: name,
|
421
|
-
path: name,
|
422
|
-
};
|
423
|
-
});
|
424
|
-
|
425
|
-
class AXPApplicationManagementService {
|
426
|
-
constructor(injector) {
|
427
|
-
const storageService = injector.get(AXPEntityStorageService);
|
428
|
-
//
|
429
|
-
this._applicationDataProvider = new AXPEntityDataProviderImpl(storageService, 'applications');
|
430
|
-
this._applicationDataProvider.initial(APPLICATIONS);
|
431
|
-
//
|
432
|
-
this._moduleDataProvider = new AXPEntityDataProviderImpl(storageService, 'modules');
|
433
|
-
this._moduleDataProvider.initial(MODULES);
|
434
|
-
//
|
435
|
-
this._applicationModuleDataProvider = new AXPEntityDataProviderImpl(storageService, 'applications-modules');
|
436
|
-
this._applicationModuleDataProvider.initial(APPLICATIONS_MODULES);
|
437
|
-
//
|
438
|
-
this._editionDataProvider = new AXPEntityDataProviderImpl(storageService, 'editions');
|
439
|
-
this._editionDataProvider.initial(EDITIONS);
|
440
|
-
//
|
441
|
-
this._featureDataProvider = new AXPEntityDataProviderImpl(storageService, 'features');
|
442
|
-
this._featureDataProvider.initial(FEATURES);
|
443
|
-
//
|
444
|
-
this._entityDataProvider = new AXPEntityDataProviderImpl(storageService, 'entities');
|
445
|
-
this._entityDataProvider.initial(ENTITIES);
|
446
|
-
//
|
447
|
-
this._propertyDataProvider = new AXPEntityDataProviderImpl(storageService, 'properties');
|
448
|
-
this._propertyDataProvider.initial(PROPERTIES);
|
449
|
-
//
|
450
|
-
this._permissionDataProvider = new AXPEntityDataProviderImpl(storageService, 'permissions');
|
451
|
-
this._permissionDataProvider.initial(PERMISSIONS);
|
452
|
-
}
|
453
|
-
get applicationDataProvider() {
|
454
|
-
return this._applicationDataProvider;
|
455
|
-
}
|
456
|
-
get moduleDataProvider() {
|
457
|
-
return this._moduleDataProvider;
|
458
|
-
}
|
459
|
-
get applicationModuleDataProvider() {
|
460
|
-
return this._applicationModuleDataProvider;
|
461
|
-
}
|
462
|
-
get editionDataProvider() {
|
463
|
-
return this._editionDataProvider;
|
464
|
-
}
|
465
|
-
get featureDataProvider() {
|
466
|
-
return this._featureDataProvider;
|
467
|
-
}
|
468
|
-
get entityDataProvider() {
|
469
|
-
return this._entityDataProvider;
|
470
|
-
}
|
471
|
-
get propertyDataProvider() {
|
472
|
-
return this._propertyDataProvider;
|
473
|
-
}
|
474
|
-
get permissionDataProvider() {
|
475
|
-
return this._permissionDataProvider;
|
476
|
-
}
|
477
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
478
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, providedIn: 'root' }); }
|
479
|
-
}
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, decorators: [{
|
481
|
-
type: Injectable,
|
482
|
-
args: [{
|
483
|
-
providedIn: 'root',
|
484
|
-
}]
|
485
|
-
}], ctorParameters: () => [{ type: i0.Injector }] });
|
486
|
-
class AXMApplicationService extends AXMEntityCrudServiceImpl {
|
487
|
-
}
|
488
|
-
class AXModuleService extends AXMEntityCrudServiceImpl {
|
489
|
-
}
|
490
|
-
class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
|
491
|
-
}
|
492
|
-
class AXMEntityService extends AXMEntityCrudServiceImpl {
|
493
|
-
}
|
494
|
-
class AXMEditionService extends AXMEntityCrudServiceImpl {
|
495
|
-
}
|
496
|
-
class AXMFeatureService extends AXMEntityCrudServiceImpl {
|
497
|
-
}
|
498
|
-
class AXMPermissionService extends AXMEntityCrudServiceImpl {
|
499
|
-
}
|
500
|
-
class AXMPropertyService extends AXMEntityCrudServiceImpl {
|
501
|
-
}
|
502
|
-
|
503
|
-
const APPLICATION_SOURCE_NAME = 'application-management.application';
|
504
|
-
const MODULE_SOURCE_NAME = 'application-management.module';
|
505
|
-
const ENTITY_SOURCE_NAME = 'application-management.entity';
|
506
|
-
const PERMISSION_SOURCE_NAME = 'application-management.permission';
|
507
|
-
const FEATURE_SOURCE_NAME = 'application-management.feature';
|
508
|
-
const EDITION_SOURCE_NAME = 'application-management.edition';
|
509
|
-
const PROPERTY_SOURCE_NAME = 'application-management.property';
|
510
|
-
|
511
641
|
async function applicationModuleEntityFactory(injector) {
|
512
|
-
const dataService = injector.get(
|
642
|
+
const dataService = injector.get(AXMApplicationModuleService$1);
|
513
643
|
const entityDef = {
|
514
644
|
module: 'application-management',
|
515
645
|
name: 'application-module',
|
@@ -555,13 +685,13 @@ async function applicationModuleEntityFactory(injector) {
|
|
555
685
|
create: {
|
556
686
|
execute: async (data) => {
|
557
687
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
558
|
-
dataService.
|
688
|
+
dataService.insertOne(entity);
|
559
689
|
return Promise.resolve(entity);
|
560
690
|
},
|
561
691
|
},
|
562
692
|
delete: {
|
563
693
|
execute: async (id) => {
|
564
|
-
await await dataService.
|
694
|
+
await await dataService.deleteOne(id);
|
565
695
|
return Promise.resolve();
|
566
696
|
},
|
567
697
|
},
|
@@ -569,7 +699,7 @@ async function applicationModuleEntityFactory(injector) {
|
|
569
699
|
execute: async (data) => {
|
570
700
|
return new Promise((resolve) => {
|
571
701
|
setTimeout(async () => {
|
572
|
-
await dataService.
|
702
|
+
await dataService.updateOne(data.id, data);
|
573
703
|
resolve(data);
|
574
704
|
}, 1000);
|
575
705
|
});
|
@@ -581,7 +711,7 @@ async function applicationModuleEntityFactory(injector) {
|
|
581
711
|
execute: async (id) => {
|
582
712
|
return new Promise((resolve) => {
|
583
713
|
setTimeout(async () => {
|
584
|
-
const entity = await dataService.
|
714
|
+
const entity = await dataService.getOne(id);
|
585
715
|
resolve(entity);
|
586
716
|
}, 500);
|
587
717
|
});
|
@@ -590,12 +720,10 @@ async function applicationModuleEntityFactory(injector) {
|
|
590
720
|
},
|
591
721
|
list: {
|
592
722
|
execute: async (e) => {
|
593
|
-
const
|
594
|
-
const sortedItems = applySortArray(list, e.sort);
|
595
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
723
|
+
const data = await dataService.query(e);
|
596
724
|
return Promise.resolve({
|
597
|
-
total:
|
598
|
-
items:
|
725
|
+
total: data.total,
|
726
|
+
items: data.items,
|
599
727
|
});
|
600
728
|
},
|
601
729
|
type: AXPEntityQueryType.List,
|
@@ -778,7 +906,7 @@ async function applicationModuleEntityFactory(injector) {
|
|
778
906
|
}
|
779
907
|
|
780
908
|
async function applicationEntityFactory(injector) {
|
781
|
-
const dataService = injector.get(
|
909
|
+
const dataService = injector.get(AXMApplicationService);
|
782
910
|
const applicationEntityDef = {
|
783
911
|
module: 'application-management',
|
784
912
|
name: 'application',
|
@@ -862,13 +990,13 @@ async function applicationEntityFactory(injector) {
|
|
862
990
|
create: {
|
863
991
|
execute: async (data) => {
|
864
992
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
865
|
-
dataService.
|
993
|
+
dataService.insertOne(entity);
|
866
994
|
return Promise.resolve(entity);
|
867
995
|
},
|
868
996
|
},
|
869
997
|
delete: {
|
870
998
|
execute: async (id) => {
|
871
|
-
await await dataService.
|
999
|
+
await await dataService.deleteOne(id);
|
872
1000
|
return Promise.resolve();
|
873
1001
|
},
|
874
1002
|
},
|
@@ -876,7 +1004,7 @@ async function applicationEntityFactory(injector) {
|
|
876
1004
|
execute: async (data) => {
|
877
1005
|
return new Promise((resolve) => {
|
878
1006
|
setTimeout(async () => {
|
879
|
-
await dataService.
|
1007
|
+
await dataService.updateOne(data.id, data);
|
880
1008
|
resolve(data);
|
881
1009
|
}, 1000);
|
882
1010
|
});
|
@@ -888,7 +1016,7 @@ async function applicationEntityFactory(injector) {
|
|
888
1016
|
execute: async (id) => {
|
889
1017
|
return new Promise((resolve) => {
|
890
1018
|
setTimeout(async () => {
|
891
|
-
const entity = await dataService.
|
1019
|
+
const entity = await dataService.getOne(id);
|
892
1020
|
resolve(entity);
|
893
1021
|
}, 500);
|
894
1022
|
});
|
@@ -897,7 +1025,7 @@ async function applicationEntityFactory(injector) {
|
|
897
1025
|
},
|
898
1026
|
list: {
|
899
1027
|
execute: async (e) => {
|
900
|
-
const list = await dataService.
|
1028
|
+
const list = await dataService.query(e);
|
901
1029
|
const sortedItems = applySortArray(list, e.sort);
|
902
1030
|
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
903
1031
|
return Promise.resolve({
|
@@ -1085,7 +1213,7 @@ async function applicationEntityFactory(injector) {
|
|
1085
1213
|
}
|
1086
1214
|
|
1087
1215
|
async function editionEntityFactory(injector) {
|
1088
|
-
const dataService = injector.get(
|
1216
|
+
const dataService = injector.get(AXMEditionService$1);
|
1089
1217
|
const entityDef = {
|
1090
1218
|
module: 'application-management',
|
1091
1219
|
name: 'edition',
|
@@ -1142,13 +1270,13 @@ async function editionEntityFactory(injector) {
|
|
1142
1270
|
create: {
|
1143
1271
|
execute: async (data) => {
|
1144
1272
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
1145
|
-
dataService.
|
1273
|
+
dataService.insertOne(entity);
|
1146
1274
|
return Promise.resolve(entity);
|
1147
1275
|
},
|
1148
1276
|
},
|
1149
1277
|
delete: {
|
1150
1278
|
execute: async (id) => {
|
1151
|
-
await await dataService.
|
1279
|
+
await await dataService.deleteOne(id);
|
1152
1280
|
return Promise.resolve();
|
1153
1281
|
},
|
1154
1282
|
},
|
@@ -1156,7 +1284,7 @@ async function editionEntityFactory(injector) {
|
|
1156
1284
|
execute: async (data) => {
|
1157
1285
|
return new Promise((resolve) => {
|
1158
1286
|
setTimeout(async () => {
|
1159
|
-
await dataService.
|
1287
|
+
await dataService.updateOne(data.id, data);
|
1160
1288
|
resolve(data);
|
1161
1289
|
}, 1000);
|
1162
1290
|
});
|
@@ -1168,7 +1296,7 @@ async function editionEntityFactory(injector) {
|
|
1168
1296
|
execute: async (id) => {
|
1169
1297
|
return new Promise((resolve) => {
|
1170
1298
|
setTimeout(async () => {
|
1171
|
-
const entity = await dataService.
|
1299
|
+
const entity = await dataService.getOne(id);
|
1172
1300
|
resolve(entity);
|
1173
1301
|
}, 500);
|
1174
1302
|
});
|
@@ -1177,12 +1305,10 @@ async function editionEntityFactory(injector) {
|
|
1177
1305
|
},
|
1178
1306
|
list: {
|
1179
1307
|
execute: async (e) => {
|
1180
|
-
const
|
1181
|
-
const sortedItems = applySortArray(list, e.sort);
|
1182
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
1308
|
+
const data = await dataService.query(e);
|
1183
1309
|
return Promise.resolve({
|
1184
|
-
total:
|
1185
|
-
items:
|
1310
|
+
total: data.total,
|
1311
|
+
items: data.items,
|
1186
1312
|
});
|
1187
1313
|
},
|
1188
1314
|
type: AXPEntityQueryType.List,
|
@@ -1365,7 +1491,7 @@ async function editionEntityFactory(injector) {
|
|
1365
1491
|
}
|
1366
1492
|
|
1367
1493
|
async function entityEntityFactory(injector) {
|
1368
|
-
const dataService = injector.get(
|
1494
|
+
const dataService = injector.get(AXMEntityService$1);
|
1369
1495
|
const entityDef = {
|
1370
1496
|
module: 'application-management',
|
1371
1497
|
name: 'entity',
|
@@ -1436,13 +1562,13 @@ async function entityEntityFactory(injector) {
|
|
1436
1562
|
create: {
|
1437
1563
|
execute: async (data) => {
|
1438
1564
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
1439
|
-
dataService.
|
1565
|
+
dataService.insertOne(entity);
|
1440
1566
|
return Promise.resolve(entity);
|
1441
1567
|
},
|
1442
1568
|
},
|
1443
1569
|
delete: {
|
1444
1570
|
execute: async (id) => {
|
1445
|
-
await await dataService.
|
1571
|
+
await await dataService.deleteOne(id);
|
1446
1572
|
return Promise.resolve();
|
1447
1573
|
},
|
1448
1574
|
},
|
@@ -1450,7 +1576,7 @@ async function entityEntityFactory(injector) {
|
|
1450
1576
|
execute: async (data) => {
|
1451
1577
|
return new Promise((resolve) => {
|
1452
1578
|
setTimeout(async () => {
|
1453
|
-
await dataService.
|
1579
|
+
await dataService.updateOne(data.id, data);
|
1454
1580
|
resolve(data);
|
1455
1581
|
}, 1000);
|
1456
1582
|
});
|
@@ -1462,7 +1588,7 @@ async function entityEntityFactory(injector) {
|
|
1462
1588
|
execute: async (id) => {
|
1463
1589
|
return new Promise((resolve) => {
|
1464
1590
|
setTimeout(async () => {
|
1465
|
-
const entity = await dataService.
|
1591
|
+
const entity = await dataService.getOne(id);
|
1466
1592
|
resolve(entity);
|
1467
1593
|
}, 500);
|
1468
1594
|
});
|
@@ -1471,12 +1597,10 @@ async function entityEntityFactory(injector) {
|
|
1471
1597
|
},
|
1472
1598
|
list: {
|
1473
1599
|
execute: async (e) => {
|
1474
|
-
const
|
1475
|
-
const sortedItems = applySortArray(list, e.sort);
|
1476
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
1600
|
+
const data = await dataService.query(e);
|
1477
1601
|
return Promise.resolve({
|
1478
|
-
total:
|
1479
|
-
items:
|
1602
|
+
total: data.total,
|
1603
|
+
items: data.items,
|
1480
1604
|
});
|
1481
1605
|
},
|
1482
1606
|
type: AXPEntityQueryType.List,
|
@@ -1664,7 +1788,7 @@ var entity_entity = /*#__PURE__*/Object.freeze({
|
|
1664
1788
|
});
|
1665
1789
|
|
1666
1790
|
async function featureEntityFactory(injector) {
|
1667
|
-
const dataService = injector.get(
|
1791
|
+
const dataService = injector.get(AXMFeatureService$1);
|
1668
1792
|
const EntityDef = {
|
1669
1793
|
module: 'application-management',
|
1670
1794
|
name: 'feature',
|
@@ -1721,13 +1845,13 @@ async function featureEntityFactory(injector) {
|
|
1721
1845
|
create: {
|
1722
1846
|
execute: async (data) => {
|
1723
1847
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
1724
|
-
dataService.
|
1848
|
+
dataService.insertOne(entity);
|
1725
1849
|
return Promise.resolve(entity);
|
1726
1850
|
},
|
1727
1851
|
},
|
1728
1852
|
delete: {
|
1729
1853
|
execute: async (id) => {
|
1730
|
-
await await dataService.
|
1854
|
+
await await dataService.deleteOne(id);
|
1731
1855
|
return Promise.resolve();
|
1732
1856
|
},
|
1733
1857
|
},
|
@@ -1735,7 +1859,7 @@ async function featureEntityFactory(injector) {
|
|
1735
1859
|
execute: async (data) => {
|
1736
1860
|
return new Promise((resolve) => {
|
1737
1861
|
setTimeout(async () => {
|
1738
|
-
await dataService.
|
1862
|
+
await dataService.updateOne(data.id, data);
|
1739
1863
|
resolve(data);
|
1740
1864
|
}, 1000);
|
1741
1865
|
});
|
@@ -1747,7 +1871,7 @@ async function featureEntityFactory(injector) {
|
|
1747
1871
|
execute: async (id) => {
|
1748
1872
|
return new Promise((resolve) => {
|
1749
1873
|
setTimeout(async () => {
|
1750
|
-
const entity = await dataService.
|
1874
|
+
const entity = await dataService.getOne(id);
|
1751
1875
|
resolve(entity);
|
1752
1876
|
}, 500);
|
1753
1877
|
});
|
@@ -1756,12 +1880,10 @@ async function featureEntityFactory(injector) {
|
|
1756
1880
|
},
|
1757
1881
|
list: {
|
1758
1882
|
execute: async (e) => {
|
1759
|
-
const
|
1760
|
-
const sortedItems = applySortArray(list, e.sort);
|
1761
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
1883
|
+
const data = await dataService.query(e);
|
1762
1884
|
return Promise.resolve({
|
1763
|
-
total:
|
1764
|
-
items:
|
1885
|
+
total: data.total,
|
1886
|
+
items: data.items,
|
1765
1887
|
});
|
1766
1888
|
},
|
1767
1889
|
type: AXPEntityQueryType.List,
|
@@ -1949,7 +2071,7 @@ var feature_entity = /*#__PURE__*/Object.freeze({
|
|
1949
2071
|
});
|
1950
2072
|
|
1951
2073
|
async function modulesEntityFactory(injector) {
|
1952
|
-
const dataService = injector.get(
|
2074
|
+
const dataService = injector.get(AXMModuleService);
|
1953
2075
|
const entityDef = {
|
1954
2076
|
module: 'application-management',
|
1955
2077
|
name: 'module',
|
@@ -2046,13 +2168,13 @@ async function modulesEntityFactory(injector) {
|
|
2046
2168
|
create: {
|
2047
2169
|
execute: async (data) => {
|
2048
2170
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
2049
|
-
dataService.
|
2171
|
+
dataService.insertOne(entity);
|
2050
2172
|
return Promise.resolve(entity);
|
2051
2173
|
},
|
2052
2174
|
},
|
2053
2175
|
delete: {
|
2054
2176
|
execute: async (id) => {
|
2055
|
-
await await dataService.
|
2177
|
+
await await dataService.deleteOne(id);
|
2056
2178
|
return Promise.resolve();
|
2057
2179
|
},
|
2058
2180
|
},
|
@@ -2060,7 +2182,7 @@ async function modulesEntityFactory(injector) {
|
|
2060
2182
|
execute: async (data) => {
|
2061
2183
|
return new Promise((resolve) => {
|
2062
2184
|
setTimeout(async () => {
|
2063
|
-
await dataService.
|
2185
|
+
await dataService.updateOne(data.id, data);
|
2064
2186
|
resolve(data);
|
2065
2187
|
}, 1000);
|
2066
2188
|
});
|
@@ -2072,7 +2194,7 @@ async function modulesEntityFactory(injector) {
|
|
2072
2194
|
execute: async (id) => {
|
2073
2195
|
return new Promise((resolve) => {
|
2074
2196
|
setTimeout(async () => {
|
2075
|
-
const entity = await dataService.
|
2197
|
+
const entity = await dataService.getOne(id);
|
2076
2198
|
resolve(entity);
|
2077
2199
|
}, 500);
|
2078
2200
|
});
|
@@ -2081,13 +2203,11 @@ async function modulesEntityFactory(injector) {
|
|
2081
2203
|
},
|
2082
2204
|
list: {
|
2083
2205
|
execute: async (e) => {
|
2084
|
-
const
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
|
2090
|
-
});
|
2206
|
+
const data = await dataService.query(e);
|
2207
|
+
return {
|
2208
|
+
total: data.total,
|
2209
|
+
items: data.items,
|
2210
|
+
};
|
2091
2211
|
},
|
2092
2212
|
type: AXPEntityQueryType.List,
|
2093
2213
|
},
|
@@ -2274,7 +2394,7 @@ var modules_entity = /*#__PURE__*/Object.freeze({
|
|
2274
2394
|
});
|
2275
2395
|
|
2276
2396
|
async function permissionEntityFactory(injector) {
|
2277
|
-
const dataService = injector.get(
|
2397
|
+
const dataService = injector.get(AXMPermissionService$1);
|
2278
2398
|
const entityDef = {
|
2279
2399
|
module: 'application-management',
|
2280
2400
|
name: 'permission',
|
@@ -2331,13 +2451,13 @@ async function permissionEntityFactory(injector) {
|
|
2331
2451
|
create: {
|
2332
2452
|
execute: async (data) => {
|
2333
2453
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
2334
|
-
dataService.
|
2454
|
+
dataService.insertOne(entity);
|
2335
2455
|
return Promise.resolve(entity);
|
2336
2456
|
},
|
2337
2457
|
},
|
2338
2458
|
delete: {
|
2339
2459
|
execute: async (id) => {
|
2340
|
-
await await dataService.
|
2460
|
+
await await dataService.deleteOne(id);
|
2341
2461
|
return Promise.resolve();
|
2342
2462
|
},
|
2343
2463
|
},
|
@@ -2345,7 +2465,7 @@ async function permissionEntityFactory(injector) {
|
|
2345
2465
|
execute: async (data) => {
|
2346
2466
|
return new Promise((resolve) => {
|
2347
2467
|
setTimeout(async () => {
|
2348
|
-
await dataService.
|
2468
|
+
await dataService.updateOne(data.id, data);
|
2349
2469
|
resolve(data);
|
2350
2470
|
}, 1000);
|
2351
2471
|
});
|
@@ -2357,7 +2477,7 @@ async function permissionEntityFactory(injector) {
|
|
2357
2477
|
execute: async (id) => {
|
2358
2478
|
return new Promise((resolve) => {
|
2359
2479
|
setTimeout(async () => {
|
2360
|
-
const entity = await dataService.
|
2480
|
+
const entity = await dataService.getOne(id);
|
2361
2481
|
resolve(entity);
|
2362
2482
|
}, 500);
|
2363
2483
|
});
|
@@ -2366,12 +2486,10 @@ async function permissionEntityFactory(injector) {
|
|
2366
2486
|
},
|
2367
2487
|
list: {
|
2368
2488
|
execute: async (e) => {
|
2369
|
-
const
|
2370
|
-
const sortedItems = applySortArray(list, e.sort);
|
2371
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
2489
|
+
const data = await dataService.query(e);
|
2372
2490
|
return Promise.resolve({
|
2373
|
-
total:
|
2374
|
-
items:
|
2491
|
+
total: data.total,
|
2492
|
+
items: data.items,
|
2375
2493
|
});
|
2376
2494
|
},
|
2377
2495
|
type: AXPEntityQueryType.List,
|
@@ -2559,7 +2677,7 @@ var permission_entity = /*#__PURE__*/Object.freeze({
|
|
2559
2677
|
});
|
2560
2678
|
|
2561
2679
|
async function propertyEntityFactory(injector) {
|
2562
|
-
const dataService = injector.get(
|
2680
|
+
const dataService = injector.get(AXMPropertyService$1);
|
2563
2681
|
const entityDef = {
|
2564
2682
|
module: 'application-management',
|
2565
2683
|
name: 'property',
|
@@ -2681,13 +2799,13 @@ async function propertyEntityFactory(injector) {
|
|
2681
2799
|
create: {
|
2682
2800
|
execute: async (data) => {
|
2683
2801
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
2684
|
-
dataService.
|
2802
|
+
dataService.insertOne(entity);
|
2685
2803
|
return Promise.resolve(entity);
|
2686
2804
|
},
|
2687
2805
|
},
|
2688
2806
|
delete: {
|
2689
2807
|
execute: async (id) => {
|
2690
|
-
await await dataService.
|
2808
|
+
await await dataService.deleteOne(id);
|
2691
2809
|
return Promise.resolve();
|
2692
2810
|
},
|
2693
2811
|
},
|
@@ -2695,7 +2813,7 @@ async function propertyEntityFactory(injector) {
|
|
2695
2813
|
execute: async (data) => {
|
2696
2814
|
return new Promise((resolve) => {
|
2697
2815
|
setTimeout(async () => {
|
2698
|
-
await dataService.
|
2816
|
+
await dataService.updateOne(data.id, data);
|
2699
2817
|
resolve(data);
|
2700
2818
|
}, 1000);
|
2701
2819
|
});
|
@@ -2707,7 +2825,7 @@ async function propertyEntityFactory(injector) {
|
|
2707
2825
|
execute: async (id) => {
|
2708
2826
|
return new Promise((resolve) => {
|
2709
2827
|
setTimeout(async () => {
|
2710
|
-
const entity = await dataService.
|
2828
|
+
const entity = await dataService.getOne(id);
|
2711
2829
|
resolve(entity);
|
2712
2830
|
}, 500);
|
2713
2831
|
});
|
@@ -2716,12 +2834,10 @@ async function propertyEntityFactory(injector) {
|
|
2716
2834
|
},
|
2717
2835
|
list: {
|
2718
2836
|
execute: async (e) => {
|
2719
|
-
const
|
2720
|
-
const sortedItems = applySortArray(list, e.sort);
|
2721
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
2837
|
+
const data = await dataService.query(e);
|
2722
2838
|
return Promise.resolve({
|
2723
|
-
total:
|
2724
|
-
items:
|
2839
|
+
total: data.total,
|
2840
|
+
items: data.items,
|
2725
2841
|
});
|
2726
2842
|
},
|
2727
2843
|
type: AXPEntityQueryType.List,
|
@@ -3016,5 +3132,5 @@ class AXPModuleDesignerService {
|
|
3016
3132
|
* Generated bundle index. Do not edit.
|
3017
3133
|
*/
|
3018
3134
|
|
3019
|
-
export { APPLICATION_SOURCE_NAME, AXMApplicationManagementModule, AXMApplicationModuleService
|
3135
|
+
export { APPLICATION_MODULE_SOURCE_NAME, APPLICATION_SOURCE_NAME, AXMApplicationManagementModule, AXMApplicationModuleService$1 as AXMApplicationModuleService, AXMEditionService$1 as AXMEditionService, AXMEntityService$1 as AXMEntityService, AXMFeatureService$1 as AXMFeatureService, AXMPermissionService$1 as AXMPermissionService, AXMPropertyService$1 as AXMPropertyService, AXPApplicationManagementService, AXPModuleDesignerService, EDITION_SOURCE_NAME, ENTITY_SOURCE_NAME, FEATURE_SOURCE_NAME, MODULE_SOURCE_NAME, PERMISSION_SOURCE_NAME, PROPERTY_SOURCE_NAME, applicationEntityFactory, applicationModuleEntityFactory, editionEntityFactory, entityEntityFactory, featureEntityFactory, modulesEntityFactory, permissionEntityFactory, propertyEntityFactory };
|
3020
3136
|
//# sourceMappingURL=acorex-modules-application-management.mjs.map
|