@acorex/modules 20.2.3 → 20.2.4-next.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/common/index.d.ts +16 -8
- package/document-management/index.d.ts +27 -24
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BBGqLgJC.mjs → acorex-modules-auth-acorex-modules-auth-C8p1VeqM.mjs} +10 -10
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BBGqLgJC.mjs.map → acorex-modules-auth-acorex-modules-auth-C8p1VeqM.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-app-chooser.component-B7Nv62Jj.mjs → acorex-modules-auth-app-chooser.component-CDKLbD_u.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-B7Nv62Jj.mjs.map → acorex-modules-auth-app-chooser.component-CDKLbD_u.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-DmEDBKqL.mjs → acorex-modules-auth-login.module-DGPRxnXo.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-DmEDBKqL.mjs.map → acorex-modules-auth-login.module-DGPRxnXo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-B8L2FPDN.mjs → acorex-modules-auth-master.layout-BNFGuQQs.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-B8L2FPDN.mjs.map → acorex-modules-auth-master.layout-BNFGuQQs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-BRJu8jom.mjs → acorex-modules-auth-oauth-callback.component-B3sSFdOA.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-BRJu8jom.mjs.map → acorex-modules-auth-oauth-callback.component-B3sSFdOA.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-Bh0uhx6-.mjs → acorex-modules-auth-password.component-Dyox9sR4.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-Bh0uhx6-.mjs.map → acorex-modules-auth-password.component-Dyox9sR4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-FNLwhWMe.mjs → acorex-modules-auth-password.component-ln2kDKPR.mjs} +3 -3
- package/fesm2022/acorex-modules-auth-password.component-ln2kDKPR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-routes-xqc264U-.mjs → acorex-modules-auth-routes-7vr8T08D.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-xqc264U-.mjs.map → acorex-modules-auth-routes-7vr8T08D.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-C8jrenEW.mjs → acorex-modules-auth-two-factor.module-D6XCUP_A.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-C8jrenEW.mjs.map → acorex-modules-auth-two-factor.module-D6XCUP_A.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-Cu1SCNnF.mjs → acorex-modules-auth-user-sessions.component-B5aBDmdR.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-user-sessions.component-Cu1SCNnF.mjs.map → acorex-modules-auth-user-sessions.component-B5aBDmdR.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-calendar-management.mjs +1 -1
- package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-common.mjs +503 -235
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +57 -445
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +119 -4
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +9 -9
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-BvIGh15O.mjs → acorex-modules-document-management-acorex-modules-document-management-D9oPjJnn.mjs} +862 -145
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-D9oPjJnn.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-ClgS3Q8D.mjs → acorex-modules-document-management-attachment-widget.component-CcWvTWv0.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-ClgS3Q8D.mjs.map → acorex-modules-document-management-attachment-widget.component-CcWvTWv0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-BWMANjYL.mjs → acorex-modules-document-management-create-folder-dialog.component-DPFIPNE_.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-BWMANjYL.mjs.map → acorex-modules-document-management-create-folder-dialog.component-DPFIPNE_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-BmJB8bb8.mjs → acorex-modules-document-management-details-view.component-BKNvUhdl.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-BmJB8bb8.mjs.map → acorex-modules-document-management-details-view.component-BKNvUhdl.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management-document-send-to-review-popup.component-CtpLvPIr.mjs +116 -0
- package/fesm2022/acorex-modules-document-management-document-send-to-review-popup.component-CtpLvPIr.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-DoUkm43Y.mjs → acorex-modules-document-management-drive-choose.component-BOPjvKlN.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-DoUkm43Y.mjs.map → acorex-modules-document-management-drive-choose.component-BOPjvKlN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-R1V4W9u3.mjs → acorex-modules-document-management-drive.component-DutBXTtm.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-R1V4W9u3.mjs.map → acorex-modules-document-management-drive.component-DutBXTtm.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C-9UNa_X.mjs → acorex-modules-document-management-large-icons-view.component-DX2_xsbq.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C-9UNa_X.mjs.map → acorex-modules-document-management-large-icons-view.component-DX2_xsbq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DL3PEFfv.mjs → acorex-modules-document-management-large-tiles-view.component-CshjCgG5.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DL3PEFfv.mjs.map → acorex-modules-document-management-large-tiles-view.component-CshjCgG5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-BGUDmglV.mjs → acorex-modules-document-management-list-view.component-DdLTVccZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-BGUDmglV.mjs.map → acorex-modules-document-management-list-view.component-DdLTVccZ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-BZu8EbTh.mjs → acorex-modules-document-management-meta-choose-popup.component-BomZu2bT.mjs} +2 -2
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-BomZu2bT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-Cbwf5Ved.mjs → acorex-modules-document-management-permission-definition.provider-_AXz3sdF.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-Cbwf5Ved.mjs.map → acorex-modules-document-management-permission-definition.provider-_AXz3sdF.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DXiQj-Hb.mjs → acorex-modules-document-management-rename-node-dialog.component-DZRAXwFy.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DXiQj-Hb.mjs.map → acorex-modules-document-management-rename-node-dialog.component-DZRAXwFy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-C8RZC3TM.mjs → acorex-modules-document-management-small-icons-view.component-DG3AbQJO.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-C8RZC3TM.mjs.map → acorex-modules-document-management-small-icons-view.component-DG3AbQJO.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-B70rSvao.mjs → acorex-modules-document-management-small-tiles-view.component-Cx9jczo-.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-B70rSvao.mjs.map → acorex-modules-document-management-small-tiles-view.component-Cx9jczo-.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-CeQnu6WW.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-CLSHVjDE.mjs} +34 -12
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CLSHVjDE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-category.entity-DmrE2Pfz.mjs → acorex-modules-form-template-management-category.entity-BBjVWSJ_.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-category.entity-DmrE2Pfz.mjs.map → acorex-modules-form-template-management-category.entity-BBjVWSJ_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-CfOa446m.mjs → acorex-modules-form-template-management-permission-definition.provider-I8BY9RVh.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-CfOa446m.mjs.map → acorex-modules-form-template-management-permission-definition.provider-I8BY9RVh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-hLlHnm-I.mjs → acorex-modules-form-template-management-settings.provider-B8ip0Ou_.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-hLlHnm-I.mjs.map → acorex-modules-form-template-management-settings.provider-B8ip0Ou_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-picker.component-bxYZqmYR.mjs → acorex-modules-form-template-management-template-picker.component-BNM3RyDv.mjs} +2 -3
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-BNM3RyDv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-D_Ys5kRT.mjs → acorex-modules-form-template-management-template-widget-edit.component-DFfvdZqJ.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-D_Ys5kRT.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-DFfvdZqJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-CvlwS8TY.mjs → acorex-modules-form-template-management-template.entity-BCpgfVMz.mjs} +10 -14
- package/fesm2022/acorex-modules-form-template-management-template.entity-BCpgfVMz.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CE13nuke.mjs → acorex-modules-form-template-management-viewer-popup.component-DDfjwbrL.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CE13nuke.mjs.map → acorex-modules-form-template-management-viewer-popup.component-DDfjwbrL.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-8iEAzfh5.mjs → acorex-modules-help-desk-acorex-modules-help-desk-CAibWOZT.mjs} +2 -8
- package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-CAibWOZT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-BiJX9lxr.mjs → acorex-modules-help-desk-capture-screen.component-BSBozesT.mjs} +2 -2
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-BiJX9lxr.mjs.map → acorex-modules-help-desk-capture-screen.component-BSBozesT.mjs.map} +1 -1
- package/fesm2022/acorex-modules-help-desk.mjs +1 -1
- package/fesm2022/acorex-modules-identifier-management.mjs +81 -39
- package/fesm2022/acorex-modules-identifier-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-location-management.mjs +4 -3
- package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-log-management.mjs +0 -1
- package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-meeting-management-meeting-publish-popup.component-PcBFprq3.mjs +121 -0
- package/fesm2022/acorex-modules-meeting-management-meeting-publish-popup.component-PcBFprq3.mjs.map +1 -0
- package/fesm2022/acorex-modules-meeting-management.mjs +2899 -0
- package/fesm2022/acorex-modules-meeting-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management-notification-page.component-TLxLpxzE.mjs +544 -0
- package/fesm2022/acorex-modules-notification-management-notification-page.component-TLxLpxzE.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs +145 -126
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs → acorex-modules-organization-management-employee.entity-CRc2YjNR.mjs} +114 -68
- package/fesm2022/acorex-modules-organization-management-employee.entity-CRc2YjNR.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +22 -1
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-party-management-acorex-modules-party-management-B8X8tXFw.mjs → acorex-modules-party-management-acorex-modules-party-management-BUc-9XOG.mjs} +6 -6
- package/fesm2022/{acorex-modules-party-management-acorex-modules-party-management-B8X8tXFw.mjs.map → acorex-modules-party-management-acorex-modules-party-management-BUc-9XOG.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-party-management-party-identifier-type.entity-b8aNBCpT.mjs → acorex-modules-party-management-party-identifier-type.entity-Bgq-y9TN.mjs} +2 -2
- package/fesm2022/{acorex-modules-party-management-party-identifier-type.entity-b8aNBCpT.mjs.map → acorex-modules-party-management-party-identifier-type.entity-Bgq-y9TN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-party-management-party-identifier.entity-B_5MSDF1.mjs → acorex-modules-party-management-party-identifier.entity-CP47qbc-.mjs} +12 -10
- package/fesm2022/acorex-modules-party-management-party-identifier.entity-CP47qbc-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-party-management-party-relationship.entity-CLAAuCde.mjs → acorex-modules-party-management-party-relationship.entity-pGea5plN.mjs} +2 -2
- package/fesm2022/{acorex-modules-party-management-party-relationship.entity-CLAAuCde.mjs.map → acorex-modules-party-management-party-relationship.entity-pGea5plN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-party-management-party-role.entity-C5BeakjX.mjs → acorex-modules-party-management-party-role.entity-CDt7Rxu7.mjs} +7 -7
- package/fesm2022/acorex-modules-party-management-party-role.entity-CDt7Rxu7.mjs.map +1 -0
- package/fesm2022/{acorex-modules-party-management-party.entity-Blwg8o3o.mjs → acorex-modules-party-management-party.entity-DAvqOPic.mjs} +4 -4
- package/fesm2022/acorex-modules-party-management-party.entity-DAvqOPic.mjs.map +1 -0
- package/fesm2022/acorex-modules-party-management.mjs +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +98 -97
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-create-root.component-CPR6H1R1.mjs → acorex-modules-report-management-report-create-root.component-L-7aG8op.mjs} +2 -2
- package/fesm2022/acorex-modules-report-management-report-create-root.component-L-7aG8op.mjs.map +1 -0
- package/fesm2022/acorex-modules-report-management.mjs +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +5 -5
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-BWXHxXwS.mjs → acorex-modules-settings-management-setting-page.component-D-NKWNvS.mjs} +11 -1
- package/fesm2022/acorex-modules-settings-management-setting-page.component-D-NKWNvS.mjs.map +1 -0
- package/fesm2022/acorex-modules-settings-management.mjs +1 -1
- package/fesm2022/{acorex-modules-workflow-management-task-board.page-2UTqXn3s.mjs → acorex-modules-task-management-task-board.page-DbpqZaC7.mjs} +16 -11
- package/fesm2022/acorex-modules-task-management-task-board.page-DbpqZaC7.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +3026 -2821
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management.mjs +39 -1
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/form-template-management/index.d.ts +3 -0
- package/identifier-management/index.d.ts +15 -16
- package/meeting-management/README.md +29 -0
- package/meeting-management/index.d.ts +248 -0
- package/notification-management/index.d.ts +6 -4
- package/package.json +9 -5
- package/task-management/index.d.ts +34 -2
- package/workflow-management/index.d.ts +4 -33
- package/fesm2022/acorex-modules-auth-password.component-FNLwhWMe.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BvIGh15O.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-BZu8EbTh.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CeQnu6WW.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-bxYZqmYR.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-CvlwS8TY.mjs.map +0 -1
- package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-8iEAzfh5.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party-identifier.entity-B_5MSDF1.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party-role.entity-C5BeakjX.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party.entity-Blwg8o3o.mjs.map +0 -1
- package/fesm2022/acorex-modules-report-management-report-create-root.component-CPR6H1R1.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-setting-page.component-BWXHxXwS.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-BfE17ZXY.mjs +0 -244
- package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-BfE17ZXY.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-task-board.page-2UTqXn3s.mjs.map +0 -1
|
@@ -85,6 +85,11 @@ class AXMMenuProvider {
|
|
|
85
85
|
text: `t('module-name', {scope:"${scope}"})`,
|
|
86
86
|
icon: module.icon,
|
|
87
87
|
name: 'content-management-menu',
|
|
88
|
+
data: {
|
|
89
|
+
requiredPermission: [
|
|
90
|
+
'platform'
|
|
91
|
+
],
|
|
92
|
+
},
|
|
88
93
|
children: [
|
|
89
94
|
{
|
|
90
95
|
text: RootConfig.entities.promotion.title,
|
|
@@ -93,13 +98,13 @@ class AXMMenuProvider {
|
|
|
93
98
|
priority: 1,
|
|
94
99
|
name: 'content-management-promotion-menu-item'
|
|
95
100
|
},
|
|
96
|
-
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
101
|
+
// {
|
|
102
|
+
// text: RootConfig.entities.glossary?.title,
|
|
103
|
+
// path: this.entityService.createPath(module.name, RootConfig.entities.glossary?.name),
|
|
104
|
+
// icon: RootConfig.entities.glossary?.icon,
|
|
105
|
+
// priority: 2,
|
|
106
|
+
// name: 'content-management-glossary-menu-item'
|
|
107
|
+
// },
|
|
103
108
|
{
|
|
104
109
|
text: RootConfig.entities.appTerm?.title,
|
|
105
110
|
path: this.entityService.createPath(module.name, RootConfig.entities.appTerm?.name),
|
|
@@ -254,7 +259,6 @@ class AXMPromotionDataSourceDefinition {
|
|
|
254
259
|
};
|
|
255
260
|
}
|
|
256
261
|
catch (e) {
|
|
257
|
-
console.log(e);
|
|
258
262
|
throw e;
|
|
259
263
|
}
|
|
260
264
|
},
|
|
@@ -389,7 +393,7 @@ class AXMNotifyAppTermComponent extends AXBasePageComponent {
|
|
|
389
393
|
this.close({ data: this.data });
|
|
390
394
|
}
|
|
391
395
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMNotifyAppTermComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
392
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", 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]=\"transformContent(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>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i2.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "
|
|
396
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", 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]=\"transformContent(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>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i2.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.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: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
|
393
397
|
}
|
|
394
398
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMNotifyAppTermComponent, decorators: [{
|
|
395
399
|
type: Component,
|
|
@@ -718,86 +722,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
718
722
|
}]
|
|
719
723
|
}], ctorParameters: () => [{ type: AppTermsCheckService }] });
|
|
720
724
|
|
|
721
|
-
/**
|
|
722
|
-
* Deeply sanitizes an object for storage in IndexedDB by removing non-serializable content
|
|
723
|
-
*/
|
|
724
|
-
function sanitizeForStorage(obj) {
|
|
725
|
-
if (!obj) {
|
|
726
|
-
return obj;
|
|
727
|
-
}
|
|
728
|
-
// Handle primitive values
|
|
729
|
-
if (typeof obj !== 'object') {
|
|
730
|
-
return obj;
|
|
731
|
-
}
|
|
732
|
-
// Handle arrays
|
|
733
|
-
if (Array.isArray(obj)) {
|
|
734
|
-
return obj.map((item) => sanitizeForStorage(item));
|
|
735
|
-
}
|
|
736
|
-
// Handle Date objects
|
|
737
|
-
if (obj instanceof Date) {
|
|
738
|
-
return obj;
|
|
739
|
-
}
|
|
740
|
-
// Handle File objects specially
|
|
741
|
-
if (obj instanceof File) {
|
|
742
|
-
// File objects are handled separately, return as is
|
|
743
|
-
return obj;
|
|
744
|
-
}
|
|
745
|
-
// Handle Blob objects
|
|
746
|
-
if (obj instanceof Blob) {
|
|
747
|
-
// Blob objects are handled separately
|
|
748
|
-
return obj;
|
|
749
|
-
}
|
|
750
|
-
// Handle regular objects
|
|
751
|
-
const cleanedObj = {};
|
|
752
|
-
for (const [key, value] of Object.entries(obj)) {
|
|
753
|
-
// Skip functions, symbols and other non-serializable types
|
|
754
|
-
if (typeof value === 'function' || typeof value === 'symbol') {
|
|
755
|
-
continue;
|
|
756
|
-
}
|
|
757
|
-
// Handle null values
|
|
758
|
-
if (value === null) {
|
|
759
|
-
cleanedObj[key] = null;
|
|
760
|
-
continue;
|
|
761
|
-
}
|
|
762
|
-
// Recursively sanitize objects
|
|
763
|
-
if (typeof value === 'object') {
|
|
764
|
-
cleanedObj[key] = sanitizeForStorage(value);
|
|
765
|
-
}
|
|
766
|
-
else {
|
|
767
|
-
cleanedObj[key] = value;
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
return cleanedObj;
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* Sanitizes a filename by:
|
|
774
|
-
* 1. Removing special characters
|
|
775
|
-
* 2. Replacing spaces with hyphens
|
|
776
|
-
* 3. Ensuring unique timestamp
|
|
777
|
-
*/
|
|
778
|
-
function sanitizeFileName(fileName) {
|
|
779
|
-
if (!fileName)
|
|
780
|
-
return '';
|
|
781
|
-
// Get file extension
|
|
782
|
-
const ext = fileName.split('.').pop() || '';
|
|
783
|
-
// Get base name without extension
|
|
784
|
-
let baseName = fileName.slice(0, -(ext.length + 1));
|
|
785
|
-
// Remove special characters and replace spaces with hyphens
|
|
786
|
-
baseName = baseName
|
|
787
|
-
.replace(/[^\w\s-]/g, '') // Remove special chars except spaces and hyphens
|
|
788
|
-
.replace(/\s+/g, '-') // Replace spaces with hyphens
|
|
789
|
-
.replace(/-+/g, '-') // Replace multiple hyphens with single hyphen
|
|
790
|
-
.trim();
|
|
791
|
-
// Add timestamp to ensure uniqueness
|
|
792
|
-
const timestamp = new Date().getTime();
|
|
793
|
-
// Combine everything
|
|
794
|
-
return `${baseName}-${timestamp}.${ext}`;
|
|
795
|
-
}
|
|
796
725
|
async function promotionEntityFactory(injector) {
|
|
797
726
|
const dataService = injector.get(AXMAppPromotionService);
|
|
798
|
-
const fileStorageService = injector.get(AXPFileStorageService);
|
|
799
727
|
const i18n = RootConfig.config.i18n;
|
|
800
728
|
const entityDef = {
|
|
729
|
+
plugins: [
|
|
730
|
+
{ name: 'history' },
|
|
731
|
+
{ name: 'lock' },
|
|
732
|
+
{ name: 'compare' },
|
|
733
|
+
{ name: 'comments' },
|
|
734
|
+
{
|
|
735
|
+
name: 'attachments',
|
|
736
|
+
options: {
|
|
737
|
+
field: 'imageId',
|
|
738
|
+
accept: '.jpg,.jpeg,.png,.gif,.webp',
|
|
739
|
+
multiple: true,
|
|
740
|
+
fileEditable: true,
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
],
|
|
801
744
|
module: RootConfig.module.name,
|
|
802
745
|
name: RootConfig.entities.promotion.name,
|
|
803
746
|
source: '',
|
|
@@ -816,10 +759,6 @@ async function promotionEntityFactory(injector) {
|
|
|
816
759
|
id: 'promotion',
|
|
817
760
|
title: 'Promotion',
|
|
818
761
|
},
|
|
819
|
-
{
|
|
820
|
-
id: 'comments',
|
|
821
|
-
title: 'Comments',
|
|
822
|
-
},
|
|
823
762
|
],
|
|
824
763
|
properties: [
|
|
825
764
|
{
|
|
@@ -885,20 +824,7 @@ async function promotionEntityFactory(injector) {
|
|
|
885
824
|
},
|
|
886
825
|
],
|
|
887
826
|
},
|
|
888
|
-
|
|
889
|
-
name: 'imageId',
|
|
890
|
-
title: `t("Gallery", { scope: "${i18n}" })`,
|
|
891
|
-
groupId: 'promotion',
|
|
892
|
-
schema: {
|
|
893
|
-
dataType: 'string',
|
|
894
|
-
interface: {
|
|
895
|
-
type: AXPWidgetsCatalog.fileUploader,
|
|
896
|
-
options: {
|
|
897
|
-
multiple: true,
|
|
898
|
-
},
|
|
899
|
-
},
|
|
900
|
-
},
|
|
901
|
-
},
|
|
827
|
+
// attachments property comes from plugin when configured to create property
|
|
902
828
|
{
|
|
903
829
|
name: 'contentType',
|
|
904
830
|
title: `t("contentType", { scope: "${i18n}" })`,
|
|
@@ -1028,137 +954,13 @@ async function promotionEntityFactory(injector) {
|
|
|
1028
954
|
// },
|
|
1029
955
|
// }
|
|
1030
956
|
//},
|
|
1031
|
-
{
|
|
1032
|
-
name: 'comments',
|
|
1033
|
-
title: `Comments`,
|
|
1034
|
-
groupId: 'comments',
|
|
1035
|
-
schema: {
|
|
1036
|
-
dataType: 'object',
|
|
1037
|
-
interface: {
|
|
1038
|
-
type: 'comment',
|
|
1039
|
-
options: {
|
|
1040
|
-
refrenceType: RootConfig.module.name + '.' + RootConfig.entities.promotion.name,
|
|
1041
|
-
refrenceId: '{{ context.eval("id") }}',
|
|
1042
|
-
subject: '{{ context.eval("title") }}',
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1046
|
-
},
|
|
1047
957
|
],
|
|
1048
|
-
columns: [{ name: 'title' }, { name: 'placement' }
|
|
958
|
+
columns: [{ name: 'title' }, { name: 'placement' }],
|
|
1049
959
|
commands: {
|
|
1050
960
|
create: {
|
|
1051
961
|
execute: async (data) => {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
entityPayload.imageId = entityPayload.imageId || [];
|
|
1055
|
-
const filesToUploadAfterSave = [];
|
|
1056
|
-
if (Array.isArray(entityPayload.imageId)) {
|
|
1057
|
-
const processedImageIdForEntitySave = [];
|
|
1058
|
-
for (const fileItem of entityPayload.imageId) {
|
|
1059
|
-
if (fileItem.source?.kind === 'blob' && fileItem.source.value instanceof Blob) {
|
|
1060
|
-
// Sanitize the filename
|
|
1061
|
-
const sanitizedName = sanitizeFileName(fileItem.name);
|
|
1062
|
-
filesToUploadAfterSave.push({
|
|
1063
|
-
fileItem: { ...fileItem, name: sanitizedName },
|
|
1064
|
-
blob: fileItem.source.value,
|
|
1065
|
-
});
|
|
1066
|
-
processedImageIdForEntitySave.push({
|
|
1067
|
-
tempId: fileItem.id,
|
|
1068
|
-
name: sanitizedName,
|
|
1069
|
-
size: fileItem.size,
|
|
1070
|
-
type: fileItem.source.value.type,
|
|
1071
|
-
status: 'pending_upload',
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
else if (fileItem.source?.kind === 'fileId' &&
|
|
1075
|
-
fileItem.id &&
|
|
1076
|
-
typeof fileItem.source.value === 'string') {
|
|
1077
|
-
// If it's a fileId, we assume it's already processed. We don't have type directly on AXPFileListItem.
|
|
1078
|
-
// We'll reconstruct it from fileStorageService or it should be part of what's saved if needed.
|
|
1079
|
-
processedImageIdForEntitySave.push({
|
|
1080
|
-
id: fileItem.id,
|
|
1081
|
-
name: fileItem.name,
|
|
1082
|
-
size: fileItem.size,
|
|
1083
|
-
// type: fileItem.type, // Removed: AXPFileListItem does not have .type
|
|
1084
|
-
status: 'uploaded',
|
|
1085
|
-
source: { kind: 'fileId', value: fileItem.source.value },
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
else if (fileItem.id && fileItem.name) {
|
|
1089
|
-
// Fallback for items that might be from a previous save
|
|
1090
|
-
processedImageIdForEntitySave.push({
|
|
1091
|
-
id: fileItem.id,
|
|
1092
|
-
name: fileItem.name,
|
|
1093
|
-
size: fileItem.size,
|
|
1094
|
-
// type: fileItem.type, // Removed: AXPFileListItem does not have .type
|
|
1095
|
-
status: fileItem.status, // Preserve existing status
|
|
1096
|
-
source: fileItem.source ? { kind: fileItem.source.kind, value: fileItem.source.value } : undefined,
|
|
1097
|
-
});
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
entityPayload.imageId = processedImageIdForEntitySave;
|
|
1101
|
-
}
|
|
1102
|
-
const savedEntityId = await dataService.insertOne(entityPayload);
|
|
1103
|
-
// const entityId = savedEntity.id; // Corrected based on typical service return
|
|
1104
|
-
const finalImageIdReferences = (entityPayload.imageId || []).filter((f) => f.status !== 'pending_upload');
|
|
1105
|
-
for (const { fileItem, blob } of filesToUploadAfterSave) {
|
|
1106
|
-
try {
|
|
1107
|
-
if (!fileStorageService) {
|
|
1108
|
-
throw new Error('fileStorageService is not available.');
|
|
1109
|
-
}
|
|
1110
|
-
const fileStorageInfo = await fileStorageService.save({
|
|
1111
|
-
file: blob,
|
|
1112
|
-
refId: savedEntityId,
|
|
1113
|
-
refType: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
|
|
1114
|
-
category: '',
|
|
1115
|
-
name: blob.name,
|
|
1116
|
-
});
|
|
1117
|
-
await fileStorageService.commit(fileStorageInfo.fileId);
|
|
1118
|
-
finalImageIdReferences.push({
|
|
1119
|
-
id: fileStorageInfo.fileId,
|
|
1120
|
-
name: fileStorageInfo.name || blob.name,
|
|
1121
|
-
size: fileStorageInfo.size || blob.size,
|
|
1122
|
-
type: fileStorageInfo.mimeType || blob.type,
|
|
1123
|
-
status: 'uploaded',
|
|
1124
|
-
source: { kind: 'fileId', value: fileStorageInfo.fileId },
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
catch (err) {
|
|
1128
|
-
// Typed error
|
|
1129
|
-
console.error('Error uploading file to FileStorage for entityId:', savedEntityId, 'file:', fileItem.name, err);
|
|
1130
|
-
finalImageIdReferences.push({
|
|
1131
|
-
tempId: fileItem.id,
|
|
1132
|
-
name: fileItem.name,
|
|
1133
|
-
size: fileItem.size,
|
|
1134
|
-
type: blob.type, // Correctly access type from Blob/File
|
|
1135
|
-
status: 'upload_failed',
|
|
1136
|
-
error: err.message,
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
if (filesToUploadAfterSave.length > 0) {
|
|
1141
|
-
let needsUpdate = true;
|
|
1142
|
-
if (entityPayload.imageId && entityPayload.imageId.length === finalImageIdReferences.length) {
|
|
1143
|
-
const oldIds = entityPayload.imageId
|
|
1144
|
-
.map((f) => f.id || f.tempId)
|
|
1145
|
-
.sort()
|
|
1146
|
-
.join(',');
|
|
1147
|
-
const newIds = finalImageIdReferences
|
|
1148
|
-
.map((f) => f.id || f.tempId)
|
|
1149
|
-
.sort()
|
|
1150
|
-
.join(',');
|
|
1151
|
-
if (oldIds === newIds && !finalImageIdReferences.some((f) => f.status === 'upload_failed')) {
|
|
1152
|
-
needsUpdate = false;
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
if (needsUpdate) {
|
|
1156
|
-
// Assuming updateOne takes the ID and an object of fields to update
|
|
1157
|
-
console.log(finalImageIdReferences);
|
|
1158
|
-
await dataService.updateOne(savedEntityId, { imageId: finalImageIdReferences });
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
return { id: savedEntityId };
|
|
962
|
+
const res = await dataService.insertOne(data);
|
|
963
|
+
return { id: res };
|
|
1162
964
|
},
|
|
1163
965
|
},
|
|
1164
966
|
delete: {
|
|
@@ -1168,86 +970,7 @@ async function promotionEntityFactory(injector) {
|
|
|
1168
970
|
},
|
|
1169
971
|
update: {
|
|
1170
972
|
execute: async (data) => {
|
|
1171
|
-
await
|
|
1172
|
-
const entityId = data.id;
|
|
1173
|
-
const filesToUpload = [];
|
|
1174
|
-
const processedImageReferences = [];
|
|
1175
|
-
if (data.imageId && Array.isArray(data.imageId)) {
|
|
1176
|
-
for (const fileItem of data.imageId) {
|
|
1177
|
-
if (fileItem.status === 'deleted') {
|
|
1178
|
-
continue;
|
|
1179
|
-
}
|
|
1180
|
-
if (fileItem.source?.kind === 'blob' && fileItem.source.value instanceof Blob) {
|
|
1181
|
-
// Sanitize the filename for new uploads
|
|
1182
|
-
const sanitizedName = sanitizeFileName(fileItem.name);
|
|
1183
|
-
filesToUpload.push({
|
|
1184
|
-
fileItem: { ...fileItem, name: sanitizedName },
|
|
1185
|
-
blob: fileItem.source.value,
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
else if (fileItem.source?.kind === 'fileId' &&
|
|
1189
|
-
fileItem.id &&
|
|
1190
|
-
typeof fileItem.source.value === 'string') {
|
|
1191
|
-
// This is an existing file, keep its reference.
|
|
1192
|
-
processedImageReferences.push({
|
|
1193
|
-
id: fileItem.id,
|
|
1194
|
-
name: fileItem.name,
|
|
1195
|
-
size: fileItem.size,
|
|
1196
|
-
status: fileItem.status || 'uploaded',
|
|
1197
|
-
source: { kind: 'fileId', value: fileItem.source.value },
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
else if (fileItem.id && fileItem.name) {
|
|
1201
|
-
processedImageReferences.push({
|
|
1202
|
-
id: fileItem.id,
|
|
1203
|
-
name: fileItem.name,
|
|
1204
|
-
size: fileItem.size,
|
|
1205
|
-
status: fileItem.status || 'uploaded',
|
|
1206
|
-
source: fileItem.source ? { kind: fileItem.source.kind, value: fileItem.source.value } : undefined,
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
// Upload new files and add their successful/failed info to processedImageReferences
|
|
1212
|
-
for (const { fileItem, blob } of filesToUpload) {
|
|
1213
|
-
try {
|
|
1214
|
-
if (!fileStorageService) {
|
|
1215
|
-
throw new Error('fileStorageService is not available.');
|
|
1216
|
-
}
|
|
1217
|
-
const fileStorageInfo = await fileStorageService.save({
|
|
1218
|
-
file: blob,
|
|
1219
|
-
refId: entityId,
|
|
1220
|
-
refType: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
|
|
1221
|
-
category: '',
|
|
1222
|
-
name: fileItem.name, // Use the sanitized name from fileItem
|
|
1223
|
-
});
|
|
1224
|
-
await fileStorageService.commit(fileStorageInfo.fileId);
|
|
1225
|
-
processedImageReferences.push({
|
|
1226
|
-
id: fileStorageInfo.fileId,
|
|
1227
|
-
name: fileStorageInfo.name || fileItem.name,
|
|
1228
|
-
size: fileStorageInfo.size || blob.size,
|
|
1229
|
-
type: fileStorageInfo.mimeType || blob.type,
|
|
1230
|
-
status: 'uploaded',
|
|
1231
|
-
source: { kind: 'fileId', value: fileStorageInfo.fileId },
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
catch (err) {
|
|
1235
|
-
console.error('Error uploading file to FileStorage during update for entityId:', entityId, 'file:', fileItem.name, err);
|
|
1236
|
-
processedImageReferences.push({
|
|
1237
|
-
tempId: fileItem.id,
|
|
1238
|
-
name: fileItem.name,
|
|
1239
|
-
size: fileItem.size,
|
|
1240
|
-
type: blob.type,
|
|
1241
|
-
status: 'upload_failed',
|
|
1242
|
-
error: err.message,
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
// Construct the final data payload for the update.
|
|
1247
|
-
const finalUpdatePayload = { ...data };
|
|
1248
|
-
finalUpdatePayload.imageId = processedImageReferences;
|
|
1249
|
-
const fullySanitizedPayload = sanitizeForStorage(finalUpdatePayload);
|
|
1250
|
-
return await dataService.updateOne(entityId, fullySanitizedPayload);
|
|
973
|
+
return await dataService.updateOne(data.id, data);
|
|
1251
974
|
},
|
|
1252
975
|
},
|
|
1253
976
|
},
|
|
@@ -1299,7 +1022,9 @@ async function promotionEntityFactory(injector) {
|
|
|
1299
1022
|
},
|
|
1300
1023
|
list: {
|
|
1301
1024
|
execute: async (e) => {
|
|
1302
|
-
|
|
1025
|
+
const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
|
1026
|
+
console.log(x);
|
|
1027
|
+
return x;
|
|
1303
1028
|
},
|
|
1304
1029
|
type: AXPEntityQueryType.List,
|
|
1305
1030
|
},
|
|
@@ -1335,17 +1060,7 @@ async function promotionEntityFactory(injector) {
|
|
|
1335
1060
|
},
|
|
1336
1061
|
},
|
|
1337
1062
|
},
|
|
1338
|
-
|
|
1339
|
-
name: 'imageId',
|
|
1340
|
-
layout: {
|
|
1341
|
-
positions: {
|
|
1342
|
-
lg: {
|
|
1343
|
-
colSpan: 12,
|
|
1344
|
-
order: 6,
|
|
1345
|
-
},
|
|
1346
|
-
},
|
|
1347
|
-
},
|
|
1348
|
-
},
|
|
1063
|
+
// attachments property layout injected via plugin
|
|
1349
1064
|
{
|
|
1350
1065
|
name: 'contentType',
|
|
1351
1066
|
layout: {
|
|
@@ -1421,17 +1136,7 @@ async function promotionEntityFactory(injector) {
|
|
|
1421
1136
|
},
|
|
1422
1137
|
},
|
|
1423
1138
|
},
|
|
1424
|
-
|
|
1425
|
-
name: 'imageId',
|
|
1426
|
-
layout: {
|
|
1427
|
-
positions: {
|
|
1428
|
-
lg: {
|
|
1429
|
-
colSpan: 12,
|
|
1430
|
-
order: 6,
|
|
1431
|
-
},
|
|
1432
|
-
},
|
|
1433
|
-
},
|
|
1434
|
-
},
|
|
1139
|
+
// attachments property layout injected via plugin
|
|
1435
1140
|
{
|
|
1436
1141
|
name: 'contentType',
|
|
1437
1142
|
layout: {
|
|
@@ -1484,9 +1189,9 @@ async function promotionEntityFactory(injector) {
|
|
|
1484
1189
|
{
|
|
1485
1190
|
id: 'promotion',
|
|
1486
1191
|
},
|
|
1487
|
-
{
|
|
1488
|
-
|
|
1489
|
-
},
|
|
1192
|
+
// {
|
|
1193
|
+
// id: 'comments',
|
|
1194
|
+
// },
|
|
1490
1195
|
],
|
|
1491
1196
|
properties: [
|
|
1492
1197
|
{
|
|
@@ -1509,17 +1214,7 @@ async function promotionEntityFactory(injector) {
|
|
|
1509
1214
|
},
|
|
1510
1215
|
},
|
|
1511
1216
|
},
|
|
1512
|
-
|
|
1513
|
-
name: 'imageId',
|
|
1514
|
-
layout: {
|
|
1515
|
-
positions: {
|
|
1516
|
-
lg: {
|
|
1517
|
-
colSpan: 12,
|
|
1518
|
-
order: 2,
|
|
1519
|
-
},
|
|
1520
|
-
},
|
|
1521
|
-
},
|
|
1522
|
-
},
|
|
1217
|
+
// attachments property layout injected via plugin
|
|
1523
1218
|
{
|
|
1524
1219
|
name: 'contentType',
|
|
1525
1220
|
layout: {
|
|
@@ -1553,20 +1248,20 @@ async function promotionEntityFactory(injector) {
|
|
|
1553
1248
|
},
|
|
1554
1249
|
},
|
|
1555
1250
|
},
|
|
1556
|
-
{
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
},
|
|
1251
|
+
// {
|
|
1252
|
+
// name: 'comments',
|
|
1253
|
+
// layout: {
|
|
1254
|
+
// label: {
|
|
1255
|
+
// visible: false,
|
|
1256
|
+
// },
|
|
1257
|
+
// positions: {
|
|
1258
|
+
// lg: {
|
|
1259
|
+
// colSpan: 12,
|
|
1260
|
+
// order: 7,
|
|
1261
|
+
// },
|
|
1262
|
+
// },
|
|
1263
|
+
// },
|
|
1264
|
+
// },
|
|
1570
1265
|
],
|
|
1571
1266
|
actions: [],
|
|
1572
1267
|
},
|
|
@@ -1609,90 +1304,7 @@ async function promotionEntityFactory(injector) {
|
|
|
1609
1304
|
scope: AXPEntityCommandScope.Individual,
|
|
1610
1305
|
disabled: `{{ lock.check(context.eval("id"), "${RootConfig.module.name}.${RootConfig.entities.promotion.name}") }}`,
|
|
1611
1306
|
},
|
|
1612
|
-
//
|
|
1613
|
-
{
|
|
1614
|
-
title: '@document-management:actions.upload-files',
|
|
1615
|
-
command: {
|
|
1616
|
-
name: 'show-file-uploader-popup',
|
|
1617
|
-
options: {
|
|
1618
|
-
id: '{{ context.eval("id") }}',
|
|
1619
|
-
files: '{{ context.eval("imageId") }}',
|
|
1620
|
-
multiple: true,
|
|
1621
|
-
accept: '.jpg,.jpeg,.png,.gif,.webp',
|
|
1622
|
-
key: 'imageId',
|
|
1623
|
-
fileEditable: true,
|
|
1624
|
-
},
|
|
1625
|
-
},
|
|
1626
|
-
priority: 'secondary',
|
|
1627
|
-
type: 'upload',
|
|
1628
|
-
scope: AXPEntityCommandScope.Individual,
|
|
1629
|
-
},
|
|
1630
|
-
{
|
|
1631
|
-
title: '@activity-log:actions.view-history',
|
|
1632
|
-
command: {
|
|
1633
|
-
name: 'show-version-history-popup',
|
|
1634
|
-
options: {
|
|
1635
|
-
refId: '{{ context.eval("id") }}',
|
|
1636
|
-
refType: RootConfig.module.name + '.' + RootConfig.entities.promotion.name,
|
|
1637
|
-
},
|
|
1638
|
-
},
|
|
1639
|
-
priority: 'secondary',
|
|
1640
|
-
type: 'version-history',
|
|
1641
|
-
scope: AXPEntityCommandScope.Individual,
|
|
1642
|
-
},
|
|
1643
|
-
{
|
|
1644
|
-
title: '@conversation:actions.show-comment-popup',
|
|
1645
|
-
command: {
|
|
1646
|
-
name: 'show-comment-popup',
|
|
1647
|
-
options: {
|
|
1648
|
-
refId: '{{ context.eval("id") }}',
|
|
1649
|
-
refType: RootConfig.module.name + '.' + RootConfig.entities.promotion.name,
|
|
1650
|
-
subject: '{{ context.eval("title") }}',
|
|
1651
|
-
},
|
|
1652
|
-
},
|
|
1653
|
-
priority: 'secondary',
|
|
1654
|
-
type: 'version-history',
|
|
1655
|
-
scope: AXPEntityCommandScope.Individual,
|
|
1656
|
-
},
|
|
1657
|
-
{
|
|
1658
|
-
title: 'Compare',
|
|
1659
|
-
command: {
|
|
1660
|
-
name: 'show-entity-records-compare',
|
|
1661
|
-
},
|
|
1662
|
-
priority: 'secondary',
|
|
1663
|
-
type: 'version-history',
|
|
1664
|
-
scope: AXPEntityCommandScope.Selected,
|
|
1665
|
-
},
|
|
1666
|
-
{
|
|
1667
|
-
title: '@common:actions.lock',
|
|
1668
|
-
name: 'lock-entity',
|
|
1669
|
-
command: {
|
|
1670
|
-
name: 'lock-popup',
|
|
1671
|
-
options: {
|
|
1672
|
-
refId: '{{ context.eval("id") }}',
|
|
1673
|
-
refType: RootConfig.module.name + '.' + RootConfig.entities.promotion.name,
|
|
1674
|
-
},
|
|
1675
|
-
},
|
|
1676
|
-
priority: 'secondary',
|
|
1677
|
-
type: 'update',
|
|
1678
|
-
scope: AXPEntityCommandScope.Individual,
|
|
1679
|
-
hidden: `{{ lock.check(context.eval("id"), "${RootConfig.module.name}.${RootConfig.entities.promotion.name}") }}`,
|
|
1680
|
-
},
|
|
1681
|
-
{
|
|
1682
|
-
title: '@common:actions.unlock',
|
|
1683
|
-
name: 'unlock-entity',
|
|
1684
|
-
command: {
|
|
1685
|
-
name: 'unlock-confirm',
|
|
1686
|
-
options: {
|
|
1687
|
-
refId: '{{ context.eval("id") }}',
|
|
1688
|
-
refType: RootConfig.module.name + '.' + RootConfig.entities.promotion.name,
|
|
1689
|
-
},
|
|
1690
|
-
},
|
|
1691
|
-
priority: 'secondary',
|
|
1692
|
-
type: 'update',
|
|
1693
|
-
scope: AXPEntityCommandScope.Individual,
|
|
1694
|
-
hidden: `{{ (await lock.check(context.eval("id"), "${RootConfig.module.name}.${RootConfig.entities.promotion.name}")) == false }}`,
|
|
1695
|
-
},
|
|
1307
|
+
// upload files action is injected via attachments plugin
|
|
1696
1308
|
],
|
|
1697
1309
|
views: [
|
|
1698
1310
|
createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
|