@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
@@ -0,0 +1,1135 @@
|
|
1
|
+
import { AXMEntityCrudServiceImpl, AXPEntityCommandScope, AXPEntityQueryType, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
2
|
+
import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
3
|
+
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXPWidgetsModule, AXP_TEMPLATE_WIDGET_PROVIDER } from '@acorex/platform/widgets';
|
4
|
+
import * as i0 from '@angular/core';
|
5
|
+
import { Injectable, NgModule, inject, Injector, ChangeDetectionStrategy, Component } from '@angular/core';
|
6
|
+
import * as i1$1 from '@angular/router';
|
7
|
+
import { RouterModule } from '@angular/router';
|
8
|
+
import * as i2$1 from '@acorex/platform/layout/builder';
|
9
|
+
import { AXPWidgetsCatalog, AXPWidgetComponent, AXP_WIDGETS_LAYOUT_GROUP, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
10
|
+
import { AXButtonModule } from '@acorex/components/button';
|
11
|
+
import * as i2 from '@acorex/core/translation';
|
12
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
13
|
+
import * as i3 from '@acorex/platform/workflow';
|
14
|
+
import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
15
|
+
import * as i1 from '@angular/common';
|
16
|
+
import { CommonModule } from '@angular/common';
|
17
|
+
import { AXPDesignerConnector } from '@acorex/platform/layout/designer';
|
18
|
+
|
19
|
+
const AXMFormTemplateManagementModuleConst = {
|
20
|
+
moduleName: 'FormTemplateManagement',
|
21
|
+
moduleRoute: 'form-template-management',
|
22
|
+
i18n: 'form-template-management',
|
23
|
+
categoryEntity: 'Category',
|
24
|
+
templateEntity: 'Template',
|
25
|
+
};
|
26
|
+
|
27
|
+
class AXMFormTemplateManagementCategoryEntityService extends AXMEntityCrudServiceImpl {
|
28
|
+
}
|
29
|
+
class AXMFormTemplateManagementCategoryEntityServiceImpl extends AXMFormTemplateManagementCategoryEntityService {
|
30
|
+
constructor() {
|
31
|
+
super(`${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.categoryEntity}`);
|
32
|
+
}
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
34
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl }); }
|
35
|
+
}
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, decorators: [{
|
37
|
+
type: Injectable
|
38
|
+
}], ctorParameters: () => [] });
|
39
|
+
|
40
|
+
async function factory$1(injector) {
|
41
|
+
const dataService = injector.get(AXMFormTemplateManagementCategoryEntityService);
|
42
|
+
const i18n = AXMFormTemplateManagementModuleConst.i18n;
|
43
|
+
const entityDef = {
|
44
|
+
module: AXMFormTemplateManagementModuleConst.moduleName,
|
45
|
+
name: AXMFormTemplateManagementModuleConst.categoryEntity,
|
46
|
+
source: '',
|
47
|
+
title: `t("category", { scope: "common" })`,
|
48
|
+
formats: {
|
49
|
+
individual: `t("category", { scope: "common" })`,
|
50
|
+
plural: `t("categories", { scope: "common" })`,
|
51
|
+
},
|
52
|
+
relatedEntities: [],
|
53
|
+
groups: [
|
54
|
+
{
|
55
|
+
id: 'section',
|
56
|
+
title: `t("category", { scope: "common" })`,
|
57
|
+
},
|
58
|
+
],
|
59
|
+
properties: [
|
60
|
+
{
|
61
|
+
name: 'name',
|
62
|
+
title: 't("name", { scope: "common" })',
|
63
|
+
groupId: 'section',
|
64
|
+
options: {
|
65
|
+
sort: {
|
66
|
+
enabled: true,
|
67
|
+
},
|
68
|
+
},
|
69
|
+
schema: {
|
70
|
+
dataType: 'string',
|
71
|
+
interface: {
|
72
|
+
type: AXPWidgetsCatalog.text,
|
73
|
+
},
|
74
|
+
},
|
75
|
+
validations: [
|
76
|
+
{
|
77
|
+
rule: 'required',
|
78
|
+
},
|
79
|
+
],
|
80
|
+
},
|
81
|
+
{
|
82
|
+
name: 'title',
|
83
|
+
title: 't("title", { scope: "common" })',
|
84
|
+
groupId: 'section',
|
85
|
+
schema: {
|
86
|
+
dataType: 'string',
|
87
|
+
interface: {
|
88
|
+
type: AXPWidgetsCatalog.text,
|
89
|
+
},
|
90
|
+
},
|
91
|
+
validations: [
|
92
|
+
{
|
93
|
+
rule: 'required',
|
94
|
+
},
|
95
|
+
],
|
96
|
+
},
|
97
|
+
],
|
98
|
+
columns: [{ name: 'name' }, { name: 'title' }],
|
99
|
+
commands: {
|
100
|
+
create: {
|
101
|
+
execute: async (data) => {
|
102
|
+
const res = await dataService.insertOne(data);
|
103
|
+
return { id: res };
|
104
|
+
},
|
105
|
+
},
|
106
|
+
delete: {
|
107
|
+
execute: async (id) => {
|
108
|
+
return await dataService.deleteOne(id);
|
109
|
+
},
|
110
|
+
},
|
111
|
+
update: {
|
112
|
+
execute: async (data) => {
|
113
|
+
return await dataService.updateOne(data.id, data);
|
114
|
+
},
|
115
|
+
},
|
116
|
+
},
|
117
|
+
queries: {
|
118
|
+
byKey: {
|
119
|
+
execute: async (id) => {
|
120
|
+
return await dataService.getOne(id);
|
121
|
+
},
|
122
|
+
type: AXPEntityQueryType.Single,
|
123
|
+
},
|
124
|
+
list: {
|
125
|
+
execute: async (e) => {
|
126
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
|
127
|
+
},
|
128
|
+
type: AXPEntityQueryType.List,
|
129
|
+
},
|
130
|
+
},
|
131
|
+
interfaces: {
|
132
|
+
master: {
|
133
|
+
create: {
|
134
|
+
sections: [
|
135
|
+
{
|
136
|
+
id: 'section',
|
137
|
+
},
|
138
|
+
],
|
139
|
+
properties: [
|
140
|
+
{
|
141
|
+
name: 'name',
|
142
|
+
layout: {
|
143
|
+
positions: {
|
144
|
+
lg: {
|
145
|
+
colSpan: 6,
|
146
|
+
},
|
147
|
+
},
|
148
|
+
},
|
149
|
+
},
|
150
|
+
{
|
151
|
+
name: 'title',
|
152
|
+
layout: {
|
153
|
+
positions: {
|
154
|
+
lg: {
|
155
|
+
colSpan: 6,
|
156
|
+
},
|
157
|
+
},
|
158
|
+
},
|
159
|
+
},
|
160
|
+
],
|
161
|
+
},
|
162
|
+
update: {
|
163
|
+
sections: [
|
164
|
+
{
|
165
|
+
id: 'section',
|
166
|
+
},
|
167
|
+
],
|
168
|
+
properties: [
|
169
|
+
{
|
170
|
+
name: 'name',
|
171
|
+
layout: {
|
172
|
+
positions: {
|
173
|
+
lg: {
|
174
|
+
colSpan: 6,
|
175
|
+
},
|
176
|
+
},
|
177
|
+
},
|
178
|
+
},
|
179
|
+
{
|
180
|
+
name: 'title',
|
181
|
+
layout: {
|
182
|
+
positions: {
|
183
|
+
lg: {
|
184
|
+
colSpan: 6,
|
185
|
+
},
|
186
|
+
},
|
187
|
+
},
|
188
|
+
},
|
189
|
+
],
|
190
|
+
},
|
191
|
+
single: {
|
192
|
+
title: '{{title}}',
|
193
|
+
sections: [
|
194
|
+
{
|
195
|
+
id: 'section',
|
196
|
+
layout: {
|
197
|
+
positions: {
|
198
|
+
lg: {
|
199
|
+
colSpan: 12,
|
200
|
+
},
|
201
|
+
},
|
202
|
+
},
|
203
|
+
},
|
204
|
+
],
|
205
|
+
properties: [
|
206
|
+
{
|
207
|
+
name: 'name',
|
208
|
+
layout: {
|
209
|
+
positions: {
|
210
|
+
lg: {
|
211
|
+
colSpan: 6,
|
212
|
+
},
|
213
|
+
},
|
214
|
+
},
|
215
|
+
},
|
216
|
+
{
|
217
|
+
name: 'title',
|
218
|
+
layout: {
|
219
|
+
positions: {
|
220
|
+
lg: {
|
221
|
+
colSpan: 6,
|
222
|
+
},
|
223
|
+
},
|
224
|
+
},
|
225
|
+
},
|
226
|
+
],
|
227
|
+
actions: [],
|
228
|
+
},
|
229
|
+
list: {
|
230
|
+
actions: [
|
231
|
+
{
|
232
|
+
title: `t("create", { scope: "common" })`,
|
233
|
+
command: 'create-entity',
|
234
|
+
priority: 'primary',
|
235
|
+
type: 'create',
|
236
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
237
|
+
},
|
238
|
+
{
|
239
|
+
title: 't("deleteItems", { scope: "common" })',
|
240
|
+
command: 'delete-entity',
|
241
|
+
priority: 'primary',
|
242
|
+
type: 'delete',
|
243
|
+
scope: AXPEntityCommandScope.Selected,
|
244
|
+
},
|
245
|
+
{
|
246
|
+
title: 't("detail", { scope: "common" })',
|
247
|
+
command: 'open-entity',
|
248
|
+
priority: 'secondary',
|
249
|
+
type: 'view',
|
250
|
+
scope: AXPEntityCommandScope.Individual,
|
251
|
+
},
|
252
|
+
{
|
253
|
+
title: 't("delete", { scope: "common" })',
|
254
|
+
command: 'delete-entity',
|
255
|
+
priority: 'secondary',
|
256
|
+
type: 'delete',
|
257
|
+
scope: AXPEntityCommandScope.Individual,
|
258
|
+
},
|
259
|
+
],
|
260
|
+
views: [
|
261
|
+
{
|
262
|
+
name: 'all',
|
263
|
+
title: 't("allItem", { scope: "common" })',
|
264
|
+
fixed: true,
|
265
|
+
columns: [],
|
266
|
+
conditions: [],
|
267
|
+
sorts: [],
|
268
|
+
},
|
269
|
+
],
|
270
|
+
},
|
271
|
+
},
|
272
|
+
},
|
273
|
+
};
|
274
|
+
return entityDef;
|
275
|
+
}
|
276
|
+
|
277
|
+
var category_entity = /*#__PURE__*/Object.freeze({
|
278
|
+
__proto__: null,
|
279
|
+
factory: factory$1
|
280
|
+
});
|
281
|
+
|
282
|
+
class AXMFormTemplateManagementCategoryEntityModule {
|
283
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
284
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule }); }
|
285
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, providers: [
|
286
|
+
{
|
287
|
+
provide: AXMFormTemplateManagementCategoryEntityService,
|
288
|
+
useClass: AXMFormTemplateManagementCategoryEntityServiceImpl,
|
289
|
+
},
|
290
|
+
] }); }
|
291
|
+
}
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, decorators: [{
|
293
|
+
type: NgModule,
|
294
|
+
args: [{
|
295
|
+
imports: [],
|
296
|
+
exports: [],
|
297
|
+
declarations: [],
|
298
|
+
providers: [
|
299
|
+
{
|
300
|
+
provide: AXMFormTemplateManagementCategoryEntityService,
|
301
|
+
useClass: AXMFormTemplateManagementCategoryEntityServiceImpl,
|
302
|
+
},
|
303
|
+
],
|
304
|
+
}]
|
305
|
+
}] });
|
306
|
+
|
307
|
+
class AXMFormTemplateManagementTemplateEntityService extends AXMEntityCrudServiceImpl {
|
308
|
+
}
|
309
|
+
class AXMFormTemplateManagementTemplateEntityServiceImpl extends AXMFormTemplateManagementTemplateEntityService {
|
310
|
+
constructor() {
|
311
|
+
super(`${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`);
|
312
|
+
}
|
313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
314
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl }); }
|
315
|
+
}
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, decorators: [{
|
317
|
+
type: Injectable
|
318
|
+
}], ctorParameters: () => [] });
|
319
|
+
|
320
|
+
async function factory(injector) {
|
321
|
+
const dataService = injector.get(AXMFormTemplateManagementTemplateEntityService);
|
322
|
+
const i18n = AXMFormTemplateManagementModuleConst.i18n;
|
323
|
+
const entityDef = {
|
324
|
+
module: AXMFormTemplateManagementModuleConst.moduleName,
|
325
|
+
name: AXMFormTemplateManagementModuleConst.templateEntity,
|
326
|
+
source: '',
|
327
|
+
title: `t("template",{scope:"${i18n}"})`,
|
328
|
+
formats: {
|
329
|
+
individual: `t("template",{scope:"${i18n}"})`,
|
330
|
+
plural: `t("templates",{scope:"${i18n}"})`,
|
331
|
+
},
|
332
|
+
relatedEntities: [],
|
333
|
+
groups: [
|
334
|
+
{
|
335
|
+
id: 'section',
|
336
|
+
title: `t("information",{scope:"common"})`,
|
337
|
+
},
|
338
|
+
],
|
339
|
+
properties: [
|
340
|
+
{
|
341
|
+
name: 'name',
|
342
|
+
title: 't("name", { scope: "common" })',
|
343
|
+
groupId: 'section',
|
344
|
+
options: {
|
345
|
+
filter: {
|
346
|
+
inline: { enabled: true },
|
347
|
+
},
|
348
|
+
sort: {
|
349
|
+
enabled: true,
|
350
|
+
},
|
351
|
+
},
|
352
|
+
schema: {
|
353
|
+
dataType: 'string',
|
354
|
+
interface: {
|
355
|
+
type: AXPWidgetsCatalog.text,
|
356
|
+
},
|
357
|
+
},
|
358
|
+
validations: [
|
359
|
+
{
|
360
|
+
rule: 'required',
|
361
|
+
},
|
362
|
+
],
|
363
|
+
},
|
364
|
+
{
|
365
|
+
name: 'title',
|
366
|
+
title: 't("title", { scope: "common" })',
|
367
|
+
groupId: 'section',
|
368
|
+
options: {
|
369
|
+
filter: {
|
370
|
+
inline: { enabled: true },
|
371
|
+
},
|
372
|
+
sort: {
|
373
|
+
enabled: true,
|
374
|
+
},
|
375
|
+
},
|
376
|
+
schema: {
|
377
|
+
dataType: 'string',
|
378
|
+
interface: {
|
379
|
+
type: AXPWidgetsCatalog.text,
|
380
|
+
},
|
381
|
+
},
|
382
|
+
validations: [
|
383
|
+
{
|
384
|
+
rule: 'required',
|
385
|
+
},
|
386
|
+
],
|
387
|
+
},
|
388
|
+
{
|
389
|
+
name: 'categoryId',
|
390
|
+
title: 't("category", { scope: "common" })',
|
391
|
+
groupId: 'section',
|
392
|
+
schema: {
|
393
|
+
dataType: 'string',
|
394
|
+
interface: {
|
395
|
+
type: AXPWidgetsCatalog.lookup,
|
396
|
+
options: {
|
397
|
+
entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.categoryEntity}`,
|
398
|
+
expose: [
|
399
|
+
{ source: 'id', target: 'categoryId' },
|
400
|
+
{ source: 'title', target: 'category.title' },
|
401
|
+
],
|
402
|
+
},
|
403
|
+
},
|
404
|
+
},
|
405
|
+
validations: [
|
406
|
+
{
|
407
|
+
rule: 'required',
|
408
|
+
},
|
409
|
+
],
|
410
|
+
},
|
411
|
+
{
|
412
|
+
name: 'type',
|
413
|
+
title: `t("template-type",{scope:"${i18n}"})`,
|
414
|
+
groupId: 'section',
|
415
|
+
schema: {
|
416
|
+
dataType: 'string',
|
417
|
+
interface: {
|
418
|
+
type: AXPWidgetsCatalog.select,
|
419
|
+
options: {
|
420
|
+
valueField: 'value',
|
421
|
+
textField: 'title',
|
422
|
+
defaultValue: '10',
|
423
|
+
dataSource: [
|
424
|
+
{ value: 10, title: 'Form Template' },
|
425
|
+
{ value: 20, title: 'Widgets Template' },
|
426
|
+
],
|
427
|
+
multiple: false,
|
428
|
+
},
|
429
|
+
},
|
430
|
+
},
|
431
|
+
validations: [
|
432
|
+
{
|
433
|
+
rule: 'required',
|
434
|
+
},
|
435
|
+
],
|
436
|
+
},
|
437
|
+
{
|
438
|
+
name: 'template',
|
439
|
+
title: `t("template",{scope:"${i18n}"})`,
|
440
|
+
groupId: 'section',
|
441
|
+
schema: {
|
442
|
+
dataType: 'string',
|
443
|
+
interface: {
|
444
|
+
type: AXPWidgetsCatalog.templateDesigner,
|
445
|
+
},
|
446
|
+
},
|
447
|
+
},
|
448
|
+
],
|
449
|
+
columns: [
|
450
|
+
{ name: 'name' },
|
451
|
+
{ name: 'title' },
|
452
|
+
{ name: 'type' },
|
453
|
+
{ name: 'categoryId', options: { dataPath: 'category.title' } },
|
454
|
+
],
|
455
|
+
commands: {
|
456
|
+
create: {
|
457
|
+
execute: async (data) => {
|
458
|
+
const res = await dataService.insertOne(data);
|
459
|
+
return { id: res };
|
460
|
+
},
|
461
|
+
},
|
462
|
+
delete: {
|
463
|
+
execute: async (id) => {
|
464
|
+
return await dataService.deleteOne(id);
|
465
|
+
},
|
466
|
+
},
|
467
|
+
update: {
|
468
|
+
execute: async (data) => {
|
469
|
+
return await dataService.updateOne(data.id, data);
|
470
|
+
},
|
471
|
+
},
|
472
|
+
},
|
473
|
+
queries: {
|
474
|
+
byKey: {
|
475
|
+
execute: async (id) => {
|
476
|
+
return await dataService.getOne(id);
|
477
|
+
},
|
478
|
+
type: AXPEntityQueryType.Single,
|
479
|
+
},
|
480
|
+
list: {
|
481
|
+
execute: async (e) => {
|
482
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
483
|
+
},
|
484
|
+
type: AXPEntityQueryType.List,
|
485
|
+
},
|
486
|
+
},
|
487
|
+
interfaces: {
|
488
|
+
master: {
|
489
|
+
create: {
|
490
|
+
sections: [
|
491
|
+
{
|
492
|
+
id: 'section',
|
493
|
+
},
|
494
|
+
],
|
495
|
+
properties: [
|
496
|
+
{
|
497
|
+
name: 'name',
|
498
|
+
layout: {
|
499
|
+
positions: {
|
500
|
+
lg: {
|
501
|
+
colSpan: 6,
|
502
|
+
},
|
503
|
+
},
|
504
|
+
},
|
505
|
+
},
|
506
|
+
{
|
507
|
+
name: 'title',
|
508
|
+
layout: {
|
509
|
+
positions: {
|
510
|
+
lg: {
|
511
|
+
colSpan: 6,
|
512
|
+
},
|
513
|
+
},
|
514
|
+
},
|
515
|
+
},
|
516
|
+
{
|
517
|
+
name: 'type',
|
518
|
+
layout: {
|
519
|
+
order: 10,
|
520
|
+
positions: {
|
521
|
+
lg: {
|
522
|
+
colSpan: 6,
|
523
|
+
},
|
524
|
+
},
|
525
|
+
},
|
526
|
+
},
|
527
|
+
{
|
528
|
+
name: 'categoryId',
|
529
|
+
layout: {
|
530
|
+
order: 20,
|
531
|
+
positions: {
|
532
|
+
lg: {
|
533
|
+
colSpan: 6,
|
534
|
+
},
|
535
|
+
},
|
536
|
+
},
|
537
|
+
},
|
538
|
+
],
|
539
|
+
},
|
540
|
+
update: {
|
541
|
+
sections: [
|
542
|
+
{
|
543
|
+
id: 'section',
|
544
|
+
},
|
545
|
+
],
|
546
|
+
properties: [
|
547
|
+
{
|
548
|
+
name: 'name',
|
549
|
+
layout: {
|
550
|
+
positions: {
|
551
|
+
lg: {
|
552
|
+
colSpan: 6,
|
553
|
+
},
|
554
|
+
},
|
555
|
+
},
|
556
|
+
},
|
557
|
+
{
|
558
|
+
name: 'title',
|
559
|
+
layout: {
|
560
|
+
positions: {
|
561
|
+
lg: {
|
562
|
+
colSpan: 6,
|
563
|
+
},
|
564
|
+
},
|
565
|
+
},
|
566
|
+
},
|
567
|
+
{
|
568
|
+
name: 'categoryId',
|
569
|
+
layout: {
|
570
|
+
positions: {
|
571
|
+
lg: {
|
572
|
+
colSpan: 6,
|
573
|
+
},
|
574
|
+
},
|
575
|
+
},
|
576
|
+
},
|
577
|
+
{
|
578
|
+
name: 'type',
|
579
|
+
layout: {
|
580
|
+
positions: {
|
581
|
+
lg: {
|
582
|
+
colSpan: 6,
|
583
|
+
},
|
584
|
+
},
|
585
|
+
},
|
586
|
+
},
|
587
|
+
],
|
588
|
+
},
|
589
|
+
single: {
|
590
|
+
title: '{{title}}',
|
591
|
+
sections: [
|
592
|
+
{
|
593
|
+
id: 'section',
|
594
|
+
layout: {
|
595
|
+
positions: {
|
596
|
+
lg: {
|
597
|
+
colSpan: 12,
|
598
|
+
},
|
599
|
+
},
|
600
|
+
},
|
601
|
+
},
|
602
|
+
{
|
603
|
+
id: 'template',
|
604
|
+
layout: {
|
605
|
+
positions: {
|
606
|
+
lg: {
|
607
|
+
colSpan: 12,
|
608
|
+
},
|
609
|
+
},
|
610
|
+
},
|
611
|
+
},
|
612
|
+
],
|
613
|
+
properties: [
|
614
|
+
{
|
615
|
+
name: 'name',
|
616
|
+
layout: {
|
617
|
+
positions: {
|
618
|
+
lg: {
|
619
|
+
colSpan: 6,
|
620
|
+
},
|
621
|
+
},
|
622
|
+
},
|
623
|
+
},
|
624
|
+
{
|
625
|
+
name: 'title',
|
626
|
+
layout: {
|
627
|
+
positions: {
|
628
|
+
lg: {
|
629
|
+
colSpan: 6,
|
630
|
+
},
|
631
|
+
},
|
632
|
+
},
|
633
|
+
},
|
634
|
+
{
|
635
|
+
name: 'type',
|
636
|
+
layout: {
|
637
|
+
positions: {
|
638
|
+
lg: {
|
639
|
+
colSpan: 6,
|
640
|
+
},
|
641
|
+
},
|
642
|
+
},
|
643
|
+
},
|
644
|
+
{
|
645
|
+
name: 'categoryId',
|
646
|
+
layout: {
|
647
|
+
positions: {
|
648
|
+
lg: {
|
649
|
+
colSpan: 4,
|
650
|
+
},
|
651
|
+
},
|
652
|
+
},
|
653
|
+
},
|
654
|
+
{
|
655
|
+
name: 'template',
|
656
|
+
layout: {
|
657
|
+
label: {
|
658
|
+
visible: false,
|
659
|
+
},
|
660
|
+
positions: {
|
661
|
+
lg: {
|
662
|
+
colSpan: 4,
|
663
|
+
},
|
664
|
+
},
|
665
|
+
},
|
666
|
+
},
|
667
|
+
],
|
668
|
+
actions: [],
|
669
|
+
},
|
670
|
+
list: {
|
671
|
+
actions: [
|
672
|
+
{
|
673
|
+
title: `t("create", { scope: "common" })`,
|
674
|
+
command: 'create-form-template',
|
675
|
+
priority: 'primary',
|
676
|
+
type: 'create',
|
677
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
678
|
+
},
|
679
|
+
{
|
680
|
+
title: 't("deleteItems", { scope: "common" })',
|
681
|
+
command: 'delete-entity',
|
682
|
+
priority: 'primary',
|
683
|
+
type: 'delete',
|
684
|
+
scope: AXPEntityCommandScope.Selected,
|
685
|
+
},
|
686
|
+
{
|
687
|
+
title: 't("detail", { scope: "common" })',
|
688
|
+
command: 'open-entity',
|
689
|
+
priority: 'secondary',
|
690
|
+
type: 'view',
|
691
|
+
scope: AXPEntityCommandScope.Individual,
|
692
|
+
},
|
693
|
+
{
|
694
|
+
title: 't("delete", { scope: "common" })',
|
695
|
+
command: 'delete-entity',
|
696
|
+
priority: 'secondary',
|
697
|
+
type: 'delete',
|
698
|
+
scope: AXPEntityCommandScope.Individual,
|
699
|
+
},
|
700
|
+
],
|
701
|
+
views: [
|
702
|
+
{
|
703
|
+
name: 'all',
|
704
|
+
title: 't("allItem", { scope: "common" })',
|
705
|
+
fixed: true,
|
706
|
+
columns: [],
|
707
|
+
conditions: [],
|
708
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
709
|
+
},
|
710
|
+
{
|
711
|
+
name: 'forms',
|
712
|
+
title: `t("forms", { scope: "${i18n}" })`,
|
713
|
+
fixed: true,
|
714
|
+
columns: [],
|
715
|
+
conditions: [
|
716
|
+
{
|
717
|
+
name: 'type.value',
|
718
|
+
operator: {
|
719
|
+
type: 'equal',
|
720
|
+
},
|
721
|
+
value: 10,
|
722
|
+
},
|
723
|
+
],
|
724
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
725
|
+
},
|
726
|
+
{
|
727
|
+
name: 'widgets',
|
728
|
+
title: `t("widgets", { scope: "${i18n}" })`,
|
729
|
+
fixed: true,
|
730
|
+
columns: [],
|
731
|
+
conditions: [
|
732
|
+
{
|
733
|
+
name: 'type.value',
|
734
|
+
operator: {
|
735
|
+
type: 'equal',
|
736
|
+
},
|
737
|
+
value: 20,
|
738
|
+
},
|
739
|
+
],
|
740
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
741
|
+
},
|
742
|
+
],
|
743
|
+
},
|
744
|
+
},
|
745
|
+
},
|
746
|
+
};
|
747
|
+
return entityDef;
|
748
|
+
}
|
749
|
+
|
750
|
+
var template_entity = /*#__PURE__*/Object.freeze({
|
751
|
+
__proto__: null,
|
752
|
+
factory: factory
|
753
|
+
});
|
754
|
+
|
755
|
+
class AXMFormTemplateManagementTemplateEntityModule {
|
756
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
757
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule }); }
|
758
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, providers: [
|
759
|
+
{
|
760
|
+
provide: AXMFormTemplateManagementTemplateEntityService,
|
761
|
+
useClass: AXMFormTemplateManagementTemplateEntityServiceImpl,
|
762
|
+
},
|
763
|
+
] }); }
|
764
|
+
}
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, decorators: [{
|
766
|
+
type: NgModule,
|
767
|
+
args: [{
|
768
|
+
imports: [],
|
769
|
+
exports: [],
|
770
|
+
declarations: [],
|
771
|
+
providers: [
|
772
|
+
{
|
773
|
+
provide: AXMFormTemplateManagementTemplateEntityService,
|
774
|
+
useClass: AXMFormTemplateManagementTemplateEntityServiceImpl,
|
775
|
+
},
|
776
|
+
],
|
777
|
+
}]
|
778
|
+
}] });
|
779
|
+
|
780
|
+
class AXMFormTemplateManagementModuleEntityProvider {
|
781
|
+
constructor() {
|
782
|
+
this.injector = inject(Injector);
|
783
|
+
}
|
784
|
+
async get(moduleName, entityName) {
|
785
|
+
if (moduleName == AXMFormTemplateManagementModuleConst.moduleName) {
|
786
|
+
switch (entityName) {
|
787
|
+
case AXMFormTemplateManagementModuleConst.categoryEntity:
|
788
|
+
return (await Promise.resolve().then(function () { return category_entity; })).factory(this.injector);
|
789
|
+
case AXMFormTemplateManagementModuleConst.templateEntity:
|
790
|
+
return (await Promise.resolve().then(function () { return template_entity; })).factory(this.injector);
|
791
|
+
}
|
792
|
+
}
|
793
|
+
return null;
|
794
|
+
}
|
795
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
796
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider }); }
|
797
|
+
}
|
798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, decorators: [{
|
799
|
+
type: Injectable
|
800
|
+
}] });
|
801
|
+
|
802
|
+
class AXMFormTemplateManagementModuleMenuProvider {
|
803
|
+
constructor() {
|
804
|
+
this.entityService = inject(AXPEntityService);
|
805
|
+
}
|
806
|
+
async provide(context) {
|
807
|
+
const scope = AXMFormTemplateManagementModuleConst.i18n;
|
808
|
+
const moduleName = AXMFormTemplateManagementModuleConst.moduleName;
|
809
|
+
context.addItems([
|
810
|
+
{
|
811
|
+
priority: 9001,
|
812
|
+
text: `t('module-name', {scope: ${scope}})`,
|
813
|
+
icon: 'fa-solid fa-file-invoice',
|
814
|
+
children: [
|
815
|
+
{
|
816
|
+
text: `t("categories", { scope: "common" })`,
|
817
|
+
path: this.entityService.createPath(moduleName, AXMFormTemplateManagementModuleConst.categoryEntity),
|
818
|
+
priority: 1,
|
819
|
+
},
|
820
|
+
{
|
821
|
+
text: `t('templates', {scope: ${scope}})`,
|
822
|
+
path: this.entityService.createPath(moduleName, AXMFormTemplateManagementModuleConst.templateEntity),
|
823
|
+
priority: 2,
|
824
|
+
},
|
825
|
+
],
|
826
|
+
},
|
827
|
+
]);
|
828
|
+
}
|
829
|
+
}
|
830
|
+
|
831
|
+
class AXPTemplateDesignerWidgetViewComponent extends AXPWidgetComponent {
|
832
|
+
constructor() {
|
833
|
+
super(...arguments);
|
834
|
+
this.workflow = inject(AXPWorkflowService);
|
835
|
+
}
|
836
|
+
async handleClick() {
|
837
|
+
await this.workflow.execute('design-form-template', { data: { id: this.extractValue('id') } });
|
838
|
+
}
|
839
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
840
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPTemplateDesignerWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
841
|
+
<span
|
842
|
+
class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
|
843
|
+
(click)="handleClick()"
|
844
|
+
>
|
845
|
+
{{ 'edit-template' | translate : { scope: 'form-template-management' } | async }}
|
846
|
+
</span>
|
847
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
848
|
+
}
|
849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, decorators: [{
|
850
|
+
type: Component,
|
851
|
+
args: [{
|
852
|
+
template: `
|
853
|
+
<span
|
854
|
+
class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
|
855
|
+
(click)="handleClick()"
|
856
|
+
>
|
857
|
+
{{ 'edit-template' | translate : { scope: 'form-template-management' } | async }}
|
858
|
+
</span>
|
859
|
+
`,
|
860
|
+
standalone: true,
|
861
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
862
|
+
imports: [CommonModule, AXButtonModule, AXTranslationModule],
|
863
|
+
}]
|
864
|
+
}] });
|
865
|
+
|
866
|
+
var templateDesignerWidgetView_component = /*#__PURE__*/Object.freeze({
|
867
|
+
__proto__: null,
|
868
|
+
AXPTemplateDesignerWidgetViewComponent: AXPTemplateDesignerWidgetViewComponent
|
869
|
+
});
|
870
|
+
|
871
|
+
const AXPTemplateDesignerWidget = {
|
872
|
+
name: "template-designer",
|
873
|
+
title: "Template Designer",
|
874
|
+
icon: "fa-solid fa-square",
|
875
|
+
type: 'editor',
|
876
|
+
group: AXP_WIDGETS_LAYOUT_GROUP,
|
877
|
+
visible: false,
|
878
|
+
properties: [
|
879
|
+
AXP_NAME_PROPERTY,
|
880
|
+
AXP_DATA_PATH_PROPERTY,
|
881
|
+
],
|
882
|
+
components: {
|
883
|
+
view: {
|
884
|
+
component: () => Promise.resolve().then(function () { return templateDesignerWidgetView_component; }).then((c) => c.AXPTemplateDesignerWidgetViewComponent),
|
885
|
+
},
|
886
|
+
edit: {
|
887
|
+
component: () => Promise.resolve().then(function () { return templateDesignerWidgetView_component; }).then((c) => c.AXPTemplateDesignerWidgetViewComponent),
|
888
|
+
}
|
889
|
+
}
|
890
|
+
};
|
891
|
+
|
892
|
+
const AXMCreateFormTemplateWorkflow = {
|
893
|
+
startStepId: 'create-form-template',
|
894
|
+
steps: {
|
895
|
+
"create-form-template": {
|
896
|
+
action: 'start-workflow',
|
897
|
+
input: {
|
898
|
+
workflow: "create-entity",
|
899
|
+
context: {
|
900
|
+
redirect: true,
|
901
|
+
entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`,
|
902
|
+
}
|
903
|
+
},
|
904
|
+
nextSteps: [
|
905
|
+
{
|
906
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
907
|
+
nextStepId: 'get-template-confirmaton',
|
908
|
+
},
|
909
|
+
],
|
910
|
+
},
|
911
|
+
"get-template-confirmaton": {
|
912
|
+
action: 'show-prompt-dialog',
|
913
|
+
input: {
|
914
|
+
title: 'Confirm Action',
|
915
|
+
message: `Would you like to proceed with starting template design?`,
|
916
|
+
type: 'info',
|
917
|
+
},
|
918
|
+
nextSteps: [
|
919
|
+
{
|
920
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
921
|
+
nextStepId: 'template-design',
|
922
|
+
},
|
923
|
+
],
|
924
|
+
},
|
925
|
+
"template-design": {
|
926
|
+
action: 'open-form-template-designer',
|
927
|
+
},
|
928
|
+
},
|
929
|
+
};
|
930
|
+
|
931
|
+
class AXPDesignerConnectorImpl extends AXPDesignerConnector {
|
932
|
+
constructor() {
|
933
|
+
super(...arguments);
|
934
|
+
this.service = inject(AXMFormTemplateManagementTemplateEntityService);
|
935
|
+
//#endregion
|
936
|
+
}
|
937
|
+
//#region Save and load Widgets
|
938
|
+
async save(id, content) {
|
939
|
+
const item = await this.service.getOne(id);
|
940
|
+
if (item) {
|
941
|
+
await this.service.updateOne(id, { template: content.json });
|
942
|
+
}
|
943
|
+
else {
|
944
|
+
throw Error("Invalid Id");
|
945
|
+
}
|
946
|
+
}
|
947
|
+
async saveAs(content) {
|
948
|
+
throw Error("Not Implemented");
|
949
|
+
}
|
950
|
+
async load(id) {
|
951
|
+
const item = await this.service.getOne(id);
|
952
|
+
if (item) {
|
953
|
+
return item.template;
|
954
|
+
}
|
955
|
+
else {
|
956
|
+
throw Error("Invalid Id");
|
957
|
+
}
|
958
|
+
}
|
959
|
+
}
|
960
|
+
|
961
|
+
class AXMOpenFormTemplateDesignerAction extends AXPWorkflowAction {
|
962
|
+
constructor() {
|
963
|
+
super(...arguments);
|
964
|
+
this.navigation = inject(AXPWorkflowNavigateAction);
|
965
|
+
}
|
966
|
+
async execute(context) {
|
967
|
+
const { id } = context.getVariable('data');
|
968
|
+
context.setVariable('payload', {
|
969
|
+
commands: `/forms/designer?id=${id}`,
|
970
|
+
target: 'blank'
|
971
|
+
});
|
972
|
+
await this.navigation.execute(context);
|
973
|
+
}
|
974
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
975
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMOpenFormTemplateDesignerAction }); }
|
976
|
+
}
|
977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, decorators: [{
|
978
|
+
type: Injectable
|
979
|
+
}] });
|
980
|
+
const AXMDesignFormTemplateWorkflow = {
|
981
|
+
startStepId: 'open-design-designer',
|
982
|
+
steps: {
|
983
|
+
"open-design-designer": {
|
984
|
+
action: 'open-form-template-designer',
|
985
|
+
},
|
986
|
+
},
|
987
|
+
};
|
988
|
+
|
989
|
+
class AXPTemplateWidgetProviderImpl {
|
990
|
+
constructor() {
|
991
|
+
this.service = inject(AXMFormTemplateManagementTemplateEntityService);
|
992
|
+
}
|
993
|
+
async items(query) {
|
994
|
+
const result = ((await this.service.query(query)).items).map(c => ({
|
995
|
+
id: c.id,
|
996
|
+
title: c.title,
|
997
|
+
group: {
|
998
|
+
name: 'other',
|
999
|
+
order: 2,
|
1000
|
+
title: "Saved"
|
1001
|
+
},
|
1002
|
+
description: c.description
|
1003
|
+
}));
|
1004
|
+
return result;
|
1005
|
+
}
|
1006
|
+
async get(id) {
|
1007
|
+
const item = await this.service.getOne(id);
|
1008
|
+
if (item) {
|
1009
|
+
const document = JSON.parse(item.template);
|
1010
|
+
return document?.children?.[0];
|
1011
|
+
}
|
1012
|
+
else {
|
1013
|
+
throw Error("Invalid Id");
|
1014
|
+
}
|
1015
|
+
}
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
const routes = [
|
1019
|
+
{
|
1020
|
+
path: 'forms',
|
1021
|
+
children: [
|
1022
|
+
{
|
1023
|
+
path: 'designer',
|
1024
|
+
loadComponent: () => import('./acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),
|
1025
|
+
},
|
1026
|
+
{
|
1027
|
+
path: 'preview',
|
1028
|
+
loadComponent: () => import('@acorex/platform/layout/designer').then((c) => c.AXPLayoutDesignerPreviewComponent),
|
1029
|
+
},
|
1030
|
+
{
|
1031
|
+
path: 'viewer',
|
1032
|
+
loadComponent: () => import('@acorex/platform/layout/designer').then((c) => c.AXPLayoutDesignerPreviewViewerComponent),
|
1033
|
+
},
|
1034
|
+
],
|
1035
|
+
},
|
1036
|
+
];
|
1037
|
+
class AXMFormTemplateManagementModule {
|
1038
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1039
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, imports: [i1$1.RouterModule, AXPWidgetsModule,
|
1040
|
+
AXMFormTemplateManagementCategoryEntityModule,
|
1041
|
+
AXMFormTemplateManagementTemplateEntityModule, i2$1.AXPLayoutBuilderModule, i3.AXPWorkflowModule] }); }
|
1042
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, providers: [
|
1043
|
+
{
|
1044
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
1045
|
+
useClass: AXMFormTemplateManagementModuleEntityProvider,
|
1046
|
+
multi: true,
|
1047
|
+
},
|
1048
|
+
{
|
1049
|
+
provide: AXP_MENU_PROVIDER,
|
1050
|
+
useClass: AXMFormTemplateManagementModuleMenuProvider,
|
1051
|
+
multi: true,
|
1052
|
+
},
|
1053
|
+
{
|
1054
|
+
provide: AXPDesignerConnector,
|
1055
|
+
useClass: AXPDesignerConnectorImpl
|
1056
|
+
},
|
1057
|
+
{
|
1058
|
+
provide: AXP_TEMPLATE_WIDGET_PROVIDER,
|
1059
|
+
useClass: AXPTemplateWidgetProviderImpl,
|
1060
|
+
multi: true,
|
1061
|
+
}
|
1062
|
+
], imports: [RouterModule.forChild(routes),
|
1063
|
+
AXPWidgetsModule,
|
1064
|
+
AXMFormTemplateManagementCategoryEntityModule,
|
1065
|
+
AXMFormTemplateManagementTemplateEntityModule,
|
1066
|
+
AXPLayoutBuilderModule.forChild({
|
1067
|
+
widgets: [
|
1068
|
+
AXPTemplateDesignerWidget
|
1069
|
+
]
|
1070
|
+
}),
|
1071
|
+
AXPWorkflowModule.forChild({
|
1072
|
+
actions: {
|
1073
|
+
'open-form-template-designer': AXMOpenFormTemplateDesignerAction
|
1074
|
+
},
|
1075
|
+
workflows: {
|
1076
|
+
'create-form-template': AXMCreateFormTemplateWorkflow,
|
1077
|
+
'design-form-template': AXMDesignFormTemplateWorkflow
|
1078
|
+
}
|
1079
|
+
})] }); }
|
1080
|
+
}
|
1081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, decorators: [{
|
1082
|
+
type: NgModule,
|
1083
|
+
args: [{
|
1084
|
+
imports: [
|
1085
|
+
RouterModule.forChild(routes),
|
1086
|
+
AXPWidgetsModule,
|
1087
|
+
AXMFormTemplateManagementCategoryEntityModule,
|
1088
|
+
AXMFormTemplateManagementTemplateEntityModule,
|
1089
|
+
AXPLayoutBuilderModule.forChild({
|
1090
|
+
widgets: [
|
1091
|
+
AXPTemplateDesignerWidget
|
1092
|
+
]
|
1093
|
+
}),
|
1094
|
+
AXPWorkflowModule.forChild({
|
1095
|
+
actions: {
|
1096
|
+
'open-form-template-designer': AXMOpenFormTemplateDesignerAction
|
1097
|
+
},
|
1098
|
+
workflows: {
|
1099
|
+
'create-form-template': AXMCreateFormTemplateWorkflow,
|
1100
|
+
'design-form-template': AXMDesignFormTemplateWorkflow
|
1101
|
+
}
|
1102
|
+
})
|
1103
|
+
],
|
1104
|
+
exports: [],
|
1105
|
+
declarations: [],
|
1106
|
+
providers: [
|
1107
|
+
{
|
1108
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
1109
|
+
useClass: AXMFormTemplateManagementModuleEntityProvider,
|
1110
|
+
multi: true,
|
1111
|
+
},
|
1112
|
+
{
|
1113
|
+
provide: AXP_MENU_PROVIDER,
|
1114
|
+
useClass: AXMFormTemplateManagementModuleMenuProvider,
|
1115
|
+
multi: true,
|
1116
|
+
},
|
1117
|
+
{
|
1118
|
+
provide: AXPDesignerConnector,
|
1119
|
+
useClass: AXPDesignerConnectorImpl
|
1120
|
+
},
|
1121
|
+
{
|
1122
|
+
provide: AXP_TEMPLATE_WIDGET_PROVIDER,
|
1123
|
+
useClass: AXPTemplateWidgetProviderImpl,
|
1124
|
+
multi: true,
|
1125
|
+
}
|
1126
|
+
],
|
1127
|
+
}]
|
1128
|
+
}] });
|
1129
|
+
|
1130
|
+
/**
|
1131
|
+
* Generated bundle index. Do not edit.
|
1132
|
+
*/
|
1133
|
+
|
1134
|
+
export { AXMFormTemplateManagementModule };
|
1135
|
+
//# sourceMappingURL=acorex-modules-form-template-management.mjs.map
|