@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,35 +1,1043 @@
|
|
1
|
-
import { AXMEntityCrudServiceImpl,
|
1
|
+
import { AXMEntityCrudServiceImpl, AXPEntityCommandScope, AXPEntityQueryType, AXPDataGenerator, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
2
|
+
import { AXP_ENTITY_DEFINITION_LOADER, AXPEntityService } from '@acorex/platform/layout/entity';
|
2
3
|
import * as i0 from '@angular/core';
|
3
4
|
import { Injectable, inject, Injector, NgModule } from '@angular/core';
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
7
|
-
import { AXTranslationService } from '@acorex/core/translation';
|
5
|
+
import { AXPWidgetsCatalog, AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
|
6
|
+
import { AXDataSource } from '@acorex/components/common';
|
8
7
|
|
9
|
-
|
8
|
+
const CURRENCY_SOURCE_NAME = 'common.currency';
|
9
|
+
const COUNTRY_SOURCE_NAME = 'common.country';
|
10
|
+
const PROVINCE_SOURCE_NAME = 'common.province';
|
11
|
+
const CITY_SOURCE_NAME = 'common.city';
|
12
|
+
|
13
|
+
class AXMCountryService extends AXMEntityCrudServiceImpl {
|
14
|
+
}
|
15
|
+
class AXMCountryServiceImpl extends AXMCountryService {
|
16
|
+
constructor() {
|
17
|
+
super(COUNTRY_SOURCE_NAME);
|
18
|
+
}
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCountryServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
20
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCountryServiceImpl }); }
|
21
|
+
}
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCountryServiceImpl, decorators: [{
|
23
|
+
type: Injectable
|
24
|
+
}], ctorParameters: () => [] });
|
25
|
+
|
26
|
+
async function countryEntityFactory(injector) {
|
27
|
+
const dataService = injector.get(AXMCountryService);
|
28
|
+
const entityDef = {
|
29
|
+
module: 'localization-management',
|
30
|
+
name: 'country',
|
31
|
+
source: 'localizationManagement.country',
|
32
|
+
title: 'Country',
|
33
|
+
formats: {
|
34
|
+
individual: 'Country',
|
35
|
+
plural: 'Countries',
|
36
|
+
},
|
37
|
+
relatedEntities: [
|
38
|
+
{
|
39
|
+
entity: 'common.province',
|
40
|
+
title: 't("provinces", { scope: "common" })',
|
41
|
+
columns: ['title'],
|
42
|
+
conditions: [
|
43
|
+
{
|
44
|
+
name: 'countryId',
|
45
|
+
operator: {
|
46
|
+
type: 'equal',
|
47
|
+
},
|
48
|
+
value: '${id}',
|
49
|
+
},
|
50
|
+
],
|
51
|
+
},
|
52
|
+
],
|
53
|
+
groups: [
|
54
|
+
{
|
55
|
+
id: 'country',
|
56
|
+
title: 'Country',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
id: 'extra',
|
60
|
+
title: 'Global',
|
61
|
+
},
|
62
|
+
{
|
63
|
+
id: 'geo',
|
64
|
+
title: 'Geo',
|
65
|
+
},
|
66
|
+
],
|
67
|
+
properties: [
|
68
|
+
{
|
69
|
+
name: 'title',
|
70
|
+
title: 'Title',
|
71
|
+
groupId: 'country',
|
72
|
+
schema: {
|
73
|
+
dataType: 'string',
|
74
|
+
interface: {
|
75
|
+
type: AXPWidgetsCatalog.text,
|
76
|
+
},
|
77
|
+
},
|
78
|
+
validations: [
|
79
|
+
{
|
80
|
+
rule: 'required',
|
81
|
+
},
|
82
|
+
],
|
83
|
+
},
|
84
|
+
{
|
85
|
+
name: 'iso3',
|
86
|
+
title: 'ISO3 Code',
|
87
|
+
groupId: 'country',
|
88
|
+
schema: {
|
89
|
+
dataType: 'string',
|
90
|
+
interface: {
|
91
|
+
type: AXPWidgetsCatalog.text,
|
92
|
+
},
|
93
|
+
},
|
94
|
+
validations: [
|
95
|
+
{
|
96
|
+
rule: 'required',
|
97
|
+
},
|
98
|
+
],
|
99
|
+
},
|
100
|
+
{
|
101
|
+
name: 'iso2',
|
102
|
+
title: 'ISO2 Code',
|
103
|
+
groupId: 'country',
|
104
|
+
schema: {
|
105
|
+
dataType: 'string',
|
106
|
+
interface: {
|
107
|
+
type: AXPWidgetsCatalog.text,
|
108
|
+
},
|
109
|
+
},
|
110
|
+
validations: [
|
111
|
+
{
|
112
|
+
rule: 'required',
|
113
|
+
},
|
114
|
+
],
|
115
|
+
},
|
116
|
+
{
|
117
|
+
name: 'numericCode',
|
118
|
+
title: 'Numeric Code',
|
119
|
+
groupId: 'country',
|
120
|
+
schema: {
|
121
|
+
dataType: 'string',
|
122
|
+
interface: {
|
123
|
+
type: AXPWidgetsCatalog.text,
|
124
|
+
},
|
125
|
+
},
|
126
|
+
validations: [
|
127
|
+
{
|
128
|
+
rule: 'required',
|
129
|
+
},
|
130
|
+
],
|
131
|
+
},
|
132
|
+
{
|
133
|
+
name: 'nativeName',
|
134
|
+
title: 'Native Name',
|
135
|
+
groupId: 'geo',
|
136
|
+
schema: {
|
137
|
+
dataType: 'string',
|
138
|
+
interface: {
|
139
|
+
type: AXPWidgetsCatalog.text,
|
140
|
+
},
|
141
|
+
},
|
142
|
+
validations: [
|
143
|
+
{
|
144
|
+
rule: 'required',
|
145
|
+
},
|
146
|
+
],
|
147
|
+
},
|
148
|
+
{
|
149
|
+
name: 'region',
|
150
|
+
title: 'Region',
|
151
|
+
groupId: 'geo',
|
152
|
+
schema: {
|
153
|
+
dataType: 'string',
|
154
|
+
interface: {
|
155
|
+
type: AXPWidgetsCatalog.text,
|
156
|
+
},
|
157
|
+
},
|
158
|
+
validations: [
|
159
|
+
{
|
160
|
+
rule: 'required',
|
161
|
+
},
|
162
|
+
],
|
163
|
+
},
|
164
|
+
{
|
165
|
+
name: 'subregion',
|
166
|
+
title: 'SubRegion',
|
167
|
+
groupId: 'geo',
|
168
|
+
schema: {
|
169
|
+
dataType: 'string',
|
170
|
+
interface: {
|
171
|
+
type: AXPWidgetsCatalog.text,
|
172
|
+
},
|
173
|
+
},
|
174
|
+
validations: [
|
175
|
+
{
|
176
|
+
rule: 'required',
|
177
|
+
},
|
178
|
+
],
|
179
|
+
},
|
180
|
+
{
|
181
|
+
name: 'nationality',
|
182
|
+
title: 'Nationality',
|
183
|
+
groupId: 'geo',
|
184
|
+
schema: {
|
185
|
+
dataType: 'string',
|
186
|
+
interface: {
|
187
|
+
type: AXPWidgetsCatalog.text,
|
188
|
+
},
|
189
|
+
},
|
190
|
+
validations: [
|
191
|
+
{
|
192
|
+
rule: 'required',
|
193
|
+
},
|
194
|
+
],
|
195
|
+
},
|
196
|
+
{
|
197
|
+
name: 'geo.latitude',
|
198
|
+
title: 'Latitude',
|
199
|
+
groupId: 'geo',
|
200
|
+
schema: {
|
201
|
+
dataType: 'string',
|
202
|
+
interface: {
|
203
|
+
type: AXPWidgetsCatalog.text,
|
204
|
+
},
|
205
|
+
},
|
206
|
+
validations: [
|
207
|
+
{
|
208
|
+
rule: 'required',
|
209
|
+
},
|
210
|
+
],
|
211
|
+
},
|
212
|
+
{
|
213
|
+
name: 'geo.longitude',
|
214
|
+
title: 'Longitude',
|
215
|
+
groupId: 'geo',
|
216
|
+
schema: {
|
217
|
+
dataType: 'string',
|
218
|
+
interface: {
|
219
|
+
type: AXPWidgetsCatalog.text,
|
220
|
+
},
|
221
|
+
},
|
222
|
+
validations: [
|
223
|
+
{
|
224
|
+
rule: 'required',
|
225
|
+
},
|
226
|
+
],
|
227
|
+
},
|
228
|
+
{
|
229
|
+
name: 'capital',
|
230
|
+
title: 'Capital',
|
231
|
+
groupId: 'extra',
|
232
|
+
schema: {
|
233
|
+
dataType: 'string',
|
234
|
+
interface: {
|
235
|
+
type: AXPWidgetsCatalog.text,
|
236
|
+
},
|
237
|
+
},
|
238
|
+
validations: [
|
239
|
+
{
|
240
|
+
rule: 'required',
|
241
|
+
},
|
242
|
+
],
|
243
|
+
},
|
244
|
+
{
|
245
|
+
name: 'tld',
|
246
|
+
title: 'Top Level Domain',
|
247
|
+
groupId: 'extra',
|
248
|
+
schema: {
|
249
|
+
dataType: 'string',
|
250
|
+
interface: {
|
251
|
+
type: AXPWidgetsCatalog.text,
|
252
|
+
},
|
253
|
+
},
|
254
|
+
validations: [
|
255
|
+
{
|
256
|
+
rule: 'required',
|
257
|
+
},
|
258
|
+
],
|
259
|
+
},
|
260
|
+
],
|
261
|
+
columns: [{ name: 'title' }, { name: 'iso2' }, { name: 'nativeName' }, { name: 'region' }],
|
262
|
+
commands: {
|
263
|
+
create: {
|
264
|
+
execute: async (data) => {
|
265
|
+
return Promise.resolve({ id: await dataService.insertOne(data) });
|
266
|
+
},
|
267
|
+
},
|
268
|
+
delete: {
|
269
|
+
execute: async (id) => {
|
270
|
+
await dataService.deleteOne(id);
|
271
|
+
return Promise.resolve();
|
272
|
+
},
|
273
|
+
},
|
274
|
+
update: {
|
275
|
+
execute: async (data) => {
|
276
|
+
return new Promise((resolve) => {
|
277
|
+
setTimeout(async () => {
|
278
|
+
await dataService.updateOne(data.id, data);
|
279
|
+
resolve(data);
|
280
|
+
}, 1000);
|
281
|
+
});
|
282
|
+
},
|
283
|
+
},
|
284
|
+
},
|
285
|
+
queries: {
|
286
|
+
byKey: {
|
287
|
+
execute: async (id) => {
|
288
|
+
return new Promise((resolve) => {
|
289
|
+
setTimeout(async () => {
|
290
|
+
const entity = await dataService.getOne(id);
|
291
|
+
resolve(entity);
|
292
|
+
}, 500);
|
293
|
+
});
|
294
|
+
},
|
295
|
+
type: AXPEntityQueryType.Single,
|
296
|
+
},
|
297
|
+
list: {
|
298
|
+
execute: async (e) => {
|
299
|
+
return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
300
|
+
},
|
301
|
+
type: AXPEntityQueryType.List,
|
302
|
+
},
|
303
|
+
},
|
304
|
+
interfaces: {
|
305
|
+
master: {
|
306
|
+
create: {
|
307
|
+
sections: [
|
308
|
+
{
|
309
|
+
id: 'country',
|
310
|
+
},
|
311
|
+
],
|
312
|
+
properties: [
|
313
|
+
{
|
314
|
+
name: 'title',
|
315
|
+
layout: {
|
316
|
+
positions: {
|
317
|
+
lg: {
|
318
|
+
colSpan: 6,
|
319
|
+
},
|
320
|
+
},
|
321
|
+
},
|
322
|
+
},
|
323
|
+
{
|
324
|
+
name: 'nativeName',
|
325
|
+
layout: {
|
326
|
+
positions: {
|
327
|
+
lg: {
|
328
|
+
colSpan: 6,
|
329
|
+
},
|
330
|
+
},
|
331
|
+
},
|
332
|
+
},
|
333
|
+
{
|
334
|
+
name: 'iso3',
|
335
|
+
layout: {
|
336
|
+
positions: {
|
337
|
+
lg: {
|
338
|
+
colSpan: 4,
|
339
|
+
},
|
340
|
+
},
|
341
|
+
},
|
342
|
+
},
|
343
|
+
{
|
344
|
+
name: 'iso2',
|
345
|
+
layout: {
|
346
|
+
positions: {
|
347
|
+
lg: {
|
348
|
+
colSpan: 4,
|
349
|
+
},
|
350
|
+
},
|
351
|
+
},
|
352
|
+
},
|
353
|
+
{
|
354
|
+
name: 'numericCode',
|
355
|
+
layout: {
|
356
|
+
positions: {
|
357
|
+
lg: {
|
358
|
+
colSpan: 4,
|
359
|
+
},
|
360
|
+
},
|
361
|
+
},
|
362
|
+
},
|
363
|
+
{
|
364
|
+
name: 'region',
|
365
|
+
layout: {
|
366
|
+
positions: {
|
367
|
+
lg: {
|
368
|
+
colSpan: 6,
|
369
|
+
},
|
370
|
+
},
|
371
|
+
},
|
372
|
+
},
|
373
|
+
{
|
374
|
+
name: 'subregion',
|
375
|
+
layout: {
|
376
|
+
positions: {
|
377
|
+
lg: {
|
378
|
+
colSpan: 6,
|
379
|
+
},
|
380
|
+
},
|
381
|
+
},
|
382
|
+
},
|
383
|
+
{
|
384
|
+
name: 'Nationality',
|
385
|
+
layout: {
|
386
|
+
positions: {
|
387
|
+
lg: {
|
388
|
+
colSpan: 6,
|
389
|
+
},
|
390
|
+
},
|
391
|
+
},
|
392
|
+
},
|
393
|
+
{
|
394
|
+
name: 'geo.latitude',
|
395
|
+
layout: {
|
396
|
+
positions: {
|
397
|
+
lg: {
|
398
|
+
colSpan: 3,
|
399
|
+
},
|
400
|
+
},
|
401
|
+
},
|
402
|
+
},
|
403
|
+
{
|
404
|
+
name: 'geo.longitude',
|
405
|
+
layout: {
|
406
|
+
positions: {
|
407
|
+
lg: {
|
408
|
+
colSpan: 3,
|
409
|
+
},
|
410
|
+
},
|
411
|
+
},
|
412
|
+
},
|
413
|
+
{
|
414
|
+
name: 'capital',
|
415
|
+
layout: {
|
416
|
+
positions: {
|
417
|
+
lg: {
|
418
|
+
colSpan: 6,
|
419
|
+
},
|
420
|
+
},
|
421
|
+
},
|
422
|
+
},
|
423
|
+
{
|
424
|
+
name: 'tld',
|
425
|
+
layout: {
|
426
|
+
positions: {
|
427
|
+
lg: {
|
428
|
+
colSpan: 6,
|
429
|
+
},
|
430
|
+
},
|
431
|
+
},
|
432
|
+
},
|
433
|
+
],
|
434
|
+
},
|
435
|
+
update: {
|
436
|
+
sections: [
|
437
|
+
{
|
438
|
+
id: 'country',
|
439
|
+
},
|
440
|
+
],
|
441
|
+
properties: [
|
442
|
+
{
|
443
|
+
name: 'title',
|
444
|
+
layout: {
|
445
|
+
positions: {
|
446
|
+
lg: {
|
447
|
+
colSpan: 6,
|
448
|
+
},
|
449
|
+
},
|
450
|
+
},
|
451
|
+
},
|
452
|
+
{
|
453
|
+
name: 'nativeName',
|
454
|
+
layout: {
|
455
|
+
positions: {
|
456
|
+
lg: {
|
457
|
+
colSpan: 6,
|
458
|
+
},
|
459
|
+
},
|
460
|
+
},
|
461
|
+
},
|
462
|
+
{
|
463
|
+
name: 'iso3',
|
464
|
+
layout: {
|
465
|
+
positions: {
|
466
|
+
lg: {
|
467
|
+
colSpan: 4,
|
468
|
+
},
|
469
|
+
},
|
470
|
+
},
|
471
|
+
},
|
472
|
+
{
|
473
|
+
name: 'iso2',
|
474
|
+
layout: {
|
475
|
+
positions: {
|
476
|
+
lg: {
|
477
|
+
colSpan: 4,
|
478
|
+
},
|
479
|
+
},
|
480
|
+
},
|
481
|
+
},
|
482
|
+
{
|
483
|
+
name: 'numericCode',
|
484
|
+
layout: {
|
485
|
+
positions: {
|
486
|
+
lg: {
|
487
|
+
colSpan: 4,
|
488
|
+
},
|
489
|
+
},
|
490
|
+
},
|
491
|
+
},
|
492
|
+
{
|
493
|
+
name: 'region',
|
494
|
+
layout: {
|
495
|
+
positions: {
|
496
|
+
lg: {
|
497
|
+
colSpan: 6,
|
498
|
+
},
|
499
|
+
},
|
500
|
+
},
|
501
|
+
},
|
502
|
+
{
|
503
|
+
name: 'subregion',
|
504
|
+
layout: {
|
505
|
+
positions: {
|
506
|
+
lg: {
|
507
|
+
colSpan: 6,
|
508
|
+
},
|
509
|
+
},
|
510
|
+
},
|
511
|
+
},
|
512
|
+
{
|
513
|
+
name: 'nationality',
|
514
|
+
layout: {
|
515
|
+
positions: {
|
516
|
+
lg: {
|
517
|
+
colSpan: 6,
|
518
|
+
},
|
519
|
+
},
|
520
|
+
},
|
521
|
+
},
|
522
|
+
{
|
523
|
+
name: 'geo.latitude',
|
524
|
+
layout: {
|
525
|
+
positions: {
|
526
|
+
lg: {
|
527
|
+
colSpan: 3,
|
528
|
+
},
|
529
|
+
},
|
530
|
+
},
|
531
|
+
},
|
532
|
+
{
|
533
|
+
name: 'geo.longitude',
|
534
|
+
layout: {
|
535
|
+
positions: {
|
536
|
+
lg: {
|
537
|
+
colSpan: 3,
|
538
|
+
},
|
539
|
+
},
|
540
|
+
},
|
541
|
+
},
|
542
|
+
{
|
543
|
+
name: 'capital',
|
544
|
+
layout: {
|
545
|
+
positions: {
|
546
|
+
lg: {
|
547
|
+
colSpan: 6,
|
548
|
+
},
|
549
|
+
},
|
550
|
+
},
|
551
|
+
},
|
552
|
+
{
|
553
|
+
name: 'tld',
|
554
|
+
layout: {
|
555
|
+
positions: {
|
556
|
+
lg: {
|
557
|
+
colSpan: 6,
|
558
|
+
},
|
559
|
+
},
|
560
|
+
},
|
561
|
+
},
|
562
|
+
],
|
563
|
+
},
|
564
|
+
single: {
|
565
|
+
title: '{{title}}',
|
566
|
+
sections: [
|
567
|
+
{
|
568
|
+
id: 'country',
|
569
|
+
},
|
570
|
+
{
|
571
|
+
id: 'extra',
|
572
|
+
},
|
573
|
+
{
|
574
|
+
id: 'geo',
|
575
|
+
},
|
576
|
+
],
|
577
|
+
properties: [
|
578
|
+
{
|
579
|
+
name: 'title',
|
580
|
+
layout: {
|
581
|
+
positions: {
|
582
|
+
lg: {
|
583
|
+
colSpan: 5,
|
584
|
+
},
|
585
|
+
},
|
586
|
+
},
|
587
|
+
},
|
588
|
+
{
|
589
|
+
name: 'iso2',
|
590
|
+
layout: {
|
591
|
+
positions: {
|
592
|
+
lg: {
|
593
|
+
colSpan: 2,
|
594
|
+
},
|
595
|
+
},
|
596
|
+
},
|
597
|
+
},
|
598
|
+
{
|
599
|
+
name: 'iso3',
|
600
|
+
layout: {
|
601
|
+
positions: {
|
602
|
+
lg: {
|
603
|
+
colSpan: 2,
|
604
|
+
},
|
605
|
+
},
|
606
|
+
},
|
607
|
+
},
|
608
|
+
{
|
609
|
+
name: 'numericCode',
|
610
|
+
layout: {
|
611
|
+
positions: {
|
612
|
+
lg: {
|
613
|
+
colSpan: 3,
|
614
|
+
},
|
615
|
+
},
|
616
|
+
},
|
617
|
+
},
|
618
|
+
{
|
619
|
+
name: 'nativeName',
|
620
|
+
layout: {
|
621
|
+
positions: {
|
622
|
+
lg: {
|
623
|
+
colSpan: 6,
|
624
|
+
},
|
625
|
+
},
|
626
|
+
},
|
627
|
+
},
|
628
|
+
{
|
629
|
+
name: 'nationality',
|
630
|
+
layout: {
|
631
|
+
positions: {
|
632
|
+
lg: {
|
633
|
+
colSpan: 6,
|
634
|
+
},
|
635
|
+
},
|
636
|
+
},
|
637
|
+
},
|
638
|
+
{
|
639
|
+
name: 'region',
|
640
|
+
layout: {
|
641
|
+
positions: {
|
642
|
+
lg: {
|
643
|
+
colSpan: 6,
|
644
|
+
},
|
645
|
+
},
|
646
|
+
},
|
647
|
+
},
|
648
|
+
{
|
649
|
+
name: 'subRegion',
|
650
|
+
layout: {
|
651
|
+
positions: {
|
652
|
+
lg: {
|
653
|
+
colSpan: 6,
|
654
|
+
},
|
655
|
+
},
|
656
|
+
},
|
657
|
+
},
|
658
|
+
{
|
659
|
+
name: 'geo.latitude',
|
660
|
+
layout: {
|
661
|
+
positions: {
|
662
|
+
lg: {
|
663
|
+
colSpan: 6,
|
664
|
+
},
|
665
|
+
},
|
666
|
+
},
|
667
|
+
},
|
668
|
+
],
|
669
|
+
actions: [],
|
670
|
+
},
|
671
|
+
list: {
|
672
|
+
actions: [
|
673
|
+
{
|
674
|
+
title: 'Create New',
|
675
|
+
command: 'create-entity',
|
676
|
+
priority: 'primary',
|
677
|
+
type: 'create',
|
678
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
679
|
+
},
|
680
|
+
{
|
681
|
+
title: 'Delete Items',
|
682
|
+
command: 'delete-entity',
|
683
|
+
priority: 'primary',
|
684
|
+
type: 'delete',
|
685
|
+
scope: AXPEntityCommandScope.Selected,
|
686
|
+
},
|
687
|
+
{
|
688
|
+
title: 'Details',
|
689
|
+
command: 'open-entity',
|
690
|
+
priority: 'secondary',
|
691
|
+
type: 'view',
|
692
|
+
scope: AXPEntityCommandScope.Individual,
|
693
|
+
},
|
694
|
+
{
|
695
|
+
title: 'Delete',
|
696
|
+
command: 'delete-entity',
|
697
|
+
priority: 'secondary',
|
698
|
+
type: 'delete',
|
699
|
+
scope: AXPEntityCommandScope.Individual,
|
700
|
+
},
|
701
|
+
],
|
702
|
+
views: [
|
703
|
+
{
|
704
|
+
name: 'all',
|
705
|
+
title: 'All Items',
|
706
|
+
fixed: true,
|
707
|
+
columns: [],
|
708
|
+
conditions: [],
|
709
|
+
sorts: [],
|
710
|
+
},
|
711
|
+
],
|
712
|
+
},
|
713
|
+
},
|
714
|
+
},
|
715
|
+
};
|
716
|
+
return entityDef;
|
717
|
+
}
|
718
|
+
|
719
|
+
var country_entity = /*#__PURE__*/Object.freeze({
|
720
|
+
__proto__: null,
|
721
|
+
countryEntityFactory: countryEntityFactory
|
722
|
+
});
|
723
|
+
|
724
|
+
class AXMCurrencyService extends AXMEntityCrudServiceImpl {
|
725
|
+
}
|
726
|
+
class AXMCurrencyServiceImpl extends AXMCurrencyService {
|
10
727
|
constructor() {
|
11
|
-
super(
|
12
|
-
this.messageReactionDataProvider = new AXPEntityDataProviderImpl(super.storageService, 'messageReaction');
|
728
|
+
super(CURRENCY_SOURCE_NAME);
|
13
729
|
}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
730
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCurrencyServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
731
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCurrencyServiceImpl }); }
|
732
|
+
}
|
733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCurrencyServiceImpl, decorators: [{
|
734
|
+
type: Injectable
|
735
|
+
}], ctorParameters: () => [] });
|
736
|
+
|
737
|
+
async function currencyEntityFactory(injector) {
|
738
|
+
const dataService = injector.get(AXMCurrencyService);
|
739
|
+
const entityDef = {
|
740
|
+
module: 'localization-management',
|
741
|
+
name: 'currency',
|
742
|
+
source: 'localizationManagement.currency',
|
743
|
+
title: 'Currency',
|
744
|
+
formats: {
|
745
|
+
individual: 'Currency',
|
746
|
+
plural: 'Currencies',
|
747
|
+
},
|
748
|
+
relatedEntities: [],
|
749
|
+
groups: [
|
750
|
+
{
|
751
|
+
id: 'currency',
|
752
|
+
title: 'Currency',
|
753
|
+
},
|
754
|
+
],
|
755
|
+
properties: [
|
756
|
+
{
|
757
|
+
name: 'title',
|
758
|
+
title: 'Title',
|
759
|
+
groupId: 'currency',
|
760
|
+
schema: {
|
761
|
+
dataType: 'string',
|
762
|
+
interface: {
|
763
|
+
type: AXPWidgetsCatalog.text,
|
764
|
+
},
|
765
|
+
},
|
766
|
+
validations: [
|
767
|
+
{
|
768
|
+
rule: 'required',
|
769
|
+
},
|
770
|
+
],
|
771
|
+
},
|
772
|
+
{
|
773
|
+
name: 'code',
|
774
|
+
title: 'Code',
|
775
|
+
groupId: 'currency',
|
776
|
+
schema: {
|
777
|
+
dataType: 'string',
|
778
|
+
interface: {
|
779
|
+
type: AXPWidgetsCatalog.text,
|
780
|
+
},
|
781
|
+
},
|
782
|
+
validations: [
|
783
|
+
{
|
784
|
+
rule: 'required',
|
785
|
+
},
|
786
|
+
],
|
787
|
+
},
|
788
|
+
{
|
789
|
+
name: 'symbol',
|
790
|
+
title: 'Symbol',
|
791
|
+
groupId: 'currency',
|
792
|
+
schema: {
|
793
|
+
dataType: 'string',
|
794
|
+
interface: {
|
795
|
+
type: AXPWidgetsCatalog.text,
|
796
|
+
},
|
797
|
+
},
|
798
|
+
validations: [
|
799
|
+
{
|
800
|
+
rule: 'required',
|
801
|
+
},
|
802
|
+
],
|
803
|
+
},
|
804
|
+
],
|
805
|
+
columns: [{ name: 'title' }, { name: 'code' }, { name: 'symbol' }],
|
806
|
+
commands: {
|
807
|
+
create: {
|
808
|
+
execute: async (data) => {
|
809
|
+
return Promise.resolve({ id: await dataService.insertOne(data) });
|
810
|
+
},
|
811
|
+
},
|
812
|
+
delete: {
|
813
|
+
execute: async (id) => {
|
814
|
+
await dataService.deleteOne(id);
|
815
|
+
return Promise.resolve();
|
816
|
+
},
|
817
|
+
},
|
818
|
+
update: {
|
819
|
+
execute: async (data) => {
|
820
|
+
return new Promise((resolve) => {
|
821
|
+
setTimeout(async () => {
|
822
|
+
await dataService.updateOne(data.id, data);
|
823
|
+
resolve(data);
|
824
|
+
}, 1000);
|
825
|
+
});
|
826
|
+
},
|
827
|
+
},
|
828
|
+
},
|
829
|
+
queries: {
|
830
|
+
byKey: {
|
831
|
+
execute: async (id) => {
|
832
|
+
return new Promise((resolve) => {
|
833
|
+
setTimeout(async () => {
|
834
|
+
const entity = await dataService.getOne(id);
|
835
|
+
resolve(entity);
|
836
|
+
}, 500);
|
837
|
+
});
|
838
|
+
},
|
839
|
+
type: AXPEntityQueryType.Single,
|
840
|
+
},
|
841
|
+
list: {
|
842
|
+
execute: async (e) => {
|
843
|
+
return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
844
|
+
},
|
845
|
+
type: AXPEntityQueryType.List,
|
846
|
+
},
|
847
|
+
},
|
848
|
+
interfaces: {
|
849
|
+
master: {
|
850
|
+
create: {
|
851
|
+
sections: [
|
852
|
+
{
|
853
|
+
id: 'currency',
|
854
|
+
},
|
855
|
+
],
|
856
|
+
properties: [
|
857
|
+
{
|
858
|
+
name: 'title',
|
859
|
+
layout: {
|
860
|
+
positions: {
|
861
|
+
lg: {
|
862
|
+
colSpan: 12,
|
863
|
+
},
|
864
|
+
},
|
865
|
+
},
|
866
|
+
},
|
867
|
+
{
|
868
|
+
name: 'code',
|
869
|
+
layout: {
|
870
|
+
positions: {
|
871
|
+
lg: {
|
872
|
+
colSpan: 6,
|
873
|
+
},
|
874
|
+
},
|
875
|
+
},
|
876
|
+
},
|
877
|
+
{
|
878
|
+
name: 'symbol',
|
879
|
+
layout: {
|
880
|
+
positions: {
|
881
|
+
lg: {
|
882
|
+
colSpan: 6,
|
883
|
+
},
|
884
|
+
},
|
885
|
+
},
|
886
|
+
},
|
887
|
+
],
|
888
|
+
},
|
889
|
+
update: {
|
890
|
+
sections: [
|
891
|
+
{
|
892
|
+
id: 'currency',
|
893
|
+
},
|
894
|
+
],
|
895
|
+
properties: [
|
896
|
+
{
|
897
|
+
name: 'title',
|
898
|
+
layout: {
|
899
|
+
positions: {
|
900
|
+
lg: {
|
901
|
+
colSpan: 12,
|
902
|
+
},
|
903
|
+
},
|
904
|
+
},
|
905
|
+
},
|
906
|
+
{
|
907
|
+
name: 'code',
|
908
|
+
layout: {
|
909
|
+
positions: {
|
910
|
+
lg: {
|
911
|
+
colSpan: 6,
|
912
|
+
},
|
913
|
+
},
|
914
|
+
},
|
915
|
+
},
|
916
|
+
{
|
917
|
+
name: 'symbol',
|
918
|
+
layout: {
|
919
|
+
positions: {
|
920
|
+
lg: {
|
921
|
+
colSpan: 6,
|
922
|
+
},
|
923
|
+
},
|
924
|
+
},
|
925
|
+
},
|
926
|
+
],
|
927
|
+
},
|
928
|
+
single: {
|
929
|
+
title: '{{title}}',
|
930
|
+
sections: [
|
931
|
+
{
|
932
|
+
id: 'currency',
|
933
|
+
},
|
934
|
+
],
|
935
|
+
properties: [
|
936
|
+
{
|
937
|
+
name: 'title',
|
938
|
+
layout: {
|
939
|
+
positions: {
|
940
|
+
lg: {
|
941
|
+
colSpan: 6,
|
942
|
+
},
|
943
|
+
},
|
944
|
+
},
|
945
|
+
},
|
946
|
+
{
|
947
|
+
name: 'code',
|
948
|
+
layout: {
|
949
|
+
positions: {
|
950
|
+
lg: {
|
951
|
+
colSpan: 6,
|
952
|
+
},
|
953
|
+
},
|
954
|
+
},
|
955
|
+
},
|
956
|
+
{
|
957
|
+
name: 'symbol',
|
958
|
+
layout: {
|
959
|
+
positions: {
|
960
|
+
lg: {
|
961
|
+
colSpan: 6,
|
962
|
+
},
|
963
|
+
},
|
964
|
+
},
|
965
|
+
},
|
966
|
+
],
|
967
|
+
actions: [],
|
968
|
+
},
|
969
|
+
list: {
|
970
|
+
actions: [
|
971
|
+
{
|
972
|
+
title: 'Create New',
|
973
|
+
command: 'create-entity',
|
974
|
+
priority: 'primary',
|
975
|
+
type: 'create',
|
976
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
977
|
+
},
|
978
|
+
{
|
979
|
+
title: 'Delete Items',
|
980
|
+
command: 'delete-entity',
|
981
|
+
priority: 'primary',
|
982
|
+
type: 'delete',
|
983
|
+
scope: AXPEntityCommandScope.Selected,
|
984
|
+
},
|
985
|
+
{
|
986
|
+
title: 'Details',
|
987
|
+
command: 'open-entity',
|
988
|
+
priority: 'secondary',
|
989
|
+
type: 'view',
|
990
|
+
scope: AXPEntityCommandScope.Individual,
|
991
|
+
},
|
992
|
+
{
|
993
|
+
title: 'Delete',
|
994
|
+
command: 'delete-entity',
|
995
|
+
priority: 'secondary',
|
996
|
+
type: 'delete',
|
997
|
+
scope: AXPEntityCommandScope.Individual,
|
998
|
+
},
|
999
|
+
],
|
1000
|
+
views: [
|
1001
|
+
{
|
1002
|
+
name: 'all',
|
1003
|
+
title: 'All Items',
|
1004
|
+
fixed: true,
|
1005
|
+
columns: [],
|
1006
|
+
conditions: [],
|
1007
|
+
sorts: [],
|
1008
|
+
},
|
1009
|
+
],
|
1010
|
+
},
|
1011
|
+
},
|
1012
|
+
},
|
1013
|
+
};
|
1014
|
+
return entityDef;
|
19
1015
|
}
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl, decorators: [{
|
21
|
-
type: Injectable
|
22
|
-
}], ctorParameters: () => [] });
|
23
1016
|
|
24
|
-
|
1017
|
+
var currency_entity = /*#__PURE__*/Object.freeze({
|
1018
|
+
__proto__: null,
|
1019
|
+
currencyEntityFactory: currencyEntityFactory
|
1020
|
+
});
|
1021
|
+
|
1022
|
+
class AXMCommonModuleEntityLoader {
|
25
1023
|
constructor() {
|
26
1024
|
this.injector = inject(Injector);
|
27
1025
|
}
|
28
1026
|
async get(moduleName, entityName) {
|
29
1027
|
return new Promise(async (resolve) => {
|
30
1028
|
switch (entityName) {
|
31
|
-
case '
|
32
|
-
const entity = (await Promise.resolve().then(function () { return
|
1029
|
+
case 'country': {
|
1030
|
+
const entity = (await Promise.resolve().then(function () { return country_entity; })).countryEntityFactory;
|
1031
|
+
resolve(entity(this.injector));
|
1032
|
+
break;
|
1033
|
+
}
|
1034
|
+
case 'province': {
|
1035
|
+
const entity = (await Promise.resolve().then(function () { return province_entity; })).provinceEntityFactory;
|
1036
|
+
resolve(entity(this.injector));
|
1037
|
+
break;
|
1038
|
+
}
|
1039
|
+
case 'currency': {
|
1040
|
+
const entity = (await Promise.resolve().then(function () { return currency_entity; })).currencyEntityFactory;
|
33
1041
|
resolve(entity(this.injector));
|
34
1042
|
break;
|
35
1043
|
}
|
@@ -38,62 +1046,75 @@ class AXMGlobalVariableModuleEntityLoader {
|
|
38
1046
|
}
|
39
1047
|
});
|
40
1048
|
}
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
42
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
1049
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCommonModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1050
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCommonModuleEntityLoader }); }
|
43
1051
|
}
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
1052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCommonModuleEntityLoader, decorators: [{
|
45
1053
|
type: Injectable
|
46
1054
|
}] });
|
47
1055
|
|
48
|
-
class
|
49
|
-
}
|
50
|
-
class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
|
1056
|
+
class AXPPlatformCountryWidgetDataSourceProvider {
|
51
1057
|
constructor() {
|
52
|
-
|
1058
|
+
this.service = inject(AXMCountryService);
|
1059
|
+
}
|
1060
|
+
async items() {
|
1061
|
+
return [
|
1062
|
+
{
|
1063
|
+
name: 'platform.countrues',
|
1064
|
+
title: 'Countries',
|
1065
|
+
columns: [],
|
1066
|
+
source: () => new AXDataSource({
|
1067
|
+
pageSize: 10,
|
1068
|
+
load: (e) => {
|
1069
|
+
return this.service.query({ skip: e.skip, take: e.take });
|
1070
|
+
},
|
1071
|
+
byKey: (id) => {
|
1072
|
+
return this.service.getOne(id);
|
1073
|
+
},
|
1074
|
+
}),
|
1075
|
+
},
|
1076
|
+
];
|
53
1077
|
}
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
55
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
|
56
1078
|
}
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
|
58
|
-
type: Injectable
|
59
|
-
}], ctorParameters: () => [] });
|
60
1079
|
|
61
|
-
class
|
1080
|
+
class AXMProvinceService extends AXMEntityCrudServiceImpl {
|
62
1081
|
}
|
63
|
-
class
|
1082
|
+
class AXMProvinceServiceImpl extends AXMProvinceService {
|
64
1083
|
constructor() {
|
65
|
-
super(
|
1084
|
+
super(PROVINCE_SOURCE_NAME);
|
66
1085
|
}
|
67
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
68
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
1086
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMProvinceServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1087
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMProvinceServiceImpl }); }
|
69
1088
|
}
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
1089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMProvinceServiceImpl, decorators: [{
|
71
1090
|
type: Injectable
|
72
1091
|
}], ctorParameters: () => [] });
|
73
1092
|
|
74
|
-
async function
|
75
|
-
const dataService = injector.get(
|
1093
|
+
async function provinceEntityFactory(injector) {
|
1094
|
+
const dataService = injector.get(AXMProvinceService);
|
1095
|
+
const moduleName = 'common';
|
1096
|
+
const scope = `#${moduleName}`;
|
76
1097
|
const entityDef = {
|
77
|
-
module:
|
78
|
-
name: '
|
79
|
-
source: 'common.
|
80
|
-
title:
|
1098
|
+
module: moduleName,
|
1099
|
+
name: 'province',
|
1100
|
+
source: 'common.province',
|
1101
|
+
title: `${scope}.province`,
|
81
1102
|
formats: {
|
82
|
-
individual:
|
83
|
-
plural:
|
1103
|
+
individual: `${scope}.province`,
|
1104
|
+
plural: `${scope}.provinces`,
|
84
1105
|
},
|
85
1106
|
relatedEntities: [],
|
86
1107
|
groups: [
|
87
1108
|
{
|
88
|
-
id: '
|
89
|
-
title:
|
1109
|
+
id: 'province',
|
1110
|
+
title: `${scope}.province`,
|
90
1111
|
},
|
91
1112
|
],
|
92
1113
|
properties: [
|
93
1114
|
{
|
94
1115
|
name: 'title',
|
95
|
-
title: '
|
96
|
-
groupId: '
|
1116
|
+
title: 't("title", { scope: "common" })',
|
1117
|
+
groupId: 'province',
|
97
1118
|
schema: {
|
98
1119
|
dataType: 'string',
|
99
1120
|
interface: {
|
@@ -107,29 +1128,69 @@ async function languageEntityFactory(injector) {
|
|
107
1128
|
],
|
108
1129
|
},
|
109
1130
|
{
|
110
|
-
name: '
|
111
|
-
title: '
|
112
|
-
groupId: '
|
1131
|
+
name: 'name',
|
1132
|
+
title: 't("name", { scope: "common" })',
|
1133
|
+
groupId: 'province',
|
1134
|
+
schema: {
|
1135
|
+
dataType: 'string',
|
1136
|
+
interface: {
|
1137
|
+
type: AXPWidgetsCatalog.text,
|
1138
|
+
},
|
1139
|
+
},
|
1140
|
+
validations: [
|
1141
|
+
{
|
1142
|
+
rule: 'required',
|
1143
|
+
},
|
1144
|
+
],
|
1145
|
+
},
|
1146
|
+
{
|
1147
|
+
name: 'country.id',
|
1148
|
+
title: `${scope}.country`,
|
1149
|
+
groupId: 'province',
|
113
1150
|
schema: {
|
114
1151
|
dataType: 'string',
|
1152
|
+
interface: {
|
1153
|
+
type: AXPWidgetsCatalog.lookup,
|
1154
|
+
options: {
|
1155
|
+
entity: 'common.country',
|
1156
|
+
expose: 'country',
|
1157
|
+
},
|
1158
|
+
},
|
1159
|
+
},
|
1160
|
+
validations: [
|
1161
|
+
{
|
1162
|
+
rule: 'required',
|
1163
|
+
},
|
1164
|
+
],
|
1165
|
+
},
|
1166
|
+
{
|
1167
|
+
name: 'country.title',
|
1168
|
+
title: `${scope}.country`,
|
1169
|
+
groupId: 'province',
|
1170
|
+
schema: {
|
1171
|
+
dataType: 'string',
|
1172
|
+
readonly: true,
|
115
1173
|
interface: {
|
116
1174
|
type: AXPWidgetsCatalog.text,
|
117
1175
|
},
|
118
1176
|
},
|
1177
|
+
options: {
|
1178
|
+
sort: {
|
1179
|
+
enabled: true,
|
1180
|
+
},
|
1181
|
+
},
|
119
1182
|
},
|
120
1183
|
],
|
121
|
-
columns: [{ name: 'title' }, { name: '
|
1184
|
+
columns: [{ name: 'name' }, { name: 'title' }, { name: 'country.title' }],
|
122
1185
|
commands: {
|
123
1186
|
create: {
|
124
1187
|
execute: async (data) => {
|
125
|
-
|
126
|
-
dataService.insertOne(entity);
|
127
|
-
return Promise.resolve(entity);
|
1188
|
+
return Promise.resolve({ id: await dataService.insertOne(data) });
|
128
1189
|
},
|
129
1190
|
},
|
130
1191
|
delete: {
|
131
1192
|
execute: async (id) => {
|
132
|
-
await
|
1193
|
+
await dataService.deleteOne(id);
|
133
1194
|
return Promise.resolve();
|
134
1195
|
},
|
135
1196
|
},
|
@@ -158,7 +1219,8 @@ async function languageEntityFactory(injector) {
|
|
158
1219
|
},
|
159
1220
|
list: {
|
160
1221
|
execute: async (e) => {
|
161
|
-
|
1222
|
+
let x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
1223
|
+
return Promise.resolve(x);
|
162
1224
|
},
|
163
1225
|
type: AXPEntityQueryType.List,
|
164
1226
|
},
|
@@ -168,10 +1230,20 @@ async function languageEntityFactory(injector) {
|
|
168
1230
|
create: {
|
169
1231
|
sections: [
|
170
1232
|
{
|
171
|
-
id: '
|
1233
|
+
id: 'province',
|
172
1234
|
},
|
173
1235
|
],
|
174
1236
|
properties: [
|
1237
|
+
{
|
1238
|
+
name: 'name',
|
1239
|
+
layout: {
|
1240
|
+
positions: {
|
1241
|
+
lg: {
|
1242
|
+
colSpan: 6,
|
1243
|
+
},
|
1244
|
+
},
|
1245
|
+
},
|
1246
|
+
},
|
175
1247
|
{
|
176
1248
|
name: 'title',
|
177
1249
|
layout: {
|
@@ -183,7 +1255,26 @@ async function languageEntityFactory(injector) {
|
|
183
1255
|
},
|
184
1256
|
},
|
185
1257
|
{
|
186
|
-
name: '
|
1258
|
+
name: 'country.id',
|
1259
|
+
layout: {
|
1260
|
+
positions: {
|
1261
|
+
lg: {
|
1262
|
+
colSpan: 12,
|
1263
|
+
},
|
1264
|
+
},
|
1265
|
+
},
|
1266
|
+
},
|
1267
|
+
],
|
1268
|
+
},
|
1269
|
+
update: {
|
1270
|
+
sections: [
|
1271
|
+
{
|
1272
|
+
id: 'province',
|
1273
|
+
},
|
1274
|
+
],
|
1275
|
+
properties: [
|
1276
|
+
{
|
1277
|
+
name: 'name',
|
187
1278
|
layout: {
|
188
1279
|
positions: {
|
189
1280
|
lg: {
|
@@ -192,15 +1283,6 @@ async function languageEntityFactory(injector) {
|
|
192
1283
|
},
|
193
1284
|
},
|
194
1285
|
},
|
195
|
-
],
|
196
|
-
},
|
197
|
-
update: {
|
198
|
-
sections: [
|
199
|
-
{
|
200
|
-
id: 'language',
|
201
|
-
},
|
202
|
-
],
|
203
|
-
properties: [
|
204
1286
|
{
|
205
1287
|
name: 'title',
|
206
1288
|
layout: {
|
@@ -212,11 +1294,11 @@ async function languageEntityFactory(injector) {
|
|
212
1294
|
},
|
213
1295
|
},
|
214
1296
|
{
|
215
|
-
name: '
|
1297
|
+
name: 'country.id',
|
216
1298
|
layout: {
|
217
1299
|
positions: {
|
218
1300
|
lg: {
|
219
|
-
colSpan:
|
1301
|
+
colSpan: 12,
|
220
1302
|
},
|
221
1303
|
},
|
222
1304
|
},
|
@@ -227,12 +1309,12 @@ async function languageEntityFactory(injector) {
|
|
227
1309
|
title: '{{title}}',
|
228
1310
|
sections: [
|
229
1311
|
{
|
230
|
-
id: '
|
1312
|
+
id: 'province',
|
231
1313
|
},
|
232
1314
|
],
|
233
1315
|
properties: [
|
234
1316
|
{
|
235
|
-
name: '
|
1317
|
+
name: 'name',
|
236
1318
|
layout: {
|
237
1319
|
positions: {
|
238
1320
|
lg: {
|
@@ -242,7 +1324,7 @@ async function languageEntityFactory(injector) {
|
|
242
1324
|
},
|
243
1325
|
},
|
244
1326
|
{
|
245
|
-
name: '
|
1327
|
+
name: 'title',
|
246
1328
|
layout: {
|
247
1329
|
positions: {
|
248
1330
|
lg: {
|
@@ -251,34 +1333,44 @@ async function languageEntityFactory(injector) {
|
|
251
1333
|
},
|
252
1334
|
},
|
253
1335
|
},
|
1336
|
+
{
|
1337
|
+
name: 'country.name',
|
1338
|
+
layout: {
|
1339
|
+
positions: {
|
1340
|
+
lg: {
|
1341
|
+
colSpan: 12,
|
1342
|
+
},
|
1343
|
+
},
|
1344
|
+
},
|
1345
|
+
},
|
254
1346
|
],
|
255
1347
|
actions: [],
|
256
1348
|
},
|
257
1349
|
list: {
|
258
1350
|
actions: [
|
259
1351
|
{
|
260
|
-
title: '
|
1352
|
+
title: 't("create", { scope: "common" })',
|
261
1353
|
command: 'create-entity',
|
262
1354
|
priority: 'primary',
|
263
1355
|
type: 'create',
|
264
1356
|
scope: AXPEntityCommandScope.TypeLevel,
|
265
1357
|
},
|
266
1358
|
{
|
267
|
-
title: '
|
1359
|
+
title: 't("deleteItems", { scope: "common" })',
|
268
1360
|
command: 'delete-entity',
|
269
1361
|
priority: 'primary',
|
270
1362
|
type: 'delete',
|
271
1363
|
scope: AXPEntityCommandScope.Selected,
|
272
1364
|
},
|
273
1365
|
{
|
274
|
-
title: '
|
1366
|
+
title: 't("detail", { scope: "common" })',
|
275
1367
|
command: 'open-entity',
|
276
1368
|
priority: 'secondary',
|
277
1369
|
type: 'view',
|
278
1370
|
scope: AXPEntityCommandScope.Individual,
|
279
1371
|
},
|
280
1372
|
{
|
281
|
-
title: '
|
1373
|
+
title: 't("delete", { scope: "common" })',
|
282
1374
|
command: 'delete-entity',
|
283
1375
|
priority: 'secondary',
|
284
1376
|
type: 'delete',
|
@@ -288,7 +1380,7 @@ async function languageEntityFactory(injector) {
|
|
288
1380
|
views: [
|
289
1381
|
{
|
290
1382
|
name: 'all',
|
291
|
-
title: '
|
1383
|
+
title: 't("allItem", { scope: "common" })',
|
292
1384
|
fixed: true,
|
293
1385
|
columns: [],
|
294
1386
|
conditions: [],
|
@@ -302,162 +1394,99 @@ async function languageEntityFactory(injector) {
|
|
302
1394
|
return entityDef;
|
303
1395
|
}
|
304
1396
|
|
305
|
-
var
|
1397
|
+
var province_entity = /*#__PURE__*/Object.freeze({
|
306
1398
|
__proto__: null,
|
307
|
-
|
1399
|
+
provinceEntityFactory: provinceEntityFactory
|
308
1400
|
});
|
309
1401
|
|
310
|
-
class
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
return new Promise(async (resolve) => {
|
316
|
-
switch (entityName) {
|
317
|
-
case 'language': {
|
318
|
-
const entity = (await Promise.resolve().then(function () { return language_entity; })).languageEntityFactory;
|
319
|
-
resolve(entity(this.injector));
|
320
|
-
break;
|
321
|
-
}
|
322
|
-
default:
|
323
|
-
resolve(null);
|
324
|
-
}
|
325
|
-
});
|
326
|
-
}
|
327
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
328
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader }); }
|
329
|
-
}
|
330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, decorators: [{
|
331
|
-
type: Injectable
|
332
|
-
}] });
|
333
|
-
|
334
|
-
class AXMPlatformManagmentModuleMenuProvider {
|
335
|
-
constructor() {
|
336
|
-
this.translateService = inject(AXTranslationService);
|
337
|
-
}
|
338
|
-
async items() {
|
339
|
-
const scope = "platform"; // The scope used for translation lookup
|
340
|
-
return [
|
341
|
-
{
|
342
|
-
items: [
|
343
|
-
{
|
344
|
-
text: await this.translateService.translateAsync('platformManagement', { scope }),
|
345
|
-
icon: 'fa-solid fa-square-terminal',
|
346
|
-
type: 'menu',
|
347
|
-
priority: 9100,
|
348
|
-
data: {
|
349
|
-
// requiredPermission: 'demo.admin.settings',
|
350
|
-
},
|
351
|
-
children: [
|
352
|
-
{
|
353
|
-
priority: 9001,
|
354
|
-
text: await this.translateService.translateAsync('globalVariables', { scope }),
|
355
|
-
path: '/demo/m/common/e/globalVariable/list',
|
356
|
-
icon: 'fa-solid fa-object-exclude',
|
357
|
-
data: {
|
358
|
-
// requiredPermission: '',
|
359
|
-
},
|
360
|
-
},
|
361
|
-
{
|
362
|
-
priority: 9002,
|
363
|
-
text: await this.translateService.translateAsync('languageManagement', { scope }),
|
364
|
-
icon: 'fa-solid fa-square-terminal',
|
365
|
-
children: [
|
366
|
-
{
|
367
|
-
text: await this.translateService.translateAsync('languageDefinition', { scope }),
|
368
|
-
path: '/demo/m/common/e/language/list',
|
369
|
-
icon: 'fa-solid fa-globe',
|
370
|
-
data: {
|
371
|
-
// requiredPermission: '',
|
372
|
-
},
|
373
|
-
},
|
374
|
-
],
|
375
|
-
},
|
376
|
-
],
|
377
|
-
},
|
378
|
-
],
|
379
|
-
},
|
380
|
-
];
|
381
|
-
}
|
382
|
-
}
|
383
|
-
|
384
|
-
class AXMPlatformManagementModule {
|
385
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
386
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule }); }
|
387
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
1402
|
+
class AXMPlatformManagementCommonModule {
|
1403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1404
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule }); }
|
1405
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule, providers: [
|
1406
|
+
// Country
|
388
1407
|
{
|
389
|
-
provide:
|
390
|
-
useClass:
|
391
|
-
},
|
392
|
-
{
|
393
|
-
provide: AXMLanguageService,
|
394
|
-
useClass: AXMLanguageServiceImpl,
|
1408
|
+
provide: AXMCountryService,
|
1409
|
+
useClass: AXMCountryServiceImpl,
|
395
1410
|
},
|
396
1411
|
{
|
397
|
-
provide:
|
398
|
-
useClass:
|
399
|
-
},
|
400
|
-
{
|
401
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
402
|
-
useClass: AXMLanguageModuleEntityLoader,
|
1412
|
+
provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
1413
|
+
useClass: AXPPlatformCountryWidgetDataSourceProvider,
|
403
1414
|
multi: true,
|
404
1415
|
},
|
1416
|
+
// Province
|
405
1417
|
{
|
406
|
-
provide:
|
407
|
-
useClass:
|
408
|
-
multi: true,
|
1418
|
+
provide: AXMProvinceService,
|
1419
|
+
useClass: AXMProvinceServiceImpl,
|
409
1420
|
},
|
410
1421
|
{
|
411
|
-
provide:
|
412
|
-
useClass:
|
1422
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
1423
|
+
useClass: AXMCommonModuleEntityLoader,
|
413
1424
|
multi: true,
|
414
1425
|
},
|
415
1426
|
] }); }
|
416
1427
|
}
|
417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
1428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule, decorators: [{
|
418
1429
|
type: NgModule,
|
419
1430
|
args: [{
|
420
1431
|
imports: [],
|
421
1432
|
exports: [],
|
422
1433
|
declarations: [],
|
423
1434
|
providers: [
|
1435
|
+
// Country
|
424
1436
|
{
|
425
|
-
provide:
|
426
|
-
useClass:
|
427
|
-
},
|
428
|
-
{
|
429
|
-
provide: AXMLanguageService,
|
430
|
-
useClass: AXMLanguageServiceImpl,
|
431
|
-
},
|
432
|
-
{
|
433
|
-
provide: AXMCommentService,
|
434
|
-
useClass: AXPCommentServiceImpl,
|
1437
|
+
provide: AXMCountryService,
|
1438
|
+
useClass: AXMCountryServiceImpl,
|
435
1439
|
},
|
436
1440
|
{
|
437
|
-
provide:
|
438
|
-
useClass:
|
1441
|
+
provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
1442
|
+
useClass: AXPPlatformCountryWidgetDataSourceProvider,
|
439
1443
|
multi: true,
|
440
1444
|
},
|
1445
|
+
// Province
|
441
1446
|
{
|
442
|
-
provide:
|
443
|
-
useClass:
|
444
|
-
multi: true,
|
1447
|
+
provide: AXMProvinceService,
|
1448
|
+
useClass: AXMProvinceServiceImpl,
|
445
1449
|
},
|
446
1450
|
{
|
447
|
-
provide:
|
448
|
-
useClass:
|
1451
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
1452
|
+
useClass: AXMCommonModuleEntityLoader,
|
449
1453
|
multi: true,
|
450
1454
|
},
|
451
1455
|
],
|
452
1456
|
}]
|
453
1457
|
}] });
|
454
1458
|
|
1459
|
+
class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
|
1460
|
+
}
|
1461
|
+
class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
|
1462
|
+
constructor() {
|
1463
|
+
super('globalVariable');
|
1464
|
+
}
|
1465
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1466
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
|
1467
|
+
}
|
1468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
|
1469
|
+
type: Injectable
|
1470
|
+
}], ctorParameters: () => [] });
|
1471
|
+
|
1472
|
+
const AXMPlatformManagementModuleConst = {
|
1473
|
+
moduleName: 'PlatformManagement',
|
1474
|
+
moduleRoute: 'platform-management',
|
1475
|
+
i18n: 'platform-management',
|
1476
|
+
localizationManagement: 'localization-management',
|
1477
|
+
globalVariableEntity: 'GlobalVariable',
|
1478
|
+
currencyEntity: 'currency',
|
1479
|
+
countryEntity: 'country',
|
1480
|
+
provinceEntity: 'province',
|
1481
|
+
cityEntity: 'city',
|
1482
|
+
};
|
1483
|
+
|
455
1484
|
async function globalVariableEntityFactory(injector) {
|
456
1485
|
const dataService = injector.get(AXMGlobalVariablesService);
|
457
1486
|
const entityDef = {
|
458
|
-
module:
|
459
|
-
name:
|
460
|
-
source: '
|
1487
|
+
module: AXMPlatformManagementModuleConst.moduleName,
|
1488
|
+
name: AXMPlatformManagementModuleConst.globalVariableEntity,
|
1489
|
+
source: '',
|
461
1490
|
title: 'Global Variable',
|
462
1491
|
formats: {
|
463
1492
|
individual: 'Global Variable',
|
@@ -467,7 +1496,7 @@ async function globalVariableEntityFactory(injector) {
|
|
467
1496
|
groups: [
|
468
1497
|
{
|
469
1498
|
id: 'section',
|
470
|
-
title: '
|
1499
|
+
title: 'Global Variable',
|
471
1500
|
},
|
472
1501
|
],
|
473
1502
|
properties: [
|
@@ -513,6 +1542,11 @@ async function globalVariableEntityFactory(injector) {
|
|
513
1542
|
type: AXPWidgetsCatalog.text,
|
514
1543
|
},
|
515
1544
|
},
|
1545
|
+
validations: [
|
1546
|
+
{
|
1547
|
+
rule: 'required',
|
1548
|
+
},
|
1549
|
+
],
|
516
1550
|
},
|
517
1551
|
{
|
518
1552
|
name: 'dataType',
|
@@ -538,6 +1572,11 @@ async function globalVariableEntityFactory(injector) {
|
|
538
1572
|
},
|
539
1573
|
},
|
540
1574
|
},
|
1575
|
+
validations: [
|
1576
|
+
{
|
1577
|
+
rule: 'required',
|
1578
|
+
},
|
1579
|
+
],
|
541
1580
|
},
|
542
1581
|
],
|
543
1582
|
columns: [{ name: 'title' }, { name: 'dataValue' }, { name: 'dataType' }],
|
@@ -654,7 +1693,27 @@ async function globalVariableEntityFactory(injector) {
|
|
654
1693
|
},
|
655
1694
|
},
|
656
1695
|
{
|
657
|
-
name: '
|
1696
|
+
name: 'name',
|
1697
|
+
layout: {
|
1698
|
+
positions: {
|
1699
|
+
lg: {
|
1700
|
+
colSpan: 6,
|
1701
|
+
},
|
1702
|
+
},
|
1703
|
+
},
|
1704
|
+
},
|
1705
|
+
{
|
1706
|
+
name: 'dataValue',
|
1707
|
+
layout: {
|
1708
|
+
positions: {
|
1709
|
+
lg: {
|
1710
|
+
colSpan: 6,
|
1711
|
+
},
|
1712
|
+
},
|
1713
|
+
},
|
1714
|
+
},
|
1715
|
+
{
|
1716
|
+
name: 'dataType',
|
658
1717
|
layout: {
|
659
1718
|
positions: {
|
660
1719
|
lg: {
|
@@ -684,7 +1743,27 @@ async function globalVariableEntityFactory(injector) {
|
|
684
1743
|
},
|
685
1744
|
},
|
686
1745
|
{
|
687
|
-
name: '
|
1746
|
+
name: 'name',
|
1747
|
+
layout: {
|
1748
|
+
positions: {
|
1749
|
+
lg: {
|
1750
|
+
colSpan: 6,
|
1751
|
+
},
|
1752
|
+
},
|
1753
|
+
},
|
1754
|
+
},
|
1755
|
+
{
|
1756
|
+
name: 'dataValue',
|
1757
|
+
layout: {
|
1758
|
+
positions: {
|
1759
|
+
lg: {
|
1760
|
+
colSpan: 6,
|
1761
|
+
},
|
1762
|
+
},
|
1763
|
+
},
|
1764
|
+
},
|
1765
|
+
{
|
1766
|
+
name: 'dataType',
|
688
1767
|
layout: {
|
689
1768
|
positions: {
|
690
1769
|
lg: {
|
@@ -749,9 +1828,153 @@ var globalVariable_entity = /*#__PURE__*/Object.freeze({
|
|
749
1828
|
globalVariableEntityFactory: globalVariableEntityFactory
|
750
1829
|
});
|
751
1830
|
|
1831
|
+
class AXMGlobalVariableModuleEntityLoader {
|
1832
|
+
constructor() {
|
1833
|
+
this.injector = inject(Injector);
|
1834
|
+
}
|
1835
|
+
async get(moduleName, entityName) {
|
1836
|
+
switch (entityName) {
|
1837
|
+
case AXMPlatformManagementModuleConst.globalVariableEntity: {
|
1838
|
+
const entity = (await Promise.resolve().then(function () { return globalVariable_entity; })).globalVariableEntityFactory;
|
1839
|
+
return entity(this.injector);
|
1840
|
+
}
|
1841
|
+
}
|
1842
|
+
return null;
|
1843
|
+
}
|
1844
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1845
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader }); }
|
1846
|
+
}
|
1847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, decorators: [{
|
1848
|
+
type: Injectable
|
1849
|
+
}] });
|
1850
|
+
|
1851
|
+
class AXMPlatformManagmentModuleMenuProvider {
|
1852
|
+
constructor() {
|
1853
|
+
this.entityService = inject(AXPEntityService);
|
1854
|
+
}
|
1855
|
+
async provide(context) {
|
1856
|
+
const scope = AXMPlatformManagementModuleConst.i18n;
|
1857
|
+
context.addItems([
|
1858
|
+
{
|
1859
|
+
name: 'administration-group',
|
1860
|
+
priority: 2000,
|
1861
|
+
text: `t('administration',{scope:${scope}})`,
|
1862
|
+
type: 'group',
|
1863
|
+
data: {
|
1864
|
+
requiredPermission: 'admin',
|
1865
|
+
},
|
1866
|
+
},
|
1867
|
+
{
|
1868
|
+
text: `t('platformManagement', {scope: ${scope}})`,
|
1869
|
+
icon: 'fa-solid fa-square-terminal',
|
1870
|
+
type: 'menu',
|
1871
|
+
priority: 9100,
|
1872
|
+
data: {
|
1873
|
+
// requiredPermission: 'demo.admin.settings',
|
1874
|
+
},
|
1875
|
+
children: [
|
1876
|
+
{
|
1877
|
+
priority: 9001,
|
1878
|
+
text: `t('globalVariables', {scope: ${scope}})`,
|
1879
|
+
path: this.entityService.createPath(AXMPlatformManagementModuleConst.moduleName, AXMPlatformManagementModuleConst.globalVariableEntity),
|
1880
|
+
icon: 'fa-solid fa-object-exclude',
|
1881
|
+
data: {
|
1882
|
+
// requiredPermission: '',
|
1883
|
+
},
|
1884
|
+
},
|
1885
|
+
{
|
1886
|
+
priority: 9002,
|
1887
|
+
icon: 'fa-solid fa-coins',
|
1888
|
+
text: `t("currency", { scope: "common" })`,
|
1889
|
+
path: this.entityService.createPath(AXMPlatformManagementModuleConst.localizationManagement, AXMPlatformManagementModuleConst.currencyEntity),
|
1890
|
+
},
|
1891
|
+
{
|
1892
|
+
priority: 9003,
|
1893
|
+
icon: 'fa-solid fa-globe-stand',
|
1894
|
+
text: `t("geo", { scope: "common" })`,
|
1895
|
+
children: [
|
1896
|
+
{
|
1897
|
+
priority: 9101,
|
1898
|
+
icon: 'fa-solid fa-earth-americas',
|
1899
|
+
text: 't("country", { scope: "common" })',
|
1900
|
+
path: this.entityService.createPath(AXMPlatformManagementModuleConst.localizationManagement, AXMPlatformManagementModuleConst.countryEntity),
|
1901
|
+
},
|
1902
|
+
{
|
1903
|
+
priority: 9102,
|
1904
|
+
icon: 'fa-solid fa-mountain-city',
|
1905
|
+
text: 't("province", { scope: "common" })',
|
1906
|
+
path: this.entityService.createPath(AXMPlatformManagementModuleConst.localizationManagement, AXMPlatformManagementModuleConst.provinceEntity),
|
1907
|
+
},
|
1908
|
+
{
|
1909
|
+
priority: 9103,
|
1910
|
+
icon: 'fa-solid fa-city',
|
1911
|
+
text: 't("city", { scope: "common" })',
|
1912
|
+
path: this.entityService.createPath(AXMPlatformManagementModuleConst.localizationManagement, AXMPlatformManagementModuleConst.cityEntity),
|
1913
|
+
},
|
1914
|
+
],
|
1915
|
+
},
|
1916
|
+
],
|
1917
|
+
},
|
1918
|
+
]);
|
1919
|
+
}
|
1920
|
+
}
|
1921
|
+
|
1922
|
+
class AXMPlatformManagementModule {
|
1923
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1924
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule] }); }
|
1925
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
1926
|
+
{
|
1927
|
+
provide: AXMGlobalVariablesService,
|
1928
|
+
useClass: AXMGlobalVariablesServiceImpl,
|
1929
|
+
},
|
1930
|
+
{
|
1931
|
+
provide: AXMCurrencyService,
|
1932
|
+
useClass: AXMCurrencyServiceImpl,
|
1933
|
+
},
|
1934
|
+
{
|
1935
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
1936
|
+
useClass: AXMGlobalVariableModuleEntityLoader,
|
1937
|
+
multi: true,
|
1938
|
+
},
|
1939
|
+
{
|
1940
|
+
provide: AXP_MENU_PROVIDER,
|
1941
|
+
useClass: AXMPlatformManagmentModuleMenuProvider,
|
1942
|
+
multi: true,
|
1943
|
+
},
|
1944
|
+
], imports: [AXMPlatformManagementCommonModule] }); }
|
1945
|
+
}
|
1946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
|
1947
|
+
type: NgModule,
|
1948
|
+
args: [{
|
1949
|
+
imports: [AXMPlatformManagementCommonModule],
|
1950
|
+
exports: [],
|
1951
|
+
declarations: [],
|
1952
|
+
providers: [
|
1953
|
+
{
|
1954
|
+
provide: AXMGlobalVariablesService,
|
1955
|
+
useClass: AXMGlobalVariablesServiceImpl,
|
1956
|
+
},
|
1957
|
+
{
|
1958
|
+
provide: AXMCurrencyService,
|
1959
|
+
useClass: AXMCurrencyServiceImpl,
|
1960
|
+
},
|
1961
|
+
{
|
1962
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
1963
|
+
useClass: AXMGlobalVariableModuleEntityLoader,
|
1964
|
+
multi: true,
|
1965
|
+
},
|
1966
|
+
{
|
1967
|
+
provide: AXP_MENU_PROVIDER,
|
1968
|
+
useClass: AXMPlatformManagmentModuleMenuProvider,
|
1969
|
+
multi: true,
|
1970
|
+
},
|
1971
|
+
],
|
1972
|
+
}]
|
1973
|
+
}] });
|
1974
|
+
|
752
1975
|
/**
|
753
1976
|
* Generated bundle index. Do not edit.
|
754
1977
|
*/
|
755
1978
|
|
756
|
-
export { AXMGlobalVariableModuleEntityLoader, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl,
|
1979
|
+
export { AXMCommonModuleEntityLoader, AXMCountryService, AXMCountryServiceImpl, AXMCurrencyService, AXMCurrencyServiceImpl, AXMGlobalVariableModuleEntityLoader, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMPlatformManagementModule, CITY_SOURCE_NAME, COUNTRY_SOURCE_NAME, CURRENCY_SOURCE_NAME, PROVINCE_SOURCE_NAME, countryEntityFactory, currencyEntityFactory, globalVariableEntityFactory };
|
757
1980
|
//# sourceMappingURL=acorex-modules-platform-management.mjs.map
|