@acorex/modules 18.2.0 → 18.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/application-management/lib/application-management.source.d.ts +1 -0
- package/application-management/lib/const.d.ts +5 -0
- package/application-management/lib/menu.provider.d.ts +3 -3
- 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/auth.config.d.ts +6 -0
- package/auth/lib/login/password/password.component.d.ts +1 -0
- package/auth/lib/menu.provider.d.ts +2 -3
- package/conversation/index.d.ts +15 -4
- package/conversation/lib/const.d.ts +7 -0
- package/conversation/lib/conversation.module.d.ts +3 -3
- package/conversation/lib/entities/chat/chat.module.d.ts +29 -0
- package/conversation/lib/entities/chat/chat.service.d.ts +14 -0
- package/conversation/lib/entities/chat/chat.type.d.ts +22 -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 +12 -0
- package/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.d.ts +31 -0
- package/conversation/lib/entities/chat/components/chat-preview-header/chat-preview-header.component.d.ts +7 -0
- package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +23 -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} +7 -4
- package/conversation/lib/{comments → entities/comments/pages}/comment-list-view.component.d.ts +1 -1
- 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/const.mjs +6 -0
- 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 +17 -19
- package/esm2022/application-management/lib/module-designer/module-designer.component.mjs +3 -3
- 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/account/app-chooser/app-chooser.component.mjs +3 -3
- package/esm2022/auth/lib/account/tenant-chooser/tenant-chooser.component.mjs +3 -3
- package/esm2022/auth/lib/auth.config.mjs +1 -1
- package/esm2022/auth/lib/forgot/password/password.component.mjs +2 -2
- package/esm2022/auth/lib/login/password/password.component.mjs +6 -3
- package/esm2022/auth/lib/menu.provider.mjs +32 -44
- package/esm2022/auth/lib/two-factor/two-factor-code/two-factor-code.component.mjs +2 -2
- package/esm2022/backend/lib/data/api/data-provider.mjs +7 -2
- package/esm2022/conversation/index.mjs +16 -5
- package/esm2022/conversation/lib/const.mjs +8 -0
- package/esm2022/conversation/lib/conversation.module.mjs +7 -7
- package/esm2022/conversation/lib/entities/chat/chat.module.mjs +141 -0
- package/esm2022/conversation/lib/entities/chat/chat.service.mjs +23 -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 +53 -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 +28 -0
- package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +124 -0
- package/esm2022/conversation/lib/entities/chat/components/chat-preview-header/chat-preview-header.component.mjs +22 -0
- package/esm2022/conversation/lib/entities/chat/pages/chat/chat.component.mjs +80 -0
- package/esm2022/conversation/lib/entities/comments/comment.module.mjs +100 -0
- package/esm2022/conversation/lib/entities/comments/comments.service.mjs +21 -0
- package/esm2022/conversation/lib/entities/comments/comments.type.mjs +2 -0
- package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +392 -0
- package/esm2022/conversation/lib/{comments → entities/comments/pages}/comment-lookup-popup.component.mjs +1 -1
- 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/components/widgets/template-designer/index.mjs +3 -0
- package/esm2022/form-template-management/lib/components/widgets/template-designer/template-designer-widget-view.component.mjs +44 -0
- package/esm2022/form-template-management/lib/components/widgets/template-designer/template-designer-widget.config.mjs +23 -0
- package/esm2022/form-template-management/lib/const.mjs +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 +434 -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 +133 -0
- package/esm2022/form-template-management/lib/menu.provider.mjs +32 -0
- package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +29 -0
- package/esm2022/form-template-management/lib/services/designer-connector.service.mjs +33 -0
- package/esm2022/form-template-management/lib/services/template.provider.mjs +31 -0
- package/esm2022/form-template-management/lib/workflows/create-template.workflow.mjs +40 -0
- package/esm2022/form-template-management/lib/workflows/design-template.workflow.mjs +32 -0
- package/esm2022/localization-management/acorex-modules-localization-management.mjs +5 -0
- package/esm2022/localization-management/index.mjs +8 -0
- package/esm2022/localization-management/lib/const.mjs +9 -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 +44 -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/const.mjs +9 -0
- 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/entities/notification-template.entity.mjs +4 -4
- package/esm2022/notification-management/lib/entities/notification.entity.mjs +4 -4
- package/esm2022/notification-management/lib/menu.provider.mjs +37 -40
- 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/const.mjs +12 -0
- package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +58 -7
- package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +8 -11
- package/esm2022/platform-management/lib/menu.provider.mjs +56 -34
- package/esm2022/platform-management/lib/platform-management.module.mjs +11 -32
- package/esm2022/setting-management/acorex-modules-setting-management.mjs +5 -0
- package/esm2022/setting-management/index.mjs +5 -0
- package/esm2022/setting-management/lib/const.mjs +7 -0
- package/esm2022/setting-management/lib/entities/index.mjs +2 -0
- package/esm2022/setting-management/lib/entities/setting/index.mjs +5 -0
- package/esm2022/setting-management/lib/entities/setting/setting.entity.mjs +244 -0
- package/esm2022/setting-management/lib/entities/setting/setting.module.mjs +28 -0
- package/esm2022/setting-management/lib/entities/setting/setting.service.mjs +17 -0
- package/esm2022/setting-management/lib/entities/setting/setting.types.mjs +2 -0
- package/esm2022/setting-management/lib/entity.provider.mjs +25 -0
- package/esm2022/setting-management/lib/menu.provider.mjs +32 -0
- package/esm2022/setting-management/lib/setting-management.module.mjs +44 -0
- package/esm2022/text-template-management/acorex-modules-text-template-management.mjs +5 -0
- package/esm2022/text-template-management/index.mjs +6 -0
- package/esm2022/text-template-management/lib/const.mjs +8 -0
- package/esm2022/text-template-management/lib/entities/category/category.entity.mjs +257 -0
- package/esm2022/text-template-management/lib/entities/category/category.module.mjs +28 -0
- package/esm2022/text-template-management/lib/entities/category/category.service.mjs +17 -0
- package/esm2022/text-template-management/lib/entities/category/category.types.mjs +2 -0
- package/esm2022/text-template-management/lib/entities/category/index.mjs +5 -0
- package/esm2022/text-template-management/lib/entities/index.mjs +3 -0
- package/esm2022/text-template-management/lib/entities/template/index.mjs +5 -0
- package/esm2022/text-template-management/lib/entities/template/template.entity.mjs +405 -0
- package/esm2022/text-template-management/lib/entities/template/template.module.mjs +28 -0
- package/esm2022/text-template-management/lib/entities/template/template.service.mjs +17 -0
- package/esm2022/text-template-management/lib/entities/template/template.types.mjs +2 -0
- package/esm2022/text-template-management/lib/entity.provider.mjs +29 -0
- package/esm2022/text-template-management/lib/menu.provider.mjs +37 -0
- package/esm2022/text-template-management/lib/setting.provider.mjs +48 -0
- package/esm2022/text-template-management/lib/text-template-management.module.mjs +56 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs → acorex-modules-application-management-module-designer.component-DjRdIBQt.mjs} +5 -5
- package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map → acorex-modules-application-management-module-designer.component-DjRdIBQt.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +356 -257
- 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-Chw_5AKM.mjs} +46 -52
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-Chw_5AKM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-B7BwymT_.mjs → acorex-modules-auth-app-chooser.component-DN04Uoqa.mjs} +5 -5
- package/fesm2022/acorex-modules-auth-app-chooser.component-DN04Uoqa.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs → acorex-modules-auth-login.module-Bir7SJ8b.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs.map → acorex-modules-auth-login.module-Bir7SJ8b.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs → acorex-modules-auth-master.layout-DwijDvUp.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs.map → acorex-modules-auth-master.layout-DwijDvUp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-87NrYq3i.mjs → acorex-modules-auth-password.component-C1S8V4Bw.mjs} +9 -6
- package/fesm2022/acorex-modules-auth-password.component-C1S8V4Bw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs → acorex-modules-auth-password.component-CuLQNJ-W.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs.map → acorex-modules-auth-password.component-CuLQNJ-W.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs → acorex-modules-auth-routes-ILpWODmz.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs.map → acorex-modules-auth-routes-ILpWODmz.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-6qDoCUBo.mjs +83 -0
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-6qDoCUBo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs → acorex-modules-auth-two-factor-code.component-BJKmvI7y.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs.map → acorex-modules-auth-two-factor-code.component-BJKmvI7y.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs → acorex-modules-auth-two-factor.module-bgwR1LBc.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs.map → acorex-modules-auth-two-factor.module-bgwR1LBc.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-backend.mjs +7 -2
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +501 -44
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs +32 -0
- package/fesm2022/acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +1135 -0
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-localization-management.mjs +1025 -0
- package/fesm2022/acorex-modules-localization-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs +64 -67
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1424 -201
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-setting-management.mjs +393 -0
- package/fesm2022/acorex-modules-setting-management.mjs.map +1 -0
- package/fesm2022/{acorex-modules-template-management.mjs → acorex-modules-text-template-management.mjs} +317 -506
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -0
- package/form-template-management/README.md +4 -0
- package/form-template-management/index.d.ts +1 -0
- package/form-template-management/lib/components/widgets/template-designer/index.d.ts +2 -0
- package/form-template-management/lib/components/widgets/template-designer/template-designer-widget-view.component.d.ts +8 -0
- package/form-template-management/lib/components/widgets/template-designer/template-designer-widget.config.d.ts +7 -0
- package/form-template-management/lib/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 +7 -0
- package/form-template-management/lib/entity.provider.d.ts +9 -0
- package/form-template-management/lib/form-template-management.module.d.ts +12 -0
- package/form-template-management/lib/menu.provider.d.ts +5 -0
- package/form-template-management/lib/pages/designer/designer.page.d.ts +7 -0
- package/form-template-management/lib/services/designer-connector.service.d.ts +7 -0
- package/form-template-management/lib/services/template.provider.d.ts +8 -0
- package/form-template-management/lib/workflows/create-template.workflow.d.ts +2 -0
- package/form-template-management/lib/workflows/design-template.workflow.d.ts +9 -0
- package/localization-management/README.md +4 -0
- package/localization-management/index.d.ts +7 -0
- package/localization-management/lib/const.d.ts +8 -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/{template-management/lib/entities/text-template.entity.d.ts → localization-management/lib/time-zone/time-zone.entity.d.ts} +1 -1
- 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/const.d.ts +8 -0
- package/notification-management/lib/menu.provider.d.ts +3 -3
- package/package.json +34 -22
- 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/{template-management/lib → platform-management/lib/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/const.d.ts +11 -0
- package/platform-management/lib/menu.provider.d.ts +3 -3
- package/platform-management/lib/platform-management.module.d.ts +2 -1
- package/setting-management/README.md +3 -0
- package/setting-management/index.d.ts +4 -0
- package/setting-management/lib/const.d.ts +6 -0
- package/setting-management/lib/entities/index.d.ts +1 -0
- package/setting-management/lib/entities/setting/index.d.ts +4 -0
- package/setting-management/lib/entities/setting/setting.entity.d.ts +3 -0
- package/setting-management/lib/entities/setting/setting.module.d.ts +6 -0
- package/setting-management/lib/entities/setting/setting.service.d.ts +10 -0
- package/setting-management/lib/entities/setting/setting.types.d.ts +5 -0
- package/setting-management/lib/entity.provider.d.ts +9 -0
- package/setting-management/lib/menu.provider.d.ts +5 -0
- package/setting-management/lib/setting-management.module.d.ts +7 -0
- package/text-template-management/README.md +3 -0
- package/text-template-management/index.d.ts +5 -0
- package/text-template-management/lib/const.d.ts +7 -0
- package/text-template-management/lib/entities/category/category.entity.d.ts +3 -0
- package/text-template-management/lib/entities/category/category.module.d.ts +6 -0
- package/text-template-management/lib/entities/category/category.service.d.ts +10 -0
- package/text-template-management/lib/entities/category/category.types.d.ts +5 -0
- package/text-template-management/lib/entities/category/index.d.ts +4 -0
- package/text-template-management/lib/entities/index.d.ts +2 -0
- package/text-template-management/lib/entities/template/index.d.ts +4 -0
- package/text-template-management/lib/entities/template/template.entity.d.ts +3 -0
- package/text-template-management/lib/entities/template/template.module.d.ts +6 -0
- package/text-template-management/lib/entities/template/template.service.d.ts +10 -0
- package/text-template-management/lib/entities/template/template.types.d.ts +9 -0
- package/text-template-management/lib/entity.provider.d.ts +9 -0
- package/text-template-management/lib/menu.provider.d.ts +5 -0
- package/text-template-management/lib/setting.provider.d.ts +4 -0
- package/text-template-management/lib/text-template-management.module.d.ts +8 -0
- package/conversation/lib/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/acorex-modules-template-management.mjs +0 -5
- package/esm2022/template-management/index.mjs +0 -8
- package/esm2022/template-management/lib/entities/category.entity.mjs +0 -234
- package/esm2022/template-management/lib/entities/index.mjs +0 -4
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +0 -308
- package/esm2022/template-management/lib/entities/text-template.entity.mjs +0 -386
- package/esm2022/template-management/lib/entity.loader.mjs +0 -36
- package/esm2022/template-management/lib/menu.provider.mjs +0 -43
- package/esm2022/template-management/lib/template-management.module.mjs +0 -61
- package/esm2022/template-management/lib/template-management.types.mjs +0 -2
- package/esm2022/template-management/lib/template.service.mjs +0 -17
- package/esm2022/template-management/lib/text-management.source.mjs +0 -3
- package/esm2022/template-management/lib/text-template-category.service.mjs +0 -17
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-B7BwymT_.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-87NrYq3i.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CHr5_kh7.mjs +0 -83
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CHr5_kh7.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs +0 -27
- 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/fesm2022/acorex-modules-template-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/entity.loader.d.ts +0 -9
- package/platform-management/lib/languages/index.d.ts +0 -4
- package/template-management/README.md +0 -3
- package/template-management/index.d.ts +0 -7
- package/template-management/lib/entities/category.entity.d.ts +0 -3
- package/template-management/lib/entities/index.d.ts +0 -3
- package/template-management/lib/entities/template-variable.entity.d.ts +0 -3
- package/template-management/lib/menu.provider.d.ts +0 -5
- package/template-management/lib/template-management.module.d.ts +0 -6
- package/template-management/lib/template-management.types.d.ts +0 -19
- package/template-management/lib/template.service.d.ts +0 -10
- package/template-management/lib/text-management.source.d.ts +0 -2
- package/template-management/lib/text-template-category.service.d.ts +0 -10
- /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
@@ -1,9 +1,9 @@
|
|
1
|
-
import { isSmallScreen, getChildDrawer, AXPStickyDirective, AXPGridLayoutDirective,
|
2
|
-
import { AXPEntityDetailViewModelResolver, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
1
|
+
import { isSmallScreen, getChildDrawer, AXPStickyDirective, AXPGridLayoutDirective, AXPDataGenerator, AXPEntityStorageService, AXPEntityDataProviderImpl, AXMEntityCrudServiceImpl, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';
|
2
|
+
import { AXPEntityDetailViewModelResolver, AXPEntityService, 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,
|
6
|
+
import { inject, signal, ChangeDetectionStrategy, Component, Injectable, Injector, Optional, Inject, NgModule } 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 } 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", "look", "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-DjRdIBQt.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);
|
@@ -159,35 +330,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
159
330
|
type: Injectable
|
160
331
|
}] });
|
161
332
|
|
333
|
+
const AXMApplicationManagementModuleConst = {
|
334
|
+
moduleName: 'ApplicationManagement',
|
335
|
+
moduleRoute: 'application-management',
|
336
|
+
i18n: 'platform-management',
|
337
|
+
};
|
338
|
+
|
162
339
|
class AXMApplicationManagmentModuleMenuProvider {
|
163
340
|
constructor() {
|
164
|
-
this.
|
341
|
+
this.entityService = inject(AXPEntityService);
|
165
342
|
}
|
166
|
-
async
|
167
|
-
const scope =
|
168
|
-
|
343
|
+
async provide(context) {
|
344
|
+
const scope = AXMApplicationManagementModuleConst.i18n;
|
345
|
+
context.addItems([
|
169
346
|
{
|
170
|
-
|
347
|
+
priority: 8001,
|
348
|
+
text: `t("applicationManagement", {scope:${scope}})`,
|
349
|
+
icon: 'fa-solid fa-cogs',
|
350
|
+
children: [
|
171
351
|
{
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
text: await this.translateService.translateAsync('moduleDesigner', { scope }),
|
178
|
-
path: '/console/module-designer',
|
179
|
-
icon: 'fa-solid fa-cog',
|
180
|
-
data: {},
|
181
|
-
},
|
182
|
-
],
|
352
|
+
text: `t("moduleDesigner", {scope:${scope}})`,
|
353
|
+
//TODO this seems doesnt work well with our functions
|
354
|
+
path: '/console/module-designer',
|
355
|
+
icon: 'fa-solid fa-cog',
|
356
|
+
data: {},
|
183
357
|
},
|
184
358
|
],
|
185
359
|
},
|
186
|
-
];
|
360
|
+
]);
|
187
361
|
}
|
188
362
|
}
|
189
363
|
|
190
364
|
const APPLICATION_SOURCE_NAME = 'application-management.application';
|
365
|
+
const APPLICATION_MODULE_SOURCE_NAME = 'application-management.application-module';
|
191
366
|
const MODULE_SOURCE_NAME = 'application-management.module';
|
192
367
|
const ENTITY_SOURCE_NAME = 'application-management.entity';
|
193
368
|
const PERMISSION_SOURCE_NAME = 'application-management.permission';
|
@@ -208,6 +383,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
208
383
|
type: Injectable
|
209
384
|
}], ctorParameters: () => [] });
|
210
385
|
|
386
|
+
class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
|
387
|
+
}
|
388
|
+
class AXMApplicationModuleServiceImpl extends AXMEntityCrudServiceImpl {
|
389
|
+
constructor() {
|
390
|
+
super(APPLICATION_MODULE_SOURCE_NAME);
|
391
|
+
}
|
392
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
393
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl }); }
|
394
|
+
}
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl, decorators: [{
|
396
|
+
type: Injectable
|
397
|
+
}], ctorParameters: () => [] });
|
398
|
+
|
399
|
+
class AXMEditionService extends AXMEntityCrudServiceImpl {
|
400
|
+
}
|
401
|
+
class AXMEditionServiceImpl extends AXMEntityCrudServiceImpl {
|
402
|
+
constructor() {
|
403
|
+
super(EDITION_SOURCE_NAME);
|
404
|
+
}
|
405
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
406
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl }); }
|
407
|
+
}
|
408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl, decorators: [{
|
409
|
+
type: Injectable
|
410
|
+
}], ctorParameters: () => [] });
|
411
|
+
|
412
|
+
class AXMEntityService extends AXMEntityCrudServiceImpl {
|
413
|
+
}
|
414
|
+
class AXMEntityServiceImpl extends AXMEntityCrudServiceImpl {
|
415
|
+
constructor() {
|
416
|
+
super(ENTITY_SOURCE_NAME);
|
417
|
+
}
|
418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
419
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl }); }
|
420
|
+
}
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl, decorators: [{
|
422
|
+
type: Injectable
|
423
|
+
}], ctorParameters: () => [] });
|
424
|
+
|
425
|
+
class AXMFeatureService extends AXMEntityCrudServiceImpl {
|
426
|
+
}
|
427
|
+
class AXMFeatureServiceImpl extends AXMEntityCrudServiceImpl {
|
428
|
+
constructor() {
|
429
|
+
super(FEATURE_SOURCE_NAME);
|
430
|
+
}
|
431
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
432
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl }); }
|
433
|
+
}
|
434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl, decorators: [{
|
435
|
+
type: Injectable
|
436
|
+
}], ctorParameters: () => [] });
|
437
|
+
|
211
438
|
class AXMModuleService extends AXMEntityCrudServiceImpl {
|
212
439
|
}
|
213
440
|
class AXMModuleServiceImpl extends AXMEntityCrudServiceImpl {
|
@@ -221,6 +448,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
221
448
|
type: Injectable
|
222
449
|
}], ctorParameters: () => [] });
|
223
450
|
|
451
|
+
class AXMPermissionService extends AXMEntityCrudServiceImpl {
|
452
|
+
}
|
453
|
+
class AXMPermissionServiceImpl extends AXMEntityCrudServiceImpl {
|
454
|
+
constructor() {
|
455
|
+
super(PERMISSION_SOURCE_NAME);
|
456
|
+
}
|
457
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
458
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl }); }
|
459
|
+
}
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl, decorators: [{
|
461
|
+
type: Injectable
|
462
|
+
}], ctorParameters: () => [] });
|
463
|
+
|
464
|
+
class AXMPropertyService extends AXMEntityCrudServiceImpl {
|
465
|
+
}
|
466
|
+
class AXMPropertyServiceImpl extends AXMEntityCrudServiceImpl {
|
467
|
+
constructor() {
|
468
|
+
super(PROPERTY_SOURCE_NAME);
|
469
|
+
}
|
470
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
471
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl }); }
|
472
|
+
}
|
473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl, decorators: [{
|
474
|
+
type: Injectable
|
475
|
+
}], ctorParameters: () => [] });
|
476
|
+
|
224
477
|
class AXPShowModuleEntityDetailViewAction extends AXPWorkflowAction {
|
225
478
|
constructor() {
|
226
479
|
super(...arguments);
|
@@ -315,6 +568,34 @@ class AXMApplicationManagementModule {
|
|
315
568
|
provide: AXMApplicationService,
|
316
569
|
useClass: AXMApplicationServiceImpl,
|
317
570
|
},
|
571
|
+
{
|
572
|
+
provide: AXMApplicationModuleService$1,
|
573
|
+
useClass: AXMApplicationModuleServiceImpl,
|
574
|
+
},
|
575
|
+
{
|
576
|
+
provide: AXMEntityService$1,
|
577
|
+
useClass: AXMEntityServiceImpl,
|
578
|
+
},
|
579
|
+
{
|
580
|
+
provide: AXMPermissionService$1,
|
581
|
+
useClass: AXMPermissionServiceImpl,
|
582
|
+
},
|
583
|
+
{
|
584
|
+
provide: AXMFeatureService$1,
|
585
|
+
useClass: AXMFeatureServiceImpl,
|
586
|
+
},
|
587
|
+
{
|
588
|
+
provide: AXMPropertyService$1,
|
589
|
+
useClass: AXMPropertyServiceImpl,
|
590
|
+
},
|
591
|
+
{
|
592
|
+
provide: AXMEditionService$1,
|
593
|
+
useClass: AXMEditionServiceImpl,
|
594
|
+
},
|
595
|
+
// {
|
596
|
+
// provide: AXPModuleDesignerService,
|
597
|
+
// useClass: AXMModuleDesignerService,
|
598
|
+
// },
|
318
599
|
],
|
319
600
|
};
|
320
601
|
}
|
@@ -360,178 +641,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
360
641
|
args: ['AXP_REGISTER_MODULES_ENTITIES']
|
361
642
|
}] }] });
|
362
643
|
|
363
|
-
const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
|
364
|
-
const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
|
365
|
-
const name = AXPDataGenerator.pick(source);
|
366
|
-
return {
|
367
|
-
id: AXPDataGenerator.uuid(),
|
368
|
-
name: name,
|
369
|
-
title: name,
|
370
|
-
isArchived: AXPDataGenerator.boolean(),
|
371
|
-
};
|
372
|
-
});
|
373
|
-
const MODULES = Array.from({ length: 5 }).map((_, i) => {
|
374
|
-
const source = [
|
375
|
-
'UserManagement',
|
376
|
-
'Analytics',
|
377
|
-
'Reporting',
|
378
|
-
'PaymentGateway',
|
379
|
-
'NotificationService',
|
380
|
-
'InventoryManagement',
|
381
|
-
];
|
382
|
-
const name = AXPDataGenerator.pick(source);
|
383
|
-
return {
|
384
|
-
id: AXPDataGenerator.uuid(),
|
385
|
-
name: name,
|
386
|
-
title: name,
|
387
|
-
isArchived: AXPDataGenerator.boolean(),
|
388
|
-
};
|
389
|
-
});
|
390
|
-
const APPLICATIONS_MODULES = Array.from({ length: 5 }).map((_, i) => {
|
391
|
-
return {
|
392
|
-
id: AXPDataGenerator.uuid(),
|
393
|
-
application: AXPDataGenerator.pick(APPLICATIONS),
|
394
|
-
module: AXPDataGenerator.pick(MODULES),
|
395
|
-
};
|
396
|
-
});
|
397
|
-
const EDITIONS = Array.from({ length: 5 }).map((_, i) => {
|
398
|
-
const source = ['Standard', 'Premium', 'Gold', 'Silver', 'Bronze', 'Platinum', 'Enterprise'];
|
399
|
-
const name = AXPDataGenerator.pick(source);
|
400
|
-
return {
|
401
|
-
id: AXPDataGenerator.uuid(),
|
402
|
-
application: AXPDataGenerator.pick(APPLICATIONS),
|
403
|
-
name: name,
|
404
|
-
title: name,
|
405
|
-
isArchived: AXPDataGenerator.boolean(),
|
406
|
-
};
|
407
|
-
});
|
408
|
-
const FEATURES = Array.from({ length: 5 }).map((_, i) => {
|
409
|
-
const source = [
|
410
|
-
'User Authentication',
|
411
|
-
'Data Encryption',
|
412
|
-
'Real-time Notifications',
|
413
|
-
'Customizable Dashboards',
|
414
|
-
'API Access',
|
415
|
-
'Multi-language Support',
|
416
|
-
'Analytics and Reporting',
|
417
|
-
'Offline Mode',
|
418
|
-
];
|
419
|
-
const name = AXPDataGenerator.pick(source);
|
420
|
-
return {
|
421
|
-
id: AXPDataGenerator.uuid(),
|
422
|
-
moduleId: AXPDataGenerator.pick(MODULES).id,
|
423
|
-
name: name,
|
424
|
-
title: name,
|
425
|
-
isArchived: AXPDataGenerator.boolean(),
|
426
|
-
};
|
427
|
-
});
|
428
|
-
const ENTITIES = Array.from({ length: 5 }).map((_, i) => {
|
429
|
-
const source = ['User', 'Product', 'Order', 'Customer', 'Transaction', 'Category', 'Review', 'InventoryItem'];
|
430
|
-
const name = AXPDataGenerator.pick(source);
|
431
|
-
return {
|
432
|
-
id: AXPDataGenerator.uuid(),
|
433
|
-
moduleId: AXPDataGenerator.pick(MODULES).id,
|
434
|
-
name: name,
|
435
|
-
title: name,
|
436
|
-
isArchived: AXPDataGenerator.boolean(),
|
437
|
-
};
|
438
|
-
});
|
439
|
-
const PERMISSIONS = Array.from({ length: 5 }).map((_, i) => {
|
440
|
-
const source = ['Read', 'Write', 'Update', 'Delete', 'ManageUsers', 'ViewReports', 'AccessSettings', 'CreateContent'];
|
441
|
-
const name = AXPDataGenerator.pick(source);
|
442
|
-
return {
|
443
|
-
id: AXPDataGenerator.uuid(),
|
444
|
-
moduleId: AXPDataGenerator.pick(MODULES).id,
|
445
|
-
name: name,
|
446
|
-
title: name,
|
447
|
-
isArchived: AXPDataGenerator.boolean(),
|
448
|
-
};
|
449
|
-
});
|
450
|
-
const PROPERTIES = Array.from({ length: 10 }).map((_, i) => {
|
451
|
-
const source = [
|
452
|
-
'property1',
|
453
|
-
'property2',
|
454
|
-
'property3',
|
455
|
-
'property4',
|
456
|
-
'property5',
|
457
|
-
'property6',
|
458
|
-
'property7',
|
459
|
-
'property8',
|
460
|
-
];
|
461
|
-
const name = AXPDataGenerator.pick(source);
|
462
|
-
return {
|
463
|
-
id: AXPDataGenerator.uuid(),
|
464
|
-
entityId: AXPDataGenerator.pick(ENTITIES).id,
|
465
|
-
name: name,
|
466
|
-
title: name,
|
467
|
-
path: name,
|
468
|
-
};
|
469
|
-
});
|
470
|
-
|
471
|
-
class AXPApplicationManagementService {
|
472
|
-
constructor(injector) {
|
473
|
-
const storageService = injector.get(AXPEntityStorageService);
|
474
|
-
//
|
475
|
-
this._applicationModuleDataProvider = new AXPEntityDataProviderImpl(storageService, 'applications-modules');
|
476
|
-
this._applicationModuleDataProvider.initial(APPLICATIONS_MODULES);
|
477
|
-
//
|
478
|
-
this._editionDataProvider = new AXPEntityDataProviderImpl(storageService, 'editions');
|
479
|
-
this._editionDataProvider.initial(EDITIONS);
|
480
|
-
//
|
481
|
-
this._featureDataProvider = new AXPEntityDataProviderImpl(storageService, 'features');
|
482
|
-
this._featureDataProvider.initial(FEATURES);
|
483
|
-
//
|
484
|
-
this._entityDataProvider = new AXPEntityDataProviderImpl(storageService, 'entities');
|
485
|
-
this._entityDataProvider.initial(ENTITIES);
|
486
|
-
//
|
487
|
-
this._propertyDataProvider = new AXPEntityDataProviderImpl(storageService, 'properties');
|
488
|
-
this._propertyDataProvider.initial(PROPERTIES);
|
489
|
-
//
|
490
|
-
this._permissionDataProvider = new AXPEntityDataProviderImpl(storageService, 'permissions');
|
491
|
-
this._permissionDataProvider.initial(PERMISSIONS);
|
492
|
-
}
|
493
|
-
get applicationModuleDataProvider() {
|
494
|
-
return this._applicationModuleDataProvider;
|
495
|
-
}
|
496
|
-
get editionDataProvider() {
|
497
|
-
return this._editionDataProvider;
|
498
|
-
}
|
499
|
-
get featureDataProvider() {
|
500
|
-
return this._featureDataProvider;
|
501
|
-
}
|
502
|
-
get entityDataProvider() {
|
503
|
-
return this._entityDataProvider;
|
504
|
-
}
|
505
|
-
get propertyDataProvider() {
|
506
|
-
return this._propertyDataProvider;
|
507
|
-
}
|
508
|
-
get permissionDataProvider() {
|
509
|
-
return this._permissionDataProvider;
|
510
|
-
}
|
511
|
-
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 }); }
|
512
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, providedIn: 'root' }); }
|
513
|
-
}
|
514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, decorators: [{
|
515
|
-
type: Injectable,
|
516
|
-
args: [{
|
517
|
-
providedIn: 'root',
|
518
|
-
}]
|
519
|
-
}], ctorParameters: () => [{ type: i0.Injector }] });
|
520
|
-
class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
|
521
|
-
}
|
522
|
-
class AXMEntityService extends AXMEntityCrudServiceImpl {
|
523
|
-
}
|
524
|
-
class AXMEditionService extends AXMEntityCrudServiceImpl {
|
525
|
-
}
|
526
|
-
class AXMFeatureService extends AXMEntityCrudServiceImpl {
|
527
|
-
}
|
528
|
-
class AXMPermissionService extends AXMEntityCrudServiceImpl {
|
529
|
-
}
|
530
|
-
class AXMPropertyService extends AXMEntityCrudServiceImpl {
|
531
|
-
}
|
532
|
-
|
533
644
|
async function applicationModuleEntityFactory(injector) {
|
534
|
-
const dataService = injector.get(
|
645
|
+
const dataService = injector.get(AXMApplicationModuleService$1);
|
535
646
|
const entityDef = {
|
536
647
|
module: 'application-management',
|
537
648
|
name: 'application-module',
|
@@ -577,13 +688,13 @@ async function applicationModuleEntityFactory(injector) {
|
|
577
688
|
create: {
|
578
689
|
execute: async (data) => {
|
579
690
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
580
|
-
dataService.
|
691
|
+
dataService.insertOne(entity);
|
581
692
|
return Promise.resolve(entity);
|
582
693
|
},
|
583
694
|
},
|
584
695
|
delete: {
|
585
696
|
execute: async (id) => {
|
586
|
-
await await dataService.
|
697
|
+
await await dataService.deleteOne(id);
|
587
698
|
return Promise.resolve();
|
588
699
|
},
|
589
700
|
},
|
@@ -591,7 +702,7 @@ async function applicationModuleEntityFactory(injector) {
|
|
591
702
|
execute: async (data) => {
|
592
703
|
return new Promise((resolve) => {
|
593
704
|
setTimeout(async () => {
|
594
|
-
await dataService.
|
705
|
+
await dataService.updateOne(data.id, data);
|
595
706
|
resolve(data);
|
596
707
|
}, 1000);
|
597
708
|
});
|
@@ -603,7 +714,7 @@ async function applicationModuleEntityFactory(injector) {
|
|
603
714
|
execute: async (id) => {
|
604
715
|
return new Promise((resolve) => {
|
605
716
|
setTimeout(async () => {
|
606
|
-
const entity = await dataService.
|
717
|
+
const entity = await dataService.getOne(id);
|
607
718
|
resolve(entity);
|
608
719
|
}, 500);
|
609
720
|
});
|
@@ -612,12 +723,10 @@ async function applicationModuleEntityFactory(injector) {
|
|
612
723
|
},
|
613
724
|
list: {
|
614
725
|
execute: async (e) => {
|
615
|
-
const
|
616
|
-
const sortedItems = applySortArray(list, e.sort);
|
617
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
726
|
+
const data = await dataService.query(e);
|
618
727
|
return Promise.resolve({
|
619
|
-
total:
|
620
|
-
items:
|
728
|
+
total: data.total,
|
729
|
+
items: data.items,
|
621
730
|
});
|
622
731
|
},
|
623
732
|
type: AXPEntityQueryType.List,
|
@@ -1107,7 +1216,7 @@ async function applicationEntityFactory(injector) {
|
|
1107
1216
|
}
|
1108
1217
|
|
1109
1218
|
async function editionEntityFactory(injector) {
|
1110
|
-
const dataService = injector.get(
|
1219
|
+
const dataService = injector.get(AXMEditionService$1);
|
1111
1220
|
const entityDef = {
|
1112
1221
|
module: 'application-management',
|
1113
1222
|
name: 'edition',
|
@@ -1164,13 +1273,13 @@ async function editionEntityFactory(injector) {
|
|
1164
1273
|
create: {
|
1165
1274
|
execute: async (data) => {
|
1166
1275
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
1167
|
-
dataService.
|
1276
|
+
dataService.insertOne(entity);
|
1168
1277
|
return Promise.resolve(entity);
|
1169
1278
|
},
|
1170
1279
|
},
|
1171
1280
|
delete: {
|
1172
1281
|
execute: async (id) => {
|
1173
|
-
await await dataService.
|
1282
|
+
await await dataService.deleteOne(id);
|
1174
1283
|
return Promise.resolve();
|
1175
1284
|
},
|
1176
1285
|
},
|
@@ -1178,7 +1287,7 @@ async function editionEntityFactory(injector) {
|
|
1178
1287
|
execute: async (data) => {
|
1179
1288
|
return new Promise((resolve) => {
|
1180
1289
|
setTimeout(async () => {
|
1181
|
-
await dataService.
|
1290
|
+
await dataService.updateOne(data.id, data);
|
1182
1291
|
resolve(data);
|
1183
1292
|
}, 1000);
|
1184
1293
|
});
|
@@ -1190,7 +1299,7 @@ async function editionEntityFactory(injector) {
|
|
1190
1299
|
execute: async (id) => {
|
1191
1300
|
return new Promise((resolve) => {
|
1192
1301
|
setTimeout(async () => {
|
1193
|
-
const entity = await dataService.
|
1302
|
+
const entity = await dataService.getOne(id);
|
1194
1303
|
resolve(entity);
|
1195
1304
|
}, 500);
|
1196
1305
|
});
|
@@ -1199,12 +1308,10 @@ async function editionEntityFactory(injector) {
|
|
1199
1308
|
},
|
1200
1309
|
list: {
|
1201
1310
|
execute: async (e) => {
|
1202
|
-
const
|
1203
|
-
const sortedItems = applySortArray(list, e.sort);
|
1204
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
1311
|
+
const data = await dataService.query(e);
|
1205
1312
|
return Promise.resolve({
|
1206
|
-
total:
|
1207
|
-
items:
|
1313
|
+
total: data.total,
|
1314
|
+
items: data.items,
|
1208
1315
|
});
|
1209
1316
|
},
|
1210
1317
|
type: AXPEntityQueryType.List,
|
@@ -1387,7 +1494,7 @@ async function editionEntityFactory(injector) {
|
|
1387
1494
|
}
|
1388
1495
|
|
1389
1496
|
async function entityEntityFactory(injector) {
|
1390
|
-
const dataService = injector.get(
|
1497
|
+
const dataService = injector.get(AXMEntityService$1);
|
1391
1498
|
const entityDef = {
|
1392
1499
|
module: 'application-management',
|
1393
1500
|
name: 'entity',
|
@@ -1458,13 +1565,13 @@ async function entityEntityFactory(injector) {
|
|
1458
1565
|
create: {
|
1459
1566
|
execute: async (data) => {
|
1460
1567
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
1461
|
-
dataService.
|
1568
|
+
dataService.insertOne(entity);
|
1462
1569
|
return Promise.resolve(entity);
|
1463
1570
|
},
|
1464
1571
|
},
|
1465
1572
|
delete: {
|
1466
1573
|
execute: async (id) => {
|
1467
|
-
await await dataService.
|
1574
|
+
await await dataService.deleteOne(id);
|
1468
1575
|
return Promise.resolve();
|
1469
1576
|
},
|
1470
1577
|
},
|
@@ -1472,7 +1579,7 @@ async function entityEntityFactory(injector) {
|
|
1472
1579
|
execute: async (data) => {
|
1473
1580
|
return new Promise((resolve) => {
|
1474
1581
|
setTimeout(async () => {
|
1475
|
-
await dataService.
|
1582
|
+
await dataService.updateOne(data.id, data);
|
1476
1583
|
resolve(data);
|
1477
1584
|
}, 1000);
|
1478
1585
|
});
|
@@ -1484,7 +1591,7 @@ async function entityEntityFactory(injector) {
|
|
1484
1591
|
execute: async (id) => {
|
1485
1592
|
return new Promise((resolve) => {
|
1486
1593
|
setTimeout(async () => {
|
1487
|
-
const entity = await dataService.
|
1594
|
+
const entity = await dataService.getOne(id);
|
1488
1595
|
resolve(entity);
|
1489
1596
|
}, 500);
|
1490
1597
|
});
|
@@ -1493,12 +1600,10 @@ async function entityEntityFactory(injector) {
|
|
1493
1600
|
},
|
1494
1601
|
list: {
|
1495
1602
|
execute: async (e) => {
|
1496
|
-
const
|
1497
|
-
const sortedItems = applySortArray(list, e.sort);
|
1498
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
1603
|
+
const data = await dataService.query(e);
|
1499
1604
|
return Promise.resolve({
|
1500
|
-
total:
|
1501
|
-
items:
|
1605
|
+
total: data.total,
|
1606
|
+
items: data.items,
|
1502
1607
|
});
|
1503
1608
|
},
|
1504
1609
|
type: AXPEntityQueryType.List,
|
@@ -1686,7 +1791,7 @@ var entity_entity = /*#__PURE__*/Object.freeze({
|
|
1686
1791
|
});
|
1687
1792
|
|
1688
1793
|
async function featureEntityFactory(injector) {
|
1689
|
-
const dataService = injector.get(
|
1794
|
+
const dataService = injector.get(AXMFeatureService$1);
|
1690
1795
|
const EntityDef = {
|
1691
1796
|
module: 'application-management',
|
1692
1797
|
name: 'feature',
|
@@ -1743,13 +1848,13 @@ async function featureEntityFactory(injector) {
|
|
1743
1848
|
create: {
|
1744
1849
|
execute: async (data) => {
|
1745
1850
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
1746
|
-
dataService.
|
1851
|
+
dataService.insertOne(entity);
|
1747
1852
|
return Promise.resolve(entity);
|
1748
1853
|
},
|
1749
1854
|
},
|
1750
1855
|
delete: {
|
1751
1856
|
execute: async (id) => {
|
1752
|
-
await await dataService.
|
1857
|
+
await await dataService.deleteOne(id);
|
1753
1858
|
return Promise.resolve();
|
1754
1859
|
},
|
1755
1860
|
},
|
@@ -1757,7 +1862,7 @@ async function featureEntityFactory(injector) {
|
|
1757
1862
|
execute: async (data) => {
|
1758
1863
|
return new Promise((resolve) => {
|
1759
1864
|
setTimeout(async () => {
|
1760
|
-
await dataService.
|
1865
|
+
await dataService.updateOne(data.id, data);
|
1761
1866
|
resolve(data);
|
1762
1867
|
}, 1000);
|
1763
1868
|
});
|
@@ -1769,7 +1874,7 @@ async function featureEntityFactory(injector) {
|
|
1769
1874
|
execute: async (id) => {
|
1770
1875
|
return new Promise((resolve) => {
|
1771
1876
|
setTimeout(async () => {
|
1772
|
-
const entity = await dataService.
|
1877
|
+
const entity = await dataService.getOne(id);
|
1773
1878
|
resolve(entity);
|
1774
1879
|
}, 500);
|
1775
1880
|
});
|
@@ -1778,12 +1883,10 @@ async function featureEntityFactory(injector) {
|
|
1778
1883
|
},
|
1779
1884
|
list: {
|
1780
1885
|
execute: async (e) => {
|
1781
|
-
const
|
1782
|
-
const sortedItems = applySortArray(list, e.sort);
|
1783
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
1886
|
+
const data = await dataService.query(e);
|
1784
1887
|
return Promise.resolve({
|
1785
|
-
total:
|
1786
|
-
items:
|
1888
|
+
total: data.total,
|
1889
|
+
items: data.items,
|
1787
1890
|
});
|
1788
1891
|
},
|
1789
1892
|
type: AXPEntityQueryType.List,
|
@@ -2105,7 +2208,7 @@ async function modulesEntityFactory(injector) {
|
|
2105
2208
|
execute: async (e) => {
|
2106
2209
|
const data = await dataService.query(e);
|
2107
2210
|
return {
|
2108
|
-
total: data.
|
2211
|
+
total: data.total,
|
2109
2212
|
items: data.items,
|
2110
2213
|
};
|
2111
2214
|
},
|
@@ -2294,7 +2397,7 @@ var modules_entity = /*#__PURE__*/Object.freeze({
|
|
2294
2397
|
});
|
2295
2398
|
|
2296
2399
|
async function permissionEntityFactory(injector) {
|
2297
|
-
const dataService = injector.get(
|
2400
|
+
const dataService = injector.get(AXMPermissionService$1);
|
2298
2401
|
const entityDef = {
|
2299
2402
|
module: 'application-management',
|
2300
2403
|
name: 'permission',
|
@@ -2351,13 +2454,13 @@ async function permissionEntityFactory(injector) {
|
|
2351
2454
|
create: {
|
2352
2455
|
execute: async (data) => {
|
2353
2456
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
2354
|
-
dataService.
|
2457
|
+
dataService.insertOne(entity);
|
2355
2458
|
return Promise.resolve(entity);
|
2356
2459
|
},
|
2357
2460
|
},
|
2358
2461
|
delete: {
|
2359
2462
|
execute: async (id) => {
|
2360
|
-
await await dataService.
|
2463
|
+
await await dataService.deleteOne(id);
|
2361
2464
|
return Promise.resolve();
|
2362
2465
|
},
|
2363
2466
|
},
|
@@ -2365,7 +2468,7 @@ async function permissionEntityFactory(injector) {
|
|
2365
2468
|
execute: async (data) => {
|
2366
2469
|
return new Promise((resolve) => {
|
2367
2470
|
setTimeout(async () => {
|
2368
|
-
await dataService.
|
2471
|
+
await dataService.updateOne(data.id, data);
|
2369
2472
|
resolve(data);
|
2370
2473
|
}, 1000);
|
2371
2474
|
});
|
@@ -2377,7 +2480,7 @@ async function permissionEntityFactory(injector) {
|
|
2377
2480
|
execute: async (id) => {
|
2378
2481
|
return new Promise((resolve) => {
|
2379
2482
|
setTimeout(async () => {
|
2380
|
-
const entity = await dataService.
|
2483
|
+
const entity = await dataService.getOne(id);
|
2381
2484
|
resolve(entity);
|
2382
2485
|
}, 500);
|
2383
2486
|
});
|
@@ -2386,12 +2489,10 @@ async function permissionEntityFactory(injector) {
|
|
2386
2489
|
},
|
2387
2490
|
list: {
|
2388
2491
|
execute: async (e) => {
|
2389
|
-
const
|
2390
|
-
const sortedItems = applySortArray(list, e.sort);
|
2391
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
2492
|
+
const data = await dataService.query(e);
|
2392
2493
|
return Promise.resolve({
|
2393
|
-
total:
|
2394
|
-
items:
|
2494
|
+
total: data.total,
|
2495
|
+
items: data.items,
|
2395
2496
|
});
|
2396
2497
|
},
|
2397
2498
|
type: AXPEntityQueryType.List,
|
@@ -2579,7 +2680,7 @@ var permission_entity = /*#__PURE__*/Object.freeze({
|
|
2579
2680
|
});
|
2580
2681
|
|
2581
2682
|
async function propertyEntityFactory(injector) {
|
2582
|
-
const dataService = injector.get(
|
2683
|
+
const dataService = injector.get(AXMPropertyService$1);
|
2583
2684
|
const entityDef = {
|
2584
2685
|
module: 'application-management',
|
2585
2686
|
name: 'property',
|
@@ -2701,13 +2802,13 @@ async function propertyEntityFactory(injector) {
|
|
2701
2802
|
create: {
|
2702
2803
|
execute: async (data) => {
|
2703
2804
|
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
2704
|
-
dataService.
|
2805
|
+
dataService.insertOne(entity);
|
2705
2806
|
return Promise.resolve(entity);
|
2706
2807
|
},
|
2707
2808
|
},
|
2708
2809
|
delete: {
|
2709
2810
|
execute: async (id) => {
|
2710
|
-
await await dataService.
|
2811
|
+
await await dataService.deleteOne(id);
|
2711
2812
|
return Promise.resolve();
|
2712
2813
|
},
|
2713
2814
|
},
|
@@ -2715,7 +2816,7 @@ async function propertyEntityFactory(injector) {
|
|
2715
2816
|
execute: async (data) => {
|
2716
2817
|
return new Promise((resolve) => {
|
2717
2818
|
setTimeout(async () => {
|
2718
|
-
await dataService.
|
2819
|
+
await dataService.updateOne(data.id, data);
|
2719
2820
|
resolve(data);
|
2720
2821
|
}, 1000);
|
2721
2822
|
});
|
@@ -2727,7 +2828,7 @@ async function propertyEntityFactory(injector) {
|
|
2727
2828
|
execute: async (id) => {
|
2728
2829
|
return new Promise((resolve) => {
|
2729
2830
|
setTimeout(async () => {
|
2730
|
-
const entity = await dataService.
|
2831
|
+
const entity = await dataService.getOne(id);
|
2731
2832
|
resolve(entity);
|
2732
2833
|
}, 500);
|
2733
2834
|
});
|
@@ -2736,12 +2837,10 @@ async function propertyEntityFactory(injector) {
|
|
2736
2837
|
},
|
2737
2838
|
list: {
|
2738
2839
|
execute: async (e) => {
|
2739
|
-
const
|
2740
|
-
const sortedItems = applySortArray(list, e.sort);
|
2741
|
-
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
2840
|
+
const data = await dataService.query(e);
|
2742
2841
|
return Promise.resolve({
|
2743
|
-
total:
|
2744
|
-
items:
|
2842
|
+
total: data.total,
|
2843
|
+
items: data.items,
|
2745
2844
|
});
|
2746
2845
|
},
|
2747
2846
|
type: AXPEntityQueryType.List,
|
@@ -3036,5 +3135,5 @@ class AXPModuleDesignerService {
|
|
3036
3135
|
* Generated bundle index. Do not edit.
|
3037
3136
|
*/
|
3038
3137
|
|
3039
|
-
export { APPLICATION_SOURCE_NAME, AXMApplicationManagementModule, AXMApplicationModuleService, AXMEditionService, AXMEntityService, AXMFeatureService, AXMPermissionService, 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 };
|
3138
|
+
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 };
|
3040
3139
|
//# sourceMappingURL=acorex-modules-application-management.mjs.map
|