@acorex/modules 18.2.1 → 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/const.d.ts +5 -0
- package/application-management/lib/menu.provider.d.ts +3 -3
- 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 -2
- package/conversation/index.d.ts +5 -3
- package/conversation/lib/const.d.ts +7 -0
- package/conversation/lib/conversation.module.d.ts +1 -4
- package/conversation/lib/entities/chat/chat.module.d.ts +10 -4
- package/conversation/lib/entities/chat/chat.service.d.ts +14 -0
- package/conversation/lib/entities/chat/chat.type.d.ts +2 -1
- package/conversation/lib/entities/chat/components/chat-item/chat-item.component.d.ts +11 -11
- package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +8 -1
- package/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.d.ts +7 -4
- 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 +19 -1
- package/conversation/lib/entities/comments/comments.service.d.ts +3 -3
- package/esm2022/application-management/lib/const.mjs +6 -0
- package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +2 -2
- 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/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 +28 -35
- 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 +6 -4
- package/esm2022/conversation/lib/const.mjs +8 -0
- package/esm2022/conversation/lib/conversation.module.mjs +5 -10
- package/esm2022/conversation/lib/entities/chat/chat.module.mjs +64 -13
- package/esm2022/conversation/lib/entities/chat/chat.service.mjs +23 -0
- package/esm2022/conversation/lib/entities/chat/chat.type.mjs +1 -1
- package/esm2022/conversation/lib/entities/chat/components/chat-item/chat-item.component.mjs +33 -15
- package/esm2022/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.mjs +18 -5
- package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +34 -147
- 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 +73 -8
- package/esm2022/conversation/lib/entities/comments/comment.module.mjs +4 -4
- package/esm2022/conversation/lib/entities/comments/comments.service.mjs +7 -6
- package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +2 -3
- 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 +2 -2
- package/esm2022/form-template-management/lib/entities/category/category.entity.mjs +13 -13
- package/esm2022/form-template-management/lib/entities/template/template.entity.mjs +208 -15
- package/esm2022/form-template-management/lib/entities/template/template.types.mjs +1 -1
- package/esm2022/form-template-management/lib/form-template-management.module.mjs +60 -4
- package/esm2022/form-template-management/lib/menu.provider.mjs +16 -29
- package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +9 -4
- 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/lib/const.mjs +9 -0
- package/esm2022/localization-management/lib/menu.provider.mjs +33 -35
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +3 -3
- package/esm2022/notification-management/lib/const.mjs +9 -0
- package/esm2022/notification-management/lib/entities/my-notification.mjs +5 -5
- 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 +39 -37
- package/esm2022/platform-management/lib/common/country/country.entity.mjs +2 -2
- package/esm2022/platform-management/lib/common/province/province.entity.mjs +8 -8
- package/esm2022/platform-management/lib/const.mjs +12 -0
- package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +5 -4
- package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +8 -11
- package/esm2022/platform-management/lib/menu.provider.mjs +53 -47
- 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-CaR_HZfL.mjs → acorex-modules-application-management-module-designer.component-DjRdIBQt.mjs} +4 -4
- package/fesm2022/{acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs.map → acorex-modules-application-management-module-designer.component-DjRdIBQt.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +26 -23
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs → acorex-modules-auth-acorex-modules-auth-Chw_5AKM.mjs} +37 -44
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-Chw_5AKM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-DhPEtLuK.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-sFVL-lYB.mjs → acorex-modules-auth-login.module-Bir7SJ8b.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-sFVL-lYB.mjs.map → acorex-modules-auth-login.module-Bir7SJ8b.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-Bnt5qiio.mjs → acorex-modules-auth-master.layout-DwijDvUp.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-master.layout-Bnt5qiio.mjs.map → acorex-modules-auth-master.layout-DwijDvUp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-ClaRp38G.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-BXL-aLTx.mjs → acorex-modules-auth-password.component-CuLQNJ-W.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-password.component-BXL-aLTx.mjs.map → acorex-modules-auth-password.component-CuLQNJ-W.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-MDneFw2m.mjs → acorex-modules-auth-routes-ILpWODmz.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-MDneFw2m.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-BHulbf0N.mjs → acorex-modules-auth-two-factor.module-bgwR1LBc.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor.module-BHulbf0N.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 +285 -230
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/{acorex-modules-form-template-management-designer.page-DC18KFvK.mjs → acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs} +9 -4
- package/fesm2022/acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +486 -64
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-localization-management.mjs +41 -35
- package/fesm2022/acorex-modules-localization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +59 -51
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +81 -69
- 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} +275 -502
- package/fesm2022/acorex-modules-text-template-management.mjs.map +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/entities/template/template.types.d.ts +2 -0
- package/form-template-management/lib/form-template-management.module.d.ts +3 -1
- package/form-template-management/lib/menu.provider.d.ts +2 -2
- package/form-template-management/lib/pages/designer/designer.page.d.ts +2 -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/lib/const.d.ts +8 -0
- package/localization-management/lib/menu.provider.d.ts +3 -3
- package/notification-management/lib/const.d.ts +8 -0
- package/notification-management/lib/menu.provider.d.ts +3 -2
- package/package.json +32 -32
- package/platform-management/lib/const.d.ts +11 -0
- package/platform-management/lib/menu.provider.d.ts +3 -3
- 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/{template-management/lib/entities/text-template.entity.d.ts → setting-management/lib/entities/setting/setting.entity.d.ts} +1 -1
- 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/entities/chat/components/chat-items/chat-items.component.d.ts +0 -6
- package/converstion-test/README.md +0 -4
- package/converstion-test/index.d.ts +0 -1
- package/converstion-test/lib/converstion-test.module.d.ts +0 -6
- package/esm2022/conversation/lib/entities/chat/components/chat-items/chat-items.component.mjs +0 -15
- package/esm2022/converstion-test/acorex-modules-converstion-test.mjs +0 -5
- package/esm2022/converstion-test/index.mjs +0 -2
- package/esm2022/converstion-test/lib/converstion-test.module.mjs +0 -16
- 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 -251
- 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 -411
- package/esm2022/template-management/lib/entity.provider.mjs +0 -32
- 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-BVOt-gis.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-ClaRp38G.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-converstion-test.mjs +0 -23
- package/fesm2022/acorex-modules-converstion-test.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-designer.page-DC18KFvK.mjs.map +0 -1
- package/fesm2022/acorex-modules-template-management.mjs.map +0 -1
- 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/entity.provider.d.ts +0 -9
- 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
@@ -1,16 +1,25 @@
|
|
1
|
-
import { AXMEntityCrudServiceImpl, AXPEntityQueryType,
|
1
|
+
import { AXMEntityCrudServiceImpl, AXPEntityCommandScope, AXPEntityQueryType, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
2
2
|
import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
3
|
-
import { AXPWidgetsModule } from '@acorex/platform/widgets';
|
3
|
+
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXPWidgetsModule, AXP_TEMPLATE_WIDGET_PROVIDER } from '@acorex/platform/widgets';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, NgModule, inject, Injector } from '@angular/core';
|
6
|
-
import * as i1 from '@angular/router';
|
5
|
+
import { Injectable, NgModule, inject, Injector, ChangeDetectionStrategy, Component } from '@angular/core';
|
6
|
+
import * as i1$1 from '@angular/router';
|
7
7
|
import { RouterModule } from '@angular/router';
|
8
|
-
import
|
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';
|
9
18
|
|
10
19
|
const AXMFormTemplateManagementModuleConst = {
|
11
20
|
moduleName: 'FormTemplateManagement',
|
12
21
|
moduleRoute: 'form-template-management',
|
13
|
-
i18n: '
|
22
|
+
i18n: 'form-template-management',
|
14
23
|
categoryEntity: 'Category',
|
15
24
|
templateEntity: 'Template',
|
16
25
|
};
|
@@ -35,22 +44,22 @@ async function factory$1(injector) {
|
|
35
44
|
module: AXMFormTemplateManagementModuleConst.moduleName,
|
36
45
|
name: AXMFormTemplateManagementModuleConst.categoryEntity,
|
37
46
|
source: '',
|
38
|
-
title:
|
47
|
+
title: `t("category", { scope: "common" })`,
|
39
48
|
formats: {
|
40
|
-
individual:
|
41
|
-
plural:
|
49
|
+
individual: `t("category", { scope: "common" })`,
|
50
|
+
plural: `t("categories", { scope: "common" })`,
|
42
51
|
},
|
43
52
|
relatedEntities: [],
|
44
53
|
groups: [
|
45
54
|
{
|
46
55
|
id: 'section',
|
47
|
-
title:
|
56
|
+
title: `t("category", { scope: "common" })`,
|
48
57
|
},
|
49
58
|
],
|
50
59
|
properties: [
|
51
60
|
{
|
52
61
|
name: 'name',
|
53
|
-
title: '
|
62
|
+
title: 't("name", { scope: "common" })',
|
54
63
|
groupId: 'section',
|
55
64
|
options: {
|
56
65
|
sort: {
|
@@ -71,7 +80,7 @@ async function factory$1(injector) {
|
|
71
80
|
},
|
72
81
|
{
|
73
82
|
name: 'title',
|
74
|
-
title: '
|
83
|
+
title: 't("title", { scope: "common" })',
|
75
84
|
groupId: 'section',
|
76
85
|
schema: {
|
77
86
|
dataType: 'string',
|
@@ -114,7 +123,7 @@ async function factory$1(injector) {
|
|
114
123
|
},
|
115
124
|
list: {
|
116
125
|
execute: async (e) => {
|
117
|
-
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
126
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
|
118
127
|
},
|
119
128
|
type: AXPEntityQueryType.List,
|
120
129
|
},
|
@@ -220,28 +229,28 @@ async function factory$1(injector) {
|
|
220
229
|
list: {
|
221
230
|
actions: [
|
222
231
|
{
|
223
|
-
title:
|
232
|
+
title: `t("create", { scope: "common" })`,
|
224
233
|
command: 'create-entity',
|
225
234
|
priority: 'primary',
|
226
235
|
type: 'create',
|
227
236
|
scope: AXPEntityCommandScope.TypeLevel,
|
228
237
|
},
|
229
238
|
{
|
230
|
-
title: '
|
239
|
+
title: 't("deleteItems", { scope: "common" })',
|
231
240
|
command: 'delete-entity',
|
232
241
|
priority: 'primary',
|
233
242
|
type: 'delete',
|
234
243
|
scope: AXPEntityCommandScope.Selected,
|
235
244
|
},
|
236
245
|
{
|
237
|
-
title: '
|
246
|
+
title: 't("detail", { scope: "common" })',
|
238
247
|
command: 'open-entity',
|
239
248
|
priority: 'secondary',
|
240
249
|
type: 'view',
|
241
250
|
scope: AXPEntityCommandScope.Individual,
|
242
251
|
},
|
243
252
|
{
|
244
|
-
title: '
|
253
|
+
title: 't("delete", { scope: "common" })',
|
245
254
|
command: 'delete-entity',
|
246
255
|
priority: 'secondary',
|
247
256
|
type: 'delete',
|
@@ -251,7 +260,7 @@ async function factory$1(injector) {
|
|
251
260
|
views: [
|
252
261
|
{
|
253
262
|
name: 'all',
|
254
|
-
title: '
|
263
|
+
title: 't("allItem", { scope: "common" })',
|
255
264
|
fixed: true,
|
256
265
|
columns: [],
|
257
266
|
conditions: [],
|
@@ -315,24 +324,27 @@ async function factory(injector) {
|
|
315
324
|
module: AXMFormTemplateManagementModuleConst.moduleName,
|
316
325
|
name: AXMFormTemplateManagementModuleConst.templateEntity,
|
317
326
|
source: '',
|
318
|
-
title:
|
327
|
+
title: `t("template",{scope:"${i18n}"})`,
|
319
328
|
formats: {
|
320
|
-
individual:
|
321
|
-
plural:
|
329
|
+
individual: `t("template",{scope:"${i18n}"})`,
|
330
|
+
plural: `t("templates",{scope:"${i18n}"})`,
|
322
331
|
},
|
323
332
|
relatedEntities: [],
|
324
333
|
groups: [
|
325
334
|
{
|
326
335
|
id: 'section',
|
327
|
-
title:
|
336
|
+
title: `t("information",{scope:"common"})`,
|
328
337
|
},
|
329
338
|
],
|
330
339
|
properties: [
|
331
340
|
{
|
332
341
|
name: 'name',
|
333
|
-
title: '
|
342
|
+
title: 't("name", { scope: "common" })',
|
334
343
|
groupId: 'section',
|
335
344
|
options: {
|
345
|
+
filter: {
|
346
|
+
inline: { enabled: true },
|
347
|
+
},
|
336
348
|
sort: {
|
337
349
|
enabled: true,
|
338
350
|
},
|
@@ -351,8 +363,16 @@ async function factory(injector) {
|
|
351
363
|
},
|
352
364
|
{
|
353
365
|
name: 'title',
|
354
|
-
title: '
|
366
|
+
title: 't("title", { scope: "common" })',
|
355
367
|
groupId: 'section',
|
368
|
+
options: {
|
369
|
+
filter: {
|
370
|
+
inline: { enabled: true },
|
371
|
+
},
|
372
|
+
sort: {
|
373
|
+
enabled: true,
|
374
|
+
},
|
375
|
+
},
|
356
376
|
schema: {
|
357
377
|
dataType: 'string',
|
358
378
|
interface: {
|
@@ -365,8 +385,73 @@ async function factory(injector) {
|
|
365
385
|
},
|
366
386
|
],
|
367
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' } },
|
368
454
|
],
|
369
|
-
columns: [{ name: 'name' }, { name: 'title' }],
|
370
455
|
commands: {
|
371
456
|
create: {
|
372
457
|
execute: async (data) => {
|
@@ -428,6 +513,28 @@ async function factory(injector) {
|
|
428
513
|
},
|
429
514
|
},
|
430
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
|
+
},
|
431
538
|
],
|
432
539
|
},
|
433
540
|
update: {
|
@@ -457,6 +564,26 @@ async function factory(injector) {
|
|
457
564
|
},
|
458
565
|
},
|
459
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
|
+
},
|
460
587
|
],
|
461
588
|
},
|
462
589
|
single: {
|
@@ -472,6 +599,16 @@ async function factory(injector) {
|
|
472
599
|
},
|
473
600
|
},
|
474
601
|
},
|
602
|
+
{
|
603
|
+
id: 'template',
|
604
|
+
layout: {
|
605
|
+
positions: {
|
606
|
+
lg: {
|
607
|
+
colSpan: 12,
|
608
|
+
},
|
609
|
+
},
|
610
|
+
},
|
611
|
+
},
|
475
612
|
],
|
476
613
|
properties: [
|
477
614
|
{
|
@@ -494,34 +631,67 @@ async function factory(injector) {
|
|
494
631
|
},
|
495
632
|
},
|
496
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
|
+
},
|
497
667
|
],
|
498
668
|
actions: [],
|
499
669
|
},
|
500
670
|
list: {
|
501
671
|
actions: [
|
502
672
|
{
|
503
|
-
title:
|
504
|
-
command: 'create-
|
673
|
+
title: `t("create", { scope: "common" })`,
|
674
|
+
command: 'create-form-template',
|
505
675
|
priority: 'primary',
|
506
676
|
type: 'create',
|
507
677
|
scope: AXPEntityCommandScope.TypeLevel,
|
508
678
|
},
|
509
679
|
{
|
510
|
-
title: '
|
680
|
+
title: 't("deleteItems", { scope: "common" })',
|
511
681
|
command: 'delete-entity',
|
512
682
|
priority: 'primary',
|
513
683
|
type: 'delete',
|
514
684
|
scope: AXPEntityCommandScope.Selected,
|
515
685
|
},
|
516
686
|
{
|
517
|
-
title: '
|
687
|
+
title: 't("detail", { scope: "common" })',
|
518
688
|
command: 'open-entity',
|
519
689
|
priority: 'secondary',
|
520
690
|
type: 'view',
|
521
691
|
scope: AXPEntityCommandScope.Individual,
|
522
692
|
},
|
523
693
|
{
|
524
|
-
title: '
|
694
|
+
title: 't("delete", { scope: "common" })',
|
525
695
|
command: 'delete-entity',
|
526
696
|
priority: 'secondary',
|
527
697
|
type: 'delete',
|
@@ -531,11 +701,43 @@ async function factory(injector) {
|
|
531
701
|
views: [
|
532
702
|
{
|
533
703
|
name: 'all',
|
534
|
-
title: '
|
704
|
+
title: 't("allItem", { scope: "common" })',
|
535
705
|
fixed: true,
|
536
706
|
columns: [],
|
537
707
|
conditions: [],
|
538
|
-
sorts: [],
|
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' }],
|
539
741
|
},
|
540
742
|
],
|
541
743
|
},
|
@@ -601,41 +803,215 @@ class AXMFormTemplateManagementModuleMenuProvider {
|
|
601
803
|
constructor() {
|
602
804
|
this.entityService = inject(AXPEntityService);
|
603
805
|
}
|
604
|
-
async
|
806
|
+
async provide(context) {
|
605
807
|
const scope = AXMFormTemplateManagementModuleConst.i18n;
|
606
808
|
const moduleName = AXMFormTemplateManagementModuleConst.moduleName;
|
607
|
-
|
809
|
+
context.addItems([
|
608
810
|
{
|
609
|
-
|
811
|
+
priority: 9001,
|
812
|
+
text: `t('module-name', {scope: ${scope}})`,
|
813
|
+
icon: 'fa-solid fa-file-invoice',
|
814
|
+
children: [
|
610
815
|
{
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
},
|
620
|
-
{
|
621
|
-
text: `${scope}.templates`,
|
622
|
-
path: this.entityService.createPath(moduleName, AXMFormTemplateManagementModuleConst.templateEntity),
|
623
|
-
priority: 2,
|
624
|
-
},
|
625
|
-
{
|
626
|
-
text: `${scope}.widgets`,
|
627
|
-
priority: 3,
|
628
|
-
},
|
629
|
-
{
|
630
|
-
text: `${scope}.designer`,
|
631
|
-
path: '/forms/designer',
|
632
|
-
priority: 100,
|
633
|
-
},
|
634
|
-
],
|
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,
|
635
824
|
},
|
636
825
|
],
|
637
826
|
},
|
638
|
-
];
|
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
|
+
}
|
639
1015
|
}
|
640
1016
|
}
|
641
1017
|
|
@@ -645,7 +1021,7 @@ const routes = [
|
|
645
1021
|
children: [
|
646
1022
|
{
|
647
1023
|
path: 'designer',
|
648
|
-
loadComponent: () => import('./acorex-modules-form-template-management-designer.page-
|
1024
|
+
loadComponent: () => import('./acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),
|
649
1025
|
},
|
650
1026
|
{
|
651
1027
|
path: 'preview',
|
@@ -660,9 +1036,9 @@ const routes = [
|
|
660
1036
|
];
|
661
1037
|
class AXMFormTemplateManagementModule {
|
662
1038
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
663
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, imports: [i1.RouterModule, AXPWidgetsModule,
|
1039
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, imports: [i1$1.RouterModule, AXPWidgetsModule,
|
664
1040
|
AXMFormTemplateManagementCategoryEntityModule,
|
665
|
-
AXMFormTemplateManagementTemplateEntityModule] }); }
|
1041
|
+
AXMFormTemplateManagementTemplateEntityModule, i2$1.AXPLayoutBuilderModule, i3.AXPWorkflowModule] }); }
|
666
1042
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, providers: [
|
667
1043
|
{
|
668
1044
|
provide: AXP_ENTITY_DEFINITION_LOADER,
|
@@ -674,10 +1050,33 @@ class AXMFormTemplateManagementModule {
|
|
674
1050
|
useClass: AXMFormTemplateManagementModuleMenuProvider,
|
675
1051
|
multi: true,
|
676
1052
|
},
|
1053
|
+
{
|
1054
|
+
provide: AXPDesignerConnector,
|
1055
|
+
useClass: AXPDesignerConnectorImpl
|
1056
|
+
},
|
1057
|
+
{
|
1058
|
+
provide: AXP_TEMPLATE_WIDGET_PROVIDER,
|
1059
|
+
useClass: AXPTemplateWidgetProviderImpl,
|
1060
|
+
multi: true,
|
1061
|
+
}
|
677
1062
|
], imports: [RouterModule.forChild(routes),
|
678
1063
|
AXPWidgetsModule,
|
679
1064
|
AXMFormTemplateManagementCategoryEntityModule,
|
680
|
-
AXMFormTemplateManagementTemplateEntityModule
|
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
|
+
})] }); }
|
681
1080
|
}
|
682
1081
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, decorators: [{
|
683
1082
|
type: NgModule,
|
@@ -687,6 +1086,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
687
1086
|
AXPWidgetsModule,
|
688
1087
|
AXMFormTemplateManagementCategoryEntityModule,
|
689
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
|
+
})
|
690
1103
|
],
|
691
1104
|
exports: [],
|
692
1105
|
declarations: [],
|
@@ -701,6 +1114,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
701
1114
|
useClass: AXMFormTemplateManagementModuleMenuProvider,
|
702
1115
|
multi: true,
|
703
1116
|
},
|
1117
|
+
{
|
1118
|
+
provide: AXPDesignerConnector,
|
1119
|
+
useClass: AXPDesignerConnectorImpl
|
1120
|
+
},
|
1121
|
+
{
|
1122
|
+
provide: AXP_TEMPLATE_WIDGET_PROVIDER,
|
1123
|
+
useClass: AXPTemplateWidgetProviderImpl,
|
1124
|
+
multi: true,
|
1125
|
+
}
|
704
1126
|
],
|
705
1127
|
}]
|
706
1128
|
}] });
|