@acorex/modules 19.3.0-next.4 → 19.3.0
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/auth/lib/pages/account/app-chooser/app-chooser-slot.component.d.ts +1 -1
- package/auth/lib/pages/login/password/password.component.d.ts +1 -0
- package/common/index.d.ts +0 -1
- package/common/lib/common.module.d.ts +1 -2
- package/common/lib/const.d.ts +1 -14
- package/dashboard-management/README.md +3 -0
- package/dashboard-management/index.d.ts +2 -0
- package/dashboard-management/lib/const.d.ts +19 -0
- package/dashboard-management/lib/dashboard-management.module.d.ts +7 -0
- package/dashboard-management/lib/entity.provider.d.ts +10 -0
- package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/home-dashboard.d.ts +0 -6
- package/dashboard-management/lib/menu.provider.d.ts +5 -0
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +3 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DWcYgyZA.mjs → acorex-modules-auth-acorex-modules-auth-B1HTJdsE.mjs} +22 -27
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-B1HTJdsE.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth-app-chooser.component-Ct-vco0y.mjs +64 -0
- package/fesm2022/acorex-modules-auth-app-chooser.component-Ct-vco0y.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-login.module-BgTtZuTg.mjs → acorex-modules-auth-login.module-TtdNj0aL.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-BgTtZuTg.mjs.map → acorex-modules-auth-login.module-TtdNj0aL.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-master.layout-CtVrY1hn.mjs +23 -0
- package/fesm2022/acorex-modules-auth-master.layout-CtVrY1hn.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-U16w7Rq4.mjs → acorex-modules-auth-password.component-BXm2NAaN.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-U16w7Rq4.mjs.map → acorex-modules-auth-password.component-BXm2NAaN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-_ceO6nyb.mjs → acorex-modules-auth-password.component-Dmj9zZSI.mjs} +5 -3
- package/fesm2022/acorex-modules-auth-password.component-Dmj9zZSI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-routes-CSGjcpD8.mjs → acorex-modules-auth-routes-DkgsKi3a.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-CSGjcpD8.mjs.map → acorex-modules-auth-routes-DkgsKi3a.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-D9C6LCjn.mjs +97 -0
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-D9C6LCjn.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor.module-B9UV3Nxb.mjs → acorex-modules-auth-two-factor.module-DDOSqjYs.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-B9UV3Nxb.mjs.map → acorex-modules-auth-two-factor.module-DDOSqjYs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-Dx0zd4Nj.mjs → acorex-modules-auth-user-sessions.component-B3i44VC5.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-user-sessions.component-Dx0zd4Nj.mjs.map → acorex-modules-auth-user-sessions.component-B3i44VC5.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +11 -481
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +3 -3
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-DuvWGfl1.mjs +568 -0
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-DuvWGfl1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-common-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs → acorex-modules-dashboard-management-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs} +1 -1
- package/fesm2022/acorex-modules-dashboard-management-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-common-index-Dt3vRkkx.mjs → acorex-modules-dashboard-management-index-Br6L5KMu.mjs} +17 -4
- package/fesm2022/acorex-modules-dashboard-management-index-Br6L5KMu.mjs.map +1 -0
- package/fesm2022/acorex-modules-dashboard-management.mjs +2 -0
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CdZ56kDQ.mjs → acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs} +39 -25
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CetsgMOJ.mjs → acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CetsgMOJ.mjs.map → acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-CeOqGjR9.mjs → acorex-modules-document-management-details-view.component-_9f5TQJi.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-CeOqGjR9.mjs.map → acorex-modules-document-management-details-view.component-_9f5TQJi.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-DmKUj3Jr.mjs → acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-DmKUj3Jr.mjs.map → acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-7iqPb1Xn.mjs → acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-7iqPb1Xn.mjs.map → acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-C9jalviV.mjs → acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-C9jalviV.mjs.map → acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-Bdb0uAm0.mjs → acorex-modules-document-management-list-view.component-BUu5vrul.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-Bdb0uAm0.mjs.map → acorex-modules-document-management-list-view.component-BUu5vrul.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-Do61g5Sb.mjs → acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-Do61g5Sb.mjs.map → acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BSPp5gmT.mjs → acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BSPp5gmT.mjs.map → acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-77-_bfSe.mjs → acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-77-_bfSe.mjs.map → acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-DhuDuKkz.mjs +2486 -0
- package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-DhuDuKkz.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-capture-screen.component-DN1Jnp7_.mjs → acorex-modules-issue-management-capture-screen.component-XFV3kuzQ.mjs} +6 -6
- package/fesm2022/acorex-modules-issue-management-capture-screen.component-XFV3kuzQ.mjs.map +1 -0
- package/fesm2022/acorex-modules-issue-management.mjs +2 -0
- package/fesm2022/acorex-modules-issue-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-log-management.mjs +128 -77
- package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +4 -4
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs → acorex-modules-organization-management-branch.entity-Bsgj4Pow.mjs} +4 -2
- package/fesm2022/acorex-modules-organization-management-branch.entity-Bsgj4Pow.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs → acorex-modules-organization-management-department.entity-BMojk26d.mjs} +4 -2
- package/fesm2022/acorex-modules-organization-management-department.entity-BMojk26d.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs → acorex-modules-organization-management-division.entity-BnWpX4US.mjs} +4 -2
- package/fesm2022/acorex-modules-organization-management-division.entity-BnWpX4US.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs → acorex-modules-organization-management-employee.entity-DBuCVYZP.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-employee.entity-DBuCVYZP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team.entity-DZqK-yLT.mjs → acorex-modules-organization-management-team.entity-mYPhrc2l.mjs} +8 -3
- package/fesm2022/acorex-modules-organization-management-team.entity-mYPhrc2l.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +6 -6
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-pKyqsPS6.mjs → acorex-modules-platform-management-acorex-modules-platform-management-DHA8LTwL.mjs} +423 -2319
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DHA8LTwL.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-list-version.component-SLcO7Tof.mjs → acorex-modules-platform-management-list-version.component-DgDjbODD.mjs} +6 -6
- package/fesm2022/{acorex-modules-platform-management-list-version.component-SLcO7Tof.mjs.map → acorex-modules-platform-management-list-version.component-DgDjbODD.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management-settings.provider-W71pfOmi.mjs +463 -0
- package/fesm2022/acorex-modules-platform-management-settings.provider-W71pfOmi.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +6259 -0
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-security-management.mjs +54 -24
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/issue-management/README.md +3 -0
- package/issue-management/index.d.ts +6 -0
- package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/components/capture-screen-component/capture-screen.component.d.ts +5 -5
- package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/services/capture-screen.service.d.ts +3 -3
- package/issue-management/lib/const.d.ts +37 -0
- package/issue-management/lib/entities/index.d.ts +3 -0
- package/{platform-management → issue-management}/lib/entities/issue-type/issue-type.service.d.ts +2 -2
- package/{platform-management → issue-management}/lib/entities/issue-type/issue-type.types.d.ts +1 -1
- package/{platform-management → issue-management}/lib/entities/my-reported-issues/my-reported-issues.service.d.ts +2 -2
- package/issue-management/lib/entities/my-reported-issues/my-reported-issues.types.d.ts +5 -0
- package/{platform-management → issue-management}/lib/entities/reported-issues/reported-issues.service.d.ts +2 -2
- package/{platform-management → issue-management}/lib/entities/reported-issues/reported-issues.types.d.ts +2 -3
- package/issue-management/lib/entity.provider.d.ts +10 -0
- package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/components/report-new-issue/report-new-issue.component.d.ts +16 -5
- package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/report-issue.types.d.ts +6 -1
- package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/services/report-new-issue.viewmodel.d.ts +6 -4
- package/issue-management/lib/issue-management.module.d.ts +7 -0
- package/issue-management/lib/menu.provider.d.ts +5 -0
- package/issue-management/lib/setting.provider.d.ts +4 -0
- package/package.json +13 -1
- package/platform-management/index.d.ts +1 -2
- package/platform-management/lib/const.d.ts +1 -19
- package/platform-management/lib/entities/glossary/glossary.entity.d.ts +3 -0
- package/platform-management/lib/entities/glossary/glossary.service.d.ts +10 -0
- package/platform-management/lib/entities/glossary/glossary.types.d.ts +4 -0
- package/platform-management/lib/entities/glossary/index.d.ts +3 -0
- package/platform-management/lib/entities/index.d.ts +1 -3
- package/platform-management/lib/features/common/common.module.d.ts +1 -1
- package/platform-management/lib/features/common/index.d.ts +0 -1
- package/platform-management/lib/features/common/regional/language-slot/language-slot.component.d.ts +7 -3
- package/platform-management/lib/features/common/regional/regional-store.service.d.ts +5 -1
- package/platform-management/lib/features/common/regional/settings.keys.d.ts +8 -3
- package/platform-management/lib/features/common/regional/settings.provider.d.ts +1 -0
- package/project-management/README.md +3 -0
- package/project-management/index.d.ts +7 -0
- package/project-management/lib/const.d.ts +85 -0
- package/project-management/lib/entities/client/client.entity.d.ts +3 -0
- package/project-management/lib/entities/client/client.service.d.ts +10 -0
- package/project-management/lib/entities/client/client.types.d.ts +7 -0
- package/project-management/lib/entities/client/index.d.ts +3 -0
- package/project-management/lib/entities/index.d.ts +12 -0
- package/project-management/lib/entities/project/index.d.ts +3 -0
- package/project-management/lib/entities/project/project.entity.d.ts +3 -0
- package/project-management/lib/entities/project/project.service.d.ts +10 -0
- package/project-management/lib/entities/project/project.types.d.ts +11 -0
- package/project-management/lib/entities/project-memeber/index.d.ts +3 -0
- package/project-management/lib/entities/project-memeber/project-memeber.entity.d.ts +3 -0
- package/project-management/lib/entities/project-memeber/project-memeber.service.d.ts +10 -0
- package/project-management/lib/entities/project-memeber/project-memeber.types.d.ts +7 -0
- package/project-management/lib/entities/project-role-member/index.d.ts +3 -0
- package/project-management/lib/entities/project-role-member/project-role-member.entity.d.ts +3 -0
- package/project-management/lib/entities/project-role-member/project-role-member.service.d.ts +10 -0
- package/{platform-management/lib/entities/my-reported-issues/my-reported-issues.types.d.ts → project-management/lib/entities/project-role-member/project-role-member.types.d.ts} +2 -2
- package/project-management/lib/entities/project-type/index.d.ts +3 -0
- package/project-management/lib/entities/project-type/project-type.entity.d.ts +3 -0
- package/project-management/lib/entities/project-type/project-type.service.d.ts +10 -0
- package/project-management/lib/entities/project-type/project-type.types.d.ts +4 -0
- package/project-management/lib/entities/sprint/index.d.ts +3 -0
- package/project-management/lib/entities/sprint/sprint.entity.d.ts +3 -0
- package/project-management/lib/entities/sprint/sprint.service.d.ts +10 -0
- package/project-management/lib/entities/sprint/sprint.types.d.ts +8 -0
- package/project-management/lib/entities/sprint-task/index.d.ts +3 -0
- package/project-management/lib/entities/sprint-task/sprint-task.entity.d.ts +3 -0
- package/project-management/lib/entities/sprint-task/sprint-task.service.d.ts +10 -0
- package/project-management/lib/entities/sprint-task/sprint-task.types.d.ts +5 -0
- package/project-management/lib/entities/task/index.d.ts +3 -0
- package/project-management/lib/entities/task/task.entity.d.ts +3 -0
- package/project-management/lib/entities/task/task.service.d.ts +10 -0
- package/project-management/lib/entities/task/task.types.d.ts +19 -0
- package/project-management/lib/entities/task-history/index.d.ts +3 -0
- package/project-management/lib/entities/task-history/task-history.entity.d.ts +3 -0
- package/project-management/lib/entities/task-history/task-history.service.d.ts +10 -0
- package/project-management/lib/entities/task-history/task-history.types.d.ts +8 -0
- package/project-management/lib/entities/task-type/index.d.ts +3 -0
- package/project-management/lib/entities/task-type/task-type.entity.d.ts +3 -0
- package/project-management/lib/entities/task-type/task-type.service.d.ts +10 -0
- package/project-management/lib/entities/task-type/task-type.types.d.ts +6 -0
- package/project-management/lib/entities/time-sheet/index.d.ts +3 -0
- package/project-management/lib/entities/time-sheet/time-sheet.entity.d.ts +3 -0
- package/project-management/lib/entities/time-sheet/time-sheet.service.d.ts +10 -0
- package/project-management/lib/entities/time-sheet/time-sheet.types.d.ts +8 -0
- package/project-management/lib/entities/work-site/index.d.ts +3 -0
- package/project-management/lib/entities/work-site/work-site.entity.d.ts +3 -0
- package/project-management/lib/entities/work-site/work-site.service.d.ts +10 -0
- package/project-management/lib/entities/work-site/work-site.types.d.ts +8 -0
- package/project-management/lib/entity.provider.d.ts +10 -0
- package/project-management/lib/menu.provider.d.ts +5 -0
- package/project-management/lib/project-management.module.d.ts +6 -0
- package/project-management/lib/search-command.provider.d.ts +4 -0
- package/project-management/lib/setting.provider.d.ts +4 -0
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-DWcYgyZA.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-rr25Ry55.mjs +0 -64
- package/fesm2022/acorex-modules-auth-app-chooser.component-rr25Ry55.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-master.layout-he9vVKsC.mjs +0 -23
- package/fesm2022/acorex-modules-auth-master.layout-he9vVKsC.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-_ceO6nyb.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs +0 -97
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-index-Dt3vRkkx.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CdZ56kDQ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-DZqK-yLT.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-pKyqsPS6.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-capture-screen.component-DN1Jnp7_.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-settings.provider-CsrDpQQi.mjs +0 -351
- package/fesm2022/acorex-modules-platform-management-settings.provider-CsrDpQQi.mjs.map +0 -1
- package/platform-management/lib/features/common/entity.provider.d.ts +0 -9
- package/platform-management/lib/features/index.d.ts +0 -1
- package/platform-management/lib/features/support/index.d.ts +0 -2
- /package/{common → dashboard-management}/lib/entities/dashboard/dashboard.entity.d.ts +0 -0
- /package/{common → dashboard-management}/lib/entities/dashboard/dashboard.service.d.ts +0 -0
- /package/{common → dashboard-management}/lib/entities/dashboard/dashboard.types.d.ts +0 -0
- /package/{common → dashboard-management}/lib/entities/dashboard/index.d.ts +0 -0
- /package/{common → dashboard-management}/lib/entities/index.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/home-dashboard.store.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/home-dashboard.type.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/index.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-popups/add-dashboard-popup.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-popups/configuration-popup.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-popups/dashboard-popup.service.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/home-dashboard.module.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/setrting.keys.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/widget-wrapper/dashboard-widget-wrapper.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/widgets/dashboard-shortcut/dashboard-shortcut-widget-view.component.d.ts +0 -0
- /package/{common → dashboard-management}/lib/features/home-dashboard/widgets/dashboard-shortcut/dashboard-shortcut-widget.config.d.ts +0 -0
- /package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/capture-screen.types.d.ts +0 -0
- /package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/index.d.ts +0 -0
- /package/{platform-management → issue-management}/lib/entities/issue-type/index.d.ts +0 -0
- /package/{platform-management → issue-management}/lib/entities/issue-type/issue-type.entity.d.ts +0 -0
- /package/{platform-management → issue-management}/lib/entities/my-reported-issues/index.d.ts +0 -0
- /package/{platform-management → issue-management}/lib/entities/my-reported-issues/my-reported-issues.entity.d.ts +0 -0
- /package/{platform-management → issue-management}/lib/entities/reported-issues/index.d.ts +0 -0
- /package/{platform-management → issue-management}/lib/entities/reported-issues/reported-issues.entity.d.ts +0 -0
- /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/components/index.d.ts +0 -0
- /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/index.d.ts +0 -0
- /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/workflows/index.d.ts +0 -0
- /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/workflows/show-report-issue.workflow.d.ts +0 -0
@@ -1,60 +1,49 @@
|
|
1
|
-
import * as
|
2
|
-
import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSettingService, AXP_APP_VERSION_PROVIDER, createQueryView, AXPFileStorageService, AXPRegionalService, AXPComponentSlotModule, AXP_SETTING_DEFINITION_PROVIDER,
|
3
|
-
import { AXMEntityCrudServiceImpl, AXPEntityDefinitionRegistryService,
|
4
|
-
import * as i3$
|
5
|
-
import { AXPWorkflowAction, AXPWorkflowService,
|
1
|
+
import * as i2$2 from '@acorex/platform/common';
|
2
|
+
import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSettingService, AXP_APP_VERSION_PROVIDER, createQueryView, AXPFileStorageService, AXPRegionalService, AXPComponentSlotModule, AXP_SETTING_DEFINITION_PROVIDER, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
3
|
+
import { AXMEntityCrudServiceImpl, AXPEntityDefinitionRegistryService, AXPEntityResolver, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
4
|
+
import * as i3$2 from '@acorex/platform/workflow';
|
5
|
+
import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowModule } from '@acorex/platform/workflow';
|
6
6
|
import * as i0 from '@angular/core';
|
7
|
-
import { Injectable, inject, signal, HostListener, Component, Input, Injector, NgModule
|
7
|
+
import { Injectable, inject, signal, HostListener, Component, Input, Injector, NgModule } from '@angular/core';
|
8
8
|
import { ROUTES } from '@angular/router';
|
9
9
|
import { AXPWidgetsCatalog, AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
|
10
10
|
import * as i5 from '@acorex/cdk/outline';
|
11
11
|
import { AXOutlineModule } from '@acorex/cdk/outline';
|
12
|
-
import * as
|
12
|
+
import * as i4$1 from '@acorex/components/decorators';
|
13
13
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
14
14
|
import { AXBasePageComponent } from '@acorex/components/page';
|
15
15
|
import * as i4 from '@acorex/components/side-menu';
|
16
16
|
import { AXSideMenuModule } from '@acorex/components/side-menu';
|
17
17
|
import * as i2 from '@acorex/core/format';
|
18
18
|
import { AXFormatModule } from '@acorex/core/format';
|
19
|
-
import * as
|
19
|
+
import * as i6 from '@acorex/core/translation';
|
20
20
|
import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
|
21
|
-
import
|
21
|
+
import * as i1$2 from '@acorex/platform/core';
|
22
|
+
import { AXPHtmlUtils, AXPPlatformScope, applyQueryArray, AXPAppStartUpService, objectKeyValueTransforms } from '@acorex/platform/core';
|
22
23
|
import { AXPSimplePageLayout } from '@acorex/platform/themes/default';
|
23
24
|
import { AXPThemeLayoutPageHeaderComponent, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';
|
24
25
|
import * as i1 from '@angular/common';
|
25
26
|
import { CommonModule } from '@angular/common';
|
26
27
|
import { AXPopupService } from '@acorex/components/popup';
|
27
|
-
import * as i3$
|
28
|
+
import * as i3$1 from '@acorex/components/button';
|
28
29
|
import { AXButtonModule } from '@acorex/components/button';
|
29
|
-
import * as i3
|
30
|
+
import * as i3 from '@acorex/components/check-box';
|
30
31
|
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
31
32
|
import * as i2$1 from '@acorex/components/label';
|
32
33
|
import { AXLabelModule } from '@acorex/components/label';
|
33
34
|
import { AXSafePipe } from '@acorex/core/pipes';
|
34
35
|
import { AXDataSource, convertArrayToDataSource } from '@acorex/components/common';
|
35
36
|
import { upperFirst, camelCase } from 'lodash-es';
|
36
|
-
import {
|
37
|
+
import { AXPWidgetsList } from '@acorex/modules/common';
|
38
|
+
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
37
39
|
import { AXCalendarService } from '@acorex/core/date-time';
|
40
|
+
import { AXLocaleService } from '@acorex/core/locale';
|
38
41
|
import * as i1$1 from '@acorex/components/dropdown';
|
39
42
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
40
43
|
import { AXPopoverModule } from '@acorex/components/popover';
|
41
44
|
import get from 'lodash-es/get';
|
42
45
|
import { AXPSessionService } from '@acorex/platform/auth';
|
43
|
-
import {
|
44
|
-
import html2canvas from 'html2canvas';
|
45
|
-
import { Subject, take, firstValueFrom } from 'rxjs';
|
46
|
-
import * as i4$1 from '@acorex/components/form';
|
47
|
-
import { AXFormModule, AXFormComponent } from '@acorex/components/form';
|
48
|
-
import * as i11 from '@acorex/components/media-viewer';
|
49
|
-
import { AXMediaViewerModule } from '@acorex/components/media-viewer';
|
50
|
-
import * as i7 from '@acorex/components/select-box';
|
51
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
52
|
-
import * as i8 from '@acorex/components/text-area';
|
53
|
-
import { AXTextAreaModule } from '@acorex/components/text-area';
|
54
|
-
import * as i6 from '@acorex/components/text-box';
|
55
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
56
|
-
import * as i2$2 from '@angular/forms';
|
57
|
-
import { FormsModule } from '@angular/forms';
|
46
|
+
import { firstValueFrom } from 'rxjs';
|
58
47
|
|
59
48
|
const config = {
|
60
49
|
i18n: 'platform-management',
|
@@ -68,29 +57,11 @@ const RootConfig = {
|
|
68
57
|
icon: 'fa-light fa-cogs',
|
69
58
|
},
|
70
59
|
entities: {
|
71
|
-
|
72
|
-
name: '
|
73
|
-
title: `t("
|
74
|
-
titlePlural: `t("
|
75
|
-
icon: 'fa-light fa-
|
76
|
-
},
|
77
|
-
reportedIssues: {
|
78
|
-
name: 'ReportedIssues',
|
79
|
-
title: `t("reported-issues.individual-title", { scope: "${config.i18n}" })`,
|
80
|
-
titlePlural: `t("reported-issues.plural-title", { scope: "${config.i18n}" })`,
|
81
|
-
icon: 'fa-light fa-bug',
|
82
|
-
},
|
83
|
-
myReportedIssues: {
|
84
|
-
name: 'MyReportedIssues',
|
85
|
-
title: `t("my-reported-issues.individual-title", { scope: "${config.i18n}" })`,
|
86
|
-
titlePlural: `t("my-reported-issues.plural-title", { scope: "${config.i18n}" })`,
|
87
|
-
icon: 'fa-light fa-message-exclamation',
|
88
|
-
},
|
89
|
-
reportNewIssue: {
|
90
|
-
name: 'ReportNewIssue',
|
91
|
-
title: `t("report-new-issue.individual-title", { scope: "${config.i18n}" })`,
|
92
|
-
titlePlural: `t("report-new-issue.plural-title", { scope: "${config.i18n}" })`,
|
93
|
-
icon: 'fa-light fa-clipboard-list-check',
|
60
|
+
glossary: {
|
61
|
+
name: 'Glossary',
|
62
|
+
title: `t("glossary.individual-title", { scope: "${config.i18n}" })`,
|
63
|
+
titlePlural: `t("glossary.plural-title", { scope: "${config.i18n}" })`,
|
64
|
+
icon: 'fa-light fa-file',
|
94
65
|
},
|
95
66
|
sample: {
|
96
67
|
name: 'Sample',
|
@@ -623,7 +594,7 @@ class AXMListTermsComponent extends AXBasePageComponent {
|
|
623
594
|
setTimeout(() => this.checkScroll(), 50);
|
624
595
|
}
|
625
596
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
626
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMListTermsComponent, isStandalone: true, selector: "acorex-platform-list-terms", host: { listeners: { "window:resize": "onResize($event)" } }, usesInheritance: true, ngImport: i0, template: "<axp-layout-simple-page>\n <axp-layout-page-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-page-header>\n @if(loaded()){\n <axp-layout-page-content id=\"contentDiv\" axOutlineContainer target=\"h2\" [scrollableElementId]=\"'simple-page-content'\"\n [activationOffset]=\"150\">\n <div class=\"ax-flex\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-text-neutral-700\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-pb-6 ax-px-4 ax-text-base/6\" [innerHTML]=\"term.content\"></div>\n </div>\n }\n </div>\n @if(showScrollSide){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60 ax-sticky ax-top-0\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full\"></ax-side-menu>\n </div>\n }\n </div>\n </axp-layout-page-content>\n }\n</axp-layout-simple-page>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXFormatModule }, { kind: "pipe", type: i2.AXFormatPipe, name: "format" }, { kind: "component", type: AXPSimplePageLayout, selector: "axp-layout-simple-page" }, { kind: "component", type: AXPThemeLayoutPageHeaderComponent, selector: "axp-layout-page-header" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer, axp-page-header, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-container, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type:
|
597
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMListTermsComponent, isStandalone: true, selector: "acorex-platform-list-terms", host: { listeners: { "window:resize": "onResize($event)" } }, usesInheritance: true, ngImport: i0, template: "<axp-layout-simple-page>\n <axp-layout-page-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-page-header>\n @if(loaded()){\n <axp-layout-page-content id=\"contentDiv\" axOutlineContainer target=\"h2\" [scrollableElementId]=\"'simple-page-content'\"\n [activationOffset]=\"150\">\n <div class=\"ax-flex\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-text-neutral-700\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-pb-6 ax-px-4 ax-text-base/6\" [innerHTML]=\"term.content\"></div>\n </div>\n }\n </div>\n @if(showScrollSide){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60 ax-sticky ax-top-0\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full\"></ax-side-menu>\n </div>\n }\n </div>\n </axp-layout-page-content>\n }\n</axp-layout-simple-page>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXFormatModule }, { kind: "pipe", type: i2.AXFormatPipe, name: "format" }, { kind: "component", type: AXPSimplePageLayout, selector: "axp-layout-simple-page" }, { kind: "component", type: AXPThemeLayoutPageHeaderComponent, selector: "axp-layout-page-header" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer, axp-page-header, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-container, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXSideMenuModule }, { kind: "component", type: i4.AXSideMenuComponent, selector: "ax-side-menu", inputs: ["items", "look", "location"], outputs: ["itemsChange"] }, { kind: "directive", type: i4.AXOutlineSideMenuDirective, selector: "[axOutlineSideMenu]", exportAs: ["axOutlineSideMenu"] }, { kind: "ngmodule", type: AXOutlineModule }, { kind: "directive", type: i5.AXOutlineContainerDirective, selector: "[axOutlineContainer]", inputs: ["target", "smoothScroll", "activationOffset", "activateLastAtBottom", "scrollableElementId"], exportAs: ["axOutlineContainer"] }] }); }
|
627
598
|
}
|
628
599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, decorators: [{
|
629
600
|
type: Component,
|
@@ -654,7 +625,7 @@ class AXMNotifyAppTermComponent extends AXBasePageComponent {
|
|
654
625
|
this.close({ data: this.data });
|
655
626
|
}
|
656
627
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
657
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMNotifyAppTermComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "@for (item of data; track $index) {\n<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-font-bold\">{{ item.title }}</ax-content>\n<ax-content class=\"ax-block ax-px-4 ax-pb-4 ax-text-base/6\" [innerHTML]=\"item.content | safe : 'html'\"></ax-content>\n}\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3
|
628
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMNotifyAppTermComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "@for (item of data; track $index) {\n<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-font-bold\">{{ item.title }}</ax-content>\n<ax-content class=\"ax-block ax-px-4 ax-pb-4 ax-text-base/6\" [innerHTML]=\"item.content | safe : 'html'\"></ax-content>\n}\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
658
629
|
}
|
659
630
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, decorators: [{
|
660
631
|
type: Component,
|
@@ -1112,7 +1083,7 @@ class AXMNotifyAppComponent extends AXBasePageComponent {
|
|
1112
1083
|
this.close({ data: this.data, isShowAgain: !this.isShowAgain });
|
1113
1084
|
}
|
1114
1085
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
1115
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMNotifyAppComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-text-base/6\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button color=\"primary\" (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3
|
1086
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMNotifyAppComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-text-base/6\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button color=\"primary\" (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
|
1116
1087
|
}
|
1117
1088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, decorators: [{
|
1118
1089
|
type: Component,
|
@@ -2502,62 +2473,47 @@ async function globalVariableEntityFactory(injector) {
|
|
2502
2473
|
return entityDef;
|
2503
2474
|
}
|
2504
2475
|
|
2505
|
-
class
|
2476
|
+
class AXMGlossaryService extends AXMEntityCrudServiceImpl {
|
2506
2477
|
}
|
2507
|
-
class
|
2478
|
+
class AXMGlossaryServiceImpl extends AXMGlossaryService {
|
2508
2479
|
constructor() {
|
2509
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.
|
2480
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.glossary.name}`);
|
2510
2481
|
}
|
2511
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
2512
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
2482
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlossaryServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2483
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlossaryServiceImpl }); }
|
2513
2484
|
}
|
2514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
2485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlossaryServiceImpl, decorators: [{
|
2515
2486
|
type: Injectable
|
2516
2487
|
}], ctorParameters: () => [] });
|
2517
2488
|
|
2518
|
-
async function
|
2519
|
-
const dataService = injector.get(
|
2520
|
-
const i18n = RootConfig.config.i18n;
|
2521
|
-
const entityName = 'issue-type';
|
2489
|
+
async function glossaryEntityFactory(injector) {
|
2490
|
+
const dataService = injector.get(AXMGlossaryService);
|
2491
|
+
const i18n = RootConfig.config.i18n + '.glossary';
|
2522
2492
|
const entityDef = {
|
2523
2493
|
module: RootConfig.module.name,
|
2524
|
-
name: RootConfig.entities.
|
2494
|
+
name: RootConfig.entities.glossary.name,
|
2525
2495
|
source: '',
|
2526
|
-
title: RootConfig.entities.
|
2496
|
+
title: RootConfig.entities.glossary.title,
|
2527
2497
|
formats: {
|
2528
|
-
individual: RootConfig.entities.
|
2529
|
-
plural: RootConfig.entities.
|
2498
|
+
individual: RootConfig.entities.glossary.title,
|
2499
|
+
plural: RootConfig.entities.glossary.titlePlural,
|
2530
2500
|
searchResult: {
|
2531
2501
|
title: '{{ title }}',
|
2532
|
-
description:
|
2502
|
+
description: RootConfig.module.title,
|
2533
2503
|
},
|
2534
2504
|
},
|
2535
2505
|
relatedEntities: [],
|
2536
2506
|
groups: [
|
2537
2507
|
{
|
2538
|
-
id: '
|
2539
|
-
title:
|
2508
|
+
id: 'section',
|
2509
|
+
title: RootConfig.entities.glossary.title,
|
2540
2510
|
},
|
2541
2511
|
],
|
2542
2512
|
properties: [
|
2543
|
-
{
|
2544
|
-
name: 'id',
|
2545
|
-
title: 'ID',
|
2546
|
-
groupId: 'main',
|
2547
|
-
schema: {
|
2548
|
-
dataType: 'string',
|
2549
|
-
hidden: true,
|
2550
|
-
nullable: false,
|
2551
|
-
readonly: true,
|
2552
|
-
unique: {
|
2553
|
-
enabled: true,
|
2554
|
-
},
|
2555
|
-
},
|
2556
|
-
},
|
2557
2513
|
{
|
2558
2514
|
name: 'title',
|
2559
|
-
title: `t("
|
2560
|
-
groupId: '
|
2515
|
+
title: `t("title", { scope: "${i18n}" })`,
|
2516
|
+
groupId: 'section',
|
2561
2517
|
options: {
|
2562
2518
|
sort: {
|
2563
2519
|
enabled: true,
|
@@ -2567,14 +2523,14 @@ async function issueTypeEntityFactory(injector) {
|
|
2567
2523
|
enabled: true,
|
2568
2524
|
},
|
2569
2525
|
inline: {
|
2570
|
-
enabled:
|
2526
|
+
enabled: false,
|
2571
2527
|
},
|
2572
2528
|
},
|
2573
2529
|
},
|
2574
2530
|
schema: {
|
2575
2531
|
dataType: 'string',
|
2576
2532
|
interface: {
|
2577
|
-
type:
|
2533
|
+
type: AXPWidgetsList.Editors.TextBox,
|
2578
2534
|
},
|
2579
2535
|
},
|
2580
2536
|
validations: [
|
@@ -2584,39 +2540,36 @@ async function issueTypeEntityFactory(injector) {
|
|
2584
2540
|
],
|
2585
2541
|
},
|
2586
2542
|
{
|
2587
|
-
name: '
|
2588
|
-
title: `t("
|
2589
|
-
groupId: '
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2596
|
-
enabled: true,
|
2597
|
-
},
|
2598
|
-
inline: {
|
2599
|
-
enabled: false,
|
2543
|
+
name: 'parentId',
|
2544
|
+
title: `t("parentId",{ scope: "${i18n}" })`,
|
2545
|
+
groupId: 'section',
|
2546
|
+
schema: {
|
2547
|
+
dataType: 'string',
|
2548
|
+
interface: {
|
2549
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
2550
|
+
options: {
|
2551
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.glossary.name}`,
|
2600
2552
|
},
|
2601
2553
|
},
|
2602
2554
|
},
|
2555
|
+
},
|
2556
|
+
{
|
2557
|
+
name: 'translation',
|
2558
|
+
title: `t("translation",{ scope: "${i18n}" })`,
|
2559
|
+
groupId: 'section',
|
2603
2560
|
schema: {
|
2604
2561
|
dataType: 'string',
|
2605
2562
|
interface: {
|
2606
|
-
type:
|
2563
|
+
type: AXPWidgetsList.Editors.TextBox,
|
2607
2564
|
options: {
|
2608
|
-
|
2565
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.glossary.name}`,
|
2566
|
+
multiLanguage: true,
|
2609
2567
|
},
|
2610
2568
|
},
|
2611
2569
|
},
|
2612
|
-
validations: [
|
2613
|
-
{
|
2614
|
-
rule: 'required',
|
2615
|
-
},
|
2616
|
-
],
|
2617
2570
|
},
|
2618
2571
|
],
|
2619
|
-
columns: [{ name: 'title' }
|
2572
|
+
columns: [{ name: 'title' }],
|
2620
2573
|
commands: {
|
2621
2574
|
create: {
|
2622
2575
|
execute: async (data) => {
|
@@ -2654,7 +2607,7 @@ async function issueTypeEntityFactory(injector) {
|
|
2654
2607
|
create: {
|
2655
2608
|
sections: [
|
2656
2609
|
{
|
2657
|
-
id: '
|
2610
|
+
id: 'section',
|
2658
2611
|
},
|
2659
2612
|
],
|
2660
2613
|
properties: [
|
@@ -2670,7 +2623,7 @@ async function issueTypeEntityFactory(injector) {
|
|
2670
2623
|
},
|
2671
2624
|
},
|
2672
2625
|
{
|
2673
|
-
name: '
|
2626
|
+
name: 'parentId',
|
2674
2627
|
layout: {
|
2675
2628
|
positions: {
|
2676
2629
|
lg: {
|
@@ -2680,12 +2633,23 @@ async function issueTypeEntityFactory(injector) {
|
|
2680
2633
|
},
|
2681
2634
|
},
|
2682
2635
|
},
|
2636
|
+
{
|
2637
|
+
name: 'translation',
|
2638
|
+
layout: {
|
2639
|
+
positions: {
|
2640
|
+
lg: {
|
2641
|
+
colSpan: 12,
|
2642
|
+
order: 3,
|
2643
|
+
},
|
2644
|
+
},
|
2645
|
+
},
|
2646
|
+
},
|
2683
2647
|
],
|
2684
2648
|
},
|
2685
2649
|
update: {
|
2686
2650
|
sections: [
|
2687
2651
|
{
|
2688
|
-
id: '
|
2652
|
+
id: 'section',
|
2689
2653
|
},
|
2690
2654
|
],
|
2691
2655
|
properties: [
|
@@ -2701,7 +2665,7 @@ async function issueTypeEntityFactory(injector) {
|
|
2701
2665
|
},
|
2702
2666
|
},
|
2703
2667
|
{
|
2704
|
-
name: '
|
2668
|
+
name: 'parentId',
|
2705
2669
|
layout: {
|
2706
2670
|
positions: {
|
2707
2671
|
lg: {
|
@@ -2711,13 +2675,31 @@ async function issueTypeEntityFactory(injector) {
|
|
2711
2675
|
},
|
2712
2676
|
},
|
2713
2677
|
},
|
2678
|
+
{
|
2679
|
+
name: 'translation',
|
2680
|
+
layout: {
|
2681
|
+
positions: {
|
2682
|
+
lg: {
|
2683
|
+
colSpan: 12,
|
2684
|
+
order: 3,
|
2685
|
+
},
|
2686
|
+
},
|
2687
|
+
},
|
2688
|
+
},
|
2714
2689
|
],
|
2715
2690
|
},
|
2716
2691
|
single: {
|
2717
2692
|
title: '{{title}}',
|
2718
2693
|
sections: [
|
2719
2694
|
{
|
2720
|
-
id: '
|
2695
|
+
id: 'section',
|
2696
|
+
layout: {
|
2697
|
+
positions: {
|
2698
|
+
lg: {
|
2699
|
+
colSpan: 12,
|
2700
|
+
},
|
2701
|
+
},
|
2702
|
+
},
|
2721
2703
|
},
|
2722
2704
|
],
|
2723
2705
|
properties: [
|
@@ -2733,7 +2715,7 @@ async function issueTypeEntityFactory(injector) {
|
|
2733
2715
|
},
|
2734
2716
|
},
|
2735
2717
|
{
|
2736
|
-
name: '
|
2718
|
+
name: 'parentId',
|
2737
2719
|
layout: {
|
2738
2720
|
positions: {
|
2739
2721
|
lg: {
|
@@ -2743,6 +2725,17 @@ async function issueTypeEntityFactory(injector) {
|
|
2743
2725
|
},
|
2744
2726
|
},
|
2745
2727
|
},
|
2728
|
+
{
|
2729
|
+
name: 'translation',
|
2730
|
+
layout: {
|
2731
|
+
positions: {
|
2732
|
+
lg: {
|
2733
|
+
colSpan: 12,
|
2734
|
+
order: 3,
|
2735
|
+
},
|
2736
|
+
},
|
2737
|
+
},
|
2738
|
+
},
|
2746
2739
|
],
|
2747
2740
|
actions: [],
|
2748
2741
|
},
|
@@ -3435,31 +3428,69 @@ async function metaDataDefinitionCategoryEntityFactory(injector) {
|
|
3435
3428
|
// };
|
3436
3429
|
// }
|
3437
3430
|
|
3438
|
-
class
|
3431
|
+
class AXMAppPromotionService extends AXMEntityCrudServiceImpl {
|
3439
3432
|
}
|
3440
|
-
class
|
3433
|
+
class AXMPromotionServiceImpl extends AXMEntityCrudServiceImpl {
|
3441
3434
|
constructor() {
|
3442
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.
|
3435
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.promotion.name}`);
|
3443
3436
|
}
|
3444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
3445
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
3437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3438
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl }); }
|
3446
3439
|
}
|
3447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
3440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, decorators: [{
|
3448
3441
|
type: Injectable
|
3449
3442
|
}], ctorParameters: () => [] });
|
3450
3443
|
|
3451
|
-
|
3452
|
-
|
3444
|
+
class AXMPromotionSlotComponent {
|
3445
|
+
constructor() {
|
3446
|
+
this.notificationChannelService = inject(AXMAppPromotionService);
|
3447
|
+
this.listData = signal([]);
|
3448
|
+
this.fileStorage = inject(AXPFileStorageService);
|
3449
|
+
}
|
3450
|
+
async ngOnInit() {
|
3451
|
+
const channels = await this.notificationChannelService.query({
|
3452
|
+
skip: 0,
|
3453
|
+
take: 10000,
|
3454
|
+
// filter: {
|
3455
|
+
// field: 'type',
|
3456
|
+
// operator: { type: 'equal' },
|
3457
|
+
// value: 'promotion',
|
3458
|
+
// },
|
3459
|
+
});
|
3460
|
+
const filteredItems = channels.items.filter((x) => x.placement?.name == this.location);
|
3461
|
+
const mappedItems = await Promise.all(filteredItems.map(async (item) => {
|
3462
|
+
if (item.imageId != null) {
|
3463
|
+
const image = await this.fileStorage.getInfo(item.imageId);
|
3464
|
+
return {
|
3465
|
+
...item,
|
3466
|
+
image: image,
|
3467
|
+
};
|
3468
|
+
}
|
3469
|
+
else {
|
3470
|
+
return item;
|
3471
|
+
}
|
3472
|
+
}));
|
3473
|
+
this.listData.set(mappedItems);
|
3474
|
+
}
|
3475
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
3476
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMPromotionSlotComponent, isStandalone: true, selector: "acorex-platform-promotion-slot", ngImport: i0, template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
3477
|
+
}
|
3478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, decorators: [{
|
3479
|
+
type: Component,
|
3480
|
+
args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n" }]
|
3481
|
+
}] });
|
3482
|
+
|
3483
|
+
async function promotionEntityFactory(injector) {
|
3484
|
+
const dataService = injector.get(AXMAppPromotionService);
|
3453
3485
|
const i18n = RootConfig.config.i18n;
|
3454
|
-
const entityName = 'reported-issues';
|
3455
3486
|
const entityDef = {
|
3456
3487
|
module: RootConfig.module.name,
|
3457
|
-
name: RootConfig.entities.
|
3488
|
+
name: RootConfig.entities.promotion.name,
|
3458
3489
|
source: '',
|
3459
|
-
title:
|
3490
|
+
title: RootConfig.entities.promotion.title,
|
3460
3491
|
formats: {
|
3461
|
-
individual:
|
3462
|
-
plural:
|
3492
|
+
individual: RootConfig.entities.promotion.title,
|
3493
|
+
plural: RootConfig.entities.promotion.titlePlural,
|
3463
3494
|
searchResult: {
|
3464
3495
|
title: '{{ title }}',
|
3465
3496
|
description: RootConfig.module.title,
|
@@ -3468,16 +3499,8 @@ async function reportedIssuesEntityFactory(injector) {
|
|
3468
3499
|
relatedEntities: [],
|
3469
3500
|
groups: [
|
3470
3501
|
{
|
3471
|
-
id: '
|
3472
|
-
title:
|
3473
|
-
},
|
3474
|
-
{
|
3475
|
-
id: 'details',
|
3476
|
-
title: `t("${entityName}.details-section", { scope: "${i18n}" })`,
|
3477
|
-
},
|
3478
|
-
{
|
3479
|
-
id: 'system',
|
3480
|
-
title: `t("${entityName}.system-section", { scope: "${i18n}" })`,
|
3502
|
+
id: 'promotion',
|
3503
|
+
title: 'Promotion',
|
3481
3504
|
},
|
3482
3505
|
],
|
3483
3506
|
properties: [
|
@@ -3493,44 +3516,22 @@ async function reportedIssuesEntityFactory(injector) {
|
|
3493
3516
|
enabled: true,
|
3494
3517
|
},
|
3495
3518
|
},
|
3496
|
-
},
|
3497
|
-
{
|
3498
|
-
name: 'user',
|
3499
|
-
title: `t("${entityName}.user", { scope: "${i18n}" })`,
|
3500
|
-
groupId: 'main',
|
3501
3519
|
options: {
|
3502
3520
|
sort: {
|
3503
3521
|
enabled: true,
|
3504
3522
|
},
|
3505
|
-
filter: {
|
3506
|
-
advance: {
|
3507
|
-
enabled: true,
|
3508
|
-
},
|
3509
|
-
inline: {
|
3510
|
-
enabled: true,
|
3511
|
-
},
|
3512
|
-
},
|
3513
3523
|
},
|
3524
|
+
},
|
3525
|
+
{
|
3526
|
+
name: 'title',
|
3527
|
+
title: `t("title", { scope: "common" })`,
|
3528
|
+
groupId: 'promotion',
|
3514
3529
|
schema: {
|
3515
|
-
dataType: '
|
3530
|
+
dataType: 'string',
|
3516
3531
|
interface: {
|
3517
|
-
type: AXPWidgetsCatalog.
|
3518
|
-
options: {
|
3519
|
-
entityName: 'users',
|
3520
|
-
// textField: 'fullName',
|
3521
|
-
},
|
3532
|
+
type: AXPWidgetsCatalog.text,
|
3522
3533
|
},
|
3523
3534
|
},
|
3524
|
-
validations: [
|
3525
|
-
{
|
3526
|
-
rule: 'required',
|
3527
|
-
},
|
3528
|
-
],
|
3529
|
-
},
|
3530
|
-
{
|
3531
|
-
name: 'issueType',
|
3532
|
-
title: `t("${entityName}.issue-type", { scope: "${i18n}" })`,
|
3533
|
-
groupId: 'main',
|
3534
3535
|
options: {
|
3535
3536
|
sort: {
|
3536
3537
|
enabled: true,
|
@@ -3544,17 +3545,6 @@ async function reportedIssuesEntityFactory(injector) {
|
|
3544
3545
|
},
|
3545
3546
|
},
|
3546
3547
|
},
|
3547
|
-
schema: {
|
3548
|
-
dataType: 'string',
|
3549
|
-
interface: {
|
3550
|
-
type: AXPWidgetsCatalog.lookup,
|
3551
|
-
options: {
|
3552
|
-
entityName: 'issueType',
|
3553
|
-
// displayField: 'title',
|
3554
|
-
// valueField: 'id',
|
3555
|
-
},
|
3556
|
-
},
|
3557
|
-
},
|
3558
3548
|
validations: [
|
3559
3549
|
{
|
3560
3550
|
rule: 'required',
|
@@ -3562,34 +3552,13 @@ async function reportedIssuesEntityFactory(injector) {
|
|
3562
3552
|
],
|
3563
3553
|
},
|
3564
3554
|
{
|
3565
|
-
name: '
|
3566
|
-
title: `t("
|
3567
|
-
groupId: '
|
3568
|
-
options: {
|
3569
|
-
sort: {
|
3570
|
-
enabled: true,
|
3571
|
-
},
|
3572
|
-
filter: {
|
3573
|
-
advance: {
|
3574
|
-
enabled: true,
|
3575
|
-
},
|
3576
|
-
inline: {
|
3577
|
-
enabled: true,
|
3578
|
-
},
|
3579
|
-
},
|
3580
|
-
},
|
3555
|
+
name: 'body',
|
3556
|
+
title: `t("body", { scope: "${i18n}" })`,
|
3557
|
+
groupId: 'promotion',
|
3581
3558
|
schema: {
|
3582
3559
|
dataType: 'string',
|
3583
3560
|
interface: {
|
3584
|
-
type: AXPWidgetsCatalog.
|
3585
|
-
options: {
|
3586
|
-
items: [
|
3587
|
-
{ title: 'Low', id: 1 },
|
3588
|
-
{ title: 'Medium', id: 2 },
|
3589
|
-
{ title: 'High', id: 3 },
|
3590
|
-
{ title: 'Critical', id: 4 },
|
3591
|
-
],
|
3592
|
-
},
|
3561
|
+
type: AXPWidgetsCatalog.richText,
|
3593
3562
|
},
|
3594
3563
|
},
|
3595
3564
|
validations: [
|
@@ -3599,1394 +3568,38 @@ async function reportedIssuesEntityFactory(injector) {
|
|
3599
3568
|
],
|
3600
3569
|
},
|
3601
3570
|
{
|
3602
|
-
name: '
|
3603
|
-
title: `t("
|
3604
|
-
groupId: '
|
3605
|
-
|
3606
|
-
|
3607
|
-
|
3608
|
-
|
3609
|
-
|
3610
|
-
|
3611
|
-
|
3612
|
-
|
3613
|
-
inline: {
|
3614
|
-
enabled: true,
|
3571
|
+
name: 'imageId',
|
3572
|
+
title: `t("Gallery", { scope: "${i18n}" })`,
|
3573
|
+
groupId: 'promotion',
|
3574
|
+
schema: {
|
3575
|
+
dataType: 'string',
|
3576
|
+
interface: {
|
3577
|
+
type: AXPWidgetsCatalog.documentAttachment,
|
3578
|
+
options: {
|
3579
|
+
multiple: true,
|
3580
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
|
3581
|
+
record: '{{context.eval("id")}}',
|
3615
3582
|
},
|
3616
3583
|
},
|
3617
3584
|
},
|
3585
|
+
},
|
3586
|
+
{
|
3587
|
+
name: 'contentType',
|
3588
|
+
title: `t("contentType", { scope: "${i18n}" })`,
|
3589
|
+
groupId: 'promotion',
|
3618
3590
|
schema: {
|
3619
3591
|
dataType: 'string',
|
3620
3592
|
interface: {
|
3621
3593
|
type: AXPWidgetsCatalog.select,
|
3622
3594
|
options: {
|
3623
|
-
|
3624
|
-
|
3625
|
-
|
3626
|
-
{
|
3627
|
-
{
|
3628
|
-
{ value: 'closed', title: 'Closed' },
|
3595
|
+
valueField: 'name',
|
3596
|
+
textField: 'title',
|
3597
|
+
dataSource: [
|
3598
|
+
{ title: 'Media', name: 'media' },
|
3599
|
+
{ title: 'Text', name: 'text' },
|
3629
3600
|
],
|
3630
|
-
|
3631
|
-
|
3632
|
-
},
|
3633
|
-
validations: [
|
3634
|
-
{
|
3635
|
-
rule: 'required',
|
3636
|
-
},
|
3637
|
-
],
|
3638
|
-
},
|
3639
|
-
{
|
3640
|
-
name: 'title',
|
3641
|
-
title: `t("${entityName}.title", { scope: "${i18n}" })`,
|
3642
|
-
groupId: 'main',
|
3643
|
-
options: {
|
3644
|
-
sort: {
|
3645
|
-
enabled: true,
|
3646
|
-
},
|
3647
|
-
filter: {
|
3648
|
-
advance: {
|
3649
|
-
enabled: true,
|
3650
|
-
},
|
3651
|
-
inline: {
|
3652
|
-
enabled: true,
|
3653
|
-
},
|
3654
|
-
},
|
3655
|
-
},
|
3656
|
-
schema: {
|
3657
|
-
dataType: 'string',
|
3658
|
-
interface: {
|
3659
|
-
type: AXPWidgetsCatalog.text,
|
3660
|
-
},
|
3661
|
-
},
|
3662
|
-
validations: [
|
3663
|
-
{
|
3664
|
-
rule: 'required',
|
3665
|
-
},
|
3666
|
-
],
|
3667
|
-
},
|
3668
|
-
{
|
3669
|
-
name: 'description',
|
3670
|
-
title: `t("${entityName}.description", { scope: "${i18n}" })`,
|
3671
|
-
groupId: 'details',
|
3672
|
-
options: {
|
3673
|
-
sort: {
|
3674
|
-
enabled: false,
|
3675
|
-
},
|
3676
|
-
filter: {
|
3677
|
-
advance: {
|
3678
|
-
enabled: true,
|
3679
|
-
},
|
3680
|
-
inline: {
|
3681
|
-
enabled: false,
|
3682
|
-
},
|
3683
|
-
},
|
3684
|
-
},
|
3685
|
-
schema: {
|
3686
|
-
dataType: 'string',
|
3687
|
-
interface: {
|
3688
|
-
type: AXPWidgetsCatalog.largeText,
|
3689
|
-
options: {
|
3690
|
-
rows: 4,
|
3691
|
-
},
|
3692
|
-
},
|
3693
|
-
},
|
3694
|
-
validations: [
|
3695
|
-
{
|
3696
|
-
rule: 'required',
|
3697
|
-
},
|
3698
|
-
],
|
3699
|
-
},
|
3700
|
-
{
|
3701
|
-
name: 'attachments',
|
3702
|
-
title: `t("${entityName}.attachments", { scope: "${i18n}" })`,
|
3703
|
-
groupId: 'details',
|
3704
|
-
options: {
|
3705
|
-
sort: {
|
3706
|
-
enabled: false,
|
3707
|
-
},
|
3708
|
-
filter: {
|
3709
|
-
advance: {
|
3710
|
-
enabled: false,
|
3711
|
-
},
|
3712
|
-
inline: {
|
3713
|
-
enabled: false,
|
3714
|
-
},
|
3715
|
-
},
|
3716
|
-
},
|
3717
|
-
schema: {
|
3718
|
-
dataType: 'array',
|
3719
|
-
interface: {
|
3720
|
-
type: AXPWidgetsCatalog.documentAttachment,
|
3721
|
-
options: {
|
3722
|
-
multiple: true,
|
3723
|
-
accept: '*/*',
|
3724
|
-
},
|
3725
|
-
},
|
3726
|
-
},
|
3727
|
-
},
|
3728
|
-
{
|
3729
|
-
name: 'systemInfo',
|
3730
|
-
title: `t("${entityName}.system-info", { scope: "${i18n}" })`,
|
3731
|
-
groupId: 'system',
|
3732
|
-
options: {
|
3733
|
-
sort: {
|
3734
|
-
enabled: false,
|
3735
|
-
},
|
3736
|
-
filter: {
|
3737
|
-
advance: {
|
3738
|
-
enabled: false,
|
3739
|
-
},
|
3740
|
-
inline: {
|
3741
|
-
enabled: false,
|
3742
|
-
},
|
3743
|
-
},
|
3744
|
-
},
|
3745
|
-
schema: {
|
3746
|
-
dataType: 'object',
|
3747
|
-
interface: {
|
3748
|
-
type: AXPWidgetsCatalog.metaData,
|
3749
|
-
options: {
|
3750
|
-
fields: [
|
3751
|
-
{ name: 'browser', title: 'Browser' },
|
3752
|
-
{ name: 'os', title: 'Operating System' },
|
3753
|
-
{ name: 'appVersion', title: 'App Version' },
|
3754
|
-
{ name: 'deviceType', title: 'Device Type' },
|
3755
|
-
{ name: 'screenResolution', title: 'Screen Resolution' },
|
3756
|
-
],
|
3757
|
-
},
|
3758
|
-
},
|
3759
|
-
},
|
3760
|
-
},
|
3761
|
-
{
|
3762
|
-
name: 'errorLogs',
|
3763
|
-
title: `t("${entityName}.error-logs", { scope: "${i18n}" })`,
|
3764
|
-
groupId: 'system',
|
3765
|
-
options: {
|
3766
|
-
sort: {
|
3767
|
-
enabled: false,
|
3768
|
-
},
|
3769
|
-
filter: {
|
3770
|
-
advance: {
|
3771
|
-
enabled: false,
|
3772
|
-
},
|
3773
|
-
inline: {
|
3774
|
-
enabled: false,
|
3775
|
-
},
|
3776
|
-
},
|
3777
|
-
},
|
3778
|
-
schema: {
|
3779
|
-
dataType: 'string',
|
3780
|
-
interface: {
|
3781
|
-
type: AXPWidgetsCatalog.largeText,
|
3782
|
-
options: {
|
3783
|
-
rows: 8,
|
3784
|
-
readonly: true,
|
3785
|
-
},
|
3786
|
-
},
|
3787
|
-
},
|
3788
|
-
},
|
3789
|
-
{
|
3790
|
-
name: 'createdAt',
|
3791
|
-
title: `t("${entityName}.created-at", { scope: "${i18n}" })`,
|
3792
|
-
groupId: 'system',
|
3793
|
-
options: {
|
3794
|
-
sort: {
|
3795
|
-
enabled: true,
|
3796
|
-
},
|
3797
|
-
filter: {
|
3798
|
-
advance: {
|
3799
|
-
enabled: true,
|
3800
|
-
},
|
3801
|
-
inline: {
|
3802
|
-
enabled: false,
|
3803
|
-
},
|
3804
|
-
},
|
3805
|
-
},
|
3806
|
-
schema: {
|
3807
|
-
dataType: 'date',
|
3808
|
-
interface: {
|
3809
|
-
type: AXPWidgetsCatalog.dateTime,
|
3810
|
-
options: {
|
3811
|
-
readonly: true,
|
3812
|
-
},
|
3813
|
-
},
|
3814
|
-
},
|
3815
|
-
},
|
3816
|
-
],
|
3817
|
-
columns: [
|
3818
|
-
{ name: 'user' },
|
3819
|
-
{ name: 'issueType' },
|
3820
|
-
{ name: 'priority' },
|
3821
|
-
{ name: 'status' },
|
3822
|
-
{ name: 'title' },
|
3823
|
-
{ name: 'description' },
|
3824
|
-
{ name: 'attachments' },
|
3825
|
-
{ name: 'systemInfo' },
|
3826
|
-
{ name: 'errorLogs' },
|
3827
|
-
{ name: 'createdAt' },
|
3828
|
-
],
|
3829
|
-
// commands: {
|
3830
|
-
// create: {
|
3831
|
-
// execute: async (data: any) => {
|
3832
|
-
// data.createdAt = new Date();
|
3833
|
-
// data.status = 'new';
|
3834
|
-
// const res = await dataService.insertOne(data);
|
3835
|
-
// return { id: res };
|
3836
|
-
// },
|
3837
|
-
// },
|
3838
|
-
// delete: {
|
3839
|
-
// execute: async (id: any) => {
|
3840
|
-
// return await dataService.deleteOne(id);
|
3841
|
-
// },
|
3842
|
-
// },
|
3843
|
-
// update: {
|
3844
|
-
// execute: async (data: any) => {
|
3845
|
-
// return await dataService.updateOne(data.id, data);
|
3846
|
-
// },
|
3847
|
-
// },
|
3848
|
-
// },
|
3849
|
-
queries: {
|
3850
|
-
byKey: {
|
3851
|
-
execute: async (id) => {
|
3852
|
-
return await dataService.getOne(id);
|
3853
|
-
},
|
3854
|
-
type: AXPEntityQueryType.Single,
|
3855
|
-
},
|
3856
|
-
list: {
|
3857
|
-
execute: async (e) => {
|
3858
|
-
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
3859
|
-
},
|
3860
|
-
type: AXPEntityQueryType.List,
|
3861
|
-
},
|
3862
|
-
},
|
3863
|
-
interfaces: {
|
3864
|
-
master: {
|
3865
|
-
// create: {
|
3866
|
-
// sections: [
|
3867
|
-
// {
|
3868
|
-
// id: 'main',
|
3869
|
-
// },
|
3870
|
-
// {
|
3871
|
-
// id: 'details',
|
3872
|
-
// },
|
3873
|
-
// {
|
3874
|
-
// id: 'system',
|
3875
|
-
// },
|
3876
|
-
// ],
|
3877
|
-
// properties: [
|
3878
|
-
// {
|
3879
|
-
// name: 'user',
|
3880
|
-
// layout: {
|
3881
|
-
// positions: {
|
3882
|
-
// lg: {
|
3883
|
-
// colSpan: 6,
|
3884
|
-
// order: 1,
|
3885
|
-
// },
|
3886
|
-
// },
|
3887
|
-
// },
|
3888
|
-
// },
|
3889
|
-
// {
|
3890
|
-
// name: 'issueType',
|
3891
|
-
// layout: {
|
3892
|
-
// positions: {
|
3893
|
-
// lg: {
|
3894
|
-
// colSpan: 6,
|
3895
|
-
// order: 2,
|
3896
|
-
// },
|
3897
|
-
// },
|
3898
|
-
// },
|
3899
|
-
// },
|
3900
|
-
// {
|
3901
|
-
// name: 'priority',
|
3902
|
-
// layout: {
|
3903
|
-
// positions: {
|
3904
|
-
// lg: {
|
3905
|
-
// colSpan: 6,
|
3906
|
-
// order: 3,
|
3907
|
-
// },
|
3908
|
-
// },
|
3909
|
-
// },
|
3910
|
-
// },
|
3911
|
-
// {
|
3912
|
-
// name: 'status',
|
3913
|
-
// layout: {
|
3914
|
-
// positions: {
|
3915
|
-
// lg: {
|
3916
|
-
// colSpan: 6,
|
3917
|
-
// order: 4,
|
3918
|
-
// },
|
3919
|
-
// },
|
3920
|
-
// },
|
3921
|
-
// },
|
3922
|
-
// {
|
3923
|
-
// name: 'title',
|
3924
|
-
// layout: {
|
3925
|
-
// positions: {
|
3926
|
-
// lg: {
|
3927
|
-
// colSpan: 12,
|
3928
|
-
// order: 5,
|
3929
|
-
// },
|
3930
|
-
// },
|
3931
|
-
// },
|
3932
|
-
// },
|
3933
|
-
// {
|
3934
|
-
// name: 'description',
|
3935
|
-
// layout: {
|
3936
|
-
// positions: {
|
3937
|
-
// lg: {
|
3938
|
-
// colSpan: 12,
|
3939
|
-
// order: 6,
|
3940
|
-
// },
|
3941
|
-
// },
|
3942
|
-
// },
|
3943
|
-
// },
|
3944
|
-
// {
|
3945
|
-
// name: 'attachments',
|
3946
|
-
// layout: {
|
3947
|
-
// positions: {
|
3948
|
-
// lg: {
|
3949
|
-
// colSpan: 12,
|
3950
|
-
// order: 7,
|
3951
|
-
// },
|
3952
|
-
// },
|
3953
|
-
// },
|
3954
|
-
// },
|
3955
|
-
// {
|
3956
|
-
// name: 'systemInfo',
|
3957
|
-
// layout: {
|
3958
|
-
// positions: {
|
3959
|
-
// lg: {
|
3960
|
-
// colSpan: 12,
|
3961
|
-
// order: 8,
|
3962
|
-
// },
|
3963
|
-
// },
|
3964
|
-
// },
|
3965
|
-
// },
|
3966
|
-
// {
|
3967
|
-
// name: 'errorLogs',
|
3968
|
-
// layout: {
|
3969
|
-
// positions: {
|
3970
|
-
// lg: {
|
3971
|
-
// colSpan: 12,
|
3972
|
-
// order: 9,
|
3973
|
-
// },
|
3974
|
-
// },
|
3975
|
-
// },
|
3976
|
-
// },
|
3977
|
-
// ],
|
3978
|
-
// },
|
3979
|
-
// update: {
|
3980
|
-
// sections: [
|
3981
|
-
// {
|
3982
|
-
// id: 'main',
|
3983
|
-
// },
|
3984
|
-
// {
|
3985
|
-
// id: 'details',
|
3986
|
-
// },
|
3987
|
-
// {
|
3988
|
-
// id: 'system',
|
3989
|
-
// },
|
3990
|
-
// ],
|
3991
|
-
// properties: [
|
3992
|
-
// {
|
3993
|
-
// name: 'user',
|
3994
|
-
// layout: {
|
3995
|
-
// positions: {
|
3996
|
-
// lg: {
|
3997
|
-
// colSpan: 6,
|
3998
|
-
// order: 1,
|
3999
|
-
// },
|
4000
|
-
// },
|
4001
|
-
// },
|
4002
|
-
// },
|
4003
|
-
// {
|
4004
|
-
// name: 'issueType',
|
4005
|
-
// layout: {
|
4006
|
-
// positions: {
|
4007
|
-
// lg: {
|
4008
|
-
// colSpan: 6,
|
4009
|
-
// order: 2,
|
4010
|
-
// },
|
4011
|
-
// },
|
4012
|
-
// },
|
4013
|
-
// },
|
4014
|
-
// {
|
4015
|
-
// name: 'priority',
|
4016
|
-
// layout: {
|
4017
|
-
// positions: {
|
4018
|
-
// lg: {
|
4019
|
-
// colSpan: 6,
|
4020
|
-
// order: 3,
|
4021
|
-
// },
|
4022
|
-
// },
|
4023
|
-
// },
|
4024
|
-
// },
|
4025
|
-
// {
|
4026
|
-
// name: 'status',
|
4027
|
-
// layout: {
|
4028
|
-
// positions: {
|
4029
|
-
// lg: {
|
4030
|
-
// colSpan: 6,
|
4031
|
-
// order: 4,
|
4032
|
-
// },
|
4033
|
-
// },
|
4034
|
-
// },
|
4035
|
-
// },
|
4036
|
-
// {
|
4037
|
-
// name: 'title',
|
4038
|
-
// layout: {
|
4039
|
-
// positions: {
|
4040
|
-
// lg: {
|
4041
|
-
// colSpan: 12,
|
4042
|
-
// order: 5,
|
4043
|
-
// },
|
4044
|
-
// },
|
4045
|
-
// },
|
4046
|
-
// },
|
4047
|
-
// {
|
4048
|
-
// name: 'description',
|
4049
|
-
// layout: {
|
4050
|
-
// positions: {
|
4051
|
-
// lg: {
|
4052
|
-
// colSpan: 12,
|
4053
|
-
// order: 6,
|
4054
|
-
// },
|
4055
|
-
// },
|
4056
|
-
// },
|
4057
|
-
// },
|
4058
|
-
// {
|
4059
|
-
// name: 'attachments',
|
4060
|
-
// layout: {
|
4061
|
-
// positions: {
|
4062
|
-
// lg: {
|
4063
|
-
// colSpan: 12,
|
4064
|
-
// order: 7,
|
4065
|
-
// },
|
4066
|
-
// },
|
4067
|
-
// },
|
4068
|
-
// },
|
4069
|
-
// {
|
4070
|
-
// name: 'systemInfo',
|
4071
|
-
// layout: {
|
4072
|
-
// positions: {
|
4073
|
-
// lg: {
|
4074
|
-
// colSpan: 12,
|
4075
|
-
// order: 8,
|
4076
|
-
// },
|
4077
|
-
// },
|
4078
|
-
// },
|
4079
|
-
// },
|
4080
|
-
// {
|
4081
|
-
// name: 'errorLogs',
|
4082
|
-
// layout: {
|
4083
|
-
// positions: {
|
4084
|
-
// lg: {
|
4085
|
-
// colSpan: 12,
|
4086
|
-
// order: 9,
|
4087
|
-
// },
|
4088
|
-
// },
|
4089
|
-
// },
|
4090
|
-
// },
|
4091
|
-
// {
|
4092
|
-
// name: 'createdAt',
|
4093
|
-
// layout: {
|
4094
|
-
// positions: {
|
4095
|
-
// lg: {
|
4096
|
-
// colSpan: 6,
|
4097
|
-
// order: 11,
|
4098
|
-
// },
|
4099
|
-
// },
|
4100
|
-
// },
|
4101
|
-
// },
|
4102
|
-
// ],
|
4103
|
-
// },
|
4104
|
-
single: {
|
4105
|
-
title: '{{title}}',
|
4106
|
-
sections: [
|
4107
|
-
{
|
4108
|
-
id: 'main',
|
4109
|
-
},
|
4110
|
-
{
|
4111
|
-
id: 'details',
|
4112
|
-
},
|
4113
|
-
{
|
4114
|
-
id: 'system',
|
4115
|
-
},
|
4116
|
-
],
|
4117
|
-
properties: [
|
4118
|
-
{
|
4119
|
-
name: 'user',
|
4120
|
-
layout: {
|
4121
|
-
positions: {
|
4122
|
-
lg: {
|
4123
|
-
colSpan: 6,
|
4124
|
-
order: 1,
|
4125
|
-
},
|
4126
|
-
},
|
4127
|
-
},
|
4128
|
-
},
|
4129
|
-
{
|
4130
|
-
name: 'issueType',
|
4131
|
-
layout: {
|
4132
|
-
positions: {
|
4133
|
-
lg: {
|
4134
|
-
colSpan: 6,
|
4135
|
-
order: 2,
|
4136
|
-
},
|
4137
|
-
},
|
4138
|
-
},
|
4139
|
-
},
|
4140
|
-
{
|
4141
|
-
name: 'priority',
|
4142
|
-
layout: {
|
4143
|
-
positions: {
|
4144
|
-
lg: {
|
4145
|
-
colSpan: 6,
|
4146
|
-
order: 3,
|
4147
|
-
},
|
4148
|
-
},
|
4149
|
-
},
|
4150
|
-
},
|
4151
|
-
{
|
4152
|
-
name: 'status',
|
4153
|
-
layout: {
|
4154
|
-
positions: {
|
4155
|
-
lg: {
|
4156
|
-
colSpan: 6,
|
4157
|
-
order: 4,
|
4158
|
-
},
|
4159
|
-
},
|
4160
|
-
},
|
4161
|
-
},
|
4162
|
-
{
|
4163
|
-
name: 'title',
|
4164
|
-
layout: {
|
4165
|
-
positions: {
|
4166
|
-
lg: {
|
4167
|
-
colSpan: 12,
|
4168
|
-
order: 5,
|
4169
|
-
},
|
4170
|
-
},
|
4171
|
-
},
|
4172
|
-
},
|
4173
|
-
{
|
4174
|
-
name: 'description',
|
4175
|
-
layout: {
|
4176
|
-
positions: {
|
4177
|
-
lg: {
|
4178
|
-
colSpan: 12,
|
4179
|
-
order: 6,
|
4180
|
-
},
|
4181
|
-
},
|
4182
|
-
},
|
4183
|
-
},
|
4184
|
-
{
|
4185
|
-
name: 'attachments',
|
4186
|
-
layout: {
|
4187
|
-
positions: {
|
4188
|
-
lg: {
|
4189
|
-
colSpan: 12,
|
4190
|
-
order: 7,
|
4191
|
-
},
|
4192
|
-
},
|
4193
|
-
},
|
4194
|
-
},
|
4195
|
-
{
|
4196
|
-
name: 'systemInfo',
|
4197
|
-
layout: {
|
4198
|
-
positions: {
|
4199
|
-
lg: {
|
4200
|
-
colSpan: 12,
|
4201
|
-
order: 8,
|
4202
|
-
},
|
4203
|
-
},
|
4204
|
-
},
|
4205
|
-
},
|
4206
|
-
{
|
4207
|
-
name: 'errorLogs',
|
4208
|
-
layout: {
|
4209
|
-
positions: {
|
4210
|
-
lg: {
|
4211
|
-
colSpan: 12,
|
4212
|
-
order: 9,
|
4213
|
-
},
|
4214
|
-
},
|
4215
|
-
},
|
4216
|
-
},
|
4217
|
-
{
|
4218
|
-
name: 'createdAt',
|
4219
|
-
layout: {
|
4220
|
-
positions: {
|
4221
|
-
lg: {
|
4222
|
-
colSpan: 6,
|
4223
|
-
order: 11,
|
4224
|
-
},
|
4225
|
-
},
|
4226
|
-
},
|
4227
|
-
},
|
4228
|
-
],
|
4229
|
-
actions: [],
|
4230
|
-
},
|
4231
|
-
list: {
|
4232
|
-
actions: [
|
4233
|
-
// {
|
4234
|
-
// title: `t("create", { scope: "common" })`,
|
4235
|
-
// command: 'create-entity',
|
4236
|
-
// priority: 'primary',
|
4237
|
-
// type: 'create',
|
4238
|
-
// scope: AXPEntityCommandScope.TypeLevel,
|
4239
|
-
// },
|
4240
|
-
// {
|
4241
|
-
// title: 't("deleteItems", { scope: "common" })',
|
4242
|
-
// command: 'delete-entity',
|
4243
|
-
// priority: 'primary',
|
4244
|
-
// type: 'delete',
|
4245
|
-
// scope: AXPEntityCommandScope.Selected,
|
4246
|
-
// },
|
4247
|
-
{
|
4248
|
-
title: 't("detail", { scope: "common" })',
|
4249
|
-
command: 'open-entity',
|
4250
|
-
priority: 'secondary',
|
4251
|
-
type: 'view',
|
4252
|
-
scope: AXPEntityCommandScope.Individual,
|
4253
|
-
},
|
4254
|
-
// {
|
4255
|
-
// title: 't("delete", { scope: "common" })',
|
4256
|
-
// command: 'delete-entity',
|
4257
|
-
// priority: 'secondary',
|
4258
|
-
// type: 'delete',
|
4259
|
-
// scope: AXPEntityCommandScope.Individual,
|
4260
|
-
// },
|
4261
|
-
],
|
4262
|
-
views: [
|
4263
|
-
createAllQueryView({
|
4264
|
-
sorts: [{ name: 'createdAt', dir: 'desc' }],
|
4265
|
-
}),
|
4266
|
-
],
|
4267
|
-
},
|
4268
|
-
},
|
4269
|
-
},
|
4270
|
-
};
|
4271
|
-
return entityDef;
|
4272
|
-
}
|
4273
|
-
|
4274
|
-
class AXMMyReportedIssuesService extends AXMEntityCrudServiceImpl {
|
4275
|
-
}
|
4276
|
-
class AXMMyReportedIssuesServiceImpl extends AXMMyReportedIssuesService {
|
4277
|
-
constructor() {
|
4278
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.myReportedIssues.name}`);
|
4279
|
-
}
|
4280
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMyReportedIssuesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4281
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMyReportedIssuesServiceImpl }); }
|
4282
|
-
}
|
4283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMyReportedIssuesServiceImpl, decorators: [{
|
4284
|
-
type: Injectable
|
4285
|
-
}], ctorParameters: () => [] });
|
4286
|
-
|
4287
|
-
async function myReportedIssuesEntityFactory(injector) {
|
4288
|
-
const dataService = injector.get(AXMMyReportedIssuesService);
|
4289
|
-
const reportedIssueDataService = injector.get(AXMReportedIssuesService);
|
4290
|
-
const i18n = RootConfig.config.i18n;
|
4291
|
-
const entityName = 'my-reported-issues';
|
4292
|
-
const entityDef = {
|
4293
|
-
module: RootConfig.module.name,
|
4294
|
-
name: RootConfig.entities.myReportedIssues.name,
|
4295
|
-
source: '',
|
4296
|
-
title: `t("${entityName}.individual-title", { scope: "${i18n}" })`,
|
4297
|
-
formats: {
|
4298
|
-
individual: `t("${entityName}.individual-title", { scope: "${i18n}" })`,
|
4299
|
-
plural: `t("${entityName}.plural-title", { scope: "${i18n}" })`,
|
4300
|
-
searchResult: {
|
4301
|
-
title: '{{ title }}',
|
4302
|
-
description: RootConfig.module.title,
|
4303
|
-
},
|
4304
|
-
},
|
4305
|
-
relatedEntities: [],
|
4306
|
-
groups: [
|
4307
|
-
{
|
4308
|
-
id: 'section',
|
4309
|
-
title: `t("${entityName}.section-title", { scope: "${i18n}" })`,
|
4310
|
-
},
|
4311
|
-
],
|
4312
|
-
properties: [
|
4313
|
-
{
|
4314
|
-
name: 'id',
|
4315
|
-
title: 'ID',
|
4316
|
-
schema: {
|
4317
|
-
dataType: 'uuid',
|
4318
|
-
hidden: true,
|
4319
|
-
nullable: false,
|
4320
|
-
readonly: true,
|
4321
|
-
unique: {
|
4322
|
-
enabled: true,
|
4323
|
-
},
|
4324
|
-
},
|
4325
|
-
},
|
4326
|
-
{
|
4327
|
-
name: 'issue-type',
|
4328
|
-
title: `t("${entityName}.issue-type", { scope:"${i18n}" })`,
|
4329
|
-
groupId: 'section',
|
4330
|
-
options: {
|
4331
|
-
sort: {
|
4332
|
-
enabled: true,
|
4333
|
-
},
|
4334
|
-
filter: {
|
4335
|
-
advance: {
|
4336
|
-
enabled: true,
|
4337
|
-
},
|
4338
|
-
inline: {
|
4339
|
-
enabled: true,
|
4340
|
-
},
|
4341
|
-
},
|
4342
|
-
},
|
4343
|
-
schema: {
|
4344
|
-
dataType: 'string',
|
4345
|
-
interface: {
|
4346
|
-
type: AXPWidgetsCatalog.select,
|
4347
|
-
options: {
|
4348
|
-
items: [
|
4349
|
-
{ value: 'bug', title: 'Bug' },
|
4350
|
-
{ value: 'feature', title: 'Feature Request' },
|
4351
|
-
{ value: 'support', title: 'Support' },
|
4352
|
-
{ value: 'other', title: 'Other' },
|
4353
|
-
],
|
4354
|
-
},
|
4355
|
-
},
|
4356
|
-
},
|
4357
|
-
validations: [
|
4358
|
-
{
|
4359
|
-
rule: 'required',
|
4360
|
-
},
|
4361
|
-
],
|
4362
|
-
},
|
4363
|
-
{
|
4364
|
-
name: 'priority',
|
4365
|
-
title: `t("${entityName}.priority", { scope: "${i18n}" })`,
|
4366
|
-
groupId: 'section',
|
4367
|
-
options: {
|
4368
|
-
sort: {
|
4369
|
-
enabled: true,
|
4370
|
-
},
|
4371
|
-
filter: {
|
4372
|
-
advance: {
|
4373
|
-
enabled: true,
|
4374
|
-
},
|
4375
|
-
inline: {
|
4376
|
-
enabled: true,
|
4377
|
-
},
|
4378
|
-
},
|
4379
|
-
},
|
4380
|
-
schema: {
|
4381
|
-
dataType: 'string',
|
4382
|
-
interface: {
|
4383
|
-
type: AXPWidgetsCatalog.select,
|
4384
|
-
options: {
|
4385
|
-
items: [
|
4386
|
-
{ value: 'high', title: 'High' },
|
4387
|
-
{ value: 'medium', title: 'Medium' },
|
4388
|
-
{ value: 'low', title: 'Low' },
|
4389
|
-
],
|
4390
|
-
},
|
4391
|
-
},
|
4392
|
-
},
|
4393
|
-
validations: [
|
4394
|
-
{
|
4395
|
-
rule: 'required',
|
4396
|
-
},
|
4397
|
-
],
|
4398
|
-
},
|
4399
|
-
{
|
4400
|
-
name: 'title',
|
4401
|
-
title: `t("${entityName}.title", { scope: "${i18n}" })`,
|
4402
|
-
groupId: 'section',
|
4403
|
-
options: {
|
4404
|
-
sort: {
|
4405
|
-
enabled: true,
|
4406
|
-
},
|
4407
|
-
filter: {
|
4408
|
-
advance: {
|
4409
|
-
enabled: true,
|
4410
|
-
},
|
4411
|
-
inline: {
|
4412
|
-
enabled: true,
|
4413
|
-
},
|
4414
|
-
},
|
4415
|
-
},
|
4416
|
-
schema: {
|
4417
|
-
dataType: 'string',
|
4418
|
-
interface: {
|
4419
|
-
type: AXPWidgetsCatalog.text,
|
4420
|
-
},
|
4421
|
-
},
|
4422
|
-
validations: [
|
4423
|
-
{
|
4424
|
-
rule: 'required',
|
4425
|
-
},
|
4426
|
-
],
|
4427
|
-
},
|
4428
|
-
{
|
4429
|
-
name: 'description',
|
4430
|
-
title: `t("${entityName}.description", { scope: "${i18n}" })`,
|
4431
|
-
groupId: 'section',
|
4432
|
-
options: {
|
4433
|
-
sort: {
|
4434
|
-
enabled: false,
|
4435
|
-
},
|
4436
|
-
filter: {
|
4437
|
-
advance: {
|
4438
|
-
enabled: true,
|
4439
|
-
},
|
4440
|
-
inline: {
|
4441
|
-
enabled: false,
|
4442
|
-
},
|
4443
|
-
},
|
4444
|
-
},
|
4445
|
-
schema: {
|
4446
|
-
dataType: 'string',
|
4447
|
-
interface: {
|
4448
|
-
type: AXPWidgetsCatalog.largeText,
|
4449
|
-
options: {
|
4450
|
-
rows: 4,
|
4451
|
-
},
|
4452
|
-
},
|
4453
|
-
},
|
4454
|
-
validations: [
|
4455
|
-
{
|
4456
|
-
rule: 'required',
|
4457
|
-
},
|
4458
|
-
],
|
4459
|
-
},
|
4460
|
-
{
|
4461
|
-
name: 'attachments',
|
4462
|
-
title: `t("${entityName}.attachments", { scope: "${i18n}" })`,
|
4463
|
-
groupId: 'section',
|
4464
|
-
options: {
|
4465
|
-
sort: {
|
4466
|
-
enabled: false,
|
4467
|
-
},
|
4468
|
-
filter: {
|
4469
|
-
advance: {
|
4470
|
-
enabled: false,
|
4471
|
-
},
|
4472
|
-
inline: {
|
4473
|
-
enabled: false,
|
4474
|
-
},
|
4475
|
-
},
|
4476
|
-
},
|
4477
|
-
schema: {
|
4478
|
-
dataType: 'array',
|
4479
|
-
interface: {
|
4480
|
-
type: AXPWidgetsCatalog.documentAttachment,
|
4481
|
-
options: {
|
4482
|
-
multiple: true,
|
4483
|
-
accept: '*/*',
|
4484
|
-
},
|
4485
|
-
},
|
4486
|
-
},
|
4487
|
-
},
|
4488
|
-
{
|
4489
|
-
name: 'createdAt',
|
4490
|
-
title: `t("${entityName}.created-at", { scope: "${i18n}" })`,
|
4491
|
-
groupId: 'section',
|
4492
|
-
options: {
|
4493
|
-
sort: {
|
4494
|
-
enabled: true,
|
4495
|
-
},
|
4496
|
-
filter: {
|
4497
|
-
advance: {
|
4498
|
-
enabled: true,
|
4499
|
-
},
|
4500
|
-
inline: {
|
4501
|
-
enabled: false,
|
4502
|
-
},
|
4503
|
-
},
|
4504
|
-
},
|
4505
|
-
schema: {
|
4506
|
-
dataType: 'date',
|
4507
|
-
interface: {
|
4508
|
-
type: AXPWidgetsCatalog.dateTime,
|
4509
|
-
options: {
|
4510
|
-
readonly: true,
|
4511
|
-
},
|
4512
|
-
},
|
4513
|
-
},
|
4514
|
-
},
|
4515
|
-
],
|
4516
|
-
columns: [
|
4517
|
-
{ name: 'issue-type' },
|
4518
|
-
{ name: 'priority' },
|
4519
|
-
{ name: 'title' },
|
4520
|
-
{ name: 'description' },
|
4521
|
-
{ name: 'attachments' },
|
4522
|
-
{ name: 'created-at' },
|
4523
|
-
],
|
4524
|
-
commands: {
|
4525
|
-
create: {
|
4526
|
-
execute: async (data) => {
|
4527
|
-
data.createdAt = new Date();
|
4528
|
-
const res = await dataService.insertOne(data);
|
4529
|
-
return { id: res };
|
4530
|
-
},
|
4531
|
-
},
|
4532
|
-
delete: {
|
4533
|
-
execute: async (id) => {
|
4534
|
-
return await dataService.deleteOne(id);
|
4535
|
-
},
|
4536
|
-
},
|
4537
|
-
update: {
|
4538
|
-
execute: async (data) => {
|
4539
|
-
return await dataService.updateOne(data.id, data);
|
4540
|
-
},
|
4541
|
-
},
|
4542
|
-
},
|
4543
|
-
queries: {
|
4544
|
-
byKey: {
|
4545
|
-
execute: async (id) => {
|
4546
|
-
return await dataService.getOne(id);
|
4547
|
-
},
|
4548
|
-
type: AXPEntityQueryType.Single,
|
4549
|
-
},
|
4550
|
-
list: {
|
4551
|
-
execute: async (e) => {
|
4552
|
-
return await reportedIssueDataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
4553
|
-
},
|
4554
|
-
type: AXPEntityQueryType.List,
|
4555
|
-
},
|
4556
|
-
},
|
4557
|
-
interfaces: {
|
4558
|
-
master: {
|
4559
|
-
create: {
|
4560
|
-
sections: [
|
4561
|
-
{
|
4562
|
-
id: 'section',
|
4563
|
-
},
|
4564
|
-
],
|
4565
|
-
properties: [
|
4566
|
-
{
|
4567
|
-
name: 'issue-type',
|
4568
|
-
layout: {
|
4569
|
-
positions: {
|
4570
|
-
lg: {
|
4571
|
-
colSpan: 6,
|
4572
|
-
order: 1,
|
4573
|
-
},
|
4574
|
-
},
|
4575
|
-
},
|
4576
|
-
},
|
4577
|
-
{
|
4578
|
-
name: 'priority',
|
4579
|
-
layout: {
|
4580
|
-
positions: {
|
4581
|
-
lg: {
|
4582
|
-
colSpan: 6,
|
4583
|
-
order: 2,
|
4584
|
-
},
|
4585
|
-
},
|
4586
|
-
},
|
4587
|
-
},
|
4588
|
-
{
|
4589
|
-
name: 'title',
|
4590
|
-
layout: {
|
4591
|
-
positions: {
|
4592
|
-
lg: {
|
4593
|
-
colSpan: 12,
|
4594
|
-
order: 3,
|
4595
|
-
},
|
4596
|
-
},
|
4597
|
-
},
|
4598
|
-
},
|
4599
|
-
{
|
4600
|
-
name: 'description',
|
4601
|
-
layout: {
|
4602
|
-
positions: {
|
4603
|
-
lg: {
|
4604
|
-
colSpan: 12,
|
4605
|
-
order: 4,
|
4606
|
-
},
|
4607
|
-
},
|
4608
|
-
},
|
4609
|
-
},
|
4610
|
-
{
|
4611
|
-
name: 'attachments',
|
4612
|
-
layout: {
|
4613
|
-
positions: {
|
4614
|
-
lg: {
|
4615
|
-
colSpan: 12,
|
4616
|
-
order: 5,
|
4617
|
-
},
|
4618
|
-
},
|
4619
|
-
},
|
4620
|
-
},
|
4621
|
-
],
|
4622
|
-
},
|
4623
|
-
update: {
|
4624
|
-
sections: [
|
4625
|
-
{
|
4626
|
-
id: 'section',
|
4627
|
-
},
|
4628
|
-
],
|
4629
|
-
properties: [
|
4630
|
-
{
|
4631
|
-
name: 'issue-type',
|
4632
|
-
layout: {
|
4633
|
-
positions: {
|
4634
|
-
lg: {
|
4635
|
-
colSpan: 6,
|
4636
|
-
order: 1,
|
4637
|
-
},
|
4638
|
-
},
|
4639
|
-
},
|
4640
|
-
},
|
4641
|
-
{
|
4642
|
-
name: 'priority',
|
4643
|
-
layout: {
|
4644
|
-
positions: {
|
4645
|
-
lg: {
|
4646
|
-
colSpan: 6,
|
4647
|
-
order: 2,
|
4648
|
-
},
|
4649
|
-
},
|
4650
|
-
},
|
4651
|
-
},
|
4652
|
-
{
|
4653
|
-
name: 'title',
|
4654
|
-
layout: {
|
4655
|
-
positions: {
|
4656
|
-
lg: {
|
4657
|
-
colSpan: 12,
|
4658
|
-
order: 3,
|
4659
|
-
},
|
4660
|
-
},
|
4661
|
-
},
|
4662
|
-
},
|
4663
|
-
{
|
4664
|
-
name: 'description',
|
4665
|
-
layout: {
|
4666
|
-
positions: {
|
4667
|
-
lg: {
|
4668
|
-
colSpan: 12,
|
4669
|
-
order: 4,
|
4670
|
-
},
|
4671
|
-
},
|
4672
|
-
},
|
4673
|
-
},
|
4674
|
-
{
|
4675
|
-
name: 'attachments',
|
4676
|
-
layout: {
|
4677
|
-
positions: {
|
4678
|
-
lg: {
|
4679
|
-
colSpan: 12,
|
4680
|
-
order: 5,
|
4681
|
-
},
|
4682
|
-
},
|
4683
|
-
},
|
4684
|
-
},
|
4685
|
-
{
|
4686
|
-
name: 'created-at',
|
4687
|
-
layout: {
|
4688
|
-
positions: {
|
4689
|
-
lg: {
|
4690
|
-
colSpan: 6,
|
4691
|
-
order: 6,
|
4692
|
-
},
|
4693
|
-
},
|
4694
|
-
},
|
4695
|
-
},
|
4696
|
-
],
|
4697
|
-
},
|
4698
|
-
single: {
|
4699
|
-
title: '{{title}}',
|
4700
|
-
sections: [
|
4701
|
-
{
|
4702
|
-
id: 'section',
|
4703
|
-
},
|
4704
|
-
],
|
4705
|
-
properties: [
|
4706
|
-
{
|
4707
|
-
name: 'issue-type',
|
4708
|
-
layout: {
|
4709
|
-
positions: {
|
4710
|
-
lg: {
|
4711
|
-
colSpan: 6,
|
4712
|
-
order: 1,
|
4713
|
-
},
|
4714
|
-
},
|
4715
|
-
},
|
4716
|
-
},
|
4717
|
-
{
|
4718
|
-
name: 'priority',
|
4719
|
-
layout: {
|
4720
|
-
positions: {
|
4721
|
-
lg: {
|
4722
|
-
colSpan: 6,
|
4723
|
-
order: 2,
|
4724
|
-
},
|
4725
|
-
},
|
4726
|
-
},
|
4727
|
-
},
|
4728
|
-
{
|
4729
|
-
name: 'title',
|
4730
|
-
layout: {
|
4731
|
-
positions: {
|
4732
|
-
lg: {
|
4733
|
-
colSpan: 12,
|
4734
|
-
order: 3,
|
4735
|
-
},
|
4736
|
-
},
|
4737
|
-
},
|
4738
|
-
},
|
4739
|
-
{
|
4740
|
-
name: 'description',
|
4741
|
-
layout: {
|
4742
|
-
positions: {
|
4743
|
-
lg: {
|
4744
|
-
colSpan: 12,
|
4745
|
-
order: 4,
|
4746
|
-
},
|
4747
|
-
},
|
4748
|
-
},
|
4749
|
-
},
|
4750
|
-
{
|
4751
|
-
name: 'attachments',
|
4752
|
-
layout: {
|
4753
|
-
positions: {
|
4754
|
-
lg: {
|
4755
|
-
colSpan: 12,
|
4756
|
-
order: 5,
|
4757
|
-
},
|
4758
|
-
},
|
4759
|
-
},
|
4760
|
-
},
|
4761
|
-
{
|
4762
|
-
name: 'created-at',
|
4763
|
-
layout: {
|
4764
|
-
positions: {
|
4765
|
-
lg: {
|
4766
|
-
colSpan: 6,
|
4767
|
-
order: 6,
|
4768
|
-
},
|
4769
|
-
},
|
4770
|
-
},
|
4771
|
-
},
|
4772
|
-
],
|
4773
|
-
actions: [],
|
4774
|
-
},
|
4775
|
-
list: {
|
4776
|
-
actions: [
|
4777
|
-
{
|
4778
|
-
title: `t("create", { scope: "common" })`,
|
4779
|
-
command: 'show-report-issue',
|
4780
|
-
priority: 'primary',
|
4781
|
-
type: 'create',
|
4782
|
-
scope: AXPEntityCommandScope.TypeLevel,
|
4783
|
-
},
|
4784
|
-
{
|
4785
|
-
title: 't("deleteItems", { scope: "common" })',
|
4786
|
-
command: 'delete-entity',
|
4787
|
-
priority: 'primary',
|
4788
|
-
type: 'delete',
|
4789
|
-
scope: AXPEntityCommandScope.Selected,
|
4790
|
-
},
|
4791
|
-
{
|
4792
|
-
title: 't("detail", { scope: "common" })',
|
4793
|
-
command: 'open-entity',
|
4794
|
-
priority: 'secondary',
|
4795
|
-
type: 'view',
|
4796
|
-
scope: AXPEntityCommandScope.Individual,
|
4797
|
-
},
|
4798
|
-
{
|
4799
|
-
title: 't("delete", { scope: "common" })',
|
4800
|
-
command: 'delete-entity',
|
4801
|
-
priority: 'secondary',
|
4802
|
-
type: 'delete',
|
4803
|
-
scope: AXPEntityCommandScope.Individual,
|
4804
|
-
},
|
4805
|
-
],
|
4806
|
-
views: [
|
4807
|
-
createAllQueryView({
|
4808
|
-
sorts: [{ name: 'name', dir: 'asc' }],
|
4809
|
-
}),
|
4810
|
-
],
|
4811
|
-
},
|
4812
|
-
},
|
4813
|
-
},
|
4814
|
-
};
|
4815
|
-
return entityDef;
|
4816
|
-
}
|
4817
|
-
|
4818
|
-
class AXMAppPromotionService extends AXMEntityCrudServiceImpl {
|
4819
|
-
}
|
4820
|
-
class AXMPromotionServiceImpl extends AXMEntityCrudServiceImpl {
|
4821
|
-
constructor() {
|
4822
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.promotion.name}`);
|
4823
|
-
}
|
4824
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4825
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl }); }
|
4826
|
-
}
|
4827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, decorators: [{
|
4828
|
-
type: Injectable
|
4829
|
-
}], ctorParameters: () => [] });
|
4830
|
-
|
4831
|
-
class AXMPromotionSlotComponent {
|
4832
|
-
constructor() {
|
4833
|
-
this.notificationChannelService = inject(AXMAppPromotionService);
|
4834
|
-
this.listData = signal([]);
|
4835
|
-
this.fileStorage = inject(AXPFileStorageService);
|
4836
|
-
}
|
4837
|
-
async ngOnInit() {
|
4838
|
-
const channels = await this.notificationChannelService.query({
|
4839
|
-
skip: 0,
|
4840
|
-
take: 10000,
|
4841
|
-
// filter: {
|
4842
|
-
// field: 'type',
|
4843
|
-
// operator: { type: 'equal' },
|
4844
|
-
// value: 'promotion',
|
4845
|
-
// },
|
4846
|
-
});
|
4847
|
-
const filteredItems = channels.items.filter((x) => x.placement?.name == this.location);
|
4848
|
-
const mappedItems = await Promise.all(filteredItems.map(async (item) => {
|
4849
|
-
if (item.imageId != null) {
|
4850
|
-
const image = await this.fileStorage.getInfo(item.imageId);
|
4851
|
-
return {
|
4852
|
-
...item,
|
4853
|
-
image: image,
|
4854
|
-
};
|
4855
|
-
}
|
4856
|
-
else {
|
4857
|
-
return item;
|
4858
|
-
}
|
4859
|
-
}));
|
4860
|
-
this.listData.set(mappedItems);
|
4861
|
-
}
|
4862
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
4863
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMPromotionSlotComponent, isStandalone: true, selector: "acorex-platform-promotion-slot", ngImport: i0, template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
4864
|
-
}
|
4865
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, decorators: [{
|
4866
|
-
type: Component,
|
4867
|
-
args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n" }]
|
4868
|
-
}] });
|
4869
|
-
|
4870
|
-
async function promotionEntityFactory(injector) {
|
4871
|
-
const dataService = injector.get(AXMAppPromotionService);
|
4872
|
-
const i18n = RootConfig.config.i18n;
|
4873
|
-
const entityDef = {
|
4874
|
-
module: RootConfig.module.name,
|
4875
|
-
name: RootConfig.entities.promotion.name,
|
4876
|
-
source: '',
|
4877
|
-
title: RootConfig.entities.promotion.title,
|
4878
|
-
formats: {
|
4879
|
-
individual: RootConfig.entities.promotion.title,
|
4880
|
-
plural: RootConfig.entities.promotion.titlePlural,
|
4881
|
-
searchResult: {
|
4882
|
-
title: '{{ title }}',
|
4883
|
-
description: RootConfig.module.title,
|
4884
|
-
},
|
4885
|
-
},
|
4886
|
-
relatedEntities: [],
|
4887
|
-
groups: [
|
4888
|
-
{
|
4889
|
-
id: 'promotion',
|
4890
|
-
title: 'Promotion',
|
4891
|
-
},
|
4892
|
-
],
|
4893
|
-
properties: [
|
4894
|
-
{
|
4895
|
-
name: 'id',
|
4896
|
-
title: 'ID',
|
4897
|
-
schema: {
|
4898
|
-
dataType: 'uuid',
|
4899
|
-
hidden: true,
|
4900
|
-
nullable: false,
|
4901
|
-
readonly: true,
|
4902
|
-
unique: {
|
4903
|
-
enabled: true,
|
4904
|
-
},
|
4905
|
-
},
|
4906
|
-
options: {
|
4907
|
-
sort: {
|
4908
|
-
enabled: true,
|
4909
|
-
},
|
4910
|
-
},
|
4911
|
-
},
|
4912
|
-
{
|
4913
|
-
name: 'title',
|
4914
|
-
title: `t("title", { scope: "common" })`,
|
4915
|
-
groupId: 'promotion',
|
4916
|
-
schema: {
|
4917
|
-
dataType: 'string',
|
4918
|
-
interface: {
|
4919
|
-
type: AXPWidgetsCatalog.text,
|
4920
|
-
},
|
4921
|
-
},
|
4922
|
-
options: {
|
4923
|
-
sort: {
|
4924
|
-
enabled: true,
|
4925
|
-
},
|
4926
|
-
filter: {
|
4927
|
-
advance: {
|
4928
|
-
enabled: true,
|
4929
|
-
},
|
4930
|
-
inline: {
|
4931
|
-
enabled: true,
|
4932
|
-
},
|
4933
|
-
},
|
4934
|
-
},
|
4935
|
-
validations: [
|
4936
|
-
{
|
4937
|
-
rule: 'required',
|
4938
|
-
},
|
4939
|
-
],
|
4940
|
-
},
|
4941
|
-
{
|
4942
|
-
name: 'body',
|
4943
|
-
title: `t("body", { scope: "${i18n}" })`,
|
4944
|
-
groupId: 'promotion',
|
4945
|
-
schema: {
|
4946
|
-
dataType: 'string',
|
4947
|
-
interface: {
|
4948
|
-
type: AXPWidgetsCatalog.richText,
|
4949
|
-
},
|
4950
|
-
},
|
4951
|
-
validations: [
|
4952
|
-
{
|
4953
|
-
rule: 'required',
|
4954
|
-
},
|
4955
|
-
],
|
4956
|
-
},
|
4957
|
-
{
|
4958
|
-
name: 'imageId',
|
4959
|
-
title: `t("Gallery", { scope: "${i18n}" })`,
|
4960
|
-
groupId: 'promotion',
|
4961
|
-
schema: {
|
4962
|
-
dataType: 'string',
|
4963
|
-
interface: {
|
4964
|
-
type: AXPWidgetsCatalog.documentAttachment,
|
4965
|
-
options: {
|
4966
|
-
multiple: true,
|
4967
|
-
entity: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
|
4968
|
-
record: '{{context.eval("id")}}',
|
4969
|
-
},
|
4970
|
-
},
|
4971
|
-
},
|
4972
|
-
},
|
4973
|
-
{
|
4974
|
-
name: 'contentType',
|
4975
|
-
title: `t("contentType", { scope: "${i18n}" })`,
|
4976
|
-
groupId: 'promotion',
|
4977
|
-
schema: {
|
4978
|
-
dataType: 'string',
|
4979
|
-
interface: {
|
4980
|
-
type: AXPWidgetsCatalog.select,
|
4981
|
-
options: {
|
4982
|
-
valueField: 'name',
|
4983
|
-
textField: 'title',
|
4984
|
-
dataSource: [
|
4985
|
-
{ title: 'Media', name: 'media' },
|
4986
|
-
{ title: 'Text', name: 'text' },
|
4987
|
-
],
|
4988
|
-
direction: 'horizontal',
|
4989
|
-
multiple: false,
|
3601
|
+
direction: 'horizontal',
|
3602
|
+
multiple: false,
|
4990
3603
|
},
|
4991
3604
|
},
|
4992
3605
|
},
|
@@ -5469,79 +4082,61 @@ var index = /*#__PURE__*/Object.freeze({
|
|
5469
4082
|
AXMDataSourceServiceImpl: AXMDataSourceServiceImpl,
|
5470
4083
|
AXMGlobalVariablesService: AXMGlobalVariablesService,
|
5471
4084
|
AXMGlobalVariablesServiceImpl: AXMGlobalVariablesServiceImpl,
|
5472
|
-
|
5473
|
-
|
4085
|
+
AXMGlossaryService: AXMGlossaryService,
|
4086
|
+
AXMGlossaryServiceImpl: AXMGlossaryServiceImpl,
|
5474
4087
|
AXMListTermsComponent: AXMListTermsComponent,
|
5475
4088
|
AXMMetaDataDefinitionCategoryService: AXMMetaDataDefinitionCategoryService,
|
5476
4089
|
AXMMetaDataDefinitionCategoryServiceImpl: AXMMetaDataDefinitionCategoryServiceImpl,
|
5477
4090
|
AXMMetaDataDefinitionService: AXMMetaDataDefinitionService,
|
5478
|
-
AXMMyReportedIssuesService: AXMMyReportedIssuesService,
|
5479
|
-
AXMMyReportedIssuesServiceImpl: AXMMyReportedIssuesServiceImpl,
|
5480
4091
|
AXMNewTermWorkflow: AXMNewTermWorkflow,
|
5481
4092
|
AXMNotifyAppComponent: AXMNotifyAppComponent,
|
5482
4093
|
AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
|
5483
4094
|
AXMPMetaDataDefinitionServiceImpl: AXMPMetaDataDefinitionServiceImpl,
|
5484
4095
|
AXMPromotionServiceImpl: AXMPromotionServiceImpl,
|
5485
4096
|
AXMPromotionSlotComponent: AXMPromotionSlotComponent,
|
5486
|
-
AXMReportedIssuesService: AXMReportedIssuesService,
|
5487
|
-
AXMReportedIssuesServiceImpl: AXMReportedIssuesServiceImpl,
|
5488
4097
|
AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
|
5489
4098
|
AXMWhatsNewWorkflow: AXMWhatsNewWorkflow,
|
5490
4099
|
appTermEntityEntityFactory: appTermEntityEntityFactory,
|
5491
4100
|
appVersionEntityEntityFactory: appVersionEntityEntityFactory,
|
5492
4101
|
dataSourceEntityFactory: dataSourceEntityFactory,
|
5493
4102
|
globalVariableEntityFactory: globalVariableEntityFactory,
|
5494
|
-
|
4103
|
+
glossaryEntityFactory: glossaryEntityFactory,
|
5495
4104
|
metaDataDefinitionCategoryEntityFactory: metaDataDefinitionCategoryEntityFactory,
|
5496
4105
|
metaDataDefinitionFactory: metaDataDefinitionFactory,
|
5497
|
-
|
5498
|
-
promotionEntityFactory: promotionEntityFactory,
|
5499
|
-
reportedIssuesEntityFactory: reportedIssuesEntityFactory
|
4106
|
+
promotionEntityFactory: promotionEntityFactory
|
5500
4107
|
});
|
5501
4108
|
|
5502
|
-
class AXMCommonModuleEntityProvider {
|
5503
|
-
constructor() {
|
5504
|
-
this.injector = inject(Injector);
|
5505
|
-
}
|
5506
|
-
async get(moduleName, entityName) {
|
5507
|
-
return new Promise(async (resolve) => {
|
5508
|
-
switch (entityName) {
|
5509
|
-
default:
|
5510
|
-
resolve(null);
|
5511
|
-
}
|
5512
|
-
});
|
5513
|
-
}
|
5514
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCommonModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
5515
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCommonModuleEntityProvider }); }
|
5516
|
-
}
|
5517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCommonModuleEntityProvider, decorators: [{
|
5518
|
-
type: Injectable
|
5519
|
-
}] });
|
5520
|
-
|
5521
4109
|
const path = 'regional:';
|
5522
4110
|
var AXPRegionalSetting;
|
5523
4111
|
(function (AXPRegionalSetting) {
|
4112
|
+
AXPRegionalSetting["LocaleProfile"] = "regional:locale-profile";
|
5524
4113
|
AXPRegionalSetting["TimeZone"] = "regional:timezone";
|
5525
4114
|
AXPRegionalSetting["Language"] = "regional:language";
|
5526
4115
|
AXPRegionalSetting["Country"] = "regional:country";
|
5527
|
-
AXPRegionalSetting["Regional"] = "regional:regional";
|
5528
4116
|
AXPRegionalSetting["Calendar"] = "regional:calendar";
|
5529
4117
|
AXPRegionalSetting["FirstDayOfWeek"] = "regional:first-day-of-week";
|
5530
|
-
AXPRegionalSetting["
|
4118
|
+
AXPRegionalSetting["WeekendDays"] = "regional:weekend-days";
|
5531
4119
|
AXPRegionalSetting["ShortDate"] = "regional:short-date";
|
5532
4120
|
AXPRegionalSetting["LongDate"] = "regional:long-date";
|
5533
4121
|
AXPRegionalSetting["ShortTime"] = "regional:short-time";
|
5534
4122
|
AXPRegionalSetting["LongTime"] = "regional:long-time";
|
5535
4123
|
AXPRegionalSetting["MeasurementUnits"] = "regional:measurement-units";
|
5536
4124
|
AXPRegionalSetting["TemperatureUnits"] = "regional:temperature-units";
|
4125
|
+
AXPRegionalSetting["DistanceUnits"] = "regional:distance-units";
|
4126
|
+
AXPRegionalSetting["WeightUnits"] = "regional:weight-units";
|
4127
|
+
AXPRegionalSetting["VolumeUnits"] = "regional:volume-units";
|
4128
|
+
AXPRegionalSetting["SpeedUnits"] = "regional:speed-units";
|
4129
|
+
AXPRegionalSetting["AreaUnits"] = "regional:area-units";
|
5537
4130
|
})(AXPRegionalSetting || (AXPRegionalSetting = {}));
|
5538
4131
|
|
5539
|
-
//
|
4132
|
+
// Regional Store - Manages regional settings and system changes
|
5540
4133
|
const AXPRegionalStoreService = signalStore({ providedIn: 'root' },
|
5541
4134
|
// Initial State
|
5542
|
-
withState((
|
4135
|
+
withState((localeService = inject(AXLocaleService)) => {
|
5543
4136
|
const state = {
|
5544
|
-
|
4137
|
+
profile: localeService.activeProfile().localeInfo.code,
|
4138
|
+
language: localeService.activeProfile().localeInfo.language,
|
4139
|
+
calendar: localeService.activeProfile().calendar.system,
|
5545
4140
|
};
|
5546
4141
|
return state;
|
5547
4142
|
}),
|
@@ -5549,30 +4144,54 @@ withState((translationService = inject(AXTranslationService)) => {
|
|
5549
4144
|
// withComputed(({ }) => ({
|
5550
4145
|
// })),
|
5551
4146
|
// Methods for State Management
|
5552
|
-
withMethods((store, settingService = inject(AXPSettingService),
|
4147
|
+
withMethods((store, settingService = inject(AXPSettingService), localeService = inject(AXLocaleService), calendarService = inject(AXCalendarService), translateService = inject(AXTranslationService)) => {
|
4148
|
+
const applyChanges = async () => {
|
4149
|
+
const profile = localeService.activeProfile();
|
4150
|
+
const html = document.getElementsByTagName('html')[0];
|
4151
|
+
profile.i18nMeta?.rtl ? html.setAttribute('dir', 'rtl') : html.removeAttribute('dir');
|
4152
|
+
};
|
5553
4153
|
return {
|
5554
|
-
async
|
5555
|
-
|
5556
|
-
|
5557
|
-
|
4154
|
+
async changeProfile(profileCode) {
|
4155
|
+
await localeService.setProfile(profileCode);
|
4156
|
+
const profile = localeService.activeProfile();
|
4157
|
+
//
|
4158
|
+
if (store.profile() != profile.localeInfo.code) {
|
4159
|
+
settingService.scope(AXPPlatformScope.User).set(AXPRegionalSetting.LocaleProfile, profile.localeInfo.code);
|
4160
|
+
settingService.scope(AXPPlatformScope.User).set(AXPRegionalSetting.Language, profile.localeInfo.code);
|
4161
|
+
patchState(store, { profile: profile.localeInfo.code });
|
5558
4162
|
}
|
5559
|
-
|
5560
|
-
|
5561
|
-
const html = document.getElementsByTagName('html')[0];
|
5562
|
-
reg?.layout == 'rtl' ? html.setAttribute('dir', 'rtl') : html.removeAttribute('dir');
|
4163
|
+
//
|
4164
|
+
await applyChanges();
|
5563
4165
|
},
|
5564
4166
|
async loadSetting() {
|
5565
|
-
const
|
5566
|
-
|
4167
|
+
const profileCode = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.LocaleProfile));
|
4168
|
+
patchState(store, { profile: profileCode });
|
4169
|
+
await localeService.setProfile(profileCode);
|
4170
|
+
//
|
4171
|
+
// delay to ensure the profile is set and override the default
|
4172
|
+
setTimeout(async () => {
|
4173
|
+
const calendar = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.Calendar));
|
4174
|
+
patchState(store, { calendar: calendar });
|
4175
|
+
calendarService.setActiveCalendar(calendar);
|
4176
|
+
//
|
4177
|
+
const language = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.Language));
|
4178
|
+
patchState(store, { language: language });
|
4179
|
+
translateService.setActiveLang(language);
|
4180
|
+
//
|
4181
|
+
await applyChanges();
|
4182
|
+
});
|
5567
4183
|
//
|
5568
|
-
const calendar = (await settingService.get(AXPRegionalSetting.Calendar)) ?? calendarService.getDefaultCalendar();
|
5569
|
-
calendarService.setActiveCalendar(calendar);
|
5570
4184
|
},
|
5571
4185
|
};
|
5572
|
-
}), withHooks((store, settingService = inject(AXPSettingService)) => ({
|
4186
|
+
}), withHooks((store, settingService = inject(AXPSettingService), translateService = inject(AXTranslationService)) => ({
|
5573
4187
|
onInit() {
|
5574
4188
|
settingService.onChanged.subscribe(async (setting) => {
|
5575
|
-
const keys = [
|
4189
|
+
const keys = [
|
4190
|
+
AXPRegionalSetting.LocaleProfile,
|
4191
|
+
AXPRegionalSetting.Language,
|
4192
|
+
AXPRegionalSetting.Calendar
|
4193
|
+
];
|
4194
|
+
//
|
5576
4195
|
if (keys.some(k => setting.keys.includes(k))) {
|
5577
4196
|
await store.loadSetting();
|
5578
4197
|
}
|
@@ -5588,15 +4207,15 @@ class AXMLanguageSlotComponent {
|
|
5588
4207
|
this.items = signal([]);
|
5589
4208
|
}
|
5590
4209
|
async ngOnInit() {
|
5591
|
-
const items = await this.regionalService.
|
4210
|
+
const items = await this.regionalService.getLocaleProfiles();
|
5592
4211
|
this.items.set(items);
|
5593
4212
|
}
|
5594
4213
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
5595
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item
|
4214
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>\n", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i3$1.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3$1.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: CommonModule }] }); }
|
5596
4215
|
}
|
5597
4216
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
|
5598
4217
|
type: Component,
|
5599
|
-
args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule, CommonModule], template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item
|
4218
|
+
args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule, CommonModule], template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>\n" }]
|
5600
4219
|
}] });
|
5601
4220
|
|
5602
4221
|
class AXPRegionalWidgetDataSourceProvider {
|
@@ -5815,25 +4434,21 @@ class AXMPlatformManagementCommonModule {
|
|
5815
4434
|
const service = injector.get(AXPRegionalStoreService);
|
5816
4435
|
appInitService.registerTask({
|
5817
4436
|
name: 'Settings',
|
5818
|
-
statusText: '
|
4437
|
+
statusText: 'Apply Regional Settings ...',
|
4438
|
+
priority: 2,
|
5819
4439
|
run: async () => {
|
5820
4440
|
await service.loadSetting();
|
5821
4441
|
}
|
5822
4442
|
});
|
5823
4443
|
}
|
5824
4444
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, deps: [{ token: i1$2.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
5825
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, imports: [
|
4445
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, imports: [i2$2.AXPComponentSlotModule] }); }
|
5826
4446
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, providers: [
|
5827
|
-
{
|
5828
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
5829
|
-
useClass: AXMCommonModuleEntityProvider,
|
5830
|
-
multi: true,
|
5831
|
-
},
|
5832
4447
|
{
|
5833
4448
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
5834
4449
|
useFactory: async () => {
|
5835
4450
|
const injector = inject(Injector);
|
5836
|
-
const provider = (await import('./acorex-modules-platform-management-settings.provider-
|
4451
|
+
const provider = (await import('./acorex-modules-platform-management-settings.provider-W71pfOmi.mjs')).AXMRegionalSettingProvider;
|
5837
4452
|
return new provider(injector);
|
5838
4453
|
},
|
5839
4454
|
multi: true
|
@@ -5868,16 +4483,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
5868
4483
|
exports: [],
|
5869
4484
|
declarations: [],
|
5870
4485
|
providers: [
|
5871
|
-
{
|
5872
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
5873
|
-
useClass: AXMCommonModuleEntityProvider,
|
5874
|
-
multi: true,
|
5875
|
-
},
|
5876
4486
|
{
|
5877
4487
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
5878
4488
|
useFactory: async () => {
|
5879
4489
|
const injector = inject(Injector);
|
5880
|
-
const provider = (await import('./acorex-modules-platform-management-settings.provider-
|
4490
|
+
const provider = (await import('./acorex-modules-platform-management-settings.provider-W71pfOmi.mjs')).AXMRegionalSettingProvider;
|
5881
4491
|
return new provider(injector);
|
5882
4492
|
},
|
5883
4493
|
multi: true
|
@@ -5956,18 +4566,8 @@ class AXMEntityLoader {
|
|
5956
4566
|
if (moduleName == RootConfig.module.name) {
|
5957
4567
|
return new Promise(async (resolve) => {
|
5958
4568
|
switch (entityName) {
|
5959
|
-
case RootConfig.entities.
|
5960
|
-
const entity = (await Promise.resolve().then(function () { return index; })).
|
5961
|
-
resolve(entity(this.injector));
|
5962
|
-
break;
|
5963
|
-
}
|
5964
|
-
case RootConfig.entities.reportedIssues.name: {
|
5965
|
-
const entity = (await Promise.resolve().then(function () { return index; })).reportedIssuesEntityFactory;
|
5966
|
-
resolve(entity(this.injector));
|
5967
|
-
break;
|
5968
|
-
}
|
5969
|
-
case RootConfig.entities.myReportedIssues.name: {
|
5970
|
-
const entity = (await Promise.resolve().then(function () { return index; })).myReportedIssuesEntityFactory;
|
4569
|
+
case RootConfig.entities.glossary.name: {
|
4570
|
+
const entity = (await Promise.resolve().then(function () { return index; })).glossaryEntityFactory;
|
5971
4571
|
resolve(entity(this.injector));
|
5972
4572
|
break;
|
5973
4573
|
}
|
@@ -6017,571 +4617,170 @@ class AXMEntityLoader {
|
|
6017
4617
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityLoader }); }
|
6018
4618
|
}
|
6019
4619
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityLoader, decorators: [{
|
6020
|
-
type: Injectable
|
6021
|
-
}] });
|
6022
|
-
|
6023
|
-
class AppTermsCheckService {
|
6024
|
-
constructor() {
|
6025
|
-
this.settingsService = inject(AXPSettingService);
|
6026
|
-
this.workflowService = inject(AXPWorkflowService);
|
6027
|
-
this.appTermService = inject(AXMAppTermService);
|
6028
|
-
this.appInitService = inject(AXPAppStartUpService);
|
6029
|
-
this.sessionService = inject(AXPSessionService);
|
6030
|
-
this.appInitService.registerTask({
|
6031
|
-
name: 'Terms',
|
6032
|
-
statusText: 'Check New Terms And Conditions...',
|
6033
|
-
run: async () => {
|
6034
|
-
this.sessionService.application$.subscribe(async (app) => {
|
6035
|
-
if (app != null) {
|
6036
|
-
const filterTerms = [];
|
6037
|
-
const terms = await this.appTermService.query();
|
6038
|
-
for (const term of terms.items) {
|
6039
|
-
const isConfirm = await this.settingsService
|
6040
|
-
.scope(AXPPlatformScope.User)
|
6041
|
-
.get(`is-confirm-term-${term.id}`);
|
6042
|
-
if (!isConfirm) {
|
6043
|
-
filterTerms.push(term);
|
6044
|
-
}
|
6045
|
-
}
|
6046
|
-
if (filterTerms.length > 0) {
|
6047
|
-
setTimeout(() => {
|
6048
|
-
this.workflowService.execute('new-term', filterTerms);
|
6049
|
-
}, 500);
|
6050
|
-
}
|
6051
|
-
}
|
6052
|
-
});
|
6053
|
-
},
|
6054
|
-
});
|
6055
|
-
}
|
6056
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6057
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService }); }
|
6058
|
-
}
|
6059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, decorators: [{
|
6060
|
-
type: Injectable
|
6061
|
-
}], ctorParameters: () => [] });
|
6062
|
-
|
6063
|
-
class AppVersionCheckService {
|
6064
|
-
constructor() {
|
6065
|
-
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
6066
|
-
this.settingsService = inject(AXPSettingService);
|
6067
|
-
this.workflowService = inject(AXPWorkflowService);
|
6068
|
-
this.appVersionService = inject(AXMAppVersionService);
|
6069
|
-
this.appInitService = inject(AXPAppStartUpService);
|
6070
|
-
this.sessionService = inject(AXPSessionService);
|
6071
|
-
this.appInitService.registerTask({
|
6072
|
-
name: 'Version',
|
6073
|
-
statusText: 'Check New Version...',
|
6074
|
-
run: async () => {
|
6075
|
-
this.sessionService.application$.subscribe(async (app) => {
|
6076
|
-
const current = (await this.versionProvider.provider()).version;
|
6077
|
-
const initVersion = await this.settingsService.scope(AXPPlatformScope.User).get(`init-application-version`);
|
6078
|
-
if (initVersion == null) {
|
6079
|
-
await this.settingsService.scope(AXPPlatformScope.User).set(`init-application-version`, current);
|
6080
|
-
}
|
6081
|
-
else {
|
6082
|
-
if (app != null) {
|
6083
|
-
const versions = await this.appVersionService.query();
|
6084
|
-
for (const v of versions.items) {
|
6085
|
-
if (v.versionNumber == current && v.versionNumber != initVersion) {
|
6086
|
-
const isSee = await this.settingsService
|
6087
|
-
.scope(AXPPlatformScope.User)
|
6088
|
-
.get(`is-see-check-version-${v.versionNumber}`);
|
6089
|
-
if (!isSee) {
|
6090
|
-
setTimeout(() => {
|
6091
|
-
this.workflowService.execute('show-what-is-new', v);
|
6092
|
-
}, 300);
|
6093
|
-
}
|
6094
|
-
}
|
6095
|
-
}
|
6096
|
-
}
|
6097
|
-
}
|
6098
|
-
});
|
6099
|
-
},
|
6100
|
-
});
|
6101
|
-
}
|
6102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6103
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService }); }
|
6104
|
-
}
|
6105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, decorators: [{
|
6106
|
-
type: Injectable
|
6107
|
-
}], ctorParameters: () => [] });
|
6108
|
-
|
6109
|
-
class AXMShowReleaseNotesPopupAction extends AXPWorkflowAction {
|
6110
|
-
constructor() {
|
6111
|
-
super(...arguments);
|
6112
|
-
this.popupService = inject(AXPopupService);
|
6113
|
-
}
|
6114
|
-
async execute(context) {
|
6115
|
-
const scope = RootConfig.config.i18n;
|
6116
|
-
const comp = await (await import('./acorex-modules-platform-management-list-version.component-SLcO7Tof.mjs')).AXMListVersionComponent;
|
6117
|
-
this.popupService.open(comp, {
|
6118
|
-
title: `t('release-notes',{scope: "${scope}"})`,
|
6119
|
-
});
|
6120
|
-
}
|
6121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
6122
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction }); }
|
6123
|
-
}
|
6124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, decorators: [{
|
6125
|
-
type: Injectable
|
6126
|
-
}] });
|
6127
|
-
const AXMShowReleaseNotesWorkflow = {
|
6128
|
-
startStepId: 'show-popup',
|
6129
|
-
steps: {
|
6130
|
-
'show-popup': {
|
6131
|
-
action: 'AXMShowReleaseNotesPopupAction',
|
6132
|
-
},
|
6133
|
-
},
|
6134
|
-
};
|
6135
|
-
|
6136
|
-
const AXMCaptureScreenService = signalStore({ providedIn: 'root' }, withState(() => {
|
6137
|
-
const state = {
|
6138
|
-
loading: false,
|
6139
|
-
captureMode: 'screenshot',
|
6140
|
-
screenshotBlob: '',
|
6141
|
-
videoBlob: '',
|
6142
|
-
muted: false,
|
6143
|
-
isRecording: false,
|
6144
|
-
timer: {
|
6145
|
-
second: 0,
|
6146
|
-
minute: 0,
|
6147
|
-
},
|
6148
|
-
onFinish: undefined,
|
6149
|
-
};
|
6150
|
-
return state;
|
6151
|
-
}), withMethods((store) => {
|
6152
|
-
let interval;
|
6153
|
-
let videoStream;
|
6154
|
-
let audioStream;
|
6155
|
-
let mediaRecorder;
|
6156
|
-
let recordedChunks = [];
|
6157
|
-
let componentRef;
|
6158
|
-
const toastService = inject(AXToastService);
|
6159
|
-
const translationService = inject(AXTranslationService);
|
6160
|
-
const application = inject(ApplicationRef);
|
6161
|
-
const stopRecorderSubject = new Subject();
|
6162
|
-
const recordStream = async () => {
|
6163
|
-
mediaRecorder = await new MediaRecorder(videoStream, {
|
6164
|
-
mimeType: 'video/mp4',
|
6165
|
-
});
|
6166
|
-
patchState(store, { isRecording: true });
|
6167
|
-
mediaRecorder.start();
|
6168
|
-
startTimer();
|
6169
|
-
mediaRecorder.ondataavailable = (e) => {
|
6170
|
-
recordedChunks.push(e.data);
|
6171
|
-
};
|
6172
|
-
mediaRecorder.onstop = () => {
|
6173
|
-
stopRecorder();
|
6174
|
-
};
|
6175
|
-
videoStream.getVideoTracks()[0].onended = () => {
|
6176
|
-
stopRecorder();
|
6177
|
-
};
|
6178
|
-
};
|
6179
|
-
const finishRecording = async (result) => {
|
6180
|
-
if (store.onFinish() && result) {
|
6181
|
-
store.onFinish()?.(result);
|
6182
|
-
}
|
6183
|
-
resetState();
|
6184
|
-
componentRef.destroy();
|
6185
|
-
};
|
6186
|
-
const stopRecorder = async () => {
|
6187
|
-
stopRecorderSubject.pipe(take(1)).subscribe(async () => {
|
6188
|
-
try {
|
6189
|
-
if (mediaRecorder && videoStream?.active) {
|
6190
|
-
await mediaRecorder.stop();
|
6191
|
-
if (audioStream) {
|
6192
|
-
audioStream.getTracks().forEach((track) => track.stop());
|
6193
|
-
}
|
6194
|
-
videoStream.getVideoTracks().forEach((track) => track.stop());
|
6195
|
-
clearInterval(interval);
|
6196
|
-
patchState(store, { isRecording: false, timer: { second: 0, minute: 0 } });
|
6197
|
-
setTimeout(() => {
|
6198
|
-
createVideoBlob();
|
6199
|
-
});
|
6200
|
-
}
|
6201
|
-
}
|
6202
|
-
catch (error) {
|
6203
|
-
console.error('Error stopping recorder:', error);
|
6204
|
-
finishRecording(null);
|
6205
|
-
}
|
6206
|
-
});
|
6207
|
-
stopRecorderSubject.next();
|
6208
|
-
};
|
6209
|
-
const createVideoBlob = () => {
|
6210
|
-
try {
|
6211
|
-
if (recordedChunks.length > 0) {
|
6212
|
-
const blob = new Blob(recordedChunks, {
|
6213
|
-
type: recordedChunks[0].type,
|
6214
|
-
});
|
6215
|
-
finishRecording({ blob, type: 'video' });
|
6216
|
-
}
|
6217
|
-
}
|
6218
|
-
catch (error) {
|
6219
|
-
console.error('Error creating video blob:', error);
|
6220
|
-
finishRecording(null);
|
6221
|
-
}
|
6222
|
-
};
|
6223
|
-
const startTimer = () => {
|
6224
|
-
interval = setInterval(() => {
|
6225
|
-
if (store.timer().minute === 5) {
|
6226
|
-
stopRecorder();
|
6227
|
-
setTimeout(async () => {
|
6228
|
-
toastService.show({
|
6229
|
-
color: 'warning',
|
6230
|
-
content: await translationService.translateAsync('issue.recording-time-limit', {
|
6231
|
-
scope: 'platform-management',
|
6232
|
-
}),
|
6233
|
-
timeOut: 5000,
|
6234
|
-
});
|
6235
|
-
}, 100);
|
6236
|
-
}
|
6237
|
-
else if (store.timer().second === 59) {
|
6238
|
-
patchState(store, { timer: { minute: ++store.timer().minute, second: 0 } });
|
6239
|
-
}
|
6240
|
-
else {
|
6241
|
-
patchState(store, { timer: { minute: store.timer().minute, second: ++store.timer().second } });
|
6242
|
-
}
|
6243
|
-
}, 1000);
|
6244
|
-
};
|
6245
|
-
const resetState = () => {
|
6246
|
-
patchState(store, {
|
6247
|
-
loading: false,
|
6248
|
-
captureMode: 'screenshot',
|
6249
|
-
screenshotBlob: '',
|
6250
|
-
videoBlob: '',
|
6251
|
-
muted: false,
|
6252
|
-
isRecording: false,
|
6253
|
-
timer: {
|
6254
|
-
second: 0,
|
6255
|
-
minute: 0,
|
6256
|
-
},
|
6257
|
-
onFinish: undefined,
|
6258
|
-
});
|
6259
|
-
};
|
6260
|
-
return {
|
6261
|
-
init: async (onFinish) => {
|
6262
|
-
try {
|
6263
|
-
const { AXMCaptureScreenComponent } = await import('./acorex-modules-platform-management-capture-screen.component-DN1Jnp7_.mjs');
|
6264
|
-
const viewContainerRef = application.components[0].injector.get(ViewContainerRef);
|
6265
|
-
componentRef = viewContainerRef.createComponent(AXMCaptureScreenComponent);
|
6266
|
-
document.body.appendChild(componentRef.location.nativeElement);
|
6267
|
-
patchState(store, { onFinish });
|
6268
|
-
}
|
6269
|
-
catch (error) {
|
6270
|
-
console.error('Error initializing capture screen:', error);
|
6271
|
-
onFinish?.({ blob: new Blob(), type: 'image' });
|
6272
|
-
}
|
6273
|
-
},
|
6274
|
-
cancelClick() {
|
6275
|
-
if (store.isRecording()) {
|
6276
|
-
stopRecorder();
|
6277
|
-
return;
|
6278
|
-
}
|
6279
|
-
this.changeCaptureMode();
|
6280
|
-
finishRecording(null);
|
6281
|
-
},
|
6282
|
-
changeCaptureMode() {
|
6283
|
-
patchState(store, {
|
6284
|
-
captureMode: store.captureMode() === 'screenshot' ? 'video' : 'screenshot',
|
6285
|
-
});
|
6286
|
-
},
|
6287
|
-
async mutedClick() {
|
6288
|
-
const enabled = store.muted();
|
6289
|
-
if (audioStream) {
|
6290
|
-
audioStream.getTracks().forEach((track) => (track.enabled = enabled));
|
6291
|
-
}
|
6292
|
-
patchState(store, { muted: !enabled });
|
6293
|
-
},
|
6294
|
-
screenshotClick() {
|
6295
|
-
patchState(store, { loading: true });
|
6296
|
-
const captureElement = document.getElementsByTagName('body')[0];
|
6297
|
-
html2canvas(captureElement)
|
6298
|
-
.then(async (canvas) => {
|
6299
|
-
try {
|
6300
|
-
const blob = await new Promise((resolve, reject) => {
|
6301
|
-
canvas.toBlob((blob) => (blob ? resolve(blob) : reject(new Error('Failed to create blob'))), 'image/png');
|
6302
|
-
});
|
6303
|
-
finishRecording({ blob, type: 'image' });
|
6304
|
-
}
|
6305
|
-
catch (error) {
|
6306
|
-
console.error('Error creating screenshot:', error);
|
6307
|
-
finishRecording(null);
|
6308
|
-
}
|
6309
|
-
})
|
6310
|
-
.catch((error) => {
|
6311
|
-
console.error('Error capturing screenshot:', error);
|
6312
|
-
finishRecording(null);
|
6313
|
-
})
|
6314
|
-
.finally(() => {
|
6315
|
-
patchState(store, { loading: false });
|
6316
|
-
});
|
6317
|
-
},
|
6318
|
-
async recordScreenClick() {
|
6319
|
-
if (!store.isRecording() && !videoStream?.active) {
|
6320
|
-
try {
|
6321
|
-
videoStream = await navigator.mediaDevices.getDisplayMedia({
|
6322
|
-
video: { displaySurface: 'monitor' },
|
6323
|
-
audio: true,
|
6324
|
-
});
|
6325
|
-
await this.getMicrophonePermission();
|
6326
|
-
await recordStream();
|
6327
|
-
}
|
6328
|
-
catch (error) {
|
6329
|
-
console.error('Error starting screen recording:', error);
|
6330
|
-
toastService.show({
|
6331
|
-
color: 'warning',
|
6332
|
-
content: await translationService.translateAsync('issue.capture-screen-error', {
|
6333
|
-
scope: 'platform-management',
|
6334
|
-
}),
|
6335
|
-
timeOut: 5000,
|
6336
|
-
});
|
6337
|
-
finishRecording(null);
|
6338
|
-
}
|
6339
|
-
}
|
6340
|
-
else if (mediaRecorder) {
|
6341
|
-
stopRecorder();
|
6342
|
-
}
|
6343
|
-
},
|
6344
|
-
async getMicrophonePermission() {
|
6345
|
-
try {
|
6346
|
-
audioStream = await navigator.mediaDevices.getUserMedia({
|
6347
|
-
audio: {
|
6348
|
-
echoCancellation: true,
|
6349
|
-
noiseSuppression: true,
|
6350
|
-
sampleRate: 44100,
|
6351
|
-
autoGainControl: true,
|
6352
|
-
},
|
6353
|
-
});
|
6354
|
-
if (audioStream && videoStream) {
|
6355
|
-
videoStream.addTrack(audioStream.getTracks()[0]);
|
6356
|
-
audioStream.getTracks()[0].enabled = !store.muted();
|
6357
|
-
}
|
6358
|
-
}
|
6359
|
-
catch (error) {
|
6360
|
-
console.error('Error getting microphone permission:', error);
|
6361
|
-
toastService.show({
|
6362
|
-
color: 'warning',
|
6363
|
-
content: await translationService.translateAsync('issue.get-microphone-error', {
|
6364
|
-
scope: 'platform-management',
|
6365
|
-
}),
|
6366
|
-
timeOut: 5000,
|
6367
|
-
});
|
6368
|
-
audioStream = null;
|
6369
|
-
}
|
6370
|
-
},
|
6371
|
-
};
|
6372
|
-
}));
|
6373
|
-
|
6374
|
-
const AXMReportNewIssueViewModel = signalStore({ providedIn: 'root' }, withState(() => {
|
6375
|
-
const state = {
|
6376
|
-
data: {
|
6377
|
-
title: '',
|
6378
|
-
description: '',
|
6379
|
-
issueType: {},
|
6380
|
-
priority: {},
|
6381
|
-
},
|
6382
|
-
status: 'new',
|
6383
|
-
media: [],
|
6384
|
-
};
|
6385
|
-
return state;
|
6386
|
-
}), withComputed(({ status }) => ({
|
6387
|
-
isRecording: computed(() => status() === 'recording'),
|
6388
|
-
})), withMethods((store, popupService = inject(AXPopupService), captureScreenService = inject(AXMCaptureScreenService), eventService = inject(AXPWorkflowEventService)) => {
|
6389
|
-
const createMediaItem = (mediaUrl, type) => ({
|
6390
|
-
id: (store.media().length + 1).toString(),
|
6391
|
-
name: new Date().toISOString(),
|
6392
|
-
type,
|
6393
|
-
thumbnail: mediaUrl,
|
6394
|
-
url: mediaUrl,
|
6395
|
-
});
|
6396
|
-
return {
|
6397
|
-
async startCapturing() {
|
6398
|
-
patchState(store, { status: 'recording' });
|
6399
|
-
captureScreenService.init(async (data) => {
|
6400
|
-
try {
|
6401
|
-
if (typeof data === 'object' && 'blob' in data) {
|
6402
|
-
const mediaUrl = await URL.createObjectURL(data.blob);
|
6403
|
-
const newMedia = createMediaItem(mediaUrl, data.type);
|
6404
|
-
patchState(store, { media: [...store.media(), newMedia], status: 'recorded' });
|
6405
|
-
}
|
6406
|
-
this.showPopup();
|
6407
|
-
}
|
6408
|
-
catch (error) {
|
6409
|
-
console.error('Error capturing media:', error);
|
6410
|
-
}
|
6411
|
-
});
|
6412
|
-
},
|
6413
|
-
async showPopup() {
|
6414
|
-
try {
|
6415
|
-
const scope = RootConfig.config.i18n;
|
6416
|
-
const { AXMReportNewIssueComponent } = await Promise.resolve().then(function () { return reportNewIssue_component; });
|
6417
|
-
const config = {
|
6418
|
-
title: `t('report-new-issue.individual-title',{scope: "${scope}"})`,
|
6419
|
-
};
|
6420
|
-
const result = await popupService.open(AXMReportNewIssueComponent, config);
|
6421
|
-
if (result.data?.insertResult) {
|
6422
|
-
eventService.dispatch(AXPRefreshEvent({ entity: 'reported-issues' }));
|
6423
|
-
patchState(store, { status: 'new' });
|
6424
|
-
}
|
6425
|
-
}
|
6426
|
-
catch (error) {
|
6427
|
-
console.error('Error showing popup:', error);
|
6428
|
-
patchState(store, { status: 'new' });
|
6429
|
-
}
|
6430
|
-
},
|
6431
|
-
deleteCapturedItem(index) {
|
6432
|
-
patchState(store, { media: store.media().filter((_, i) => i !== index) });
|
6433
|
-
},
|
6434
|
-
resetState() {
|
6435
|
-
patchState(store, {
|
6436
|
-
data: {
|
6437
|
-
title: '',
|
6438
|
-
description: '',
|
6439
|
-
issueType: {},
|
6440
|
-
priority: {},
|
6441
|
-
},
|
6442
|
-
status: 'new',
|
6443
|
-
media: [],
|
6444
|
-
});
|
6445
|
-
},
|
6446
|
-
};
|
6447
|
-
}), withHooks((store) => ({
|
6448
|
-
onDestroy() {
|
6449
|
-
store.resetState?.();
|
6450
|
-
},
|
6451
|
-
})));
|
4620
|
+
type: Injectable
|
4621
|
+
}] });
|
6452
4622
|
|
6453
|
-
class
|
4623
|
+
class AppTermsCheckService {
|
6454
4624
|
constructor() {
|
6455
|
-
|
6456
|
-
this.
|
4625
|
+
this.settingsService = inject(AXPSettingService);
|
4626
|
+
this.workflowService = inject(AXPWorkflowService);
|
4627
|
+
this.appTermService = inject(AXMAppTermService);
|
4628
|
+
this.appInitService = inject(AXPAppStartUpService);
|
6457
4629
|
this.sessionService = inject(AXPSessionService);
|
6458
|
-
this.
|
6459
|
-
|
6460
|
-
|
6461
|
-
|
6462
|
-
|
6463
|
-
|
6464
|
-
|
6465
|
-
|
6466
|
-
|
6467
|
-
|
6468
|
-
|
6469
|
-
|
6470
|
-
|
6471
|
-
|
6472
|
-
|
6473
|
-
|
6474
|
-
|
6475
|
-
|
6476
|
-
|
6477
|
-
|
6478
|
-
|
6479
|
-
|
6480
|
-
|
6481
|
-
|
6482
|
-
id: 4,
|
4630
|
+
this.appInitService.registerTask({
|
4631
|
+
name: 'Terms',
|
4632
|
+
statusText: 'Check New Terms And Conditions...',
|
4633
|
+
priority: 6,
|
4634
|
+
run: async () => {
|
4635
|
+
this.sessionService.application$.subscribe(async (app) => {
|
4636
|
+
if (app != null) {
|
4637
|
+
const filterTerms = [];
|
4638
|
+
const terms = await this.appTermService.query();
|
4639
|
+
for (const term of terms.items) {
|
4640
|
+
const isConfirm = await this.settingsService
|
4641
|
+
.scope(AXPPlatformScope.User)
|
4642
|
+
.get(`is-confirm-term-${term.id}`);
|
4643
|
+
if (!isConfirm) {
|
4644
|
+
filterTerms.push(term);
|
4645
|
+
}
|
4646
|
+
}
|
4647
|
+
if (filterTerms.length > 0) {
|
4648
|
+
setTimeout(() => {
|
4649
|
+
this.workflowService.execute('new-term', filterTerms);
|
4650
|
+
}, 500);
|
4651
|
+
}
|
4652
|
+
}
|
4653
|
+
});
|
6483
4654
|
},
|
6484
|
-
|
6485
|
-
}
|
6486
|
-
async handleSubmitClick() {
|
6487
|
-
const formResult = await this.form.validate();
|
6488
|
-
if (formResult.result) {
|
6489
|
-
const params = {
|
6490
|
-
id: AXPDataGenerator.uuid(),
|
6491
|
-
attachments: this.vm.media(),
|
6492
|
-
createdAt: new Date(),
|
6493
|
-
description: this.vm.data().description,
|
6494
|
-
errorLogs: [],
|
6495
|
-
issueType: this.vm.data().issueType,
|
6496
|
-
priority: this.vm.data().priority,
|
6497
|
-
status: 'new',
|
6498
|
-
systemInfo: navigator.userAgent,
|
6499
|
-
title: this.vm.data().title,
|
6500
|
-
user: this.sessionService.user,
|
6501
|
-
};
|
6502
|
-
const reportedIssue = await this.reportedIssuesService.insertOne(params);
|
6503
|
-
if (reportedIssue.length) {
|
6504
|
-
this.close({ insertResult: true });
|
6505
|
-
}
|
6506
|
-
}
|
6507
|
-
}
|
6508
|
-
async handleStartRecordingClick() {
|
6509
|
-
await this.vm.startCapturing();
|
6510
|
-
this.close();
|
6511
|
-
}
|
6512
|
-
async onDeleteMediaClick(index) {
|
6513
|
-
this.vm.deleteCapturedItem(index);
|
6514
|
-
}
|
6515
|
-
async onCancelClick() {
|
6516
|
-
this.vm.resetState();
|
6517
|
-
this.close();
|
6518
|
-
}
|
6519
|
-
handleIssueTypeChange(event) {
|
6520
|
-
this.vm.data().issueType = event.component.selectedItems[0];
|
6521
|
-
}
|
6522
|
-
handlePriorityChange(event) {
|
6523
|
-
this.vm.data().priority = event.component.selectedItems[0];
|
6524
|
-
}
|
6525
|
-
ngOnDestroy() {
|
6526
|
-
if (this.vm.status() !== 'recording') {
|
6527
|
-
this.vm.resetState();
|
6528
|
-
}
|
4655
|
+
});
|
6529
4656
|
}
|
6530
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
6531
|
-
static { this.ɵ
|
6532
|
-
//
|
6533
|
-
AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i3.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i4$1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i4$1.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i4$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i6.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i7.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i8.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXMediaViewerModule }, { kind: "component", type: i11.AXMediaViewerContainerComponent, selector: "ax-media-viewer-container", inputs: ["dataArray", "thumbnail"] }, { kind: "component", type: i11.AXFileInfoComponent, selector: "ax-file-info" }] }); }
|
4657
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4658
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService }); }
|
6534
4659
|
}
|
6535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
6536
|
-
type:
|
6537
|
-
|
6538
|
-
CommonModule,
|
6539
|
-
FormsModule,
|
6540
|
-
//
|
6541
|
-
AXTranslationModule,
|
6542
|
-
AXFormModule,
|
6543
|
-
AXLabelModule,
|
6544
|
-
AXTextBoxModule,
|
6545
|
-
AXSelectBoxModule,
|
6546
|
-
AXTextAreaModule,
|
6547
|
-
AXDecoratorModule,
|
6548
|
-
AXButtonModule,
|
6549
|
-
AXMediaViewerModule,
|
6550
|
-
], template: "<div *translate=\"let t\" class=\"ax-p-6\">\n <ax-form #form>\n <div class=\"ax-grid ax-gap-2\">\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.title', { scope: 'platform-management' }) | async }}</ax-label>\n <ax-text-box [(ngModel)]=\"vm.data().title\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.issue-type', { scope: 'platform-management' }) | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"issueTypeDataSource\"\n [value]=\"vm.data().issueType\"\n (onValueChanged)=\"handleIssueTypeChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.priority', { scope: 'platform-management' }) | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"priorityList\"\n [value]=\"vm.data().priority\"\n (onValueChanged)=\"handlePriorityChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.description', { scope: 'platform-management' }) | async }}</ax-label>\n <ax-text-area [(ngModel)]=\"vm.data().description\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-area>\n </ax-form-field>\n </div>\n </ax-form>\n @if(vm.media().length > 0){\n <div class=\"ax-p-2\">\n <ax-content>\n <ax-media-viewer-container #mediaViewer [dataArray]=\"vm.media()\" class=\"ax-block\">\n <ax-header>\n <ax-file-info></ax-file-info>\n <ax-suffix>\n <ax-button class=\"ax-sm\" color=\"danger\" (onClick)=\"onDeleteMediaClick(mediaViewer.getActiveIndex())\">\n <ax-icon class=\"ax-icon ax-icon-trash\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"mediaViewer.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"mediaViewer.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n </ax-content>\n </div>\n }\n <div>\n <ax-label>{{ t('report-new-issue.attach', { scope: 'platform-management' }) | async }}</ax-label>\n <div\n class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-border-dashed ax-border-secondary-500 ax-rounded-lg ax-p-6\"\n >\n <div class=\"ax-rounded-full ax-bg-surface ax-px-4 ax-py-3\">\n <ax-icon class=\"fa-solid fa-paperclip ax-text-on-surface ax-text-xl\"></ax-icon>\n </div>\n <p class=\"ax-text-lg ax-text-on-surface\">\n {{ t('report-new-issue.attach-box-description', { scope: 'platform-management' }) | async }}\n </p>\n <ax-button\n class=\"ax-w-fit ax-mt-6\"\n [text]=\"t('report-new-issue.start-capture-screen', { scope: 'platform-management' }) | async\"\n color=\"secondary\"\n (onClick)=\"handleStartRecordingClick()\"\n ></ax-button>\n </div>\n </div>\n</div>\n<ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n color=\"default\"\n [text]=\"'cancel' | translate | async\"\n (onClick)=\"onCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'save' | translate | async\"\n (onClick)=\"handleSubmitClick()\"\n ></ax-button>\n </ax-suffix>\n</ax-footer>\n" }]
|
6551
|
-
}], ctorParameters: () => [], propDecorators: { form: [{
|
6552
|
-
type: ViewChild,
|
6553
|
-
args: [AXFormComponent]
|
6554
|
-
}] } });
|
4660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, decorators: [{
|
4661
|
+
type: Injectable
|
4662
|
+
}], ctorParameters: () => [] });
|
6555
4663
|
|
6556
|
-
|
6557
|
-
|
6558
|
-
|
6559
|
-
|
4664
|
+
class AppVersionCheckService {
|
4665
|
+
constructor() {
|
4666
|
+
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
4667
|
+
this.settingsService = inject(AXPSettingService);
|
4668
|
+
this.workflowService = inject(AXPWorkflowService);
|
4669
|
+
this.appVersionService = inject(AXMAppVersionService);
|
4670
|
+
this.appInitService = inject(AXPAppStartUpService);
|
4671
|
+
this.sessionService = inject(AXPSessionService);
|
4672
|
+
this.appInitService.registerTask({
|
4673
|
+
name: 'Version',
|
4674
|
+
statusText: 'Check New Version...',
|
4675
|
+
priority: 5,
|
4676
|
+
run: async () => {
|
4677
|
+
this.sessionService.application$.subscribe(async (app) => {
|
4678
|
+
const current = (await this.versionProvider.provider()).version;
|
4679
|
+
const initVersion = await this.settingsService.scope(AXPPlatformScope.User).get(`init-application-version`);
|
4680
|
+
if (initVersion == null) {
|
4681
|
+
await this.settingsService.scope(AXPPlatformScope.User).set(`init-application-version`, current);
|
4682
|
+
}
|
4683
|
+
else {
|
4684
|
+
if (app != null) {
|
4685
|
+
const versions = await this.appVersionService.query();
|
4686
|
+
for (const v of versions.items) {
|
4687
|
+
if (v.versionNumber == current && v.versionNumber != initVersion) {
|
4688
|
+
const isSee = await this.settingsService
|
4689
|
+
.scope(AXPPlatformScope.User)
|
4690
|
+
.get(`is-see-check-version-${v.versionNumber}`);
|
4691
|
+
if (!isSee) {
|
4692
|
+
setTimeout(() => {
|
4693
|
+
this.workflowService.execute('show-what-is-new', v);
|
4694
|
+
}, 300);
|
4695
|
+
}
|
4696
|
+
}
|
4697
|
+
}
|
4698
|
+
}
|
4699
|
+
}
|
4700
|
+
});
|
4701
|
+
},
|
4702
|
+
});
|
4703
|
+
}
|
4704
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4705
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService }); }
|
4706
|
+
}
|
4707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, decorators: [{
|
4708
|
+
type: Injectable
|
4709
|
+
}], ctorParameters: () => [] });
|
6560
4710
|
|
6561
|
-
class
|
4711
|
+
class AXMShowReleaseNotesPopupAction extends AXPWorkflowAction {
|
6562
4712
|
constructor() {
|
6563
4713
|
super(...arguments);
|
6564
4714
|
this.popupService = inject(AXPopupService);
|
6565
|
-
this.vm = inject(AXMReportNewIssueViewModel);
|
6566
4715
|
}
|
6567
|
-
async execute() {
|
6568
|
-
|
4716
|
+
async execute(context) {
|
4717
|
+
const scope = RootConfig.config.i18n;
|
4718
|
+
const comp = await (await import('./acorex-modules-platform-management-list-version.component-DgDjbODD.mjs')).AXMListVersionComponent;
|
4719
|
+
this.popupService.open(comp, {
|
4720
|
+
title: `t('release-notes',{scope: "${scope}"})`,
|
4721
|
+
});
|
6569
4722
|
}
|
6570
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
6571
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
4723
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
4724
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction }); }
|
6572
4725
|
}
|
6573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
4726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, decorators: [{
|
6574
4727
|
type: Injectable
|
6575
4728
|
}] });
|
6576
|
-
const
|
4729
|
+
const AXMShowReleaseNotesWorkflow = {
|
6577
4730
|
startStepId: 'show-popup',
|
6578
4731
|
steps: {
|
6579
4732
|
'show-popup': {
|
6580
|
-
action: '
|
4733
|
+
action: 'AXMShowReleaseNotesPopupAction',
|
6581
4734
|
},
|
6582
4735
|
},
|
6583
4736
|
};
|
6584
4737
|
|
4738
|
+
var AXPReleaseNotesSettings;
|
4739
|
+
(function (AXPReleaseNotesSettings) {
|
4740
|
+
AXPReleaseNotesSettings["ReleaseNotes"] = "general:startup:release-notes";
|
4741
|
+
})(AXPReleaseNotesSettings || (AXPReleaseNotesSettings = {}));
|
4742
|
+
|
4743
|
+
class AXPReleaseNotesSettingProvider {
|
4744
|
+
constructor(injector) {
|
4745
|
+
this.injector = injector;
|
4746
|
+
this.translateService = this.injector.get(AXTranslationService);
|
4747
|
+
}
|
4748
|
+
async provide(context) {
|
4749
|
+
const trans = async (key) => await this.translateService.translateAsync(`settings.${key}`, { scope: 'general' });
|
4750
|
+
// Find the 'General Settings' group
|
4751
|
+
const group = context.group('general');
|
4752
|
+
if (!group) {
|
4753
|
+
return;
|
4754
|
+
}
|
4755
|
+
// Find the 'Startup' section
|
4756
|
+
const section = group.section('startup');
|
4757
|
+
if (!section) {
|
4758
|
+
return;
|
4759
|
+
}
|
4760
|
+
// Add the 'Release Notes' setting
|
4761
|
+
section.addSetting({
|
4762
|
+
key: AXPReleaseNotesSettings.ReleaseNotes,
|
4763
|
+
title: await trans('general.startup.release-notes.title'),
|
4764
|
+
scope: AXPPlatformScope.User,
|
4765
|
+
isInherited: true,
|
4766
|
+
defaultValue: false,
|
4767
|
+
valueTransforms: objectKeyValueTransforms('id'),
|
4768
|
+
widget: {
|
4769
|
+
type: AXPWidgetsCatalog.toggle,
|
4770
|
+
options: {
|
4771
|
+
label: null,
|
4772
|
+
}
|
4773
|
+
},
|
4774
|
+
description: await trans('general.startup.release-notes.description'),
|
4775
|
+
});
|
4776
|
+
}
|
4777
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPReleaseNotesSettingProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4778
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPReleaseNotesSettingProvider }); }
|
4779
|
+
}
|
4780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPReleaseNotesSettingProvider, decorators: [{
|
4781
|
+
type: Injectable
|
4782
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
4783
|
+
|
6585
4784
|
class AXMMenuProvider {
|
6586
4785
|
constructor() {
|
6587
4786
|
this.entityService = inject(AXPEntityService);
|
@@ -6625,27 +4824,6 @@ class AXMMenuProvider {
|
|
6625
4824
|
type: 'break',
|
6626
4825
|
priority: 100004,
|
6627
4826
|
},
|
6628
|
-
{
|
6629
|
-
name: 'my-reported-issues',
|
6630
|
-
text: RootConfig.entities.myReportedIssues.title,
|
6631
|
-
icon: RootConfig.entities.myReportedIssues.icon,
|
6632
|
-
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.myReportedIssues.name),
|
6633
|
-
priority: 100005,
|
6634
|
-
},
|
6635
|
-
{
|
6636
|
-
name: 'app-report-issue',
|
6637
|
-
text: RootConfig.entities.reportNewIssue.title,
|
6638
|
-
icon: RootConfig.entities.reportNewIssue.icon,
|
6639
|
-
command: {
|
6640
|
-
name: 'show-report-issue',
|
6641
|
-
},
|
6642
|
-
priority: 100006,
|
6643
|
-
},
|
6644
|
-
{
|
6645
|
-
text: 'break',
|
6646
|
-
type: 'break',
|
6647
|
-
priority: 100030,
|
6648
|
-
},
|
6649
4827
|
{
|
6650
4828
|
name: 'app-terms',
|
6651
4829
|
text: `t('terms-conditions',{scope: "${scope}"})`,
|
@@ -6699,6 +4877,12 @@ class AXMMenuProvider {
|
|
6699
4877
|
},
|
6700
4878
|
{
|
6701
4879
|
priority: 9002,
|
4880
|
+
text: RootConfig.entities.glossary.title,
|
4881
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.glossary.name),
|
4882
|
+
icon: RootConfig.entities.glossary.icon,
|
4883
|
+
},
|
4884
|
+
{
|
4885
|
+
priority: 9003,
|
6702
4886
|
text: RootConfig.entities.appVersion.title,
|
6703
4887
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appVersion.name),
|
6704
4888
|
icon: RootConfig.entities.appVersion.icon,
|
@@ -6707,7 +4891,7 @@ class AXMMenuProvider {
|
|
6707
4891
|
},
|
6708
4892
|
},
|
6709
4893
|
{
|
6710
|
-
priority:
|
4894
|
+
priority: 9004,
|
6711
4895
|
text: RootConfig.entities.appTerm.title,
|
6712
4896
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appTerm.name),
|
6713
4897
|
icon: RootConfig.entities.appTerm.icon,
|
@@ -6716,7 +4900,7 @@ class AXMMenuProvider {
|
|
6716
4900
|
},
|
6717
4901
|
},
|
6718
4902
|
{
|
6719
|
-
priority:
|
4903
|
+
priority: 9006,
|
6720
4904
|
text: RootConfig.entities.promotion.title,
|
6721
4905
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.promotion.name),
|
6722
4906
|
icon: RootConfig.entities.promotion.icon,
|
@@ -6725,7 +4909,7 @@ class AXMMenuProvider {
|
|
6725
4909
|
},
|
6726
4910
|
},
|
6727
4911
|
{
|
6728
|
-
priority:
|
4912
|
+
priority: 9005,
|
6729
4913
|
text: RootConfig.entities.dataSource.title,
|
6730
4914
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.dataSource.name),
|
6731
4915
|
icon: RootConfig.entities.dataSource.icon,
|
@@ -6734,7 +4918,7 @@ class AXMMenuProvider {
|
|
6734
4918
|
},
|
6735
4919
|
},
|
6736
4920
|
{
|
6737
|
-
priority:
|
4921
|
+
priority: 9008,
|
6738
4922
|
text: RootConfig.entities.metaDataDefinition.title,
|
6739
4923
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.metaDataDefinition.name),
|
6740
4924
|
icon: RootConfig.entities.metaDataDefinition.icon,
|
@@ -6743,75 +4927,17 @@ class AXMMenuProvider {
|
|
6743
4927
|
},
|
6744
4928
|
},
|
6745
4929
|
{
|
6746
|
-
priority:
|
4930
|
+
priority: 9007,
|
6747
4931
|
text: RootConfig.entities.metaDataDefinitionCategory.title,
|
6748
4932
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.metaDataDefinitionCategory.name),
|
6749
4933
|
icon: RootConfig.entities.metaDataDefinitionCategory.icon,
|
6750
4934
|
},
|
6751
|
-
{
|
6752
|
-
priority: 9008,
|
6753
|
-
text: RootConfig.entities.reportedIssues.title,
|
6754
|
-
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.reportedIssues.name),
|
6755
|
-
icon: RootConfig.entities.reportedIssues.icon,
|
6756
|
-
},
|
6757
|
-
{
|
6758
|
-
priority: 9009,
|
6759
|
-
text: RootConfig.entities.issueType.title,
|
6760
|
-
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.issueType.name),
|
6761
|
-
icon: RootConfig.entities.issueType.icon,
|
6762
|
-
},
|
6763
4935
|
],
|
6764
4936
|
},
|
6765
4937
|
]);
|
6766
4938
|
}
|
6767
4939
|
}
|
6768
4940
|
|
6769
|
-
var AXPReleaseNotesSettings;
|
6770
|
-
(function (AXPReleaseNotesSettings) {
|
6771
|
-
AXPReleaseNotesSettings["ReleaseNotes"] = "general:startup:release-notes";
|
6772
|
-
})(AXPReleaseNotesSettings || (AXPReleaseNotesSettings = {}));
|
6773
|
-
|
6774
|
-
class AXPReleaseNotesSettingProvider {
|
6775
|
-
constructor(injector) {
|
6776
|
-
this.injector = injector;
|
6777
|
-
this.translateService = this.injector.get(AXTranslationService);
|
6778
|
-
}
|
6779
|
-
async provide(context) {
|
6780
|
-
const trans = async (key) => await this.translateService.translateAsync(`settings.${key}`, { scope: 'general' });
|
6781
|
-
// Find the 'General Settings' group
|
6782
|
-
const group = context.group('general');
|
6783
|
-
if (!group) {
|
6784
|
-
return;
|
6785
|
-
}
|
6786
|
-
// Find the 'Startup' section
|
6787
|
-
const section = group.section('startup');
|
6788
|
-
if (!section) {
|
6789
|
-
return;
|
6790
|
-
}
|
6791
|
-
// Add the 'Release Notes' setting
|
6792
|
-
section.addSetting({
|
6793
|
-
key: AXPReleaseNotesSettings.ReleaseNotes,
|
6794
|
-
title: await trans('general.startup.release-notes.title'),
|
6795
|
-
scope: AXPPlatformScope.User,
|
6796
|
-
isInherited: true,
|
6797
|
-
defaultValue: false,
|
6798
|
-
valueTransforms: objectKeyValueTransforms('id'),
|
6799
|
-
widget: {
|
6800
|
-
type: AXPWidgetsCatalog.toggle,
|
6801
|
-
options: {
|
6802
|
-
label: null,
|
6803
|
-
}
|
6804
|
-
},
|
6805
|
-
description: await trans('general.startup.release-notes.description'),
|
6806
|
-
});
|
6807
|
-
}
|
6808
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPReleaseNotesSettingProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6809
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPReleaseNotesSettingProvider }); }
|
6810
|
-
}
|
6811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPReleaseNotesSettingProvider, decorators: [{
|
6812
|
-
type: Injectable
|
6813
|
-
}], ctorParameters: () => [{ type: i0.Injector }] });
|
6814
|
-
|
6815
4941
|
function routesFactory() {
|
6816
4942
|
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
6817
4943
|
const routes = [
|
@@ -6836,19 +4962,10 @@ class AXMPlatformManagementModule {
|
|
6836
4962
|
*/
|
6837
4963
|
constructor(appVersionCheck, appTermsCheck) { }
|
6838
4964
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token: AppVersionCheckService }, { token: AppTermsCheckService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
6839
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i3$
|
6840
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
6841
|
-
|
6842
|
-
|
6843
|
-
useClass: AXMIssueTypeServiceImpl,
|
6844
|
-
},
|
6845
|
-
{
|
6846
|
-
provide: AXMReportedIssuesService,
|
6847
|
-
useClass: AXMReportedIssuesServiceImpl,
|
6848
|
-
},
|
6849
|
-
{
|
6850
|
-
provide: AXMMyReportedIssuesService,
|
6851
|
-
useClass: AXMMyReportedIssuesServiceImpl,
|
4965
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i3$2.AXPWorkflowModule, i2$2.AXPComponentSlotModule] }); }
|
4966
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [{
|
4967
|
+
provide: AXMGlossaryService,
|
4968
|
+
useClass: AXMGlossaryServiceImpl,
|
6852
4969
|
},
|
6853
4970
|
{
|
6854
4971
|
provide: ROUTES,
|
@@ -6915,14 +5032,11 @@ class AXMPlatformManagementModule {
|
|
6915
5032
|
AXMTermUpdateSettingAction,
|
6916
5033
|
//
|
6917
5034
|
AXMShowReleaseNotesPopupAction,
|
6918
|
-
//
|
6919
|
-
AXMShowReportNewIssuePopupeAction: AXMShowReportNewIssuePopupeAction,
|
6920
5035
|
},
|
6921
5036
|
workflows: {
|
6922
5037
|
'show-what-is-new': AXMWhatsNewWorkflow,
|
6923
5038
|
'show-release-notes': AXMShowReleaseNotesWorkflow,
|
6924
5039
|
'new-term': AXMNewTermWorkflow,
|
6925
|
-
'show-report-issue': AXMShowReportNewIssueWorkflow,
|
6926
5040
|
},
|
6927
5041
|
}),
|
6928
5042
|
AXPComponentSlotModule.forChild({
|
@@ -6961,14 +5075,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
6961
5075
|
AXMTermUpdateSettingAction,
|
6962
5076
|
//
|
6963
5077
|
AXMShowReleaseNotesPopupAction,
|
6964
|
-
//
|
6965
|
-
AXMShowReportNewIssuePopupeAction: AXMShowReportNewIssuePopupeAction,
|
6966
5078
|
},
|
6967
5079
|
workflows: {
|
6968
5080
|
'show-what-is-new': AXMWhatsNewWorkflow,
|
6969
5081
|
'show-release-notes': AXMShowReleaseNotesWorkflow,
|
6970
5082
|
'new-term': AXMNewTermWorkflow,
|
6971
|
-
'show-report-issue': AXMShowReportNewIssueWorkflow,
|
6972
5083
|
},
|
6973
5084
|
}),
|
6974
5085
|
AXPComponentSlotModule.forChild({
|
@@ -6995,18 +5106,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
6995
5106
|
],
|
6996
5107
|
exports: [],
|
6997
5108
|
declarations: [],
|
6998
|
-
providers: [
|
6999
|
-
|
7000
|
-
|
7001
|
-
useClass: AXMIssueTypeServiceImpl,
|
7002
|
-
},
|
7003
|
-
{
|
7004
|
-
provide: AXMReportedIssuesService,
|
7005
|
-
useClass: AXMReportedIssuesServiceImpl,
|
7006
|
-
},
|
7007
|
-
{
|
7008
|
-
provide: AXMMyReportedIssuesService,
|
7009
|
-
useClass: AXMMyReportedIssuesServiceImpl,
|
5109
|
+
providers: [{
|
5110
|
+
provide: AXMGlossaryService,
|
5111
|
+
useClass: AXMGlossaryServiceImpl,
|
7010
5112
|
},
|
7011
5113
|
{
|
7012
5114
|
provide: ROUTES,
|
@@ -7067,9 +5169,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
7067
5169
|
}]
|
7068
5170
|
}], ctorParameters: () => [{ type: AppVersionCheckService }, { type: AppTermsCheckService }] });
|
7069
5171
|
|
5172
|
+
// export * from './lib/features';
|
5173
|
+
|
7070
5174
|
/**
|
7071
5175
|
* Generated bundle index. Do not edit.
|
7072
5176
|
*/
|
7073
5177
|
|
7074
|
-
export {
|
7075
|
-
//# sourceMappingURL=acorex-modules-platform-management-acorex-modules-platform-management-
|
5178
|
+
export { AXPRegionalSetting as A, AXMMetaDataDefinitionService as B, AXMPMetaDataDefinitionServiceImpl as C, metaDataDefinitionCategoryEntityFactory as D, AXMMetaDataDefinitionCategoryService as E, AXMMetaDataDefinitionCategoryServiceImpl as F, AXMPromotionSlotComponent as G, promotionEntityFactory as H, AXMAppPromotionService as I, AXMPromotionServiceImpl as J, AXPRegionalStoreService as K, RootConfig as R, AXMAppVersionService as a, AXMPlatformManagementModule as b, appTermEntityEntityFactory as c, AXMAppTermService as d, AXMAppTermServiceImpl as e, AXMListTermsComponent as f, AXMNotifyNewTermPopupAction as g, AXMTermUpdateSettingAction as h, AXMNewTermWorkflow as i, appVersionEntityEntityFactory as j, AXMAppVersionServiceImpl as k, AXMNotifyAppComponent as l, AXMAppVersionSlotComponent as m, AXMChangeLogPopupAction as n, AXMChangeLogUpdateSettingAction as o, AXMWhatsNewWorkflow as p, dataSourceEntityFactory as q, AXMDataSourceService as r, AXMDataSourceServiceImpl as s, globalVariableEntityFactory as t, AXMGlobalVariablesService as u, AXMGlobalVariablesServiceImpl as v, glossaryEntityFactory as w, AXMGlossaryService as x, AXMGlossaryServiceImpl as y, metaDataDefinitionFactory as z };
|
5179
|
+
//# sourceMappingURL=acorex-modules-platform-management-acorex-modules-platform-management-DHA8LTwL.mjs.map
|